From e56f027fe1ffdc21c5830b54d6c177973134e070 Mon Sep 17 00:00:00 2001 From: wwsun Date: Tue, 5 Jul 2022 11:28:04 +0800 Subject: [PATCH] fix: update entry file --- docs/label.stories.tsx | 24 ------------------------ package.json | 2 +- src/components/index.ts | 2 +- src/core/core.ts | 7 ++++++- src/index.ts | 1 - 5 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 docs/label.stories.tsx diff --git a/docs/label.stories.tsx b/docs/label.stories.tsx deleted file mode 100644 index 8d73ce5..0000000 --- a/docs/label.stories.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import React from 'react'; -import { Group, Label } from 'coral-system'; - -export default { - title: 'components/Label', - component: Label, -}; - -export const Basic = () => ( - -); - -export const LabelList = () => ( - - - - -); diff --git a/package.json b/package.json index 115146e..562f20c 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/components/index.ts b/src/components/index.ts index 55ffaea..97b8cac 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -4,4 +4,4 @@ export * from './grid'; export * from './text'; export * from './link'; export * from './group'; -export * from './label'; +// export * from './label'; diff --git a/src/core/core.ts b/src/core/core.ts index 0f84e3a..7c99042 100644 --- a/src/core/core.ts +++ b/src/core/core.ts @@ -108,7 +108,12 @@ export interface StyleProp { export type StylePropConfig = Record; -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) => { diff --git a/src/index.ts b/src/index.ts index 293d75b..333f7af 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ -export * from './core'; export * from './coral'; export * from './theme'; export * from './components';