diff --git a/package.json b/package.json index 7e815be..f4d6367 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coral-system", - "version": "0.5.1", + "version": "0.5.2", "description": "a lightweight style system with react ui primitives", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", diff --git a/src/coral.ts b/src/coral.ts index e1dcd84..b43d3c4 100644 --- a/src/coral.ts +++ b/src/coral.ts @@ -1,7 +1,6 @@ import styled from 'styled-components'; import { shouldForwardProp, cssProps, allStyledProps } from './core'; import type { CoralProps, As, CoralComponent } from './types'; -import { DEFAULT_PREFIX } from './helpers'; interface CoralOption
{ /** @@ -21,14 +20,11 @@ interface CoralOption
{
}
export function coral ) {
- const prefix = options?.prefix || DEFAULT_PREFIX;
const attrs = typeof options?.attrs === 'function' ? options?.attrs : () => options?.attrs;
- console.log(attrs);
const shouldForward = options?.shouldForwardProp || shouldForwardProp;
-
return styled(component as React.ComponentType