feat: color palette for calendar (#118)

* feat: work on the palette

* feat: palette basically done?

* fix: lint warnings and errors

* fix: minor fixes

* fix: color patch colors and shades

* fix: prettier issue

* chore: use TS satisfies

* chore: remove eslint-disable comment

---------

Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
This commit is contained in:
Abhinav Chadaga
2024-03-03 22:00:59 -06:00
committed by doprz
parent adbe8ac163
commit 471e55dcea
7 changed files with 702 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import type { Meta, StoryObj } from '@storybook/react';
import CourseCellColorPicker from '@views/components/common/CourseCellColorPicker/CourseCellColorPicker';
import React, { useState } from 'react';
import type { ThemeColor } from 'src/shared/util/themeColors';
const meta = {
title: 'Components/Common/CourseCellColorPicker',
component: CourseCellColorPicker,
} satisfies Meta<typeof CourseCellColorPicker>;
export default meta;
type Story = StoryObj<typeof CourseCellColorPicker>;
export const Default: Story = {
render: () => {
const [selectedColor, setSelectedColor] = useState<ThemeColor | null>(null);
return <CourseCellColorPicker setSelectedColor={setSelectedColor} />;
},
};