@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
|
@@ -3,11 +3,11 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
export interface ItemGroupProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className"> {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function ItemGroup({ className, ...props }: ItemGroupProps): import("react
|
|
6
|
+
export declare function ItemGroup({ className, ...props }: ItemGroupProps): import("react").JSX.Element;
|
|
7
7
|
export interface ItemSeparatorProps extends Omit<React.ComponentPropsWithoutRef<"hr">, "className"> {
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): import("react
|
|
10
|
+
export declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): import("react").JSX.Element;
|
|
11
11
|
declare const itemVariants: (props?: ({
|
|
12
12
|
variant?: "outline" | "default" | "muted" | null | undefined;
|
|
13
13
|
size?: "sm" | "xs" | "default" | null | undefined;
|
|
@@ -16,6 +16,10 @@ export type ItemOwnProps = useRender.ComponentProps<"div"> & VariantProps<typeof
|
|
|
16
16
|
export type ItemProps<C extends React.ElementType = "div"> = ItemOwnProps & {
|
|
17
17
|
as?: C;
|
|
18
18
|
} & Omit<React.ComponentPropsWithoutRef<C>, keyof ItemOwnProps | "as">;
|
|
19
|
+
/**
|
|
20
|
+
* A flexible list item component for displaying structured content with
|
|
21
|
+
* media, titles, descriptions, and actions.
|
|
22
|
+
*/
|
|
19
23
|
export declare function Item<C extends React.ElementType = "div">({ className, variant, size, render, as, ...props }: ItemProps<C>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
20
24
|
declare const itemMediaVariants: (props?: ({
|
|
21
25
|
variant?: "image" | "icon" | "default" | null | undefined;
|
|
@@ -23,30 +27,30 @@ declare const itemMediaVariants: (props?: ({
|
|
|
23
27
|
export interface ItemMediaProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className">, VariantProps<typeof itemMediaVariants> {
|
|
24
28
|
className?: string;
|
|
25
29
|
}
|
|
26
|
-
export declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): import("react
|
|
30
|
+
export declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): import("react").JSX.Element;
|
|
27
31
|
export interface ItemContentProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className"> {
|
|
28
32
|
className?: string;
|
|
29
33
|
}
|
|
30
|
-
export declare function ItemContent({ className, ...props }: ItemContentProps): import("react
|
|
34
|
+
export declare function ItemContent({ className, ...props }: ItemContentProps): import("react").JSX.Element;
|
|
31
35
|
export interface ItemTitleProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className"> {
|
|
32
36
|
className?: string;
|
|
33
37
|
}
|
|
34
|
-
export declare function ItemTitle({ className, ...props }: ItemTitleProps): import("react
|
|
38
|
+
export declare function ItemTitle({ className, ...props }: ItemTitleProps): import("react").JSX.Element;
|
|
35
39
|
export interface ItemDescriptionProps extends Omit<React.ComponentPropsWithoutRef<"p">, "className"> {
|
|
36
40
|
className?: string;
|
|
37
41
|
}
|
|
38
|
-
export declare function ItemDescription({ className, ...props }: ItemDescriptionProps): import("react
|
|
42
|
+
export declare function ItemDescription({ className, ...props }: ItemDescriptionProps): import("react").JSX.Element;
|
|
39
43
|
export interface ItemActionsProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className"> {
|
|
40
44
|
className?: string;
|
|
41
45
|
}
|
|
42
|
-
export declare function ItemActions({ className, ...props }: ItemActionsProps): import("react
|
|
46
|
+
export declare function ItemActions({ className, ...props }: ItemActionsProps): import("react").JSX.Element;
|
|
43
47
|
export interface ItemHeaderProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className"> {
|
|
44
48
|
className?: string;
|
|
45
49
|
}
|
|
46
|
-
export declare function ItemHeader({ className, ...props }: ItemHeaderProps): import("react
|
|
50
|
+
export declare function ItemHeader({ className, ...props }: ItemHeaderProps): import("react").JSX.Element;
|
|
47
51
|
export interface ItemFooterProps extends Omit<React.ComponentPropsWithoutRef<"div">, "className"> {
|
|
48
52
|
className?: string;
|
|
49
53
|
}
|
|
50
|
-
export declare function ItemFooter({ className, ...props }: ItemFooterProps): import("react
|
|
54
|
+
export declare function ItemFooter({ className, ...props }: ItemFooterProps): import("react").JSX.Element;
|
|
51
55
|
export { itemMediaVariants, itemVariants };
|
|
52
56
|
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/components/Item/Item.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,MAAM,WAAW,cAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,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AE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQpE;AAED,MAAM,WAAW,eAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAWlE;AAED,MAAM,WAAW,eAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAWlE;AAED,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as t}from"../../lib/utils.js";import{mergeProps as M}from"@base-ui/react/merge-props";import{useRender as f}from"@base-ui/react/use-render";import{cva as G}from"class-variance-authority";import{createElement as k}from"react";import{jsx as C}from"react/jsx-runtime";function q({className:P,...I}){return C("div",{"data-slot":"item-group",className:t("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",P),...I})}function B({className:P,...I}){return C("hr",{"data-slot":"item-separator",className:t("my-2 border-t border-border",P),...I})}var H=G(["rounded-lg border text-sm w-full group/item flex items-center flex-wrap outline-none transition-[color,box-shadow] duration-100","[a]:hover:bg-accent [a]:transition-colors","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]"],{variants:{variant:{default:"border-transparent",outline:"border-border",muted:"bg-accent/50 border-transparent text-accent-foreground"},size:{default:"gap-2.5 px-3 py-2.5",sm:"gap-2.5 px-3 py-2.5",xs:"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"}},defaultVariants:{variant:"default",size:"default"}});function J({className:P,variant:I="default",size:D="default",render:T,as:F,...A}){return f({defaultTagName:"div",props:M({className:t(H({variant:I,size:D,className:P}))},A),render:T??(F?k(F):void 0),state:{slot:"item",variant:I,size:D}})}var S=G("gap-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"[&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-md group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function K({className:P,variant:I="default",...D}){return C("div",{"data-slot":"item-media","data-variant":I,className:t(S({variant:I,className:P})),...D})}function L({className:P,...I}){return C("div",{"data-slot":"item-content",className:t("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",P),...I})}function O({className:P,...I}){return C("div",{"data-slot":"item-title",className:t("flex w-fit items-center gap-2 text-sm font-medium leading-snug underline-offset-4 line-clamp-1",P),...I})}function Q({className:P,...I}){return C("p",{"data-slot":"item-description",className:t("text-muted-foreground text-left text-sm font-normal leading-normal line-clamp-2 group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",P),...I})}function U({className:P,...I}){return C("div",{"data-slot":"item-actions",className:t("flex items-center gap-2",P),...I})}function W({className:P,...I}){return C("div",{"data-slot":"item-header",className:t("flex basis-full items-center justify-between gap-2",P),...I})}function X({className:P,...I}){return C("div",{"data-slot":"item-footer",className:t("flex basis-full items-center justify-between gap-2",P),...I})}export{H as itemVariants,S as itemMediaVariants,O as ItemTitle,B as ItemSeparator,K as ItemMedia,W as ItemHeader,q as ItemGroup,X as ItemFooter,Q as ItemDescription,L as ItemContent,U as ItemActions,J as Item};export{q as Fb,B as Gb,H as Hb,J as Ib,S as Jb,K as Kb,L as Lb,O as Mb,Q as Nb,U as Ob,W as Pb,X as Qb};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export interface KbdProps extends React.ComponentProps<"kbd"> {
|
|
2
2
|
}
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Keyboard key indicator component for displaying keyboard shortcuts.
|
|
5
|
+
*/
|
|
6
|
+
declare function Kbd({ className, ...props }: KbdProps): import("react").JSX.Element;
|
|
4
7
|
export interface KbdGroupProps extends React.ComponentProps<"div"> {
|
|
5
8
|
}
|
|
6
|
-
declare function KbdGroup({ className, ...props }: KbdGroupProps): import("react
|
|
9
|
+
declare function KbdGroup({ className, ...props }: KbdGroupProps): import("react").JSX.Element;
|
|
7
10
|
export { Kbd, KbdGroup };
|
|
8
11
|
//# sourceMappingURL=Kbd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../src/components/Kbd/Kbd.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEhE,iBAAS,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../src/components/Kbd/Kbd.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEhE;;GAEG;AACH,iBAAS,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,+BAa7C;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAErE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAQvD;AAED,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as f}from"../../lib/utils.js";import{jsx as G}from"react/jsx-runtime";function b({className:K,...P}){return G("kbd",{"data-slot":"kbd",className:f("bg-ink-well text-secondary border border-hairline pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-tooltip-key [[data-slot=tooltip-content]_&]:border-transparent [[data-slot=tooltip-content]_&]:text-tooltip-foreground",K),...P})}function q({className:K,...P}){return G("div",{"data-slot":"kbd-group",className:f("inline-flex items-center gap-1",K),...P})}export{q as KbdGroup,b as Kbd};export{b as Xd,q as Yd};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface LabelProps extends React.ComponentPropsWithoutRef<"label"> {
|
|
2
2
|
}
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A label component for form elements.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Label({ className, ...props }: LabelProps): import("react").JSX.Element;
|
|
4
7
|
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC;CAAG;AAE9E,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC;CAAG;AAE9E;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAWxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Rb as e}from"../../index-s2mc6jzt.js";import"../../lib/utils.js";export{e as Label};
|
|
@@ -7,6 +7,9 @@ declare const loadingIndicatorVariants: (props?: ({
|
|
|
7
7
|
export interface LoadingIndicatorProps extends Omit<React.ComponentProps<"output">, "children">, VariantProps<typeof loadingIndicatorVariants> {
|
|
8
8
|
label?: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* A lightweight loading indicator with spinner, dots, and line variants. Uses an `<output>` element for implicit role=status a11y semantics.
|
|
12
|
+
*/
|
|
13
|
+
export declare function LoadingIndicator({ variant, size, label, className, ...props }: LoadingIndicatorProps): React.JSX.Element;
|
|
11
14
|
export { loadingIndicatorVariants };
|
|
12
15
|
//# sourceMappingURL=LoadingIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,wBAAwB;;;8EAiB5B,CAAC;AAEH,MAAM,WAAW,qBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,EACvD,YAAY,CAAC,OAAO,wBAAwB,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAiBD,wBAAgB,gBAAgB,CAAC,EAChC,OAAmB,EACnB,IAAW,EACX,KAAiB,EACjB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,wBAAwB;;;8EAiB5B,CAAC;AAEH,MAAM,WAAW,qBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,EACvD,YAAY,CAAC,OAAO,wBAAwB,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAiBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAChC,OAAmB,EACnB,IAAW,EACX,KAAiB,EACjB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,qBAAqB,qBA2CvB;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as L}from"../../lib/utils.js";import{cva as B}from"class-variance-authority";import{jsx as I,jsxs as G}from"react/jsx-runtime";var C=B("",{variants:{variant:{spinner:"",dots:"",line:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"spinner",size:"md"}}),D={sm:"size-4",md:"size-5",lg:"size-6"},E={sm:"size-1.5",md:"size-2",lg:"size-2.5"};function F({variant:f="spinner",size:o="md",label:g="Loading",className:k,...q}){return G("output",{"data-slot":"loading-indicator",className:L("inline-flex items-center justify-center text-primary",k),...q,children:[I("span",{className:"sr-only",children:g}),f==="spinner"&&I("span",{className:L("inline-block animate-spin rounded-full border-2 border-current border-t-transparent",D[o??"md"])}),f==="dots"&&I("span",{className:"inline-flex items-center gap-1",children:[0,150,300].map((P)=>I("span",{className:L("rounded-full bg-current animate-pulse",E[o??"md"]),style:{animationDelay:`${P}ms`}},P))}),f==="line"&&I("span",{className:"h-1 w-full overflow-hidden rounded-full bg-ink-well block min-w-24",children:I("span",{className:"block h-full w-1/2 rounded-full bg-primary animate-pulse"})})]})}export{C as loadingIndicatorVariants,F as LoadingIndicator};export{C as oa,F as pa};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { type MoneyInput } from "./formatMoney";
|
|
4
|
+
declare const moneyAmountVariants: (props?: ({
|
|
5
|
+
tone?: "inherit" | "signed" | "delta" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type MoneyAmountTone = NonNullable<VariantProps<typeof moneyAmountVariants>["tone"]>;
|
|
8
|
+
export interface MoneyAmountProps extends Omit<ComponentPropsWithoutRef<"span">, "children"> {
|
|
9
|
+
/**
|
|
10
|
+
* A `@storepass/money` Money (or structurally compatible) instance, or the
|
|
11
|
+
* `{ amount, currency }` wire shape with `amount` in minor units.
|
|
12
|
+
*/
|
|
13
|
+
value: MoneyInput;
|
|
14
|
+
/** BCP 47 locale(s). Defaults to the runtime locale. */
|
|
15
|
+
locale?: string | string[];
|
|
16
|
+
/** Sign-aware coloring; inherit blends into the surrounding text. */
|
|
17
|
+
tone?: MoneyAmountTone;
|
|
18
|
+
/** How the currency is announced. Defaults to the locale's symbol. */
|
|
19
|
+
currencyDisplay?: "symbol" | "narrowSymbol" | "code" | "name";
|
|
20
|
+
/** When the sign is shown; `always`/`exceptZero` suit delta values. */
|
|
21
|
+
signDisplay?: "auto" | "always" | "exceptZero" | "negative";
|
|
22
|
+
/** Remaining `Intl.NumberFormat` options (notation, fraction digits, ...). */
|
|
23
|
+
formatOptions?: Omit<Intl.NumberFormatOptions, "style" | "currency" | "currencyDisplay" | "signDisplay">;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Inline money display for `@storepass/money` values and `{ amount, currency }`
|
|
27
|
+
* wire shapes. Formats through the browser's `Intl.NumberFormat` and injects
|
|
28
|
+
* tabular numerals so digits line up in tables and totals, while inheriting
|
|
29
|
+
* the surrounding font size and color so it drops into any text run.
|
|
30
|
+
* `data-sign` and `data-currency` are exposed for contextual styling.
|
|
31
|
+
*/
|
|
32
|
+
export declare function MoneyAmount({ value, locale, tone, currencyDisplay, signDisplay, formatOptions, className, ...props }: MoneyAmountProps): import("react").JSX.Element;
|
|
33
|
+
export { moneyAmountVariants };
|
|
34
|
+
//# sourceMappingURL=MoneyAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoneyAmount.d.ts","sourceRoot":"","sources":["../../../src/components/MoneyAmount/MoneyAmount.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAEN,KAAK,UAAU,EAGf,MAAM,eAAe,CAAC;AAEvB,QAAA,MAAM,mBAAmB;;8EAevB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,WAAW,CACxC,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAChD,CAAC;AAEF,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC1D;;;OAGG;IACH,KAAK,EAAE,UAAU,CAAC;IAClB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,qEAAqE;IACrE,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,sEAAsE;IACtE,eAAe,CAAC,EAAE,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9D,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,CAAC;IAC5D,8EAA8E;IAC9E,aAAa,CAAC,EAAE,IAAI,CACnB,IAAI,CAAC,mBAAmB,EACxB,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,aAAa,CACxD,CAAC;CACF;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,IAAgB,EAChB,eAAe,EACf,WAAW,EACX,aAAa,EACb,SAAS,EACT,GAAG,KAAK,EACR,EAAE,gBAAgB,+BAgBlB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface MoneyLikeCurrency {
|
|
2
|
+
/** Alpha code (ISO 4217 alpha-3, or free-form for custom assets). */
|
|
3
|
+
code: string;
|
|
4
|
+
/** Minor-unit precision used for arithmetic. */
|
|
5
|
+
decimalPlaces: number;
|
|
6
|
+
/** Optional alpha-3 alias `Intl.NumberFormat` should display instead. */
|
|
7
|
+
displayCode?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Structural view of a `@storepass/money` Money instance. Anything that can
|
|
11
|
+
* format itself and expose its currency and numeric value qualifies.
|
|
12
|
+
*/
|
|
13
|
+
export interface MoneyLike {
|
|
14
|
+
currency: MoneyLikeCurrency;
|
|
15
|
+
toNumber(): number;
|
|
16
|
+
format(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The `Money#toJSON` wire shape: `amount` is in minor units (cents). For a
|
|
20
|
+
* currency code `Intl.NumberFormat` can't resolve (non-ISO assets), pass
|
|
21
|
+
* `decimalPlaces` — the browser can't know a custom asset's precision, and
|
|
22
|
+
* money is never displayed at a guessed scale.
|
|
23
|
+
*/
|
|
24
|
+
export interface SerializedMoney {
|
|
25
|
+
amount: number;
|
|
26
|
+
currency: string;
|
|
27
|
+
decimalPlaces?: number;
|
|
28
|
+
}
|
|
29
|
+
export type MoneyInput = MoneyLike | SerializedMoney;
|
|
30
|
+
export declare function isMoneyLike(value: MoneyInput): value is MoneyLike;
|
|
31
|
+
export type MoneySign = "negative" | "zero" | "positive";
|
|
32
|
+
/** Sign of any money input, for styling hooks. */
|
|
33
|
+
export declare function moneySign(value: MoneyInput): MoneySign;
|
|
34
|
+
/** Alpha currency code of any money input. */
|
|
35
|
+
export declare function moneyCurrencyCode(value: MoneyInput): string;
|
|
36
|
+
/**
|
|
37
|
+
* Format any money input for display. Money instances format themselves —
|
|
38
|
+
* `Money#format` already honors `decimalPlaces` and `displayCode` — while
|
|
39
|
+
* serialized shapes are scaled from minor units and formatted by the
|
|
40
|
+
* browser's `Intl.NumberFormat`.
|
|
41
|
+
*/
|
|
42
|
+
export declare function formatMoney(value: MoneyInput, locale?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
43
|
+
//# sourceMappingURL=formatMoney.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatMoney.d.ts","sourceRoot":"","sources":["../../../src/components/MoneyAmount/formatMoney.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IACjC,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,IAAI,MAAM,CAAC;IACnB,MAAM,CACL,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAChC,MAAM,CAAC;CACV;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;AAErD,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,IAAI,SAAS,CAKjE;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAEzD,kDAAkD;AAClD,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAKtD;AAED,8CAA8C;AAC9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAE3D;AAyED;;;;;GAKG;AACH,wBAAgB,WAAW,CAC1B,KAAK,EAAE,UAAU,EACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAChC,MAAM,CAGR"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { MoneyInput, MoneyLike, MoneyLikeCurrency, MoneySign, SerializedMoney, } from "./formatMoney";
|
|
2
|
+
export { formatMoney, isMoneyLike, moneyCurrencyCode, moneySign, } from "./formatMoney";
|
|
3
|
+
export type { MoneyAmountProps, MoneyAmountTone } from "./MoneyAmount";
|
|
4
|
+
export { MoneyAmount, moneyAmountVariants } from "./MoneyAmount";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MoneyAmount/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,eAAe,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,SAAS,GACT,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{te as U}from"../../lib/utils.js";function H(M){return typeof M.format==="function"&&typeof M.currency==="object"}function L(M){let A=H(M)?M.toNumber():M.amount;if(A<0)return"negative";if(A>0)return"positive";return"zero"}function Q(M){return H(M)?M.currency.code:M.currency}var G=new Map;function K(M,A){let S=JSON.stringify([M,A]),q=G.get(S);if(!q){if(G.size>=256)G.clear();q=new Intl.NumberFormat(M,A),G.set(S,q)}return q}function Y(M,A){return K(M,{style:"currency",currency:A}).resolvedOptions().maximumFractionDigits??2}function Z(M,A,S){let{amount:q,currency:B,decimalPlaces:T}=M,E;try{E=K(A,{style:"currency",currency:B,...T!==void 0&&{minimumFractionDigits:T,maximumFractionDigits:T},...S})}catch{}if(E){let X=T??Y(A,B);return E.format(q/10**X)}if(T===void 0)throw Error(`formatMoney: Intl.NumberFormat rejected currency code "${B}" and no decimalPlaces was given, so the amount's scale is unknown. Pass decimalPlaces or a Money instance.`);let J=K(A,{style:"decimal",minimumFractionDigits:T,maximumFractionDigits:T,...S});return`${B} ${J.format(q/10**T)}`}function R(M,A,S){if(H(M))return M.format(A,S);return Z(M,A,S)}import{cva as _}from"class-variance-authority";import{jsx as x}from"react/jsx-runtime";var W=_("tabular-nums",{variants:{tone:{inherit:"",signed:"data-[sign=negative]:text-destructive",delta:"data-[sign=negative]:text-destructive data-[sign=positive]:text-utility-success-700"}},defaultVariants:{tone:"inherit"}});function $({value:M,locale:A,tone:S="inherit",currencyDisplay:q,signDisplay:B,formatOptions:T,className:E,...J}){return x("span",{"data-slot":"money","data-sign":L(M),"data-currency":Q(M),className:U(W({tone:S}),E),...J,children:R(M,A,{currencyDisplay:q,signDisplay:B,...T})})}export{L as moneySign,Q as moneyCurrencyCode,W as moneyAmountVariants,H as isMoneyLike,R as formatMoney,$ as MoneyAmount};export{H as qa,L as ra,Q as sa,R as ta,W as ua,$ as va};
|
|
@@ -6,28 +6,32 @@ declare const navbarVariants: (props?: ({
|
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface NavbarProps extends ComponentPropsWithoutRef<"nav">, VariantProps<typeof navbarVariants> {
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* A horizontal navigation bar component with support for headers, sections,
|
|
11
|
+
* items, and footers. Mirrors the Sidebar API for top-of-page navigation.
|
|
12
|
+
*/
|
|
13
|
+
export declare function Navbar({ className, variant, ...props }: NavbarProps): import("react").JSX.Element;
|
|
10
14
|
export interface NavbarHeaderProps extends ComponentPropsWithoutRef<"div"> {
|
|
11
15
|
}
|
|
12
|
-
export declare function NavbarHeader({ className, ...props }: NavbarHeaderProps): import("react
|
|
16
|
+
export declare function NavbarHeader({ className, ...props }: NavbarHeaderProps): import("react").JSX.Element;
|
|
13
17
|
export interface NavbarBodyProps extends ComponentPropsWithoutRef<"div"> {
|
|
14
18
|
}
|
|
15
|
-
export declare function NavbarBody({ className, ...props }: NavbarBodyProps): import("react
|
|
19
|
+
export declare function NavbarBody({ className, ...props }: NavbarBodyProps): import("react").JSX.Element;
|
|
16
20
|
export interface NavbarFooterProps extends ComponentPropsWithoutRef<"div"> {
|
|
17
21
|
}
|
|
18
|
-
export declare function NavbarFooter({ className, ...props }: NavbarFooterProps): import("react
|
|
22
|
+
export declare function NavbarFooter({ className, ...props }: NavbarFooterProps): import("react").JSX.Element;
|
|
19
23
|
export interface NavbarSectionProps extends ComponentPropsWithoutRef<"div"> {
|
|
20
24
|
}
|
|
21
|
-
export declare function NavbarSection({ className, ...props }: NavbarSectionProps): import("react
|
|
25
|
+
export declare function NavbarSection({ className, ...props }: NavbarSectionProps): import("react").JSX.Element;
|
|
22
26
|
export interface NavbarDividerProps extends ComponentPropsWithoutRef<"hr"> {
|
|
23
27
|
}
|
|
24
|
-
export declare function NavbarDivider({ className, ...props }: NavbarDividerProps): import("react
|
|
28
|
+
export declare function NavbarDivider({ className, ...props }: NavbarDividerProps): import("react").JSX.Element;
|
|
25
29
|
export interface NavbarSpacerProps extends ComponentPropsWithoutRef<"div"> {
|
|
26
30
|
}
|
|
27
|
-
export declare function NavbarSpacer({ className, ...props }: NavbarSpacerProps): import("react
|
|
31
|
+
export declare function NavbarSpacer({ className, ...props }: NavbarSpacerProps): import("react").JSX.Element;
|
|
28
32
|
export interface NavbarHeadingProps extends ComponentPropsWithoutRef<"span"> {
|
|
29
33
|
}
|
|
30
|
-
export declare function NavbarHeading({ className, ...props }: NavbarHeadingProps): import("react
|
|
34
|
+
export declare function NavbarHeading({ className, ...props }: NavbarHeadingProps): import("react").JSX.Element;
|
|
31
35
|
declare const navbarItemVariants: (props?: ({
|
|
32
36
|
current?: boolean | null | undefined;
|
|
33
37
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -38,9 +42,14 @@ export type NavbarItemOwnProps = useRender.ComponentProps<"button"> & VariantPro
|
|
|
38
42
|
export type NavbarItemProps<C extends React.ElementType = "button"> = NavbarItemOwnProps & {
|
|
39
43
|
as?: C;
|
|
40
44
|
} & Omit<React.ComponentPropsWithoutRef<C>, keyof NavbarItemOwnProps | "as">;
|
|
41
|
-
|
|
45
|
+
/**
|
|
46
|
+
* When `current` is true, an underline indicator is rendered beneath the
|
|
47
|
+
* item. `render` accepts a custom element (e.g. a router Link) and receives
|
|
48
|
+
* className, data-current, ref, and children.
|
|
49
|
+
*/
|
|
50
|
+
export declare function NavbarItem<C extends React.ElementType = "button">({ current, className, children, render, as, ...props }: NavbarItemProps<C>): import("react").JSX.Element;
|
|
42
51
|
export interface NavbarLabelProps extends ComponentPropsWithoutRef<"span"> {
|
|
43
52
|
}
|
|
44
|
-
export declare function NavbarLabel({ className, ...props }: NavbarLabelProps): import("react
|
|
53
|
+
export declare function NavbarLabel({ className, ...props }: NavbarLabelProps): import("react").JSX.Element;
|
|
45
54
|
export { navbarItemVariants, navbarVariants };
|
|
46
55
|
//# sourceMappingURL=Navbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.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,EAE7B,KAAK,SAAS,EACd,MAAM,OAAO,CAA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CAAC,CAAC,+BA2BpB;AAED,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;CAAG;AAE7E,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{te as P}from"../../lib/utils.js";import{mergeProps as z}from"@base-ui/react/merge-props";import{useRender as A}from"@base-ui/react/use-render";import{cva as D}from"class-variance-authority";import{createElement as C}from"react";import{jsx as H,jsxs as Y}from"react/jsx-runtime";var F=D("flex w-full min-w-0 items-stretch",{variants:{variant:{default:"",bordered:"border-b border-border"}},defaultVariants:{variant:"default"}});function G({className:b,variant:v,...S}){return H("nav",{...S,className:P(F({variant:v}),b)})}function J({className:b,...v}){return H("div",{...v,className:P("flex items-center gap-2 border-r border-border pr-3 mr-3 [&>[data-slot=section]+[data-slot=section]]:ml-2.5",b)})}function K({className:b,...v}){return H("div",{...v,className:P("flex flex-1 items-center gap-1 overflow-x-auto py-2 [&>[data-slot=section]+[data-slot=section]]:ml-5",b)})}function M({className:b,...v}){return H("div",{...v,className:P("flex items-center gap-1 border-l border-border pl-3 ml-3 [&>[data-slot=section]+[data-slot=section]]:ml-2.5",b)})}function N({className:b,...v}){return H("div",{...v,"data-slot":"section",className:P("flex items-center gap-[3px]",b)})}function O({className:b,...v}){return H("hr",{...v,"aria-orientation":"vertical",className:P("mx-3 h-6 w-px border-0 bg-border",b)})}function Q({className:b,...v}){return H("div",{"aria-hidden":"true",...v,className:P("ml-4 flex-1",b)})}function T({className:b,...v}){return H("span",{...v,className:P("mr-1 px-2 text-xs/6 font-medium text-muted-foreground",b)})}var I=D(["flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-left","text-sm/5 font-medium text-foreground","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:size-4 [&_[data-slot=icon]]:text-muted-foreground","hover:bg-accent hover:[&_[data-slot=icon]]:text-foreground","active:bg-accent active:[&_[data-slot=icon]]:text-foreground","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],{variants:{current:{true:"[&_[data-slot=icon]]:text-foreground bg-accent text-foreground",false:""}},defaultVariants:{current:!1}});function U({current:b,className:v,children:S,render:L,as:y,...f}){let B=L??(y?C(y):void 0),q={className:P(I({current:b??!1}),!B&&"cursor-default",v),"data-current":b?"true":void 0,children:S},w=A({defaultTagName:"button",render:B,props:z(q,f)});return Y("span",{className:"relative",children:[b&&H("span",{className:"absolute inset-x-2 -bottom-2 h-0.5 rounded-full bg-primary"}),w]})}function X({className:b,...v}){return H("span",{...v,className:P("truncate",b)})}export{F as navbarVariants,I as navbarItemVariants,Q as NavbarSpacer,N as NavbarSection,X as NavbarLabel,U as NavbarItem,T as NavbarHeading,J as NavbarHeader,M as NavbarFooter,O as NavbarDivider,K as NavbarBody,G as Navbar};export{F as wa,G as xa,J as ya,K as za,M as Aa,N as Ba,O as Ca,Q as Da,T as Ea,I as Fa,U as Ga,X as Ha};
|
|
@@ -7,15 +7,21 @@ declare const numberFieldGroupVariants: (props?: ({
|
|
|
7
7
|
declare const numberFieldInputVariants: (props?: ({
|
|
8
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
-
declare const numberFieldButtonVariants: (props?: (
|
|
11
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
declare const numberFieldButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
11
|
export interface NumberFieldProps extends Omit<React.ComponentPropsWithoutRef<typeof BaseNumberField.Root>, "className">, VariantProps<typeof numberFieldGroupVariants> {
|
|
14
12
|
className?: string;
|
|
15
13
|
label?: string;
|
|
16
14
|
error?: string;
|
|
17
15
|
scrubArea?: boolean;
|
|
18
16
|
}
|
|
19
|
-
|
|
17
|
+
/**
|
|
18
|
+
* A number input component with increment/decrement buttons and optional scrub area for precise value adjustments.
|
|
19
|
+
*
|
|
20
|
+
* Size follows the shared control-size contract (h-8 / h-9 / h-10,
|
|
21
|
+
* text-sm/font-medium) so a NumberField sits in a row of Inputs/Selects/Buttons
|
|
22
|
+
* at identical height and type. Steppers are nested secondary-button chips,
|
|
23
|
+
* not edge-to-edge addons.
|
|
24
|
+
*/
|
|
25
|
+
export declare function NumberField({ size, className, label, error, scrubArea, id, ...props }: NumberFieldProps): React.JSX.Element;
|
|
20
26
|
export { numberFieldButtonVariants, numberFieldGroupVariants, numberFieldInputVariants, };
|
|
21
27
|
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE7E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE7E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,QAAA,MAAM,wBAAwB;;8EAgB7B,CAAC;AAEF,QAAA,MAAM,wBAAwB;;8EAc7B,CAAC;AAIF,QAAA,MAAM,yBAAyB,oFAO7B,CAAC;AAEH,MAAM,WAAW,gBAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAC3D,WAAW,CACX,EACD,YAAY,CAAC,OAAO,wBAAwB,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC3B,IAAI,EACJ,SAAS,EACT,KAAK,EACL,KAAK,EACL,SAAiB,EACjB,EAAE,EACF,GAAG,KAAK,EACR,EAAE,gBAAgB,qBAuElB;AAmBD,OAAO,EACN,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tc as A}from"../Field/index.js";import{Cd as U,Md as W}from"../../index-st80n69g.js";import"../Icon/index.js";import{se as Z}from"../../index-7abyvs9n.js";import{te as Y}from"../../lib/utils.js";import{Field as K}from"@base-ui/react/field";import{NumberField as q}from"@base-ui/react/number-field";import{faMinus as z,faPlus as C}from"@fortawesome/pro-solid-svg-icons";import{cva as f}from"class-variance-authority";import*as G from"react";import{jsx as k,jsxs as y}from"react/jsx-runtime";var L=f(["flex w-fit items-center gap-0.5 rounded-lg border border-input bg-background p-0.5 shadow-xs","transition-[color,box-shadow]","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","has-[[data-invalid]]:ring-destructive/20 has-[[data-invalid]]:border-destructive","has-[[data-disabled]]:pointer-events-none has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50"],{variants:{size:W},defaultVariants:{size:"md"}}),R=f(`h-full min-w-0 bg-transparent text-center tabular-nums outline-none ${U}`,{variants:{size:{sm:"w-12",md:"w-14",lg:"w-16"}},defaultVariants:{size:"md"}}),$=f(["flex aspect-square h-full shrink-0 items-center justify-center rounded-md","bg-secondary text-secondary-foreground shadow-xs-skeuomorphic select-none","transition-[background-color,box-shadow,transform] duration-150","hover:bg-secondary/80 active:translate-y-px active:shadow-none","outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"]);function E({size:D,className:S,label:Q,error:h,scrubArea:X=!1,id:H,...w}){let g=A(),V=G.useId(),J=H||V,M=y(q.Group,{"data-slot":"number-field-group",className:Y(L({size:D}),S),children:[k(q.Decrement,{className:$(),children:k(Z,{icon:z,"data-slot":"icon"})}),k(q.Input,{className:Y(R({size:D}))}),k(q.Increment,{className:$(),children:k(Z,{icon:C,"data-slot":"icon"})})]}),v=k(q.Root,{id:J,...w,children:M});if(g)return v;let P=Q?X?y(q.ScrubArea,{className:"cursor-ew-resize",children:[k(K.Label,{htmlFor:J,className:"cursor-ew-resize text-sm font-medium text-foreground",children:Q}),k(q.ScrubAreaCursor,{className:"drop-shadow-[0_1px_1px_#0008] filter",children:k(O,{})})]}):k(K.Label,{htmlFor:J,className:"text-sm font-medium text-foreground",children:Q}):null;return y(K.Root,{invalid:h?!0:void 0,className:"flex flex-col gap-1",children:[y(q.Root,{id:J,...w,children:[P&&k("div",{className:"mb-1 flex flex-col items-start",children:P}),M]}),k(K.Error,{className:"text-sm text-destructive",children:h})]})}function O(D){return y("svg",{width:"26",height:"14",viewBox:"0 0 24 14",fill:"black",stroke:"white",xmlns:"http://www.w3.org/2000/svg",...D,children:[k("title",{children:"Scrub cursor"}),k("path",{d:"M19.5 5.5L6.49737 5.51844V2L1 6.9999L6.5 12L6.49737 8.5L19.5 8.5V12L25 6.9999L19.5 2V5.5Z"})]})}export{R as numberFieldInputVariants,L as numberFieldGroupVariants,$ as numberFieldButtonVariants,E as NumberField};export{R as Ia,$ as Ja,E as Ka};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
+
import { type ButtonProps } from "../Button/Button";
|
|
4
|
+
declare const pageHeadingVariants: (props?: ({
|
|
5
|
+
size?: "display" | "default" | "compact" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare const pageHeadingTitleVariants: (props?: ({
|
|
8
|
+
size?: "display" | "default" | "compact" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export type PageHeadingSize = NonNullable<VariantProps<typeof pageHeadingVariants>["size"]>;
|
|
11
|
+
export interface PageHeadingProps extends Omit<ComponentPropsWithoutRef<"header">, "children" | "title"> {
|
|
12
|
+
/** Primary page label. */
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* 24px page title by default; 36px `display` for configuration hubs and
|
|
16
|
+
* other headline surfaces; 20px `compact` for dense operational surfaces.
|
|
17
|
+
*/
|
|
18
|
+
size?: PageHeadingSize;
|
|
19
|
+
/** Optional icon displayed before the title. */
|
|
20
|
+
icon?: ReactNode;
|
|
21
|
+
/** Static status or count beside the title. Put editable status controls in actions. */
|
|
22
|
+
badge?: ReactNode;
|
|
23
|
+
/** Quiet supporting copy displayed below the title row. */
|
|
24
|
+
description?: ReactNode;
|
|
25
|
+
/** Breadcrumb trail. Replaces `back` at 40rem of header width and above. */
|
|
26
|
+
breadcrumbs?: ReactNode;
|
|
27
|
+
/** Compact up-navigation, normally a PageHeadingBackLink. */
|
|
28
|
+
back?: ReactNode;
|
|
29
|
+
/** Local page navigation displayed beside the title or on its own row. */
|
|
30
|
+
navigation?: ReactNode;
|
|
31
|
+
/** Places local navigation beside the title or on its own row. */
|
|
32
|
+
navigationPlacement?: "inline" | "below";
|
|
33
|
+
/**
|
|
34
|
+
* Right-aligned page actions. Buttons, ghost controls, ButtonGroups, and
|
|
35
|
+
* DropdownMenu triggers are supported; compose a menu trigger `asChild`
|
|
36
|
+
* around a Button so it inherits the library's control treatment.
|
|
37
|
+
*/
|
|
38
|
+
actions?: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Container-responsive page heading with quiet navigation and action slots.
|
|
42
|
+
* The single title ramp for the app: display for configuration hubs
|
|
43
|
+
* (SettingsHeader delegates here), default for the shared application/detail
|
|
44
|
+
* scale, compact for dense lists, boards, and operational workspaces. It stays
|
|
45
|
+
* surface-free so it belongs to the page canvas instead of reading as a
|
|
46
|
+
* nested card. It measures its own width: breadcrumbs and inline navigation
|
|
47
|
+
* expand at 40rem; actions move beside the title at 48rem. Long titles wrap.
|
|
48
|
+
*/
|
|
49
|
+
export declare function PageHeading({ title, size, icon, badge, description, breadcrumbs, back, navigation, navigationPlacement, actions, className, ...props }: PageHeadingProps): import("react").JSX.Element;
|
|
50
|
+
export { pageHeadingTitleVariants, pageHeadingVariants };
|
|
51
|
+
export interface PageHeadingBackLinkProps extends Omit<ButtonProps, "variant" | "size"> {
|
|
52
|
+
/** Renders the link as a plain anchor; pass `render` for router links. */
|
|
53
|
+
href?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Ghost-styled up-navigation for a PageHeading. Shares the ghost Button styles
|
|
57
|
+
* (and SettingsBackButton) so hover, focus, and sizing stay inherited; the only additions are a quieter resting
|
|
58
|
+
* text color and a negative margin that optically aligns the label with the
|
|
59
|
+
* content edge despite the button's padding. Label the destination
|
|
60
|
+
* (e.g. "Engineering"), not "Back".
|
|
61
|
+
*/
|
|
62
|
+
export declare function PageHeadingBackLink({ href, render, className, children, ...props }: PageHeadingBackLinkProps): import("react").JSX.Element | null;
|
|
63
|
+
export interface PageHeadingNavProps extends ComponentPropsWithoutRef<"nav"> {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Compact local navigation for the PageHeading navigation slot. Wears the
|
|
67
|
+
* Tabs soft (trackless) variant so heading navigation and Tabs share one
|
|
68
|
+
* style source.
|
|
69
|
+
*/
|
|
70
|
+
export declare function PageHeadingNav({ className, ...props }: PageHeadingNavProps): import("react").JSX.Element;
|
|
71
|
+
export interface PageHeadingNavLinkProps extends Omit<ComponentPropsWithoutRef<"a">, "aria-current"> {
|
|
72
|
+
current?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Quiet local-navigation link styled by the Tabs soft variant: it mirrors
|
|
76
|
+
* Base UI's `data-active` attribute so the shared trigger styles apply
|
|
77
|
+
* unchanged. Deliberately an anchor rather than the Tabs widget — these
|
|
78
|
+
* links navigate to URLs (`aria-current="page"`), they don't switch
|
|
79
|
+
* `role="tab"` panels — so the semantics stay native while the styling
|
|
80
|
+
* can't drift from Tabs.
|
|
81
|
+
*/
|
|
82
|
+
export declare function PageHeadingNavLink({ current, className, ...props }: PageHeadingNavLinkProps): import("react").JSX.Element;
|
|
83
|
+
//# sourceMappingURL=PageHeading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeading.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeading/PageHeading.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAU,KAAK,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAI5E,QAAA,MAAM,mBAAmB;;8EAiBxB,CAAC;AAMF,QAAA,MAAM,wBAAwB;;8EAc7B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,CACxC,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAChD,CAAC;AAEF,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACtE,0BAA0B;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,gDAAg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AO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EAClC,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,uBAAuB,+BAczB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { PageHeadingBackLinkProps, PageHeadingNavLinkProps, PageHeadingNavProps, PageHeadingProps, PageHeadingSize, } from "./PageHeading";
|
|
2
|
+
export { PageHeading, PageHeadingBackLink, PageHeadingNav, PageHeadingNavLink, pageHeadingTitleVariants, pageHeadingVariants, } from "./PageHeading";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeading/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{La as a,Ma as e,Na as g,Oa as i,Pa as n,Qa as P}from"../../index-27w72p7z.js";import"../../index-f862wbmh.js";import"../../index-8b3c6nnb.js";import"../../index-st80n69g.js";import"../Icon/index.js";import"../../index-7abyvs9n.js";import"../../lib/utils.js";export{a as pageHeadingVariants,e as pageHeadingTitleVariants,P as PageHeadingNavLink,n as PageHeadingNav,i as PageHeadingBackLink,g as PageHeading};
|
|
@@ -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};
|