@4alldigital/foundation-ui--core 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Foundation UI Core Component Library (source distribution)",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"author": "Joe Mewes",
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ef072d94fbdf9e14583d82a818d137a96642fad1"
|
|
36
36
|
}
|
|
@@ -71,6 +71,7 @@ const sampleProducts: Product[] = [
|
|
|
71
71
|
export const Default: Story = {
|
|
72
72
|
args: {
|
|
73
73
|
title: 'Shop Partnerships',
|
|
74
|
+
intro: 'Our Partnerships page showcases a curated selection of products available for pre-order through the NRG at Home platform, created in collaboration with trusted partners and innovators. These early-access opportunities allow our community to support new ideas, shape future offerings, and be among the first to experience products that align with our values of performance, quality, and innovation—bringing the future of NRG at Home directly into your everyday life.',
|
|
74
75
|
products: sampleProducts,
|
|
75
76
|
isLoading: false,
|
|
76
77
|
onProductClick: (product) => console.log('Product clicked:', product),
|
|
@@ -80,6 +81,7 @@ export const Default: Story = {
|
|
|
80
81
|
export const Loading: Story = {
|
|
81
82
|
args: {
|
|
82
83
|
title: 'Shop Partnerships',
|
|
84
|
+
intro: 'Browse our curated selection of high-performance gear.',
|
|
83
85
|
products: [],
|
|
84
86
|
isLoading: true,
|
|
85
87
|
},
|
|
@@ -114,6 +116,7 @@ export const SingleProduct: Story = {
|
|
|
114
116
|
export const ManyProducts: Story = {
|
|
115
117
|
args: {
|
|
116
118
|
title: 'Shop Partnerships',
|
|
119
|
+
intro: 'Explore our extensive range of athletic essentials, from performance apparel to cutting-edge accessories that help you achieve your fitness goals.',
|
|
117
120
|
products: [...sampleProducts, ...sampleProducts, ...sampleProducts],
|
|
118
121
|
isLoading: false,
|
|
119
122
|
onProductClick: (product) => console.log('Product clicked:', product),
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import Screen from '../../components/Screen';
|
|
2
2
|
import DisplayHeading from '../../components/DisplayHeading';
|
|
3
|
+
import Copy from '../../components/Copy';
|
|
3
4
|
import { ProductCard } from '../../components/ProductCard';
|
|
4
5
|
import { Props } from './ProductListScreen.types';
|
|
5
6
|
|
|
6
|
-
const ProductListScreen = ({ testID, title, products, isLoading, error, onProductClick }: Props) => {
|
|
7
|
+
const ProductListScreen = ({ testID, title, intro, products, isLoading, error, onProductClick }: Props) => {
|
|
7
8
|
return (
|
|
8
9
|
<Screen data-testid={testID || 'ProductListScreen'}>
|
|
9
10
|
{title && <DisplayHeading text={title} />}
|
|
11
|
+
{intro && (
|
|
12
|
+
<div className="container mx-auto">
|
|
13
|
+
<Copy>{intro}</Copy>
|
|
14
|
+
</div>
|
|
15
|
+
)}
|
|
10
16
|
|
|
11
|
-
<div className="container mx-auto
|
|
17
|
+
<div className="container mx-auto">
|
|
12
18
|
{error && (
|
|
13
19
|
<div className="rounded-lg bg-destructive/10 p-8 text-center">
|
|
14
20
|
<h2 className="mb-2 text-2xl font-bold text-destructive">Unable to Load Products</h2>
|