Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha 9 #29

Merged
merged 32 commits into from
Nov 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
34436a0
yet another overhaul
South-Paw Nov 4, 2020
53e24ba
fix and grid boxes for stories
South-Paw Nov 4, 2020
d7ff9b9
migrate stack component
South-Paw Nov 4, 2020
6183277
rename story files
South-Paw Nov 5, 2020
aaf2160
revert story renames
South-Paw Nov 5, 2020
ef2131f
bump storybook
South-Paw Nov 6, 2020
886b9ae
add changelog
South-Paw Nov 6, 2020
5bfa5c5
add portal component
South-Paw Nov 6, 2020
c382c40
add overlay component
South-Paw Nov 6, 2020
fc5e333
add modal component
South-Paw Nov 6, 2020
95b7676
add divider component
South-Paw Nov 6, 2020
d1be545
reduce styles in modal story
South-Paw Nov 6, 2020
82171f2
add drawer component
South-Paw Nov 6, 2020
c729e74
add menu components
South-Paw Nov 6, 2020
48a36a9
add popover component
South-Paw Nov 6, 2020
56dc4b9
update stories
South-Paw Nov 6, 2020
e6e1ce2
update .eslintrc
South-Paw Nov 7, 2020
8ffc2fb
align menu styles
South-Paw Nov 7, 2020
da4e93c
tidy up some types and fix error with index.tsx
South-Paw Nov 7, 2020
e494e20
add missing version descriptions to changelog
South-Paw Nov 7, 2020
4b5a0a4
add improved link component
South-Paw Nov 7, 2020
0d2992e
add improved input component
South-Paw Nov 7, 2020
971eb18
use global border color and disable user select in menus
South-Paw Nov 7, 2020
fcb7a31
update portal story
South-Paw Nov 7, 2020
fc2b751
fix unstyled input height
South-Paw Nov 7, 2020
7f84d7f
input to support height props
South-Paw Nov 7, 2020
e522922
add improved text area component
South-Paw Nov 7, 2020
7e32067
reduce textarea should forward props
South-Paw Nov 7, 2020
241a3a6
add improved select component
South-Paw Nov 7, 2020
17bdb2b
add improved avatar component
South-Paw Nov 7, 2020
bee7c87
tidy up types
South-Paw Nov 7, 2020
ec13382
update changelog
South-Paw Nov 7, 2020
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
23 changes: 4 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,13 @@
"project": "./tsconfig.json"
},
"rules": {
"import/named": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/no-cycle": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "never"
}
],
"import/prefer-default-export": "off",
"jsx-a11y/accessible-emoji": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"react/jsx-curly-newline": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/quotes": "off"
"react/jsx-props-no-spreading": "off"
},
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
stories: ['../src/**/*.stories.@(tsx|mdx)'],
addons: ['@storybook/addon-docs', '@storybook/addon-knobs', '@storybook/addon-actions'],
addons: ['@storybook/addon-essentials'],
};
16 changes: 14 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import { addDecorator } from '@storybook/react';
import React from 'react';
import { SpicyProvider } from '../src';
import { Box, injectGlobalStyles, ThemeProvider } from '../src';

addDecorator((storyFn) => <SpicyProvider>{storyFn()}</SpicyProvider>);
const { GlobalStyle } = injectGlobalStyles();

addDecorator((storyFn) => (
<ThemeProvider>
<GlobalStyle />
<Box p={4}>{storyFn()}</Box>
</ThemeProvider>
));

export const parameters = {
controls: { expanded: true },
layout: 'fullscreen',
};
134 changes: 134 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<!--

## 0.0.0-alpha.0 (DD Month, Year)

### Features

- todo

### Changes

- todo

### Bug Fixes

- todo

-->

## 0.0.1-alpha.9 (7 November, 2020)

### Features

- New Theme component
- Replaces the ThemeProvider.
- Replaces the CssReset component with a new `injectGlobalStyles` function which allows a user to restyle and extend their apps base CSS.

### Changes

- Removed the following components
- ColorModeProvider (see below)
- CssReset (moved into Theme)
- Field (see below)
- SpicyProvider
- ThemeProvider
- Removed color mode implementations from all components
- Our intention is to provide an alternate dark theme instead of a provider + hook.
- Removed Field component
- Determined through implementations that this provider is best implemented by the consumer as different form libraries (formik, react-form-hook) call for different implementations and usages.
- Default theme now uses Tailwind CSS colors
- Component styles have been adjusted to use new theme colors
- Added CHANGELOG.md

### Bug Fixes

- Fixed outline and ghost variants of the Button component not having transparent background colors
- Fixed issue with color prop on Text and Heading components
- Fixed height prop not being avaliable on Input, Select and TextArea components
- Fixed ref forwarding issue with Input, Select and TextArea components

## 0.0.1-alpha.8 (28 October, 2020)

### Bug Fixes

- Fix for menu background
- Fix menu in dark mode

## 0.0.1-alpha.7 (28 October, 2020)

### Features

- New Avatar component
- New Popover component
- New Menu component

### Changes

- Improvements to box shadows steps in theme
- Renamed Drawer and Modal props

### Bug Fixes

- Fix for headers receiving default browser margin/padding

## 0.0.1-alpha.6 (26 October, 2020)

### Changes

- Raise opacity on disabled elements
- Reduced x padding on inputs
- Black button consistency

### Bug Fixes

- Dependencies update and React 17 fix
- Possible iOS button appearance fix

## 0.0.1-alpha.5 (29 July, 2020)

### Changes

- Try to improve Link component again
- Change all component styles to be functions so they're used consistently when imported/extended

## 0.0.1-alpha.4 (29 July, 2020)

### Changes

- Removed device-width padding from noscroll class
- Improved types for Box component and Link
- Modified when variants for components are called
- Other component changes
- Fixed tests not running

## 0.0.1-alpha.3 (13 July, 2020)

### Changes

- Reworked theme system
- Aligned design choices with those found in [Tailwind CSS](https://tailwindcss.com/)
- Component styles are now found in `system.components` e.g. `system.components.Button` which allows for extending variants, colors, sizes etc.
- Updated storybook to 6.0 beta
- Various improvements all over the library

## 0.0.1-alpha.2 (22 June, 2020)

### Features

- New Portal component
- New Modal component
- New Drawer component

### Changes

- Various changes to component styles
- Split CssReset component out of the Theme component
- Implemented shouldForwardProp on styled components

### Fixes

- Various fixes to types, linting and component internals

## 0.0.1-alpha.1 (26 April, 2020)

- First publish of components
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spicy-ui/core",
"version": "0.0.1-alpha.8",
"version": "0.0.1-alpha.9",
"description": "A React component library to spice up your UI",
"keywords": [
"react",
Expand Down Expand Up @@ -68,10 +68,8 @@
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@storybook/addon-actions": "^6.0.27",
"@storybook/addon-docs": "^6.0.27",
"@storybook/addon-knobs": "^6.0.27",
"@storybook/react": "^6.0.27",
"@storybook/addon-essentials": "^6.1.0-beta.3",
"@storybook/react": "^6.1.0-beta.3",
"@types/jest": "^26.0.15",
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'styled-components';
import { theme } from '../../theme';

import { System } from '../../src/system';

type ThemeInterface = System;
type ThemeInterface = typeof theme;

declare module 'styled-components' {
export interface DefaultTheme extends ThemeInterface {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-shadow, @typescript-eslint/naming-convention */

declare module '@styled-system/should-forward-prop' {
// Fix: didn't support number type prop arg
type genericShouldForwardProp = (prop: string | number) => boolean;

export const props: string[];
Expand Down
31 changes: 0 additions & 31 deletions src/Avatar/Avatar.stories.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/Box/Box.stories.tsx

This file was deleted.

58 changes: 0 additions & 58 deletions src/Box/Box.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/Box/__test__/Box.spec.tsx

This file was deleted.

Loading