@iabbb/bds-react 0.38.7 → 0.39.0-alpha
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/Button/Button.d.ts +7 -0
- package/Button/{Button.js → index.cjs} +46 -5
- package/Button/index.cjs.map +1 -0
- package/Button/index.d.ts +2 -0
- package/Button/index.mjs +94 -0
- package/Button/index.mjs.map +1 -0
- package/Button/package.json +7 -0
- package/CallToAction/CallToAction.d.ts +6 -0
- package/CallToAction/index.cjs +83 -0
- package/CallToAction/index.cjs.map +1 -0
- package/CallToAction/index.d.ts +2 -0
- package/CallToAction/index.mjs +62 -0
- package/CallToAction/index.mjs.map +1 -0
- package/CallToAction/package.json +7 -0
- package/ErrorSummary/ErrorSummary.d.ts +14 -0
- package/ErrorSummary/{ErrorSummary.js → index.cjs} +86 -7
- package/ErrorSummary/index.cjs.map +1 -0
- package/ErrorSummary/index.d.ts +2 -0
- package/ErrorSummary/index.mjs +170 -0
- package/ErrorSummary/index.mjs.map +1 -0
- package/ErrorSummary/package.json +7 -0
- package/ErrorSummary/utils.d.ts +2 -0
- package/FieldTextInput/FieldTextInput.d.ts +10 -0
- package/FieldTextInput/{FieldTextInput.js → index.cjs} +45 -4
- package/FieldTextInput/index.cjs.map +1 -0
- package/FieldTextInput/index.d.ts +1 -0
- package/FieldTextInput/index.mjs +88 -0
- package/FieldTextInput/index.mjs.map +1 -0
- package/FieldTextInput/package.json +7 -0
- package/Pagination/Pagination.d.ts +8 -0
- package/Pagination/{Pagination.js → index.cjs} +71 -5
- package/Pagination/index.cjs.map +1 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.mjs +159 -0
- package/Pagination/index.mjs.map +1 -0
- package/Pagination/package.json +7 -0
- package/README.md +17 -17
- package/Typography/Typography.d.ts +7 -0
- package/Typography/index.cjs +99 -0
- package/Typography/index.cjs.map +1 -0
- package/Typography/index.d.ts +1 -0
- package/Typography/index.mjs +78 -0
- package/Typography/index.mjs.map +1 -0
- package/Typography/package.json +7 -0
- package/index.cjs +447 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +6 -0
- package/index.mjs +421 -0
- package/index.mjs.map +1 -0
- package/package.json +35 -29
- package/Button/Button.js.map +0 -1
- package/Button/index.js +0 -10
- package/Button/index.js.map +0 -1
- package/CallToAction/CallToAction.js +0 -42
- package/CallToAction/CallToAction.js.map +0 -1
- package/CallToAction/index.js +0 -10
- package/CallToAction/index.js.map +0 -1
- package/ErrorSummary/ErrorSummary.js.map +0 -1
- package/ErrorSummary/index.js +0 -14
- package/ErrorSummary/index.js.map +0 -1
- package/ErrorSummary/utils.js +0 -44
- package/ErrorSummary/utils.js.map +0 -1
- package/FieldTextInput/FieldTextInput.js.map +0 -1
- package/FieldTextInput/index.js +0 -10
- package/FieldTextInput/index.js.map +0 -1
- package/Pagination/Pagination.js.map +0 -1
- package/Pagination/index.js +0 -10
- package/Pagination/index.js.map +0 -1
- package/Typography/Typography.js +0 -58
- package/Typography/Typography.js.map +0 -1
- package/Typography/index.js +0 -10
- package/Typography/index.js.map +0 -1
- package/_rollupPluginBabelHelpers-28932a37.js +0 -73
- package/_rollupPluginBabelHelpers-28932a37.js.map +0 -1
- package/index.js +0 -21
- package/index.js.map +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
function _extends() {
|
|
4
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
5
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6
|
+
var source = arguments[i];
|
|
7
|
+
for (var key in source) {
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9
|
+
target[key] = source[key];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return target;
|
|
14
|
+
};
|
|
15
|
+
return _extends.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
18
|
+
if (source == null) return {};
|
|
19
|
+
var target = {};
|
|
20
|
+
var sourceKeys = Object.keys(source);
|
|
21
|
+
var key, i;
|
|
22
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
23
|
+
key = sourceKeys[i];
|
|
24
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
25
|
+
target[key] = source[key];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _toConsumableArray(arr) {
|
|
45
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
46
|
+
}
|
|
47
|
+
function _arrayWithoutHoles(arr) {
|
|
48
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
49
|
+
}
|
|
50
|
+
function _iterableToArray(iter) {
|
|
51
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
52
|
+
}
|
|
53
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
54
|
+
if (!o) return;
|
|
55
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
56
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
57
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
58
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
59
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
60
|
+
}
|
|
61
|
+
function _arrayLikeToArray(arr, len) {
|
|
62
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
63
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
64
|
+
return arr2;
|
|
65
|
+
}
|
|
66
|
+
function _nonIterableSpread() {
|
|
67
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var _excluded = ["buildPageUrl", "className", "currentPage", "onPageClick", "totalPages"];
|
|
71
|
+
function usePages(currentPage, totalPages) {
|
|
72
|
+
var pages = [1, currentPage - 1, currentPage, currentPage + 1, totalPages].filter(function (x) {
|
|
73
|
+
return x >= 1 && x <= totalPages;
|
|
74
|
+
});
|
|
75
|
+
return _toConsumableArray(new Set(pages));
|
|
76
|
+
}
|
|
77
|
+
function Pagination(_ref) {
|
|
78
|
+
var buildPageUrl = _ref.buildPageUrl,
|
|
79
|
+
className = _ref.className,
|
|
80
|
+
currentPage = _ref.currentPage,
|
|
81
|
+
onPageClick = _ref.onPageClick,
|
|
82
|
+
totalPages = _ref.totalPages,
|
|
83
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
84
|
+
var pages = usePages(currentPage, totalPages);
|
|
85
|
+
return /*#__PURE__*/React.createElement("nav", _extends({
|
|
86
|
+
"aria-label": "pagination",
|
|
87
|
+
className: ['bds-pagination', className].filter(function (x) {
|
|
88
|
+
return x;
|
|
89
|
+
}).join(' ')
|
|
90
|
+
}, props), currentPage !== 1 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("a", {
|
|
91
|
+
href: buildPageUrl(1),
|
|
92
|
+
className: "bds-first-page"
|
|
93
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
94
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
95
|
+
"aria-hidden": "true",
|
|
96
|
+
focusable: "false",
|
|
97
|
+
height: "1em",
|
|
98
|
+
width: "100%",
|
|
99
|
+
viewBox: "0 63.95 512 384.1"
|
|
100
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
101
|
+
d: "M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4l171.5 142.9zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29v-64z"
|
|
102
|
+
})), "First"), /*#__PURE__*/React.createElement("a", {
|
|
103
|
+
"aria-label": "previous",
|
|
104
|
+
href: buildPageUrl(currentPage - 1),
|
|
105
|
+
rel: "prev"
|
|
106
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
107
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
108
|
+
"aria-hidden": "true",
|
|
109
|
+
focusable: "false",
|
|
110
|
+
width: "100%",
|
|
111
|
+
height: "1em",
|
|
112
|
+
viewBox: "0.02 95.9 192.08 320.17"
|
|
113
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
114
|
+
d: "M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6v256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"
|
|
115
|
+
})), "Prev.")), /*#__PURE__*/React.createElement("ul", null, pages.map(function (page, index) {
|
|
116
|
+
var handlePageClick = function handlePageClick() {
|
|
117
|
+
if (!onPageClick) return;
|
|
118
|
+
onPageClick(page);
|
|
119
|
+
};
|
|
120
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
121
|
+
key: page
|
|
122
|
+
}, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
123
|
+
"aria-current": page === currentPage ? 'page' : undefined,
|
|
124
|
+
href: buildPageUrl(page),
|
|
125
|
+
onClick: handlePageClick
|
|
126
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
127
|
+
className: "visually-hidden"
|
|
128
|
+
}, "Page"), " ", page)), pages[index + 1] > page + 1 ? /*#__PURE__*/React.createElement("li", {
|
|
129
|
+
"data-overflow": ""
|
|
130
|
+
}, "...") : null);
|
|
131
|
+
})), currentPage !== totalPages && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("a", {
|
|
132
|
+
href: buildPageUrl(currentPage + 1),
|
|
133
|
+
rel: "next"
|
|
134
|
+
}, "Next", /*#__PURE__*/React.createElement("svg", {
|
|
135
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
136
|
+
"aria-hidden": "true",
|
|
137
|
+
focusable: "false",
|
|
138
|
+
viewBox: "63.9 95.9 192.1 320.17",
|
|
139
|
+
width: "100%",
|
|
140
|
+
height: "1em"
|
|
141
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
142
|
+
d: "M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9S63.9 115 63.9 128v256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"
|
|
143
|
+
}))), /*#__PURE__*/React.createElement("a", {
|
|
144
|
+
href: buildPageUrl(totalPages),
|
|
145
|
+
className: "bds-last-page"
|
|
146
|
+
}, "Last", /*#__PURE__*/React.createElement("svg", {
|
|
147
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
148
|
+
"aria-hidden": "true",
|
|
149
|
+
focusable: "false",
|
|
150
|
+
width: "100%",
|
|
151
|
+
height: "1em",
|
|
152
|
+
viewBox: "0 63.95 512 384.1"
|
|
153
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
154
|
+
d: "M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4L224 214.3v83.4L52.5 440.6zM256 352V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4S256 428.4 256 416v-64z"
|
|
155
|
+
})))));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export { Pagination as default };
|
|
159
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/Pagination/Pagination.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nexport type PaginationProps = {\r\n buildPageUrl: (page: number) => string;\r\n currentPage: number;\r\n onPageClick?: (page: number) => void;\r\n totalPages: number;\r\n};\r\n\r\nfunction usePages(currentPage: number, totalPages: number) {\r\n const pages = [1, currentPage - 1, currentPage, currentPage + 1, totalPages].filter(\r\n (x) => x >= 1 && x <= totalPages,\r\n );\r\n return [...new Set(pages)];\r\n}\r\n\r\nexport default function Pagination({\r\n buildPageUrl,\r\n className,\r\n currentPage,\r\n onPageClick,\r\n totalPages,\r\n ...props\r\n}: PaginationProps & React.ComponentPropsWithoutRef<'nav'>) {\r\n const pages = usePages(currentPage, totalPages);\r\n\r\n return (\r\n <nav aria-label=\"pagination\" className={['bds-pagination', className].filter((x) => x).join(' ')} {...props}>\r\n {currentPage !== 1 && (\r\n <>\r\n <a href={buildPageUrl(1)} className=\"bds-first-page\">\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n height=\"1em\"\r\n width=\"100%\"\r\n viewBox=\"0 63.95 512 384.1\"\r\n >\r\n <path d=\"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4l171.5 142.9zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29v-64z\" />\r\n </svg>\r\n First\r\n </a>\r\n <a aria-label=\"previous\" href={buildPageUrl(currentPage - 1)} rel=\"prev\">\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n width=\"100%\"\r\n height=\"1em\"\r\n viewBox=\"0.02 95.9 192.08 320.17\"\r\n >\r\n <path d=\"M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6v256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z\" />\r\n </svg>\r\n Prev.\r\n </a>\r\n </>\r\n )}\r\n <ul>\r\n {pages.map((page, index) => {\r\n const handlePageClick = () => {\r\n if (!onPageClick) return;\r\n\r\n onPageClick(page);\r\n };\r\n\r\n return (\r\n <React.Fragment key={page}>\r\n <li>\r\n <a\r\n aria-current={page === currentPage ? 'page' : undefined}\r\n href={buildPageUrl(page)}\r\n onClick={handlePageClick}\r\n >\r\n <span className=\"visually-hidden\">Page</span> {page}\r\n </a>\r\n </li>\r\n {pages[index + 1] > page + 1 ? <li data-overflow=\"\">...</li> : null}\r\n </React.Fragment>\r\n );\r\n })}\r\n </ul>\r\n {currentPage !== totalPages && (\r\n <>\r\n <a href={buildPageUrl(currentPage + 1)} rel=\"next\">\r\n Next\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n viewBox=\"63.9 95.9 192.1 320.17\"\r\n width=\"100%\"\r\n height=\"1em\"\r\n >\r\n <path d=\"M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9S63.9 115 63.9 128v256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z\" />\r\n </svg>\r\n </a>\r\n <a href={buildPageUrl(totalPages)} className=\"bds-last-page\">\r\n Last\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n width=\"100%\"\r\n height=\"1em\"\r\n viewBox=\"0 63.95 512 384.1\"\r\n >\r\n <path d=\"M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4L224 214.3v83.4L52.5 440.6zM256 352V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4S256 428.4 256 416v-64z\" />\r\n </svg>\r\n </a>\r\n </>\r\n )}\r\n </nav>\r\n );\r\n}\r\n"],"names":["usePages","currentPage","totalPages","pages","filter","x","_toConsumableArray","Set","Pagination","_ref","buildPageUrl","className","onPageClick","props","_objectWithoutProperties","_excluded","React","createElement","_extends","join","Fragment","href","xmlns","focusable","height","width","viewBox","d","rel","map","page","index","handlePageClick","key","undefined","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAASA,QAAQA,CAACC,WAAmB,EAAEC,UAAkB,EAAE;EACzD,IAAMC,KAAK,GAAG,CAAC,CAAC,EAAEF,WAAW,GAAG,CAAC,EAAEA,WAAW,EAAEA,WAAW,GAAG,CAAC,EAAEC,UAAU,CAA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A,CAAA,GAAA,EAAA;AAAGI,IAAAA,IAAI,EAAEX,YAAY,CAACR,UAAU,CAAE;AAACS,IAAAA,SAAS,EAAC,eAAA;AAAe,GAAA,EAAC,MAE3D,eAAAK,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEK,IAAAA,KAAK,EAAC,4BAA4B;AAClC,IAAA,aAAA,EAAY,MAAM;AAClBC,IAAAA,SAAS,EAAC,OAAO;AACjBE,IAAAA,KAAK,EAAC,MAAM;AACZD,IAAAA,MAAM,EAAC,KAAK;AACZE,IAAAA,OAAO,EAAC,mBAAA;GAERV,eAAAA,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMU,IAAAA,CAAC,EAAC,sSAAA;AAAsS,GAAE,CAC7S,CACJ,CACH,CAED,CAAC,CAAA;AAEV;;;;"}
|
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# `@iabbb/bds-react`
|
|
2
|
-
|
|
3
|
-
Better Design System enables consumers to build more visually consistent and accessible designs.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
This project is distributed via npm and should be added to your project's dependencies.
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
yarn add @iabbb/bds-react
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
`@iabbb/bds` is a peer dependency, and should be installed at the same version as `@iabbb/bds-react`.
|
|
14
|
-
|
|
15
|
-
## Documentation
|
|
16
|
-
|
|
17
|
-
[BDS Storybook](https://iabbb.github.io/bds/?path=/docs/bds-documentation--docs)
|
|
1
|
+
# `@iabbb/bds-react`
|
|
2
|
+
|
|
3
|
+
Better Design System enables consumers to build more visually consistent and accessible designs.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
This project is distributed via npm and should be added to your project's dependencies.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
yarn add @iabbb/bds-react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`@iabbb/bds` is a peer dependency, and should be installed at the same version as `@iabbb/bds-react`.
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
[BDS Storybook](https://iabbb.github.io/bds/?path=/docs/bds-documentation--docs)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type TypographyProps = {
|
|
3
|
+
component?: React.ElementType;
|
|
4
|
+
variant?: 'body' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
5
|
+
};
|
|
6
|
+
declare const Typography: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLOrSVGElement> & TypographyProps & React.RefAttributes<HTMLOrSVGElement>>;
|
|
7
|
+
export default Typography;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
var n = Object.create(null);
|
|
7
|
+
if (e) {
|
|
8
|
+
Object.keys(e).forEach(function (k) {
|
|
9
|
+
if (k !== 'default') {
|
|
10
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return e[k]; }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
23
|
+
|
|
24
|
+
function _extends() {
|
|
25
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
26
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27
|
+
var source = arguments[i];
|
|
28
|
+
for (var key in source) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
return _extends.apply(this, arguments);
|
|
37
|
+
}
|
|
38
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
39
|
+
if (source == null) return {};
|
|
40
|
+
var target = {};
|
|
41
|
+
var sourceKeys = Object.keys(source);
|
|
42
|
+
var key, i;
|
|
43
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
44
|
+
key = sourceKeys[i];
|
|
45
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
46
|
+
target[key] = source[key];
|
|
47
|
+
}
|
|
48
|
+
return target;
|
|
49
|
+
}
|
|
50
|
+
function _objectWithoutProperties(source, excluded) {
|
|
51
|
+
if (source == null) return {};
|
|
52
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
53
|
+
var key, i;
|
|
54
|
+
if (Object.getOwnPropertySymbols) {
|
|
55
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
56
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
57
|
+
key = sourceSymbolKeys[i];
|
|
58
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
59
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
60
|
+
target[key] = source[key];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var _excluded = ["className", "component", "variant"];
|
|
67
|
+
var componentMap = {
|
|
68
|
+
h1: 'h1',
|
|
69
|
+
h2: 'h2',
|
|
70
|
+
h3: 'h3',
|
|
71
|
+
h4: 'h4',
|
|
72
|
+
h5: 'h5',
|
|
73
|
+
body: 'p'
|
|
74
|
+
};
|
|
75
|
+
var classMap = {
|
|
76
|
+
h1: 'bds-h1',
|
|
77
|
+
h2: 'bds-h2',
|
|
78
|
+
h3: 'bds-h3',
|
|
79
|
+
h4: 'bds-h4',
|
|
80
|
+
h5: 'bds-h5',
|
|
81
|
+
body: 'bds-body'
|
|
82
|
+
};
|
|
83
|
+
var Typography = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
84
|
+
var className = _ref.className,
|
|
85
|
+
component = _ref.component,
|
|
86
|
+
_ref$variant = _ref.variant,
|
|
87
|
+
variant = _ref$variant === void 0 ? 'body' : _ref$variant,
|
|
88
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
89
|
+
var Component = component !== null && component !== void 0 ? component : componentMap[variant];
|
|
90
|
+
return /*#__PURE__*/React__namespace.createElement(Component, _extends({
|
|
91
|
+
className: [classMap[variant], className].filter(function (x) {
|
|
92
|
+
return x;
|
|
93
|
+
}).join(' '),
|
|
94
|
+
ref: ref
|
|
95
|
+
}, props));
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
module.exports = Typography;
|
|
99
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/Typography/Typography.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nconst componentMap = {\r\n h1: 'h1',\r\n h2: 'h2',\r\n h3: 'h3',\r\n h4: 'h4',\r\n h5: 'h5',\r\n body: 'p',\r\n};\r\n\r\nconst classMap = {\r\n h1: 'bds-h1',\r\n h2: 'bds-h2',\r\n h3: 'bds-h3',\r\n h4: 'bds-h4',\r\n h5: 'bds-h5',\r\n body: 'bds-body',\r\n};\r\n\r\nexport type TypographyProps = {\r\n component?: React.ElementType;\r\n variant?: 'body' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5';\r\n};\r\n\r\nconst Typography = React.forwardRef<HTMLOrSVGElement, React.HTMLAttributes<HTMLOrSVGElement> & TypographyProps>(\r\n ({ className, component, variant = 'body', ...props }, ref) => {\r\n const Component = component ?? (componentMap[variant] as React.ElementType);\r\n return (\r\n <Component className={[classMap[variant], className].filter((x) => x).join(' ')} ref={ref} {...props} />\r\n );\r\n },\r\n);\r\n\r\nexport default Typography;\r\n"],"names":["componentMap","h1","h2","h3","h4","h5","body","classMap","Typography","React","forwardRef","_ref","ref","className","component","_ref$variant","variant","props","_objectWithoutProperties","_excluded","Component","createElement","_extends","filter","x","join"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG;AACnBC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,IAAI,EAAE,GAAA;AACR,CAAC,CAAA;AAED,IAAMC,QAAQ,GAAG;AACfN,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,IAAI,EAAE,UAAA;AACR,CAAC,CAAA;AAOKE,IAAAA,UAAU,gBAAGC,gBAAK,CAACC,UAAU,CACjC,UAAAC,IAAA,EAAuDC,GAAG,EAAK;AAAA,EAAA,IAA5DC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAAC,YAAA,GAAAJ,IAAA,CAAEK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,YAAA;AAAKE,IAAAA,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA,CAAA,CAAA;EACjD,IAAMC,SAAS,GAAGN,SAAS,KAATA,IAAAA,IAAAA,SAAS,KAATA,KAAAA,CAAAA,GAAAA,SAAS,GAAKd,YAAY,CAACgB,OAAO,CAAuB,CAAA;AAC3E,EAAA,oBACEP,gBAAA,CAAAY,aAAA,CAACD,SAAS,EAAAE,QAAA,CAAA;AAACT,IAAAA,SAAS,EAAE,CAACN,QAAQ,CAACS,OAAO,CAAC,EAAEH,SAAS,CAAC,CAACU,MAAM,CAAC,UAACC,CAAC,EAAA;AAAA,MAAA,OAAKA,CAAC,CAAA;AAAA,KAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAE;AAACb,IAAAA,GAAG,EAAEA,GAAAA;GAASK,EAAAA,KAAK,CAAG,CAAC,CAAA;AAE5G,CACF;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Typography';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
function _extends() {
|
|
4
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
5
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6
|
+
var source = arguments[i];
|
|
7
|
+
for (var key in source) {
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9
|
+
target[key] = source[key];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return target;
|
|
14
|
+
};
|
|
15
|
+
return _extends.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
18
|
+
if (source == null) return {};
|
|
19
|
+
var target = {};
|
|
20
|
+
var sourceKeys = Object.keys(source);
|
|
21
|
+
var key, i;
|
|
22
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
23
|
+
key = sourceKeys[i];
|
|
24
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
25
|
+
target[key] = source[key];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var _excluded = ["className", "component", "variant"];
|
|
46
|
+
var componentMap = {
|
|
47
|
+
h1: 'h1',
|
|
48
|
+
h2: 'h2',
|
|
49
|
+
h3: 'h3',
|
|
50
|
+
h4: 'h4',
|
|
51
|
+
h5: 'h5',
|
|
52
|
+
body: 'p'
|
|
53
|
+
};
|
|
54
|
+
var classMap = {
|
|
55
|
+
h1: 'bds-h1',
|
|
56
|
+
h2: 'bds-h2',
|
|
57
|
+
h3: 'bds-h3',
|
|
58
|
+
h4: 'bds-h4',
|
|
59
|
+
h5: 'bds-h5',
|
|
60
|
+
body: 'bds-body'
|
|
61
|
+
};
|
|
62
|
+
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
63
|
+
var className = _ref.className,
|
|
64
|
+
component = _ref.component,
|
|
65
|
+
_ref$variant = _ref.variant,
|
|
66
|
+
variant = _ref$variant === void 0 ? 'body' : _ref$variant,
|
|
67
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
68
|
+
var Component = component !== null && component !== void 0 ? component : componentMap[variant];
|
|
69
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
70
|
+
className: [classMap[variant], className].filter(function (x) {
|
|
71
|
+
return x;
|
|
72
|
+
}).join(' '),
|
|
73
|
+
ref: ref
|
|
74
|
+
}, props));
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export { Typography as default };
|
|
78
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/Typography/Typography.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nconst componentMap = {\r\n h1: 'h1',\r\n h2: 'h2',\r\n h3: 'h3',\r\n h4: 'h4',\r\n h5: 'h5',\r\n body: 'p',\r\n};\r\n\r\nconst classMap = {\r\n h1: 'bds-h1',\r\n h2: 'bds-h2',\r\n h3: 'bds-h3',\r\n h4: 'bds-h4',\r\n h5: 'bds-h5',\r\n body: 'bds-body',\r\n};\r\n\r\nexport type TypographyProps = {\r\n component?: React.ElementType;\r\n variant?: 'body' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5';\r\n};\r\n\r\nconst Typography = React.forwardRef<HTMLOrSVGElement, React.HTMLAttributes<HTMLOrSVGElement> & TypographyProps>(\r\n ({ className, component, variant = 'body', ...props }, ref) => {\r\n const Component = component ?? (componentMap[variant] as React.ElementType);\r\n return (\r\n <Component className={[classMap[variant], className].filter((x) => x).join(' ')} ref={ref} {...props} />\r\n );\r\n },\r\n);\r\n\r\nexport default Typography;\r\n"],"names":["componentMap","h1","h2","h3","h4","h5","body","classMap","Typography","React","forwardRef","_ref","ref","className","component","_ref$variant","variant","props","_objectWithoutProperties","_excluded","Component","createElement","_extends","filter","x","join"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG;AACnBC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,IAAI,EAAE,GAAA;AACR,CAAC,CAAA;AAED,IAAMC,QAAQ,GAAG;AACfN,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE,QAAQ;AACZC,EAAAA,EAAE,EAAE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