Skip to content

Commit 6772db6

Browse files
authored
Merge pull request #49 from spicy-ui/next
0.1.0-alpha.7
2 parents b18e4be + 192902f commit 6772db6

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
1717
-->
1818

19+
## 0.1.0-alpha.7 (9 June, 2021)
20+
21+
### Changes
22+
23+
- Changed `HTMLAttributes` prop interface to extend `React.HTMLAttributes` instead of `React.AllHTMLAttributes`
24+
1925
## 0.1.0-alpha.6 (8 June, 2021)
2026

2127
### Changes

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@spicy-ui/core",
3-
"version": "0.1.0-alpha.6",
3+
"version": "0.1.0-alpha.7",
44
"description": "A themable and extensible React UI library, ready to use out of the box",
55
"keywords": [
66
"react",

src/components/Flex/Flex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components';
33
import { allSystem, sxMixin } from '../../system';
44
import { BoxProps } from '../Box';
55

6-
export interface FlexProps extends Omit<BoxProps, 'wrap'>, ExtendedFlexboxProps {}
6+
export interface FlexProps extends BoxProps, ExtendedFlexboxProps {}
77

88
export const Flex = styled.div.withConfig<FlexProps>({ shouldForwardProp })(sxMixin, allSystem, extendedFlexbox);
99

src/components/Select/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export type SelectSizes = 'xs' | 'sm' | 'md' | 'lg';
8888

8989
export type SelectVariants = 'outlined' | 'filled' | 'underlined' | 'unstyled';
9090

91-
export interface SelectProps extends Omit<HTMLAttributes, 'onChange' | 'value'> {
91+
export interface SelectProps extends Omit<HTMLAttributes, 'onChange'> {
9292
searchValue?: string;
9393
onSearchChange?: (search: string) => void;
9494
items: SelectItem[];

src/components/Stack/Stack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function responsive(prop: any, mapper: (val: any) => any) {
3434
return null;
3535
}
3636

37-
export interface StackProps extends Omit<HTMLAttributes, 'wrap'>, ExtendedFlexboxProps, AsProp, ChildrenProp, SxProp {
37+
export interface StackProps extends HTMLAttributes, ExtendedFlexboxProps, AsProp, ChildrenProp, SxProp {
3838
/** Spacing between each stack element. */
3939
spacing?: SpaceProps['margin'];
4040
/** Set a custom divider element. */

src/components/Tag/Tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type TagSizes = 'sm' | 'md' | 'lg';
1010

1111
export type TagVariants = 'outline' | 'solid' | 'subtle';
1212

13-
export interface TagProps extends Omit<HTMLAttributes, 'label'>, AsProp, ChildrenProp, SxProp {
13+
export interface TagProps extends HTMLAttributes, AsProp, ChildrenProp, SxProp {
1414
/** Label shown within the tag. */
1515
label?: React.ReactNode;
1616
/** If `true`, the tag will be rounded. */

src/components/Tag/TagLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SxProp, useComponentStyles } from '../../system';
33
import { AsProp, ChildrenProp, HTMLAttributes } from '../../types';
44
import { Box } from '../Box';
55

6-
export interface TagLabelProps extends Omit<HTMLAttributes, 'label'>, AsProp, ChildrenProp, SxProp {
6+
export interface TagLabelProps extends HTMLAttributes, AsProp, ChildrenProp, SxProp {
77
label?: React.ReactNode;
88
}
99

src/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ export interface ChildrenProp {
88
children?: React.ReactNode;
99
}
1010

11-
export interface HTMLAttributes<T = HTMLElement>
12-
extends Omit<React.AllHTMLAttributes<T>, 'as' | 'height' | 'width' | 'size'> {}
11+
export interface HTMLAttributes<T = HTMLElement> extends React.HTMLAttributes<T> {}

0 commit comments

Comments
 (0)