@welcome-ui/core
Advanced tools
Comparing version 5.0.0-cd.1 to 5.0.0
@@ -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", |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5299
0
0
138920
58
1
+ Addedramda@0.29.1(transitive)
- Removedramda@0.28.0(transitive)
Updated@welcome-ui/system@^5.0.0
Updated@welcome-ui/utils@^5.0.0
Updatedramda@^0.29.0