@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.
Files changed (76) hide show
  1. package/Button/Button.d.ts +7 -0
  2. package/Button/{Button.js → index.cjs} +46 -5
  3. package/Button/index.cjs.map +1 -0
  4. package/Button/index.d.ts +2 -0
  5. package/Button/index.mjs +94 -0
  6. package/Button/index.mjs.map +1 -0
  7. package/Button/package.json +7 -0
  8. package/CallToAction/CallToAction.d.ts +6 -0
  9. package/CallToAction/index.cjs +83 -0
  10. package/CallToAction/index.cjs.map +1 -0
  11. package/CallToAction/index.d.ts +2 -0
  12. package/CallToAction/index.mjs +62 -0
  13. package/CallToAction/index.mjs.map +1 -0
  14. package/CallToAction/package.json +7 -0
  15. package/ErrorSummary/ErrorSummary.d.ts +14 -0
  16. package/ErrorSummary/{ErrorSummary.js → index.cjs} +86 -7
  17. package/ErrorSummary/index.cjs.map +1 -0
  18. package/ErrorSummary/index.d.ts +2 -0
  19. package/ErrorSummary/index.mjs +170 -0
  20. package/ErrorSummary/index.mjs.map +1 -0
  21. package/ErrorSummary/package.json +7 -0
  22. package/ErrorSummary/utils.d.ts +2 -0
  23. package/FieldTextInput/FieldTextInput.d.ts +10 -0
  24. package/FieldTextInput/{FieldTextInput.js → index.cjs} +45 -4
  25. package/FieldTextInput/index.cjs.map +1 -0
  26. package/FieldTextInput/index.d.ts +1 -0
  27. package/FieldTextInput/index.mjs +88 -0
  28. package/FieldTextInput/index.mjs.map +1 -0
  29. package/FieldTextInput/package.json +7 -0
  30. package/Pagination/Pagination.d.ts +8 -0
  31. package/Pagination/{Pagination.js → index.cjs} +71 -5
  32. package/Pagination/index.cjs.map +1 -0
  33. package/Pagination/index.d.ts +1 -0
  34. package/Pagination/index.mjs +159 -0
  35. package/Pagination/index.mjs.map +1 -0
  36. package/Pagination/package.json +7 -0
  37. package/README.md +17 -17
  38. package/Typography/Typography.d.ts +7 -0
  39. package/Typography/index.cjs +99 -0
  40. package/Typography/index.cjs.map +1 -0
  41. package/Typography/index.d.ts +1 -0
  42. package/Typography/index.mjs +78 -0
  43. package/Typography/index.mjs.map +1 -0
  44. package/Typography/package.json +7 -0
  45. package/index.cjs +447 -0
  46. package/index.cjs.map +1 -0
  47. package/index.d.ts +6 -0
  48. package/index.mjs +421 -0
  49. package/index.mjs.map +1 -0
  50. package/package.json +35 -29
  51. package/Button/Button.js.map +0 -1
  52. package/Button/index.js +0 -10
  53. package/Button/index.js.map +0 -1
  54. package/CallToAction/CallToAction.js +0 -42
  55. package/CallToAction/CallToAction.js.map +0 -1
  56. package/CallToAction/index.js +0 -10
  57. package/CallToAction/index.js.map +0 -1
  58. package/ErrorSummary/ErrorSummary.js.map +0 -1
  59. package/ErrorSummary/index.js +0 -14
  60. package/ErrorSummary/index.js.map +0 -1
  61. package/ErrorSummary/utils.js +0 -44
  62. package/ErrorSummary/utils.js.map +0 -1
  63. package/FieldTextInput/FieldTextInput.js.map +0 -1
  64. package/FieldTextInput/index.js +0 -10
  65. package/FieldTextInput/index.js.map +0 -1
  66. package/Pagination/Pagination.js.map +0 -1
  67. package/Pagination/index.js +0 -10
  68. package/Pagination/index.js.map +0 -1
  69. package/Typography/Typography.js +0 -58
  70. package/Typography/Typography.js.map +0 -1
  71. package/Typography/index.js +0 -10
  72. package/Typography/index.js.map +0 -1
  73. package/_rollupPluginBabelHelpers-28932a37.js +0 -73
  74. package/_rollupPluginBabelHelpers-28932a37.js.map +0 -1
  75. package/index.js +0 -21
  76. package/index.js.map +0 -1
package/index.cjs ADDED
@@ -0,0 +1,447 @@
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
+ function _toConsumableArray(arr) {
66
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
67
+ }
68
+ function _arrayWithoutHoles(arr) {
69
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
70
+ }
71
+ function _iterableToArray(iter) {
72
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
73
+ }
74
+ function _unsupportedIterableToArray(o, minLen) {
75
+ if (!o) return;
76
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
77
+ var n = Object.prototype.toString.call(o).slice(8, -1);
78
+ if (n === "Object" && o.constructor) n = o.constructor.name;
79
+ if (n === "Map" || n === "Set") return Array.from(o);
80
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
81
+ }
82
+ function _arrayLikeToArray(arr, len) {
83
+ if (len == null || len > arr.length) len = arr.length;
84
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
85
+ return arr2;
86
+ }
87
+ function _nonIterableSpread() {
88
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
89
+ }
90
+
91
+ var _excluded$5 = ["children", "className", "onClick", "preventDoubleClick", "variant"];
92
+ var DEBOUNCE_TIMEOUT_IN_SECONDS = 1;
93
+ var Button = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
94
+ var children = _ref.children,
95
+ className = _ref.className,
96
+ onClick = _ref.onClick,
97
+ _ref$preventDoubleCli = _ref.preventDoubleClick,
98
+ preventDoubleClick = _ref$preventDoubleCli === void 0 ? false : _ref$preventDoubleCli,
99
+ _ref$variant = _ref.variant,
100
+ variant = _ref$variant === void 0 ? 'standard' : _ref$variant,
101
+ props = _objectWithoutProperties(_ref, _excluded$5);
102
+ var debounceClicks = React__namespace.useRef(false);
103
+ var handleClick = function handleClick(event) {
104
+ // 👇 button is not configured to ignore double clicks
105
+ if (!preventDoubleClick) {
106
+ if (onClick) {
107
+ onClick(event);
108
+ }
109
+ return;
110
+ }
111
+
112
+ // 👇 button has been clicked recently, and subsequent clicks are prevented
113
+ if (debounceClicks.current) {
114
+ event.preventDefault();
115
+ return;
116
+ }
117
+ if (onClick) {
118
+ onClick(event);
119
+ }
120
+
121
+ // 👇 block from double clicks
122
+ debounceClicks.current = true;
123
+
124
+ // 👇 and remove the block after a given amount of seconds
125
+ setTimeout(function () {
126
+ debounceClicks.current = false;
127
+ }, DEBOUNCE_TIMEOUT_IN_SECONDS * 1000);
128
+ };
129
+ return /*#__PURE__*/React__namespace.createElement("button", _extends({
130
+ className: [variant === 'unstyled' ? 'bds-button-unstyled' : 'bds-button', className].filter(function (x) {
131
+ return x;
132
+ }).join(' '),
133
+ "data-type": variant !== 'standard' && variant !== 'unstyled' ? variant : null,
134
+ onClick: handleClick,
135
+ ref: ref
136
+ }, props), children);
137
+ });
138
+
139
+ var _excluded$4 = ["children", "className", "variant"];
140
+ var CallToAction = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
141
+ var children = _ref.children,
142
+ className = _ref.className,
143
+ _ref$variant = _ref.variant,
144
+ variant = _ref$variant === void 0 ? 'standard' : _ref$variant,
145
+ props = _objectWithoutProperties(_ref, _excluded$4);
146
+ return /*#__PURE__*/React__namespace.createElement("a", _extends({
147
+ className: ['bds-cta', className].filter(function (x) {
148
+ return x;
149
+ }).join(' '),
150
+ "data-type": variant !== 'standard' ? variant : null,
151
+ ref: ref
152
+ }, props), children);
153
+ });
154
+
155
+ function getFragmentFromUrl(url) {
156
+ return url.includes('#') ? url.split('#').pop() : undefined;
157
+ }
158
+ function getAssociatedLegendOrLabel(input) {
159
+ var _document$querySelect;
160
+ var fieldset = input.closest('fieldset');
161
+ if (fieldset) {
162
+ var legends = fieldset.getElementsByTagName('legend');
163
+ if (legends.length) {
164
+ var candidateLegend = legends[0];
165
+
166
+ // If the input type is radio or checkbox, always use the legend if there
167
+ // is one.
168
+ if (input instanceof HTMLInputElement && (input.type === 'checkbox' || input.type === 'radio')) {
169
+ return candidateLegend;
170
+ }
171
+
172
+ // For other input types, only scroll to the fieldset’s legend (instead of
173
+ // the label associated with the input) if the input would end up in the
174
+ // top half of the screen.
175
+ //
176
+ // This should avoid situations where the input either ends up off the
177
+ // screen, or obscured by a software keyboard.
178
+ var legendTop = candidateLegend.getBoundingClientRect().top;
179
+ var inputRect = input.getBoundingClientRect();
180
+
181
+ // If the browser doesn't support Element.getBoundingClientRect().height
182
+ // or window.innerHeight (like IE8), bail and just link to the label.
183
+ if (inputRect.height && window.innerHeight) {
184
+ var inputBottom = inputRect.top + inputRect.height;
185
+ if (inputBottom - legendTop < window.innerHeight / 2) {
186
+ return candidateLegend;
187
+ }
188
+ }
189
+ }
190
+ }
191
+ return (_document$querySelect = document.querySelector("label[for='".concat(input.getAttribute('id'), "']"))) !== null && _document$querySelect !== void 0 ? _document$querySelect : input.closest('label');
192
+ }
193
+
194
+ var _excluded$3 = ["className", "errors", "mapNameToId"];
195
+ var FormErrorKey = '_form';
196
+ var FINAL_FORM_ERROR = 'FINAL_FORM/form-error';
197
+ function BdsErrorSummary(_ref) {
198
+ var className = _ref.className,
199
+ errors = _ref.errors,
200
+ _ref$mapNameToId = _ref.mapNameToId,
201
+ mapNameToId = _ref$mapNameToId === void 0 ? function (name) {
202
+ return name;
203
+ } : _ref$mapNameToId,
204
+ props = _objectWithoutProperties(_ref, _excluded$3);
205
+ var headingId = React__namespace.useId();
206
+ var groupRef = React__namespace.useRef(null);
207
+ React__namespace.useEffect(function () {
208
+ if (!errors || Object.keys(errors).length === 0) return;
209
+ if (!groupRef.current) return;
210
+ groupRef.current.focus();
211
+ }, [errors]);
212
+ if (!errors || Object.keys(errors).length === 0) return null;
213
+ var handleLinkClick = function handleLinkClick(e) {
214
+ var inputId = getFragmentFromUrl(e.currentTarget.href);
215
+ if (!inputId) {
216
+ return;
217
+ }
218
+ var input = document.getElementById(inputId);
219
+ if (!input) {
220
+ return;
221
+ }
222
+ var legendOrLabel = getAssociatedLegendOrLabel(input);
223
+ if (!legendOrLabel) {
224
+ return;
225
+ }
226
+ e.preventDefault();
227
+ legendOrLabel.scrollIntoView();
228
+ input.focus({
229
+ preventScroll: true
230
+ });
231
+ };
232
+ return /*#__PURE__*/React__namespace.createElement("bds-error-summary", _extends({
233
+ className: ['stack', className].filter(function (x) {
234
+ return x;
235
+ }).join(' '),
236
+ role: "group",
237
+ "aria-labelledby": headingId,
238
+ ref: groupRef,
239
+ tabIndex: -1
240
+ }, props), /*#__PURE__*/React__namespace.createElement("h2", {
241
+ className: "bds-h5",
242
+ id: headingId
243
+ }, /*#__PURE__*/React__namespace.createElement("svg", {
244
+ xmlns: "http://www.w3.org/2000/svg",
245
+ viewBox: "0 0 512 512",
246
+ "aria-hidden": "true",
247
+ height: "1em",
248
+ width: "1em",
249
+ fill: "currentColor"
250
+ }, /*#__PURE__*/React__namespace.createElement("path", {
251
+ d: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32z"
252
+ })), "Issue"), /*#__PURE__*/React__namespace.createElement("ul", null, Object.keys(errors).map(function (errorKey) {
253
+ var message = errors[errorKey];
254
+ var isFormError = [FINAL_FORM_ERROR, FormErrorKey].includes(errorKey);
255
+ if (isFormError) {
256
+ return /*#__PURE__*/React__namespace.createElement("li", {
257
+ key: errorKey,
258
+ dangerouslySetInnerHTML: {
259
+ __html: message
260
+ }
261
+ });
262
+ }
263
+ var isArrayField = Array.isArray(message);
264
+ var messages = isArrayField ? message : [message];
265
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
266
+ key: errorKey
267
+ }, messages.map(function (fieldMessage, index) {
268
+ var inputId = "".concat(mapNameToId(errorKey)).concat(isArrayField ? "[".concat(index, "]") : '');
269
+ return /*#__PURE__*/React__namespace.createElement("li", {
270
+ key: inputId
271
+ }, /*#__PURE__*/React__namespace.createElement("a", {
272
+ href: "#".concat(inputId),
273
+ onClick: handleLinkClick
274
+ }, fieldMessage, messages.length > 1 ? " (".concat(index + 1, " of ").concat(messages.length, ")") : undefined));
275
+ }));
276
+ })));
277
+ }
278
+
279
+ var _excluded$2 = ["as", "error", "hint", "id", "isOptional", "label"];
280
+ function FieldTextInput(_ref) {
281
+ var _id;
282
+ var as = _ref.as,
283
+ error = _ref.error,
284
+ hint = _ref.hint,
285
+ id = _ref.id,
286
+ _ref$isOptional = _ref.isOptional,
287
+ isOptional = _ref$isOptional === void 0 ? false : _ref$isOptional,
288
+ label = _ref.label,
289
+ props = _objectWithoutProperties(_ref, _excluded$2);
290
+ id = (_id = id) !== null && _id !== void 0 ? _id : props.name;
291
+ var errorId = React__namespace.useId();
292
+ var hintId = React__namespace.useId();
293
+ var InputComponent = as !== null && as !== void 0 ? as : 'input';
294
+ return /*#__PURE__*/React__namespace.createElement("div", {
295
+ className: "bds-text-input stack"
296
+ }, /*#__PURE__*/React__namespace.createElement("label", {
297
+ htmlFor: id
298
+ }, label, isOptional && ' (optional)'), hint && /*#__PURE__*/React__namespace.createElement("span", {
299
+ className: "bds-hint",
300
+ id: hintId
301
+ }, hint), error && /*#__PURE__*/React__namespace.createElement("span", {
302
+ className: "bds-error",
303
+ id: errorId
304
+ }, /*#__PURE__*/React__namespace.createElement("svg", {
305
+ xmlns: "http://www.w3.org/2000/svg",
306
+ viewBox: "0 0 512 512",
307
+ "aria-hidden": "true",
308
+ height: "1em",
309
+ width: "1em",
310
+ fill: "currentColor"
311
+ }, /*#__PURE__*/React__namespace.createElement("path", {
312
+ d: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32z"
313
+ })), error), /*#__PURE__*/React__namespace.createElement(InputComponent, _extends({
314
+ "aria-invalid": error ? true : undefined,
315
+ "aria-describedby": error && hint ? "".concat(hintId, " ").concat(errorId) : error ? errorId : hint ? hintId : undefined,
316
+ "aria-required": isOptional ? undefined : true,
317
+ id: id
318
+ }, props)));
319
+ }
320
+
321
+ var _excluded$1 = ["buildPageUrl", "className", "currentPage", "onPageClick", "totalPages"];
322
+ function usePages(currentPage, totalPages) {
323
+ var pages = [1, currentPage - 1, currentPage, currentPage + 1, totalPages].filter(function (x) {
324
+ return x >= 1 && x <= totalPages;
325
+ });
326
+ return _toConsumableArray(new Set(pages));
327
+ }
328
+ function Pagination(_ref) {
329
+ var buildPageUrl = _ref.buildPageUrl,
330
+ className = _ref.className,
331
+ currentPage = _ref.currentPage,
332
+ onPageClick = _ref.onPageClick,
333
+ totalPages = _ref.totalPages,
334
+ props = _objectWithoutProperties(_ref, _excluded$1);
335
+ var pages = usePages(currentPage, totalPages);
336
+ return /*#__PURE__*/React__namespace.createElement("nav", _extends({
337
+ "aria-label": "pagination",
338
+ className: ['bds-pagination', className].filter(function (x) {
339
+ return x;
340
+ }).join(' ')
341
+ }, props), currentPage !== 1 && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("a", {
342
+ href: buildPageUrl(1),
343
+ className: "bds-first-page"
344
+ }, /*#__PURE__*/React__namespace.createElement("svg", {
345
+ xmlns: "http://www.w3.org/2000/svg",
346
+ "aria-hidden": "true",
347
+ focusable: "false",
348
+ height: "1em",
349
+ width: "100%",
350
+ viewBox: "0 63.95 512 384.1"
351
+ }, /*#__PURE__*/React__namespace.createElement("path", {
352
+ 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"
353
+ })), "First"), /*#__PURE__*/React__namespace.createElement("a", {
354
+ "aria-label": "previous",
355
+ href: buildPageUrl(currentPage - 1),
356
+ rel: "prev"
357
+ }, /*#__PURE__*/React__namespace.createElement("svg", {
358
+ xmlns: "http://www.w3.org/2000/svg",
359
+ "aria-hidden": "true",
360
+ focusable: "false",
361
+ width: "100%",
362
+ height: "1em",
363
+ viewBox: "0.02 95.9 192.08 320.17"
364
+ }, /*#__PURE__*/React__namespace.createElement("path", {
365
+ 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"
366
+ })), "Prev.")), /*#__PURE__*/React__namespace.createElement("ul", null, pages.map(function (page, index) {
367
+ var handlePageClick = function handlePageClick() {
368
+ if (!onPageClick) return;
369
+ onPageClick(page);
370
+ };
371
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
372
+ key: page
373
+ }, /*#__PURE__*/React__namespace.createElement("li", null, /*#__PURE__*/React__namespace.createElement("a", {
374
+ "aria-current": page === currentPage ? 'page' : undefined,
375
+ href: buildPageUrl(page),
376
+ onClick: handlePageClick
377
+ }, /*#__PURE__*/React__namespace.createElement("span", {
378
+ className: "visually-hidden"
379
+ }, "Page"), " ", page)), pages[index + 1] > page + 1 ? /*#__PURE__*/React__namespace.createElement("li", {
380
+ "data-overflow": ""
381
+ }, "...") : null);
382
+ })), currentPage !== totalPages && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("a", {
383
+ href: buildPageUrl(currentPage + 1),
384
+ rel: "next"
385
+ }, "Next", /*#__PURE__*/React__namespace.createElement("svg", {
386
+ xmlns: "http://www.w3.org/2000/svg",
387
+ "aria-hidden": "true",
388
+ focusable: "false",
389
+ viewBox: "63.9 95.9 192.1 320.17",
390
+ width: "100%",
391
+ height: "1em"
392
+ }, /*#__PURE__*/React__namespace.createElement("path", {
393
+ 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"
394
+ }))), /*#__PURE__*/React__namespace.createElement("a", {
395
+ href: buildPageUrl(totalPages),
396
+ className: "bds-last-page"
397
+ }, "Last", /*#__PURE__*/React__namespace.createElement("svg", {
398
+ xmlns: "http://www.w3.org/2000/svg",
399
+ "aria-hidden": "true",
400
+ focusable: "false",
401
+ width: "100%",
402
+ height: "1em",
403
+ viewBox: "0 63.95 512 384.1"
404
+ }, /*#__PURE__*/React__namespace.createElement("path", {
405
+ 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"
406
+ })))));
407
+ }
408
+
409
+ var _excluded = ["className", "component", "variant"];
410
+ var componentMap = {
411
+ h1: 'h1',
412
+ h2: 'h2',
413
+ h3: 'h3',
414
+ h4: 'h4',
415
+ h5: 'h5',
416
+ body: 'p'
417
+ };
418
+ var classMap = {
419
+ h1: 'bds-h1',
420
+ h2: 'bds-h2',
421
+ h3: 'bds-h3',
422
+ h4: 'bds-h4',
423
+ h5: 'bds-h5',
424
+ body: 'bds-body'
425
+ };
426
+ var Typography = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
427
+ var className = _ref.className,
428
+ component = _ref.component,
429
+ _ref$variant = _ref.variant,
430
+ variant = _ref$variant === void 0 ? 'body' : _ref$variant,
431
+ props = _objectWithoutProperties(_ref, _excluded);
432
+ var Component = component !== null && component !== void 0 ? component : componentMap[variant];
433
+ return /*#__PURE__*/React__namespace.createElement(Component, _extends({
434
+ className: [classMap[variant], className].filter(function (x) {
435
+ return x;
436
+ }).join(' '),
437
+ ref: ref
438
+ }, props));
439
+ });
440
+
441
+ exports.Button = Button;
442
+ exports.CallToAction = CallToAction;
443
+ exports.ErrorSummary = BdsErrorSummary;
444
+ exports.FieldTextInput = FieldTextInput;
445
+ exports.Pagination = Pagination;
446
+ exports.Typography = Typography;
447
+ //# sourceMappingURL=index.cjs.map
package/index.cjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/Button/Button.tsx","../src/CallToAction/CallToAction.tsx","../src/ErrorSummary/utils.ts","../src/ErrorSummary/ErrorSummary.tsx","../src/FieldTextInput/FieldTextInput.tsx","../src/Pagination/Pagination.tsx","../src/Typography/Typography.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nconst DEBOUNCE_TIMEOUT_IN_SECONDS = 1;\r\n\r\nexport interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {\r\n preventDoubleClick?: boolean;\r\n variant?: 'cancel' | 'featured' | 'quote' | 'search' | 'standard' | 'unstyled';\r\n}\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\r\n ({ children, className, onClick, preventDoubleClick = false, variant = 'standard', ...props }, ref) => {\r\n const debounceClicks = React.useRef(false);\r\n\r\n const handleClick: React.MouseEventHandler<HTMLButtonElement> = (event) => {\r\n // 👇 button is not configured to ignore double clicks\r\n if (!preventDoubleClick) {\r\n if (onClick) {\r\n onClick(event);\r\n }\r\n\r\n return;\r\n }\r\n\r\n // 👇 button has been clicked recently, and subsequent clicks are prevented\r\n if (debounceClicks.current) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n if (onClick) {\r\n onClick(event);\r\n }\r\n\r\n // 👇 block from double clicks\r\n debounceClicks.current = true;\r\n\r\n // 👇 and remove the block after a given amount of seconds\r\n setTimeout(() => {\r\n debounceClicks.current = false;\r\n }, DEBOUNCE_TIMEOUT_IN_SECONDS * 1000);\r\n };\r\n\r\n return (\r\n <button\r\n className={[variant === 'unstyled' ? 'bds-button-unstyled' : 'bds-button', className]\r\n .filter((x) => x)\r\n .join(' ')}\r\n data-type={variant !== 'standard' && variant !== 'unstyled' ? variant : null}\r\n onClick={handleClick}\r\n ref={ref}\r\n {...props}\r\n >\r\n {children}\r\n </button>\r\n );\r\n },\r\n);\r\n\r\nexport default Button;\r\n","import * as React from 'react';\r\n\r\nexport interface CallToActionProps extends React.ComponentPropsWithoutRef<'a'> {\r\n variant?: 'featured' | 'quote' | 'standard';\r\n}\r\n\r\nconst CallToAction = React.forwardRef<HTMLAnchorElement, CallToActionProps>(\r\n ({ children, className, variant = 'standard', ...props }, ref) => {\r\n return (\r\n <a\r\n className={['bds-cta', className].filter((x) => x).join(' ')}\r\n data-type={variant !== 'standard' ? variant : null}\r\n ref={ref}\r\n {...props}\r\n >\r\n {children}\r\n </a>\r\n );\r\n },\r\n);\r\n\r\nexport default CallToAction;\r\n","export function getFragmentFromUrl(url: string) {\r\n return url.includes('#') ? url.split('#').pop() : undefined;\r\n}\r\n\r\nexport function getAssociatedLegendOrLabel(input: HTMLElement) {\r\n const fieldset = input.closest('fieldset');\r\n\r\n if (fieldset) {\r\n const legends = fieldset.getElementsByTagName('legend');\r\n\r\n if (legends.length) {\r\n const candidateLegend = legends[0];\r\n\r\n // If the input type is radio or checkbox, always use the legend if there\r\n // is one.\r\n if (input instanceof HTMLInputElement && (input.type === 'checkbox' || input.type === 'radio')) {\r\n return candidateLegend;\r\n }\r\n\r\n // For other input types, only scroll to the fieldset’s legend (instead of\r\n // the label associated with the input) if the input would end up in the\r\n // top half of the screen.\r\n //\r\n // This should avoid situations where the input either ends up off the\r\n // screen, or obscured by a software keyboard.\r\n const legendTop = candidateLegend.getBoundingClientRect().top;\r\n const inputRect = input.getBoundingClientRect();\r\n\r\n // If the browser doesn't support Element.getBoundingClientRect().height\r\n // or window.innerHeight (like IE8), bail and just link to the label.\r\n if (inputRect.height && window.innerHeight) {\r\n const inputBottom = inputRect.top + inputRect.height;\r\n\r\n if (inputBottom - legendTop < window.innerHeight / 2) {\r\n return candidateLegend;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return document.querySelector(`label[for='${input.getAttribute('id')}']`) ?? input.closest('label');\r\n}\r\n","import * as React from 'react';\r\n\r\nimport { getAssociatedLegendOrLabel, getFragmentFromUrl } from './utils';\r\n\r\ndeclare global {\r\n namespace JSX {\r\n interface IntrinsicElements {\r\n 'bds-error-summary': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;\r\n }\r\n }\r\n}\r\n\r\nexport const FormErrorKey = '_form';\r\n\r\nconst FINAL_FORM_ERROR = 'FINAL_FORM/form-error';\r\n\r\nexport type ErrorSummaryProps = {\r\n errors: Record<string, Array<string> | string> | null;\r\n mapNameToId?: (name: string) => string;\r\n};\r\n\r\nexport default function BdsErrorSummary({\r\n className,\r\n errors,\r\n mapNameToId = (name) => name,\r\n ...props\r\n}: ErrorSummaryProps & React.ComponentPropsWithoutRef<'div'>) {\r\n const headingId = React.useId();\r\n const groupRef = React.useRef<HTMLElement>(null);\r\n\r\n React.useEffect(() => {\r\n if (!errors || Object.keys(errors).length === 0) return;\r\n if (!groupRef.current) return;\r\n\r\n groupRef.current.focus();\r\n }, [errors]);\r\n\r\n if (!errors || Object.keys(errors).length === 0) return null;\r\n\r\n const handleLinkClick = (e) => {\r\n const inputId = getFragmentFromUrl(e.currentTarget.href);\r\n\r\n if (!inputId) {\r\n return;\r\n }\r\n\r\n const input = document.getElementById(inputId);\r\n\r\n if (!input) {\r\n return;\r\n }\r\n\r\n const legendOrLabel = getAssociatedLegendOrLabel(input);\r\n\r\n if (!legendOrLabel) {\r\n return;\r\n }\r\n\r\n e.preventDefault();\r\n\r\n legendOrLabel.scrollIntoView();\r\n input.focus({ preventScroll: true });\r\n };\r\n\r\n return (\r\n <bds-error-summary\r\n className={['stack', className].filter((x) => x).join(' ')}\r\n role=\"group\"\r\n aria-labelledby={headingId}\r\n ref={groupRef}\r\n tabIndex={-1}\r\n {...props}\r\n >\r\n <h2 className=\"bds-h5\" id={headingId}>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 512 512\"\r\n aria-hidden=\"true\"\r\n height=\"1em\"\r\n width=\"1em\"\r\n fill=\"currentColor\"\r\n >\r\n <path d=\"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32z\" />\r\n </svg>\r\n Issue\r\n </h2>\r\n <ul>\r\n {Object.keys(errors).map((errorKey) => {\r\n const message = errors[errorKey];\r\n const isFormError = [FINAL_FORM_ERROR, FormErrorKey].includes(errorKey);\r\n\r\n if (isFormError) {\r\n return <li key={errorKey} dangerouslySetInnerHTML={{ __html: message }} />;\r\n }\r\n\r\n const isArrayField = Array.isArray(message);\r\n\r\n const messages = isArrayField ? message : [message];\r\n\r\n return (\r\n <React.Fragment key={errorKey}>\r\n {messages.map((fieldMessage, index) => {\r\n const inputId = `${mapNameToId(errorKey)}${isArrayField ? `[${index}]` : ''}`;\r\n\r\n return (\r\n <li key={inputId}>\r\n <a href={`#${inputId}`} onClick={handleLinkClick}>\r\n {fieldMessage}\r\n {messages.length > 1 ? ` (${index + 1} of ${messages.length})` : undefined}\r\n </a>\r\n </li>\r\n );\r\n })}\r\n </React.Fragment>\r\n );\r\n })}\r\n </ul>\r\n </bds-error-summary>\r\n );\r\n}\r\n","import * as React from 'react';\r\n\r\nexport type FieldTextInputProps<C> = {\r\n as?: C;\r\n error?: string;\r\n hint?: string;\r\n id?: string;\r\n isOptional?: boolean;\r\n label: string;\r\n};\r\n\r\nexport default function FieldTextInput<C extends React.ElementType>({\r\n as,\r\n error,\r\n hint,\r\n id,\r\n isOptional = false,\r\n label,\r\n ...props\r\n}: FieldTextInputProps<C> & React.ComponentPropsWithoutRef<C>) {\r\n id = id ?? props.name;\r\n\r\n const errorId = React.useId();\r\n const hintId = React.useId();\r\n\r\n const InputComponent = as ?? 'input';\r\n\r\n return (\r\n <div className=\"bds-text-input stack\">\r\n <label htmlFor={id}>\r\n {label}\r\n {isOptional && ' (optional)'}\r\n </label>\r\n {hint && (\r\n <span className=\"bds-hint\" id={hintId}>\r\n {hint}\r\n </span>\r\n )}\r\n {error && (\r\n <span className=\"bds-error\" id={errorId}>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 512 512\"\r\n aria-hidden=\"true\"\r\n height=\"1em\"\r\n width=\"1em\"\r\n fill=\"currentColor\"\r\n >\r\n <path d=\"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32z\" />\r\n </svg>\r\n {error}\r\n </span>\r\n )}\r\n <InputComponent\r\n aria-invalid={error ? true : undefined}\r\n aria-describedby={error && hint ? `${hintId} ${errorId}` : error ? errorId : hint ? hintId : undefined}\r\n aria-required={isOptional ? undefined : true}\r\n id={id}\r\n {...props}\r\n />\r\n </div>\r\n );\r\n}\r\n","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","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":["DEBOUNCE_TIMEOUT_IN_SECONDS","Button","React","forwardRef","_ref","ref","children","className","onClick","_ref$preventDoubleCli","preventDoubleClick","_ref$variant","variant","props","_objectWithoutProperties","_excluded","debounceClicks","useRef","handleClick","event","current","preventDefault","setTimeout","createElement","_extends","filter","x","join","CallToAction","getFragmentFromUrl","url","includes","split","pop","undefined","getAssociatedLegendOrLabel","input","_document$querySelect","fieldset","closest","legends","getElementsByTagName","length","candidateLegend","HTMLInputElement","type","legendTop","getBoundingClientRect","top","inputRect","height","window","innerHeight","inputBottom","document","querySelector","concat","getAttribute","FormErrorKey","FINAL_FORM_ERROR","BdsErrorSummary","errors","_ref$mapNameToId","mapNameToId","name","headingId","useId","groupRef","useEffect","Object","keys","focus","handleLinkClick","e","inputId","currentTarget","href","getElementById","legendOrLabel","scrollIntoView","preventScroll","role","tabIndex","id","xmlns","viewBox","width","fill","d","map","errorKey","message","isFormError","key","dangerouslySetInnerHTML","__html","isArrayField","Array","isArray","messages","Fragment","fieldMessage","index","FieldTextInput","_id","as","error","hint","_ref$isOptional","isOptional","label","errorId","hintId","InputComponent","htmlFor","usePages","currentPage","totalPages","pages","_toConsumableArray","Set","Pagination","buildPageUrl","onPageClick","focusable","rel","page","handlePageClick","componentMap","h1","h2","h3","h4","h5","body","classMap","Typography","component","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,2BAA2B,GAAG,CAAC,CAAA;AAO/BC,IAAAA,MAAM,gBAAGC,gBAAK,CAACC,UAAU,CAC7B,UAAAC,IAAA,EAA+FC,GAAG,EAAK;AAAA,EAAA,IAApGC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IAAAC,qBAAA,GAAAL,IAAA,CAAEM,kBAAkB;AAAlBA,IAAAA,kBAAkB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,qBAAA;IAAAE,YAAA,GAAAP,IAAA,CAAEQ,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,YAAA;AAAKE,IAAAA,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,WAAA,CAAA,CAAA;AACzF,EAAA,IAAMC,cAAc,GAAGd,gBAAK,CAACe,MAAM,CAAC,KAAK,CAAC,CAAA;AAE1C,EAAA,IAAMC,WAAuD,GAAG,SAA1D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AACZC,EAAAA,IAAI,EAAE,UAAA;AACR,CAAC,CAAA;AAOKE,IAAAA,UAAU,gBAAGtI,gBAAK,CAACC,UAAU,CACjC,UAAAC,IAAA,EAAuDC,GAAG,EAAK;AAAA,EAAA,IAA5DE,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEkI,SAAS,GAAArI,IAAA,CAATqI,SAAS;IAAA9H,YAAA,GAAAP,IAAA,CAAEQ,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,YAAA;AAAKE,IAAAA,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA,CAAA,CAAA;EACjD,IAAM2H,SAAS,GAAGD,SAAS,KAATA,IAAAA,IAAAA,SAAS,KAATA,KAAAA,CAAAA,GAAAA,SAAS,GAAKT,YAAY,CAACpH,OAAO,CAAuB,CAAA;AAC3E,EAAA,oBACEV,gBAAA,CAAAqB,aAAA,CAACmH,SAAS,EAAAlH,QAAA,CAAA;AAACjB,IAAAA,SAAS,EAAE,CAACgI,QAAQ,CAAC3H,OAAO,CAAC,EAAEL,SAAS,CAAC,CAACkB,MAAM,CAAC,UAACC,CAAC,EAAA;AAAA,MAAA,OAAKA,CAAC,CAAA;AAAA,KAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAE;AAACtB,IAAAA,GAAG,EAAEA,GAAAA;GAASQ,EAAAA,KAAK,CAAG,CAAC,CAAA;AAE5G,CACF;;;;;;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export { default as Button } from './Button';
2
+ export { default as CallToAction } from './CallToAction';
3
+ export { default as ErrorSummary } from './ErrorSummary';
4
+ export { default as FieldTextInput } from './FieldTextInput';
5
+ export { default as Pagination } from './Pagination';
6
+ export { default as Typography } from './Typography';