feat(ui): ux improvements & redesign

This is a squash merge of a bajillion messy small commits created while iterating on the UI component library and redesign.
This commit is contained in:
psychedelicious
2023-12-29 00:03:21 +11:00
committed by Kent Keirsey
parent a47d91f0e7
commit f0b102d830
889 changed files with 16645 additions and 15595 deletions

View File

@@ -0,0 +1,21 @@
import type { Meta, StoryObj } from '@storybook/react';
import type { InvTextProps } from './types';
import { InvText } from './wrapper';
const meta: Meta<typeof InvText> = {
title: 'Primitives/InvText',
tags: ['autodocs'],
component: InvText,
};
export default meta;
type Story = StoryObj<typeof InvText>;
const Component = (props: InvTextProps) => {
return <InvText {...props}>Banana sushi is delectable!</InvText>;
};
export const Default: Story = {
render: Component,
};

View File

@@ -0,0 +1,21 @@
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
const baseStyle = defineStyle(() => ({
fontSize: 'sm',
}));
const error = defineStyle(() => ({
color: 'error.400',
}));
const subtext = defineStyle(() => ({
color: 'base.400',
}));
export const textTheme = defineStyleConfig({
baseStyle,
variants: {
subtext,
error,
},
});

View File

@@ -0,0 +1,3 @@
import type { TextProps as ChakraTextProps } from '@chakra-ui/react';
export type InvTextProps = ChakraTextProps;

View File

@@ -0,0 +1 @@
export { Text as InvText } from '@chakra-ui/react';