feat: move away from carbon components and TinyMCE (#597)
* feat: remove tinymce & replace org sidebar * chore: PR Fixes * chore: move ui font into src dir * remove files in vite config * use google font import for loading font * remove custom font * more fonts update * remove font bold * more removals of font bold * fix import * checkpoint * chore: checkpoint (add course & lms shadcn sidebar) * minor css improvements and try out font sans * chore: replace carbon components with shadcn's * chore: replace carbon components with shadcn _ v3 * chore: ui fixes & storybook update * feat: UI cleanup * fix: quick ui fixes * chore: update pnpm-lock.yaml with new dependencies and versions; fix output.css formatting * chore: add isloading to button * feat: add loading state to button stories * chore: feedback fixes * fix: feedback fixes * chore: remove console * fix: PR comments * fix: PR comments --------- Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
co-authored by
Rotimi Best
parent
2145782385
commit
cbf6ae7e63
@@ -0,0 +1,4 @@
|
||||
import { type ComponentProps } from 'svelte';
|
||||
import { Separator } from '@cio/ui/base/separator';
|
||||
|
||||
export const FIELDS: (keyof ComponentProps<typeof Separator>)[] = ['orientation', 'decorative'];
|
||||
@@ -0,0 +1,51 @@
|
||||
<script module>
|
||||
import { defineMeta } from '@storybook/addon-svelte-csf';
|
||||
import { Separator } from '@cio/ui/base/separator';
|
||||
import { FIELDS } from './fields';
|
||||
|
||||
const { Story } = defineMeta({
|
||||
title: 'Atom/Separator',
|
||||
component: Separator,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
controls: {
|
||||
include: FIELDS
|
||||
}
|
||||
},
|
||||
tags: ['autodocs']
|
||||
});
|
||||
</script>
|
||||
|
||||
<Story name="Horizontal">
|
||||
{#snippet template()}
|
||||
<div class="w-96 space-y-4">
|
||||
<div>
|
||||
<h4 class="text-sm font-medium">Section 1</h4>
|
||||
<p class="text-muted-foreground text-sm">Content for the first section</p>
|
||||
</div>
|
||||
<Separator />
|
||||
<div>
|
||||
<h4 class="text-sm font-medium">Section 2</h4>
|
||||
<p class="text-muted-foreground text-sm">Content for the second section</p>
|
||||
</div>
|
||||
</div>
|
||||
{/snippet}
|
||||
</Story>
|
||||
|
||||
<Story name="Vertical">
|
||||
{#snippet template()}
|
||||
<div class="flex h-20 items-center space-x-4">
|
||||
<div class="space-y-1">
|
||||
<h4 class="text-sm font-medium">Item 1</h4>
|
||||
</div>
|
||||
<Separator orientation="vertical" />
|
||||
<div class="space-y-1">
|
||||
<h4 class="text-sm font-medium">Item 2</h4>
|
||||
</div>
|
||||
<Separator orientation="vertical" />
|
||||
<div class="space-y-1">
|
||||
<h4 class="text-sm font-medium">Item 3</h4>
|
||||
</div>
|
||||
</div>
|
||||
{/snippet}
|
||||
</Story>
|
||||
Reference in New Issue
Block a user