@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.
Files changed (243) hide show
  1. package/EXPORTS.md +18 -189
  2. package/README.md +18 -364
  3. package/dist/accordion.cjs.map +1 -1
  4. package/dist/accordion.d.ts +4 -5
  5. package/dist/accordion.d.ts.map +1 -0
  6. package/dist/add-to-cart-button.cjs.map +1 -1
  7. package/dist/add-to-cart-button.d.ts +5 -8
  8. package/dist/add-to-cart-button.d.ts.map +1 -0
  9. package/dist/breadcrumb.cjs.map +1 -1
  10. package/dist/breadcrumb.d.ts +5 -7
  11. package/dist/breadcrumb.d.ts.map +1 -0
  12. package/dist/breadcrumbs.cjs.map +1 -1
  13. package/dist/breadcrumbs.d.ts +4 -4
  14. package/dist/breadcrumbs.d.ts.map +1 -0
  15. package/dist/button.cjs.map +1 -1
  16. package/dist/button.d.ts +7 -9
  17. package/dist/button.d.ts.map +1 -0
  18. package/dist/card.cjs.map +1 -1
  19. package/dist/card.d.ts +3 -4
  20. package/dist/card.d.ts.map +1 -0
  21. package/dist/checkbox.cjs.map +1 -1
  22. package/dist/checkbox.d.ts +3 -4
  23. package/dist/checkbox.d.ts.map +1 -0
  24. package/dist/chunk-32XB3REY.cjs.map +1 -1
  25. package/dist/chunk-5VMEEKZ5.cjs.map +1 -1
  26. package/dist/chunk-5ZITWMV4.cjs.map +1 -1
  27. package/dist/chunk-76RSVRGB.cjs.map +1 -1
  28. package/dist/chunk-7EXXNELX.cjs.map +1 -1
  29. package/dist/chunk-BXMTQGKV.cjs.map +1 -1
  30. package/dist/chunk-EEJYDSXR.cjs +220 -0
  31. package/dist/chunk-EEJYDSXR.cjs.map +1 -0
  32. package/dist/chunk-GSR6SMQ2.cjs.map +1 -1
  33. package/dist/{chunk-OJ5G4BLS.js → chunk-JWTTXZDS.js} +15 -18
  34. package/dist/chunk-JWTTXZDS.js.map +1 -0
  35. package/dist/chunk-JXW4XE2P.cjs.map +1 -1
  36. package/dist/chunk-MAENILZP.cjs.map +1 -1
  37. package/dist/chunk-NEY26NNF.cjs.map +1 -1
  38. package/dist/{chunk-I5NVZORX.cjs → chunk-OQV27VC5.cjs} +15 -18
  39. package/dist/chunk-OQV27VC5.cjs.map +1 -0
  40. package/dist/{chunk-DCXYO3RB.js → chunk-PFEPE5UE.js} +7 -3
  41. package/dist/chunk-PFEPE5UE.js.map +1 -0
  42. package/dist/chunk-T52J3SHP.cjs.map +1 -1
  43. package/dist/chunk-UFL6PVLI.cjs.map +1 -1
  44. package/dist/chunk-VI2IE6RC.js +220 -0
  45. package/dist/chunk-VI2IE6RC.js.map +1 -0
  46. package/dist/chunk-VL6L4GDA.cjs.map +1 -1
  47. package/dist/chunk-WJUDOEVB.cjs.map +1 -1
  48. package/dist/chunk-XGKBDPGD.cjs.map +1 -1
  49. package/dist/{chunk-AE4GLYJE.cjs → chunk-YTBB63IE.cjs} +7 -3
  50. package/dist/chunk-YTBB63IE.cjs.map +1 -0
  51. package/dist/chunk-Z57QBVUC.cjs.map +1 -1
  52. package/dist/command.cjs +1 -0
  53. package/dist/command.cjs.map +1 -1
  54. package/dist/command.d.ts +13 -15
  55. package/dist/command.d.ts.map +1 -0
  56. package/dist/command.js +1 -0
  57. package/dist/command.js.map +1 -1
  58. package/dist/confirm-dialog.cjs.map +1 -1
  59. package/dist/confirm-dialog.d.ts +4 -6
  60. package/dist/confirm-dialog.d.ts.map +1 -0
  61. package/dist/data-table.cjs +35 -23
  62. package/dist/data-table.cjs.map +1 -1
  63. package/dist/data-table.d.ts +9 -11
  64. package/dist/data-table.d.ts.map +1 -0
  65. package/dist/data-table.js +34 -22
  66. package/dist/data-table.js.map +1 -1
  67. package/dist/detail-panel.cjs.map +1 -1
  68. package/dist/detail-panel.d.ts +6 -8
  69. package/dist/detail-panel.d.ts.map +1 -0
  70. package/dist/dialog.cjs.map +1 -1
  71. package/dist/dialog.d.ts +6 -8
  72. package/dist/dialog.d.ts.map +1 -0
  73. package/dist/dropdown-menu.cjs.map +1 -1
  74. package/dist/dropdown-menu.d.ts +5 -7
  75. package/dist/dropdown-menu.d.ts.map +1 -0
  76. package/dist/financing-widget.cjs +1 -3
  77. package/dist/financing-widget.cjs.map +1 -1
  78. package/dist/financing-widget.d.ts +5 -6
  79. package/dist/financing-widget.d.ts.map +1 -0
  80. package/dist/financing-widget.js +1 -3
  81. package/dist/financing-widget.js.map +1 -1
  82. package/dist/form-field.cjs.map +1 -1
  83. package/dist/form-field.d.ts +4 -5
  84. package/dist/form-field.d.ts.map +1 -0
  85. package/dist/form-input.cjs.map +1 -1
  86. package/dist/form-input.d.ts +4 -5
  87. package/dist/form-input.d.ts.map +1 -0
  88. package/dist/form-select.cjs.map +1 -1
  89. package/dist/form-select.d.ts +4 -5
  90. package/dist/form-select.d.ts.map +1 -0
  91. package/dist/form-textarea.cjs.map +1 -1
  92. package/dist/form-textarea.d.ts +4 -5
  93. package/dist/form-textarea.d.ts.map +1 -0
  94. package/dist/gtm.cjs +3 -2
  95. package/dist/gtm.cjs.map +1 -1
  96. package/dist/gtm.d.ts +12 -15
  97. package/dist/gtm.d.ts.map +1 -0
  98. package/dist/gtm.js +2 -1
  99. package/dist/input.cjs.map +1 -1
  100. package/dist/input.d.ts +4 -5
  101. package/dist/input.d.ts.map +1 -0
  102. package/dist/label.cjs.map +1 -1
  103. package/dist/label.d.ts +5 -7
  104. package/dist/label.d.ts.map +1 -0
  105. package/dist/list-view.cjs.map +1 -1
  106. package/dist/list-view.d.ts +5 -7
  107. package/dist/list-view.d.ts.map +1 -0
  108. package/dist/mdx-components.cjs +5 -2
  109. package/dist/mdx-components.cjs.map +1 -1
  110. package/dist/mdx-components.d.ts +11 -6
  111. package/dist/mdx-components.d.ts.map +1 -0
  112. package/dist/mdx-components.js +5 -2
  113. package/dist/mdx-components.js.map +1 -1
  114. package/dist/navigation-menu.cjs.map +1 -1
  115. package/dist/navigation-menu.d.ts +5 -7
  116. package/dist/navigation-menu.d.ts.map +1 -0
  117. package/dist/pagination.cjs +3 -2
  118. package/dist/pagination.cjs.map +1 -1
  119. package/dist/pagination.d.ts +10 -14
  120. package/dist/pagination.d.ts.map +1 -0
  121. package/dist/pagination.js +2 -1
  122. package/dist/payment-modal.cjs +20 -19
  123. package/dist/payment-modal.cjs.map +1 -1
  124. package/dist/payment-modal.d.ts +5 -7
  125. package/dist/payment-modal.d.ts.map +1 -0
  126. package/dist/payment-modal.js +19 -18
  127. package/dist/payment-modal.js.map +1 -1
  128. package/dist/popover.cjs.map +1 -1
  129. package/dist/popover.d.ts +4 -5
  130. package/dist/popover.d.ts.map +1 -0
  131. package/dist/price-format.cjs.map +1 -1
  132. package/dist/price-format.d.ts +4 -5
  133. package/dist/price-format.d.ts.map +1 -0
  134. package/dist/price.cjs +4 -1
  135. package/dist/price.cjs.map +1 -1
  136. package/dist/price.d.ts +8 -22
  137. package/dist/price.d.ts.map +1 -0
  138. package/dist/price.js +4 -1
  139. package/dist/price.js.map +1 -1
  140. package/dist/provider.cjs +4 -2
  141. package/dist/provider.cjs.map +1 -1
  142. package/dist/provider.d.ts +7 -10
  143. package/dist/provider.d.ts.map +1 -0
  144. package/dist/provider.js +3 -1
  145. package/dist/provider.js.map +1 -1
  146. package/dist/quantity-input.cjs +27 -40
  147. package/dist/quantity-input.cjs.map +1 -1
  148. package/dist/quantity-input.d.ts +4 -5
  149. package/dist/quantity-input.d.ts.map +1 -0
  150. package/dist/quantity-input.js +27 -40
  151. package/dist/quantity-input.js.map +1 -1
  152. package/dist/radio-group.cjs.map +1 -1
  153. package/dist/radio-group.d.ts +3 -4
  154. package/dist/radio-group.d.ts.map +1 -0
  155. package/dist/resource-tabs.cjs +1 -0
  156. package/dist/resource-tabs.cjs.map +1 -1
  157. package/dist/resource-tabs.d.ts +6 -8
  158. package/dist/resource-tabs.d.ts.map +1 -0
  159. package/dist/resource-tabs.js +1 -0
  160. package/dist/resource-tabs.js.map +1 -1
  161. package/dist/rules.d.ts +210 -0
  162. package/dist/rules.d.ts.map +1 -0
  163. package/dist/select.cjs.map +1 -1
  164. package/dist/select.d.ts +4 -5
  165. package/dist/select.d.ts.map +1 -0
  166. package/dist/separator.cjs.map +1 -1
  167. package/dist/separator.d.ts +3 -4
  168. package/dist/separator.d.ts.map +1 -0
  169. package/dist/session-replay.cjs +4 -2
  170. package/dist/session-replay.cjs.map +1 -1
  171. package/dist/session-replay.d.ts +4 -5
  172. package/dist/session-replay.d.ts.map +1 -0
  173. package/dist/session-replay.js +4 -2
  174. package/dist/session-replay.js.map +1 -1
  175. package/dist/skeleton.cjs.map +1 -1
  176. package/dist/skeleton.d.ts +2 -4
  177. package/dist/skeleton.d.ts.map +1 -0
  178. package/dist/spinner.cjs.map +1 -1
  179. package/dist/spinner.d.ts +2 -4
  180. package/dist/spinner.d.ts.map +1 -0
  181. package/dist/stock-label.cjs +14 -12
  182. package/dist/stock-label.cjs.map +1 -1
  183. package/dist/stock-label.d.ts +7 -7
  184. package/dist/stock-label.d.ts.map +1 -0
  185. package/dist/stock-label.js +14 -12
  186. package/dist/stock-label.js.map +1 -1
  187. package/dist/table.cjs.map +1 -1
  188. package/dist/table.d.ts +3 -4
  189. package/dist/table.d.ts.map +1 -0
  190. package/dist/tabs.cjs.map +1 -1
  191. package/dist/tabs.d.ts +4 -5
  192. package/dist/tabs.d.ts.map +1 -0
  193. package/dist/textarea.cjs.map +1 -1
  194. package/dist/textarea.d.ts +4 -5
  195. package/dist/textarea.d.ts.map +1 -0
  196. package/llms.txt +23 -38
  197. package/package.json +26 -17
  198. package/dist/accordion.d.cts +0 -9
  199. package/dist/add-to-cart-button.d.cts +0 -14
  200. package/dist/breadcrumb.d.cts +0 -22
  201. package/dist/breadcrumbs.d.cts +0 -31
  202. package/dist/button.d.cts +0 -27
  203. package/dist/card.d.cts +0 -10
  204. package/dist/checkbox.d.cts +0 -6
  205. package/dist/chunk-AE4GLYJE.cjs.map +0 -1
  206. package/dist/chunk-DCXYO3RB.js.map +0 -1
  207. package/dist/chunk-I5NVZORX.cjs.map +0 -1
  208. package/dist/chunk-OJ5G4BLS.js.map +0 -1
  209. package/dist/command.d.cts +0 -87
  210. package/dist/confirm-dialog.d.cts +0 -35
  211. package/dist/data-table.d.cts +0 -55
  212. package/dist/detail-panel.d.cts +0 -59
  213. package/dist/dialog.d.cts +0 -22
  214. package/dist/dropdown-menu.d.cts +0 -30
  215. package/dist/financing-widget.d.cts +0 -45
  216. package/dist/form-field.d.cts +0 -14
  217. package/dist/form-input.d.cts +0 -19
  218. package/dist/form-select.d.cts +0 -34
  219. package/dist/form-textarea.d.cts +0 -12
  220. package/dist/gtm.d.cts +0 -69
  221. package/dist/input.d.cts +0 -6
  222. package/dist/label.d.cts +0 -8
  223. package/dist/list-view.d.cts +0 -18
  224. package/dist/mdx-components.d.cts +0 -20
  225. package/dist/navigation-menu.d.cts +0 -15
  226. package/dist/pagination.d.cts +0 -50
  227. package/dist/payment-modal.d.cts +0 -30
  228. package/dist/popover.d.cts +0 -9
  229. package/dist/price-format.d.cts +0 -21
  230. package/dist/price.d.cts +0 -90
  231. package/dist/provider.d.cts +0 -47
  232. package/dist/quantity-input.d.cts +0 -33
  233. package/dist/radio-group.d.cts +0 -7
  234. package/dist/resource-tabs.d.cts +0 -33
  235. package/dist/select.d.cts +0 -15
  236. package/dist/separator.d.cts +0 -6
  237. package/dist/session-replay.d.cts +0 -44
  238. package/dist/skeleton.d.cts +0 -5
  239. package/dist/spinner.d.cts +0 -10
  240. package/dist/stock-label.d.cts +0 -47
  241. package/dist/table.d.cts +0 -12
  242. package/dist/tabs.d.cts +0 -9
  243. 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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
4
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
-
6
- export { Input, type InputProps };
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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };