plataforma-fundacao-componentes 2.22.9 → 2.22.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/FilterIcon.d.ts +3 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/dropdownItem/DropdownItem.d.ts +2 -2
- package/dist/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/dropdownMenu/DropdownMenu.stories.d.ts +8 -6
- package/dist/components/table/components/TableUpperHeader/TableUpperHeader.d.ts +10 -4
- package/dist/components/tableWithOverflow/TableWithOverflow.d.ts +1 -1
- package/dist/components/tableWithOverflow/TableWithOverflow.stories.d.ts +1 -0
- package/dist/hooks/useDraggableScroll/useDraggableScroll.d.ts +3 -1
- package/dist/index.css +19 -15
- package/dist/index.js +111 -76
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +111 -76
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/ArrayUtils.d.ts +17 -0
- package/package.json +11 -8
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Agrupa um array pela chave passada
|
|
4
|
+
* @param arr array de itens
|
|
5
|
+
* @param k chave a qual vai ser agupada
|
|
6
|
+
* @returns um objeto de chaves de vlores diferentes
|
|
7
|
+
*/
|
|
8
|
+
export declare const groupByKey: <T>(arr: T[], k: keyof T) => {
|
|
9
|
+
[k: string]: T[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Agrupa um array pela chave passada
|
|
13
|
+
* @param arr array de itens
|
|
14
|
+
* @param k chave a qual vai ser agupada
|
|
15
|
+
* @returns um objeto de chaves de vlores diferentes
|
|
16
|
+
*/
|
|
17
|
+
export declare const mapGroupByKey: <T>(arr: T[], k: keyof T) => Map<import("react").ReactText, T[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plataforma-fundacao-componentes",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.14",
|
|
4
4
|
"description": "Made with create-react-library",
|
|
5
5
|
"author": "Guvidaletti",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.modern.js",
|
|
10
10
|
"source": "src/index.tsx",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"registry": " https://registry.npmjs.org/"
|
|
13
|
+
},
|
|
11
14
|
"engines": {
|
|
12
15
|
"node": ">=10"
|
|
13
16
|
},
|
|
@@ -33,14 +36,14 @@
|
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
38
|
"@babel/core": "^7.15.0",
|
|
36
|
-
"@storybook/addon-actions": "^6.
|
|
37
|
-
"@storybook/addon-essentials": "^6.
|
|
38
|
-
"@storybook/addon-links": "^6.
|
|
39
|
-
"@storybook/addons": "^6.
|
|
40
|
-
"@storybook/node-logger": "^6.
|
|
39
|
+
"@storybook/addon-actions": "^6.5.5",
|
|
40
|
+
"@storybook/addon-essentials": "^6.5.5",
|
|
41
|
+
"@storybook/addon-links": "^6.5.5",
|
|
42
|
+
"@storybook/addons": "^6.5.5",
|
|
43
|
+
"@storybook/node-logger": "^6.5.5",
|
|
41
44
|
"@storybook/preset-create-react-app": "^3.2.0",
|
|
42
|
-
"@storybook/react": "^6.
|
|
43
|
-
"@storybook/theming": "^6.
|
|
45
|
+
"@storybook/react": "^6.5.5",
|
|
46
|
+
"@storybook/theming": "^6.5.5",
|
|
44
47
|
"@testing-library/jest-dom": "^4.2.4",
|
|
45
48
|
"@testing-library/react": "^9.5.0",
|
|
46
49
|
"@testing-library/user-event": "^7.2.1",
|