@simpleapps-com/augur-web 2.3.1 → 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-3VN3FX2Q.js → chunk-JWTTXZDS.js} +18 -20
- 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-NSSX7USQ.cjs → chunk-OQV27VC5.cjs} +18 -20
- 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 +7 -2
- package/dist/command.cjs.map +1 -1
- package/dist/command.d.ts +17 -16
- package/dist/command.d.ts.map +1 -0
- package/dist/command.js +8 -3
- package/dist/command.js.map +1 -1
- package/dist/confirm-dialog.cjs +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/confirm-dialog.js +1 -1
- package/dist/confirm-dialog.js.map +1 -1
- package/dist/data-table.cjs +46 -34
- 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 +45 -33
- package/dist/data-table.js.map +1 -1
- package/dist/detail-panel.cjs +3 -3
- 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/detail-panel.js +3 -3
- 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 +27 -5
- 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-format.js +26 -4
- package/dist/price-format.js.map +1 -1
- package/dist/price.cjs +34 -5
- package/dist/price.cjs.map +1 -1
- package/dist/price.d.ts +8 -10
- package/dist/price.d.ts.map +1 -0
- package/dist/price.js +32 -3
- 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-3VN3FX2Q.js.map +0 -1
- package/dist/chunk-AE4GLYJE.cjs.map +0 -1
- package/dist/chunk-DCXYO3RB.js.map +0 -1
- package/dist/chunk-DZDC4HHK.js +0 -33
- package/dist/chunk-DZDC4HHK.js.map +0 -1
- package/dist/chunk-NSSX7USQ.cjs.map +0 -1
- package/dist/chunk-VLZDTWPR.cjs +0 -33
- package/dist/chunk-VLZDTWPR.cjs.map +0 -1
- package/dist/command.d.cts +0 -84
- 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 -78
- 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
package/README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# @simpleapps-com/augur-web
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> React UI for Augur sites: Radix primitives, ecommerce components, AugurSiteProvider and GTM analytics, one entry point per component
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Part of the **@simpleapps-com/augur-\*** platform. Each package releases on its own CalVer
|
|
6
|
+
version; nothing requires them to share one.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
- Guide: https://augur.build/docs/packages/augur-web
|
|
9
|
+
- Every export: [`EXPORTS.md`](EXPORTS.md) (generated from the build)
|
|
10
|
+
- Releases: https://augur.build/docs/packages/changelog
|
|
8
11
|
|
|
9
12
|
## Install
|
|
10
13
|
|
|
@@ -12,369 +15,20 @@ Part of the **@simpleapps-com/augur-\*** platform. All packages use fixed versio
|
|
|
12
15
|
pnpm add @simpleapps-com/augur-web
|
|
13
16
|
```
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
There is no barrel: import each component from its own entry point
|
|
19
|
+
(`@simpleapps-com/augur-web/button`, `…/price`, `…/provider`, …). The Radix primitive behind a
|
|
20
|
+
component is a peer dependency of that component.
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
## Development
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
TypeScript and TSX in `src/`, one tsup entry per component, built to `dist/` (ESM and CJS) with
|
|
25
|
+
`"use client"` kept. The decisions are proved (`src/rules.ts`; model `models/AugurWeb.dfy`, link
|
|
26
|
+
`models/links/augur-web-rules.dfy`); the components are tested under jsdom.
|
|
20
27
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
| `@simpleapps-com/augur-web/add-to-cart-button` | 1 exports, 1 types |
|
|
25
|
-
| `@simpleapps-com/augur-web/breadcrumb` | 7 exports, 0 types |
|
|
26
|
-
| `@simpleapps-com/augur-web/breadcrumbs` | 1 exports, 1 types |
|
|
27
|
-
| `@simpleapps-com/augur-web/button` | 2 exports, 1 types |
|
|
28
|
-
| `@simpleapps-com/augur-web/card` | 6 exports, 0 types |
|
|
29
|
-
| `@simpleapps-com/augur-web/checkbox` | 1 exports, 0 types |
|
|
30
|
-
| `@simpleapps-com/augur-web/input` | 1 exports, 1 types |
|
|
31
|
-
| `@simpleapps-com/augur-web/label` | 1 exports, 0 types |
|
|
32
|
-
| `@simpleapps-com/augur-web/list-view` | 1 exports, 0 types |
|
|
33
|
-
| `@simpleapps-com/augur-web/pagination` | 9 exports, 0 types |
|
|
34
|
-
| `@simpleapps-com/augur-web/price` | 3 exports, 4 types |
|
|
35
|
-
| `@simpleapps-com/augur-web/price-format` | 1 exports, 2 types |
|
|
36
|
-
| `@simpleapps-com/augur-web/radio-group` | 2 exports, 0 types |
|
|
37
|
-
| `@simpleapps-com/augur-web/resource-tabs` | 1 exports, 2 types |
|
|
38
|
-
| `@simpleapps-com/augur-web/select` | 10 exports, 0 types |
|
|
39
|
-
| `@simpleapps-com/augur-web/spinner` | 1 exports, 0 types |
|
|
40
|
-
| `@simpleapps-com/augur-web/table` | 8 exports, 0 types |
|
|
41
|
-
| `@simpleapps-com/augur-web/tabs` | 4 exports, 0 types |
|
|
42
|
-
| `@simpleapps-com/augur-web/textarea` | 1 exports, 1 types |
|
|
43
|
-
| `@simpleapps-com/augur-web/command` | 9 exports, 0 types |
|
|
44
|
-
| `@simpleapps-com/augur-web/confirm-dialog` | 1 exports, 1 types |
|
|
45
|
-
| `@simpleapps-com/augur-web/data-table` | 4 exports, 3 types |
|
|
46
|
-
| `@simpleapps-com/augur-web/detail-panel` | 1 exports, 2 types |
|
|
47
|
-
| `@simpleapps-com/augur-web/dialog` | 10 exports, 0 types |
|
|
48
|
-
| `@simpleapps-com/augur-web/dropdown-menu` | 15 exports, 0 types |
|
|
49
|
-
| `@simpleapps-com/augur-web/navigation-menu` | 9 exports, 0 types |
|
|
50
|
-
| `@simpleapps-com/augur-web/popover` | 4 exports, 0 types |
|
|
51
|
-
| `@simpleapps-com/augur-web/separator` | 1 exports, 0 types |
|
|
52
|
-
| `@simpleapps-com/augur-web/skeleton` | 1 exports, 0 types |
|
|
53
|
-
| `@simpleapps-com/augur-web/form-field` | 1 exports, 1 types |
|
|
54
|
-
| `@simpleapps-com/augur-web/form-input` | 1 exports, 1 types |
|
|
55
|
-
| `@simpleapps-com/augur-web/form-select` | 1 exports, 1 types |
|
|
56
|
-
| `@simpleapps-com/augur-web/form-textarea` | 1 exports, 1 types |
|
|
57
|
-
| `@simpleapps-com/augur-web/financing-widget` | 1 exports, 3 types |
|
|
58
|
-
| `@simpleapps-com/augur-web/gtm` | 3 exports, 7 types |
|
|
59
|
-
| `@simpleapps-com/augur-web/mdx-components` | 1 exports, 0 types |
|
|
60
|
-
| `@simpleapps-com/augur-web/payment-modal` | 2 exports, 1 types |
|
|
61
|
-
| `@simpleapps-com/augur-web/quantity-input` | 1 exports, 1 types |
|
|
62
|
-
| `@simpleapps-com/augur-web/session-replay` | 1 exports, 2 types |
|
|
63
|
-
| `@simpleapps-com/augur-web/stock-label` | 1 exports, 4 types |
|
|
64
|
-
| `@simpleapps-com/augur-web/provider` | 1 exports, 1 types |
|
|
65
|
-
|
|
66
|
-
## Exports
|
|
67
|
-
|
|
68
|
-
### Analytics
|
|
69
|
-
|
|
70
|
-
| Export | Kind | Description |
|
|
71
|
-
|--------|------|-------------|
|
|
72
|
-
| `AnalyticsNoscript` | function | |
|
|
73
|
-
| `useAnalytics` | function | |
|
|
74
|
-
|
|
75
|
-
### Auth & Context
|
|
76
|
-
|
|
77
|
-
| Export | Kind | Description |
|
|
78
|
-
|--------|------|-------------|
|
|
79
|
-
| `AnalyticsProvider` | function | |
|
|
80
|
-
| `SessionReplayScript` | function | Loads a session replay script with `lazyOnload` behavior. |
|
|
81
|
-
| `AugurSiteProvider` | function | Unified site provider that composes AugurHooksProvider with analytics |
|
|
82
|
-
|
|
83
|
-
### Cart
|
|
84
|
-
|
|
85
|
-
| Export | Kind | Description |
|
|
86
|
-
|--------|------|-------------|
|
|
87
|
-
| `AddToCartButton` | component | |
|
|
88
|
-
|
|
89
|
-
### Items & Categories
|
|
90
|
-
|
|
91
|
-
| Export | Kind | Description |
|
|
92
|
-
|--------|------|-------------|
|
|
93
|
-
| `AccordionItem` | component | |
|
|
94
|
-
| `BreadcrumbItem` | component | |
|
|
95
|
-
| `PaginationItem` | component | |
|
|
96
|
-
| `RadioGroupItem` | component | |
|
|
97
|
-
| `SelectItem` | component | |
|
|
98
|
-
| `CommandItem` | component | |
|
|
99
|
-
| `DropdownMenuCheckboxItem` | component | |
|
|
100
|
-
| `DropdownMenuItem` | component | |
|
|
101
|
-
| `DropdownMenuRadioItem` | component | |
|
|
102
|
-
| `NavigationMenuItem` | component | |
|
|
103
|
-
|
|
104
|
-
### Payment & Checkout
|
|
105
|
-
|
|
106
|
-
| Export | Kind | Description |
|
|
107
|
-
|--------|------|-------------|
|
|
108
|
-
| `PaymentModal` | function | |
|
|
109
|
-
|
|
110
|
-
### Pricing
|
|
111
|
-
|
|
112
|
-
| Export | Kind | Description |
|
|
113
|
-
|--------|------|-------------|
|
|
114
|
-
| `FormatPriceOptions` | value | |
|
|
115
|
-
| `PriceFormatConfig` | value | |
|
|
116
|
-
| `createPrice` | function | Factory that creates a `Price` component and a `formatPrice` function |
|
|
117
|
-
| `createFormatPrice` | function | Create a pure price-formatting function. Server-safe (no React dependency). |
|
|
118
|
-
|
|
119
|
-
### SEO & Structured Data
|
|
120
|
-
|
|
121
|
-
| Export | Kind | Description |
|
|
122
|
-
|--------|------|-------------|
|
|
123
|
-
| `BreadcrumbEllipsis` | const | |
|
|
124
|
-
| `BreadcrumbSeparator` | const | |
|
|
125
|
-
|
|
126
|
-
### Stock
|
|
127
|
-
|
|
128
|
-
| Export | Kind | Description |
|
|
129
|
-
|--------|------|-------------|
|
|
130
|
-
| `createStockLabel` | function | |
|
|
131
|
-
|
|
132
|
-
### UI Components
|
|
133
|
-
|
|
134
|
-
| Export | Kind | Description |
|
|
135
|
-
|--------|------|-------------|
|
|
136
|
-
| `Accordion` | component | |
|
|
137
|
-
| `AccordionContent` | component | |
|
|
138
|
-
| `AccordionTrigger` | component | |
|
|
139
|
-
| `Breadcrumb` | component | |
|
|
140
|
-
| `BreadcrumbLink` | component | |
|
|
141
|
-
| `BreadcrumbList` | component | |
|
|
142
|
-
| `BreadcrumbPage` | component | |
|
|
143
|
-
| `BreadCrumbs` | component | Breadcrumb navigation with optional JSON-LD structured data. |
|
|
144
|
-
| `Button` | component | Styled button with variant/size props. Supports polymorphism via `asChild`. |
|
|
145
|
-
| `Card` | component | |
|
|
146
|
-
| `CardContent` | component | |
|
|
147
|
-
| `CardDescription` | component | |
|
|
148
|
-
| `CardFooter` | component | |
|
|
149
|
-
| `CardHeader` | component | |
|
|
150
|
-
| `CardTitle` | component | |
|
|
151
|
-
| `Checkbox` | component | |
|
|
152
|
-
| `Input` | component | |
|
|
153
|
-
| `Label` | component | |
|
|
154
|
-
| `PaginationContent` | component | |
|
|
155
|
-
| `RadioGroup` | component | |
|
|
156
|
-
| `Select` | component | |
|
|
157
|
-
| `SelectContent` | component | |
|
|
158
|
-
| `SelectGroup` | component | |
|
|
159
|
-
| `SelectLabel` | component | |
|
|
160
|
-
| `SelectScrollDownButton` | component | |
|
|
161
|
-
| `SelectScrollUpButton` | component | |
|
|
162
|
-
| `SelectSeparator` | component | |
|
|
163
|
-
| `SelectTrigger` | component | |
|
|
164
|
-
| `SelectValue` | component | |
|
|
165
|
-
| `Table` | component | |
|
|
166
|
-
| `TableBody` | component | |
|
|
167
|
-
| `TableCaption` | component | |
|
|
168
|
-
| `TableCell` | component | |
|
|
169
|
-
| `TableFooter` | component | |
|
|
170
|
-
| `TableHead` | component | |
|
|
171
|
-
| `TableHeader` | component | |
|
|
172
|
-
| `TableRow` | component | |
|
|
173
|
-
| `Tabs` | component | |
|
|
174
|
-
| `TabsContent` | component | |
|
|
175
|
-
| `TabsList` | component | |
|
|
176
|
-
| `TabsTrigger` | component | |
|
|
177
|
-
| `Textarea` | component | |
|
|
178
|
-
| `Command` | component | |
|
|
179
|
-
| `CommandEmpty` | component | |
|
|
180
|
-
| `CommandGroup` | component | |
|
|
181
|
-
| `CommandInput` | component | |
|
|
182
|
-
| `CommandList` | component | |
|
|
183
|
-
| `CommandSeparator` | component | |
|
|
184
|
-
| `Dialog` | component | |
|
|
185
|
-
| `DialogClose` | component | |
|
|
186
|
-
| `DialogContent` | component | |
|
|
187
|
-
| `DialogDescription` | component | |
|
|
188
|
-
| `DialogOverlay` | component | |
|
|
189
|
-
| `DialogPortal` | component | |
|
|
190
|
-
| `DialogTitle` | component | |
|
|
191
|
-
| `DialogTrigger` | component | |
|
|
192
|
-
| `DropdownMenu` | component | |
|
|
193
|
-
| `DropdownMenuContent` | component | |
|
|
194
|
-
| `DropdownMenuGroup` | component | |
|
|
195
|
-
| `DropdownMenuLabel` | component | |
|
|
196
|
-
| `DropdownMenuPortal` | component | |
|
|
197
|
-
| `DropdownMenuRadioGroup` | component | |
|
|
198
|
-
| `DropdownMenuSeparator` | component | |
|
|
199
|
-
| `DropdownMenuSub` | component | |
|
|
200
|
-
| `DropdownMenuSubContent` | component | |
|
|
201
|
-
| `DropdownMenuSubTrigger` | component | |
|
|
202
|
-
| `DropdownMenuTrigger` | component | |
|
|
203
|
-
| `NavigationMenu` | component | |
|
|
204
|
-
| `NavigationMenuContent` | component | |
|
|
205
|
-
| `NavigationMenuIndicator` | component | |
|
|
206
|
-
| `NavigationMenuLink` | component | |
|
|
207
|
-
| `NavigationMenuList` | component | |
|
|
208
|
-
| `NavigationMenuTrigger` | component | |
|
|
209
|
-
| `NavigationMenuViewport` | component | |
|
|
210
|
-
| `Popover` | component | |
|
|
211
|
-
| `PopoverAnchor` | component | |
|
|
212
|
-
| `PopoverContent` | component | |
|
|
213
|
-
| `PopoverTrigger` | component | |
|
|
214
|
-
| `Separator` | component | |
|
|
215
|
-
| `FormField` | component | Base form layout: label + children + optional error message. |
|
|
216
|
-
| `FormInput` | component | Labeled text input with error display. Composes FormField + Input. |
|
|
217
|
-
| `FormSelect` | component | Labeled select dropdown with error display. Composes FormField + Select. |
|
|
218
|
-
| `FormTextarea` | component | Labeled textarea with error display. Composes FormField + Textarea. |
|
|
219
|
-
| `QuantityInput` | component | Numeric input with optional +/- stepper buttons for cart quantities. |
|
|
220
|
-
|
|
221
|
-
### Other
|
|
222
|
-
|
|
223
|
-
| Export | Kind | Description |
|
|
224
|
-
|--------|------|-------------|
|
|
225
|
-
| `buttonVariants` | const | CVA variants for the Button. Variants: default, destructive, outline, |
|
|
226
|
-
| `ListView` | const | Generic list renderer that maps an array through a render function. |
|
|
227
|
-
| `ListPagination` | const | |
|
|
228
|
-
| `Pagination` | const | |
|
|
229
|
-
| `PaginationEllipsis` | const | |
|
|
230
|
-
| `PaginationLink` | const | |
|
|
231
|
-
| `PaginationNext` | const | |
|
|
232
|
-
| `PaginationPrevious` | const | |
|
|
233
|
-
| `getPageNumbers` | function | Build an array of page numbers and ellipsis markers for pagination UI. |
|
|
234
|
-
| `ResourceTabs` | function | Standardized sub-resource tab layout for detail pages. |
|
|
235
|
-
| `Spinner` | const | Animated SVG loading spinner. Sizes: `sm` (12px), `md` (16px), `lg` (24px). |
|
|
236
|
-
| `CommandDialog` | const | |
|
|
237
|
-
| `CommandShortcut` | const | |
|
|
238
|
-
| `ConfirmDialog` | function | Pre-composed confirmation dialog for delete/action confirmations. |
|
|
239
|
-
| `DataTable` | function | |
|
|
240
|
-
| `RowSelectionState` | value | |
|
|
241
|
-
| `SortingState` | value | |
|
|
242
|
-
| `VisibilityState` | value | |
|
|
243
|
-
| `DetailPanel` | function | Read/edit toggle panel for a single record. Renders field values in read |
|
|
244
|
-
| `DialogFooter` | const | |
|
|
245
|
-
| `DialogHeader` | const | |
|
|
246
|
-
| `DropdownMenuShortcut` | const | |
|
|
247
|
-
| `navigationMenuTriggerStyle` | const | |
|
|
248
|
-
| `Skeleton` | function | |
|
|
249
|
-
| `FinancingWidget` | function | Loads a financing widget script on the pages where it's needed. |
|
|
250
|
-
| `getMDXComponents` | function | Returns a map of HTML element names to styled React components |
|
|
251
|
-
| `extractBin` | function | Extract a card BIN from a postMessage payload. |
|
|
252
|
-
|
|
253
|
-
## Examples
|
|
254
|
-
|
|
255
|
-
### BreadCrumbs
|
|
256
|
-
|
|
257
|
-
```tsx
|
|
258
|
-
import Link from "next/link";
|
|
259
|
-
<BreadCrumbs
|
|
260
|
-
links={[{ href: "/", text: "Home" }, { href: "/shop", text: "Shop" }]}
|
|
261
|
-
activeBreadcrumb="Widget"
|
|
262
|
-
linkComponent={Link}
|
|
263
|
-
baseUrl="https://example.com"
|
|
264
|
-
/>
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
### Button
|
|
268
|
-
|
|
269
|
-
```tsx
|
|
270
|
-
<Button variant="outline" size="sm">Cancel</Button>
|
|
271
|
-
<Button asChild><Link href="/shop">Browse</Link></Button>
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
### createPrice
|
|
275
|
-
|
|
276
|
-
```tsx
|
|
277
|
-
// lib/price.ts -- one-time site config
|
|
278
|
-
import { createPrice } from "@simpleapps-com/augur-web/price";
|
|
279
|
-
export const { Price, formatPrice } = createPrice({
|
|
280
|
-
currency: "USD",
|
|
281
|
-
zeroLabel: "Call for Price",
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
// components/ProductCard.tsx
|
|
285
|
-
<Price value={item.price1} uom={item.default_selling_unit} />
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### ResourceTabs
|
|
289
|
-
|
|
290
|
-
```tsx
|
|
291
|
-
<ResourceTabs
|
|
292
|
-
tabs={[
|
|
293
|
-
{ value: "attributes", label: "Attributes", content: <AttributesList /> },
|
|
294
|
-
{ value: "items", label: "Items", content: <ItemsList /> },
|
|
295
|
-
]}
|
|
296
|
-
/>
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
### ConfirmDialog
|
|
300
|
-
|
|
301
|
-
```tsx
|
|
302
|
-
<ConfirmDialog
|
|
303
|
-
open={showDelete}
|
|
304
|
-
onOpenChange={setShowDelete}
|
|
305
|
-
title="Delete brand?"
|
|
306
|
-
description="This action cannot be undone."
|
|
307
|
-
variant="destructive"
|
|
308
|
-
onConfirm={() => deleteBrand.mutate(uid)}
|
|
309
|
-
loading={deleteBrand.isPending}
|
|
310
|
-
/>
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
### DetailPanel
|
|
314
|
-
|
|
315
|
-
```tsx
|
|
316
|
-
const fields: FieldDef<Brand>[] = [
|
|
317
|
-
{ key: "brandsName", label: "Name", type: "text", required: true },
|
|
318
|
-
{ key: "brandsDesc", label: "Description", type: "textarea" },
|
|
319
|
-
{ key: "brandsUid", label: "UID", type: "readonly" },
|
|
320
|
-
];
|
|
321
|
-
|
|
322
|
-
<DetailPanel fields={fields} data={brand} onSave={handleSave} />
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
### FormInput
|
|
326
|
-
|
|
327
|
-
```tsx
|
|
328
|
-
<FormInput label="Email" name="email" type="email" required error={errors.email} />
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
### FormSelect
|
|
332
|
-
|
|
333
|
-
```tsx
|
|
334
|
-
<FormSelect
|
|
335
|
-
label="State"
|
|
336
|
-
name="state"
|
|
337
|
-
options={[{ label: "Texas", value: "TX" }]}
|
|
338
|
-
value={state}
|
|
339
|
-
onValueChange={setState}
|
|
340
|
-
/>
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
### FinancingWidget
|
|
344
|
-
|
|
345
|
-
```tsx
|
|
346
|
-
// On a product page
|
|
347
|
-
<FinancingWidget provider="timepayment" vendorCode="PVD5P" />
|
|
348
|
-
|
|
349
|
-
// With load callback
|
|
350
|
-
<FinancingWidget
|
|
351
|
-
provider="timepayment"
|
|
352
|
-
vendorCode="PVD5P"
|
|
353
|
-
onLoad={() => console.log("Financing ready")}
|
|
354
|
-
/>
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
### QuantityInput
|
|
358
|
-
|
|
359
|
-
```tsx
|
|
360
|
-
<QuantityInput value={qty} onChange={setQty} min={1} step={1} />
|
|
28
|
+
```bash
|
|
29
|
+
pnpm -C repo/packages/augur-web test
|
|
30
|
+
pnpm -C repo/packages/augur-web proofs
|
|
361
31
|
```
|
|
362
32
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
`AddToCartButtonProps`, `BreadCrumbsProps`, `ButtonProps`, `InputProps`, `CreatePriceResult`, `PriceClassNames`, `PriceConfig`, `PriceProps`, `FormatPriceOptions`, `PriceFormatConfig`, `ResourceTabsProps`, `TabDef`, `TextareaProps`, `ConfirmDialogProps`, `ColumnDef`, `DataTablePagination`, `DataTableProps`, `DetailPanelProps`, `FieldDef`, `FormFieldProps`, `FormInputProps`, `FormSelectProps`, `FormTextareaProps`, `FinancingProvider`, `FinancingWidgetProps`, `UseFinancingResult`, `AnalyticsContextValue`, `AnalyticsNoscriptProps`, `AnalyticsProviderProps`, `AnalyticsStrategy`, `EcommerceEvent`, `EcommerceItem`, `EcommerceParams`, `PaymentModalProps`, `QuantityInputProps`, `SessionReplayProvider`, `SessionReplayScriptProps`, `CreateStockLabelResult`, `StockLabelClassNames`, `StockLabelConfig`, `StockLabelProps`, `AugurSiteProviderProps`
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
## Related Packages
|
|
369
|
-
|
|
370
|
-
All packages use fixed versioning -- same version number across the platform.
|
|
371
|
-
|
|
372
|
-
| Package | Description |
|
|
373
|
-
|---------|-------------|
|
|
374
|
-
| `@simpleapps-com/augur-config` | Shared tooling configuration presets for Augur ecommerce sites |
|
|
375
|
-
| `@simpleapps-com/augur-core` | Universal foundation for Augur packages — proxy infrastructure, cache keys, method classification, shared types |
|
|
376
|
-
| `@simpleapps-com/augur-hooks` | Cross-platform React Query hooks and Zustand stores for Augur ecommerce sites |
|
|
377
|
-
| `@simpleapps-com/augur-mobile` | React Native/Expo adapters for Augur ecommerce apps (offline sync, biometrics, push) |
|
|
378
|
-
| `@simpleapps-com/augur-server` | Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth) |
|
|
379
|
-
| `@simpleapps-com/augur-tailwind` | Shared Tailwind CSS v4 theme with HSL variables for Augur ecommerce sites |
|
|
380
|
-
| `@simpleapps-com/augur-utils` | Shared types, cache configuration, and utility functions for Augur ecommerce sites |
|
|
33
|
+
A change to its exports MUST come with `pnpm -C repo/sites/augur-build generate` (the drift
|
|
34
|
+
test fails otherwise), and the guide changes in the same PR.
|
package/dist/accordion.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/accordion.cjs","../src/accordion.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ,YAAY;AACZ;AACA;ACAA,2EAAuB;AACvB,8HAAoC;AACpC,oCAA8B;AAC9B,sDAAmB;AAQjB,+CAAA;AANF,IAAM,UAAA,EAA+B,kBAAA,CAAA,IAAA;AAErC,IAAM,cAAA,EAAsB,KAAA,CAAA,UAAA,CAG1B,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBAC1B,6BAAA,kBAAoB,CAAA,IAAA,EAAnB,EAAwB,GAAA,EAAU,SAAA,EAAW,qBAAA,UAAG,EAAY,SAAS,CAAA,EAAI,GAAG,MAAA,CAAO,CACrF,CAAA;AACD,aAAA,CAAc,YAAA,EAAc,eAAA;AAE5B,IAAM,iBAAA,EAAyB,KAAA,CAAA,UAAA,CAG7B,CAAC,EAAE,SAAA,EAAW,QAAA,EAAU,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACpC,6BAAA,kBAAoB,CAAA,MAAA,EAAnB,EAA0B,SAAA,EAAU,MAAA,EACnC,QAAA,kBAAA,8BAAA;AAAA,EAAoB,kBAAA,CAAA,OAAA;AAAA,EAAnB;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAW,qBAAA;AAAA,MACT,sIAAA;AAAA,MACA;AAAA,IACF,CAAA;AAAA,IACC,GAAG,KAAA;AAAA,IAEH,QAAA,EAAA;AAAA,MAAA,QAAA;AAAA,sBACD,6BAAA,iBAAC,EAAA,EAAc,SAAA,EAAU,2EAAA,CAA2E;AAAA,IAAA;AAAA,EAAA;AACtG,EAAA,CACF,CACD,CAAA;AACD,gBAAA,CAAiB,YAAA,EAAiC,kBAAA,CAAA,OAAA,CAAQ,WAAA;AAE1D,IAAM,iBAAA,EAAyB,KAAA,CAAA,UAAA,CAG7B,CAAC,EAAE,SAAA,EAAW,QAAA,EAAU,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACpC,6BAAA;AAAA,EAAoB,kBAAA,CAAA,OAAA;AAAA,EAAnB;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAU,2GAAA;AAAA,IACT,GAAG,KAAA;AAAA,IAEJ,QAAA,kBAAA,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,qBAAA,WAAG,EAAa,SAAS,CAAA,EAAI,SAAA,CAAS;AAAA,EAAA;AACxD,CACD,CAAA;AACD,gBAAA,CAAiB,YAAA,EAAiC,kBAAA,CAAA,OAAA,CAAQ,WAAA;ADZ1D;AACE;AACA;AACA;AACA;AACF,+JAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/accordion.cjs","sourcesContent":[null,"/** Styled wrapper around @radix-ui/react-accordion. See https://www.radix-ui.com/primitives/docs/components/accordion */\n\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { LuChevronDown } from \"react-icons/lu\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ComponentRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n));\nAccordionItem.displayName = \"AccordionItem\";\n\nconst AccordionTrigger = React.forwardRef<\n React.ComponentRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180\",\n className,\n )}\n {...props}\n >\n {children}\n <LuChevronDown className=\"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ComponentRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\n"]}
|
package/dist/accordion.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as AccordionPrimitive from
|
|
3
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
4
3
|
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
5
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
6
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
8
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../src/accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,SAAS,8JAA0B,CAAC;AAE1C,QAAA,MAAM,aAAa,iKAKjB,CAAC;AAGH,QAAA,MAAM,gBAAgB,0KAiBpB,CAAC;AAGH,QAAA,MAAM,gBAAgB,oKAWpB,CAAC;AAGH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/add-to-cart-button.cjs","../src/add-to-cart-button.tsx"],"names":[],"mappings":"AAAA,2cAAY;AACZ,YAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACPA,2EAAuB;AACvB,oCAA+B;AAC/B,sDAAmB;AAoCP,+CAAA;AAtBZ,IAAM,gBAAA,EAAwB,KAAA,CAAA,IAAA;AAAA,EACtB,KAAA,CAAA,UAAA;AAAA,IACJ,CACE;AAAA,MACE,QAAA,EAAU,KAAA;AAAA,MACV,MAAA,EAAQ,aAAA;AAAA,MACR,SAAA,EAAW,IAAA;AAAA,MACX,QAAA;AAAA,MACA,QAAA;AAAA,MACA,SAAA;AAAA,MACA,GAAG;AAAA,IACL,CAAA,EACA,GAAA,EAAA,GACG;AACH,MAAA,uBACE,6BAAA;AAAA,QAAC,wBAAA;AAAA,QAAA;AAAA,UACC,GAAA;AAAA,UACA,QAAA,EAAU,SAAA,GAAY,OAAA;AAAA,UACtB,SAAA,EAAW,qBAAA,OAAG,EAAS,SAAS,CAAA;AAAA,UAC/B,GAAG,KAAA;AAAA,UAEH,QAAA,EAAA,QAAA,kBACC,6BAAA,yBAAC,EAAA,EAAQ,IAAA,EAAK,KAAA,CAAK,EAAA,kBAEnB,8BAAA,oBAAA,EAAA,EACG,QAAA,EAAA;AAAA,YAAA,SAAA,mBAAY,6BAAA,kBAAC,EAAA,EAAe,SAAA,EAAU,UAAA,CAAU,CAAA;AAAA,6BAChD,QAAA,UAAY;AAAA,UAAA,EAAA,CACf;AAAA,QAAA;AAAA,MAEJ,CAAA;AAAA,IAEJ;AAAA,EACF;AACF,CAAA;AACA,eAAA,CAAgB,YAAA,EAAc,iBAAA;ADV9B;AACE;AACF,0CAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/add-to-cart-button.cjs","sourcesContent":[null,"\"use client\";\n\nimport * as React from \"react\";\nimport { LuShoppingCart } from \"react-icons/lu\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { Button, type ButtonProps } from \"./button\";\nimport { Spinner } from \"./spinner\";\n\nexport interface AddToCartButtonProps extends Pick<\n ButtonProps,\n \"variant\" | \"size\" | \"disabled\" | \"className\" | \"onClick\"\n> {\n loading?: boolean;\n label?: string;\n showIcon?: boolean;\n children?: React.ReactNode;\n}\n\nconst AddToCartButton = React.memo(\n React.forwardRef<HTMLButtonElement, AddToCartButtonProps>(\n (\n {\n loading = false,\n label = \"Add to Cart\",\n showIcon = true,\n disabled,\n children,\n className,\n ...props\n },\n ref,\n ) => {\n return (\n <Button\n ref={ref}\n disabled={disabled || loading}\n className={cn(\"gap-2\", className)}\n {...props}\n >\n {loading ? (\n <Spinner size=\"sm\" />\n ) : (\n <>\n {showIcon && <LuShoppingCart className=\"h-4 w-4\" />}\n {children ?? label}\n </>\n )}\n </Button>\n );\n },\n ),\n);\nAddToCartButton.displayName = \"AddToCartButton\";\n\nexport { AddToCartButton };\n"]}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { ButtonProps } from
|
|
3
|
-
|
|
4
|
-
import 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
interface AddToCartButtonProps extends Pick<ButtonProps, "variant" | "size" | "disabled" | "className" | "onClick"> {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ButtonProps } from "./button";
|
|
3
|
+
export interface AddToCartButtonProps extends Pick<ButtonProps, "variant" | "size" | "disabled" | "className" | "onClick"> {
|
|
7
4
|
loading?: boolean;
|
|
8
5
|
label?: string;
|
|
9
6
|
showIcon?: boolean;
|
|
10
7
|
children?: React.ReactNode;
|
|
11
8
|
}
|
|
12
9
|
declare const AddToCartButton: React.NamedExoticComponent<AddToCartButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export { AddToCartButton };
|
|
11
|
+
//# sourceMappingURL=add-to-cart-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-to-cart-button.d.ts","sourceRoot":"","sources":["../src/add-to-cart-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGpD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,WAAW,EACX,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAC1D;IACC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,eAAe,2FAiCpB,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/breadcrumb.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/breadcrumb.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,saAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/breadcrumb.cjs"}
|
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
1
|
+
import * as React from "react";
|
|
4
2
|
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
5
3
|
separator?: React.ReactNode;
|
|
6
4
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -11,12 +9,12 @@ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.Detaile
|
|
|
11
9
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
10
|
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
13
11
|
declare const BreadcrumbSeparator: {
|
|
14
|
-
({ children, className, ...props }: React.ComponentProps<"li">):
|
|
12
|
+
({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
15
13
|
displayName: string;
|
|
16
14
|
};
|
|
17
15
|
declare const BreadcrumbEllipsis: {
|
|
18
|
-
({ className, ...props }: React.ComponentProps<"span">):
|
|
16
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
19
17
|
displayName: string;
|
|
20
18
|
};
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
20
|
+
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../src/breadcrumb.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,UAAU;gBAGA,KAAK,CAAC,SAAS;qCAE+C,CAAC;AAG/E,QAAA,MAAM,cAAc,2KAWnB,CAAC;AAGF,QAAA,MAAM,cAAc,kKAInB,CAAC;AAGF,QAAA,MAAM,cAAc;cAGN,OAAO;2CAWnB,CAAC;AAGH,QAAA,MAAM,cAAc,sKAWnB,CAAC;AAGF,QAAA,MAAM,mBAAmB;wCAAuC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;;CASzF,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAA6B,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;;CAUhF,CAAC;AAGF,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,CAAC"}
|
package/dist/breadcrumbs.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/breadcrumbs.cjs","../src/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACTA,2EAAuB;AACvB,sDAAmB;AACnB,yDAAyC;AAyDnC,+CAAA;AAvBN,IAAM,YAAA,EAAoB,KAAA,CAAA,UAAA;AAAA,EACxB,CACE;AAAA,IACE,KAAA;AAAA,IACA,KAAA;AAAA,IACA,gBAAA;AAAA,IACA,aAAA,EAAe,cAAA,EAAgB,GAAA;AAAA,IAC/B,SAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,EACF,CAAA,EACA,GAAA,EAAA,GACG;AACH,IAAA,MAAM,OAAA,EAAS,QAAA,EACX,kDAAA;AAAA,MACE,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,EAAA,GAAA,CAAU;AAAA,QACnB,IAAA,EAAM,IAAA,CAAK,IAAA;AAAA,QACX,GAAA,EAAK,CAAA,EAAA;AACL,MAAA;AAEJ,IAAA;AAGF,IAAA;AACG,MAAA;AACE,QAAA;AAAA,QAAA;AACC,UAAA;AACA,UAAA;AAA0D,QAAA;AAC5D,MAAA;AAEF,sBAAA;AACG,QAAA;AACD,wBAAA;AACG,UAAA;AAEG,4BAAA;AAKA,4BAAA;AAAqB,UAAA;AAGzB,0BAAA;AAGF,QAAA;AACF,MAAA;AACF,IAAA;AAEJ,EAAA;AACF;AACY;ADpCE;AACA;AACA","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/breadcrumbs.cjs","sourcesContent":[null,"\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { generateBreadcrumbJsonLd } from \"@simpleapps-com/augur-utils\";\nimport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"./breadcrumb\";\n\ninterface BreadCrumbsProps {\n title?: string;\n links: { href: string; text: string }[];\n activeBreadcrumb: string;\n linkComponent?: React.ElementType;\n className?: string;\n titleClassName?: string;\n baseUrl?: string;\n}\n\n/**\n * Breadcrumb navigation with optional JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import Link from \"next/link\";\n * <BreadCrumbs\n * links={[{ href: \"/\", text: \"Home\" }, { href: \"/shop\", text: \"Shop\" }]}\n * activeBreadcrumb=\"Widget\"\n * linkComponent={Link}\n * baseUrl=\"https://example.com\"\n * />\n * ```\n */\nconst BreadCrumbs = React.forwardRef<HTMLElement, BreadCrumbsProps>(\n (\n {\n title,\n links,\n activeBreadcrumb,\n linkComponent: LinkComponent = \"a\",\n className,\n titleClassName,\n baseUrl,\n },\n ref,\n ) => {\n const jsonLd = baseUrl\n ? generateBreadcrumbJsonLd(\n links.map((link) => ({\n name: link.text,\n url: `${baseUrl}${link.href}`,\n })),\n )\n : null;\n\n return (\n <>\n {jsonLd && (\n <script\n type=\"application/ld+json\"\n dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}\n />\n )}\n <Breadcrumb ref={ref} className={cn(className)}>\n {title && <h1 className={cn(\"hidden lg:block\", titleClassName)}>{title}</h1>}\n <BreadcrumbList>\n {links.map((link, index) => (\n <React.Fragment key={index}>\n <BreadcrumbItem>\n <BreadcrumbLink asChild>\n <LinkComponent href={link.href}>{link.text}</LinkComponent>\n </BreadcrumbLink>\n </BreadcrumbItem>\n <BreadcrumbSeparator />\n </React.Fragment>\n ))}\n <BreadcrumbItem>\n <BreadcrumbPage>{activeBreadcrumb}</BreadcrumbPage>\n </BreadcrumbItem>\n </BreadcrumbList>\n </Breadcrumb>\n </>\n );\n },\n);\nBreadCrumbs.displayName = \"BreadCrumbs\";\n\nexport { BreadCrumbs };\nexport type { BreadCrumbsProps };\n"]}
|
package/dist/breadcrumbs.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
3
2
|
interface BreadCrumbsProps {
|
|
4
3
|
title?: string;
|
|
5
4
|
links: {
|
|
@@ -27,5 +26,6 @@ interface BreadCrumbsProps {
|
|
|
27
26
|
* ```
|
|
28
27
|
*/
|
|
29
28
|
declare const BreadCrumbs: React.ForwardRefExoticComponent<BreadCrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
30
|
-
|
|
31
|
-
export {
|
|
29
|
+
export { BreadCrumbs };
|
|
30
|
+
export type { BreadCrumbsProps };
|
|
31
|
+
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../src/breadcrumbs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,WAAW,sFAmDhB,CAAC;AAGF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/button.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/button.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,qGAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/button.cjs"}
|
package/dist/button.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
3
|
/**
|
|
6
4
|
* CVA variants for the Button. Variants: default, destructive, outline,
|
|
7
5
|
* secondary, ghost, link. Sizes: default, sm, lg, icon.
|
|
8
6
|
*/
|
|
9
7
|
declare const buttonVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "
|
|
8
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
11
9
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
12
|
-
} &
|
|
13
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
14
12
|
asChild?: boolean;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
@@ -23,5 +21,5 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
23
21
|
* ```
|
|
24
22
|
*/
|
|
25
23
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
export { Button, buttonVariants };
|
|
25
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE;;;GAGG;AACH,QAAA,MAAM,cAAc;;;8EAyBnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,uFAOX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/card.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/card.cjs","../src/card.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ,YAAY;AACZ;AACA;ACAA,2EAAuB;AACvB,sDAAmB;AAIf,+CAAA;AAFJ,IAAM,KAAA,EAAa,KAAA,CAAA,UAAA;AAAA,EACjB,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACxB,6BAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,qBAAA,uDAAG,EAAyD,SAAS,CAAA;AAAA,MAC/E,GAAG;AAAA,IAAA;AAAA,EACN;AAEJ,CAAA;AACA,IAAA,CAAK,YAAA,EAAc,MAAA;AAEnB,IAAM,WAAA,EAAmB,KAAA,CAAA,UAAA;AAAA,EACvB,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACxB,6BAAA,KAAC,EAAA,EAAI,GAAA,EAAU,SAAA,EAAW,qBAAA,+BAAG,EAAiC,SAAS,CAAA,EAAI,GAAG,MAAA,CAAO;AAEzF,CAAA;AACA,UAAA,CAAW,YAAA,EAAc,YAAA;AAEzB,IAAM,UAAA,EAAkB,KAAA,CAAA,UAAA;AAAA,EACtB,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACxB,6BAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,qBAAA,2CAAG,EAA6C,SAAS,CAAA;AAAA,MACnE,GAAG;AAAA,IAAA;AAAA,EACN;AAEJ,CAAA;AACA,SAAA,CAAU,YAAA,EAAc,WAAA;AAExB,IAAM,gBAAA,EAAwB,KAAA,CAAA,UAAA,CAG5B,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBAC1B,6BAAA,GAAC,EAAA,EAAE,GAAA,EAAU,SAAA,EAAW,qBAAA,+BAAG,EAAiC,SAAS,CAAA,EAAI,GAAG,MAAA,CAAO,CACpF,CAAA;AACD,eAAA,CAAgB,YAAA,EAAc,iBAAA;AAE9B,IAAM,YAAA,EAAoB,KAAA,CAAA,UAAA;AAAA,EACxB,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACxB,6BAAA,KAAC,EAAA,EAAI,GAAA,EAAU,SAAA,EAAW,qBAAA,UAAG,EAAY,SAAS,CAAA,EAAI,GAAG,MAAA,CAAO;AAEpE,CAAA;AACA,WAAA,CAAY,YAAA,EAAc,aAAA;AAE1B,IAAM,WAAA,EAAmB,KAAA,CAAA,UAAA;AAAA,EACvB,CAAC,EAAE,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,mBACxB,6BAAA,KAAC,EAAA,EAAI,GAAA,EAAU,SAAA,EAAW,qBAAA,4BAAG,EAA8B,SAAS,CAAA,EAAI,GAAG,MAAA,CAAO;AAEtF,CAAA;AACA,UAAA,CAAW,YAAA,EAAc,YAAA;ADZzB;AACE;AACA;AACA;AACA;AACA;AACA;AACF,mMAAC","file":"/Users/stuartjackson/Projects/simpleapps/atlas/repo/packages/augur-web/dist/card.cjs","sourcesContent":[null,"/** Styled card layout components (Card, CardHeader, CardTitle, CardContent, CardFooter). */\n\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\n\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"bg-card text-card-foreground rounded-xl border shadow\", className)}\n {...props}\n />\n ),\n);\nCard.displayName = \"Card\";\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex flex-col space-y-1.5 p-6\", className)} {...props} />\n ),\n);\nCardHeader.displayName = \"CardHeader\";\n\nconst CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\"font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n ),\n);\nCardTitle.displayName = \"CardTitle\";\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"text-muted-foreground text-sm\", className)} {...props} />\n));\nCardDescription.displayName = \"CardDescription\";\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n ),\n);\nCardContent.displayName = \"CardContent\";\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center p-6 pt-0\", className)} {...props} />\n ),\n);\nCardFooter.displayName = \"CardFooter\";\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n"]}
|
package/dist/card.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
3
2
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
3
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
5
|
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
6
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
7
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
9
|
+
//# sourceMappingURL=card.d.ts.map
|