@storepass/components 0.4.0 → 0.5.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/CHANGELOG.md +26 -0
- package/README.md +104 -68
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +9 -9
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog/index.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +3 -3
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +7 -7
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/Button.d.ts +5 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/Card.d.ts +8 -8
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/Carousel.d.ts +6 -6
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +5 -4
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/Combobox/Combobox.d.ts +22 -20
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Command/Command.d.ts +39 -2
- package/dist/components/Command/Command.d.ts.map +1 -1
- package/dist/components/Command/index.d.ts +1 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +6 -2
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +9 -9
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +12 -12
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/index.js +1 -1
- package/dist/components/FeaturedIcon/FeaturedIcon.d.ts +3 -3
- package/dist/components/FeaturedIcon/FeaturedIcon.d.ts.map +1 -1
- package/dist/components/FeaturedIcon/index.js +1 -1
- package/dist/components/Field/Field.d.ts +11 -11
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/Footer/Footer.d.ts +5 -5
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/FormField.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts.map +1 -1
- package/dist/components/Form/FormLayout.d.ts +3 -3
- package/dist/components/Form/FormLayout.d.ts.map +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/ImperativeDialog/ImperativeDialog.d.ts +1 -1
- package/dist/components/ImperativeDialog/ImperativeDialog.d.ts.map +1 -1
- package/dist/components/ImperativeDialog/index.js +1 -1
- package/dist/components/InlineAlert/InlineAlert.d.ts +1 -1
- package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -1
- package/dist/components/InlineAlert/index.js +1 -1
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +10 -5
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/components/InputGroup/index.js +1 -1
- package/dist/components/Item/Item.d.ts +9 -9
- package/dist/components/Item/Item.d.ts.map +1 -1
- package/dist/components/Item/index.js +1 -1
- package/dist/components/Kbd/Kbd.d.ts +2 -2
- package/dist/components/Kbd/Kbd.d.ts.map +1 -1
- package/dist/components/Kbd/index.js +1 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/LoadingIndicator/index.js +1 -1
- package/dist/components/MoneyAmount/MoneyAmount.d.ts +34 -0
- package/dist/components/MoneyAmount/MoneyAmount.d.ts.map +1 -0
- package/dist/components/MoneyAmount/formatMoney.d.ts +43 -0
- package/dist/components/MoneyAmount/formatMoney.d.ts.map +1 -0
- package/dist/components/MoneyAmount/index.d.ts +5 -0
- package/dist/components/MoneyAmount/index.d.ts.map +1 -0
- package/dist/components/MoneyAmount/index.js +1 -0
- package/dist/components/Navbar/Navbar.d.ts +10 -10
- package/dist/components/Navbar/Navbar.d.ts.map +1 -1
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/NumberField/NumberField.d.ts +7 -4
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/PageHeading/PageHeading.d.ts +83 -0
- package/dist/components/PageHeading/PageHeading.d.ts.map +1 -0
- package/dist/components/PageHeading/index.d.ts +3 -0
- package/dist/components/PageHeading/index.d.ts.map +1 -0
- package/dist/components/PageHeading/index.js +1 -0
- package/dist/components/PageLayout/PageLayout.d.ts +29 -0
- package/dist/components/PageLayout/PageLayout.d.ts.map +1 -0
- package/dist/components/PageLayout/index.d.ts +2 -0
- package/dist/components/PageLayout/index.d.ts.map +1 -0
- package/dist/components/PageLayout/index.js +1 -0
- package/dist/components/Pagination/Pagination.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Panel/Panel.d.ts +5 -5
- package/dist/components/Panel/Panel.d.ts.map +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/PinInput/PinInput.d.ts +3 -3
- package/dist/components/PinInput/PinInput.d.ts.map +1 -1
- package/dist/components/PinInput/index.js +1 -1
- package/dist/components/Progress/Progress.d.ts +1 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Rating/Rating.d.ts +1 -1
- package/dist/components/Rating/Rating.d.ts.map +1 -1
- package/dist/components/Rating/index.js +1 -1
- package/dist/components/Select/Select.d.ts +5 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Settings/Settings.d.ts +26 -36
- package/dist/components/Settings/Settings.d.ts.map +1 -1
- package/dist/components/Settings/index.d.ts +1 -1
- package/dist/components/Settings/index.d.ts.map +1 -1
- package/dist/components/Settings/index.js +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +15 -10
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Table/Table.d.ts +8 -8
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +11 -9
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tags/Tags.d.ts +1 -1
- package/dist/components/Tags/Tags.d.ts.map +1 -1
- package/dist/components/Tags/index.js +1 -1
- package/dist/components/Text/Text.d.ts +4 -4
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +5 -5
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VideoDialog/VideoDialog.d.ts +9 -9
- package/dist/components/VideoDialog/VideoDialog.d.ts.map +1 -1
- package/dist/components/VideoDialog/index.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index-27w72p7z.js +2 -0
- package/dist/{index-rypjyrpn.js → index-7abyvs9n.js} +1 -1
- package/dist/index-8b3c6nnb.js +2 -0
- package/dist/{index-8mzg78nw.js → index-9v1g4s39.js} +2 -2
- package/dist/index-f862wbmh.js +2 -0
- package/dist/index-qfdc271j.js +2 -0
- package/dist/{index-btjxn90p.js → index-s2mc6jzt.js} +2 -2
- package/dist/index-st80n69g.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/controlSize.d.ts +59 -0
- package/dist/lib/controlSize.d.ts.map +1 -0
- package/dist/lib/utils.js +1 -1
- package/dist/theme.css +211 -147
- package/package.json +24 -22
- package/dist/index-1cb5sns5.js +0 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from "react";
|
|
2
|
+
export interface PageLayoutProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
+
/** Focused forms, standard pages (including sidebars), or wider data views. */
|
|
4
|
+
width?: "reading" | "standard" | "wide";
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Centered, bounded page stack for product surfaces. Children span the whole
|
|
8
|
+
* measure; compose PageLayoutColumns wherever a section needs a sidebar.
|
|
9
|
+
* The app shell owns the surface, gutters, main landmark, and scrolling.
|
|
10
|
+
*/
|
|
11
|
+
export declare function PageLayout({ width, className, ...props }: PageLayoutProps): import("react").JSX.Element;
|
|
12
|
+
export interface PageLayoutColumnsProps extends ComponentPropsWithoutRef<"div"> {
|
|
13
|
+
/** Supporting content, kept after the primary content in reading/tab order. */
|
|
14
|
+
sidebar?: ReactNode;
|
|
15
|
+
/** Accessible name for this section's complementary landmark. */
|
|
16
|
+
sidebarLabel?: string;
|
|
17
|
+
/** For short sidebars only. Sticks within this split section on wide panes. */
|
|
18
|
+
stickySidebar?: boolean;
|
|
19
|
+
/** CSS top offset in sticky mode, including any shell header clearance. */
|
|
20
|
+
sidebarOffset?: CSSProperties["top"];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Optional main/sidebar split within a PageLayout. At 56rem of available
|
|
24
|
+
* section width, the sidebar occupies 18rem; below that it follows the main
|
|
25
|
+
* content with a hairline divider. Never hides content or adds a scroller.
|
|
26
|
+
* Sibling full-width sections remain outside the split and sticky boundary.
|
|
27
|
+
*/
|
|
28
|
+
export declare function PageLayoutColumns({ sidebar, sidebarLabel, stickySidebar, sidebarOffset, className, children, ...props }: PageLayoutColumnsProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=PageLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhF,MAAM,WAAW,eAAgB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACvE,+EAA+E;IAC/E,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAC1B,KAAkB,EAClB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,eAAe,+BAejB;AAED,MAAM,WAAW,sBAChB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACvC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EACjC,OAAO,EACP,YAAoC,EACpC,aAAqB,EACrB,aAAwB,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,sBAAsB,+BA8CxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACpB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{te as g}from"../../lib/utils.js";import{jsx as C,jsxs as H}from"react/jsx-runtime";function F({width:P="standard",className:y,...L}){return C("div",{...L,"data-slot":"page-layout",className:g("mx-auto flex w-full min-w-0 flex-col gap-5",P==="reading"&&"max-w-3xl",P==="standard"&&"max-w-[69rem]",P==="wide"&&"max-w-7xl",y)})}function G({sidebar:P,sidebarLabel:y="Related information",stickySidebar:L=!1,sidebarOffset:q="1.5rem",className:B,children:D,...E}){let z=P!==void 0&&P!==null&&P!==!1;return C("div",{...E,"data-slot":"page-layout-columns",className:g("@container/page-columns min-w-0",B),children:H("div",{className:g("grid min-w-0 grid-cols-1 items-start gap-8",z&&"@min-[56rem]/page-columns:grid-cols-[minmax(0,1fr)_18rem] @min-[56rem]/page-columns:gap-12"),children:[C("div",{"data-slot":"page-layout-content",className:"flex min-w-0 flex-col gap-8 [overflow-wrap:anywhere]",children:D}),z&&C("aside",{"data-slot":"page-layout-sidebar","aria-label":y,style:{"--page-sidebar-offset":typeof q==="number"?`${q}px`:q},className:g("flex min-w-0 flex-col gap-6 border-t border-hairline pt-6 [overflow-wrap:anywhere] @min-[56rem]/page-columns:border-t-0 @min-[56rem]/page-columns:pt-0",L&&"@min-[56rem]/page-columns:sticky @min-[56rem]/page-columns:top-[var(--page-sidebar-offset)]"),children:P})]})})}export{G as PageLayoutColumns,F as PageLayout};export{F as Xa,G as Ya};
|
|
@@ -8,22 +8,22 @@ declare const paginationEllipsisVariants: (props?: import("class-variance-author
|
|
|
8
8
|
/**
|
|
9
9
|
* Page navigation with brand-tinted active chips, ghost hover states, and Previous/Next controls built on Button.
|
|
10
10
|
*/
|
|
11
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react
|
|
12
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react
|
|
13
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react
|
|
11
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react").JSX.Element;
|
|
12
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react").JSX.Element;
|
|
13
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react").JSX.Element;
|
|
14
14
|
export interface PaginationLinkProps extends Omit<React.ComponentProps<"a">, "children">, VariantProps<typeof paginationLinkVariants> {
|
|
15
15
|
isActive?: boolean;
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
}
|
|
18
|
-
declare function PaginationLink({ className, isActive, children, ...props }: PaginationLinkProps): import("react
|
|
18
|
+
declare function PaginationLink({ className, isActive, children, ...props }: PaginationLinkProps): import("react").JSX.Element;
|
|
19
19
|
export interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
|
|
20
20
|
text?: string;
|
|
21
21
|
}
|
|
22
|
-
declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): import("react
|
|
22
|
+
declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): import("react").JSX.Element;
|
|
23
23
|
export interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
|
|
24
24
|
text?: string;
|
|
25
25
|
}
|
|
26
|
-
declare function PaginationNext({ className, text, ...props }: PaginationNextProps): import("react
|
|
27
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react
|
|
26
|
+
declare function PaginationNext({ className, text, ...props }: PaginationNextProps): import("react").JSX.Element;
|
|
27
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react").JSX.Element;
|
|
28
28
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, paginationContentVariants, paginationEllipsisVariants, paginationLinkVariants, paginationVariants, };
|
|
29
29
|
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,kBAAkB,oFAA4C,CAAC;AAErE,QAAA,MAAM,yBAAyB,oFAAmC,CAAC;AAEnE,QAAA,MAAM,sBAAsB;;8EAU1B,CAAC;AAEH,QAAA,MAAM,0BAA0B,oFAE/B,CAAC;AAEF;;GAEG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,kBAAkB,oFAA4C,CAAC;AAErE,QAAA,MAAM,yBAAyB,oFAAmC,CAAC;AAEnE,QAAA,MAAM,sBAAsB;;8EAU1B,CAAC;AAEH,QAAA,MAAM,0BAA0B,oFAE/B,CAAC;AAEF;;GAEG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BASvE;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+BAQ5B;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+BAE/D;AAED,MAAM,WAAW,mBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,EAClD,YAAY,CAAC,OAAO,sBAAsB,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,mBAAmB,+BAmBrB;AAED,MAAM,WAAW,uBAChB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,IAAiB,EACjB,GAAG,KAAK,EACR,EAAE,uBAAuB,+BAoBzB;AAED,MAAM,WAAW,mBAChB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,IAAa,EACb,GAAG,KAAK,EACR,EAAE,mBAAmB,+BAoBrB;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+BAY9B;AAED,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,GAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../Button/index.js";import{
|
|
1
|
+
import"../Button/index.js";import{ad as F}from"../../index-8b3c6nnb.js";import"../../index-st80n69g.js";import"../Icon/index.js";import{se as D}from"../../index-7abyvs9n.js";import{te as y}from"../../lib/utils.js";import{faChevronLeft as S,faChevronRight as T,faEllipsis as U}from"@fortawesome/pro-solid-svg-icons";import{cva as G}from"class-variance-authority";import{jsx as q,jsxs as H}from"react/jsx-runtime";var J=G("mx-auto flex w-full justify-center"),K=G("flex items-center gap-0.5"),M=G("",{variants:{isActive:{true:"bg-accent text-foreground",false:"text-muted-foreground"}},defaultVariants:{isActive:!1}}),O=G("flex size-9 items-center justify-center text-muted-foreground");function W({className:P,...k}){return q("nav",{"aria-label":"pagination","data-slot":"pagination",className:y(J(),P),...k})}function X({className:P,...k}){return q("ul",{"data-slot":"pagination-content",className:y(K(),P),...k})}function Y({...P}){return q("li",{"data-slot":"pagination-item",...P})}function Z({className:P,isActive:k,children:z,...Q}){return q(F,{variant:"ghost",size:"icon",className:y(M({isActive:k}),P),nativeButton:!1,render:q("a",{"aria-current":k?"page":void 0,"data-slot":"pagination-link","data-active":k,...Q}),children:z})}function _({className:P,text:k="Previous",...z}){return H(F,{variant:"ghost",size:"md",className:y("pl-1.5",P),nativeButton:!1,render:q("a",{"aria-label":"Go to previous page","data-slot":"pagination-link",...z}),children:[q(D,{icon:S,"data-slot":"icon",className:"rtl:rotate-180"}),q("span",{className:"hidden sm:block",children:k})]})}function $({className:P,text:k="Next",...z}){return H(F,{variant:"ghost",size:"md",className:y("pr-1.5",P),nativeButton:!1,render:q("a",{"aria-label":"Go to next page","data-slot":"pagination-link",...z}),children:[q("span",{className:"hidden sm:block",children:k}),q(D,{icon:T,"data-slot":"icon",className:"rtl:rotate-180"})]})}function b({className:P,...k}){return H("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:y(O(),P),...k,children:[q(D,{icon:U,"data-slot":"icon"}),q("span",{className:"sr-only",children:"More pages"})]})}export{J as paginationVariants,M as paginationLinkVariants,O as paginationEllipsisVariants,K as paginationContentVariants,_ as PaginationPrevious,$ as PaginationNext,Z as PaginationLink,Y as PaginationItem,b as PaginationEllipsis,X as PaginationContent,W as Pagination};export{J as Za,K as _a,M as $a,O as ab,W as bb,X as cb,Y as db,Z as eb,_ as fb,$ as gb,b as hb};
|
|
@@ -5,7 +5,7 @@ import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
|
5
5
|
*
|
|
6
6
|
* The "gray canvas with a top-level border" that white Cards/inputs float on
|
|
7
7
|
* top of. Backed by the theme's semantic elevation scale (bg-tertiary =
|
|
8
|
-
*
|
|
8
|
+
* gray-100) rather than a hard-coded grey value, so it stays themeable and
|
|
9
9
|
* dark-mode ready.
|
|
10
10
|
*
|
|
11
11
|
* Structure: a flex column that fills its parent's height with an optional
|
|
@@ -20,7 +20,7 @@ export interface PanelProps extends Omit<ComponentPropsWithoutRef<"div">, "class
|
|
|
20
20
|
className?: string;
|
|
21
21
|
children?: ReactNode;
|
|
22
22
|
}
|
|
23
|
-
export declare function Panel({ tone, className, children, ...props }: PanelProps): import("react
|
|
23
|
+
export declare function Panel({ tone, className, children, ...props }: PanelProps): import("react").JSX.Element;
|
|
24
24
|
declare const panelHeaderVariants: (props?: ({
|
|
25
25
|
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
26
26
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -28,7 +28,7 @@ export interface PanelHeaderProps extends Omit<ComponentPropsWithoutRef<"div">,
|
|
|
28
28
|
className?: string;
|
|
29
29
|
children?: ReactNode;
|
|
30
30
|
}
|
|
31
|
-
export declare function PanelHeader({ padding, className, children, ...props }: PanelHeaderProps): import("react
|
|
31
|
+
export declare function PanelHeader({ padding, className, children, ...props }: PanelHeaderProps): import("react").JSX.Element;
|
|
32
32
|
declare const panelBodyVariants: (props?: ({
|
|
33
33
|
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
34
34
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -36,7 +36,7 @@ export interface PanelBodyProps extends Omit<ComponentPropsWithoutRef<"div">, "c
|
|
|
36
36
|
className?: string;
|
|
37
37
|
children?: ReactNode;
|
|
38
38
|
}
|
|
39
|
-
export declare function PanelBody({ padding, className, children, ...props }: PanelBodyProps): import("react
|
|
39
|
+
export declare function PanelBody({ padding, className, children, ...props }: PanelBodyProps): import("react").JSX.Element;
|
|
40
40
|
declare const panelFooterVariants: (props?: ({
|
|
41
41
|
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
42
42
|
justify?: "center" | "end" | "start" | "between" | null | undefined;
|
|
@@ -45,6 +45,6 @@ export interface PanelFooterProps extends Omit<ComponentPropsWithoutRef<"div">,
|
|
|
45
45
|
className?: string;
|
|
46
46
|
children?: ReactNode;
|
|
47
47
|
}
|
|
48
|
-
export declare function PanelFooter({ padding, justify, className, children, ...props }: PanelFooterProps): import("react
|
|
48
|
+
export declare function PanelFooter({ padding, justify, className, children, ...props }: PanelFooterProps): import("react").JSX.Element;
|
|
49
49
|
export { panelBodyVariants, panelFooterVariants, panelHeaderVariants, panelVariants, };
|
|
50
50
|
//# sourceMappingURL=Panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjE;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,aAAa;;8EAiBlB,CAAC;AAEF,MAAM,WAAW,UAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,aAAa,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,E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AK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAC3B,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gBAAgB,+BAUlB;AAED,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as k}from"../../lib/utils.js";import{cva as q}from"class-variance-authority";import{jsx as w}from"react/jsx-runtime";var z=q("flex min-h-0 flex-col overflow-hidden rounded-lg border",{variants:{tone:{sunken:"border-border bg-tertiary",raised:"border-border bg-card",plain:"border-transparent bg-transparent"}},defaultVariants:{tone:"sunken"}});function G({tone:P,className:B,children:F,...H}){return w("div",{"data-slot":"panel",className:k(z({tone:P}),B),...H,children:F})}var A=q("flex shrink-0 items-center justify-between border-b border-border",{variants:{padding:{none:"",sm:"px-4 py-2.5",md:"px-6 py-3",lg:"px-6 py-4"}},defaultVariants:{padding:"md"}});function I({padding:P,className:B,children:F,...H}){return w("div",{"data-slot":"panel-header",className:k(A({padding:P}),B),...H,children:F})}var C=q("min-h-0 flex-1 overflow-y-auto",{variants:{padding:{none:"",sm:"p-4",md:"p-6",lg:"p-8"}},defaultVariants:{padding:"md"}});function J({padding:P,className:B,children:F,...H}){return w("div",{"data-slot":"panel-body",className:k(C({padding:P}),B),...H,children:F})}var D=q("flex shrink-0 items-center border-t border-border",{variants:{padding:{none:"",sm:"px-4 py-2.5",md:"px-6 py-3",lg:"px-6 py-4"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"}},defaultVariants:{padding:"md",justify:"start"}});function K({padding:P,justify:B,className:F,children:H,...E}){return w("div",{"data-slot":"panel-footer",className:k(D({padding:P,justify:B}),F),...E,children:H})}export{z as panelVariants,A as panelHeaderVariants,D as panelFooterVariants,C as panelBodyVariants,I as PanelHeader,K as PanelFooter,J as PanelBody,G as Panel};export{z as ib,G as jb,A as kb,I as lb,C as mb,J as nb,D as ob,K as pb};
|
|
@@ -2,15 +2,15 @@ import { OTPField } from "@base-ui/react/otp-field";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
declare const pinInputVariants: (props?: ({
|
|
5
|
-
size?: "sm" | "md" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | "fluid" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface PinInputProps extends Omit<React.ComponentPropsWithoutRef<typeof OTPField.Root>, "className" | "length">, VariantProps<typeof pinInputVariants> {
|
|
8
8
|
className?: string;
|
|
9
9
|
length?: number;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* A one-time-code input that renders a row of single-character cells for entering verification codes, with paste and caret handling across cells.
|
|
12
|
+
* A one-time-code input that renders a row of single-character cells for entering verification codes, with paste and caret handling across cells. `size="fluid"` makes the row fill its container, scaling cells, type, and radii proportionally.
|
|
13
13
|
*/
|
|
14
|
-
export declare function PinInput({ size, length, className, ...props }: PinInputProps):
|
|
14
|
+
export declare function PinInput({ size, length, className, ...props }: PinInputProps): React.JSX.Element;
|
|
15
15
|
export { pinInputVariants };
|
|
16
16
|
//# sourceMappingURL=PinInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../src/components/PinInput/PinInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../src/components/PinInput/PinInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,gBAAgB;;8EA0BrB,CAAC;AAEF,MAAM,WAAW,aAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,EACpD,WAAW,GAAG,QAAQ,CACtB,EACD,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACxB,IAAI,EACJ,MAAU,EACV,SAAS,EACT,GAAG,KAAK,EACR,EAAE,aAAa,qBA8Bf;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as P}from"../../lib/utils.js";import{OTPField as D}from"@base-ui/react/otp-field";import{cva as L}from"class-variance-authority";import{jsx as E}from"react/jsx-runtime";var G=L(["flex items-center justify-center rounded-lg border bg-background text-center font-medium text-foreground shadow-xs transition-[color,box-shadow] outline-none","border-input","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[focused]:border-ring data-[focused]:ring-ring/50 data-[focused]:ring-[3px]","data-[invalid]:border-destructive data-[invalid]:ring-destructive/20","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],{variants:{size:{sm:"size-10 text-base",md:"size-12 text-lg",lg:"size-14 text-xl",fluid:["aspect-square h-auto w-auto min-w-0 flex-1","text-[length:max(1rem,calc(var(--pin-cell)*0.45))]","rounded-[max(0.5rem,calc(var(--pin-cell)*0.12))]"]}},defaultVariants:{size:"md"}});function M({size:A,length:I=6,className:H,...J}){let B=A==="fluid";return E(D.Root,{"data-slot":"pin-input",length:I,className:P("flex items-center gap-2",B&&"@container w-full gap-[2%]",H),...J,children:Array.from({length:I},(C,K)=>`cell-${K}`).map((C)=>E(D.Input,{"data-slot":"pin-input-cell",className:P(G({size:A})),style:B?{"--pin-cell":`calc((100cqw - ${(I-1)*2}cqw) / ${I})`}:void 0},C))})}export{G as pinInputVariants,M as PinInput};export{G as F,M as G};
|
|
@@ -15,6 +15,6 @@ export interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeo
|
|
|
15
15
|
/**
|
|
16
16
|
* A horizontal progress bar component built on Base UI's Progress primitive. Supports determinate values, indeterminate state, semantic color variants, and optional label/value display.
|
|
17
17
|
*/
|
|
18
|
-
export declare function Progress({ size, color, className, label, showValue, value, ...props }: ProgressProps):
|
|
18
|
+
export declare function Progress({ size, color, className, label, showValue, value, ...props }: ProgressProps): React.JSX.Element;
|
|
19
19
|
export { progressIndicatorVariants, progressTrackVariants };
|
|
20
20
|
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,qBAAqB;;8EAc1B,CAAC;AAEF,QAAA,MAAM,yBAAyB;;8EAgB9B,CAAC;AAEF,MAAM,WAAW,aAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,EACxD,WAAW,CACX,EACD,YAAY,CAAC,OAAO,qBAAqB,CAAC,EAC1C,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,qBAAqB;;8EAc1B,CAAC;AAEF,QAAA,MAAM,yBAAyB;;8EAgB9B,CAAC;AAEF,MAAM,WAAW,aAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,EACxD,WAAW,CACX,EACD,YAAY,CAAC,OAAO,qBAAqB,CAAC,EAC1C,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,aAAa,qBAqCf;AAED,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as C}from"../../lib/utils.js";import{Progress as f}from"@base-ui/react/progress";import{cva as G}from"class-variance-authority";import{jsx as q,jsxs as F}from"react/jsx-runtime";var H=G("relative w-full overflow-hidden rounded-full bg-ink-well",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),J=G("h-full rounded-full transition-all data-[indeterminate]:w-full data-[indeterminate]:animate-pulse",{variants:{color:{brand:"bg-primary",success:"bg-success",warning:"bg-warning",error:"bg-destructive",info:"bg-info"}},defaultVariants:{color:"brand"}});function R({size:K,color:L,className:M,label:D,showValue:E,value:O,...Q}){return F(f.Root,{"data-slot":"progress",className:C("flex w-full flex-col gap-1.5",M),value:O,...Q,children:[(D||E)&&F("div",{className:"flex items-center justify-between",children:[D&&q(f.Label,{"data-slot":"progress-label",className:"text-sm font-medium text-foreground",children:D}),E&&q(f.Value,{"data-slot":"progress-value",className:"ml-auto text-sm tabular-nums text-muted-foreground"})]}),q(f.Track,{"data-slot":"progress-track",className:C(H({size:K})),children:q(f.Indicator,{"data-slot":"progress-indicator",className:C(J({color:L}))})})]})}export{H as progressTrackVariants,J as progressIndicatorVariants,R as Progress};export{H as ec,J as fc,R as gc};
|
|
@@ -20,7 +20,7 @@ export interface RadioGroupItemProps extends Omit<React.ComponentPropsWithoutRef
|
|
|
20
20
|
/**
|
|
21
21
|
* A radio group component for selecting a single option from a list.
|
|
22
22
|
*/
|
|
23
|
-
export declare function RadioGroup({ orientation, className, ...props }: RadioGroupProps):
|
|
24
|
-
export declare function RadioGroupItem({ size, className, ...props }: RadioGroupItemProps):
|
|
23
|
+
export declare function RadioGroup({ orientation, className, ...props }: RadioGroupProps): React.JSX.Element;
|
|
24
|
+
export declare function RadioGroupItem({ size, className, ...props }: RadioGroupItemProps): React.JSX.Element;
|
|
25
25
|
export { radioGroupVariants, radioIndicatorVariants, radioItemVariants };
|
|
26
26
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,kBAAkB;;8EAUtB,CAAC;AAEH,QAAA,MAAM,iBAAiB;;8EAqBtB,CAAC;AAEF,QAAA,MAAM,sBAAsB;;8EAc3B,CAAC;AAEF,MAAM,WAAW,eAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,EACrD,WAAW,CACX,EACD,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,EAC3E,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAC1B,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACR,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,kBAAkB;;8EAUtB,CAAC;AAEH,QAAA,MAAM,iBAAiB;;8EAqBtB,CAAC;AAEF,QAAA,MAAM,sBAAsB;;8EAc3B,CAAC;AAEF,MAAM,WAAW,eAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,EACrD,WAAW,CACX,EACD,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,EAC3E,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAC1B,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACR,EAAE,eAAe,qBAQjB;AAED,wBAAgB,cAAc,CAAC,EAC9B,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACR,EAAE,mBAAmB,qBA0BrB;AAED,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as P}from"../../lib/utils.js";import{Radio as w}from"@base-ui/react/radio";import{RadioGroup as F}from"@base-ui/react/radio-group";import{cva as q}from"class-variance-authority";import{jsx as R}from"react/jsx-runtime";var y=q("grid gap-3",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),C=q(["aspect-square shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none","border-input bg-transparent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[invalid]:ring-destructive/20 data-[invalid]:border-destructive","data-[checked]:border-primary data-[checked]:bg-primary"],{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),D=q("relative flex size-full items-center justify-center",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}});function H({orientation:G,className:f,...k}){return R(F,{"data-slot":"radio-group",className:P(y({orientation:G}),f),...k})}function I({size:G,className:f,...k}){let E={sm:"size-1.5",md:"size-2",lg:"size-2.5"}[G||"md"];return R(w.Root,{"data-slot":"radio-group-item",className:P(C({size:G}),f),...k,children:R(w.Indicator,{"data-slot":"radio-group-indicator",className:P(D({size:G})),children:R("span",{className:P("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground",E)})})})}export{C as radioItemVariants,D as radioIndicatorVariants,y as radioGroupVariants,I as RadioGroupItem,H as RadioGroup};export{y as H,C as I,D as J,H as K,I as L};
|
|
@@ -18,6 +18,6 @@ export interface RatingProps extends Omit<React.ComponentProps<"div">, "onChange
|
|
|
18
18
|
*
|
|
19
19
|
* Size controls star glyph size: sm=text-base, md=text-lg, lg=text-2xl.
|
|
20
20
|
*/
|
|
21
|
-
export declare function Rating({ value: valueProp, defaultValue, onValueChange, max, readOnly, disabled, size, className, "aria-label": ariaLabel, ...props }: RatingProps):
|
|
21
|
+
export declare function Rating({ value: valueProp, defaultValue, onValueChange, max, readOnly, disabled, size, className, "aria-label": ariaLabel, ...props }: RatingProps): React.JSX.Element;
|
|
22
22
|
export { ratingVariants };
|
|
23
23
|
//# sourceMappingURL=Rating.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/Rating.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,cAAc;;8EAWlB,CAAC;AAEH,MAAM,WAAW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,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EACtB,KAAK,EAAE,SAAS,EAChB,YAAY,EACZ,aAAa,EACb,GAAO,EACP,QAAgB,EAChB,QAAgB,EAChB,IAAI,EACJ,SAAS,EACT,YAAY,EAAE,SAAoB,EAClC,GAAG,KAAK,EACR,EAAE,WAAW,qBAyGb;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{se as J}from"../../index-7abyvs9n.js";import{te as E}from"../../lib/utils.js";import{faStar as K}from"@fortawesome/pro-solid-svg-icons";import{cva as z}from"class-variance-authority";import*as M from"react";import{jsx as B}from"react/jsx-runtime";var Q=z("inline-flex items-center gap-0.5",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-2xl"}},defaultVariants:{size:"md"}});function C({value:T,defaultValue:g,onValueChange:w,max:F=5,readOnly:H=!1,disabled:G=!1,size:U,className:W,"aria-label":X="Rating",...Y}){let Z=T!==void 0,[O,S]=M.useState(g??0),[y,_]=M.useState(null),q=Z?T??0:O;function $(R){if(!Z)S(R);w?.(R)}function P(R,A){let k=null;if(R.key==="ArrowRight"||R.key==="ArrowUp")k=Math.min(F,A+1);else if(R.key==="ArrowLeft"||R.key==="ArrowDown")k=Math.max(1,A-1);else if(R.key==="Home")k=1;else if(R.key==="End")k=F;if(k!==null)R.preventDefault(),$(k),R.currentTarget.closest('[data-slot="rating"]')?.querySelectorAll('[data-slot="rating-star"]')[k-1]?.focus()}let D=Array.from({length:F},(R,A)=>A+1),f=y??q;if(H)return B("div",{"data-slot":"rating",role:"img","aria-label":`${X}: ${q} out of ${F}`,className:E(Q({size:U}),W),...Y,children:D.map((R)=>B("span",{"data-slot":"rating-star",className:E("transition-colors",R<=q?"text-warning":"text-muted-foreground/30"),children:B(J,{icon:K})},R))});return B("div",{"data-slot":"rating",role:"radiogroup","aria-label":X,"aria-disabled":G||void 0,"data-disabled":G||void 0,className:E(Q({size:U}),"data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",W),...Y,children:D.map((R)=>B("button",{type:"button","data-slot":"rating-star",role:"radio","aria-checked":q===R,"aria-label":`${R} ${R===1?"star":"stars"}`,disabled:G,tabIndex:q===R||q===0&&R===1?0:-1,onClick:()=>$(R),onMouseEnter:()=>_(R),onMouseLeave:()=>_(null),onKeyDown:(A)=>P(A,R),className:E("rounded-sm outline-none transition-colors cursor-pointer","focus-visible:ring-[3px] focus-visible:ring-ring/50",R<=f?"text-warning":"text-muted-foreground/30"),children:B(J,{icon:K})},R))})}export{Q as ratingVariants,C as Rating};export{Q as M,C as N};
|
|
@@ -29,7 +29,11 @@ export interface SelectProps {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* A dropdown select component for choosing from a list of options.
|
|
32
|
+
*
|
|
33
|
+
* Size follows the shared control-size contract (h-8 / h-9 / h-10,
|
|
34
|
+
* text-sm/font-medium) so the trigger aligns with Button, Input, Combobox, and
|
|
35
|
+
* NumberField in a row. The chevron uses the trailing-icon edge inset.
|
|
32
36
|
*/
|
|
33
|
-
export declare function Select({ options, value, defaultValue, onValueChange, placeholder, label, error, disabled, size, className, name, width, }: SelectProps): import("react
|
|
37
|
+
export declare function Select({ options, value, defaultValue, onValueChange, placeholder, label, error, disabled, size, className, name, width, }: SelectProps): import("react").JSX.Element;
|
|
34
38
|
export { selectItemVariants, selectPopupVariants, selectTriggerVariants };
|
|
35
39
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAMA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-1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tc as D}from"../Field/index.js";import{Ld as A}from"../../index-st80n69g.js";import"../Icon/index.js";import{se as q}from"../../index-7abyvs9n.js";import{te as B}from"../../lib/utils.js";import{Select as P}from"@base-ui/react/select";import{faCheck as C,faChevronDown as $,faChevronUp as O}from"@fortawesome/pro-solid-svg-icons";import{cva as J}from"class-variance-authority";import{jsx as S,jsxs as k}from"react/jsx-runtime";var G=J(["flex w-full items-center justify-between gap-2 rounded-lg border border-input bg-background whitespace-nowrap shadow-xs","text-foreground","transition-[color,box-shadow] outline-none select-none cursor-default","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[popup-open]:border-ring","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[placeholder]:text-muted-foreground","[&_svg:not([class*='text-'])]:text-muted-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:A},defaultVariants:{size:"md"}}),T=J(["bg-background text-foreground","relative z-50 max-h-[var(--available-height)] min-w-[var(--anchor-width)] overflow-hidden rounded-lg border border-border shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity]","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[side=bottom]:data-[starting-style]:scale-95 data-[side=top]:data-[starting-style]:scale-95","data-[side=bottom]:data-[ending-style]:scale-95 data-[side=top]:data-[ending-style]:scale-95","data-[side=none]:translate-y-px"]),Z=J(["relative flex w-full cursor-default items-center gap-2 rounded-sm pr-8 pl-2 outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","[&_svg:not([class*='text-'])]:text-muted-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"],{variants:{size:{sm:"py-1 text-sm",md:"py-1.5 text-sm",lg:"py-1.5 pl-2.5 text-sm"}},defaultVariants:{size:"md"}});function _({options:K,value:v,defaultValue:E,onValueChange:F,placeholder:R="Select an option",label:H,error:M,disabled:m,size:Q,className:z,name:U,width:y}){let L=D(),W=U||H?.toLowerCase().replace(/\s+/g,"-"),V=y?{width:typeof y==="number"?`${y}px`:y}:void 0,X=k(P.Root,{name:U,value:v,defaultValue:E,onValueChange:F,disabled:m,children:[k(P.Trigger,{id:W,"data-slot":"select-trigger",className:B(G({size:Q}),z),children:[S(P.Value,{"data-slot":"select-value",className:"line-clamp-1 flex items-center gap-2",children:(f)=>{let Y=K.find((g)=>g.value===f);return Y?Y.label:R}}),S(P.Icon,{className:"flex opacity-50",children:S(q,{icon:$})})]}),S(P.Portal,{children:S(P.Positioner,{className:"z-50 outline-none",children:k(P.Popup,{"data-slot":"select-content",className:B(T()),children:[S(P.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:"top-0 z-10 flex h-6 w-full cursor-default items-center justify-center rounded-t-lg bg-background text-muted-foreground",children:S(q,{icon:O,className:"size-3"})}),S(P.List,{className:"p-1 max-h-[var(--available-height)] overflow-y-auto scroll-my-6",children:K.map((f)=>k(P.Item,{value:f.value,disabled:f.disabled,"data-slot":"select-item",className:B(Z({size:Q})),children:[S("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:S(P.ItemIndicator,{children:S(q,{icon:C,className:"size-4 text-primary"})})}),S(P.ItemText,{children:f.label})]},f.value))}),S(P.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:"bottom-0 z-10 flex h-6 w-full cursor-default items-center justify-center rounded-b-lg bg-background text-muted-foreground",children:S(q,{icon:$,className:"size-3"})})]})})})]});if(L)return X;return k("div",{className:"flex flex-col gap-1",style:V,children:[H&&S("label",{htmlFor:W,className:"text-sm font-medium text-foreground",children:H}),X,M&&S("span",{className:"text-sm text-destructive",children:M})]})}export{G as selectTriggerVariants,T as selectPopupVariants,Z as selectItemVariants,_ as Select};export{G as O,T as P,Z as Q,_ as R};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
2
1
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import {
|
|
4
|
-
import { type
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
+
import { type PageHeadingBackLinkProps } from "../PageHeading/PageHeading";
|
|
4
|
+
import { type SidebarItemProps } from "../Sidebar/Sidebar";
|
|
5
5
|
declare const settingsContainerVariants: (props?: ({
|
|
6
|
-
width?: "
|
|
6
|
+
width?: "wide" | "settings" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface SettingsContainerProps extends Omit<ComponentPropsWithoutRef<"div">, "className">, VariantProps<typeof settingsContainerVariants> {
|
|
9
9
|
/**
|
|
@@ -22,21 +22,17 @@ export interface SettingsContainerProps extends Omit<ComponentPropsWithoutRef<"d
|
|
|
22
22
|
* and content rhythm. Full-bleed surfaces (product tables, dashboards) should
|
|
23
23
|
* not use it.
|
|
24
24
|
*/
|
|
25
|
-
export declare function SettingsContainer({ width, back, className, children, ...props }: SettingsContainerProps): import("react
|
|
26
|
-
export interface SettingsBackButtonProps extends
|
|
27
|
-
/** Renders the button as a plain anchor; pass `render` for router links. */
|
|
28
|
-
href?: string;
|
|
25
|
+
export declare function SettingsContainer({ width, back, className, children, ...props }: SettingsContainerProps): import("react").JSX.Element;
|
|
26
|
+
export interface SettingsBackButtonProps extends PageHeadingBackLinkProps {
|
|
29
27
|
}
|
|
30
28
|
/**
|
|
31
29
|
* Quiet up-navigation for drill-in settings pages. SettingsContainer renders
|
|
32
30
|
* it at the top-left of the content pane, in the gutter above the centered
|
|
33
|
-
* column — not in the header corner. The
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* pane's gutter edge despite the button's padding. Label the destination
|
|
37
|
-
* (e.g. "Marketplaces"), not "Back".
|
|
31
|
+
* column — not in the header corner. The settings-kit name for the shared
|
|
32
|
+
* PageHeadingBackLink, so both surfaces keep one back-link treatment. Label
|
|
33
|
+
* the destination (e.g. "Marketplaces"), not "Back".
|
|
38
34
|
*/
|
|
39
|
-
export declare function SettingsBackButton(
|
|
35
|
+
export declare function SettingsBackButton(props: SettingsBackButtonProps): import("react").JSX.Element;
|
|
40
36
|
export interface SettingsHeaderProps {
|
|
41
37
|
title: string;
|
|
42
38
|
/** Chip rendered beside the title (e.g. a Beta badge). */
|
|
@@ -46,11 +42,11 @@ export interface SettingsHeaderProps {
|
|
|
46
42
|
description?: ReactNode;
|
|
47
43
|
}
|
|
48
44
|
/**
|
|
49
|
-
* Page headline for configuration surfaces:
|
|
50
|
-
*
|
|
51
|
-
*
|
|
45
|
+
* Page headline for configuration surfaces: the display-size PageHeading
|
|
46
|
+
* (36px semibold title, quiet text-md subtext). Drill-in views (an order
|
|
47
|
+
* detail) step down to the default-size PageHeading rather than reusing this.
|
|
52
48
|
*/
|
|
53
|
-
export declare function SettingsHeader({ title, badge, actions, description, }: SettingsHeaderProps): import("react
|
|
49
|
+
export declare function SettingsHeader({ title, badge, actions, description, }: SettingsHeaderProps): import("react").JSX.Element;
|
|
54
50
|
export interface SettingsSectionProps {
|
|
55
51
|
title: ReactNode;
|
|
56
52
|
/** Sub-copy under the title, in the header per Card semantics. */
|
|
@@ -68,7 +64,7 @@ export interface SettingsSectionProps {
|
|
|
68
64
|
* Free-form fields go in a Form (FormRow for side-by-side pairs); use
|
|
69
65
|
* sibling sections rather than FormSection to group a long form.
|
|
70
66
|
*/
|
|
71
|
-
export declare function SettingsSection({ title, description, action, className, children, }: SettingsSectionProps): import("react
|
|
67
|
+
export declare function SettingsSection({ title, description, action, className, children, }: SettingsSectionProps): import("react").JSX.Element;
|
|
72
68
|
export interface SettingsRowProps extends Omit<ComponentPropsWithoutRef<"div">, "className" | "title"> {
|
|
73
69
|
/** Setting name, text-sm medium. */
|
|
74
70
|
label: ReactNode;
|
|
@@ -87,7 +83,7 @@ export interface SettingsRowProps extends Omit<ComponentPropsWithoutRef<"div">,
|
|
|
87
83
|
* that need the full measure (text inputs, textareas) belong in a Field
|
|
88
84
|
* below the row instead of crammed into the control slot.
|
|
89
85
|
*/
|
|
90
|
-
export declare function SettingsRow({ label, description, htmlFor, className, children, ...props }: SettingsRowProps): import("react
|
|
86
|
+
export declare function SettingsRow({ label, description, htmlFor, className, children, ...props }: SettingsRowProps): import("react").JSX.Element;
|
|
91
87
|
export interface SettingsSeparatorProps extends ComponentPropsWithoutRef<"hr"> {
|
|
92
88
|
}
|
|
93
89
|
/**
|
|
@@ -95,7 +91,7 @@ export interface SettingsSeparatorProps extends ComponentPropsWithoutRef<"hr"> {
|
|
|
95
91
|
* negative margins cancel CardContent's md padding so the line runs edge to
|
|
96
92
|
* edge like a card divider, not an underline.
|
|
97
93
|
*/
|
|
98
|
-
export declare function SettingsSeparator({ className, ...props }: SettingsSeparatorProps): import("react
|
|
94
|
+
export declare function SettingsSeparator({ className, ...props }: SettingsSeparatorProps): import("react").JSX.Element;
|
|
99
95
|
export interface SettingsNavProps extends ComponentPropsWithoutRef<"nav"> {
|
|
100
96
|
}
|
|
101
97
|
/**
|
|
@@ -104,27 +100,21 @@ export interface SettingsNavProps extends ComponentPropsWithoutRef<"nav"> {
|
|
|
104
100
|
* the SettingsHeader is the lighter alternative; once pages group into
|
|
105
101
|
* categories, this is the rule.
|
|
106
102
|
*/
|
|
107
|
-
export declare function SettingsNav({ className, ...props }: SettingsNavProps): import("react
|
|
103
|
+
export declare function SettingsNav({ className, ...props }: SettingsNavProps): import("react").JSX.Element;
|
|
108
104
|
export interface SettingsNavGroupProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
|
|
109
105
|
/** Group heading (e.g. "Integrations"); omit for the top-level group. */
|
|
110
106
|
title?: ReactNode;
|
|
111
107
|
}
|
|
112
|
-
export declare function SettingsNavGroup({ title, className, children, ...props }: SettingsNavGroupProps): import("react
|
|
113
|
-
|
|
114
|
-
current?: boolean | null | undefined;
|
|
115
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
116
|
-
export type SettingsNavItemOwnProps = useRender.ComponentProps<"button"> & VariantProps<typeof settingsNavItemVariants> & {
|
|
117
|
-
current?: boolean;
|
|
118
|
-
children: ReactNode;
|
|
119
|
-
};
|
|
120
|
-
export type SettingsNavItemProps<C extends React.ElementType = "button"> = SettingsNavItemOwnProps & {
|
|
121
|
-
as?: C;
|
|
122
|
-
} & Omit<React.ComponentPropsWithoutRef<C>, keyof SettingsNavItemOwnProps | "as">;
|
|
108
|
+
export declare function SettingsNavGroup({ title, className, children, ...props }: SettingsNavGroupProps): import("react").JSX.Element;
|
|
109
|
+
export type SettingsNavItemProps<C extends React.ElementType = "button"> = Omit<SidebarItemProps<C>, "nested">;
|
|
123
110
|
/**
|
|
124
111
|
* One page link in a SettingsNav. Renders a button by default; pass
|
|
125
112
|
* `as="a"`/`href` or `render={<Link .../>}` for real navigation. `current`
|
|
126
|
-
* marks the active page (filled pill, aria-current).
|
|
113
|
+
* marks the active page (filled pill, aria-current). Inherits the nested
|
|
114
|
+
* SidebarItem — geometry, icon handling, the primary accent bar, canvas
|
|
115
|
+
* surface treatment, and polymorphism — while resting rows read
|
|
116
|
+
* text-secondary.
|
|
127
117
|
*/
|
|
128
|
-
export declare function SettingsNavItem<C extends React.ElementType = "button">({ current, className,
|
|
129
|
-
export { settingsContainerVariants
|
|
118
|
+
export declare function SettingsNavItem<C extends React.ElementType = "button">({ current, className, ...props }: SettingsNavItemProps<C>): import("react").JSX.Element;
|
|
119
|
+
export { settingsContainerVariants };
|
|
130
120
|
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"AAoDA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACl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AAE,qBAAqB,+BAWvB;AAED,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,IAAI,CAC9E,gBAAgB,CAAC,CAAC,CAAC,EACnB,QAAQ,CACR,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,EACvE,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,oBAAoB,CAAC,CAAC,CAAC,+BAYzB;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { SettingsBackButtonProps, SettingsContainerProps, SettingsHeaderProps, SettingsNavGroupProps, SettingsNavItemProps, SettingsNavProps, SettingsRowProps, SettingsSectionProps, SettingsSeparatorProps, } from "./Settings";
|
|
2
|
-
export { SettingsBackButton, SettingsContainer, SettingsHeader, SettingsNav, SettingsNavGroup, SettingsNavItem, SettingsRow, SettingsSection, SettingsSeparator, settingsContainerVariants,
|
|
2
|
+
export { SettingsBackButton, SettingsContainer, SettingsHeader, SettingsNav, SettingsNavGroup, SettingsNavItem, SettingsRow, SettingsSection, SettingsSeparator, settingsContainerVariants, } from "./Settings";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ia as K,ka as M}from"../../index-qfdc271j.js";import{Na as E,Oa as J}from"../../index-27w72p7z.js";import"../../index-f862wbmh.js";import{Rb as D}from"../../index-s2mc6jzt.js";import{Jc as z,Rc as A}from"../../index-9v1g4s39.js";import"../../index-8b3c6nnb.js";import"../../index-st80n69g.js";import"../Icon/index.js";import"../../index-7abyvs9n.js";import{te as g}from"../../lib/utils.js";import{cva as U}from"class-variance-authority";import{jsx as P,jsxs as q}from"react/jsx-runtime";var Q=U("mx-auto flex w-full flex-col gap-5",{variants:{width:{settings:"max-w-3xl",wide:"max-w-7xl"}},defaultVariants:{width:"settings"}});function W({width:S,back:B,className:G,children:R,...v}){return q("div",{"data-slot":"settings-container",className:"flex flex-col gap-8",children:[P("div",{className:"h-8",children:B}),P("div",{className:g(Q({width:S}),G),...v,children:R})]})}function X(S){return P(J,{...S})}function Y({title:S,badge:B,actions:G,description:R}){return P(E,{"data-slot":"settings-header",size:"display",title:S,badge:B,description:R,actions:G})}function Z({title:S,description:B,action:G,className:R,children:v}){return q("section",{"data-slot":"settings-section",className:g("flex flex-col gap-3 [[data-slot=settings-section]+&]:mt-3",R),children:[q("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[P("h2",{className:"text-base leading-tight font-semibold text-foreground",children:S}),B&&P("p",{className:"text-sm text-tertiary",children:B})]}),G&&P("div",{className:"shrink-0",children:G})]}),P(z,{padding:"md",children:P(A,{padding:"none",className:"flex flex-col gap-4 text-sm text-secondary",children:v})})]})}function _({label:S,description:B,htmlFor:G,className:R,children:v,...T}){return q("div",{"data-slot":"settings-row",className:g("flex flex-wrap items-center justify-between gap-x-8 gap-y-2",R),...T,children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[G?P(D,{htmlFor:G,children:S}):P("span",{className:"text-sm leading-none font-medium text-foreground",children:S}),B&&P("p",{className:"max-w-md text-[13px] leading-normal text-tertiary",children:B})]}),v&&P("div",{className:"flex shrink-0 items-center gap-2",children:v})]})}function $({className:S,...B}){return P("hr",{"data-slot":"settings-separator",className:g("-mx-5 my-1 border-t border-border",S),...B})}function I({className:S,...B}){return P("nav",{"data-slot":"settings-nav",className:g("flex w-56 shrink-0 flex-col gap-6",S),...B})}function O({title:S,className:B,children:G,...R}){return q("div",{"data-slot":"settings-nav-group",className:g("flex flex-col",B),...R,children:[S&&P(K,{children:S}),P("div",{className:"flex flex-col gap-0.5",children:G})]})}function V({current:S,className:B,...G}){return P(M,{nested:!0,current:S,surface:"canvas",className:g(S?"font-medium":"text-secondary",B),...G})}export{Q as settingsContainerVariants,$ as SettingsSeparator,Z as SettingsSection,_ as SettingsRow,V as SettingsNavItem,O as SettingsNavGroup,I as SettingsNav,Y as SettingsHeader,W as SettingsContainer,X as SettingsBackButton};export{Q as S,W as T,X as U,Y as V,Z as W,_ as X,$ as Y,I as Z,O as _,V as $};
|