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

@equinor/fusion-web-theme

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-web-theme - npm Package Compare versions

Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4

dist/styles/spacing.spec.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.1.0-alpha.4](https://github.com/equinor/fusion-web/compare/@equinor/fusion-web-theme@0.1.0-alpha.3...@equinor/fusion-web-theme@0.1.0-alpha.4) (2021-03-18)
### Bug Fixes
* class name for spacing ([da7dff8](https://github.com/equinor/fusion-web/commit/da7dff8f02c16bfe10bc925677747ccd84133550))
# [0.1.0-alpha.3](https://github.com/equinor/fusion-web/compare/@equinor/fusion-web-theme@0.1.0-alpha.2...@equinor/fusion-web-theme@0.1.0-alpha.3) (2021-03-18)

@@ -8,0 +19,0 @@

2

dist/styles/elevation.d.ts

@@ -11,4 +11,4 @@ import { tokens } from '@equinor/eds-tokens';

}
export declare const elevation: Record<"none" | "overlay" | "sticky" | "raised" | "temporary_nav" | "above_scrim", ElevationStyleProperty>;
export declare const elevation: Record<"raised" | "none" | "overlay" | "sticky" | "temporary_nav" | "above_scrim", ElevationStyleProperty>;
export declare const elevationVariables: string[];
export default elevation;

@@ -11,3 +11,3 @@ export declare const styles: {

spacing: {
comfortable: Record<"small" | "xxx_large" | "xx_large" | "x_large" | "large" | "medium" | "medium_small" | "x_small" | "xx_small", import("./spacing").ColorStyleProperty>;
comfortable: Record<"small" | "xxx_large" | "xx_large" | "x_large" | "large" | "medium" | "medium_small" | "x_small" | "xx_small", import("./spacing").SpacingStyleProperty>;
};

@@ -14,0 +14,0 @@ typography: {

import { Properties } from 'csstype';
import StyleProperty from '../style-property';
export declare type SpacingStyleAttribute = 'padding';
export declare class ColorStyleProperty extends StyleProperty<string, SpacingStyleAttribute> {
export declare class SpacingStyleProperty extends StyleProperty<string, SpacingStyleAttribute> {
get attributes(): {

@@ -14,5 +14,5 @@ padding: {

export declare const spacing: {
comfortable: Record<"small" | "xxx_large" | "xx_large" | "x_large" | "large" | "medium" | "medium_small" | "x_small" | "xx_small", ColorStyleProperty>;
comfortable: Record<"small" | "xxx_large" | "xx_large" | "x_large" | "large" | "medium" | "medium_small" | "x_small" | "xx_small", SpacingStyleProperty>;
};
export declare const spacingVariables: string[];
export default spacing;
import { tokens } from '@equinor/eds-tokens';
import StyleProperty from '../style-property';
export class ColorStyleProperty extends StyleProperty {
export class SpacingStyleProperty extends StyleProperty {
get attributes() {

@@ -17,8 +17,8 @@ const { name, value } = this;

}
const createStyleProperty = (obj, name) => Object.keys(obj).reduce((cur, key) => Object.assign(cur, { [key]: new ColorStyleProperty(`${name}-${key}`, obj[key]) }), {});
const createStyleProperty = (obj, name) => Object.keys(obj).reduce((cur, key) => Object.assign(cur, { [key]: new SpacingStyleProperty(`${name}-${key}`, obj[key]) }), {});
export const spacing = {
comfortable: createStyleProperty(tokens.spacings.comfortable, 'comfortable'),
};
export const spacingVariables = Object.values(spacing).reduce((cur, value) => cur.concat(ColorStyleProperty.extractVariables(value)), []);
export const spacingVariables = Object.values(spacing).reduce((cur, value) => cur.concat(SpacingStyleProperty.extractVariables(value)), []);
export default spacing;
//# sourceMappingURL=spacing.js.map

@@ -20,4 +20,4 @@ import StyleProperty, { StyleAttribute } from '../style-property';

input: Record<"text" | "label" | "text_monospaced" | "helper", TypographyStyleProperty>;
navigation: Record<"button" | "label" | "menu_title" | "menu_tabs" | "drawer_active" | "drawer_inactive" | "breadcrumb" | "breadcrumb_hover", TypographyStyleProperty>;
paragraph: Record<"overline" | "caption" | "body_short_italic" | "meta" | "body_short" | "body_short_bold_italic" | "body_short_bold" | "body_short_link" | "ingress" | "body_long" | "body_long_link" | "body_long_italic" | "body_long_bold" | "body_long_bold_italic", TypographyStyleProperty>;
navigation: Record<"label" | "menu_title" | "menu_tabs" | "drawer_active" | "drawer_inactive" | "button" | "breadcrumb" | "breadcrumb_hover", TypographyStyleProperty>;
paragraph: Record<"body_short_italic" | "caption" | "meta" | "body_short" | "body_short_bold_italic" | "body_short_bold" | "body_short_link" | "overline" | "ingress" | "body_long" | "body_long_link" | "body_long_italic" | "body_long_bold" | "body_long_bold_italic", TypographyStyleProperty>;
table: Record<"cell_header" | "cell_text" | "cell_text_bold" | "cell_text_link" | "cell_numeric_monospaced", TypographyStyleProperty>;

@@ -24,0 +24,0 @@ ui: Record<"tooltip" | "snackbar" | "accordion_header" | "chip__badge" | "chart", TypographyStyleProperty>;

{
"name": "@equinor/fusion-web-theme",
"version": "0.1.0-alpha.3",
"version": "0.1.0-alpha.4",
"description": "fusion web theme",

@@ -44,3 +44,3 @@ "keywords": [

},
"gitHead": "f8939cbe0157e9784057484661710fe904d57481"
"gitHead": "d721cf240e6b29851c039ae1027c3e9fafc8ca57"
}

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