carbon-react 111.4.0 → 111.4.2

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 (49) hide show
  1. package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -0
  2. package/esm/__internal__/radio-button-mapper/radio-button-mapper.d.ts +0 -1
  3. package/esm/components/date/__internal__/date-formats/index.d.ts +3 -1
  4. package/esm/components/date/date.d.ts +1 -2
  5. package/esm/components/decimal/decimal.component.d.ts +44 -0
  6. package/esm/components/decimal/decimal.component.js +535 -93
  7. package/esm/components/decimal/index.d.ts +2 -1
  8. package/esm/components/heading/heading.style.d.ts +9 -2
  9. package/esm/components/menu/menu.d.ts +4 -1
  10. package/esm/components/multi-action-button/multi-action-button.style.js +2 -1
  11. package/esm/components/search/search.d.ts +1 -0
  12. package/esm/components/select/filterable-select/filterable-select.d.ts +2 -2
  13. package/esm/components/select/multi-select/multi-select.d.ts +2 -2
  14. package/esm/components/select/select-textbox/select-textbox.d.ts +1 -1
  15. package/esm/components/select/simple-select/simple-select.d.ts +1 -1
  16. package/esm/components/tabs/tabs.d.ts +1 -1
  17. package/esm/components/typography/index.d.ts +4 -2
  18. package/esm/components/typography/list.component.d.ts +11 -0
  19. package/esm/components/typography/list.component.js +915 -4
  20. package/esm/components/typography/typography.component.d.ts +42 -0
  21. package/esm/components/typography/typography.component.js +13 -50
  22. package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -0
  23. package/lib/__internal__/radio-button-mapper/radio-button-mapper.d.ts +0 -1
  24. package/lib/components/date/__internal__/date-formats/index.d.ts +3 -1
  25. package/lib/components/date/date.d.ts +1 -2
  26. package/lib/components/decimal/decimal.component.d.ts +44 -0
  27. package/lib/components/decimal/decimal.component.js +536 -97
  28. package/lib/components/decimal/index.d.ts +2 -1
  29. package/lib/components/heading/heading.style.d.ts +9 -2
  30. package/lib/components/menu/menu.d.ts +4 -1
  31. package/lib/components/multi-action-button/multi-action-button.style.js +2 -1
  32. package/lib/components/search/search.d.ts +1 -0
  33. package/lib/components/select/filterable-select/filterable-select.d.ts +2 -2
  34. package/lib/components/select/multi-select/multi-select.d.ts +2 -2
  35. package/lib/components/select/select-textbox/select-textbox.d.ts +1 -1
  36. package/lib/components/select/simple-select/simple-select.d.ts +1 -1
  37. package/lib/components/tabs/tabs.d.ts +1 -1
  38. package/lib/components/typography/index.d.ts +4 -2
  39. package/lib/components/typography/list.component.d.ts +11 -0
  40. package/lib/components/typography/list.component.js +914 -3
  41. package/lib/components/typography/typography.component.d.ts +42 -0
  42. package/lib/components/typography/typography.component.js +14 -52
  43. package/package.json +2 -1
  44. package/esm/components/decimal/decimal.d.ts +0 -37
  45. package/esm/components/typography/list.d.ts +0 -11
  46. package/esm/components/typography/typography.d.ts +0 -60
  47. package/lib/components/decimal/decimal.d.ts +0 -37
  48. package/lib/components/typography/list.d.ts +0 -11
  49. package/lib/components/typography/typography.d.ts +0 -60
@@ -2,18 +2,15 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useState, useEffect, useRef, useCallback, useContext } from "react";
4
4
  import PropTypes from "prop-types";
5
- import styledSystemPropTypes from "@styled-system/prop-types";
6
5
  import invariant from "invariant";
7
6
  import Textbox from "../textbox";
8
- import { filterStyledSystemMarginProps } from "../../style/utils";
9
7
  import LocaleContext from "../../__internal__/i18n-context";
10
8
  import usePrevious from "../../hooks/__internal__/usePrevious";
11
- const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
12
9
 
13
10
  const Decimal = ({
14
- align,
11
+ align = "right",
15
12
  defaultValue,
16
- precision,
13
+ precision = 2,
17
14
  inputWidth,
18
15
  readOnly,
19
16
  onChange,
@@ -21,7 +18,7 @@ const Decimal = ({
21
18
  onKeyPress,
22
19
  id,
23
20
  name,
24
- allowEmptyValue,
21
+ allowEmptyValue = false,
25
22
  required,
26
23
  locale,
27
24
  value,
@@ -40,8 +37,10 @@ const Decimal = ({
40
37
  return initialValue;
41
38
  }, [allowEmptyValue]);
42
39
  const getSeparator = useCallback(separatorType => {
40
+ var _Intl$NumberFormat$fo;
41
+
43
42
  const numberWithGroupAndDecimalSeparator = 10000.1;
44
- return Intl.NumberFormat(locale || l.locale()).formatToParts(numberWithGroupAndDecimalSeparator).find(part => part.type === separatorType).value;
43
+ return (_Intl$NumberFormat$fo = Intl.NumberFormat(locale || l.locale()).formatToParts(numberWithGroupAndDecimalSeparator).find(part => part.type === separatorType)) === null || _Intl$NumberFormat$fo === void 0 ? void 0 : _Intl$NumberFormat$fo.value;
45
44
  }, [l, locale]);
46
45
  const isNaN = useCallback(valueToTest => {
47
46
  return Number.isNaN(Number(valueToTest));
@@ -99,7 +98,9 @@ const Decimal = ({
99
98
  */
100
99
 
101
100
  const toStandardDecimal = useCallback(i18nValue => {
102
- const valueWithoutNBS = getSeparator("group").match(/\s+/) && !i18nValue.match(/\s{2,}/) ? i18nValue.replace(/\s+/g, "") : i18nValue;
101
+ var _getSeparator;
102
+
103
+ const valueWithoutNBS = (_getSeparator = getSeparator("group")) !== null && _getSeparator !== void 0 && _getSeparator.match(/\s+/) && !i18nValue.match(/\s{2,}/) ? i18nValue.replace(/\s+/g, "") : i18nValue;
103
104
  /* If a value is passed in that is a number but has too many delimiters in succession, we want to handle this
104
105
  value without formatting it or removing delimiters. We also want to consider that,
105
106
  if a value consists of only delimiters, we want to treat that
@@ -203,91 +204,532 @@ const Decimal = ({
203
204
  };
204
205
 
205
206
  Decimal.propTypes = {
206
- /** Styled-system margin props */
207
- ...marginPropTypes,
208
-
209
- /** Identifier used for testing purposes, applied to the root element of the component. */
207
+ "about": PropTypes.string,
208
+ "accept": PropTypes.string,
209
+ "accessKey": PropTypes.string,
210
+ "adaptiveLabelBreakpoint": PropTypes.number,
211
+ "align": PropTypes.oneOf(["left", "right"]),
212
+ "allowEmptyValue": PropTypes.bool,
213
+ "alt": PropTypes.string,
214
+ "aria-activedescendant": PropTypes.string,
215
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
216
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
217
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
218
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
219
+ "aria-colcount": PropTypes.number,
220
+ "aria-colindex": PropTypes.number,
221
+ "aria-colspan": PropTypes.number,
222
+ "aria-controls": PropTypes.string,
223
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
224
+ "aria-describedby": PropTypes.string,
225
+ "aria-details": PropTypes.string,
226
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
227
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
228
+ "aria-errormessage": PropTypes.string,
229
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
230
+ "aria-flowto": PropTypes.string,
231
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
232
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
233
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
234
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
235
+ "aria-keyshortcuts": PropTypes.string,
236
+ "aria-label": PropTypes.string,
237
+ "aria-labelledby": PropTypes.string,
238
+ "aria-level": PropTypes.number,
239
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
240
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
241
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
242
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
243
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
244
+ "aria-owns": PropTypes.string,
245
+ "aria-placeholder": PropTypes.string,
246
+ "aria-posinset": PropTypes.number,
247
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
248
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
249
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
250
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
251
+ "aria-roledescription": PropTypes.string,
252
+ "aria-rowcount": PropTypes.number,
253
+ "aria-rowindex": PropTypes.number,
254
+ "aria-rowspan": PropTypes.number,
255
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
256
+ "aria-setsize": PropTypes.number,
257
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
258
+ "aria-valuemax": PropTypes.number,
259
+ "aria-valuemin": PropTypes.number,
260
+ "aria-valuenow": PropTypes.number,
261
+ "aria-valuetext": PropTypes.string,
262
+ "autoCapitalize": PropTypes.string,
263
+ "autoComplete": PropTypes.string,
264
+ "autoCorrect": PropTypes.string,
265
+ "autoFocus": PropTypes.bool,
266
+ "autoSave": PropTypes.string,
267
+ "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
268
+ "checked": PropTypes.bool,
269
+ "children": PropTypes.node,
270
+ "className": PropTypes.string,
271
+ "color": PropTypes.string,
272
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
273
+ "contextMenu": PropTypes.string,
274
+ "crossOrigin": PropTypes.string,
275
+ "css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
276
+ "__emotion_styles": PropTypes.any.isRequired
277
+ }), PropTypes.string, PropTypes.bool]),
278
+ "dangerouslySetInnerHTML": PropTypes.shape({
279
+ "__html": PropTypes.string.isRequired
280
+ }),
210
281
  "data-component": PropTypes.string,
211
-
212
- /**
213
- * The default value alignment on the input
214
- */
215
- align: PropTypes.oneOf(["right", "left"]),
216
-
217
- /**
218
- * The decimal precision of the value in the input
219
- */
220
- // eslint-disable-next-line consistent-return
221
- precision: props => {
222
- if (!Number.isInteger(props.precision) || props.precision < 0 || props.precision > 15) {
223
- return new Error("Precision prop must be a number greater than 0 or equal to or less than 15.");
224
- }
225
- },
226
-
227
- /**
228
- * The width of the input as a percentage
229
- */
230
- inputWidth: PropTypes.number,
231
-
232
- /**
233
- * If true, the component will be read-only
234
- */
235
- readOnly: PropTypes.bool,
236
-
237
- /**
238
- * The default value of the input if it's meant to be used as an uncontrolled component
239
- */
240
- defaultValue: PropTypes.string,
241
-
242
- /**
243
- * The value of the input if it's used as a controlled component
244
- */
245
- value: PropTypes.string,
246
-
247
- /**
248
- * Handler for change event if input is meant to be used as a controlled component
249
- */
250
- onChange: PropTypes.func,
251
-
252
- /**
253
- * Handler for blur event
254
- */
255
- onBlur: PropTypes.func,
256
-
257
- /**
258
- * Handler for key press event
259
- */
260
- onKeyPress: PropTypes.func,
261
-
262
- /**
263
- * The input name
264
- */
265
- name: PropTypes.string,
266
-
267
- /**
268
- * The input id
269
- */
270
- id: PropTypes.string,
271
-
272
- /**
273
- * Allow an empty value instead of defaulting to 0.00
274
- */
275
- allowEmptyValue: PropTypes.bool,
276
-
277
- /** Flag to configure component as mandatory */
278
- required: PropTypes.bool,
279
-
280
- /**
281
- * Override the locale string, default from I18nProvider
282
- */
283
- locale: PropTypes.string,
284
-
285
- /** Aria label for rendered help component */
286
- helpAriaLabel: PropTypes.string
287
- };
288
- Decimal.defaultProps = {
289
- precision: 2,
290
- allowEmptyValue: false,
291
- align: "right"
282
+ "data-element": PropTypes.string,
283
+ "data-role": PropTypes.string,
284
+ "datatype": PropTypes.string,
285
+ "defaultChecked": PropTypes.bool,
286
+ "defaultValue": PropTypes.string,
287
+ "deferTimeout": PropTypes.number,
288
+ "dir": PropTypes.string,
289
+ "disabled": PropTypes.bool,
290
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
291
+ "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
292
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
293
+ "fieldHelp": PropTypes.node,
294
+ "form": PropTypes.string,
295
+ "formAction": PropTypes.string,
296
+ "formattedValue": PropTypes.string,
297
+ "formEncType": PropTypes.string,
298
+ "formMethod": PropTypes.string,
299
+ "formNoValidate": PropTypes.bool,
300
+ "formTarget": PropTypes.string,
301
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
302
+ "helpAriaLabel": PropTypes.string,
303
+ "hidden": PropTypes.bool,
304
+ "iconOnClick": PropTypes.func,
305
+ "iconOnMouseDown": PropTypes.func,
306
+ "iconTabIndex": PropTypes.number,
307
+ "id": PropTypes.string,
308
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
309
+ "inlist": PropTypes.any,
310
+ "inputIcon": PropTypes.oneOf(["add", "admin", "alert_on", "alert", "analysis", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_up", "arrow", "attach", "bank", "basket_with_squares", "basket", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_today", "calendar", "call", "camera", "card_view", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "coins", "collaborate", "computer_clock", "connect", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "gift", "go", "graph", "grid", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "italic", "key", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "person_info", "person_tick", "person", "phone", "piggy_bank", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "question_hollow", "question_mark", "question", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "sync", "tag", "talk", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "undo", "unlocked", "upload", "uploaded", "video", "view", "warning"]),
311
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
312
+ "inputRef": PropTypes.func,
313
+ "inputWidth": PropTypes.number,
314
+ "is": PropTypes.string,
315
+ "itemID": PropTypes.string,
316
+ "itemProp": PropTypes.string,
317
+ "itemRef": PropTypes.string,
318
+ "itemScope": PropTypes.bool,
319
+ "itemType": PropTypes.string,
320
+ "label": PropTypes.string,
321
+ "labelAlign": PropTypes.oneOf(["left", "right"]),
322
+ "labelHelp": PropTypes.node,
323
+ "labelInline": PropTypes.bool,
324
+ "labelSpacing": PropTypes.oneOf([1, 2]),
325
+ "labelWidth": PropTypes.number,
326
+ "lang": PropTypes.string,
327
+ "leftChildren": PropTypes.node,
328
+ "list": PropTypes.string,
329
+ "locale": PropTypes.string,
330
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
331
+ "__@toStringTag": PropTypes.string.isRequired,
332
+ "description": PropTypes.string,
333
+ "toString": PropTypes.func.isRequired,
334
+ "valueOf": PropTypes.func.isRequired
335
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
336
+ "__@toStringTag": PropTypes.string.isRequired,
337
+ "description": PropTypes.string,
338
+ "toString": PropTypes.func.isRequired,
339
+ "valueOf": PropTypes.func.isRequired
340
+ }), PropTypes.string]),
341
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
342
+ "__@toStringTag": PropTypes.string.isRequired,
343
+ "description": PropTypes.string,
344
+ "toString": PropTypes.func.isRequired,
345
+ "valueOf": PropTypes.func.isRequired
346
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
347
+ "__@toStringTag": PropTypes.string.isRequired,
348
+ "description": PropTypes.string,
349
+ "toString": PropTypes.func.isRequired,
350
+ "valueOf": PropTypes.func.isRequired
351
+ }), PropTypes.string]),
352
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
353
+ "__@toStringTag": PropTypes.string.isRequired,
354
+ "description": PropTypes.string,
355
+ "toString": PropTypes.func.isRequired,
356
+ "valueOf": PropTypes.func.isRequired
357
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
358
+ "__@toStringTag": PropTypes.string.isRequired,
359
+ "description": PropTypes.string,
360
+ "toString": PropTypes.func.isRequired,
361
+ "valueOf": PropTypes.func.isRequired
362
+ }), PropTypes.string]),
363
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
364
+ "__@toStringTag": PropTypes.string.isRequired,
365
+ "description": PropTypes.string,
366
+ "toString": PropTypes.func.isRequired,
367
+ "valueOf": PropTypes.func.isRequired
368
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
369
+ "__@toStringTag": PropTypes.string.isRequired,
370
+ "description": PropTypes.string,
371
+ "toString": PropTypes.func.isRequired,
372
+ "valueOf": PropTypes.func.isRequired
373
+ }), PropTypes.string]),
374
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
375
+ "__@toStringTag": PropTypes.string.isRequired,
376
+ "description": PropTypes.string,
377
+ "toString": PropTypes.func.isRequired,
378
+ "valueOf": PropTypes.func.isRequired
379
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
380
+ "__@toStringTag": PropTypes.string.isRequired,
381
+ "description": PropTypes.string,
382
+ "toString": PropTypes.func.isRequired,
383
+ "valueOf": PropTypes.func.isRequired
384
+ }), PropTypes.string]),
385
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
386
+ "__@toStringTag": PropTypes.string.isRequired,
387
+ "description": PropTypes.string,
388
+ "toString": PropTypes.func.isRequired,
389
+ "valueOf": PropTypes.func.isRequired
390
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
391
+ "__@toStringTag": PropTypes.string.isRequired,
392
+ "description": PropTypes.string,
393
+ "toString": PropTypes.func.isRequired,
394
+ "valueOf": PropTypes.func.isRequired
395
+ }), PropTypes.string]),
396
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
397
+ "__@toStringTag": PropTypes.string.isRequired,
398
+ "description": PropTypes.string,
399
+ "toString": PropTypes.func.isRequired,
400
+ "valueOf": PropTypes.func.isRequired
401
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
402
+ "__@toStringTag": PropTypes.string.isRequired,
403
+ "description": PropTypes.string,
404
+ "toString": PropTypes.func.isRequired,
405
+ "valueOf": PropTypes.func.isRequired
406
+ }), PropTypes.string]),
407
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
408
+ "__@toStringTag": PropTypes.string.isRequired,
409
+ "description": PropTypes.string,
410
+ "toString": PropTypes.func.isRequired,
411
+ "valueOf": PropTypes.func.isRequired
412
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
413
+ "__@toStringTag": PropTypes.string.isRequired,
414
+ "description": PropTypes.string,
415
+ "toString": PropTypes.func.isRequired,
416
+ "valueOf": PropTypes.func.isRequired
417
+ }), PropTypes.string]),
418
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
419
+ "maxLength": PropTypes.number,
420
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
421
+ "__@toStringTag": PropTypes.string.isRequired,
422
+ "description": PropTypes.string,
423
+ "toString": PropTypes.func.isRequired,
424
+ "valueOf": PropTypes.func.isRequired
425
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
426
+ "__@toStringTag": PropTypes.string.isRequired,
427
+ "description": PropTypes.string,
428
+ "toString": PropTypes.func.isRequired,
429
+ "valueOf": PropTypes.func.isRequired
430
+ }), PropTypes.string]),
431
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
432
+ "minLength": PropTypes.number,
433
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
434
+ "__@toStringTag": PropTypes.string.isRequired,
435
+ "description": PropTypes.string,
436
+ "toString": PropTypes.func.isRequired,
437
+ "valueOf": PropTypes.func.isRequired
438
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
439
+ "__@toStringTag": PropTypes.string.isRequired,
440
+ "description": PropTypes.string,
441
+ "toString": PropTypes.func.isRequired,
442
+ "valueOf": PropTypes.func.isRequired
443
+ }), PropTypes.string]),
444
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
445
+ "__@toStringTag": PropTypes.string.isRequired,
446
+ "description": PropTypes.string,
447
+ "toString": PropTypes.func.isRequired,
448
+ "valueOf": PropTypes.func.isRequired
449
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
450
+ "__@toStringTag": PropTypes.string.isRequired,
451
+ "description": PropTypes.string,
452
+ "toString": PropTypes.func.isRequired,
453
+ "valueOf": PropTypes.func.isRequired
454
+ }), PropTypes.string]),
455
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
456
+ "__@toStringTag": PropTypes.string.isRequired,
457
+ "description": PropTypes.string,
458
+ "toString": PropTypes.func.isRequired,
459
+ "valueOf": PropTypes.func.isRequired
460
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
461
+ "__@toStringTag": PropTypes.string.isRequired,
462
+ "description": PropTypes.string,
463
+ "toString": PropTypes.func.isRequired,
464
+ "valueOf": PropTypes.func.isRequired
465
+ }), PropTypes.string]),
466
+ "multiple": PropTypes.bool,
467
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
468
+ "__@toStringTag": PropTypes.string.isRequired,
469
+ "description": PropTypes.string,
470
+ "toString": PropTypes.func.isRequired,
471
+ "valueOf": PropTypes.func.isRequired
472
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
473
+ "__@toStringTag": PropTypes.string.isRequired,
474
+ "description": PropTypes.string,
475
+ "toString": PropTypes.func.isRequired,
476
+ "valueOf": PropTypes.func.isRequired
477
+ }), PropTypes.string]),
478
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
479
+ "__@toStringTag": PropTypes.string.isRequired,
480
+ "description": PropTypes.string,
481
+ "toString": PropTypes.func.isRequired,
482
+ "valueOf": PropTypes.func.isRequired
483
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
484
+ "__@toStringTag": PropTypes.string.isRequired,
485
+ "description": PropTypes.string,
486
+ "toString": PropTypes.func.isRequired,
487
+ "valueOf": PropTypes.func.isRequired
488
+ }), PropTypes.string]),
489
+ "name": PropTypes.string,
490
+ "onAbort": PropTypes.func,
491
+ "onAbortCapture": PropTypes.func,
492
+ "onAnimationEnd": PropTypes.func,
493
+ "onAnimationEndCapture": PropTypes.func,
494
+ "onAnimationIteration": PropTypes.func,
495
+ "onAnimationIterationCapture": PropTypes.func,
496
+ "onAnimationStart": PropTypes.func,
497
+ "onAnimationStartCapture": PropTypes.func,
498
+ "onAuxClick": PropTypes.func,
499
+ "onAuxClickCapture": PropTypes.func,
500
+ "onBeforeInput": PropTypes.func,
501
+ "onBeforeInputCapture": PropTypes.func,
502
+ "onBlur": PropTypes.func,
503
+ "onBlurCapture": PropTypes.func,
504
+ "onCanPlay": PropTypes.func,
505
+ "onCanPlayCapture": PropTypes.func,
506
+ "onCanPlayThrough": PropTypes.func,
507
+ "onCanPlayThroughCapture": PropTypes.func,
508
+ "onChange": PropTypes.func,
509
+ "onChangeCapture": PropTypes.func,
510
+ "onChangeDeferred": PropTypes.func,
511
+ "onClick": PropTypes.func,
512
+ "onClickCapture": PropTypes.func,
513
+ "onCompositionEnd": PropTypes.func,
514
+ "onCompositionEndCapture": PropTypes.func,
515
+ "onCompositionStart": PropTypes.func,
516
+ "onCompositionStartCapture": PropTypes.func,
517
+ "onCompositionUpdate": PropTypes.func,
518
+ "onCompositionUpdateCapture": PropTypes.func,
519
+ "onContextMenu": PropTypes.func,
520
+ "onContextMenuCapture": PropTypes.func,
521
+ "onCopy": PropTypes.func,
522
+ "onCopyCapture": PropTypes.func,
523
+ "onCut": PropTypes.func,
524
+ "onCutCapture": PropTypes.func,
525
+ "onDoubleClick": PropTypes.func,
526
+ "onDoubleClickCapture": PropTypes.func,
527
+ "onDrag": PropTypes.func,
528
+ "onDragCapture": PropTypes.func,
529
+ "onDragEnd": PropTypes.func,
530
+ "onDragEndCapture": PropTypes.func,
531
+ "onDragEnter": PropTypes.func,
532
+ "onDragEnterCapture": PropTypes.func,
533
+ "onDragExit": PropTypes.func,
534
+ "onDragExitCapture": PropTypes.func,
535
+ "onDragLeave": PropTypes.func,
536
+ "onDragLeaveCapture": PropTypes.func,
537
+ "onDragOver": PropTypes.func,
538
+ "onDragOverCapture": PropTypes.func,
539
+ "onDragStart": PropTypes.func,
540
+ "onDragStartCapture": PropTypes.func,
541
+ "onDrop": PropTypes.func,
542
+ "onDropCapture": PropTypes.func,
543
+ "onDurationChange": PropTypes.func,
544
+ "onDurationChangeCapture": PropTypes.func,
545
+ "onEmptied": PropTypes.func,
546
+ "onEmptiedCapture": PropTypes.func,
547
+ "onEncrypted": PropTypes.func,
548
+ "onEncryptedCapture": PropTypes.func,
549
+ "onEnded": PropTypes.func,
550
+ "onEndedCapture": PropTypes.func,
551
+ "onError": PropTypes.func,
552
+ "onErrorCapture": PropTypes.func,
553
+ "onFocus": PropTypes.func,
554
+ "onFocusCapture": PropTypes.func,
555
+ "onGotPointerCapture": PropTypes.func,
556
+ "onGotPointerCaptureCapture": PropTypes.func,
557
+ "onInput": PropTypes.func,
558
+ "onInputCapture": PropTypes.func,
559
+ "onInvalid": PropTypes.func,
560
+ "onInvalidCapture": PropTypes.func,
561
+ "onKeyDown": PropTypes.func,
562
+ "onKeyDownCapture": PropTypes.func,
563
+ "onKeyPress": PropTypes.func,
564
+ "onKeyPressCapture": PropTypes.func,
565
+ "onKeyUp": PropTypes.func,
566
+ "onKeyUpCapture": PropTypes.func,
567
+ "onLoad": PropTypes.func,
568
+ "onLoadCapture": PropTypes.func,
569
+ "onLoadedData": PropTypes.func,
570
+ "onLoadedDataCapture": PropTypes.func,
571
+ "onLoadedMetadata": PropTypes.func,
572
+ "onLoadedMetadataCapture": PropTypes.func,
573
+ "onLoadStart": PropTypes.func,
574
+ "onLoadStartCapture": PropTypes.func,
575
+ "onLostPointerCapture": PropTypes.func,
576
+ "onLostPointerCaptureCapture": PropTypes.func,
577
+ "onMouseDown": PropTypes.func,
578
+ "onMouseDownCapture": PropTypes.func,
579
+ "onMouseEnter": PropTypes.func,
580
+ "onMouseLeave": PropTypes.func,
581
+ "onMouseMove": PropTypes.func,
582
+ "onMouseMoveCapture": PropTypes.func,
583
+ "onMouseOut": PropTypes.func,
584
+ "onMouseOutCapture": PropTypes.func,
585
+ "onMouseOver": PropTypes.func,
586
+ "onMouseOverCapture": PropTypes.func,
587
+ "onMouseUp": PropTypes.func,
588
+ "onMouseUpCapture": PropTypes.func,
589
+ "onPaste": PropTypes.func,
590
+ "onPasteCapture": PropTypes.func,
591
+ "onPause": PropTypes.func,
592
+ "onPauseCapture": PropTypes.func,
593
+ "onPlay": PropTypes.func,
594
+ "onPlayCapture": PropTypes.func,
595
+ "onPlaying": PropTypes.func,
596
+ "onPlayingCapture": PropTypes.func,
597
+ "onPointerCancel": PropTypes.func,
598
+ "onPointerCancelCapture": PropTypes.func,
599
+ "onPointerDown": PropTypes.func,
600
+ "onPointerDownCapture": PropTypes.func,
601
+ "onPointerEnter": PropTypes.func,
602
+ "onPointerEnterCapture": PropTypes.func,
603
+ "onPointerLeave": PropTypes.func,
604
+ "onPointerLeaveCapture": PropTypes.func,
605
+ "onPointerMove": PropTypes.func,
606
+ "onPointerMoveCapture": PropTypes.func,
607
+ "onPointerOut": PropTypes.func,
608
+ "onPointerOutCapture": PropTypes.func,
609
+ "onPointerOver": PropTypes.func,
610
+ "onPointerOverCapture": PropTypes.func,
611
+ "onPointerUp": PropTypes.func,
612
+ "onPointerUpCapture": PropTypes.func,
613
+ "onProgress": PropTypes.func,
614
+ "onProgressCapture": PropTypes.func,
615
+ "onRateChange": PropTypes.func,
616
+ "onRateChangeCapture": PropTypes.func,
617
+ "onReset": PropTypes.func,
618
+ "onResetCapture": PropTypes.func,
619
+ "onScroll": PropTypes.func,
620
+ "onScrollCapture": PropTypes.func,
621
+ "onSeeked": PropTypes.func,
622
+ "onSeekedCapture": PropTypes.func,
623
+ "onSeeking": PropTypes.func,
624
+ "onSeekingCapture": PropTypes.func,
625
+ "onSelect": PropTypes.func,
626
+ "onSelectCapture": PropTypes.func,
627
+ "onStalled": PropTypes.func,
628
+ "onStalledCapture": PropTypes.func,
629
+ "onSubmit": PropTypes.func,
630
+ "onSubmitCapture": PropTypes.func,
631
+ "onSuspend": PropTypes.func,
632
+ "onSuspendCapture": PropTypes.func,
633
+ "onTimeUpdate": PropTypes.func,
634
+ "onTimeUpdateCapture": PropTypes.func,
635
+ "onTouchCancel": PropTypes.func,
636
+ "onTouchCancelCapture": PropTypes.func,
637
+ "onTouchEnd": PropTypes.func,
638
+ "onTouchEndCapture": PropTypes.func,
639
+ "onTouchMove": PropTypes.func,
640
+ "onTouchMoveCapture": PropTypes.func,
641
+ "onTouchStart": PropTypes.func,
642
+ "onTouchStartCapture": PropTypes.func,
643
+ "onTransitionEnd": PropTypes.func,
644
+ "onTransitionEndCapture": PropTypes.func,
645
+ "onVolumeChange": PropTypes.func,
646
+ "onVolumeChangeCapture": PropTypes.func,
647
+ "onWaiting": PropTypes.func,
648
+ "onWaitingCapture": PropTypes.func,
649
+ "onWheel": PropTypes.func,
650
+ "onWheelCapture": PropTypes.func,
651
+ "pattern": PropTypes.string,
652
+ "placeholder": PropTypes.string,
653
+ "precision": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]),
654
+ "prefix": PropTypes.string,
655
+ "property": PropTypes.string,
656
+ "radioGroup": PropTypes.string,
657
+ "readOnly": PropTypes.bool,
658
+ "required": PropTypes.bool,
659
+ "resource": PropTypes.string,
660
+ "results": PropTypes.number,
661
+ "reverse": PropTypes.bool,
662
+ "role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
663
+ "__@iterator": PropTypes.func.isRequired,
664
+ "anchor": PropTypes.func.isRequired,
665
+ "at": PropTypes.func.isRequired,
666
+ "big": PropTypes.func.isRequired,
667
+ "blink": PropTypes.func.isRequired,
668
+ "bold": PropTypes.func.isRequired,
669
+ "charAt": PropTypes.func.isRequired,
670
+ "charCodeAt": PropTypes.func.isRequired,
671
+ "codePointAt": PropTypes.func.isRequired,
672
+ "concat": PropTypes.func.isRequired,
673
+ "endsWith": PropTypes.func.isRequired,
674
+ "fixed": PropTypes.func.isRequired,
675
+ "fontcolor": PropTypes.func.isRequired,
676
+ "fontsize": PropTypes.func.isRequired,
677
+ "includes": PropTypes.func.isRequired,
678
+ "indexOf": PropTypes.func.isRequired,
679
+ "italics": PropTypes.func.isRequired,
680
+ "lastIndexOf": PropTypes.func.isRequired,
681
+ "length": PropTypes.number.isRequired,
682
+ "link": PropTypes.func.isRequired,
683
+ "localeCompare": PropTypes.func.isRequired,
684
+ "match": PropTypes.func.isRequired,
685
+ "matchAll": PropTypes.func.isRequired,
686
+ "normalize": PropTypes.func.isRequired,
687
+ "padEnd": PropTypes.func.isRequired,
688
+ "padStart": PropTypes.func.isRequired,
689
+ "repeat": PropTypes.func.isRequired,
690
+ "replace": PropTypes.func.isRequired,
691
+ "search": PropTypes.func.isRequired,
692
+ "slice": PropTypes.func.isRequired,
693
+ "small": PropTypes.func.isRequired,
694
+ "split": PropTypes.func.isRequired,
695
+ "startsWith": PropTypes.func.isRequired,
696
+ "strike": PropTypes.func.isRequired,
697
+ "sub": PropTypes.func.isRequired,
698
+ "substr": PropTypes.func.isRequired,
699
+ "substring": PropTypes.func.isRequired,
700
+ "sup": PropTypes.func.isRequired,
701
+ "toLocaleLowerCase": PropTypes.func.isRequired,
702
+ "toLocaleUpperCase": PropTypes.func.isRequired,
703
+ "toLowerCase": PropTypes.func.isRequired,
704
+ "toString": PropTypes.func.isRequired,
705
+ "toUpperCase": PropTypes.func.isRequired,
706
+ "trim": PropTypes.func.isRequired,
707
+ "trimEnd": PropTypes.func.isRequired,
708
+ "trimLeft": PropTypes.func.isRequired,
709
+ "trimRight": PropTypes.func.isRequired,
710
+ "trimStart": PropTypes.func.isRequired,
711
+ "valueOf": PropTypes.func.isRequired
712
+ })]),
713
+ "security": PropTypes.string,
714
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
715
+ "slot": PropTypes.string,
716
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
717
+ "src": PropTypes.string,
718
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
719
+ "style": PropTypes.object,
720
+ "suppressContentEditableWarning": PropTypes.bool,
721
+ "suppressHydrationWarning": PropTypes.bool,
722
+ "tabIndex": PropTypes.number,
723
+ "title": PropTypes.string,
724
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
725
+ "translate": PropTypes.oneOf(["no", "yes"]),
726
+ "typeof": PropTypes.string,
727
+ "unselectable": PropTypes.oneOf(["off", "on"]),
728
+ "validationOnLabel": PropTypes.bool,
729
+ "value": PropTypes.string,
730
+ "vocab": PropTypes.string,
731
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
732
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
292
733
  };
734
+ export { Decimal };
293
735
  export default Decimal;