@diana-ui/types
Advanced tools
Comparing version 1.0.1 to 1.0.2
import React from "react"; | ||
import { WithStylesWrappedProps as AesWithStylesWrappedProps, WithThemeWrappedProps, WithThemeWrapperProps, WithStylesWrapperProps as AesWithStylesWrapperProps, WithStylesOptions as AesWithStylesOptions } from "aesthetic-react"; | ||
import { StyleSheet as AesStyleSheet, ThemeSheet as AesThemeSheet, StyleName as AesStyleName, StyleSheetNeverize as AesStyleSheetNeverize, StyleBlock as AesStyleBlock, Properties as AesProperties } from "aesthetic"; | ||
import { defaultPalette } from "@diana-ui/tokens"; | ||
import { defaultPalette, FontWeight, EBreakpoints } from "@diana-ui/tokens"; | ||
export { StyleSheetFactory as AesStyleSheetFactory, StyleBlock as AesStyleBlock, Properties as AesProperties } from "aesthetic"; | ||
export { FontWeight, EBreakpoints }; | ||
export declare type WithStylesWrappedProps<T = Theme, OwnStyles = {}> = Extract<AesWithStylesWrappedProps<T>, ICustomWithStylesWrappedProps> & ICustomWithStylesWrappedProps<OwnStyles>; | ||
@@ -41,8 +42,2 @@ export declare type WithStylesProps<T = Theme, OwnStyles = {}> = WithStylesWrappedProps<T, OwnStyles> & WithStylesWrapperProps; | ||
} | ||
export declare enum FontWeight { | ||
REGULAR = 400, | ||
MEDIUM = 500, | ||
BOLD = 700, | ||
BOLDER = 900 | ||
} | ||
interface IFont { | ||
@@ -122,2 +117,5 @@ fontSize: string | number; | ||
}; | ||
breakpoints: { | ||
[key: string]: number; | ||
}; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FontWeight = void 0; | ||
exports.EBreakpoints = exports.FontWeight = void 0; | ||
var tokens_1 = require("@diana-ui/tokens"); | ||
Object.defineProperty(exports, "FontWeight", { | ||
enumerable: true, | ||
get: function () { | ||
return tokens_1.FontWeight; | ||
} | ||
}); | ||
Object.defineProperty(exports, "EBreakpoints", { | ||
enumerable: true, | ||
get: function () { | ||
return tokens_1.EBreakpoints; | ||
} | ||
}); | ||
// #endregion | ||
// #region THEME | ||
var FontWeight; | ||
(function (FontWeight) { | ||
FontWeight[(FontWeight["REGULAR"] = 400)] = "REGULAR"; | ||
FontWeight[(FontWeight["MEDIUM"] = 500)] = "MEDIUM"; | ||
FontWeight[(FontWeight["BOLD"] = 700)] = "BOLD"; | ||
FontWeight[(FontWeight["BOLDER"] = 900)] = "BOLDER"; | ||
})((FontWeight = exports.FontWeight || (exports.FontWeight = {}))); | ||
// #endregion |
import React from "react"; | ||
import { WithStylesWrappedProps as AesWithStylesWrappedProps, WithThemeWrappedProps, WithThemeWrapperProps, WithStylesWrapperProps as AesWithStylesWrapperProps, WithStylesOptions as AesWithStylesOptions } from "aesthetic-react"; | ||
import { StyleSheet as AesStyleSheet, ThemeSheet as AesThemeSheet, StyleName as AesStyleName, StyleSheetNeverize as AesStyleSheetNeverize, StyleBlock as AesStyleBlock, Properties as AesProperties } from "aesthetic"; | ||
import { defaultPalette } from "@diana-ui/tokens"; | ||
import { defaultPalette, FontWeight, EBreakpoints } from "@diana-ui/tokens"; | ||
export { StyleSheetFactory as AesStyleSheetFactory, StyleBlock as AesStyleBlock, Properties as AesProperties } from "aesthetic"; | ||
export { FontWeight, EBreakpoints }; | ||
export declare type WithStylesWrappedProps<T = Theme, OwnStyles = {}> = Extract<AesWithStylesWrappedProps<T>, ICustomWithStylesWrappedProps> & ICustomWithStylesWrappedProps<OwnStyles>; | ||
@@ -41,8 +42,2 @@ export declare type WithStylesProps<T = Theme, OwnStyles = {}> = WithStylesWrappedProps<T, OwnStyles> & WithStylesWrapperProps; | ||
} | ||
export declare enum FontWeight { | ||
REGULAR = 400, | ||
MEDIUM = 500, | ||
BOLD = 700, | ||
BOLDER = 900 | ||
} | ||
interface IFont { | ||
@@ -122,2 +117,5 @@ fontSize: string | number; | ||
}; | ||
breakpoints: { | ||
[key: string]: number; | ||
}; | ||
}; |
@@ -0,10 +1,3 @@ | ||
import { FontWeight, EBreakpoints } from "@diana-ui/tokens"; | ||
export { FontWeight, EBreakpoints }; | ||
// #endregion | ||
// #region THEME | ||
export var FontWeight; | ||
(function (FontWeight) { | ||
FontWeight[(FontWeight["REGULAR"] = 400)] = "REGULAR"; | ||
FontWeight[(FontWeight["MEDIUM"] = 500)] = "MEDIUM"; | ||
FontWeight[(FontWeight["BOLD"] = 700)] = "BOLD"; | ||
FontWeight[(FontWeight["BOLDER"] = 900)] = "BOLDER"; | ||
})(FontWeight || (FontWeight = {})); | ||
// #endregion |
{ | ||
"name": "@diana-ui/types", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lib/types.js", | ||
@@ -23,3 +23,3 @@ "module": "module/types.js", | ||
"dependencies": { | ||
"@diana-ui/tokens": "^1.0.1", | ||
"@diana-ui/tokens": "^1.0.2", | ||
"aesthetic": "^5.1.0", | ||
@@ -45,3 +45,3 @@ "aesthetic-react": "^2.1.0" | ||
}, | ||
"gitHead": "55102fc0bd7e6001ebc7862fff1ec0edcf1192e6" | ||
"gitHead": "0bb47a78516a13543de86444510b77a135316a74" | ||
} |
10530
258
Updated@diana-ui/tokens@^1.0.2