diff --git a/package.json b/package.json index dd5a2fba..636b8f8f 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ }, "devDependencies": { "@playwright/test": "^1.48.1", + "@tailwindcss/container-queries": "^0.1.1", "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.10", "@types/lodash.debounce": "^4.0.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc597181..b42cb148 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -91,6 +91,9 @@ importers: '@playwright/test': specifier: ^1.48.1 version: 1.48.1 + '@tailwindcss/container-queries': + specifier: ^0.1.1 + version: 0.1.1(tailwindcss@3.4.14) '@tailwindcss/forms': specifier: ^0.5.7 version: 0.5.7(tailwindcss@3.4.14) @@ -1495,6 +1498,11 @@ packages: '@swc/types@0.1.13': resolution: {integrity: sha512-JL7eeCk6zWCbiYQg2xQSdLXQJl8Qoc9rXmG2cEKvHe3CKwMHwHGpfOb8frzNLmbycOo6I51qxnLnn9ESf4I20Q==} + '@tailwindcss/container-queries@0.1.1': + resolution: {integrity: sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==} + peerDependencies: + tailwindcss: '>=3.2.0' + '@tailwindcss/forms@0.5.7': resolution: {integrity: sha512-QE7X69iQI+ZXwldE+rzasvbJiyV/ju1FGHH0Qn2W3FKbuYtqp8LKcy6iSw79fVUT5/Vvf+0XgLCeYVG+UV6hOw==} peerDependencies: @@ -4908,6 +4916,10 @@ snapshots: dependencies: '@swc/counter': 0.1.3 + '@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.14)': + dependencies: + tailwindcss: 3.4.14 + '@tailwindcss/forms@0.5.7(tailwindcss@3.4.14)': dependencies: mini-svg-data-uri: 1.4.4 diff --git a/src/app/components/[componentId]/page.tsx b/src/app/components/[componentId]/page.tsx new file mode 100644 index 00000000..3ffb6550 --- /dev/null +++ b/src/app/components/[componentId]/page.tsx @@ -0,0 +1,19 @@ +import { useParams } from "react-router-dom"; +import { StackComponentsDetailHeader } from "../../../components/stack-components/component-detail/Header"; +import { StackComponentTabs } from "@/components/stack-components/component-detail/Tabs"; +import { StackList } from "../../stacks/StackList"; + +export default function ComponentDetailPage() { + const { componentId } = useParams() as { componentId: string }; + + return ( +
{id.split("-")[0]}
+- We are working on the new Stack Components experience. -
-- Meanwhile you can use the CLI to manage your {snakeCaseToLowerCase(type)}. -
-{component.data.id}
+{component.data.body?.flavor}
+ + } + /> +{id}
+{component.data.name}
; +} + +function ComponentIcon({ componentId }: Props) { + const component = useComponent(componentId); + + if (component.isError) return null; + if (component.isPending) return{id.split("-")[0]}
+
+
{component.id.split("-")[0]}