@dfds-ui/typography 2.2.0-alpha.eae7bbcd → 2.2.0-alpha.f4b478d6
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/Text.d.ts +1 -1
- package/Text.js +13 -6
- package/Typography.js +10 -5
- package/cjs/Text.d.ts +1 -1
- package/cjs/Text.js +7 -7
- package/cjs/Typography.js +8 -7
- package/cjs/styles.d.ts +16 -16
- package/cjs/styles.js +2 -4
- package/package.json +3 -3
- package/styles.d.ts +16 -16
package/Text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { typography } from './styles';
|
|
3
|
-
|
|
3
|
+
type StyledAs = keyof typeof typography;
|
|
4
4
|
declare const Text: FunctionComponent<{
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
styledAs?: StyledAs;
|
package/Text.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["as", "children", "styledAs"];
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
10
|
import React from 'react';
|
|
6
11
|
import { typography } from './styles';
|
|
7
|
-
import { jsx as
|
|
12
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
8
13
|
var Text = function Text(_ref) {
|
|
9
14
|
var _ref$as = _ref.as,
|
|
10
15
|
as = _ref$as === void 0 ? 'p' : _ref$as,
|
|
@@ -13,8 +18,10 @@ var Text = function Text(_ref) {
|
|
|
13
18
|
styledAs = _ref$styledAs === void 0 ? 'body' : _ref$styledAs,
|
|
14
19
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
20
|
var Tag = as;
|
|
16
|
-
return
|
|
21
|
+
return _jsx(Tag, _objectSpread(_objectSpread({
|
|
17
22
|
css: typography[styledAs]
|
|
18
|
-
}, rest),
|
|
23
|
+
}, rest), {}, {
|
|
24
|
+
children: children
|
|
25
|
+
}));
|
|
19
26
|
};
|
|
20
27
|
export default Text;
|
package/Typography.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["className", "as"];
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
10
|
import React from 'react';
|
|
6
11
|
|
|
7
12
|
// TODO: The idea of this components is to wrap markup intended for readability. Like margins on paragraphs etc
|
|
8
|
-
import { jsx as
|
|
13
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
9
14
|
export var Typography = function Typography(_ref) {
|
|
10
15
|
var className = _ref.className,
|
|
11
16
|
_ref$as = _ref.as,
|
|
12
17
|
as = _ref$as === void 0 ? 'div' : _ref$as,
|
|
13
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
19
|
var Component = as;
|
|
15
|
-
return
|
|
20
|
+
return _jsx(Component, _objectSpread({
|
|
16
21
|
className: className
|
|
17
22
|
}, rest));
|
|
18
23
|
};
|
package/cjs/Text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { typography } from './styles';
|
|
3
|
-
|
|
3
|
+
type StyledAs = keyof typeof typography;
|
|
4
4
|
declare const Text: FunctionComponent<{
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
styledAs?: StyledAs;
|
package/cjs/Text.js
CHANGED
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styles = require("./styles");
|
|
9
|
-
var
|
|
9
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
11
|
const Text = ({
|
|
13
12
|
as = 'p',
|
|
14
13
|
children,
|
|
@@ -16,9 +15,10 @@ const Text = ({
|
|
|
16
15
|
...rest
|
|
17
16
|
}) => {
|
|
18
17
|
const Tag = as;
|
|
19
|
-
return (0,
|
|
20
|
-
css: _styles.typography[styledAs]
|
|
21
|
-
|
|
18
|
+
return (0, _jsxRuntime.jsx)(Tag, {
|
|
19
|
+
css: _styles.typography[styledAs],
|
|
20
|
+
...rest,
|
|
21
|
+
children: children
|
|
22
|
+
});
|
|
22
23
|
};
|
|
23
|
-
var _default = Text;
|
|
24
|
-
exports.default = _default;
|
|
24
|
+
var _default = exports.default = Text;
|
package/cjs/Typography.js
CHANGED
|
@@ -5,19 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Typography = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
10
|
+
// TODO: The idea of this components is to wrap markup intended for readability. Like margins on paragraphs etc
|
|
11
|
+
|
|
11
12
|
const Typography = ({
|
|
12
13
|
className,
|
|
13
14
|
as = 'div',
|
|
14
15
|
...rest
|
|
15
16
|
}) => {
|
|
16
17
|
const Component = as;
|
|
17
|
-
return (0,
|
|
18
|
-
className: className
|
|
19
|
-
|
|
18
|
+
return (0, _jsxRuntime.jsx)(Component, {
|
|
19
|
+
className: className,
|
|
20
|
+
...rest
|
|
21
|
+
});
|
|
20
22
|
};
|
|
21
23
|
exports.Typography = Typography;
|
|
22
|
-
var _default = Typography;
|
|
23
|
-
exports.default = _default;
|
|
24
|
+
var _default = exports.default = Typography;
|
package/cjs/styles.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const typography: {
|
|
2
|
-
heroHeadline: import("@emotion/
|
|
3
|
-
sectionHeadline: import("@emotion/
|
|
4
|
-
subHeadline: import("@emotion/
|
|
5
|
-
smallHeadline: import("@emotion/
|
|
6
|
-
body: import("@emotion/
|
|
7
|
-
bodyBold: import("@emotion/
|
|
8
|
-
bodyInterface: import("@emotion/
|
|
9
|
-
bodyInterfaceBold: import("@emotion/
|
|
10
|
-
bodyInterfaceSmall: import("@emotion/
|
|
11
|
-
bodyInterfaceSmallBold: import("@emotion/
|
|
12
|
-
label: import("@emotion/
|
|
13
|
-
labelBold: import("@emotion/
|
|
14
|
-
labelSmall: import("@emotion/
|
|
15
|
-
action: import("@emotion/
|
|
16
|
-
actionBold: import("@emotion/
|
|
17
|
-
caption: import("@emotion/
|
|
2
|
+
heroHeadline: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
sectionHeadline: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
subHeadline: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
smallHeadline: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
body: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
bodyBold: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
bodyInterface: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
bodyInterfaceBold: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
bodyInterfaceSmall: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
bodyInterfaceSmallBold: import("@emotion/utils").SerializedStyles;
|
|
12
|
+
label: import("@emotion/utils").SerializedStyles;
|
|
13
|
+
labelBold: import("@emotion/utils").SerializedStyles;
|
|
14
|
+
labelSmall: import("@emotion/utils").SerializedStyles;
|
|
15
|
+
action: import("@emotion/utils").SerializedStyles;
|
|
16
|
+
actionBold: import("@emotion/utils").SerializedStyles;
|
|
17
|
+
caption: import("@emotion/utils").SerializedStyles;
|
|
18
18
|
};
|
|
19
19
|
export default typography;
|
package/cjs/styles.js
CHANGED
|
@@ -44,7 +44,7 @@ const label = ({
|
|
|
44
44
|
const caption = () => {
|
|
45
45
|
return /*#__PURE__*/(0, _react.css)(bodyFont, ";font-size:", fontSizes.caption, ";font-weight:", fontWeights.body.regular, ";line-height:", lineHeights.caption, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:caption;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0ZZIiwiZmlsZSI6Ii4uLy4uL3NyYy9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB0aGVtZSwgbWVkaWEgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG5jb25zdCB7IGZvbnRGYW1pbGllcywgZm9udFNpemVzLCBmb250V2VpZ2h0cywgbGluZUhlaWdodHMgfSA9IHRoZW1lXG5cbnR5cGUgQm9keVByb3BzID0ge1xuICBzaXplPzoga2V5b2YgdHlwZW9mIHRoZW1lLmZvbnRTaXplcy5ib2R5XG4gIHdlaWdodD86IGtleW9mIHR5cGVvZiB0aGVtZS5mb250V2VpZ2h0cy5ib2R5XG4gIGxpbmVIZWlnaHQ/OiBrZXlvZiB0eXBlb2YgdGhlbWUubGluZUhlaWdodHMuYm9keVxufVxuXG50eXBlIExhYmVsUHJvcHMgPSB7XG4gIHNpemU/OiBrZXlvZiB0eXBlb2YgdGhlbWUuZm9udFNpemVzLmxhY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UludGVyZmFjZVNtYWxsOiBib2R5KHsgbGluZUhlaWdodDogJ3NtYWxsJywgc2l6ZTogJ3NtYWxsJyB9KSxcbiAgYm9keUludGVyZmFjZVNtYWxsQm9sZDogYm9keSh7IGxpbmVIZWlnaHQ6ICdzbWFsbCcsIHNpemU6ICdzbWFsbCcsIHdlaWdodDogJ2JvbGQnIH0pLFxuICBsYWJlbDogbGFiZWwoe30pLFxuICBsYWJlbEJvbGQ6IGxhYmVsKHsgd2VpZ2h0OiAnYm9sZCcgfSksXG4gIGxhYmVsU21hbGw6IGxhYmVsKHsgc2l6ZTogJ3NtYWxsJyB9KSxcbiAgYWN0aW9uOiBhY3Rpb24oeyB3ZWlnaHQ6ICdyZWd1bGFyJyB9KSxcbiAgYWN0aW9uQm9sZDogYWN0aW9uKHsgd2VpZ2h0OiAnYm9sZCcgfSksXG4gIGNhcHRpb246IGNhcHRpb24oKSxcbn1cblxuZXhwb3J0IGRlZmF1bHQgdHlwb2dyYXBoeVxuIl19 */");
|
|
46
46
|
};
|
|
47
|
-
const typography = {
|
|
47
|
+
const typography = exports.typography = {
|
|
48
48
|
heroHeadline: headline({
|
|
49
49
|
size: 'hero'
|
|
50
50
|
}),
|
|
@@ -95,6 +95,4 @@ const typography = {
|
|
|
95
95
|
}),
|
|
96
96
|
caption: caption()
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
var _default = typography;
|
|
100
|
-
exports.default = _default;
|
|
98
|
+
var _default = exports.default = typography;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Typography",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.f4b478d6",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"react": ">= 18.3.1"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dfds-ui/theme": "2.2.0-alpha.
|
|
16
|
+
"@dfds-ui/theme": "2.2.0-alpha.f4b478d6"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "f4b478d6c7e2d7fba61b33147843892f011c1fe4",
|
|
19
19
|
"esnext": "",
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
package/styles.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const typography: {
|
|
2
|
-
heroHeadline: import("@emotion/
|
|
3
|
-
sectionHeadline: import("@emotion/
|
|
4
|
-
subHeadline: import("@emotion/
|
|
5
|
-
smallHeadline: import("@emotion/
|
|
6
|
-
body: import("@emotion/
|
|
7
|
-
bodyBold: import("@emotion/
|
|
8
|
-
bodyInterface: import("@emotion/
|
|
9
|
-
bodyInterfaceBold: import("@emotion/
|
|
10
|
-
bodyInterfaceSmall: import("@emotion/
|
|
11
|
-
bodyInterfaceSmallBold: import("@emotion/
|
|
12
|
-
label: import("@emotion/
|
|
13
|
-
labelBold: import("@emotion/
|
|
14
|
-
labelSmall: import("@emotion/
|
|
15
|
-
action: import("@emotion/
|
|
16
|
-
actionBold: import("@emotion/
|
|
17
|
-
caption: import("@emotion/
|
|
2
|
+
heroHeadline: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
sectionHeadline: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
subHeadline: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
smallHeadline: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
body: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
bodyBold: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
bodyInterface: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
bodyInterfaceBold: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
bodyInterfaceSmall: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
bodyInterfaceSmallBold: import("@emotion/utils").SerializedStyles;
|
|
12
|
+
label: import("@emotion/utils").SerializedStyles;
|
|
13
|
+
labelBold: import("@emotion/utils").SerializedStyles;
|
|
14
|
+
labelSmall: import("@emotion/utils").SerializedStyles;
|
|
15
|
+
action: import("@emotion/utils").SerializedStyles;
|
|
16
|
+
actionBold: import("@emotion/utils").SerializedStyles;
|
|
17
|
+
caption: import("@emotion/utils").SerializedStyles;
|
|
18
18
|
};
|
|
19
19
|
export default typography;
|