@kuma-ui/core
Advanced tools
Comparing version 0.4.2 to 0.5.0
export { styled } from './styled.js'; | ||
export { k } from './k.js'; | ||
export { css } from './css.js'; | ||
export { Box } from './components/Box/react.js'; | ||
import 'react'; | ||
import '@kuma-ui/system'; | ||
import './components/types.js'; |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -18,2 +20,10 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -24,2 +34,3 @@ | ||
__export(src_exports, { | ||
Box: () => Box, | ||
css: () => css, | ||
@@ -33,6 +44,5 @@ k: () => k, | ||
function styled(Component) { | ||
const fn = function(strings, ...interpolations) { | ||
const fn = (strings) => { | ||
throw Error('Using the "styled" tag in runtime is not supported.'); | ||
}; | ||
fn.__zeroStyled = true; | ||
return fn; | ||
@@ -55,4 +65,28 @@ } | ||
}; | ||
// src/components/Box/react.tsx | ||
var import_react = __toESM(require("react")); | ||
var Box = ({ | ||
as: Component = "div", | ||
children, | ||
...props | ||
}) => import_react.default.createElement(Component, props, children); | ||
// src/components/Flex/react.tsx | ||
var import_react2 = __toESM(require("react")); | ||
// src/components/Spacer/react.tsx | ||
var import_react3 = __toESM(require("react")); | ||
// src/components/Text/react.ts | ||
var import_react4 = __toESM(require("react")); | ||
// src/components/Button/react.ts | ||
var import_react5 = __toESM(require("react")); | ||
// src/components/Heading/react.tsx | ||
var import_react6 = __toESM(require("react")); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
Box, | ||
css, | ||
@@ -59,0 +93,0 @@ k, |
@@ -1,4 +0,2 @@ | ||
import * as react from 'react'; | ||
import { ComponentType } from 'react'; | ||
import { StyledProps, ResponsiveStyle, StyledKeyType, PseudoProps } from '@kuma-ui/system'; | ||
@@ -16,7 +14,4 @@ type StyledComponentProps<T> = T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : T extends ComponentType<infer P> ? P : never; | ||
*/ | ||
declare function styled<T extends keyof JSX.IntrinsicElements | ComponentType<any>>(Component: T): { | ||
<P = StyledProps>(strings: TemplateStringsArray, ...interpolations: ((props: P) => ResponsiveStyle)[]): react.FC<Omit<StyledComponentProps<T>, StyledKeyType> & P & Partial<PseudoProps>>; | ||
__zeroStyled: boolean; | ||
}; | ||
declare function styled<T extends keyof JSX.IntrinsicElements>(Component: T): (strings: TemplateStringsArray) => React.FC<React.ComponentProps<T>>; | ||
export { StyledComponentProps, styled }; |
@@ -27,6 +27,5 @@ "use strict"; | ||
function styled(Component) { | ||
const fn = function(strings, ...interpolations) { | ||
const fn = (strings) => { | ||
throw Error('Using the "styled" tag in runtime is not supported.'); | ||
}; | ||
fn.__zeroStyled = true; | ||
return fn; | ||
@@ -33,0 +32,0 @@ } |
{ | ||
"name": "@kuma-ui/core", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"description": "🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.", | ||
@@ -21,2 +21,14 @@ "repository": { | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./components/componentList": { | ||
"types": "./dist/components/componentList.d.ts", | ||
"require": "./dist/components/componentList.js", | ||
"import": "./dist/components/componentList.mjs" | ||
} | ||
}, | ||
"files": [ | ||
@@ -23,0 +35,0 @@ "dist" |
<div align="center"> | ||
:construction: :rotating_light: **BIG NEWS!** :rotating_light: :construction: | ||
We are taking Kuma UI to the next level. The ultimate CSS-in-JS solution is under development and we're aiming to drop the updates on **July 16th, 2023**. Until then, new releases will be paused. Stay tuned and get ready for the revolution 🐻❄️ | ||
<img src="https://raw.githubusercontent.com/poteboy/kuma-ui/main/media/logo.webp" alt="Kuma UI logo" width="300" /> | ||
@@ -3,0 +8,0 @@ </div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56082
76
1381
199
1