Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/design-system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ With that out of the way, there are several parts of this design system that nee
- `registry/charts.ts`: chart components
- `registry/fragments.ts`: fragment components

You may need to rebuild the design system’s registry. You can do that via:
You will probably need to rebuild the design system’s registry after making new additions. You can do that via:

```bash
cd apps/design-system
Expand Down
162 changes: 158 additions & 4 deletions apps/design-system/__registry__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,39 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: []
},
"PageContainer": {
name: "PageContainer",
type: "components:fragment",
registryDependencies: undefined,
component: React.lazy(() => import("@/../../packages/ui-patterns/src/PageContainer")),
source: "",
files: ["registry/default//PageContainer/index.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"PageHeader": {
name: "PageHeader",
type: "components:fragment",
registryDependencies: undefined,
component: React.lazy(() => import("@/../../packages/ui-patterns/src/PageHeader")),
source: "",
files: ["registry/default//PageHeader/index.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"PageSection": {
name: "PageSection",
type: "components:fragment",
registryDependencies: undefined,
component: React.lazy(() => import("@/../../packages/ui-patterns/src/PageSection")),
source: "",
files: ["registry/default//PageSection/index.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"accordion-demo": {
name: "accordion-demo",
type: "components:example",
Expand Down Expand Up @@ -1886,6 +1919,105 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: []
},
"page-container-demo": {
name: "page-container-demo",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-container-demo")),
source: "",
files: ["registry/default/example/page-container-demo.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-layout-detail": {
name: "page-layout-detail",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-layout-detail")),
source: "",
files: ["registry/default/example/page-layout-detail.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-layout-list": {
name: "page-layout-list",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-layout-list")),
source: "",
files: ["registry/default/example/page-layout-list.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-layout-list-simple": {
name: "page-layout-list-simple",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-layout-list-simple")),
source: "",
files: ["registry/default/example/page-layout-list-simple.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-layout-settings": {
name: "page-layout-settings",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-layout-settings")),
source: "",
files: ["registry/default/example/page-layout-settings.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-header-demo": {
name: "page-header-demo",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-header-demo")),
source: "",
files: ["registry/default/example/page-header-demo.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-section-demo": {
name: "page-section-demo",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-section-demo")),
source: "",
files: ["registry/default/example/page-section-demo.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-section-horizontal": {
name: "page-section-horizontal",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-section-horizontal")),
source: "",
files: ["registry/default/example/page-section-horizontal.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"page-section-with-aside": {
name: "page-section-with-aside",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/page-section-with-aside")),
source: "",
files: ["registry/default/example/page-section-with-aside.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"inner-side-menu-demo": {
name: "inner-side-menu-demo",
type: "components:example",
Expand Down Expand Up @@ -2315,13 +2447,35 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: []
},
"empty-state-initial-state": {
name: "empty-state-initial-state",
"empty-state-initial-state-presentational": {
name: "empty-state-initial-state-presentational",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/empty-state-initial-state-presentational")),
source: "",
files: ["registry/default/example/empty-state-initial-state-presentational.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"empty-state-initial-state-informational": {
name: "empty-state-initial-state-informational",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/empty-state-initial-state-informational")),
source: "",
files: ["registry/default/example/empty-state-initial-state-informational.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
},
"empty-state-zero-items-data-grid": {
name: "empty-state-zero-items-data-grid",
type: "components:example",
registryDependencies: undefined,
component: React.lazy(() => import("@/registry/default/example/empty-state-initial-state")),
component: React.lazy(() => import("@/registry/default/example/empty-state-zero-items-data-grid")),
source: "",
files: ["registry/default/example/empty-state-initial-state.tsx"],
files: ["registry/default/example/empty-state-zero-items-data-grid.tsx"],
category: "undefined",
subcategory: "undefined",
chunks: []
Expand Down
1 change: 1 addition & 0 deletions apps/design-system/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import '@/styles/globals.css'
import '../../studio/styles/typography.scss'
import type { Metadata } from 'next'
import { ThemeProvider } from './Providers'
import { SonnerToaster } from './SonnerToast'
Expand Down
4 changes: 2 additions & 2 deletions apps/design-system/components/component-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ export function ComponentPreview({
)
}, [Preview, align])

const wideClasses = wide ? '2xl:-ml-12 2xl:-mr-12' : ''
const wideClasses = wide ? '2xl:-ml-20 2xl:-mr-20' : ''

if (peekCode) {
return (
<div className={cn('mt-4 mb-12', wideClasses)}>
<div className={cn('@container mt-4 mb-12', wideClasses)}>
<div
className={cn(
'relative rounded-tl-md rounded-tr-md border-t border-l border-r bg-studio'
Expand Down
30 changes: 20 additions & 10 deletions apps/design-system/config/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ export const docsConfig: DocsConfig = {
href: '/docs/icons',
items: [],
},
{
title: 'Figma',
href: '/docs/figma',
items: [],
},
{
title: 'Changelog',
href: '/docs/changelog',
items: [],
},
],
},
{
Expand All @@ -55,6 +45,11 @@ export const docsConfig: DocsConfig = {
href: '/docs/ui-patterns/navigation',
items: [],
},
{
title: 'Layout',
href: '/docs/ui-patterns/layout',
items: [],
},
{
title: 'Empty States',
href: '/docs/ui-patterns/empty-states',
Expand Down Expand Up @@ -85,6 +80,21 @@ export const docsConfig: DocsConfig = {
href: '/docs/fragments/modal',
items: [],
},
{
title: 'Page Container',
href: '/docs/fragments/page-container',
items: [],
},
{
title: 'Page Header',
href: '/docs/fragments/page-header',
items: [],
},
{
title: 'Page Section',
href: '/docs/fragments/page-section',
items: [],
},
{
title: 'Text Confirm Dialog',
href: '/docs/fragments/text-confirm-dialog',
Expand Down
84 changes: 0 additions & 84 deletions apps/design-system/content/docs/changelog.mdx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/design-system/content/docs/figma.mdx

This file was deleted.

Loading
Loading