@open-tender/store 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/.DS_Store
CHANGED
|
Binary file
|
|
@@ -170,6 +170,7 @@ export interface TCFont {
|
|
|
170
170
|
fontSmoothing: string;
|
|
171
171
|
letterSpacing: string;
|
|
172
172
|
lineHeight: number | string;
|
|
173
|
+
lineHeights?: TCFontSizes;
|
|
173
174
|
textTransform: string;
|
|
174
175
|
url?: string;
|
|
175
176
|
weight: string;
|
|
@@ -196,6 +197,7 @@ export interface TCFonts {
|
|
|
196
197
|
body: TCFont;
|
|
197
198
|
headings: TCFont;
|
|
198
199
|
headline: TCFont;
|
|
200
|
+
lineHeights?: TCFontSizes;
|
|
199
201
|
preface: TCFont;
|
|
200
202
|
sizes: TCFontSizes;
|
|
201
203
|
}
|
|
@@ -85,12 +85,12 @@ var makeFont = function (font, sizes, ratio) {
|
|
|
85
85
|
};
|
|
86
86
|
var makeFonts = function (fonts, lineHeight, ratio) {
|
|
87
87
|
var sizes = fontSizesToPixels(fonts.sizes, ratio);
|
|
88
|
-
var lineHeights = makeLineHeights(sizes, lineHeight, ratio);
|
|
88
|
+
var lineHeights = makeLineHeights(fonts.sizes, lineHeight, ratio);
|
|
89
89
|
var headline = makeFont(fonts.headline, sizes, ratio);
|
|
90
90
|
var headings = makeFont(fonts.headings, sizes, ratio);
|
|
91
91
|
var body = makeFont(fonts.body, sizes, ratio);
|
|
92
92
|
var preface = makeFont(fonts.preface, sizes, ratio);
|
|
93
|
-
return
|
|
93
|
+
return { body: body, headings: headings, headline: headline, lineHeights: lineHeights, preface: preface, sizes: sizes };
|
|
94
94
|
};
|
|
95
95
|
var makeBorder = function (border, ratio) {
|
|
96
96
|
return tslib_1.__assign(tslib_1.__assign({}, border), { radius: (0, exports.remsToPixels)(border.radius, ratio), radiusSmall: (0, exports.remsToPixels)(border.radiusSmall, ratio), width: (0, exports.remsToPixels)(border.width, ratio), widthApp: (0, exports.remsToPixels)(border.widthApp, ratio) });
|
|
@@ -170,6 +170,7 @@ export interface TCFont {
|
|
|
170
170
|
fontSmoothing: string;
|
|
171
171
|
letterSpacing: string;
|
|
172
172
|
lineHeight: number | string;
|
|
173
|
+
lineHeights?: TCFontSizes;
|
|
173
174
|
textTransform: string;
|
|
174
175
|
url?: string;
|
|
175
176
|
weight: string;
|
|
@@ -196,6 +197,7 @@ export interface TCFonts {
|
|
|
196
197
|
body: TCFont;
|
|
197
198
|
headings: TCFont;
|
|
198
199
|
headline: TCFont;
|
|
200
|
+
lineHeights?: TCFontSizes;
|
|
199
201
|
preface: TCFont;
|
|
200
202
|
sizes: TCFontSizes;
|
|
201
203
|
}
|
|
@@ -80,12 +80,12 @@ var makeFont = function (font, sizes, ratio) {
|
|
|
80
80
|
};
|
|
81
81
|
var makeFonts = function (fonts, lineHeight, ratio) {
|
|
82
82
|
var sizes = fontSizesToPixels(fonts.sizes, ratio);
|
|
83
|
-
var lineHeights = makeLineHeights(sizes, lineHeight, ratio);
|
|
83
|
+
var lineHeights = makeLineHeights(fonts.sizes, lineHeight, ratio);
|
|
84
84
|
var headline = makeFont(fonts.headline, sizes, ratio);
|
|
85
85
|
var headings = makeFont(fonts.headings, sizes, ratio);
|
|
86
86
|
var body = makeFont(fonts.body, sizes, ratio);
|
|
87
87
|
var preface = makeFont(fonts.preface, sizes, ratio);
|
|
88
|
-
return
|
|
88
|
+
return { body: body, headings: headings, headline: headline, lineHeights: lineHeights, preface: preface, sizes: sizes };
|
|
89
89
|
};
|
|
90
90
|
var makeBorder = function (border, ratio) {
|
|
91
91
|
return __assign(__assign({}, border), { radius: remsToPixels(border.radius, ratio), radiusSmall: remsToPixels(border.radiusSmall, ratio), width: remsToPixels(border.width, ratio), widthApp: remsToPixels(border.widthApp, ratio) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|