New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@welcome-ui/core

Package Overview
Dependencies
Maintainers
12
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@welcome-ui/core - npm Package Compare versions

Comparing version 5.0.0-cd.1 to 5.0.0

dist/index.js

2

dist/types/theme/buttons.d.ts

@@ -11,4 +11,4 @@ import { CSSObject } from '@xstyled/styled-components';

'&:focus': ReturnType<ThemeFocus>;
}> & Record<'sizes', Record<Size, SizeAttributesButton>> & Record<'icon', Record<Icon, unknown>>;
}> & Record<'sizes', Record<Size, SizeAttributesButton>> & Record<'icon', Record<Icon, Record<Size, string>>>;
export declare const getButtons: (theme: WuiTheme) => ThemeButtons;
export {};
import { WuiTheme } from './types';
export declare const createTheme: (options?: Record<string, unknown>) => WuiTheme;
export type ThemeFontsUrl = 'https://cdn.welcome-ui.com/fonts' | 'https://cdn.welcometothejungle.com/fonts' | string;
export type Options = {
defaultFontFamily?: string;
defaultFontSize?: number;
defaultLetterSpacing?: string;
defaultLineHeight?: number;
fontsUrl?: ThemeFontsUrl;
headingFontFamily?: string;
iconFontFamily?: string;
[param: string]: unknown;
};
export declare const createTheme: (options?: Options) => WuiTheme;

@@ -1,14 +0,17 @@

type FontFaceExtension = 'woff' | 'woff2';
import { WuiTheme } from './types';
type FontFace = {
display?: FontDisplay;
isVariable?: boolean;
stretch?: string;
style?: string;
url: string;
weight?: string;
style?: 'italic';
display: 'swap' | 'block';
extensions: FontFaceExtension[];
extensions?: string[];
};
export type ThemeFontFaces = {
'welcome-font': FontFace[];
'welcome-icon-font-2': FontFace[];
'welcome-icon-font': FontFace[];
'work-sans': FontFace[];
};
export declare const fontFaces: ThemeFontFaces;
export declare const fontFaces: (theme: WuiTheme) => ThemeFontFaces;
export {};

@@ -7,3 +7,4 @@ import { CSSObject } from '@xstyled/styled-components';

active: CSSObject;
disabled: CSSObject;
}
export declare const getPaginations: (theme: WuiTheme) => ThemePaginations;

@@ -45,2 +45,3 @@ import { CSSObject, CSSScalar, ITheme as StyledComponentDefaultTheme, DefaultTheme as XStyledDefaultTheme } from '@xstyled/styled-components';

import { ThemeUnderline } from './underline';
import { ThemeFontsUrl } from './core';
type OverrideKeys = 'colors' | 'radii' | 'borderWidths' | 'fontSizes' | 'lineHeights' | 'fontWeights' | 'letterSpacings' | 'fonts' | 'sizes' | 'screens' | 'space' | 'shadows' | 'texts';

@@ -61,2 +62,3 @@ type XStyledTheme = Omit<XStyledDefaultTheme, OverrideKeys>;

fontFaces: ThemeFontFaces;
fontsUrl: ThemeFontsUrl;
fontSizes: ThemeFontSizes;

@@ -63,0 +65,0 @@ defaultLineHeight: number;

import { CSSObject } from '@xstyled/styled-components';
import { WuiTheme } from './types';
import { Options } from './core';
export type ThemeFontSizes = {

@@ -133,2 +134,2 @@ h0: string;

};
export declare const getFonts: (defaultFontFamily: string, headingFontFamily: string, iconFontFamily: string) => ThemeFonts;
export declare const getFonts: (defaultFontFamily: Options['defaultFontFamily'], headingFontFamily: Options['headingFontFamily'], iconFontFamily: Options['iconFontFamily']) => ThemeFonts;
{
"name": "@welcome-ui/core",
"version": "5.0.0-cd.1",
"version": "5.0.0",
"description": "welcome-ui: Core utils",
"main": "dist/core.cjs.js",
"module": "dist/core.es.js",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "rollup -c",
"watch": "rollup -c -w",
"build": "node ../../scripts/build.js",
"test": "jest",

@@ -24,3 +30,3 @@ "types": "rimraf dist/types && tsc --emitDeclarationOnly --declaration --declarationDir dist/types"

"react",
"reakit",
"ariakit",
"styled-components",

@@ -41,12 +47,12 @@ "styled-system",

"dependencies": {
"@welcome-ui/system": "^5.0.0-alpha.8",
"@welcome-ui/utils": "^5.0.0-alpha.8",
"ramda": "^0.28.0"
"@welcome-ui/system": "^5.0.0",
"@welcome-ui/utils": "^5.0.0",
"ramda": "^0.29.0"
},
"peerDependencies": {
"@xstyled/styled-components": "^3.7.0",
"react": "^16.10.2 || ^17.0.1 || ^18.0.0",
"styled-components": "^5.3.6"
"@xstyled/styled-components": "^3.7.3",
"react": "^18.0.0",
"styled-components": "^5.3.9"
},
"gitHead": "2a179b51f4d536067d0dde0b059bee2a90bf25e0",
"gitHead": "2db5387078accbf3a43e89baf17de19559edd0b3",
"sideEffects": false,

@@ -53,0 +59,0 @@ "component": "Core",

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