@appcorp/app-corp-vista 0.2.20 → 0.2.22
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.
|
@@ -19,7 +19,7 @@ var VistaRadioV1 = function (_a) {
|
|
|
19
19
|
.map(function (_a) {
|
|
20
20
|
var id = _a.id, label = _a.label, value = _a.value;
|
|
21
21
|
return (react_1.default.createElement("div", { key: id, className: "flex items-center" },
|
|
22
|
-
react_1.default.createElement("input", { checked: selectedValue
|
|
22
|
+
react_1.default.createElement("input", { checked: selectedValue === value, className: "relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white not-checked:before:hidden checked:border-primary checked:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden", id: id, name: id, onChange: function (e) {
|
|
23
23
|
return handleOnChange(id, e.target.value);
|
|
24
24
|
}, type: "radio", value: value }),
|
|
25
25
|
react_1.default.createElement("label", { htmlFor: id, className: "ml-3 block text-sm/6 font-medium text-gray-900 dark:text-white" }, label)));
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { VistaProductListV4Props } from '../../type/vista-product-list-type';
|
|
3
|
+
export declare const VistaProductListV4: FC<VistaProductListV4Props>;
|
|
@@ -5,41 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VistaProductListV4 = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
id: 1,
|
|
11
|
-
name: 'Focus Paper Refill',
|
|
12
|
-
href: '#',
|
|
13
|
-
price: '$13',
|
|
14
|
-
description: '3 sizes available',
|
|
15
|
-
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce-images/category-page-01-image-card-01.jpg',
|
|
16
|
-
imageAlt: 'Person using a pen to cross a task off a productivity paper card.',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: 2,
|
|
20
|
-
name: 'Focus Card Holder',
|
|
21
|
-
href: '#',
|
|
22
|
-
price: '$64',
|
|
23
|
-
description: 'Walnut',
|
|
24
|
-
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce-images/category-page-01-image-card-02.jpg',
|
|
25
|
-
imageAlt: 'Paper card sitting upright in walnut card holder on desk.',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: 3,
|
|
29
|
-
name: 'Focus Carry Case',
|
|
30
|
-
href: '#',
|
|
31
|
-
price: '$32',
|
|
32
|
-
description: 'Heather Gray',
|
|
33
|
-
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce-images/category-page-01-image-card-03.jpg',
|
|
34
|
-
imageAlt: 'Textured gray felt pouch for paper cards with snap button flap and elastic pen holder loop.',
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
var VistaProductListV4 = function () {
|
|
8
|
+
var VistaProductListV4 = function (_a) {
|
|
9
|
+
var items = _a.items;
|
|
38
10
|
return (react_1.default.createElement("div", { className: "bg-white" },
|
|
39
|
-
react_1.default.createElement("div", { className: "mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-
|
|
11
|
+
react_1.default.createElement("div", { className: "mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-20 lg:max-w-7xl lg:px-8" },
|
|
40
12
|
react_1.default.createElement("h2", { id: "products-heading", className: "sr-only" }, "Products"),
|
|
41
|
-
react_1.default.createElement("div", { className: "grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-8" },
|
|
42
|
-
react_1.default.createElement("img", { alt: product.imageAlt,
|
|
13
|
+
react_1.default.createElement("div", { className: "grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-8" }, items.map(function (product) { return (react_1.default.createElement("a", { key: product.id, href: product.href, className: "group" },
|
|
14
|
+
react_1.default.createElement("img", { alt: product.imageAlt, className: "aspect-square w-full overflow-hidden rounded-lg object-cover group-hover:opacity-75 sm:aspect-2/3", src: product.imageSrc }),
|
|
43
15
|
react_1.default.createElement("div", { className: "mt-4 flex items-center justify-between text-base font-medium text-gray-900" },
|
|
44
16
|
react_1.default.createElement("h3", null, product.name),
|
|
45
17
|
react_1.default.createElement("p", null, product.price)),
|
package/package.json
CHANGED
|
@@ -7,8 +7,17 @@ export interface VistaProductListV2Props {
|
|
|
7
7
|
export interface VistaProductListV3Props {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface VistaProductListV4Item {
|
|
11
|
+
description: string;
|
|
12
|
+
href: string;
|
|
11
13
|
id: string;
|
|
14
|
+
imageAlt: string;
|
|
15
|
+
imageSrc: string;
|
|
16
|
+
name: string;
|
|
17
|
+
price?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface VistaProductListV4Props {
|
|
20
|
+
items: VistaProductListV4Item[];
|
|
12
21
|
}
|
|
13
22
|
export interface VistaProductListV5Item {
|
|
14
23
|
color?: string;
|