create-mcp-use-app 0.6.0-canary.3 → 0.6.0-canary.4
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/dist/templates/apps-sdk/resources/product-search-result/components/Accordion.tsx +2 -2
- package/dist/templates/apps-sdk/resources/product-search-result/components/AccordionItem.tsx +4 -6
- package/dist/templates/apps-sdk/resources/product-search-result/components/Carousel.tsx +1 -1
- package/dist/templates/apps-sdk/resources/product-search-result/components/CarouselItem.tsx +1 -1
- package/dist/templates/apps-sdk/resources/product-search-result/widget.tsx +1 -1
- package/dist/templates/apps-sdk/resources/styles.css +3 -3
- package/package.json +1 -1
|
@@ -20,9 +20,9 @@ export const Accordion: React.FC<AccordionProps> = ({
|
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
|
-
<div className="p-8 pt-4 border-t border-
|
|
23
|
+
<div className="p-8 pt-4 border-t border-subtle mt-4">
|
|
24
24
|
<h3 className="heading-lg mb-4">{title}</h3>
|
|
25
|
-
<div className="rounded-lg border border-
|
|
25
|
+
<div className="rounded-lg border border-default overflow-hidden">
|
|
26
26
|
{items.map((item, index) => (
|
|
27
27
|
<AccordionItem
|
|
28
28
|
key={index}
|
package/dist/templates/apps-sdk/resources/product-search-result/components/AccordionItem.tsx
CHANGED
|
@@ -9,16 +9,14 @@ export const AccordionItem: React.FC<AccordionItemProps> = ({
|
|
|
9
9
|
onToggle,
|
|
10
10
|
}) => {
|
|
11
11
|
return (
|
|
12
|
-
<div className="border-b border-
|
|
12
|
+
<div className="border-b border-subtle last:border-b-0">
|
|
13
13
|
<button
|
|
14
14
|
type="button"
|
|
15
15
|
onClick={onToggle}
|
|
16
|
-
className="w-full flex items-center justify-between p-4 text-left hover:bg-
|
|
16
|
+
className="w-full flex items-center justify-between p-4 text-left hover:bg-primary-soft-hover transition-colors"
|
|
17
17
|
>
|
|
18
|
-
<span className="font-medium text-
|
|
19
|
-
|
|
20
|
-
</span>
|
|
21
|
-
<span className="text-xl text-gray-500 dark:text-gray-400 transition-transform duration-200">
|
|
18
|
+
<span className="font-medium text-default">{question}</span>
|
|
19
|
+
<span className="text-xl text-tertiary transition-transform duration-200">
|
|
22
20
|
{isOpen ? "−" : "+"}
|
|
23
21
|
</span>
|
|
24
22
|
</button>
|
|
@@ -46,7 +46,7 @@ export const Carousel: React.FC<CarouselProps> = ({ mcpUrl }) => {
|
|
|
46
46
|
</div>
|
|
47
47
|
) : error ? (
|
|
48
48
|
<div className="flex items-center justify-center p-8">
|
|
49
|
-
<p className="text-
|
|
49
|
+
<p className="text-danger">Failed to load fruits</p>
|
|
50
50
|
</div>
|
|
51
51
|
) : (
|
|
52
52
|
<Animate className="flex gap-4">
|
|
@@ -9,7 +9,7 @@ export interface CarouselItemProps {
|
|
|
9
9
|
export const CarouselItem: React.FC<CarouselItemProps> = ({ fruit, color }) => {
|
|
10
10
|
return (
|
|
11
11
|
<div
|
|
12
|
-
className={`carousel-item size-52 rounded-xl border border-
|
|
12
|
+
className={`carousel-item size-52 rounded-xl border border-subtle ${color}`}
|
|
13
13
|
>
|
|
14
14
|
<div className="carousel-item-bg">
|
|
15
15
|
<Image src={"/fruits/" + fruit + ".png"} alt={fruit} />
|
|
@@ -32,7 +32,7 @@ const ProductSearchResult: React.FC = () => {
|
|
|
32
32
|
return (
|
|
33
33
|
<McpUseProvider debugger viewControls autoSize>
|
|
34
34
|
<AppsSDKUIProvider linkComponent={Link}>
|
|
35
|
-
<div className="relative bg-
|
|
35
|
+
<div className="relative bg-surface-elevated border border-default rounded-3xl">
|
|
36
36
|
<div className="p-8">
|
|
37
37
|
<h5 className="text-secondary mb-1">Apps SDK Template</h5>
|
|
38
38
|
<h2 className="heading-xl mb-3">Lovely Little Fruit Shop</h2>
|
|
@@ -28,15 +28,15 @@ h3,
|
|
|
28
28
|
h4,
|
|
29
29
|
h5,
|
|
30
30
|
h6 {
|
|
31
|
-
@apply text-
|
|
31
|
+
@apply text-default;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
p {
|
|
35
|
-
@apply text-
|
|
35
|
+
@apply text-secondary;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
a {
|
|
39
|
-
@apply text-
|
|
39
|
+
@apply text-info;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* Carousel scroll container with padding for blur effect */
|