@psnext/design-system 1.2.1 → 1.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/dist/index.d.cts +5 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.d.cts +7 -7
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +7 -7
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.ts +3 -3
- package/dist/index12.d.cts +11 -11
- package/dist/index12.d.ts +12 -12
- 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.cts.map +1 -1
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.cts +2 -2
- package/dist/index16.d.cts.map +1 -1
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.cts +4 -4
- package/dist/index17.d.cts.map +1 -1
- package/dist/index17.d.ts +4 -4
- package/dist/index18.d.cts +11 -11
- package/dist/index18.d.ts +11 -11
- package/dist/index18.d.ts.map +1 -1
- package/dist/index19.d.cts +10 -10
- package/dist/index19.d.ts +10 -10
- package/dist/index19.d.ts.map +1 -1
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.cts.map +1 -1
- package/dist/index2.d.ts +8 -8
- package/dist/index2.d.ts.map +1 -1
- package/dist/index20.d.cts +16 -16
- package/dist/index20.d.cts.map +1 -1
- package/dist/index20.d.ts +16 -16
- package/dist/index20.d.ts.map +1 -1
- 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.cts.map +1 -1
- package/dist/index22.d.ts +11 -11
- package/dist/index22.d.ts.map +1 -1
- 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.cts.map +1 -1
- package/dist/index25.d.ts +2 -2
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +14 -14
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +14 -14
- package/dist/index26.d.ts.map +1 -1
- 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 +5 -5
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.ts +4 -4
- package/dist/index29.d.ts.map +1 -1
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.cts.map +1 -1
- package/dist/index3.d.ts +13 -13
- package/dist/index3.d.ts.map +1 -1
- package/dist/index30.d.cts +3 -3
- package/dist/index30.d.ts +6 -6
- package/dist/index30.d.ts.map +1 -1
- package/dist/index31.d.cts +5 -5
- package/dist/index31.d.ts +4 -4
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +4 -4
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +5 -5
- package/dist/index32.d.ts.map +1 -1
- package/dist/index33.d.cts +10 -10
- package/dist/index33.d.ts +11 -11
- 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 +15 -15
- 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/index36.d.ts.map +1 -1
- package/dist/index37.d.cts +4 -4
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +4 -4
- package/dist/index37.d.ts.map +1 -1
- package/dist/index38.d.cts +2 -2
- 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/index4.d.ts.map +1 -1
- package/dist/index40.d.cts +4 -4
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +5 -5
- package/dist/index40.d.ts.map +1 -1
- package/dist/index41.d.cts +11 -11
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +11 -11
- package/dist/index42.d.cts +8 -8
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +8 -8
- package/dist/index43.d.cts +9 -9
- package/dist/index43.d.ts +9 -9
- package/dist/index44.d.cts +8 -8
- package/dist/index44.d.cts.map +1 -1
- package/dist/index44.d.ts +8 -8
- package/dist/index45.d.cts +2 -2
- package/dist/index45.d.ts +2 -2
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +4 -4
- package/dist/index46.d.ts +4 -4
- package/dist/index47.d.cts +4 -4
- package/dist/index47.d.cts.map +1 -1
- package/dist/index47.d.ts +4 -4
- package/dist/index48.d.cts +3 -3
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +3 -3
- package/dist/index48.d.ts.map +1 -1
- package/dist/index49.d.cts +11 -11
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +11 -11
- package/dist/index49.d.ts.map +1 -1
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.ts +7 -7
- package/dist/index5.d.ts.map +1 -1
- package/dist/index50.d.cts +9 -9
- package/dist/index50.d.ts +9 -9
- package/dist/index51.d.cts +5 -5
- package/dist/index51.d.ts +5 -5
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +26 -26
- package/dist/index52.d.ts +27 -27
- package/dist/index52.d.ts.map +1 -1
- package/dist/index53.d.cts +5 -5
- package/dist/index53.d.ts +5 -5
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +2 -2
- package/dist/index54.d.ts +2 -2
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +2 -2
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +2 -2
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.cts +2 -2
- package/dist/index56.d.ts +2 -2
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +4 -4
- package/dist/index57.d.ts +4 -4
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +9 -9
- package/dist/index58.d.ts +9 -9
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +11 -11
- package/dist/index59.d.cts.map +1 -1
- package/dist/index59.d.ts +13 -13
- package/dist/index59.d.ts.map +1 -1
- 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 +5 -5
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +7 -7
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +4 -4
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +4 -4
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +2 -2
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +2 -2
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +5 -5
- package/dist/index63.d.ts +6 -6
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +3 -3
- package/dist/index64.d.ts +3 -3
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +4 -4
- package/dist/index65.d.ts +4 -4
- package/dist/index66.d.cts +2 -2
- package/dist/index66.d.ts +2 -2
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +5 -5
- package/dist/index67.d.ts +8 -8
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +6 -6
- package/dist/index68.d.ts +7 -7
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.cts.map +1 -1
- package/dist/index7.d.ts +8 -8
- package/dist/index70.d.cts +8 -8
- package/dist/index70.d.ts +8 -8
- package/dist/index8.d.cts +4 -4
- package/dist/index8.d.ts +4 -4
- package/dist/index8.d.ts.map +1 -1
- 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.ts +3 -3
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Footer/index.d.ts.map +1 -1
- package/dist/patterns/MediaObject/index.d.cts +11 -11
- package/dist/patterns/MediaObject/index.d.ts +13 -13
- package/dist/patterns/MediaObject/index.d.ts.map +1 -1
- package/dist/patterns/SectionCard/index.d.cts +2 -2
- 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.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/styles/index.css +3 -0
- package/dist/styles/theme.css +11 -3
- package/dist/styles/typography.css +136 -0
- package/package.json +1 -1
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_runtime136 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types14 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_types14.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_runtime136.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_runtime136.JSX.Element;
|
|
22
22
|
declare const emptyMediaVariants: (props?: ({
|
|
23
23
|
variant?: "default" | "icon" | null | undefined;
|
|
24
|
-
} &
|
|
24
|
+
} & class_variance_authority_types14.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_runtime136.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_runtime136.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_runtime136.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_runtime136.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_runtime52 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_runtime52.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Label$1 as t };
|
|
17
17
|
//# sourceMappingURL=index25.d.cts.map
|
package/dist/index25.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.d.cts","names":[],"sources":["../src/primitives/Label/Label.tsx"],"mappings":";;;;;;iBAMS,OAAA;;;;GAIN,KAAA,CAAM,sBAAsB,KAAA,CAAe;;EAJrC,KAAA,CAAA,EAAA,OAAK,GAAA,QAAA;CAAA,CAAA,EAOb,
|
|
1
|
+
{"version":3,"file":"index25.d.cts","names":[],"sources":["../src/primitives/Label/Label.tsx"],"mappings":";;;;;;iBAMS,OAAA;;;;GAIN,KAAA,CAAM,sBAAsB,KAAA,CAAe;;EAJrC,KAAA,CAAA,EAAA,OAAK,GAAA,QAAA;CAAA,CAAA,EAOb,mBAAA,CAAA,GAAA,CAAA,OAPa"}
|
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_runtime0 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_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Label$1 as t };
|
|
17
17
|
//# sourceMappingURL=index25.d.ts.map
|
package/dist/index25.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.d.ts","names":[],"sources":["../src/primitives/Label/Label.tsx"],"mappings":";;;;;;iBAMS,OAAA;;;;GAIN,KAAA,CAAM,sBAAsB,KAAA,CAAe;;EAJrC,KAAA,CAAA,EAAA,OAAK,GAAA,QAAA;CAAA,CAAA,EAOb,
|
|
1
|
+
{"version":3,"file":"index25.d.ts","names":[],"sources":["../src/primitives/Label/Label.tsx"],"mappings":";;;;;;iBAMS,OAAA;;;;GAIN,KAAA,CAAM,sBAAsB,KAAA,CAAe;;EAJrC,KAAA,CAAA,EAAA,OAAK,GAAA,QAAA;CAAA,CAAA,EAOb,kBAAA,CAAA,GAAA,CAAA,OAPa"}
|
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_runtime106 from "react/jsx-runtime";
|
|
3
|
+
import * as class_variance_authority_types4 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_runtime106.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_runtime106.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_runtime106.JSX.Element;
|
|
27
27
|
declare const fieldVariants: (props?: ({
|
|
28
|
-
orientation?: "
|
|
29
|
-
} &
|
|
28
|
+
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
29
|
+
} & class_variance_authority_types4.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_runtime106.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_runtime106.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_runtime106.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_runtime106.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_runtime106.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_runtime106.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_runtime106.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,oBAAA,CAAA,GAAA,CAAA;;iBAelE,WAAA;;;;GAIN,KAAA,CAAM;EAnBA;EAAQ,OAAA,CAAA,EAAA,QAAA,GAAA,OAAA;IAsBhB,oBAAA,CAAA,GAAA,CAAA,OAtBmB;;iBAuCX,UAAA,CAvCkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuC9B,KAAA,CAAM,cAvCwB,CAAA,KAAA,CAAA,CAAA,EAuCH,oBAAA,CAAA,GAAA,CAAA,OAvCG;AAAA,cAoDrE,aApDqE,EAAA,CAAA,KAevD,CAfuD,EAAA,CAAA;EAelE,WAAA,CAAA,EAAW,
|
|
1
|
+
{"version":3,"file":"index26.d.cts","names":[],"sources":["../src/primitives/Field/Field.tsx"],"mappings":";;;;;;;;iBAWS,QAAA;;;GAAkC,KAAA,CAAM,6BAA0B,oBAAA,CAAA,GAAA,CAAA;;iBAelE,WAAA;;;;GAIN,KAAA,CAAM;EAnBA;EAAQ,OAAA,CAAA,EAAA,QAAA,GAAA,OAAA;IAsBhB,oBAAA,CAAA,GAAA,CAAA,OAtBmB;;iBAuCX,UAAA,CAvCkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuC9B,KAAA,CAAM,cAvCwB,CAAA,KAA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UAGZ,CAAA,EA8EW,KAAA,CAAM,SA9EjB;IA+ED,oBAAA,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,oBAAA,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_runtime126 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as
|
|
5
|
+
import * as class_variance_authority_types13 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_runtime126.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_runtime126.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_runtime126.JSX.Element;
|
|
27
27
|
declare const fieldVariants: (props?: ({
|
|
28
|
-
orientation?: "
|
|
29
|
-
} &
|
|
28
|
+
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
29
|
+
} & class_variance_authority_types13.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_runtime126.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_runtime126.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_runtime126.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_runtime126.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_runtime126.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_runtime126.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_runtime126.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/index26.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index26.d.ts","names":[],"sources":["../src/primitives/Field/Field.tsx"],"mappings":";;;;;;;;iBAWS,QAAA;;;GAAkC,KAAA,CAAM,6BAA0B,oBAAA,CAAA,GAAA,CAAA;;iBAelE,WAAA;;;;GAIN,KAAA,CAAM;EAnBA;EAAQ,OAAA,CAAA,EAAA,QAAA,GAAA,OAAA;IAsBhB,oBAAA,CAAA,GAAA,CAAA,OAtBmB;;iBAuCX,UAAA,CAvCkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuC9B,KAAA,CA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uB,KAAA,CAAM,cAhE7B,CAAA,OAgEmD,KAhEnD,CAAA,CAAA,EAgEyD,oBAAA,CAAA,GAAA,CAAA,OAhEzD;;iBAgFb,UAAA,CAhF+D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgF3B,KAAA,CAAM,cAhFqB,CAAA,KAAA,CAAA,CAAA,EAgFA,oBAAA,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,oBAAA,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,oBAAA,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,oBAAA,CAAA,GAAA,CAAA,OAAA,GAjGuB,IAAA"}
|
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_runtime100 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_runtime100.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_runtime100.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_runtime100.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_runtime100.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_runtime100.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_runtime100.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,oBAAA,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,oBAAA,CAAA,GAAA,CAAA,OA1DxD;;iBAqED,SAAA,CArEC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqEkC,KAAA,CAAM,cArExC,CAAA,OAqE8D,UArE9D,CAAA,CAAA,EAqEyE,oBAAA,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,oBAAA,CAAA,GAAA,CAAA,OApF/D;;iBAmGD,eAAA,CAnGC;EAAA,GAAA;AAAA,CAAA,EAmG6B,KAAA,CAAM,cAnGnC,CAAA,OAmGyD,gBAnGzD,CAAA,CAAA,EAmG0E,oBAAA,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,oBAAA,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_runtime120 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_runtime120.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_runtime120.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_runtime120.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_runtime120.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_runtime120.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_runtime120.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_runtime133 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?: "center" | "left" | "right" | 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_runtime133.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,uBAi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;;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,oBAAA,CAAA,GAAA,CAAA,OAJ9D"}
|
package/dist/index28.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime119 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types12 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Heading/Heading.d.ts
|
|
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?: "center" | "left" | "right" | null | undefined;
|
|
11
11
|
gradient?: boolean | null | undefined;
|
|
12
|
-
} &
|
|
12
|
+
} & class_variance_authority_types12.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_runtime119.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { HeadingProps as n, headingVariants as r, Heading as t };
|
|
37
37
|
//# sourceMappingURL=index28.d.ts.map
|
package/dist/index28.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index28.d.ts","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.ts","names":[],"sources":["../src/primitives/Heading/Heading.tsx"],"mappings":";;;;;;cAUM,uBAiCW;;;;EAjCX,QAAA,CAAA,EAAA,OA+BJ,GAAA,IAAA,GAAA,SAAA;IAAA,gCAAA,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,oBAAA,CAAA,GAAA,CAAA,OAJ9D"}
|
package/dist/index29.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
2
2
|
import { HoverCard } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -6,11 +6,11 @@ import * as React from "react";
|
|
|
6
6
|
/** Root that reveals a floating card when the user hovers (or focuses) the trigger. */
|
|
7
7
|
declare function HoverCard$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof HoverCard.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof HoverCard.Root>): react_jsx_runtime87.JSX.Element;
|
|
10
10
|
/** The element that opens the hover card on pointer hover or keyboard focus. */
|
|
11
11
|
declare function HoverCardTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof HoverCard.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof HoverCard.Trigger>): react_jsx_runtime87.JSX.Element;
|
|
14
14
|
/** The floating, portalled surface shown while the trigger is hovered/focused. */
|
|
15
15
|
declare function HoverCardContent({
|
|
16
16
|
className,
|
|
@@ -19,7 +19,7 @@ declare function HoverCardContent({
|
|
|
19
19
|
/** Gap in pixels between the trigger and the content. */
|
|
20
20
|
sideOffset,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof HoverCard.Content>):
|
|
22
|
+
}: React.ComponentProps<typeof HoverCard.Content>): react_jsx_runtime87.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { HoverCardContent as n, HoverCardTrigger as r, HoverCard$1 as t };
|
|
25
25
|
//# sourceMappingURL=index29.d.cts.map
|
package/dist/index29.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { HoverCard } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/HoverCard/HoverCard.d.ts
|
|
6
6
|
/** Root that reveals a floating card when the user hovers (or focuses) the trigger. */
|
|
7
7
|
declare function HoverCard$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof HoverCard.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof HoverCard.Root>): react_jsx_runtime19.JSX.Element;
|
|
10
10
|
/** The element that opens the hover card on pointer hover or keyboard focus. */
|
|
11
11
|
declare function HoverCardTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof HoverCard.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof HoverCard.Trigger>): react_jsx_runtime19.JSX.Element;
|
|
14
14
|
/** The floating, portalled surface shown while the trigger is hovered/focused. */
|
|
15
15
|
declare function HoverCardContent({
|
|
16
16
|
className,
|
|
@@ -19,7 +19,7 @@ declare function HoverCardContent({
|
|
|
19
19
|
/** Gap in pixels between the trigger and the content. */
|
|
20
20
|
sideOffset,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof HoverCard.Content>):
|
|
22
|
+
}: React.ComponentProps<typeof HoverCard.Content>): react_jsx_runtime19.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { HoverCardContent as n, HoverCardTrigger as r, HoverCard$1 as t };
|
|
25
25
|
//# sourceMappingURL=index29.d.ts.map
|
package/dist/index29.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index29.d.ts","names":[],"sources":["../src/primitives/HoverCard/HoverCard.tsx"],"mappings":";;;;;;iBAMS,WAAA;;GAAwB,KAAA,CAAM,sBAAsB,SAAA,CAAmB,QAAK,
|
|
1
|
+
{"version":3,"file":"index29.d.ts","names":[],"sources":["../src/primitives/HoverCard/HoverCard.tsx"],"mappings":";;;;;;iBAMS,WAAA;;GAAwB,KAAA,CAAM,sBAAsB,SAAA,CAAmB,QAAK,mBAAA,CAAA,GAAA,CAAA;;AALjD,iBAU3B,gBAAA,CALS;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,SAAA,CAAmB,OALrE,CAAA,CAAA,EAK6E,mBAAA,CAAA,GAAA,CAAA,OAL7E;;iBAUT,gBAAA,CAVuE;EAAA,SAAA;;;EAAK;EAAA,UAK5E;EAAA,GAAA;AAAgB,CAAhB,EAYN,KAAA,CAAM,cAZgB,CAAA,OAYM,SAAA,CAAmB,OAZzB,CAAA,CAAA,EAYiC,mBAAA,CAAA,GAAA,CAAA,OAZjC"}
|
package/dist/index3.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime190 from "react/jsx-runtime";
|
|
2
2
|
import { AlertDialog } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -6,17 +6,17 @@ import * as React from "react";
|
|
|
6
6
|
/** A modal confirmation dialog that interrupts the user and expects a deliberate response. */
|
|
7
7
|
declare function AlertDialog$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof AlertDialog.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof AlertDialog.Root>): react_jsx_runtime190.JSX.Element;
|
|
10
10
|
declare function AlertDialogTrigger({
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof AlertDialog.Trigger>):
|
|
12
|
+
}: React.ComponentProps<typeof AlertDialog.Trigger>): react_jsx_runtime190.JSX.Element;
|
|
13
13
|
declare function AlertDialogPortal({
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof AlertDialog.Portal>):
|
|
15
|
+
}: React.ComponentProps<typeof AlertDialog.Portal>): react_jsx_runtime190.JSX.Element;
|
|
16
16
|
declare function AlertDialogOverlay({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof AlertDialog.Overlay>):
|
|
19
|
+
}: React.ComponentProps<typeof AlertDialog.Overlay>): react_jsx_runtime190.JSX.Element;
|
|
20
20
|
declare function AlertDialogContent({
|
|
21
21
|
className,
|
|
22
22
|
size,
|
|
@@ -24,27 +24,27 @@ declare function AlertDialogContent({
|
|
|
24
24
|
}: React.ComponentProps<typeof AlertDialog.Content> & {
|
|
25
25
|
/** Layout preset: `default` is compact + centered, `large` is wide + left-aligned. */
|
|
26
26
|
size?: "default" | "large";
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime190.JSX.Element;
|
|
28
28
|
declare function AlertDialogHeader({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">):
|
|
31
|
+
}: React.ComponentProps<"div">): react_jsx_runtime190.JSX.Element;
|
|
32
32
|
declare function AlertDialogFooter({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"div">):
|
|
35
|
+
}: React.ComponentProps<"div">): react_jsx_runtime190.JSX.Element;
|
|
36
36
|
declare function AlertDialogTitle({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React.ComponentProps<typeof AlertDialog.Title>):
|
|
39
|
+
}: React.ComponentProps<typeof AlertDialog.Title>): react_jsx_runtime190.JSX.Element;
|
|
40
40
|
declare function AlertDialogDescription({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React.ComponentProps<typeof AlertDialog.Description>):
|
|
43
|
+
}: React.ComponentProps<typeof AlertDialog.Description>): react_jsx_runtime190.JSX.Element;
|
|
44
44
|
declare function AlertDialogMedia({
|
|
45
45
|
className,
|
|
46
46
|
...props
|
|
47
|
-
}: React.ComponentProps<"div">):
|
|
47
|
+
}: React.ComponentProps<"div">): react_jsx_runtime190.JSX.Element;
|
|
48
48
|
declare function AlertDialogAction({
|
|
49
49
|
className,
|
|
50
50
|
variant,
|
|
@@ -52,11 +52,11 @@ declare function AlertDialogAction({
|
|
|
52
52
|
}: React.ComponentProps<typeof AlertDialog.Action> & {
|
|
53
53
|
/** Button style for the confirming action; use `destructive` for irreversible actions. */
|
|
54
54
|
variant?: "default" | "destructive";
|
|
55
|
-
}):
|
|
55
|
+
}): react_jsx_runtime190.JSX.Element;
|
|
56
56
|
declare function AlertDialogCancel({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<typeof AlertDialog.Cancel>):
|
|
59
|
+
}: React.ComponentProps<typeof AlertDialog.Cancel>): react_jsx_runtime190.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { AlertDialogDescription as a, AlertDialogMedia as c, AlertDialogTitle as d, AlertDialogTrigger as f, AlertDialogContent as i, AlertDialogOverlay as l, AlertDialogAction as n, AlertDialogFooter as o, AlertDialogCancel as r, AlertDialogHeader as s, AlertDialog$1 as t, AlertDialogPortal as u };
|
|
62
62
|
//# sourceMappingURL=index3.d.cts.map
|