@psnext/design-system 2.1.0 → 2.2.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 +2 -2
- package/dist/Header.cjs +27 -27
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +22 -28
- package/dist/Header.js.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +7 -7
- package/dist/index10.d.ts.map +1 -1
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index11.d.ts.map +1 -1
- package/dist/index12.d.cts +12 -12
- package/dist/index12.d.cts.map +1 -1
- package/dist/index12.d.ts +12 -12
- package/dist/index12.d.ts.map +1 -1
- 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.cts.map +1 -1
- 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/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/index2.d.ts.map +1 -1
- 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 +7 -7
- 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/index26.d.cts +13 -13
- 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.ts +5 -5
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.ts +4 -4
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.cts.map +1 -1
- package/dist/index30.d.cts +5 -5
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +6 -6
- package/dist/index31.d.cts +4 -4
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +4 -4
- package/dist/index32.d.cts +6 -6
- package/dist/index32.d.ts +3 -3
- package/dist/index33.d.cts +11 -11
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +11 -11
- package/dist/index34.d.cts +5 -5
- package/dist/index34.d.ts +5 -5
- package/dist/index35.d.cts +15 -15
- 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.ts +3 -3
- package/dist/index37.d.cts +4 -4
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +5 -5
- 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.cts.map +1 -1
- 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 +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.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.cts.map +1 -1
- package/dist/index43.d.ts +9 -9
- package/dist/index45.d.cts +8 -8
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +8 -8
- 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/index5.d.ts.map +1 -1
- package/dist/index50.d.cts +11 -11
- 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 +26 -26
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +26 -26
- 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/index55.d.ts.map +1 -1
- package/dist/index56.d.ts +2 -2
- package/dist/index57.d.cts +2 -2
- 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.ts +4 -4
- package/dist/index59.d.cts +9 -9
- package/dist/index59.d.ts +9 -9
- package/dist/index59.d.ts.map +1 -1
- package/dist/index6.d.cts +6 -6
- package/dist/index6.d.ts +5 -5
- package/dist/index6.d.ts.map +1 -1
- package/dist/index60.d.cts +6 -6
- package/dist/index60.d.ts +13 -13
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +6 -6
- package/dist/index61.d.ts +5 -5
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +5 -5
- package/dist/index62.d.ts +4 -4
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +2 -2
- package/dist/index63.d.ts +2 -2
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +6 -6
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +6 -6
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +3 -3
- package/dist/index65.d.ts +3 -3
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +4 -4
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +5 -5
- package/dist/index67.d.cts +2 -2
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +2 -2
- package/dist/index68.d.cts +7 -7
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +8 -8
- 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 +7 -7
- package/dist/index69.d.ts.map +1 -1
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.ts +8 -8
- package/dist/index7.d.ts.map +1 -1
- package/dist/index71.d.cts +26 -12
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +26 -12
- package/dist/index71.d.ts.map +1 -1
- package/dist/index8.d.cts +5 -5
- 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/patterns/DataTable/index.d.cts +3 -3
- package/dist/patterns/DataTable/index.d.ts +3 -3
- package/dist/patterns/DataTable/index.d.ts.map +1 -1
- 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/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 +13 -13
- 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/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/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/index51.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime222 from "react/jsx-runtime";
|
|
2
2
|
import { Dialog } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -6,15 +6,15 @@ import * as React from "react";
|
|
|
6
6
|
/** Root provider for a slide-in panel (drawer). Wraps a `SheetTrigger` and `SheetContent`; controls open/closed state. */
|
|
7
7
|
declare function Sheet({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Dialog.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime222.JSX.Element;
|
|
10
10
|
/** Element that opens the sheet when activated. Use `asChild` to wrap your own button. */
|
|
11
11
|
declare function SheetTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Dialog.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime222.JSX.Element;
|
|
14
14
|
/** Element that closes the sheet when activated. Use `asChild` to wrap your own button. */
|
|
15
15
|
declare function SheetClose({
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof Dialog.Close>):
|
|
17
|
+
}: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime222.JSX.Element;
|
|
18
18
|
/** Predefined scrim styles for the sheet overlay. Pass via `overlay`. */
|
|
19
19
|
declare const sheetOverlayVariants: {
|
|
20
20
|
readonly default: "bg-overlay-bg";
|
|
@@ -37,27 +37,27 @@ declare function SheetContent({
|
|
|
37
37
|
showCloseButton?: boolean;
|
|
38
38
|
/** Scrim style behind the sheet (e.g. `glass` for drawer patterns). */
|
|
39
39
|
overlay?: keyof typeof sheetOverlayVariants;
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime222.JSX.Element;
|
|
41
41
|
/** Top region of the sheet; typically holds the `SheetTitle` and `SheetDescription`. */
|
|
42
42
|
declare function SheetHeader({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"div">):
|
|
45
|
+
}: React.ComponentProps<"div">): react_jsx_runtime222.JSX.Element;
|
|
46
46
|
/** Bottom region of the sheet, pinned to the base; typically holds action buttons. */
|
|
47
47
|
declare function SheetFooter({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"div">):
|
|
50
|
+
}: React.ComponentProps<"div">): react_jsx_runtime222.JSX.Element;
|
|
51
51
|
/** Accessible title for the sheet, announced when it opens. */
|
|
52
52
|
declare function SheetTitle({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<typeof Dialog.Title>):
|
|
55
|
+
}: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime222.JSX.Element;
|
|
56
56
|
/** Accessible supporting text for the sheet, linked to the dialog for screen readers. */
|
|
57
57
|
declare function SheetDescription({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<typeof Dialog.Description>):
|
|
60
|
+
}: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime222.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
|
|
63
63
|
//# sourceMappingURL=index51.d.cts.map
|
package/dist/index51.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index51.d.cts","names":[],"sources":["../src/primitives/Sheet/Sheet.tsx"],"mappings":";;;;;;iBAOS,KAAA;;GAAoB,KAAA,CAAM,sBAAsB,MAAA,CAAe,QAAK,
|
|
1
|
+
{"version":3,"file":"index51.d.cts","names":[],"sources":["../src/primitives/Sheet/Sheet.tsx"],"mappings":";;;;;;iBAOS,KAAA;;GAAoB,KAAA,CAAM,sBAAsB,MAAA,CAAe,QAAK,oBAAA,CAAA,GAAA,CAAA;;AALzC,iBAU3B,YAAA,CALK;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,MAAA,CAAe,OALjE,CAAA,CAAA,EAKyE,oBAAA,CAAA,GAAA,CAAA,OALzE;;iBAUL,UAAA,CAV+D;EAAA,GAAA;AAAA,CAAA,EAUtC,KAAA,CAAM,cAVgC,CAAA,OAUV,MAAA,CAAe,KAVL,CAAA,CAAA,EAUW,oBAAA,CAAA,GAAA,CAAA,OAVX;;cAqClE,oBArCuE,EAAA;EAAA,SAAA,OAAA,EAAA,eAAA;EAKpE,SAAA,IAAA,EAAY,aAAA;EAAA,SAAA,KAAA,EAAA,oCAAA;WAA2C,IAAe,EAAA,gBAAA;;;AAAQ,iBAwC9E,YAAA,CAxC8E;EAAA,SAAA;EAAA,QAAA;EAAA,IAAA;EAAA,eAAA;EAAA,OAAA;EAAA,GAAA;AAKJ,CALI,EA+CpF,KAAA,CAAM,cA/C8E,CAAA,OA+CxD,MAAA,CAAe,OA/CyC,CAAA,GAAA;EAK9E;EAAU,IAAA,CAAA,EAAA,KAAA,GAAA,OAAA,GAAA,QAAA,GAAA,MAAA;;iBAAqB,CAAA,EAAA,OAAA;;EAA2C,OAAA,CAAA,EAAA,MAAA,OAgD1D,oBAhD0D;AAAA,CAAA,CAAA,EAiDlF,oBAAA,CAAA,GAAA,CAAA,OAjBS;AAAA;iBAoDD,WAAA,CAjDY;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiDyB,KAAA,CAAM,cAjD/B,CAAA,KAAA,CAAA,CAAA,EAiDoD,oBAAA,CAAA,GAAA,CAAA,OAjDpD;;iBAwDZ,WAAA,CAtDP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsD4C,KAAA,CAAM,cAtDlD,CAAA,KAAA,CAAA,CAAA,EAsDuE,oBAAA,CAAA,GAAA,CAAA,OAtDvE;;iBAoEO,UAAA,CAlEP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkE2C,KAAA,CAAM,cAlEjD,CAAA,OAkEuE,MAAA,CAAe,KAlEtF,CAAA,CAAA,EAkE4F,oBAAA,CAAA,GAAA,CAAA,OAlE5F;;iBAkFO,gBAAA,CA/EqC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkF3C,KAAA,CAAM,cAlFqC,CAAA,OAkFf,MAAA,CAAe,WAlFA,CAAA,CAAA,EAkFY,oBAAA,CAAA,GAAA,CAAA,OAlFZ"}
|
package/dist/index51.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Dialog } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime127 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/Sheet/Sheet.d.ts
|
|
6
6
|
/** Root provider for a slide-in panel (drawer). Wraps a `SheetTrigger` and `SheetContent`; controls open/closed state. */
|
|
7
7
|
declare function Sheet({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Dialog.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime127.JSX.Element;
|
|
10
10
|
/** Element that opens the sheet when activated. Use `asChild` to wrap your own button. */
|
|
11
11
|
declare function SheetTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Dialog.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime127.JSX.Element;
|
|
14
14
|
/** Element that closes the sheet when activated. Use `asChild` to wrap your own button. */
|
|
15
15
|
declare function SheetClose({
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof Dialog.Close>):
|
|
17
|
+
}: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime127.JSX.Element;
|
|
18
18
|
/** Predefined scrim styles for the sheet overlay. Pass via `overlay`. */
|
|
19
19
|
declare const sheetOverlayVariants: {
|
|
20
20
|
readonly default: "bg-overlay-bg";
|
|
@@ -37,27 +37,27 @@ declare function SheetContent({
|
|
|
37
37
|
showCloseButton?: boolean;
|
|
38
38
|
/** Scrim style behind the sheet (e.g. `glass` for drawer patterns). */
|
|
39
39
|
overlay?: keyof typeof sheetOverlayVariants;
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime127.JSX.Element;
|
|
41
41
|
/** Top region of the sheet; typically holds the `SheetTitle` and `SheetDescription`. */
|
|
42
42
|
declare function SheetHeader({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"div">):
|
|
45
|
+
}: React.ComponentProps<"div">): react_jsx_runtime127.JSX.Element;
|
|
46
46
|
/** Bottom region of the sheet, pinned to the base; typically holds action buttons. */
|
|
47
47
|
declare function SheetFooter({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"div">):
|
|
50
|
+
}: React.ComponentProps<"div">): react_jsx_runtime127.JSX.Element;
|
|
51
51
|
/** Accessible title for the sheet, announced when it opens. */
|
|
52
52
|
declare function SheetTitle({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<typeof Dialog.Title>):
|
|
55
|
+
}: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime127.JSX.Element;
|
|
56
56
|
/** Accessible supporting text for the sheet, linked to the dialog for screen readers. */
|
|
57
57
|
declare function SheetDescription({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<typeof Dialog.Description>):
|
|
60
|
+
}: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime127.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
|
|
63
63
|
//# sourceMappingURL=index51.d.ts.map
|
package/dist/index51.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index51.d.ts","names":[],"sources":["../src/primitives/Sheet/Sheet.tsx"],"mappings":";;;;;;iBAOS,KAAA;;GAAoB,KAAA,CAAM,sBAAsB,MAAA,CAAe,QAAK,
|
|
1
|
+
{"version":3,"file":"index51.d.ts","names":[],"sources":["../src/primitives/Sheet/Sheet.tsx"],"mappings":";;;;;;iBAOS,KAAA;;GAAoB,KAAA,CAAM,sBAAsB,MAAA,CAAe,QAAK,oBAAA,CAAA,GAAA,CAAA;;AALzC,iBAU3B,YAAA,CALK;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,MAAA,CAAe,OALjE,CAAA,CAAA,EAKyE,oBAAA,CAAA,GAAA,CAAA,OALzE;;iBAUL,UAAA,CAV+D;EAAA,GAAA;AAAA,CAAA,EAUtC,KAAA,CAAM,cAVgC,CAAA,OAUV,MAAA,CAAe,KAVL,CAAA,CAAA,EAUW,oBAAA,CAAA,G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|
package/dist/index52.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime157 from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -7,15 +7,15 @@ import * as React from "react";
|
|
|
7
7
|
declare function TooltipProvider({
|
|
8
8
|
delayDuration,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Tooltip.Provider>):
|
|
10
|
+
}: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime157.JSX.Element;
|
|
11
11
|
/** Root tooltip: wraps a trigger + content and manages open state. Self-provides a TooltipProvider. */
|
|
12
12
|
declare function Tooltip$1({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof Tooltip.Root>):
|
|
14
|
+
}: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime157.JSX.Element;
|
|
15
15
|
/** The element that opens the tooltip on hover/focus. Use `asChild` to render your own control. */
|
|
16
16
|
declare function TooltipTrigger({
|
|
17
17
|
...props
|
|
18
|
-
}: React.ComponentProps<typeof Tooltip.Trigger>):
|
|
18
|
+
}: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime157.JSX.Element;
|
|
19
19
|
/** The floating tooltip surface (portalled) with an arrow; carries the tooltip text. */
|
|
20
20
|
declare function TooltipContent({
|
|
21
21
|
/** Extra classes merged onto the content surface. */
|
|
@@ -25,7 +25,7 @@ declare function TooltipContent({
|
|
|
25
25
|
/** Tooltip body content. */
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof Tooltip.Content>):
|
|
28
|
+
}: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime157.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip$1 as t };
|
|
31
31
|
//# sourceMappingURL=index52.d.cts.map
|
package/dist/index52.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Tooltip } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/Tooltip/Tooltip.d.ts
|
|
6
6
|
/** Provides shared tooltip context (delay/skip timings) to all tooltips inside it. */
|
|
7
7
|
declare function TooltipProvider({
|
|
8
8
|
delayDuration,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Tooltip.Provider>):
|
|
10
|
+
}: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime80.JSX.Element;
|
|
11
11
|
/** Root tooltip: wraps a trigger + content and manages open state. Self-provides a TooltipProvider. */
|
|
12
12
|
declare function Tooltip$1({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof Tooltip.Root>):
|
|
14
|
+
}: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime80.JSX.Element;
|
|
15
15
|
/** The element that opens the tooltip on hover/focus. Use `asChild` to render your own control. */
|
|
16
16
|
declare function TooltipTrigger({
|
|
17
17
|
...props
|
|
18
|
-
}: React.ComponentProps<typeof Tooltip.Trigger>):
|
|
18
|
+
}: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime80.JSX.Element;
|
|
19
19
|
/** The floating tooltip surface (portalled) with an arrow; carries the tooltip text. */
|
|
20
20
|
declare function TooltipContent({
|
|
21
21
|
/** Extra classes merged onto the content surface. */
|
|
@@ -25,7 +25,7 @@ declare function TooltipContent({
|
|
|
25
25
|
/** Tooltip body content. */
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof Tooltip.Content>):
|
|
28
|
+
}: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime80.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip$1 as t };
|
|
31
31
|
//# sourceMappingURL=index52.d.ts.map
|
package/dist/index53.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import { t as Button } from "./index8.cjs";
|
|
|
2
2
|
import { t as Separator } from "./index9.cjs";
|
|
3
3
|
import { t as Input } from "./index32.cjs";
|
|
4
4
|
import { n as TooltipContent } from "./index52.cjs";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime198 from "react/jsx-runtime";
|
|
6
|
+
import * as class_variance_authority_types18 from "class-variance-authority/types";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
|
|
@@ -35,7 +35,7 @@ declare function SidebarProvider({
|
|
|
35
35
|
open?: boolean;
|
|
36
36
|
/** Called when the open state changes (controlled mode). */
|
|
37
37
|
onOpenChange?: (open: boolean) => void;
|
|
38
|
-
}):
|
|
38
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
39
39
|
/** The sidebar panel itself: renders as a fixed desktop rail or a mobile Sheet, driven by `SidebarProvider` state. */
|
|
40
40
|
declare function Sidebar({
|
|
41
41
|
side,
|
|
@@ -51,53 +51,53 @@ declare function Sidebar({
|
|
|
51
51
|
variant?: "sidebar" | "floating" | "inset";
|
|
52
52
|
/** How the sidebar collapses: slide off-canvas, shrink to an icon rail, or never collapse. */
|
|
53
53
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
54
|
-
}):
|
|
54
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
55
55
|
/** Icon button that toggles the sidebar open/collapsed. */
|
|
56
56
|
declare function SidebarTrigger({
|
|
57
57
|
className,
|
|
58
58
|
onClick,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<typeof Button>):
|
|
60
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime198.JSX.Element;
|
|
61
61
|
/** Thin draggable rail along the sidebar edge that toggles it on click. */
|
|
62
62
|
declare function SidebarRail({
|
|
63
63
|
className,
|
|
64
64
|
...props
|
|
65
|
-
}: React.ComponentProps<"button">):
|
|
65
|
+
}: React.ComponentProps<"button">): react_jsx_runtime198.JSX.Element;
|
|
66
66
|
/** The main content region that sits beside the sidebar. */
|
|
67
67
|
declare function SidebarInset({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"main">):
|
|
70
|
+
}: React.ComponentProps<"main">): react_jsx_runtime198.JSX.Element;
|
|
71
71
|
/** Sidebar-styled text input, e.g. for a search field in the header. */
|
|
72
72
|
declare function SidebarInput({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof Input>):
|
|
75
|
+
}: React.ComponentProps<typeof Input>): react_jsx_runtime198.JSX.Element;
|
|
76
76
|
/** Top region of the sidebar, typically a brand mark or workspace switcher. */
|
|
77
77
|
declare function SidebarHeader({
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: React.ComponentProps<"div">):
|
|
80
|
+
}: React.ComponentProps<"div">): react_jsx_runtime198.JSX.Element;
|
|
81
81
|
/** Bottom region of the sidebar, typically a user menu or settings link. */
|
|
82
82
|
declare function SidebarFooter({
|
|
83
83
|
className,
|
|
84
84
|
...props
|
|
85
|
-
}: React.ComponentProps<"div">):
|
|
85
|
+
}: React.ComponentProps<"div">): react_jsx_runtime198.JSX.Element;
|
|
86
86
|
/** Horizontal divider between sidebar sections, inset to match the sidebar padding. */
|
|
87
87
|
declare function SidebarSeparator({
|
|
88
88
|
className,
|
|
89
89
|
...props
|
|
90
|
-
}: React.ComponentProps<typeof Separator>):
|
|
90
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime198.JSX.Element;
|
|
91
91
|
/** Scrollable middle region of the sidebar that holds the groups and menus. */
|
|
92
92
|
declare function SidebarContent({
|
|
93
93
|
className,
|
|
94
94
|
...props
|
|
95
|
-
}: React.ComponentProps<"div">):
|
|
95
|
+
}: React.ComponentProps<"div">): react_jsx_runtime198.JSX.Element;
|
|
96
96
|
/** A labelled section within the sidebar content. */
|
|
97
97
|
declare function SidebarGroup({
|
|
98
98
|
className,
|
|
99
99
|
...props
|
|
100
|
-
}: React.ComponentProps<"div">):
|
|
100
|
+
}: React.ComponentProps<"div">): react_jsx_runtime198.JSX.Element;
|
|
101
101
|
/** Heading for a `SidebarGroup`; hidden when the sidebar is collapsed to icons. */
|
|
102
102
|
declare function SidebarGroupLabel({
|
|
103
103
|
className,
|
|
@@ -106,7 +106,7 @@ declare function SidebarGroupLabel({
|
|
|
106
106
|
}: React.ComponentProps<"div"> & {
|
|
107
107
|
/** Render as the child element (Radix Slot) instead of a `div`. */
|
|
108
108
|
asChild?: boolean;
|
|
109
|
-
}):
|
|
109
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
110
110
|
/** Small action button anchored to the top-right of a `SidebarGroup` (e.g. an add button). */
|
|
111
111
|
declare function SidebarGroupAction({
|
|
112
112
|
className,
|
|
@@ -115,27 +115,27 @@ declare function SidebarGroupAction({
|
|
|
115
115
|
}: React.ComponentProps<"button"> & {
|
|
116
116
|
/** Render as the child element (Radix Slot) instead of a `button`. */
|
|
117
117
|
asChild?: boolean;
|
|
118
|
-
}):
|
|
118
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
119
119
|
/** Wrapper for the body of a `SidebarGroup`, below its label. */
|
|
120
120
|
declare function SidebarGroupContent({
|
|
121
121
|
className,
|
|
122
122
|
...props
|
|
123
|
-
}: React.ComponentProps<"div">):
|
|
123
|
+
}: React.ComponentProps<"div">): react_jsx_runtime198.JSX.Element;
|
|
124
124
|
/** `ul` list container for sidebar menu items. */
|
|
125
125
|
declare function SidebarMenu({
|
|
126
126
|
className,
|
|
127
127
|
...props
|
|
128
|
-
}: React.ComponentProps<"ul">):
|
|
128
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime198.JSX.Element;
|
|
129
129
|
/** `li` row within a `SidebarMenu`; holds a button plus optional action/badge. */
|
|
130
130
|
declare function SidebarMenuItem({
|
|
131
131
|
className,
|
|
132
132
|
...props
|
|
133
|
-
}: React.ComponentProps<"li">):
|
|
133
|
+
}: React.ComponentProps<"li">): react_jsx_runtime198.JSX.Element;
|
|
134
134
|
/** Style variants for `SidebarMenuButton` — `variant` (default | outline) and `size` (default | sm | lg). */
|
|
135
135
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
136
136
|
variant?: "default" | "outline" | null | undefined;
|
|
137
137
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
138
|
-
} &
|
|
138
|
+
} & class_variance_authority_types18.ClassProp) | undefined) => string;
|
|
139
139
|
/** The primary clickable item in a sidebar menu; shows a tooltip when collapsed to icons. */
|
|
140
140
|
declare function SidebarMenuButton({
|
|
141
141
|
asChild,
|
|
@@ -152,7 +152,7 @@ declare function SidebarMenuButton({
|
|
|
152
152
|
isActive?: boolean;
|
|
153
153
|
/** Tooltip shown when the sidebar is collapsed to icons; string or `TooltipContent` props. */
|
|
154
154
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
155
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
155
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime198.JSX.Element;
|
|
156
156
|
/** Secondary action button anchored to the right of a menu item (e.g. a kebab menu). */
|
|
157
157
|
declare function SidebarMenuAction({
|
|
158
158
|
className,
|
|
@@ -164,12 +164,12 @@ declare function SidebarMenuAction({
|
|
|
164
164
|
asChild?: boolean;
|
|
165
165
|
/** Only reveal the action on row hover/focus instead of always showing it. */
|
|
166
166
|
showOnHover?: boolean;
|
|
167
|
-
}):
|
|
167
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
168
168
|
/** Count/status badge anchored to the right of a menu item. */
|
|
169
169
|
declare function SidebarMenuBadge({
|
|
170
170
|
className,
|
|
171
171
|
...props
|
|
172
|
-
}: React.ComponentProps<"div">):
|
|
172
|
+
}: React.ComponentProps<"div">): react_jsx_runtime198.JSX.Element;
|
|
173
173
|
/** Loading placeholder for a menu item, with a random text width for a natural skeleton. */
|
|
174
174
|
declare function SidebarMenuSkeleton({
|
|
175
175
|
className,
|
|
@@ -178,17 +178,17 @@ declare function SidebarMenuSkeleton({
|
|
|
178
178
|
}: React.ComponentProps<"div"> & {
|
|
179
179
|
/** Also render a square icon placeholder before the text. */
|
|
180
180
|
showIcon?: boolean;
|
|
181
|
-
}):
|
|
181
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
182
182
|
/** Nested `ul` list of sub-items under a menu item; hidden when collapsed to icons. */
|
|
183
183
|
declare function SidebarMenuSub({
|
|
184
184
|
className,
|
|
185
185
|
...props
|
|
186
|
-
}: React.ComponentProps<"ul">):
|
|
186
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime198.JSX.Element;
|
|
187
187
|
/** `li` row within a `SidebarMenuSub`. */
|
|
188
188
|
declare function SidebarMenuSubItem({
|
|
189
189
|
className,
|
|
190
190
|
...props
|
|
191
|
-
}: React.ComponentProps<"li">):
|
|
191
|
+
}: React.ComponentProps<"li">): react_jsx_runtime198.JSX.Element;
|
|
192
192
|
/** Clickable link for a sub-menu item (renders as an `a` by default). */
|
|
193
193
|
declare function SidebarMenuSubButton({
|
|
194
194
|
asChild,
|
|
@@ -203,7 +203,7 @@ declare function SidebarMenuSubButton({
|
|
|
203
203
|
size?: "sm" | "md";
|
|
204
204
|
/** Marks the sub-item as the current/active route. */
|
|
205
205
|
isActive?: boolean;
|
|
206
|
-
}):
|
|
206
|
+
}): react_jsx_runtime198.JSX.Element;
|
|
207
207
|
//#endregion
|
|
208
208
|
export { SidebarTrigger as C, SidebarSeparator as S, SidebarMenuSub as _, SidebarGroupAction as a, SidebarProvider as b, SidebarHeader as c, SidebarMenu as d, SidebarMenuAction as f, SidebarMenuSkeleton as g, SidebarMenuItem as h, SidebarGroup as i, SidebarInput as l, SidebarMenuButton as m, SidebarContent as n, SidebarGroupContent as o, SidebarMenuBadge as p, SidebarFooter as r, SidebarGroupLabel as s, Sidebar as t, SidebarInset as u, SidebarMenuSubButton as v, useSidebar as w, SidebarRail as x, SidebarMenuSubItem as y };
|
|
209
209
|
//# sourceMappingURL=index53.d.cts.map
|
package/dist/index53.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index53.d.cts","names":[],"sources":["../src/primitives/Sidebar/Sidebar.tsx"],"mappings":";;;;;;;;;;KAuBK,mBAAA;;;;EAAA,UAAA,EAAA,OAAA;EAaI,aAAU,EAAA,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAUV,QAAA,EAAA,OAAA;EAAe,aAAA,EAAA,GAAA,GAAA,IAAA;;;iBAVf,UAAA,CAAA,CAaO,EAbG,mBAaH;;iBAHP,eAAA,CAKP;EAAA,WAAA;EAAA,IAAA,EAHM,QAGN;EAAA,YAAA,EAFc,WAEd;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAGC,KAAA,CAAM,cAHP,CAAA,KAAA,CAAA,GAAA;;aAGO,CAAA,EAAA,OAAA;;EAOR,IAAA,CAAA,EAAA,OAAA;EAoFQ;EAAO,YAAA,CAAA,EAAA,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;IApFf,
|
|
1
|
+
{"version":3,"file":"index53.d.cts","names":[],"sources":["../src/primitives/Sidebar/Sidebar.tsx"],"mappings":";;;;;;;;;;KAuBK,mBAAA;;;;EAAA,UAAA,EAAA,OAAA;EAaI,aAAU,EAAA,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAUV,QAAA,EAAA,OAAA;EAAe,aAAA,EAAA,GAAA,GAAA,IAAA;;;iBAVf,UAAA,CAAA,CAaO,EAbG,mBAaH;;iBAHP,eAAA,CAKP;EAAA,WAAA;EAAA,IAAA,EAHM,QAGN;EAAA,YAAA,EAFc,WAEd;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAGC,KAAA,CAAM,cAHP,C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CAAA,GAAA;EAenE;EAAY,OAAA,CAAA,EAAA,OAAA;;aAAgC,CAAA,EAAA,OAAA;IA2LpD,oBAAA,CAAA,GAAA,CAAA,OA3LyE;AAAA;AAAA,iBAoNjE,gBAAA,CAxMiB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwMyB,KAAA,CAAM,cAxM/B,CAAA,KAAA,CAAA,CAAA,EAwMoD,oBAAA,CAAA,GAAA,CAAA,OAxMpD;;iBA4NjB,mBAAA,CA3NP;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EA+NC,KAAA,CAAM,cA/NP,CAAA,KAAA,CAAA,GAAA;;UAGC,CAAM,EAAA,OAAA;IA+NR,oBAAA,CAAA,GAAA,CAAA,OA5NA;AAAA;AAAA,iBAwPQ,cAAA,CAtOkB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsOsB,KAAA,CAAM,cAtO5B,CAAA,IAAA,CAAA,CAAA,EAsOgD,oBAAA,CAAA,GAAA,CAAA,OAtOhD;;iBAsPlB,kBAAA,CArPP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqPmD,KAAA,CAAM,cArPzD,CAAA,IAAA,CAAA,CAAA,EAqP6E,oBAAA,CAAA,GAAA,CAAA,OArP7E;;iBAiQO,oBAAA,CA9PA;EAAA,OAAA;EAAA,IAAA;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAoQN,KAAA,CAAM,cApQA,CAAA,GAAA,CAAA,GAAA;;EAGR,OAAA,CAAA,EAAA,OAAA;EAoBQ;EAAmB,IAAA,CAAA,EAAA,IAAA,GAAA,IAAA;;UAA0B,CAAM,EAAA,OAAA;IAoP3D,oBAAA,CAAA,GAAA,CAAA,OApPgF"}
|
package/dist/index53.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { t as Separator } from "./index9.js";
|
|
|
3
3
|
import { t as Input } from "./index32.js";
|
|
4
4
|
import { n as TooltipContent } from "./index52.js";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
|
-
import * as
|
|
8
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
9
9
|
|
|
10
10
|
//#region src/primitives/Sidebar/Sidebar.d.ts
|
|
11
11
|
type SidebarContextProps = {
|
|
@@ -35,7 +35,7 @@ declare function SidebarProvider({
|
|
|
35
35
|
open?: boolean;
|
|
36
36
|
/** Called when the open state changes (controlled mode). */
|
|
37
37
|
onOpenChange?: (open: boolean) => void;
|
|
38
|
-
}):
|
|
38
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
39
39
|
/** The sidebar panel itself: renders as a fixed desktop rail or a mobile Sheet, driven by `SidebarProvider` state. */
|
|
40
40
|
declare function Sidebar({
|
|
41
41
|
side,
|
|
@@ -51,53 +51,53 @@ declare function Sidebar({
|
|
|
51
51
|
variant?: "sidebar" | "floating" | "inset";
|
|
52
52
|
/** How the sidebar collapses: slide off-canvas, shrink to an icon rail, or never collapse. */
|
|
53
53
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
54
|
-
}):
|
|
54
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
55
55
|
/** Icon button that toggles the sidebar open/collapsed. */
|
|
56
56
|
declare function SidebarTrigger({
|
|
57
57
|
className,
|
|
58
58
|
onClick,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<typeof Button>):
|
|
60
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime85.JSX.Element;
|
|
61
61
|
/** Thin draggable rail along the sidebar edge that toggles it on click. */
|
|
62
62
|
declare function SidebarRail({
|
|
63
63
|
className,
|
|
64
64
|
...props
|
|
65
|
-
}: React.ComponentProps<"button">):
|
|
65
|
+
}: React.ComponentProps<"button">): react_jsx_runtime85.JSX.Element;
|
|
66
66
|
/** The main content region that sits beside the sidebar. */
|
|
67
67
|
declare function SidebarInset({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"main">):
|
|
70
|
+
}: React.ComponentProps<"main">): react_jsx_runtime85.JSX.Element;
|
|
71
71
|
/** Sidebar-styled text input, e.g. for a search field in the header. */
|
|
72
72
|
declare function SidebarInput({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof Input>):
|
|
75
|
+
}: React.ComponentProps<typeof Input>): react_jsx_runtime85.JSX.Element;
|
|
76
76
|
/** Top region of the sidebar, typically a brand mark or workspace switcher. */
|
|
77
77
|
declare function SidebarHeader({
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: React.ComponentProps<"div">):
|
|
80
|
+
}: React.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
81
81
|
/** Bottom region of the sidebar, typically a user menu or settings link. */
|
|
82
82
|
declare function SidebarFooter({
|
|
83
83
|
className,
|
|
84
84
|
...props
|
|
85
|
-
}: React.ComponentProps<"div">):
|
|
85
|
+
}: React.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
86
86
|
/** Horizontal divider between sidebar sections, inset to match the sidebar padding. */
|
|
87
87
|
declare function SidebarSeparator({
|
|
88
88
|
className,
|
|
89
89
|
...props
|
|
90
|
-
}: React.ComponentProps<typeof Separator>):
|
|
90
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime85.JSX.Element;
|
|
91
91
|
/** Scrollable middle region of the sidebar that holds the groups and menus. */
|
|
92
92
|
declare function SidebarContent({
|
|
93
93
|
className,
|
|
94
94
|
...props
|
|
95
|
-
}: React.ComponentProps<"div">):
|
|
95
|
+
}: React.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
96
96
|
/** A labelled section within the sidebar content. */
|
|
97
97
|
declare function SidebarGroup({
|
|
98
98
|
className,
|
|
99
99
|
...props
|
|
100
|
-
}: React.ComponentProps<"div">):
|
|
100
|
+
}: React.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
101
101
|
/** Heading for a `SidebarGroup`; hidden when the sidebar is collapsed to icons. */
|
|
102
102
|
declare function SidebarGroupLabel({
|
|
103
103
|
className,
|
|
@@ -106,7 +106,7 @@ declare function SidebarGroupLabel({
|
|
|
106
106
|
}: React.ComponentProps<"div"> & {
|
|
107
107
|
/** Render as the child element (Radix Slot) instead of a `div`. */
|
|
108
108
|
asChild?: boolean;
|
|
109
|
-
}):
|
|
109
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
110
110
|
/** Small action button anchored to the top-right of a `SidebarGroup` (e.g. an add button). */
|
|
111
111
|
declare function SidebarGroupAction({
|
|
112
112
|
className,
|
|
@@ -115,27 +115,27 @@ declare function SidebarGroupAction({
|
|
|
115
115
|
}: React.ComponentProps<"button"> & {
|
|
116
116
|
/** Render as the child element (Radix Slot) instead of a `button`. */
|
|
117
117
|
asChild?: boolean;
|
|
118
|
-
}):
|
|
118
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
119
119
|
/** Wrapper for the body of a `SidebarGroup`, below its label. */
|
|
120
120
|
declare function SidebarGroupContent({
|
|
121
121
|
className,
|
|
122
122
|
...props
|
|
123
|
-
}: React.ComponentProps<"div">):
|
|
123
|
+
}: React.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
124
124
|
/** `ul` list container for sidebar menu items. */
|
|
125
125
|
declare function SidebarMenu({
|
|
126
126
|
className,
|
|
127
127
|
...props
|
|
128
|
-
}: React.ComponentProps<"ul">):
|
|
128
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime85.JSX.Element;
|
|
129
129
|
/** `li` row within a `SidebarMenu`; holds a button plus optional action/badge. */
|
|
130
130
|
declare function SidebarMenuItem({
|
|
131
131
|
className,
|
|
132
132
|
...props
|
|
133
|
-
}: React.ComponentProps<"li">):
|
|
133
|
+
}: React.ComponentProps<"li">): react_jsx_runtime85.JSX.Element;
|
|
134
134
|
/** Style variants for `SidebarMenuButton` — `variant` (default | outline) and `size` (default | sm | lg). */
|
|
135
135
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
136
136
|
variant?: "default" | "outline" | null | undefined;
|
|
137
137
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
138
|
-
} &
|
|
138
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
139
139
|
/** The primary clickable item in a sidebar menu; shows a tooltip when collapsed to icons. */
|
|
140
140
|
declare function SidebarMenuButton({
|
|
141
141
|
asChild,
|
|
@@ -152,7 +152,7 @@ declare function SidebarMenuButton({
|
|
|
152
152
|
isActive?: boolean;
|
|
153
153
|
/** Tooltip shown when the sidebar is collapsed to icons; string or `TooltipContent` props. */
|
|
154
154
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
155
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
155
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime85.JSX.Element;
|
|
156
156
|
/** Secondary action button anchored to the right of a menu item (e.g. a kebab menu). */
|
|
157
157
|
declare function SidebarMenuAction({
|
|
158
158
|
className,
|
|
@@ -164,12 +164,12 @@ declare function SidebarMenuAction({
|
|
|
164
164
|
asChild?: boolean;
|
|
165
165
|
/** Only reveal the action on row hover/focus instead of always showing it. */
|
|
166
166
|
showOnHover?: boolean;
|
|
167
|
-
}):
|
|
167
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
168
168
|
/** Count/status badge anchored to the right of a menu item. */
|
|
169
169
|
declare function SidebarMenuBadge({
|
|
170
170
|
className,
|
|
171
171
|
...props
|
|
172
|
-
}: React.ComponentProps<"div">):
|
|
172
|
+
}: React.ComponentProps<"div">): react_jsx_runtime85.JSX.Element;
|
|
173
173
|
/** Loading placeholder for a menu item, with a random text width for a natural skeleton. */
|
|
174
174
|
declare function SidebarMenuSkeleton({
|
|
175
175
|
className,
|
|
@@ -178,17 +178,17 @@ declare function SidebarMenuSkeleton({
|
|
|
178
178
|
}: React.ComponentProps<"div"> & {
|
|
179
179
|
/** Also render a square icon placeholder before the text. */
|
|
180
180
|
showIcon?: boolean;
|
|
181
|
-
}):
|
|
181
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
182
182
|
/** Nested `ul` list of sub-items under a menu item; hidden when collapsed to icons. */
|
|
183
183
|
declare function SidebarMenuSub({
|
|
184
184
|
className,
|
|
185
185
|
...props
|
|
186
|
-
}: React.ComponentProps<"ul">):
|
|
186
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime85.JSX.Element;
|
|
187
187
|
/** `li` row within a `SidebarMenuSub`. */
|
|
188
188
|
declare function SidebarMenuSubItem({
|
|
189
189
|
className,
|
|
190
190
|
...props
|
|
191
|
-
}: React.ComponentProps<"li">):
|
|
191
|
+
}: React.ComponentProps<"li">): react_jsx_runtime85.JSX.Element;
|
|
192
192
|
/** Clickable link for a sub-menu item (renders as an `a` by default). */
|
|
193
193
|
declare function SidebarMenuSubButton({
|
|
194
194
|
asChild,
|
|
@@ -203,7 +203,7 @@ declare function SidebarMenuSubButton({
|
|
|
203
203
|
size?: "sm" | "md";
|
|
204
204
|
/** Marks the sub-item as the current/active route. */
|
|
205
205
|
isActive?: boolean;
|
|
206
|
-
}):
|
|
206
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
207
207
|
//#endregion
|
|
208
208
|
export { SidebarTrigger as C, SidebarSeparator as S, SidebarMenuSub as _, SidebarGroupAction as a, SidebarProvider as b, SidebarHeader as c, SidebarMenu as d, SidebarMenuAction as f, SidebarMenuSkeleton as g, SidebarMenuItem as h, SidebarGroup as i, SidebarInput as l, SidebarMenuButton as m, SidebarContent as n, SidebarGroupContent as o, SidebarMenuBadge as p, SidebarFooter as r, SidebarGroupLabel as s, Sidebar as t, SidebarInset as u, SidebarMenuSubButton as v, useSidebar as w, SidebarRail as x, SidebarMenuSubItem as y };
|
|
209
209
|
//# sourceMappingURL=index53.d.ts.map
|
package/dist/index54.d.cts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime194 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/primitives/Skeleton/Skeleton.d.ts
|
|
4
4
|
/** Animated shimmer placeholder for content that is still loading. */
|
|
5
5
|
declare function Skeleton({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<"div">):
|
|
8
|
+
}: React.ComponentProps<"div">): react_jsx_runtime194.JSX.Element;
|
|
9
9
|
/** Skeleton sized as a circular avatar placeholder (`size-10 rounded-full`). */
|
|
10
10
|
declare function SkeletonAvatar({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<"div">):
|
|
13
|
+
}: React.ComponentProps<"div">): react_jsx_runtime194.JSX.Element;
|
|
14
14
|
/** Skeleton sized as a single line of text (`h-4 w-full rounded-full`). */
|
|
15
15
|
declare function SkeletonLine({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: React.ComponentProps<"div">):
|
|
18
|
+
}: React.ComponentProps<"div">): react_jsx_runtime194.JSX.Element;
|
|
19
19
|
/** Skeleton sized as a larger block, e.g. an image or card body (`h-24 w-full`). */
|
|
20
20
|
declare function SkeletonObject({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<"div">):
|
|
23
|
+
}: React.ComponentProps<"div">): react_jsx_runtime194.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { SkeletonObject as i, SkeletonAvatar as n, SkeletonLine as r, Skeleton as t };
|
|
26
26
|
//# sourceMappingURL=index54.d.cts.map
|
package/dist/index54.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index54.d.cts","names":[],"sources":["../src/primitives/Skeleton/Skeleton.tsx"],"mappings":";;;;iBAGS,QAAA;;;GAAkC,KAAA,CAAM,wBAAqB,
|
|
1
|
+
{"version":3,"file":"index54.d.cts","names":[],"sources":["../src/primitives/Skeleton/Skeleton.tsx"],"mappings":";;;;iBAGS,QAAA;;;GAAkC,KAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;;AAAA,iBAO7D,cAAA,CAPQ;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAOgC,KAAA,CAAM,cAPtC,CAAA,KAAA,CAAA,CAAA,EAO2D,oBAAA,CAAA,GAAA,CAAA,OAP3D;;iBAkBR,YAAA,CAlBW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkB2B,KAAA,CAAM,cAlBjC,CAAA,KAAA,CAAA,CAAA,EAkBsD,oBAAA,CAAA,GAAA,CAAA,OAlBtD;;iBA6BX,cAAA,CA7B6D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6BrB,KAAA,CAAM,cA7Be,CAAA,KAAA,CAAA,CAAA,EA6BM,oBAAA,CAAA,GAAA,CAAA,OA7BN"}
|