@simpleapps-com/augur-web 2.4.0 → 2026.11.2
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/EXPORTS.md +18 -189
- package/README.md +18 -364
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.d.ts +4 -5
- package/dist/accordion.d.ts.map +1 -0
- package/dist/add-to-cart-button.cjs.map +1 -1
- package/dist/add-to-cart-button.d.ts +5 -8
- package/dist/add-to-cart-button.d.ts.map +1 -0
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.d.ts +5 -7
- package/dist/breadcrumb.d.ts.map +1 -0
- package/dist/breadcrumbs.cjs.map +1 -1
- package/dist/breadcrumbs.d.ts +4 -4
- package/dist/breadcrumbs.d.ts.map +1 -0
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.ts +7 -9
- package/dist/button.d.ts.map +1 -0
- package/dist/card.cjs.map +1 -1
- package/dist/card.d.ts +3 -4
- package/dist/card.d.ts.map +1 -0
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.d.ts +3 -4
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/chunk-32XB3REY.cjs.map +1 -1
- package/dist/chunk-5VMEEKZ5.cjs.map +1 -1
- package/dist/chunk-5ZITWMV4.cjs.map +1 -1
- package/dist/chunk-76RSVRGB.cjs.map +1 -1
- package/dist/chunk-7EXXNELX.cjs.map +1 -1
- package/dist/chunk-BXMTQGKV.cjs.map +1 -1
- package/dist/{chunk-DCXYO3RB.js → chunk-C6K7FZNX.js} +7 -3
- package/dist/chunk-C6K7FZNX.js.map +1 -0
- package/dist/{chunk-AE4GLYJE.cjs → chunk-DMWSWL4B.cjs} +7 -3
- package/dist/chunk-DMWSWL4B.cjs.map +1 -0
- package/dist/chunk-GSR6SMQ2.cjs.map +1 -1
- package/dist/chunk-IO77MGHW.js +220 -0
- package/dist/chunk-IO77MGHW.js.map +1 -0
- package/dist/chunk-JXW4XE2P.cjs.map +1 -1
- package/dist/{chunk-OJ5G4BLS.js → chunk-KVHOMD4T.js} +15 -18
- package/dist/chunk-KVHOMD4T.js.map +1 -0
- package/dist/chunk-MAENILZP.cjs.map +1 -1
- package/dist/chunk-NEY26NNF.cjs.map +1 -1
- package/dist/chunk-QKWXJM4Q.cjs +220 -0
- package/dist/chunk-QKWXJM4Q.cjs.map +1 -0
- package/dist/chunk-T52J3SHP.cjs.map +1 -1
- package/dist/{chunk-I5NVZORX.cjs → chunk-TFP5RICB.cjs} +15 -18
- package/dist/chunk-TFP5RICB.cjs.map +1 -0
- package/dist/chunk-UFL6PVLI.cjs.map +1 -1
- package/dist/chunk-VL6L4GDA.cjs.map +1 -1
- package/dist/chunk-WJUDOEVB.cjs.map +1 -1
- package/dist/chunk-XGKBDPGD.cjs.map +1 -1
- package/dist/chunk-Z57QBVUC.cjs.map +1 -1
- package/dist/command.cjs +1 -0
- package/dist/command.cjs.map +1 -1
- package/dist/command.d.ts +13 -15
- package/dist/command.d.ts.map +1 -0
- package/dist/command.js +1 -0
- package/dist/command.js.map +1 -1
- package/dist/confirm-dialog.cjs.map +1 -1
- package/dist/confirm-dialog.d.ts +4 -6
- package/dist/confirm-dialog.d.ts.map +1 -0
- package/dist/data-table.cjs +35 -23
- package/dist/data-table.cjs.map +1 -1
- package/dist/data-table.d.ts +9 -11
- package/dist/data-table.d.ts.map +1 -0
- package/dist/data-table.js +34 -22
- package/dist/data-table.js.map +1 -1
- package/dist/detail-panel.cjs.map +1 -1
- package/dist/detail-panel.d.ts +6 -8
- package/dist/detail-panel.d.ts.map +1 -0
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.d.ts +6 -8
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.d.ts +5 -7
- package/dist/dropdown-menu.d.ts.map +1 -0
- package/dist/financing-widget.cjs +1 -3
- package/dist/financing-widget.cjs.map +1 -1
- package/dist/financing-widget.d.ts +5 -6
- package/dist/financing-widget.d.ts.map +1 -0
- package/dist/financing-widget.js +1 -3
- package/dist/financing-widget.js.map +1 -1
- package/dist/form-field.cjs.map +1 -1
- package/dist/form-field.d.ts +4 -5
- package/dist/form-field.d.ts.map +1 -0
- package/dist/form-input.cjs.map +1 -1
- package/dist/form-input.d.ts +4 -5
- package/dist/form-input.d.ts.map +1 -0
- package/dist/form-select.cjs.map +1 -1
- package/dist/form-select.d.ts +4 -5
- package/dist/form-select.d.ts.map +1 -0
- package/dist/form-textarea.cjs.map +1 -1
- package/dist/form-textarea.d.ts +4 -5
- package/dist/form-textarea.d.ts.map +1 -0
- package/dist/gtm.cjs +3 -2
- package/dist/gtm.cjs.map +1 -1
- package/dist/gtm.d.ts +12 -15
- package/dist/gtm.d.ts.map +1 -0
- package/dist/gtm.js +2 -1
- package/dist/input.cjs.map +1 -1
- package/dist/input.d.ts +4 -5
- package/dist/input.d.ts.map +1 -0
- package/dist/label.cjs.map +1 -1
- package/dist/label.d.ts +5 -7
- package/dist/label.d.ts.map +1 -0
- package/dist/list-view.cjs.map +1 -1
- package/dist/list-view.d.ts +5 -7
- package/dist/list-view.d.ts.map +1 -0
- package/dist/mdx-components.cjs +5 -2
- package/dist/mdx-components.cjs.map +1 -1
- package/dist/mdx-components.d.ts +11 -6
- package/dist/mdx-components.d.ts.map +1 -0
- package/dist/mdx-components.js +5 -2
- package/dist/mdx-components.js.map +1 -1
- package/dist/navigation-menu.cjs.map +1 -1
- package/dist/navigation-menu.d.ts +5 -7
- package/dist/navigation-menu.d.ts.map +1 -0
- package/dist/pagination.cjs +3 -2
- package/dist/pagination.cjs.map +1 -1
- package/dist/pagination.d.ts +10 -14
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +2 -1
- package/dist/payment-modal.cjs +20 -19
- package/dist/payment-modal.cjs.map +1 -1
- package/dist/payment-modal.d.ts +5 -7
- package/dist/payment-modal.d.ts.map +1 -0
- package/dist/payment-modal.js +19 -18
- package/dist/payment-modal.js.map +1 -1
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.d.ts +4 -5
- package/dist/popover.d.ts.map +1 -0
- package/dist/price-format.cjs.map +1 -1
- package/dist/price-format.d.ts +4 -5
- package/dist/price-format.d.ts.map +1 -0
- package/dist/price.cjs +4 -1
- package/dist/price.cjs.map +1 -1
- package/dist/price.d.ts +8 -22
- package/dist/price.d.ts.map +1 -0
- package/dist/price.js +4 -1
- package/dist/price.js.map +1 -1
- package/dist/provider.cjs +4 -2
- package/dist/provider.cjs.map +1 -1
- package/dist/provider.d.ts +7 -10
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +3 -1
- package/dist/provider.js.map +1 -1
- package/dist/quantity-input.cjs +27 -40
- package/dist/quantity-input.cjs.map +1 -1
- package/dist/quantity-input.d.ts +4 -5
- package/dist/quantity-input.d.ts.map +1 -0
- package/dist/quantity-input.js +27 -40
- package/dist/quantity-input.js.map +1 -1
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.d.ts +3 -4
- package/dist/radio-group.d.ts.map +1 -0
- package/dist/resource-tabs.cjs +1 -0
- package/dist/resource-tabs.cjs.map +1 -1
- package/dist/resource-tabs.d.ts +6 -8
- package/dist/resource-tabs.d.ts.map +1 -0
- package/dist/resource-tabs.js +1 -0
- package/dist/resource-tabs.js.map +1 -1
- package/dist/rules.d.ts +210 -0
- package/dist/rules.d.ts.map +1 -0
- package/dist/select.cjs.map +1 -1
- package/dist/select.d.ts +4 -5
- package/dist/select.d.ts.map +1 -0
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.d.ts +3 -4
- package/dist/separator.d.ts.map +1 -0
- package/dist/session-replay.cjs +4 -2
- package/dist/session-replay.cjs.map +1 -1
- package/dist/session-replay.d.ts +4 -5
- package/dist/session-replay.d.ts.map +1 -0
- package/dist/session-replay.js +4 -2
- package/dist/session-replay.js.map +1 -1
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.d.ts +2 -4
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/spinner.cjs.map +1 -1
- package/dist/spinner.d.ts +2 -4
- package/dist/spinner.d.ts.map +1 -0
- package/dist/stock-label.cjs +14 -12
- package/dist/stock-label.cjs.map +1 -1
- package/dist/stock-label.d.ts +7 -7
- package/dist/stock-label.d.ts.map +1 -0
- package/dist/stock-label.js +14 -12
- package/dist/stock-label.js.map +1 -1
- package/dist/table.cjs.map +1 -1
- package/dist/table.d.ts +3 -4
- package/dist/table.d.ts.map +1 -0
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.d.ts +4 -5
- package/dist/tabs.d.ts.map +1 -0
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.d.ts +4 -5
- package/dist/textarea.d.ts.map +1 -0
- package/llms.txt +23 -38
- package/package.json +26 -17
- package/dist/accordion.d.cts +0 -9
- package/dist/add-to-cart-button.d.cts +0 -14
- package/dist/breadcrumb.d.cts +0 -22
- package/dist/breadcrumbs.d.cts +0 -31
- package/dist/button.d.cts +0 -27
- package/dist/card.d.cts +0 -10
- package/dist/checkbox.d.cts +0 -6
- package/dist/chunk-AE4GLYJE.cjs.map +0 -1
- package/dist/chunk-DCXYO3RB.js.map +0 -1
- package/dist/chunk-I5NVZORX.cjs.map +0 -1
- package/dist/chunk-OJ5G4BLS.js.map +0 -1
- package/dist/command.d.cts +0 -87
- package/dist/confirm-dialog.d.cts +0 -35
- package/dist/data-table.d.cts +0 -55
- package/dist/detail-panel.d.cts +0 -59
- package/dist/dialog.d.cts +0 -22
- package/dist/dropdown-menu.d.cts +0 -30
- package/dist/financing-widget.d.cts +0 -45
- package/dist/form-field.d.cts +0 -14
- package/dist/form-input.d.cts +0 -19
- package/dist/form-select.d.cts +0 -34
- package/dist/form-textarea.d.cts +0 -12
- package/dist/gtm.d.cts +0 -69
- package/dist/input.d.cts +0 -6
- package/dist/label.d.cts +0 -8
- package/dist/list-view.d.cts +0 -18
- package/dist/mdx-components.d.cts +0 -20
- package/dist/navigation-menu.d.cts +0 -15
- package/dist/pagination.d.cts +0 -50
- package/dist/payment-modal.d.cts +0 -30
- package/dist/popover.d.cts +0 -9
- package/dist/price-format.d.cts +0 -21
- package/dist/price.d.cts +0 -90
- package/dist/provider.d.cts +0 -47
- package/dist/quantity-input.d.cts +0 -33
- package/dist/radio-group.d.cts +0 -7
- package/dist/resource-tabs.d.cts +0 -33
- package/dist/select.d.cts +0 -15
- package/dist/separator.d.cts +0 -6
- package/dist/session-replay.d.cts +0 -44
- package/dist/skeleton.d.cts +0 -5
- package/dist/spinner.d.cts +0 -10
- package/dist/stock-label.d.cts +0 -47
- package/dist/table.d.cts +0 -12
- package/dist/tabs.d.cts +0 -9
- package/dist/textarea.d.cts +0 -6
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
-
|
|
5
|
-
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
6
|
-
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
7
|
-
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
8
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
9
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
|
-
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
|
|
15
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
package/dist/pagination.d.cts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { ButtonProps } from './button.cjs';
|
|
4
|
-
import 'class-variance-authority/types';
|
|
5
|
-
import 'class-variance-authority';
|
|
6
|
-
|
|
7
|
-
declare const Pagination: {
|
|
8
|
-
({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
12
|
-
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
13
|
-
type PaginationLinkProps = {
|
|
14
|
-
isActive?: boolean;
|
|
15
|
-
} & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
|
|
16
|
-
declare const PaginationLink: {
|
|
17
|
-
({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
declare const PaginationPrevious: {
|
|
21
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
declare const PaginationNext: {
|
|
25
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
declare const PaginationEllipsis: {
|
|
29
|
-
({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
/** Build an array of page numbers and ellipsis markers for pagination UI. */
|
|
33
|
-
declare function getPageNumbers(current: number, total: number): (number | "ellipsis")[];
|
|
34
|
-
type ListPaginationProps = {
|
|
35
|
-
/** Current page number (1-indexed). */
|
|
36
|
-
page: number;
|
|
37
|
-
/** Total number of pages. */
|
|
38
|
-
totalPages: number;
|
|
39
|
-
/** Builds a crawlable href for each page link (required for SEO). */
|
|
40
|
-
getHref: (page: number) => string;
|
|
41
|
-
/** Optional client-side callback layered on top of href navigation. */
|
|
42
|
-
onPageChange?: (page: number) => void;
|
|
43
|
-
className?: string;
|
|
44
|
-
};
|
|
45
|
-
declare const ListPagination: {
|
|
46
|
-
({ page, totalPages, getHref, onPageChange, className, }: ListPaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
47
|
-
displayName: string;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export { ListPagination, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, getPageNumbers };
|
package/dist/payment-modal.d.cts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Extract a card BIN from a postMessage payload.
|
|
5
|
-
* Handles multiple formats returned by Element/Unified iframes:
|
|
6
|
-
* - URL-encoded string with Bin= parameter
|
|
7
|
-
* - Object with Bin, bin, CardBIN, or cardBin property
|
|
8
|
-
* - Nested data.Bin structure
|
|
9
|
-
*/
|
|
10
|
-
declare function extractBin(data: unknown): string | undefined;
|
|
11
|
-
interface PaymentModalProps {
|
|
12
|
-
/** Whether the modal is open. */
|
|
13
|
-
open: boolean;
|
|
14
|
-
/** Callback when open state changes. */
|
|
15
|
-
onOpenChange: (open: boolean) => void;
|
|
16
|
-
/** Unified/Element iframe configuration. Modal shows loading when null. */
|
|
17
|
-
unified: {
|
|
18
|
-
uiEndpoint: string;
|
|
19
|
-
transactionSetupId: string;
|
|
20
|
-
} | null;
|
|
21
|
-
/** Called when a card BIN is captured from the iframe postMessage. */
|
|
22
|
-
onBinCapture?: (bin: string) => void;
|
|
23
|
-
/** Modal title. Defaults to "Enter Credit Card Details". */
|
|
24
|
-
title?: string;
|
|
25
|
-
/** Close button label. Defaults to "Close". */
|
|
26
|
-
closeLabel?: string;
|
|
27
|
-
}
|
|
28
|
-
declare function PaymentModal({ open, onOpenChange, unified, onBinCapture, title, closeLabel, }: PaymentModalProps): react_jsx_runtime.JSX.Element;
|
|
29
|
-
|
|
30
|
-
export { PaymentModal, type PaymentModalProps, extractBin };
|
package/dist/popover.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
-
|
|
4
|
-
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
5
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
|
|
9
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
package/dist/price-format.d.cts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface PriceFormatConfig {
|
|
2
|
-
/** ISO 4217 currency code. Default: `"USD"`. */
|
|
3
|
-
currency?: string;
|
|
4
|
-
/** BCP 47 locale. Default: `"en-US"`. */
|
|
5
|
-
locale?: string;
|
|
6
|
-
/** Decimal places. Default: `2`. */
|
|
7
|
-
precision?: number;
|
|
8
|
-
}
|
|
9
|
-
interface FormatPriceOptions {
|
|
10
|
-
/** Override precision for this call. */
|
|
11
|
-
precision?: number;
|
|
12
|
-
/** Multiply value by quantity before formatting. */
|
|
13
|
-
quantity?: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create a pure price-formatting function. Server-safe (no React dependency).
|
|
17
|
-
* Use {@link createPrice} in client components for the full Price component.
|
|
18
|
-
*/
|
|
19
|
-
declare function createFormatPrice(config?: PriceFormatConfig): (value: number, options?: FormatPriceOptions) => string;
|
|
20
|
-
|
|
21
|
-
export { type FormatPriceOptions, type PriceFormatConfig, createFormatPrice };
|
package/dist/price.d.cts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
interface PriceFormatConfig {
|
|
2
|
-
/** ISO 4217 currency code. Default: `"USD"`. */
|
|
3
|
-
currency?: string;
|
|
4
|
-
/** BCP 47 locale. Default: `"en-US"`. */
|
|
5
|
-
locale?: string;
|
|
6
|
-
/** Decimal places. Default: `2`. */
|
|
7
|
-
precision?: number;
|
|
8
|
-
}
|
|
9
|
-
interface FormatPriceOptions {
|
|
10
|
-
/** Override precision for this call. */
|
|
11
|
-
precision?: number;
|
|
12
|
-
/** Multiply value by quantity before formatting. */
|
|
13
|
-
quantity?: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface PriceClassNames {
|
|
17
|
-
/** The formatted amount text. */
|
|
18
|
-
amount?: string;
|
|
19
|
-
/** The UOM label (e.g. "EACH"). */
|
|
20
|
-
uom?: string;
|
|
21
|
-
/** The separator between price and UOM (e.g. "/"). */
|
|
22
|
-
separator?: string;
|
|
23
|
-
/** The zero-price label (e.g. "Call for Price"). */
|
|
24
|
-
zero?: string;
|
|
25
|
-
/** The loading skeleton. */
|
|
26
|
-
skeleton?: string;
|
|
27
|
-
/** The strikethrough original price. */
|
|
28
|
-
original?: string;
|
|
29
|
-
}
|
|
30
|
-
interface PriceConfig {
|
|
31
|
-
/** ISO 4217 currency code. Default: `"USD"`. */
|
|
32
|
-
currency?: string;
|
|
33
|
-
/** BCP 47 locale. Default: `"en-US"`. */
|
|
34
|
-
locale?: string;
|
|
35
|
-
/** Decimal places. Default: `2`. */
|
|
36
|
-
precision?: number;
|
|
37
|
-
/** Label shown when value is 0. Default: `"Call for Price"`. */
|
|
38
|
-
zeroLabel?: string;
|
|
39
|
-
/** Separator between price and UOM. Default: `"/"`. */
|
|
40
|
-
uomSeparator?: string;
|
|
41
|
-
/** Default class names for sub-elements. */
|
|
42
|
-
classNames?: PriceClassNames;
|
|
43
|
-
}
|
|
44
|
-
type PricePropsBase = {
|
|
45
|
-
/** Unit price. */
|
|
46
|
-
value?: number;
|
|
47
|
-
/** Quantity — multiplied by value for extended price. */
|
|
48
|
-
quantity?: number;
|
|
49
|
-
/** Unit of measure label (e.g. "EACH", "FT"). */
|
|
50
|
-
uom?: string;
|
|
51
|
-
/** Override precision for this instance. */
|
|
52
|
-
precision?: number;
|
|
53
|
-
/** Original price shown as strikethrough for sale display. */
|
|
54
|
-
originalValue?: number;
|
|
55
|
-
/** Additional class names for the root element. */
|
|
56
|
-
className?: string;
|
|
57
|
-
/** Class names for sub-elements, merged with factory defaults. */
|
|
58
|
-
classNames?: PriceClassNames;
|
|
59
|
-
};
|
|
60
|
-
type PriceProps = (PricePropsBase & {
|
|
61
|
-
loading?: false;
|
|
62
|
-
}) | {
|
|
63
|
-
loading: true;
|
|
64
|
-
className?: string;
|
|
65
|
-
classNames?: PriceClassNames;
|
|
66
|
-
};
|
|
67
|
-
interface CreatePriceResult {
|
|
68
|
-
Price: React.FC<PriceProps>;
|
|
69
|
-
formatPrice: (value: number, options?: FormatPriceOptions) => string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Factory that creates a `Price` component and a `formatPrice` function
|
|
73
|
-
* pre-configured with site-level currency/locale/precision.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```tsx
|
|
77
|
-
* // lib/price.ts -- one-time site config
|
|
78
|
-
* import { createPrice } from "@simpleapps-com/augur-web/price";
|
|
79
|
-
* export const { Price, formatPrice } = createPrice({
|
|
80
|
-
* currency: "USD",
|
|
81
|
-
* zeroLabel: "Call for Price",
|
|
82
|
-
* });
|
|
83
|
-
*
|
|
84
|
-
* // components/ProductCard.tsx
|
|
85
|
-
* <Price value={item.price1} uom={item.default_selling_unit} />
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
declare function createPrice(config?: PriceConfig): CreatePriceResult;
|
|
89
|
-
|
|
90
|
-
export { type CreatePriceResult, type FormatPriceOptions, type PriceClassNames, type PriceConfig, type PriceFormatConfig, type PriceProps, createPrice };
|
package/dist/provider.d.cts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { AugurSiteConfig, AugurAuthContext, CacheConfig } from '@simpleapps-com/augur-core';
|
|
4
|
-
|
|
5
|
-
interface AugurSiteProviderProps {
|
|
6
|
-
/** Site configuration created with `defineSite()`. */
|
|
7
|
-
config: AugurSiteConfig;
|
|
8
|
-
/** SDK client instance. */
|
|
9
|
-
api?: unknown;
|
|
10
|
-
/** Auth context (NextAuth, Clerk, etc.). */
|
|
11
|
-
auth?: AugurAuthContext;
|
|
12
|
-
/** Cache configuration (edge/Redis). */
|
|
13
|
-
cache?: CacheConfig;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Unified site provider that composes AugurHooksProvider with analytics
|
|
18
|
-
* based on the site config.
|
|
19
|
-
*
|
|
20
|
-
* The `auth` prop accepts any object matching `AugurAuthContext`.
|
|
21
|
-
* Map your auth provider manually — augur-hooks is auth-provider-agnostic
|
|
22
|
-
* so it works with NextAuth, Clerk, Supabase Auth, etc.
|
|
23
|
-
*
|
|
24
|
-
* NextAuth example:
|
|
25
|
-
* ```tsx
|
|
26
|
-
* import { useSession } from "next-auth/react";
|
|
27
|
-
*
|
|
28
|
-
* function Providers({ children }: { children: React.ReactNode }) {
|
|
29
|
-
* const { data: session, status } = useSession();
|
|
30
|
-
* const auth = useMemo<AugurAuthContext>(() => ({
|
|
31
|
-
* status,
|
|
32
|
-
* customerId: session?.user?.customerId,
|
|
33
|
-
* userId: session?.user?.id,
|
|
34
|
-
* cartHdrUid: session?.user?.cartHdrUid,
|
|
35
|
-
* }), [session, status]);
|
|
36
|
-
*
|
|
37
|
-
* return (
|
|
38
|
-
* <AugurSiteProvider config={siteConfig} api={api} auth={auth}>
|
|
39
|
-
* {children}
|
|
40
|
-
* </AugurSiteProvider>
|
|
41
|
-
* );
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
declare function AugurSiteProvider({ config, api, auth, cache, children }: AugurSiteProviderProps): react_jsx_runtime.JSX.Element;
|
|
46
|
-
|
|
47
|
-
export { AugurSiteProvider, type AugurSiteProviderProps };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface QuantityInputProps {
|
|
4
|
-
/** Current quantity value (controlled). */
|
|
5
|
-
value: number;
|
|
6
|
-
/** Called with the new quantity after validation and rounding. */
|
|
7
|
-
onChange: (value: number) => void;
|
|
8
|
-
/** Minimum allowed quantity. Default: `0`. */
|
|
9
|
-
min?: number;
|
|
10
|
-
/** Maximum allowed quantity. */
|
|
11
|
-
max?: number;
|
|
12
|
-
/** Increment/decrement step size. Values are rounded up to the nearest step. Default: `1`. */
|
|
13
|
-
step?: number;
|
|
14
|
-
/** Number of decimal places to display. Default: `0`. */
|
|
15
|
-
decimals?: number;
|
|
16
|
-
/** Show +/- stepper buttons. Default: `true`. */
|
|
17
|
-
showStepper?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
className?: string;
|
|
20
|
-
inputClassName?: string;
|
|
21
|
-
buttonClassName?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Numeric input with optional +/- stepper buttons for cart quantities.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <QuantityInput value={qty} onChange={setQty} min={1} step={1} />
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
declare const QuantityInput: React.NamedExoticComponent<QuantityInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
-
|
|
33
|
-
export { QuantityInput, type QuantityInputProps };
|
package/dist/radio-group.d.cts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
-
|
|
4
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
|
|
7
|
-
export { RadioGroup, RadioGroupItem };
|
package/dist/resource-tabs.d.cts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
interface TabDef {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
content: React.ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface ResourceTabsProps {
|
|
11
|
-
tabs: TabDef[];
|
|
12
|
-
defaultTab?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Standardized sub-resource tab layout for detail pages.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <ResourceTabs
|
|
21
|
-
* tabs={[
|
|
22
|
-
* { value: "attributes", label: "Attributes", content: <AttributesList /> },
|
|
23
|
-
* { value: "items", label: "Items", content: <ItemsList /> },
|
|
24
|
-
* ]}
|
|
25
|
-
* />
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare function ResourceTabs({ tabs, defaultTab, className }: ResourceTabsProps): react_jsx_runtime.JSX.Element | null;
|
|
29
|
-
declare namespace ResourceTabs {
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { ResourceTabs, type ResourceTabsProps, type TabDef };
|
package/dist/select.d.cts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
-
|
|
4
|
-
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
5
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
|
|
15
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
package/dist/separator.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
-
|
|
4
|
-
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
|
|
6
|
-
export { Separator };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** Supported session replay providers. */
|
|
2
|
-
type SessionReplayProvider = "mouseflow" | "hotjar";
|
|
3
|
-
interface SessionReplayScriptProps {
|
|
4
|
-
/** Session replay provider. */
|
|
5
|
-
provider: SessionReplayProvider;
|
|
6
|
-
/** Project/site ID from the provider. */
|
|
7
|
-
siteId: string;
|
|
8
|
-
/** Sampling rate (0-1). 1 = all sessions, 0.5 = 50%. Default: 1. */
|
|
9
|
-
sampleRate?: number;
|
|
10
|
-
/** Disable in development. Default: false. */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare global {
|
|
14
|
-
interface Window {
|
|
15
|
-
_mfq?: unknown[];
|
|
16
|
-
hj?: (...args: unknown[]) => void;
|
|
17
|
-
_hjSettings?: {
|
|
18
|
-
hjid: string;
|
|
19
|
-
hjsv: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Loads a session replay script with `lazyOnload` behavior.
|
|
25
|
-
* Renders nothing — this is a side-effect-only leaf component.
|
|
26
|
-
*
|
|
27
|
-
* Session replay tools require main thread DOM access (MutationObserver)
|
|
28
|
-
* and cannot run in web workers.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* // In layout.tsx
|
|
33
|
-
* <SessionReplayScript provider="mouseflow" siteId="88d79cd5-..." />
|
|
34
|
-
*
|
|
35
|
-
* // With 50% sampling
|
|
36
|
-
* <SessionReplayScript provider="mouseflow" siteId="..." sampleRate={0.5} />
|
|
37
|
-
*
|
|
38
|
-
* // Disabled in dev
|
|
39
|
-
* <SessionReplayScript provider="hotjar" siteId="..." disabled={isDev} />
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare function SessionReplayScript({ provider, siteId, sampleRate, disabled, }: SessionReplayScriptProps): null;
|
|
43
|
-
|
|
44
|
-
export { type SessionReplayProvider, SessionReplayScript, type SessionReplayScriptProps };
|
package/dist/skeleton.d.cts
DELETED
package/dist/spinner.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface SpinnerProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
size?: "sm" | "md" | "lg";
|
|
6
|
-
}
|
|
7
|
-
/** Animated SVG loading spinner. Sizes: `sm` (12px), `md` (16px), `lg` (24px). */
|
|
8
|
-
declare const Spinner: ({ className, size }: SpinnerProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { Spinner };
|
package/dist/stock-label.d.cts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
interface StockLabelClassNames {
|
|
2
|
-
/** In-stock text. */
|
|
3
|
-
inStock?: string;
|
|
4
|
-
/** Low-stock text. */
|
|
5
|
-
lowStock?: string;
|
|
6
|
-
/** Out-of-stock text. */
|
|
7
|
-
outOfStock?: string;
|
|
8
|
-
/** The loading skeleton. */
|
|
9
|
-
skeleton?: string;
|
|
10
|
-
/** The quantity parenthetical. */
|
|
11
|
-
quantity?: string;
|
|
12
|
-
}
|
|
13
|
-
interface StockLabelConfig {
|
|
14
|
-
/** Label for in-stock state. Default: `"In stock"`. */
|
|
15
|
-
inStockLabel?: string;
|
|
16
|
-
/** Label for low-stock state. Default: `"Low stock"`. */
|
|
17
|
-
lowStockLabel?: string;
|
|
18
|
-
/** Label for out-of-stock state. Default: `"Out of stock"`. */
|
|
19
|
-
outOfStockLabel?: string;
|
|
20
|
-
/** Default class names for sub-elements. */
|
|
21
|
-
classNames?: StockLabelClassNames;
|
|
22
|
-
}
|
|
23
|
-
type StockLabelPropsBase = {
|
|
24
|
-
/** Whether the item is in stock. */
|
|
25
|
-
isInStock: boolean;
|
|
26
|
-
/** Whether the item has low stock. */
|
|
27
|
-
isLowStock?: boolean;
|
|
28
|
-
/** Quantity to display in parentheses (shown only when in stock or low stock). */
|
|
29
|
-
displayQuantity?: number | null;
|
|
30
|
-
/** Additional class names for the root element. */
|
|
31
|
-
className?: string;
|
|
32
|
-
/** Class names for sub-elements, merged with factory defaults. */
|
|
33
|
-
classNames?: StockLabelClassNames;
|
|
34
|
-
};
|
|
35
|
-
type StockLabelProps = (StockLabelPropsBase & {
|
|
36
|
-
loading?: false;
|
|
37
|
-
}) | {
|
|
38
|
-
loading: true;
|
|
39
|
-
className?: string;
|
|
40
|
-
classNames?: StockLabelClassNames;
|
|
41
|
-
};
|
|
42
|
-
interface CreateStockLabelResult {
|
|
43
|
-
StockLabel: React.FC<StockLabelProps>;
|
|
44
|
-
}
|
|
45
|
-
declare function createStockLabel(config?: StockLabelConfig): CreateStockLabelResult;
|
|
46
|
-
|
|
47
|
-
export { type CreateStockLabelResult, type StockLabelClassNames, type StockLabelConfig, type StockLabelProps, createStockLabel };
|
package/dist/table.d.cts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
4
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
-
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
8
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
10
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
11
|
-
|
|
12
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
package/dist/tabs.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
-
|
|
4
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
|
|
9
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
package/dist/textarea.d.cts
DELETED