Skip to content

Commit

Permalink
jup
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Jul 19, 2023
1 parent e4e2b51 commit 4b354f4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
20 changes: 10 additions & 10 deletions docs/registry/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@
import dynamic from 'next/dynamic';

export const registry = {
rightside: {
name: 'rightside',
demo: dynamic(() => import('@/content/components/aside/rightside.demo')),
file: 'content/components/aside/rightside.demo.tsx',
},
space: {
name: 'space',
demo: dynamic(() => import('@/content/components/aside/space.demo')),
file: 'content/components/aside/space.demo.tsx',
},
'basic-accordion': {
name: 'basic-accordion',
demo: dynamic(
Expand Down Expand Up @@ -49,4 +39,14 @@ export const registry = {
),
file: 'content/components/button/button-variant.demo.tsx',
},
rightside: {
name: 'rightside',
demo: dynamic(() => import('@/content/components/aside/rightside.demo')),
file: 'content/components/aside/rightside.demo.tsx',
},
space: {
name: 'space',
demo: dynamic(() => import('@/content/components/aside/space.demo')),
file: 'content/components/aside/space.demo.tsx',
},
} as const;
6 changes: 3 additions & 3 deletions docs/theme/components/Message.styles.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ThemeComponent, cva } from '@marigold/system';

export const Message: ThemeComponent<'Message'> = {
container: cva('not-prose relative w-full rounded-lg p-4 pl-11', {
container: cva('not-prose rounded-lg p-4', {
variants: {
variant: {
info: 'bg-bg-info text-text-info',
warning: 'bg-bg-warning text-text-warning',
},
},
}),
icon: cva('absolute left-3 top-3 block h-6 w-6'),
title: cva('mb-1 font-bold leading-none tracking-tight'),
icon: cva(''),
title: cva('font-bold tracking-tight'),
content: cva('text-sm [&_p]:leading-relaxed'),
};
10 changes: 7 additions & 3 deletions packages/components/src/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@ export const Message = ({
return (
<div
className={cn(
'grid auto-cols-auto auto-rows-min gap-1',
'grid auto-rows-min grid-cols-[min-content_auto] gap-1',
classNames.container
)}
{...props}
>
<div className={cn('col-span-1 h-6 w-6', classNames.icon)}>{icon}</div>
<div className={cn('col-start-2 row-start-1', classNames.title)}>
<div className={cn('col-span-1 h-6 w-6 self-center', classNames.icon)}>
{icon}
</div>
<div
className={cn('col-start-2 row-start-1 self-center', classNames.title)}
>
{messageTitle}
</div>
<div className={cn('col-start-2', classNames.content)}>{children}</div>
Expand Down

2 comments on commit 4b354f4

@vercel
Copy link

@vercel vercel bot commented on 4b354f4 Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marigold-storybook – ./

marigold-latest.vercel.app
marigold-storybook-git-main-marigold.vercel.app
marigold-storybook-marigold.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 4b354f4 Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marigold-docs – ./

marigold-docs.vercel.app
marigold-docs-marigold.vercel.app
marigold-docs-git-main-marigold.vercel.app

Please sign in to comment.