carbon-react 111.8.5 → 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.
Files changed (43) hide show
  1. package/esm/__internal__/focus-trap/focus-trap-utils.js +21 -1
  2. package/esm/__internal__/focus-trap/focus-trap.component.js +4 -0
  3. package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.js +11 -1
  4. package/esm/components/flat-table/flat-table-cell/flat-table-cell.style.js +3 -1
  5. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +11 -1
  6. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +3 -2
  7. package/esm/components/flat-table/flat-table-head/flat-table-head.style.js +8 -7
  8. package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +11 -1
  9. package/esm/components/flat-table/flat-table-header/flat-table-header.d.ts +2 -0
  10. package/esm/components/flat-table/flat-table-header/flat-table-header.style.js +31 -22
  11. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +46 -19
  12. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +72 -22
  13. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +31 -6
  14. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.d.ts +2 -0
  15. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +11 -4
  16. package/esm/components/flat-table/flat-table.style.js +68 -19
  17. package/esm/components/grouped-character/grouped-character.component.d.ts +30 -0
  18. package/esm/components/grouped-character/grouped-character.component.js +544 -41
  19. package/esm/components/grouped-character/grouped-character.utils.d.ts +2 -0
  20. package/esm/components/grouped-character/index.d.ts +2 -1
  21. package/lib/__internal__/focus-trap/focus-trap-utils.js +21 -1
  22. package/lib/__internal__/focus-trap/focus-trap.component.js +4 -0
  23. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +11 -1
  24. package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +3 -1
  25. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +11 -1
  26. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +3 -2
  27. package/lib/components/flat-table/flat-table-head/flat-table-head.style.js +8 -7
  28. package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +11 -1
  29. package/lib/components/flat-table/flat-table-header/flat-table-header.d.ts +2 -0
  30. package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +34 -23
  31. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +47 -19
  32. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +72 -22
  33. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +35 -6
  34. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.d.ts +2 -0
  35. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +11 -4
  36. package/lib/components/flat-table/flat-table.style.js +69 -20
  37. package/lib/components/grouped-character/grouped-character.component.d.ts +30 -0
  38. package/lib/components/grouped-character/grouped-character.component.js +545 -45
  39. package/lib/components/grouped-character/grouped-character.utils.d.ts +2 -0
  40. package/lib/components/grouped-character/index.d.ts +2 -1
  41. package/package.json +1 -1
  42. package/esm/components/grouped-character/grouped-character.d.ts +0 -23
  43. package/lib/components/grouped-character/grouped-character.d.ts +0 -23
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "111.8.5",
3
+ "version": "111.9.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
- import { TextboxProps } from "../textbox";
3
-
4
- export interface GroupedCharacterProps extends Omit<TextboxProps, "value"> {
5
- /** Default input value if component is meant to be used as an uncontrolled component */
6
- defaultValue?: string;
7
- /** pattern by which input value should be grouped */
8
- groups?: number[];
9
- /** Handler for blur event */
10
- onBlur?: (ev: React.FocusEvent<HTMLInputElement>) => void;
11
- /** Handler for change event if input is meant to be used as a controlled component */
12
- onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
13
- /** Flag to configure component as mandatory */
14
- required?: boolean;
15
- /** character to be used as separator - has to be a 1 character string */
16
- separator?: string;
17
- /** Input value if component is meant to be used as a controlled component */
18
- value?: string;
19
- }
20
-
21
- declare function GroupedCharacter(props: GroupedCharacterProps): JSX.Element;
22
-
23
- export default GroupedCharacter;
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
- import { TextboxProps } from "../textbox";
3
-
4
- export interface GroupedCharacterProps extends Omit<TextboxProps, "value"> {
5
- /** Default input value if component is meant to be used as an uncontrolled component */
6
- defaultValue?: string;
7
- /** pattern by which input value should be grouped */
8
- groups?: number[];
9
- /** Handler for blur event */
10
- onBlur?: (ev: React.FocusEvent<HTMLInputElement>) => void;
11
- /** Handler for change event if input is meant to be used as a controlled component */
12
- onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
13
- /** Flag to configure component as mandatory */
14
- required?: boolean;
15
- /** character to be used as separator - has to be a 1 character string */
16
- separator?: string;
17
- /** Input value if component is meant to be used as a controlled component */
18
- value?: string;
19
- }
20
-
21
- declare function GroupedCharacter(props: GroupedCharacterProps): JSX.Element;
22
-
23
- export default GroupedCharacter;