@storepass/components 0.3.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 +105 -66
- package/dist/components/Accordion/Accordion.d.ts +5 -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 +14 -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 +17 -2
- 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 +4 -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 +10 -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 +9 -1
- 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 +5 -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 +11 -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 +14 -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 +4 -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 +8 -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 +27 -19
- 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 +9 -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 +14 -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 +15 -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 +7 -2
- 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 +18 -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 +4 -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 +26 -0
- package/dist/components/Footer/Footer.d.ts.map +1 -0
- package/dist/components/Footer/index.d.ts +3 -0
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/Footer/index.js +1 -0
- 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 +53 -0
- package/dist/components/Form/FormLayout.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/index.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 +4 -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 +22 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -0
- package/dist/components/InlineAlert/index.d.ts +3 -0
- package/dist/components/InlineAlert/index.d.ts.map +1 -0
- package/dist/components/InlineAlert/index.js +1 -0
- package/dist/components/Input/Input.d.ts +8 -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 +14 -4
- 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 +13 -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 +5 -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 +4 -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 +4 -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 +19 -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 +10 -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 +10 -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 +5 -2
- 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 +4 -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 +5 -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 +7 -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 +8 -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 +120 -0
- package/dist/components/Settings/Settings.d.ts.map +1 -0
- package/dist/components/Settings/index.d.ts +3 -0
- package/dist/components/Settings/index.d.ts.map +1 -0
- package/dist/components/Settings/index.js +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +24 -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 +4 -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 +11 -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 +16 -6
- 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 +4 -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 +3 -0
- 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 +7 -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 +5 -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 +9 -4
- 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 +10 -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 +7 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index-27w72p7z.js +2 -0
- package/dist/{index-25w1pfzg.js → index-7abyvs9n.js} +1 -1
- package/dist/index-8b3c6nnb.js +2 -0
- package/dist/index-9v1g4s39.js +2 -0
- package/dist/index-f862wbmh.js +2 -0
- package/dist/index-qfdc271j.js +2 -0
- package/dist/index-s2mc6jzt.js +2 -0
- 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 +2 -1
- package/dist/theme.css +212 -147
- package/package.json +32 -13
- package/dist/index-0ctxfsd7.js +0 -1
- package/dist/index-1fd47f5y.js +0 -1
- package/dist/index-22kkds9g.js +0 -0
- package/dist/index-2m3xy8p4.js +0 -1
- package/dist/index-2rp207rw.js +0 -2
- package/dist/index-2wpth8xr.js +0 -1
- package/dist/index-3k9xy0v9.js +0 -1
- package/dist/index-4dw1tfwb.js +0 -1
- package/dist/index-4x05g3vr.js +0 -1
- package/dist/index-5e0zx00q.js +0 -1
- package/dist/index-5g1h0raq.js +0 -1
- package/dist/index-70s966fy.js +0 -1
- package/dist/index-7mxk2r0a.js +0 -1
- package/dist/index-7tcckc48.js +0 -1
- package/dist/index-8c8ehjkc.js +0 -1
- package/dist/index-8cy2sgh0.js +0 -1
- package/dist/index-8gm2rxtq.js +0 -1
- package/dist/index-ah7cbd07.js +0 -1
- package/dist/index-ahz43gdp.js +0 -1
- package/dist/index-arpqzy5c.js +0 -1
- package/dist/index-bespbh11.js +0 -1
- package/dist/index-bnsfdvh5.js +0 -1
- package/dist/index-bpcynn56.js +0 -1
- package/dist/index-brksk1am.js +0 -1
- package/dist/index-caq9qzt1.js +0 -1
- package/dist/index-cp373wnj.js +0 -2
- package/dist/index-cr59zcha.js +0 -1
- package/dist/index-ct209x9n.js +0 -1
- package/dist/index-d3gjt5ee.js +0 -1
- package/dist/index-e8yrbg3r.js +0 -1
- package/dist/index-fbn1rd3s.js +0 -1
- package/dist/index-fgvvr0g6.js +0 -1
- package/dist/index-g7q96a0a.js +0 -1
- package/dist/index-gt5qfkt1.js +0 -1
- package/dist/index-j0gmrg5e.js +0 -0
- package/dist/index-jbzckcy9.js +0 -1
- package/dist/index-jwm4bwn3.js +0 -1
- package/dist/index-ktj07kw9.js +0 -1
- package/dist/index-mqyj3qgp.js +0 -1
- package/dist/index-mx2ee05d.js +0 -1
- package/dist/index-nbf81tzs.js +0 -1
- package/dist/index-pagn0z78.js +0 -1
- package/dist/index-q0b9mxmg.js +0 -1
- package/dist/index-r30b9hjw.js +0 -1
- package/dist/index-reeqt38g.js +0 -1
- package/dist/index-tnbcwg9p.js +0 -1
- package/dist/index-v0dbh5ep.js +0 -1
- package/dist/index-vvj2x8rm.js +0 -1
- package/dist/index-x35yxxgc.js +0 -1
- package/dist/index-xqdce72y.js +0 -1
|
@@ -5,22 +5,25 @@ declare const paginationLinkVariants: (props?: ({
|
|
|
5
5
|
isActive?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare const paginationEllipsisVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Page navigation with brand-tinted active chips, ghost hover states, and Previous/Next controls built on Button.
|
|
10
|
+
*/
|
|
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;
|
|
11
14
|
export interface PaginationLinkProps extends Omit<React.ComponentProps<"a">, "children">, VariantProps<typeof paginationLinkVariants> {
|
|
12
15
|
isActive?: boolean;
|
|
13
16
|
children?: React.ReactNode;
|
|
14
17
|
}
|
|
15
|
-
declare function PaginationLink({ className, isActive, children, ...props }: PaginationLinkProps): import("react
|
|
18
|
+
declare function PaginationLink({ className, isActive, children, ...props }: PaginationLinkProps): import("react").JSX.Element;
|
|
16
19
|
export interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
|
|
17
20
|
text?: string;
|
|
18
21
|
}
|
|
19
|
-
declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): import("react
|
|
22
|
+
declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): import("react").JSX.Element;
|
|
20
23
|
export interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
|
|
21
24
|
text?: string;
|
|
22
25
|
}
|
|
23
|
-
declare function PaginationNext({ className, text, ...props }: PaginationNextProps): import("react
|
|
24
|
-
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;
|
|
25
28
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, paginationContentVariants, paginationEllipsisVariants, paginationLinkVariants, paginationVariants, };
|
|
26
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,iB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,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{
|
|
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,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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
+
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,12 +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. `size="fluid"` makes the row fill its container, scaling cells, type, and radii proportionally.
|
|
13
|
+
*/
|
|
14
|
+
export declare function PinInput({ size, length, className, ...props }: PinInputProps): React.JSX.Element;
|
|
12
15
|
export { pinInputVariants };
|
|
13
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};
|
|
@@ -12,6 +12,9 @@ export interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeo
|
|
|
12
12
|
label?: string;
|
|
13
13
|
showValue?: boolean;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
/**
|
|
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
|
+
*/
|
|
18
|
+
export declare function Progress({ size, color, className, label, showValue, value, ...props }: ProgressProps): React.JSX.Element;
|
|
16
19
|
export { progressIndicatorVariants, progressTrackVariants };
|
|
17
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,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};
|
|
@@ -17,7 +17,10 @@ export interface RadioGroupProps extends Omit<React.ComponentPropsWithoutRef<typ
|
|
|
17
17
|
export interface RadioGroupItemProps extends Omit<React.ComponentPropsWithoutRef<typeof Radio.Root>, "className">, VariantProps<typeof radioItemVariants> {
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* A radio group component for selecting a single option from a list.
|
|
22
|
+
*/
|
|
23
|
+
export declare function RadioGroup({ orientation, className, ...props }: RadioGroupProps): React.JSX.Element;
|
|
24
|
+
export declare function RadioGroupItem({ size, className, ...props }: RadioGroupItemProps): React.JSX.Element;
|
|
22
25
|
export { radioGroupVariants, radioIndicatorVariants, radioItemVariants };
|
|
23
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,WAA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,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};
|
|
@@ -12,6 +12,12 @@ export interface RatingProps extends Omit<React.ComponentProps<"div">, "onChange
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
"aria-label"?: string;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* A star rating component with keyboard navigation (arrow keys, Home, End), hover
|
|
17
|
+
* preview, read-only display mode, and controlled/uncontrolled value API.
|
|
18
|
+
*
|
|
19
|
+
* Size controls star glyph size: sm=text-base, md=text-lg, lg=text-2xl.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Rating({ value: valueProp, defaultValue, onValueChange, max, readOnly, disabled, size, className, "aria-label": ariaLabel, ...props }: RatingProps): React.JSX.Element;
|
|
16
22
|
export { ratingVariants };
|
|
17
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,WAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACrE,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,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,
|
|
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,WAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACrE,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,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};
|
|
@@ -27,6 +27,13 @@ export interface SelectProps {
|
|
|
27
27
|
/** Width of the select trigger (e.g., "200px", "100%", "20rem") */
|
|
28
28
|
width?: string | number;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
/**
|
|
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.
|
|
36
|
+
*/
|
|
37
|
+
export declare function Select({ options, value, defaultValue, onValueChange, placeholder, label, error, disabled, size, className, name, width, }: SelectProps): import("react").JSX.Element;
|
|
31
38
|
export { selectItemVariants, selectPopupVariants, selectTriggerVariants };
|
|
32
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,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,qBAAqB;;8EAsB1B,CAAC;AAEF,QAAA,MAAM,mBAAmB,oFAevB,CAAC;AAKH,QAAA,MAAM,kBAAkB;;8EAoBvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EACtB,OAAO,EACP,KAAK,EACL,YAAY,EACZ,aAAa,EACb,WAAgC,EAChC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,KAAK,GACL,EAAE,WAAW,+BAoGb;AAED,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -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};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
+
import { type PageHeadingBackLinkProps } from "../PageHeading/PageHeading";
|
|
4
|
+
import { type SidebarItemProps } from "../Sidebar/Sidebar";
|
|
5
|
+
declare const settingsContainerVariants: (props?: ({
|
|
6
|
+
width?: "wide" | "settings" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface SettingsContainerProps extends Omit<ComponentPropsWithoutRef<"div">, "className">, VariantProps<typeof settingsContainerVariants> {
|
|
9
|
+
/**
|
|
10
|
+
* Up-navigation slot, typically a SettingsBackButton. Renders pinned to
|
|
11
|
+
* the top-left of the content pane — in the gutter, outside the centered
|
|
12
|
+
* measure — so subpages can hop back to their hub.
|
|
13
|
+
*/
|
|
14
|
+
back?: ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Centered content stack for configuration surfaces. Folds in the
|
|
20
|
+
* `flex flex-col gap-5` rhythm every settings page uses. The app shell owns
|
|
21
|
+
* the page surface, gutters, and scrolling; this component owns only measure
|
|
22
|
+
* and content rhythm. Full-bleed surfaces (product tables, dashboards) should
|
|
23
|
+
* not use it.
|
|
24
|
+
*/
|
|
25
|
+
export declare function SettingsContainer({ width, back, className, children, ...props }: SettingsContainerProps): import("react").JSX.Element;
|
|
26
|
+
export interface SettingsBackButtonProps extends PageHeadingBackLinkProps {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Quiet up-navigation for drill-in settings pages. SettingsContainer renders
|
|
30
|
+
* it at the top-left of the content pane, in the gutter above the centered
|
|
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".
|
|
34
|
+
*/
|
|
35
|
+
export declare function SettingsBackButton(props: SettingsBackButtonProps): import("react").JSX.Element;
|
|
36
|
+
export interface SettingsHeaderProps {
|
|
37
|
+
title: string;
|
|
38
|
+
/** Chip rendered beside the title (e.g. a Beta badge). */
|
|
39
|
+
badge?: ReactNode;
|
|
40
|
+
/** Right-aligned header actions. */
|
|
41
|
+
actions?: ReactNode;
|
|
42
|
+
description?: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
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.
|
|
48
|
+
*/
|
|
49
|
+
export declare function SettingsHeader({ title, badge, actions, description, }: SettingsHeaderProps): import("react").JSX.Element;
|
|
50
|
+
export interface SettingsSectionProps {
|
|
51
|
+
title: ReactNode;
|
|
52
|
+
/** Sub-copy under the title, in the header per Card semantics. */
|
|
53
|
+
description?: ReactNode;
|
|
54
|
+
/** Optional header-right slot (a connect link, a disconnect button). */
|
|
55
|
+
action?: ReactNode;
|
|
56
|
+
className?: string;
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Titled section for configuration surfaces (Connection Status, Sync
|
|
61
|
+
* Settings, ...). The heading and sub-copy sit on the page, above a Card
|
|
62
|
+
* that holds only the rows and controls — the card is a control container,
|
|
63
|
+
* not the content unit, so the page's text hierarchy stays on the surface.
|
|
64
|
+
* Free-form fields go in a Form (FormRow for side-by-side pairs); use
|
|
65
|
+
* sibling sections rather than FormSection to group a long form.
|
|
66
|
+
*/
|
|
67
|
+
export declare function SettingsSection({ title, description, action, className, children, }: SettingsSectionProps): import("react").JSX.Element;
|
|
68
|
+
export interface SettingsRowProps extends Omit<ComponentPropsWithoutRef<"div">, "className" | "title"> {
|
|
69
|
+
/** Setting name, text-sm medium. */
|
|
70
|
+
label: ReactNode;
|
|
71
|
+
/** Quiet text-sm sub-copy under the label. */
|
|
72
|
+
description?: ReactNode;
|
|
73
|
+
/** Associates the label with the control's id. */
|
|
74
|
+
htmlFor?: string;
|
|
75
|
+
className?: string;
|
|
76
|
+
/** The control, right-aligned (a Toggle, Select, Button, value text). */
|
|
77
|
+
children?: ReactNode;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* One configuration row inside a SettingsSection: label and description on
|
|
81
|
+
* the left, the control on the right. Rows stack on the section's gap-4
|
|
82
|
+
* rhythm; use SettingsSeparator between logical groups of rows. Controls
|
|
83
|
+
* that need the full measure (text inputs, textareas) belong in a Field
|
|
84
|
+
* below the row instead of crammed into the control slot.
|
|
85
|
+
*/
|
|
86
|
+
export declare function SettingsRow({ label, description, htmlFor, className, children, ...props }: SettingsRowProps): import("react").JSX.Element;
|
|
87
|
+
export interface SettingsSeparatorProps extends ComponentPropsWithoutRef<"hr"> {
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Full-bleed rule between groups of rows inside a SettingsSection. The
|
|
91
|
+
* negative margins cancel CardContent's md padding so the line runs edge to
|
|
92
|
+
* edge like a card divider, not an underline.
|
|
93
|
+
*/
|
|
94
|
+
export declare function SettingsSeparator({ className, ...props }: SettingsSeparatorProps): import("react").JSX.Element;
|
|
95
|
+
export interface SettingsNavProps extends ComponentPropsWithoutRef<"nav"> {
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Vertical page navigation for a settings area with sibling pages: a w-56
|
|
99
|
+
* column beside the SettingsContainer. For a handful of pages, Tabs under
|
|
100
|
+
* the SettingsHeader is the lighter alternative; once pages group into
|
|
101
|
+
* categories, this is the rule.
|
|
102
|
+
*/
|
|
103
|
+
export declare function SettingsNav({ className, ...props }: SettingsNavProps): import("react").JSX.Element;
|
|
104
|
+
export interface SettingsNavGroupProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
|
|
105
|
+
/** Group heading (e.g. "Integrations"); omit for the top-level group. */
|
|
106
|
+
title?: ReactNode;
|
|
107
|
+
}
|
|
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">;
|
|
110
|
+
/**
|
|
111
|
+
* One page link in a SettingsNav. Renders a button by default; pass
|
|
112
|
+
* `as="a"`/`href` or `render={<Link .../>}` for real navigation. `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.
|
|
117
|
+
*/
|
|
118
|
+
export declare function SettingsNavItem<C extends React.ElementType = "button">({ current, className, ...props }: SettingsNavItemProps<C>): import("react").JSX.Element;
|
|
119
|
+
export { settingsContainerVariants };
|
|
120
|
+
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,EAGN,KAAK,wBAAwB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGN,KAAK,gBAAgB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,QAAA,MAAM,yBAAyB;;8EAY7B,CAAC;AAEH,MAAM,WAAW,sBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAC/C;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EACjC,KAAK,EACL,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAexB;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;CAAG;AAE5E;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAEhE;AAED,MAAM,WAAW,mBAAmB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oCAAoC;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,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAE5E;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQpE;AAED,MAAM,WAAW,qBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtD,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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, } from "./Settings";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,GACzB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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 $};
|
|
@@ -3,46 +3,60 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
4
4
|
declare const sidebarVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "bordered" | null | undefined;
|
|
6
|
+
surface?: "canvas" | "default" | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type SidebarSurface = "default" | "canvas";
|
|
7
9
|
export interface SidebarProps extends ComponentPropsWithoutRef<"nav">, VariantProps<typeof sidebarVariants> {
|
|
8
10
|
}
|
|
9
|
-
|
|
11
|
+
/**
|
|
12
|
+
* A vertical navigation sidebar component with support for headers,
|
|
13
|
+
* sections, items, and footers.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Sidebar({ className, variant, surface, ...props }: SidebarProps): import("react").JSX.Element;
|
|
10
16
|
export interface SidebarHeaderProps extends ComponentPropsWithoutRef<"div"> {
|
|
11
17
|
}
|
|
12
|
-
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): import("react
|
|
18
|
+
export declare function SidebarHeader({ className, ...props }: SidebarHeaderProps): import("react").JSX.Element;
|
|
13
19
|
export interface SidebarBodyProps extends ComponentPropsWithoutRef<"div"> {
|
|
14
20
|
}
|
|
15
|
-
export declare function SidebarBody({ className, ...props }: SidebarBodyProps): import("react
|
|
21
|
+
export declare function SidebarBody({ className, ...props }: SidebarBodyProps): import("react").JSX.Element;
|
|
16
22
|
export interface SidebarFooterProps extends ComponentPropsWithoutRef<"div"> {
|
|
17
23
|
}
|
|
18
|
-
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): import("react
|
|
24
|
+
export declare function SidebarFooter({ className, ...props }: SidebarFooterProps): import("react").JSX.Element;
|
|
19
25
|
export interface SidebarSectionProps extends ComponentPropsWithoutRef<"div"> {
|
|
20
26
|
}
|
|
21
|
-
export declare function SidebarSection({ className, ...props }: SidebarSectionProps): import("react
|
|
27
|
+
export declare function SidebarSection({ className, ...props }: SidebarSectionProps): import("react").JSX.Element;
|
|
22
28
|
export interface SidebarDividerProps extends ComponentPropsWithoutRef<"hr"> {
|
|
23
29
|
}
|
|
24
|
-
export declare function SidebarDivider({ className, ...props }: SidebarDividerProps): import("react
|
|
30
|
+
export declare function SidebarDivider({ className, ...props }: SidebarDividerProps): import("react").JSX.Element;
|
|
25
31
|
export interface SidebarSpacerProps extends ComponentPropsWithoutRef<"div"> {
|
|
26
32
|
}
|
|
27
|
-
export declare function SidebarSpacer({ className, ...props }: SidebarSpacerProps): import("react
|
|
33
|
+
export declare function SidebarSpacer({ className, ...props }: SidebarSpacerProps): import("react").JSX.Element;
|
|
28
34
|
export interface SidebarHeadingProps extends ComponentPropsWithoutRef<"h3"> {
|
|
29
35
|
}
|
|
30
|
-
export declare function SidebarHeading({ className, ...props }: SidebarHeadingProps): import("react
|
|
36
|
+
export declare function SidebarHeading({ className, ...props }: SidebarHeadingProps): import("react").JSX.Element;
|
|
31
37
|
declare const sidebarItemVariants: (props?: ({
|
|
32
38
|
current?: boolean | null | undefined;
|
|
39
|
+
surface?: "canvas" | "default" | null | undefined;
|
|
33
40
|
nested?: boolean | null | undefined;
|
|
34
41
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
35
42
|
export type SidebarItemOwnProps = useRender.ComponentProps<"button"> & VariantProps<typeof sidebarItemVariants> & {
|
|
36
43
|
current?: boolean;
|
|
37
44
|
nested?: boolean;
|
|
45
|
+
/** A separate trailing control, rendered as a sibling of the item. */
|
|
46
|
+
action?: ReactNode;
|
|
38
47
|
children: ReactNode;
|
|
39
48
|
};
|
|
40
49
|
export type SidebarItemProps<C extends React.ElementType = "button"> = SidebarItemOwnProps & {
|
|
41
50
|
as?: C;
|
|
42
51
|
} & Omit<React.ComponentPropsWithoutRef<C>, keyof SidebarItemOwnProps | "as">;
|
|
43
|
-
|
|
52
|
+
/**
|
|
53
|
+
* A single navigation entry within a SidebarSection. Pass `render` (or
|
|
54
|
+
* `as`) to render as a custom element such as a router Link; it receives
|
|
55
|
+
* className, data-current, ref, and children.
|
|
56
|
+
*/
|
|
57
|
+
export declare function SidebarItem<C extends React.ElementType = "button">({ current, nested, surface, action, className, children, render, as, ...props }: SidebarItemProps<C>): import("react").JSX.Element;
|
|
44
58
|
export interface SidebarLabelProps extends ComponentPropsWithoutRef<"span"> {
|
|
45
59
|
}
|
|
46
|
-
export declare function SidebarLabel({ className, ...props }: SidebarLabelProps): import("react
|
|
60
|
+
export declare function SidebarLabel({ className, ...props }: SidebarLabelProps): import("react").JSX.Element;
|
|
47
61
|
export { sidebarItemVariants, sidebarVariants };
|
|
48
62
|
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACN,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACN,KAAK,wBAAwB,EAG7B,KAAK,SAAS,EAEd,MAAM,OAAO,CAAC;AAGf,QAAA,MAAM,eAAe;;;8EAenB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;AAIlD,MAAM,WAAW,YAChB,SAAQ,wBAAwB,CAAC,KAAK,CAAC,EACtC,YAAY,CAAC,OAAO,eAAe,CAAC;CAAG;AAEzC;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACvB,SAAS,EACT,OAAO,EACP,OAAO,EACP,GAAG,KAAK,EACR,EAAE,YAAY,+BAed;AAED,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAE9E,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAWxE;AAED,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAE5E,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAWpE;AAED,MA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,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,mBAAmB,GAAG,IAAI,CAAC,CAAC;AAE/E;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,EACnE,OAAO,EACP,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAS,EACT,QAAQ,EACR,MAAM,EACN,EAAE,EACF,GAAG,KAAK,EACR,EAAE,gBAAgB,CAAC,CAAC,CAAC,+BAgDrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;CAAG;AAE9E,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAQtE;AAED,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SidebarBodyProps, SidebarDividerProps, SidebarFooterProps, SidebarHeaderProps, SidebarHeadingProps, SidebarItemProps, SidebarLabelProps, SidebarProps, SidebarSectionProps, SidebarSpacerProps, } from "./Sidebar";
|
|
1
|
+
export type { SidebarBodyProps, SidebarDividerProps, SidebarFooterProps, SidebarHeaderProps, SidebarHeadingProps, SidebarItemProps, SidebarLabelProps, SidebarProps, SidebarSectionProps, SidebarSpacerProps, SidebarSurface, } from "./Sidebar";
|
|
2
2
|
export { Sidebar, SidebarBody, SidebarDivider, SidebarFooter, SidebarHeader, SidebarHeading, SidebarItem, SidebarLabel, SidebarSection, SidebarSpacer, sidebarItemVariants, sidebarVariants, } from "./Sidebar";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,OAAO,EACP,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,eAAe,GACf,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aa as r,ba as e,ca as a,da as i,ea as d,fa as S,ga as b,ha as o,ia as p,ja as s,ka as t,la as P}from"../../index-qfdc271j.js";import"../../lib/utils.js";export{r as sidebarVariants,s as sidebarItemVariants,o as SidebarSpacer,S as SidebarSection,P as SidebarLabel,t as SidebarItem,p as SidebarHeading,a as SidebarHeader,d as SidebarFooter,b as SidebarDivider,i as SidebarBody,e as Sidebar};
|
|
@@ -8,6 +8,9 @@ export interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
8
8
|
className?: string;
|
|
9
9
|
thumbCount?: number;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* A range slider built on Base UI with single and multi-thumb support, brand indicator, and full keyboard accessibility.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Slider({ className, orientation, thumbCount, value, defaultValue, ...props }: SliderProps): React.JSX.Element;
|
|
12
15
|
export { sliderVariants };
|
|
13
16
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,cAAc;;8EAanB,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EACtD,WAAW,GAAG,aAAa,CAC3B,EACD,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,MAAM,CAAC,EACtB,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,cAAc;;8EAanB,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EACtD,WAAW,GAAG,aAAa,CAC3B,EACD,YAAY,CAAC,OAAO,cAAc,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACtB,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,WAAW,qBAgDb;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as E}from"../../lib/utils.js";import{Slider as P}from"@base-ui/react/slider";import{cva as Q}from"class-variance-authority";import{jsx as q,jsxs as X}from"react/jsx-runtime";var H=Q("relative flex w-full touch-none select-none items-center data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col h-full"}},defaultVariants:{orientation:"horizontal"}});function W({className:J,orientation:F,thumbCount:K,value:z,defaultValue:D,...L}){let M=Array.isArray(z)?z.length>1:Array.isArray(D)?D.length>1:!1,O=K??(M?2:1);return q(P.Root,{"data-slot":"slider",orientation:F??"horizontal",value:z,defaultValue:D,className:E(H({orientation:F}),J),...L,children:q(P.Control,{"data-slot":"slider-control",className:"flex w-full items-center py-3",children:X(P.Track,{"data-slot":"slider-track",className:"relative h-2 w-full grow overflow-hidden rounded-full bg-ink-well",children:[q(P.Indicator,{"data-slot":"slider-indicator",className:"absolute h-full rounded-full bg-primary"}),Array.from({length:O}).map((Y,G)=>q(P.Thumb,{index:G,"data-slot":"slider-thumb",className:E("block size-5 shrink-0 rounded-full border border-input bg-background shadow-sm outline-none","transition-[color,box-shadow]","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[dragging]:ring-[3px] data-[dragging]:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50")},G))]})})})}export{H as sliderVariants,W as Slider};export{H as ma,W as na};
|