@simpleapps-com/augur-web 2.4.0 → 2026.11.1
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-EEJYDSXR.cjs +220 -0
- package/dist/chunk-EEJYDSXR.cjs.map +1 -0
- package/dist/chunk-GSR6SMQ2.cjs.map +1 -1
- package/dist/{chunk-OJ5G4BLS.js → chunk-JWTTXZDS.js} +15 -18
- package/dist/chunk-JWTTXZDS.js.map +1 -0
- package/dist/chunk-JXW4XE2P.cjs.map +1 -1
- package/dist/chunk-MAENILZP.cjs.map +1 -1
- package/dist/chunk-NEY26NNF.cjs.map +1 -1
- package/dist/{chunk-I5NVZORX.cjs → chunk-OQV27VC5.cjs} +15 -18
- package/dist/chunk-OQV27VC5.cjs.map +1 -0
- package/dist/{chunk-DCXYO3RB.js → chunk-PFEPE5UE.js} +7 -3
- package/dist/chunk-PFEPE5UE.js.map +1 -0
- package/dist/chunk-T52J3SHP.cjs.map +1 -1
- package/dist/chunk-UFL6PVLI.cjs.map +1 -1
- package/dist/chunk-VI2IE6RC.js +220 -0
- package/dist/chunk-VI2IE6RC.js.map +1 -0
- 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-AE4GLYJE.cjs → chunk-YTBB63IE.cjs} +7 -3
- package/dist/chunk-YTBB63IE.cjs.map +1 -0
- 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,45 +0,0 @@
|
|
|
1
|
-
/** Supported financing providers. */
|
|
2
|
-
type FinancingProvider = "timepayment";
|
|
3
|
-
interface FinancingWidgetProps {
|
|
4
|
-
/** Financing provider. */
|
|
5
|
-
provider: FinancingProvider;
|
|
6
|
-
/** Vendor/merchant code from the provider. */
|
|
7
|
-
vendorCode: string;
|
|
8
|
-
/** Disable loading. Default: false. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** Called when the financing script has loaded. */
|
|
11
|
-
onLoad?: () => void;
|
|
12
|
-
}
|
|
13
|
-
interface UseFinancingResult {
|
|
14
|
-
/** Whether the financing script has loaded. */
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare global {
|
|
18
|
-
interface Window {
|
|
19
|
-
TimePayment?: {
|
|
20
|
-
apply: (vendorCode: string) => void;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Loads a financing widget script on the pages where it's needed.
|
|
26
|
-
* Renders nothing — this is a side-effect-only leaf component.
|
|
27
|
-
*
|
|
28
|
-
* Place this on product or checkout pages, NOT in the global layout.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* // On a product page
|
|
33
|
-
* <FinancingWidget provider="timepayment" vendorCode="PVD5P" />
|
|
34
|
-
*
|
|
35
|
-
* // With load callback
|
|
36
|
-
* <FinancingWidget
|
|
37
|
-
* provider="timepayment"
|
|
38
|
-
* vendorCode="PVD5P"
|
|
39
|
-
* onLoad={() => console.log("Financing ready")}
|
|
40
|
-
* />
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
declare function FinancingWidget({ provider, vendorCode, disabled, onLoad, }: FinancingWidgetProps): null;
|
|
44
|
-
|
|
45
|
-
export { type FinancingProvider, FinancingWidget, type FinancingWidgetProps, type UseFinancingResult };
|
package/dist/form-field.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FormFieldProps {
|
|
4
|
-
label: string;
|
|
5
|
-
htmlFor: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
error?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/** Base form layout: label + children + optional error message. */
|
|
12
|
-
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
export { FormField, type FormFieldProps };
|
package/dist/form-input.d.cts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FormInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
label: string;
|
|
5
|
-
error?: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
gridSpan?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Labeled text input with error display. Composes FormField + Input.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <FormInput label="Email" name="email" type="email" required error={errors.email} />
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
declare const FormInput: React.ForwardRefExoticComponent<FormInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
-
|
|
19
|
-
export { FormInput, type FormInputProps };
|
package/dist/form-select.d.cts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FormSelectProps {
|
|
4
|
-
label: string;
|
|
5
|
-
error?: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
name: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
onValueChange?: (value: string) => void;
|
|
10
|
-
options: {
|
|
11
|
-
label: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Labeled select dropdown with error display. Composes FormField + Select.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <FormSelect
|
|
24
|
-
* label="State"
|
|
25
|
-
* name="state"
|
|
26
|
-
* options={[{ label: "Texas", value: "TX" }]}
|
|
27
|
-
* value={state}
|
|
28
|
-
* onValueChange={setState}
|
|
29
|
-
* />
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
declare const FormSelect: React.ForwardRefExoticComponent<FormSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
-
|
|
34
|
-
export { FormSelect, type FormSelectProps };
|
package/dist/form-textarea.d.cts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FormTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
-
label: string;
|
|
5
|
-
error?: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
gridSpan?: string;
|
|
8
|
-
}
|
|
9
|
-
/** Labeled textarea with error display. Composes FormField + Textarea. */
|
|
10
|
-
declare const FormTextarea: React.ForwardRefExoticComponent<FormTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
11
|
-
|
|
12
|
-
export { FormTextarea, type FormTextareaProps };
|
package/dist/gtm.d.cts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
/** Script loading strategy. */
|
|
5
|
-
type AnalyticsStrategy = "default" | "afterInteractive" | "lazyOnload";
|
|
6
|
-
/** GA4 standard e-commerce event names. */
|
|
7
|
-
type EcommerceEvent = "view_item" | "view_item_list" | "select_item" | "add_to_cart" | "remove_from_cart" | "view_cart" | "begin_checkout" | "add_shipping_info" | "add_payment_info" | "purchase" | "refund";
|
|
8
|
-
/** GA4 e-commerce item shape. */
|
|
9
|
-
interface EcommerceItem {
|
|
10
|
-
item_id: string;
|
|
11
|
-
item_name?: string;
|
|
12
|
-
item_brand?: string;
|
|
13
|
-
item_category?: string;
|
|
14
|
-
item_variant?: string;
|
|
15
|
-
price?: number;
|
|
16
|
-
quantity?: number;
|
|
17
|
-
index?: number;
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
/** Parameters for e-commerce events. */
|
|
21
|
-
interface EcommerceParams {
|
|
22
|
-
currency?: string;
|
|
23
|
-
value?: number;
|
|
24
|
-
items?: EcommerceItem[];
|
|
25
|
-
transaction_id?: string;
|
|
26
|
-
shipping?: number;
|
|
27
|
-
tax?: number;
|
|
28
|
-
coupon?: string;
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
}
|
|
31
|
-
interface AnalyticsProviderProps {
|
|
32
|
-
/** GTM container ID (e.g. "GTM-XXXXX"). */
|
|
33
|
-
gtmId: string;
|
|
34
|
-
/** Script loading strategy. Default: "afterInteractive". */
|
|
35
|
-
strategy?: AnalyticsStrategy;
|
|
36
|
-
/** Delay GTM loading until consent is granted. Default: false. */
|
|
37
|
-
consentRequired?: boolean;
|
|
38
|
-
/** Log dataLayer pushes to console. Default: false. */
|
|
39
|
-
debug?: boolean;
|
|
40
|
-
children: ReactNode;
|
|
41
|
-
}
|
|
42
|
-
interface AnalyticsContextValue {
|
|
43
|
-
/** Push a custom event to the dataLayer. */
|
|
44
|
-
trackEvent: (event: string, params?: Record<string, unknown>) => void;
|
|
45
|
-
/** Push a GA4 e-commerce event to the dataLayer. */
|
|
46
|
-
trackEcommerceEvent: (event: EcommerceEvent, params: EcommerceParams) => void;
|
|
47
|
-
/** Grant consent — loads GTM if consentRequired was true. */
|
|
48
|
-
grantConsent: () => void;
|
|
49
|
-
/** Revoke consent. Does not unload GTM (scripts can't be unloaded). */
|
|
50
|
-
revokeConsent: () => void;
|
|
51
|
-
/** Whether consent has been granted. */
|
|
52
|
-
hasConsent: boolean;
|
|
53
|
-
/** Whether the GTM script has been injected. */
|
|
54
|
-
isLoaded: boolean;
|
|
55
|
-
}
|
|
56
|
-
declare global {
|
|
57
|
-
interface Window {
|
|
58
|
-
dataLayer?: Record<string, unknown>[];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
declare function AnalyticsProvider({ gtmId, strategy, consentRequired, debug, children, }: AnalyticsProviderProps): react_jsx_runtime.JSX.Element;
|
|
62
|
-
declare function useAnalytics(): AnalyticsContextValue;
|
|
63
|
-
interface AnalyticsNoscriptProps {
|
|
64
|
-
/** GTM container ID (must match AnalyticsProvider). */
|
|
65
|
-
gtmId: string;
|
|
66
|
-
}
|
|
67
|
-
declare function AnalyticsNoscript({ gtmId }: AnalyticsNoscriptProps): react_jsx_runtime.JSX.Element;
|
|
68
|
-
|
|
69
|
-
export { type AnalyticsContextValue, AnalyticsNoscript, type AnalyticsNoscriptProps, AnalyticsProvider, type AnalyticsProviderProps, type AnalyticsStrategy, type EcommerceEvent, type EcommerceItem, type EcommerceParams, useAnalytics };
|
package/dist/input.d.cts
DELETED
package/dist/label.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
-
|
|
8
|
-
export { Label };
|
package/dist/list-view.d.cts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
|
|
4
|
-
interface ListViewProps<T> {
|
|
5
|
-
data: T[] | undefined;
|
|
6
|
-
renderItems: (item: T, index?: number) => React__default.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Generic list renderer that maps an array through a render function.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <ListView data={products} renderItems={(item) => <ProductCard {...item} />} />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
declare const ListView: <T>({ data, renderItems }: ListViewProps<T>) => react_jsx_runtime.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { ListView };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type MDXComponents = Record<string, React.ComponentType<any>>;
|
|
4
|
-
/**
|
|
5
|
-
* Returns a map of HTML element names to styled React components
|
|
6
|
-
* for use with MDX content rendering.
|
|
7
|
-
*
|
|
8
|
-
* Pass to `useMDXComponents` in your Next.js `mdx-components.tsx`:
|
|
9
|
-
*
|
|
10
|
-
* ```tsx
|
|
11
|
-
* import { getMDXComponents } from "@simpleapps-com/augur-web/mdx-components";
|
|
12
|
-
*
|
|
13
|
-
* export function useMDXComponents(components) {
|
|
14
|
-
* return getMDXComponents(components);
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
declare function getMDXComponents(overrides?: MDXComponents): MDXComponents;
|
|
19
|
-
|
|
20
|
-
export { getMDXComponents };
|
|
@@ -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 };
|