carbon-react 111.9.0 → 111.9.1

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.
@@ -2,11 +2,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useState } from "react";
4
4
  import PropTypes from "prop-types";
5
- import styledSystemPropTypes from "@styled-system/prop-types";
6
5
  import Textbox from "../textbox";
7
- import { filterStyledSystemMarginProps } from "../../style/utils";
8
6
  import { generateGroups, toSum } from "./grouped-character.utils";
9
- const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
10
7
 
11
8
  const buildCustomTarget = ({
12
9
  target
@@ -53,11 +50,11 @@ const GroupedCharacter = ({
53
50
  const {
54
51
  selectionEnd
55
52
  } = target;
56
- let newCursorPos = selectionEnd;
53
+ let newCursorPos = selectionEnd ?? 0;
57
54
  const rawValue = sanitizeValue(target.value);
58
55
  const formattedValue = formatValue(rawValue);
59
56
  const isLastPosition = target.value.length === newCursorPos;
60
- const isAtOneBeyondSeparator = formattedValue[selectionEnd - 1] === separator;
57
+ const isAtOneBeyondSeparator = formattedValue[newCursorPos - 1] === separator;
61
58
 
62
59
  if (isLastPosition) {
63
60
  const targetValSeparatorCount = target.value.split(separator).length - 1;
@@ -69,11 +66,12 @@ const GroupedCharacter = ({
69
66
  newCursorPos += isDeleting ? -1 : 1;
70
67
  }
71
68
 
72
- ev.target = buildCustomTarget(ev, {
69
+ const modifiedEvent = ev;
70
+ modifiedEvent.target = buildCustomTarget(ev, {
73
71
  rawValue,
74
72
  formattedValue
75
73
  });
76
- onChange(ev);
74
+ onChange === null || onChange === void 0 ? void 0 : onChange(modifiedEvent);
77
75
 
78
76
  if (!isControlled) {
79
77
  setInternalValue(rawValue);
@@ -89,11 +87,12 @@ const GroupedCharacter = ({
89
87
  } = ev;
90
88
  const rawValue = sanitizeValue(target.value);
91
89
  const formattedValue = formatValue(rawValue);
92
- ev.target = buildCustomTarget(ev, {
90
+ const modifiedEvent = ev;
91
+ modifiedEvent.target = buildCustomTarget(ev, {
93
92
  rawValue,
94
93
  formattedValue
95
94
  });
96
- onBlur(ev);
95
+ onBlur(modifiedEvent);
97
96
  }
98
97
  };
99
98
 
@@ -102,7 +101,9 @@ const GroupedCharacter = ({
102
101
  selectionStart,
103
102
  selectionEnd
104
103
  } = ev.target;
105
- const hasSelection = selectionEnd - selectionStart > 0;
104
+ /* istanbul ignore next */
105
+
106
+ const hasSelection = (selectionEnd ?? 0) - (selectionStart ?? 0) > 0;
106
107
 
107
108
  if (maxRawLength === value.length && !hasSelection) {
108
109
  ev.preventDefault();
@@ -118,36 +119,538 @@ const GroupedCharacter = ({
118
119
  }));
119
120
  };
120
121
 
121
- GroupedCharacter.propTypes = { ...marginPropTypes,
122
-
123
- /** character to be used as separator - has to be a 1 character string */
124
- separator: (props, propName, componentName) => {
125
- if (typeof props[propName] !== "string" || props[propName].length > 1) {
126
- return new Error(`Invalid prop ${propName} supplied to ${componentName}. Must be string of length 1.`);
127
- }
128
-
129
- return null;
130
- },
131
-
132
- /** pattern by which input value should be grouped */
133
- groups: PropTypes.array,
134
-
135
- /** Input value if component is meant to be used as a controlled component */
136
- value: PropTypes.string,
137
-
138
- /** Default input value if component is meant to be used as an uncontrolled component */
139
- defaultValue: PropTypes.string,
140
-
141
- /** on change handler which receives the event with object as a value containing rawValue and formattedValue */
142
- onChange: PropTypes.func,
143
-
144
- /** on blur handler which receives the event with object as a value containing rawValue and formattedValue */
145
- onBlur: PropTypes.func,
146
-
147
- /** Flag to configure component as mandatory */
148
- required: PropTypes.bool,
149
-
150
- /** Aria label for rendered help component */
151
- helpAriaLabel: PropTypes.string
122
+ GroupedCharacter.propTypes = {
123
+ "about": PropTypes.string,
124
+ "accept": PropTypes.string,
125
+ "accessKey": PropTypes.string,
126
+ "adaptiveLabelBreakpoint": PropTypes.number,
127
+ "align": PropTypes.oneOf(["left", "right"]),
128
+ "alt": PropTypes.string,
129
+ "aria-activedescendant": PropTypes.string,
130
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
131
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
132
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
133
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
134
+ "aria-colcount": PropTypes.number,
135
+ "aria-colindex": PropTypes.number,
136
+ "aria-colspan": PropTypes.number,
137
+ "aria-controls": PropTypes.string,
138
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
139
+ "aria-describedby": PropTypes.string,
140
+ "aria-details": PropTypes.string,
141
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
142
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
143
+ "aria-errormessage": PropTypes.string,
144
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
145
+ "aria-flowto": PropTypes.string,
146
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
147
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
148
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
149
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
150
+ "aria-keyshortcuts": PropTypes.string,
151
+ "aria-label": PropTypes.string,
152
+ "aria-labelledby": PropTypes.string,
153
+ "aria-level": PropTypes.number,
154
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
155
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
156
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
157
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
158
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
159
+ "aria-owns": PropTypes.string,
160
+ "aria-placeholder": PropTypes.string,
161
+ "aria-posinset": PropTypes.number,
162
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
163
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
164
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
165
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
166
+ "aria-roledescription": PropTypes.string,
167
+ "aria-rowcount": PropTypes.number,
168
+ "aria-rowindex": PropTypes.number,
169
+ "aria-rowspan": PropTypes.number,
170
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
171
+ "aria-setsize": PropTypes.number,
172
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
173
+ "aria-valuemax": PropTypes.number,
174
+ "aria-valuemin": PropTypes.number,
175
+ "aria-valuenow": PropTypes.number,
176
+ "aria-valuetext": PropTypes.string,
177
+ "autoCapitalize": PropTypes.string,
178
+ "autoComplete": PropTypes.string,
179
+ "autoCorrect": PropTypes.string,
180
+ "autoFocus": PropTypes.bool,
181
+ "autoSave": PropTypes.string,
182
+ "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
183
+ "characterLimit": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
184
+ "checked": PropTypes.bool,
185
+ "children": PropTypes.node,
186
+ "className": PropTypes.string,
187
+ "color": PropTypes.string,
188
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
189
+ "contextMenu": PropTypes.string,
190
+ "crossOrigin": PropTypes.string,
191
+ "css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
192
+ "__emotion_styles": PropTypes.any.isRequired
193
+ }), PropTypes.string, PropTypes.bool]),
194
+ "dangerouslySetInnerHTML": PropTypes.shape({
195
+ "__html": PropTypes.string.isRequired
196
+ }),
197
+ "data-component": PropTypes.string,
198
+ "data-element": PropTypes.string,
199
+ "data-role": PropTypes.string,
200
+ "datatype": PropTypes.string,
201
+ "defaultChecked": PropTypes.bool,
202
+ "defaultValue": PropTypes.string,
203
+ "deferTimeout": PropTypes.number,
204
+ "dir": PropTypes.string,
205
+ "disabled": PropTypes.bool,
206
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
207
+ "enforceCharacterLimit": PropTypes.bool,
208
+ "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
209
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
210
+ "fieldHelp": PropTypes.node,
211
+ "form": PropTypes.string,
212
+ "formAction": PropTypes.string,
213
+ "formattedValue": PropTypes.string,
214
+ "formEncType": PropTypes.string,
215
+ "formMethod": PropTypes.string,
216
+ "formNoValidate": PropTypes.bool,
217
+ "formTarget": PropTypes.string,
218
+ "groups": PropTypes.arrayOf(PropTypes.number).isRequired,
219
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
220
+ "helpAriaLabel": PropTypes.string,
221
+ "hidden": PropTypes.bool,
222
+ "iconOnClick": PropTypes.func,
223
+ "iconOnMouseDown": PropTypes.func,
224
+ "iconTabIndex": PropTypes.number,
225
+ "id": PropTypes.string,
226
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
227
+ "inlist": PropTypes.any,
228
+ "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"]),
229
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
230
+ "inputRef": PropTypes.func,
231
+ "inputWidth": PropTypes.number,
232
+ "is": PropTypes.string,
233
+ "isOptional": PropTypes.bool,
234
+ "itemID": PropTypes.string,
235
+ "itemProp": PropTypes.string,
236
+ "itemRef": PropTypes.string,
237
+ "itemScope": PropTypes.bool,
238
+ "itemType": PropTypes.string,
239
+ "label": PropTypes.string,
240
+ "labelAlign": PropTypes.oneOf(["left", "right"]),
241
+ "labelHelp": PropTypes.node,
242
+ "labelId": PropTypes.string,
243
+ "labelInline": PropTypes.bool,
244
+ "labelSpacing": PropTypes.oneOf([1, 2]),
245
+ "labelWidth": PropTypes.number,
246
+ "lang": PropTypes.string,
247
+ "leftChildren": PropTypes.node,
248
+ "list": PropTypes.string,
249
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
250
+ "__@toStringTag": PropTypes.string.isRequired,
251
+ "description": PropTypes.string,
252
+ "toString": PropTypes.func.isRequired,
253
+ "valueOf": PropTypes.func.isRequired
254
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
255
+ "__@toStringTag": PropTypes.string.isRequired,
256
+ "description": PropTypes.string,
257
+ "toString": PropTypes.func.isRequired,
258
+ "valueOf": PropTypes.func.isRequired
259
+ }), PropTypes.string]),
260
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
261
+ "__@toStringTag": PropTypes.string.isRequired,
262
+ "description": PropTypes.string,
263
+ "toString": PropTypes.func.isRequired,
264
+ "valueOf": PropTypes.func.isRequired
265
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
266
+ "__@toStringTag": PropTypes.string.isRequired,
267
+ "description": PropTypes.string,
268
+ "toString": PropTypes.func.isRequired,
269
+ "valueOf": PropTypes.func.isRequired
270
+ }), PropTypes.string]),
271
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
272
+ "__@toStringTag": PropTypes.string.isRequired,
273
+ "description": PropTypes.string,
274
+ "toString": PropTypes.func.isRequired,
275
+ "valueOf": PropTypes.func.isRequired
276
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
277
+ "__@toStringTag": PropTypes.string.isRequired,
278
+ "description": PropTypes.string,
279
+ "toString": PropTypes.func.isRequired,
280
+ "valueOf": PropTypes.func.isRequired
281
+ }), PropTypes.string]),
282
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
283
+ "__@toStringTag": PropTypes.string.isRequired,
284
+ "description": PropTypes.string,
285
+ "toString": PropTypes.func.isRequired,
286
+ "valueOf": PropTypes.func.isRequired
287
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
288
+ "__@toStringTag": PropTypes.string.isRequired,
289
+ "description": PropTypes.string,
290
+ "toString": PropTypes.func.isRequired,
291
+ "valueOf": PropTypes.func.isRequired
292
+ }), PropTypes.string]),
293
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
294
+ "__@toStringTag": PropTypes.string.isRequired,
295
+ "description": PropTypes.string,
296
+ "toString": PropTypes.func.isRequired,
297
+ "valueOf": PropTypes.func.isRequired
298
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
299
+ "__@toStringTag": PropTypes.string.isRequired,
300
+ "description": PropTypes.string,
301
+ "toString": PropTypes.func.isRequired,
302
+ "valueOf": PropTypes.func.isRequired
303
+ }), PropTypes.string]),
304
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
305
+ "__@toStringTag": PropTypes.string.isRequired,
306
+ "description": PropTypes.string,
307
+ "toString": PropTypes.func.isRequired,
308
+ "valueOf": PropTypes.func.isRequired
309
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
310
+ "__@toStringTag": PropTypes.string.isRequired,
311
+ "description": PropTypes.string,
312
+ "toString": PropTypes.func.isRequired,
313
+ "valueOf": PropTypes.func.isRequired
314
+ }), PropTypes.string]),
315
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
316
+ "__@toStringTag": PropTypes.string.isRequired,
317
+ "description": PropTypes.string,
318
+ "toString": PropTypes.func.isRequired,
319
+ "valueOf": PropTypes.func.isRequired
320
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
321
+ "__@toStringTag": PropTypes.string.isRequired,
322
+ "description": PropTypes.string,
323
+ "toString": PropTypes.func.isRequired,
324
+ "valueOf": PropTypes.func.isRequired
325
+ }), PropTypes.string]),
326
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
327
+ "__@toStringTag": PropTypes.string.isRequired,
328
+ "description": PropTypes.string,
329
+ "toString": PropTypes.func.isRequired,
330
+ "valueOf": PropTypes.func.isRequired
331
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
332
+ "__@toStringTag": PropTypes.string.isRequired,
333
+ "description": PropTypes.string,
334
+ "toString": PropTypes.func.isRequired,
335
+ "valueOf": PropTypes.func.isRequired
336
+ }), PropTypes.string]),
337
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
338
+ "maxLength": PropTypes.number,
339
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
340
+ "__@toStringTag": PropTypes.string.isRequired,
341
+ "description": PropTypes.string,
342
+ "toString": PropTypes.func.isRequired,
343
+ "valueOf": PropTypes.func.isRequired
344
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
345
+ "__@toStringTag": PropTypes.string.isRequired,
346
+ "description": PropTypes.string,
347
+ "toString": PropTypes.func.isRequired,
348
+ "valueOf": PropTypes.func.isRequired
349
+ }), PropTypes.string]),
350
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
351
+ "minLength": PropTypes.number,
352
+ "ml": 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
+ "mr": 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
+ "mt": 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
+ "multiple": PropTypes.bool,
386
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
387
+ "__@toStringTag": PropTypes.string.isRequired,
388
+ "description": PropTypes.string,
389
+ "toString": PropTypes.func.isRequired,
390
+ "valueOf": PropTypes.func.isRequired
391
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
392
+ "__@toStringTag": PropTypes.string.isRequired,
393
+ "description": PropTypes.string,
394
+ "toString": PropTypes.func.isRequired,
395
+ "valueOf": PropTypes.func.isRequired
396
+ }), PropTypes.string]),
397
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
398
+ "__@toStringTag": PropTypes.string.isRequired,
399
+ "description": PropTypes.string,
400
+ "toString": PropTypes.func.isRequired,
401
+ "valueOf": PropTypes.func.isRequired
402
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
403
+ "__@toStringTag": PropTypes.string.isRequired,
404
+ "description": PropTypes.string,
405
+ "toString": PropTypes.func.isRequired,
406
+ "valueOf": PropTypes.func.isRequired
407
+ }), PropTypes.string]),
408
+ "name": PropTypes.string,
409
+ "onAbort": PropTypes.func,
410
+ "onAbortCapture": PropTypes.func,
411
+ "onAnimationEnd": PropTypes.func,
412
+ "onAnimationEndCapture": PropTypes.func,
413
+ "onAnimationIteration": PropTypes.func,
414
+ "onAnimationIterationCapture": PropTypes.func,
415
+ "onAnimationStart": PropTypes.func,
416
+ "onAnimationStartCapture": PropTypes.func,
417
+ "onAuxClick": PropTypes.func,
418
+ "onAuxClickCapture": PropTypes.func,
419
+ "onBeforeInput": PropTypes.func,
420
+ "onBeforeInputCapture": PropTypes.func,
421
+ "onBlur": PropTypes.func,
422
+ "onBlurCapture": PropTypes.func,
423
+ "onCanPlay": PropTypes.func,
424
+ "onCanPlayCapture": PropTypes.func,
425
+ "onCanPlayThrough": PropTypes.func,
426
+ "onCanPlayThroughCapture": PropTypes.func,
427
+ "onChange": PropTypes.func,
428
+ "onChangeCapture": PropTypes.func,
429
+ "onChangeDeferred": PropTypes.func,
430
+ "onClick": PropTypes.func,
431
+ "onClickCapture": PropTypes.func,
432
+ "onCompositionEnd": PropTypes.func,
433
+ "onCompositionEndCapture": PropTypes.func,
434
+ "onCompositionStart": PropTypes.func,
435
+ "onCompositionStartCapture": PropTypes.func,
436
+ "onCompositionUpdate": PropTypes.func,
437
+ "onCompositionUpdateCapture": PropTypes.func,
438
+ "onContextMenu": PropTypes.func,
439
+ "onContextMenuCapture": PropTypes.func,
440
+ "onCopy": PropTypes.func,
441
+ "onCopyCapture": PropTypes.func,
442
+ "onCut": PropTypes.func,
443
+ "onCutCapture": PropTypes.func,
444
+ "onDoubleClick": PropTypes.func,
445
+ "onDoubleClickCapture": PropTypes.func,
446
+ "onDrag": PropTypes.func,
447
+ "onDragCapture": PropTypes.func,
448
+ "onDragEnd": PropTypes.func,
449
+ "onDragEndCapture": PropTypes.func,
450
+ "onDragEnter": PropTypes.func,
451
+ "onDragEnterCapture": PropTypes.func,
452
+ "onDragExit": PropTypes.func,
453
+ "onDragExitCapture": PropTypes.func,
454
+ "onDragLeave": PropTypes.func,
455
+ "onDragLeaveCapture": PropTypes.func,
456
+ "onDragOver": PropTypes.func,
457
+ "onDragOverCapture": PropTypes.func,
458
+ "onDragStart": PropTypes.func,
459
+ "onDragStartCapture": PropTypes.func,
460
+ "onDrop": PropTypes.func,
461
+ "onDropCapture": PropTypes.func,
462
+ "onDurationChange": PropTypes.func,
463
+ "onDurationChangeCapture": PropTypes.func,
464
+ "onEmptied": PropTypes.func,
465
+ "onEmptiedCapture": PropTypes.func,
466
+ "onEncrypted": PropTypes.func,
467
+ "onEncryptedCapture": PropTypes.func,
468
+ "onEnded": PropTypes.func,
469
+ "onEndedCapture": PropTypes.func,
470
+ "onError": PropTypes.func,
471
+ "onErrorCapture": PropTypes.func,
472
+ "onFocus": PropTypes.func,
473
+ "onFocusCapture": PropTypes.func,
474
+ "onGotPointerCapture": PropTypes.func,
475
+ "onGotPointerCaptureCapture": PropTypes.func,
476
+ "onInput": PropTypes.func,
477
+ "onInputCapture": PropTypes.func,
478
+ "onInvalid": PropTypes.func,
479
+ "onInvalidCapture": PropTypes.func,
480
+ "onKeyDown": PropTypes.func,
481
+ "onKeyDownCapture": PropTypes.func,
482
+ "onKeyPress": PropTypes.func,
483
+ "onKeyPressCapture": PropTypes.func,
484
+ "onKeyUp": PropTypes.func,
485
+ "onKeyUpCapture": PropTypes.func,
486
+ "onLoad": PropTypes.func,
487
+ "onLoadCapture": PropTypes.func,
488
+ "onLoadedData": PropTypes.func,
489
+ "onLoadedDataCapture": PropTypes.func,
490
+ "onLoadedMetadata": PropTypes.func,
491
+ "onLoadedMetadataCapture": PropTypes.func,
492
+ "onLoadStart": PropTypes.func,
493
+ "onLoadStartCapture": PropTypes.func,
494
+ "onLostPointerCapture": PropTypes.func,
495
+ "onLostPointerCaptureCapture": PropTypes.func,
496
+ "onMouseDown": PropTypes.func,
497
+ "onMouseDownCapture": PropTypes.func,
498
+ "onMouseEnter": PropTypes.func,
499
+ "onMouseLeave": PropTypes.func,
500
+ "onMouseMove": PropTypes.func,
501
+ "onMouseMoveCapture": PropTypes.func,
502
+ "onMouseOut": PropTypes.func,
503
+ "onMouseOutCapture": PropTypes.func,
504
+ "onMouseOver": PropTypes.func,
505
+ "onMouseOverCapture": PropTypes.func,
506
+ "onMouseUp": PropTypes.func,
507
+ "onMouseUpCapture": PropTypes.func,
508
+ "onPaste": PropTypes.func,
509
+ "onPasteCapture": PropTypes.func,
510
+ "onPause": PropTypes.func,
511
+ "onPauseCapture": PropTypes.func,
512
+ "onPlay": PropTypes.func,
513
+ "onPlayCapture": PropTypes.func,
514
+ "onPlaying": PropTypes.func,
515
+ "onPlayingCapture": PropTypes.func,
516
+ "onPointerCancel": PropTypes.func,
517
+ "onPointerCancelCapture": PropTypes.func,
518
+ "onPointerDown": PropTypes.func,
519
+ "onPointerDownCapture": PropTypes.func,
520
+ "onPointerEnter": PropTypes.func,
521
+ "onPointerEnterCapture": PropTypes.func,
522
+ "onPointerLeave": PropTypes.func,
523
+ "onPointerLeaveCapture": PropTypes.func,
524
+ "onPointerMove": PropTypes.func,
525
+ "onPointerMoveCapture": PropTypes.func,
526
+ "onPointerOut": PropTypes.func,
527
+ "onPointerOutCapture": PropTypes.func,
528
+ "onPointerOver": PropTypes.func,
529
+ "onPointerOverCapture": PropTypes.func,
530
+ "onPointerUp": PropTypes.func,
531
+ "onPointerUpCapture": PropTypes.func,
532
+ "onProgress": PropTypes.func,
533
+ "onProgressCapture": PropTypes.func,
534
+ "onRateChange": PropTypes.func,
535
+ "onRateChangeCapture": PropTypes.func,
536
+ "onReset": PropTypes.func,
537
+ "onResetCapture": PropTypes.func,
538
+ "onScroll": PropTypes.func,
539
+ "onScrollCapture": PropTypes.func,
540
+ "onSeeked": PropTypes.func,
541
+ "onSeekedCapture": PropTypes.func,
542
+ "onSeeking": PropTypes.func,
543
+ "onSeekingCapture": PropTypes.func,
544
+ "onSelect": PropTypes.func,
545
+ "onSelectCapture": PropTypes.func,
546
+ "onStalled": PropTypes.func,
547
+ "onStalledCapture": PropTypes.func,
548
+ "onSubmit": PropTypes.func,
549
+ "onSubmitCapture": PropTypes.func,
550
+ "onSuspend": PropTypes.func,
551
+ "onSuspendCapture": PropTypes.func,
552
+ "onTimeUpdate": PropTypes.func,
553
+ "onTimeUpdateCapture": PropTypes.func,
554
+ "onTouchCancel": PropTypes.func,
555
+ "onTouchCancelCapture": PropTypes.func,
556
+ "onTouchEnd": PropTypes.func,
557
+ "onTouchEndCapture": PropTypes.func,
558
+ "onTouchMove": PropTypes.func,
559
+ "onTouchMoveCapture": PropTypes.func,
560
+ "onTouchStart": PropTypes.func,
561
+ "onTouchStartCapture": PropTypes.func,
562
+ "onTransitionEnd": PropTypes.func,
563
+ "onTransitionEndCapture": PropTypes.func,
564
+ "onVolumeChange": PropTypes.func,
565
+ "onVolumeChangeCapture": PropTypes.func,
566
+ "onWaiting": PropTypes.func,
567
+ "onWaitingCapture": PropTypes.func,
568
+ "onWheel": PropTypes.func,
569
+ "onWheelCapture": PropTypes.func,
570
+ "pattern": PropTypes.string,
571
+ "placeholder": PropTypes.string,
572
+ "positionedChildren": PropTypes.node,
573
+ "prefix": PropTypes.string,
574
+ "property": PropTypes.string,
575
+ "radioGroup": PropTypes.string,
576
+ "readOnly": PropTypes.bool,
577
+ "required": PropTypes.bool,
578
+ "resource": PropTypes.string,
579
+ "results": PropTypes.number,
580
+ "reverse": PropTypes.bool,
581
+ "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({
582
+ "__@iterator": PropTypes.func.isRequired,
583
+ "anchor": PropTypes.func.isRequired,
584
+ "at": PropTypes.func.isRequired,
585
+ "big": PropTypes.func.isRequired,
586
+ "blink": PropTypes.func.isRequired,
587
+ "bold": PropTypes.func.isRequired,
588
+ "charAt": PropTypes.func.isRequired,
589
+ "charCodeAt": PropTypes.func.isRequired,
590
+ "codePointAt": PropTypes.func.isRequired,
591
+ "concat": PropTypes.func.isRequired,
592
+ "endsWith": PropTypes.func.isRequired,
593
+ "fixed": PropTypes.func.isRequired,
594
+ "fontcolor": PropTypes.func.isRequired,
595
+ "fontsize": PropTypes.func.isRequired,
596
+ "includes": PropTypes.func.isRequired,
597
+ "indexOf": PropTypes.func.isRequired,
598
+ "italics": PropTypes.func.isRequired,
599
+ "lastIndexOf": PropTypes.func.isRequired,
600
+ "length": PropTypes.number.isRequired,
601
+ "link": PropTypes.func.isRequired,
602
+ "localeCompare": PropTypes.func.isRequired,
603
+ "match": PropTypes.func.isRequired,
604
+ "matchAll": PropTypes.func.isRequired,
605
+ "normalize": PropTypes.func.isRequired,
606
+ "padEnd": PropTypes.func.isRequired,
607
+ "padStart": PropTypes.func.isRequired,
608
+ "repeat": PropTypes.func.isRequired,
609
+ "replace": PropTypes.func.isRequired,
610
+ "search": PropTypes.func.isRequired,
611
+ "slice": PropTypes.func.isRequired,
612
+ "small": PropTypes.func.isRequired,
613
+ "split": PropTypes.func.isRequired,
614
+ "startsWith": PropTypes.func.isRequired,
615
+ "strike": PropTypes.func.isRequired,
616
+ "sub": PropTypes.func.isRequired,
617
+ "substr": PropTypes.func.isRequired,
618
+ "substring": PropTypes.func.isRequired,
619
+ "sup": PropTypes.func.isRequired,
620
+ "toLocaleLowerCase": PropTypes.func.isRequired,
621
+ "toLocaleUpperCase": PropTypes.func.isRequired,
622
+ "toLowerCase": PropTypes.func.isRequired,
623
+ "toString": PropTypes.func.isRequired,
624
+ "toUpperCase": PropTypes.func.isRequired,
625
+ "trim": PropTypes.func.isRequired,
626
+ "trimEnd": PropTypes.func.isRequired,
627
+ "trimLeft": PropTypes.func.isRequired,
628
+ "trimRight": PropTypes.func.isRequired,
629
+ "trimStart": PropTypes.func.isRequired,
630
+ "valueOf": PropTypes.func.isRequired
631
+ })]),
632
+ "security": PropTypes.string,
633
+ "separator": PropTypes.string.isRequired,
634
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
635
+ "slot": PropTypes.string,
636
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
637
+ "src": PropTypes.string,
638
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
639
+ "style": PropTypes.object,
640
+ "suppressContentEditableWarning": PropTypes.bool,
641
+ "suppressHydrationWarning": PropTypes.bool,
642
+ "tabIndex": PropTypes.number,
643
+ "title": PropTypes.string,
644
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
645
+ "translate": PropTypes.oneOf(["no", "yes"]),
646
+ "typeof": PropTypes.string,
647
+ "unselectable": PropTypes.oneOf(["off", "on"]),
648
+ "validationOnLabel": PropTypes.bool,
649
+ "value": PropTypes.string,
650
+ "vocab": PropTypes.string,
651
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
652
+ "warnOverLimit": PropTypes.bool,
653
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
152
654
  };
655
+ export { GroupedCharacter };
153
656
  export default GroupedCharacter;
@@ -0,0 +1,2 @@
1
+ export declare const toSum: (acc: number, i: number) => number;
2
+ export declare const generateGroups: (groups: number[], rawValue: string) => string[];
@@ -1 +1,2 @@
1
- export { default } from "./grouped-character";
1
+ export { default } from "./grouped-character.component";
2
+ export type { GroupedCharacterProps, CustomEvent, } from "./grouped-character.component";