Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mygodcorp/baseui

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mygodcorp/baseui - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

src/commons.ts

0

lib/commons.d.ts

@@ -0,0 +0,0 @@ import { ColorProps, DisplayProps, SpaceProps, TypographyProps } from "styled-system";

4

lib/components/button/Button.d.ts

@@ -12,6 +12,6 @@ /// <reference types="react" />

as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
size?: "large" | "small" | "medium" | undefined;
kind?: "primary" | "secondary" | "outline" | undefined;
size?: "large" | "medium" | "small" | undefined;
kind?: "outline" | "primary" | "secondary" | undefined;
} & FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
export declare type ButtonProps = ComponentProps<typeof Button>;
export default Button;

@@ -9,3 +9,3 @@ /// <reference types="react" />

size?: "large" | "medium" | "small" | undefined;
kind?: "primary" | "secondary" | "outline" | undefined;
kind?: "outline" | "primary" | "secondary" | undefined;
} & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;

@@ -12,0 +12,0 @@ title: string;

/// <reference types="react" />
import { SystemCommonProps, SystemTypoProps } from "commons";
import { ComponentProps } from "@utils/types";
export declare type TText = {
as?: React.ElementType;
size?: Number;
} & SystemCommonProps & SystemTypoProps;
declare const Text: import("@emotion/styled").StyledComponent<{
theme?: import("@emotion/react").Theme | undefined;
as?: import("react").ElementType<any> | undefined;
} & {
as?: import("react").ElementType<any> | undefined;
size?: Number | undefined;
} & SystemCommonProps & SystemTypoProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
export declare type TextProps = ComponentProps<typeof Text>;
export default Text;

@@ -6,2 +6,5 @@ /// <reference types="react" />

as?: import("react").ElementType<any> | undefined;
} & {
as?: import("react").ElementType<any> | undefined;
size?: Number | undefined;
} & import("../../commons").SystemCommonProps & import("../../commons").SystemTypoProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;

@@ -8,0 +11,0 @@ title: string;

@@ -1,4 +0,2 @@

export { Text } from "./components/text";
export type { TextProps } from "./components/text";
export { Button } from "./components/button";
export type { ButtonProps } from "./components/button";
export { default as Text } from "./components/text/Text";
export { default as Button } from "./components/button/Button";
import styled from '@emotion/styled';
import { compose, space, color, display, typography, layout, flexbox, border, background, position, grid, shadow, buttonStyle, textStyle, colorStyle, fontSize, variant } from 'styled-system';
import { compose, space, typography, color, layout, flexbox, border, background, position, grid, shadow, buttonStyle, textStyle, colorStyle, display, fontSize, variant } from 'styled-system';
import { css } from '@emotion/react';
var common = compose(space, color, display);
var typo = compose(typography);
function memoize$1(fn) {

@@ -46,2 +43,5 @@ var cache = Object.create(null);

var common = compose(space, color, display);
var typo = compose(typography);
var Text = styled("span", { shouldForwardProp: shouldForwardProp$1 })(common, typo);

@@ -48,0 +48,0 @@

@@ -13,5 +13,2 @@ 'use strict';

var common = styledSystem.compose(styledSystem.space, styledSystem.color, styledSystem.display);
var typo = styledSystem.compose(styledSystem.typography);
function memoize$1(fn) {

@@ -55,2 +52,5 @@ var cache = Object.create(null);

var common = styledSystem.compose(styledSystem.space, styledSystem.color, styledSystem.display);
var typo = styledSystem.compose(styledSystem.typography);
var Text = styled__default["default"]("span", { shouldForwardProp: shouldForwardProp$1 })(common, typo);

@@ -57,0 +57,0 @@

import React from "react";
export declare type ComponentProps<T> = T extends React.ComponentType<infer Props> ? Props extends object ? Props : never : never;
export * from "./ComponentProps";
{
"name": "@mygodcorp/baseui",
"version": "1.0.8",
"version": "1.0.9",
"main": "lib/index.js",

@@ -8,3 +8,4 @@ "module": "lib/index.esm.js",

"files": [
"/lib"
"src",
"lib"
],

@@ -24,3 +25,3 @@ "publishConfig": {

"prepack": "yarn build",
"build": "rollup -c",
"build": "rm -rf lib && rollup -c",
"watch": "rollup -cw"

@@ -31,2 +32,3 @@ },

"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-typescript": "^8.3.0",
"@types/styled-system": "^5.1.13",

@@ -36,6 +38,5 @@ "@types/styled-system__should-forward-prop": "^5.1.2",

"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.4.4"
},
"gitHead": "4aad3fa48b115d6338fde552cec8b6c85eb5c5eb",
"gitHead": "7b18943fbf954969b076a8504ba392fdc3aa0673",
"dependencies": {

@@ -42,0 +43,0 @@ "@emotion/react": "latest",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc