UNPKG

@spicy-ui/core

Version:

A themable and extensible React UI library, ready to use out of the box

322 lines (204 loc) 7.99 kB
<!-- ## 0.0.0-alpha.0 (DD Month, Year) ### Features - todo ### Changes - todo ### Bug Fixes - todo --> ## 0.1.0-alpha.9 (14 August, 2021) ### Changes - Changed default tooltip placement to `bottom` ### Bug Fixes - Fixed disabled Switch still being clickable ## 0.1.0-alpha.8 (6 July, 2021) ### Bug Fixes - Fixed Tab appearance on iOS when rendered as anchors/links - Fixed Input appearance on iOS ## 0.1.0-alpha.7 (9 June, 2021) ### Changes - Changed `HTMLAttributes` prop interface to extend `React.HTMLAttributes` instead of `React.AllHTMLAttributes` ## 0.1.0-alpha.6 (8 June, 2021) ### Changes - Added `HTMLAttributes` props interface to components - Added `inherit` variant to Text and Heading - Added `openOnHover` prop to Menu component - Exposed internal Menu disclosure state functions ([#47](https://github.com/spicy-ui/core/issues/47)) ### Bug Fixes - Fixed missing `noscroll` class ([#46](https://github.com/spicy-ui/core/issues/46)) ## 0.1.0-alpha.5 (28 February, 2021) ### Features - Added `useDisclosure` hook ### Changes - Added `autoFocus` prop to Select component ([#44](https://github.com/spicy-ui/core/issues/44)) - Made some child elements within the Select component unselectable - Removed `setIsOpen` prop from `usePopper` - Added `onClose` prop to `usePopper` - Removed `isOpen`, `onOpen`, `onClose` and `onToggle` from `usePopper` return - Implemented `useDisclosure` hook to Menu component - Implemented `useDisclosure` hook to Tooltip component - Adjusted Menu transition time ### Bug Fixes - Fixed Heading component (was `p`, should have been `h2`) ## 0.1.0-alpha.4 (21 February, 2021) ### Features - Added `Tab` component ### Changes - Mixins on Flex, Grid, Header and Text have been aligned with the Box's behaviour, style props will overide the `sx` prop - `getComponentStyles` renamed to `componentStylesMixin` - `SxProps` renamed to `SxProp` - Menus and Tooltips are now rendered inside Portals - More components now have the `as` prop on their interfaces ([#38](https://github.com/spicy-ui/core/issues/38)) - Added `color` types to Radio and Switch components ### Bug Fixes - Fixed Menu in Stack having margin applied ([#39](https://github.com/spicy-ui/core/issues/39)) - Fixed Tags `label` prop - Fixed outline style on open Menus - Fixed Stack not using `flexDir` and `flexDirection` ([#40](https://github.com/spicy-ui/core/issues/40)) - Fixed Avatar images overflowing when a variant is set - Fixed Badge line height issues ## 0.1.0-alpha.3 (16 February, 2021) ### Features - Added `Skeleton` component ### Changes - Switched order of box mixins - Added `getComponentStyles` and `useComponentStyles` to exports ## 0.1.0-alpha.2 (12 February, 2021) ### Features - Added `ModalCloseButton`, `ModalHeader`, `ModalBody` and `ModalFooter` components - Added `Container` component - Added `Image` component - Added `Badge` component - Added `Code` component - Added `Kbd` component - Added `Tag` component ### Changes - Added color types for `Alert`, `Button`, `Checkbox`, `Link` - Adjusted Alert text color - Added export for theme color scales - Updated and added additional prop documentation - Moved icon button base style into theme - The close button's icon can now be overridden - Button line-height changed from `1` to `1.2` ### Bug Fixes - Fixed modal positioning - Fixed typos in types ## 0.1.0-alpha.1 (8 February, 2021) ### Features - Added AvatarGroup component - Added CloseButton component - Added IconButton component - Added Tooltip component - New `sx` prop for overriding component styles, prop has been added to most components ### Changes - Major rework of most components, interfaces may have changed significantly between versions - Moved to using new `@spicy-ui/styled-system` internally ## 0.0.1-alpha.14 (17 January, 2021) ### Changes - Renamed Select prop `renderMenuItemLabel` to `renderItem` ### Bug Fixes - Fixed select inner button submitting wrapping form components ## 0.0.1-alpha.13 (17 January, 2021) ### Changes - Breaking: replaced Select component with new Downshift based select component ## 0.0.1-alpha.12 (13 January, 2021) ### Changes - Migrated project to npm - Fixed GitHub release script, package should publish correctly on release creation now ### Bug Fixes - Minor change to toast internals to fix type error ## 0.0.1-alpha.11 (16 November, 2020) - Republish package to npm ## 0.0.1-alpha.10 (12 November, 2020) ### Features - New Checkbox component - New Radio component - New Switch component - New Toast component - New Progress component ### Changes - Changed props of popover so that it's all 'opt in' - Added transition to popover inner - Added `0.5` size to theme - Added blackAlpha and whiteAlpha button colors to button story - Changed unstyled button styles ### Bug Fixes - Fixed issue with popover component rendering out of view ## 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 consumer to restyle and extend their app's 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