Skip to content

Commit

Permalink
fix: update entry file
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Jul 5, 2022
1 parent e9499fb commit e56f027
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
24 changes: 0 additions & 24 deletions docs/label.stories.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"homepage": "https://github.com/wwsun/coral-system#readme",
"peerDependencies": {
"react": "16.x || 17.x",
"react": ">= 16.8.0",
"styled-components": "4.x || 5.x"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export * from './grid';
export * from './text';
export * from './link';
export * from './group';
export * from './label';
// export * from './label';
7 changes: 6 additions & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ export interface StyleProp {

export type StylePropConfig = Record<string, StyleProp | boolean>;

function createStyleFunction({ properties: propertiesProp, property, scale, getValue: getValueProp }: StyleProp) {
function createStyleFunction({
properties: propertiesProp,
property,
scale,
getValue: getValueProp,
}: StyleProp) {
const properties = propertiesProp || [property];
const getValue = getValueProp || getValueMap[scale] || getRawValue;
const sx = (value: any, prefix: string) => {
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './core';
export * from './coral';
export * from './theme';
export * from './components';
Expand Down

0 comments on commit e56f027

Please sign in to comment.