plataforma-fundacao-componentes 2.25.11 → 2.26.0
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/PercentLoaderIcon.d.ts +1 -1
- package/dist/assets/icons/ThreeDotsLoader.d.ts +3 -4
- package/dist/components/accordion/Accordion.stories.d.ts +9 -10
- package/dist/components/bigBlockButton/BigBlockButton.d.ts +4 -6
- package/dist/components/bottomNavigation/BottomNavigation.d.ts +1 -1
- package/dist/components/bottomNavigation/BottomNavigation.stories.d.ts +14 -14
- package/dist/components/breadCrumb/BreadCrumb.stories.d.ts +5 -6
- package/dist/components/button/Button.d.ts +6 -27
- package/dist/components/calendar/Calendar.d.ts +1 -1
- package/dist/components/calendar/components/calendarDays/CalendarDays.d.ts +4 -4
- package/dist/components/calendar/components/calendarMonthDay/CalendarMonthDay.d.ts +1 -1
- package/dist/components/card/Card.stories.d.ts +8 -7
- package/dist/components/carousel/Carousel.stories.d.ts +6 -7
- package/dist/components/carouselPersona/CarouselPersona.stories.d.ts +5 -6
- package/dist/components/carouselTouchFrendly/CarouselTouchFrendly.stories.d.ts +6 -7
- package/dist/components/chart/components/moneyMonthLineChart/MoneyMonthLineChart.d.ts +2 -1
- package/dist/components/chart/doughnutSquare/DoughnutSquare.stories.d.ts +9 -8
- package/dist/components/chart/moneyByMonth/MoneyByMonth.d.ts +2 -1
- package/dist/components/chart/moneyByMonth/MoneyByMonth.stories.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.d.ts +0 -1
- package/dist/components/checkbox/Checkbox.stories.d.ts +9 -10
- package/dist/components/col/Col.stories.d.ts +6 -7
- package/dist/components/collapse/Collapse.stories.d.ts +5 -6
- package/dist/components/container/Container.stories.d.ts +6 -7
- package/dist/components/controlLabel/ControlLabel.d.ts +1 -1
- package/dist/components/datePicker/DatePicker.d.ts +1 -6
- package/dist/components/datePicker/DatePicker.stories.d.ts +7 -8
- package/dist/components/doughnut/Doughnut.d.ts +1 -6
- package/dist/components/doughnut/Doughnut.stories.d.ts +21 -25
- package/dist/components/elementPaginator/ElementPaginator.stories.d.ts +5 -6
- package/dist/components/etapas/Etapas.stories.d.ts +10 -11
- package/dist/components/etiqueta/Etiqueta.stories.d.ts +28 -34
- package/dist/components/fileLoader/FileLoader.stories.d.ts +7 -8
- package/dist/components/fileUpload/FileUpload.d.ts +1 -2
- package/dist/components/fileUpload/FileUpload.stories.d.ts +14 -13
- package/dist/components/footerSicredi/FooterSicredi.stories.d.ts +9 -10
- package/dist/components/fullHeightContainer/FullHeightContainer.stories.d.ts +7 -8
- package/dist/components/header/Header.d.ts +2 -3
- package/dist/components/header/Header.stories.d.ts +12 -13
- package/dist/components/iconButton/IconButton.d.ts +0 -1
- package/dist/components/iconButton/IconButton.stories.d.ts +7 -8
- package/dist/components/inputArea/InputArea.d.ts +0 -1
- package/dist/components/inputArea/InputArea.stories.d.ts +16 -17
- package/dist/components/menu/components/menuItem/MenuItem.d.ts +1 -2
- package/dist/components/menu/components/menuItem/MenuItem.stories.d.ts +8 -9
- package/dist/components/modal/Modal.d.ts +280 -20
- package/dist/components/modal/Modal.stories.d.ts +1 -0
- package/dist/components/modal/ModalMask.d.ts +2 -1
- package/dist/components/modal/ModalTypes.d.ts +3 -18
- package/dist/components/pageTitle/PageTitle.stories.d.ts +7 -6
- package/dist/components/pagination/Pagination.d.ts +1 -1
- package/dist/components/pagination/Pagination.stories.d.ts +46 -60
- package/dist/components/paginator/Paginator.stories.d.ts +16 -15
- package/dist/components/radioButton/RadioButton.d.ts +1 -2
- package/dist/components/row/Row.stories.d.ts +5 -6
- package/dist/components/select/Select.stories.d.ts +1 -0
- package/dist/components/switch/Switch.d.ts +0 -1
- package/dist/components/switch/Switch.stories.d.ts +8 -9
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/tableFileNameAndAction/TableFileNameAndAction.d.ts +10 -9
- package/dist/components/tableFileNameAndAction/TableFileNameAndAction.stories.d.ts +7 -8
- package/dist/components/textEditor/TextEditor.d.ts +0 -1
- package/dist/components/textEditor/TextEditor.stories.d.ts +11 -12
- package/dist/components/textEditor/components/textEditorColorPicker/TextEditorColorPicker.d.ts +3 -8
- package/dist/components/textEditor/components/textEditorInput/TextEditorHeaderInput.d.ts +2 -7
- package/dist/components/textEditor/components/textEditorTitleChoser/TextEditorTitleChoser.d.ts +3 -8
- package/dist/components/textEditor/components/textEditorUrlCreator/TextEditorUrlCreator.d.ts +3 -8
- package/dist/components/toast/Toast.d.ts +0 -2
- package/dist/components/toastManager/ToastManager.d.ts +7 -1
- package/dist/components/toastManager/ToastManager.stories.d.ts +5 -6
- package/dist/components/tooltip/Tooltip.stories.d.ts +8 -9
- package/dist/components/tooltipManager/TooltipManager.stories.d.ts +7 -8
- package/dist/components/topLoader/TopLoader.stories.d.ts +6 -7
- package/dist/components/videoModal/VideoModal.d.ts +273 -10
- package/dist/components/videoPlayer/VideoPlayer.stories.d.ts +10 -11
- package/dist/hooks/useDebounce/useDebounce.d.ts +5 -0
- package/dist/hooks/useDebounce/useDebounce.stories.d.ts +10 -0
- package/dist/hooks/useHTMLShare/useHTMLShare.d.ts +1 -1
- package/dist/hooks/usePagination/usePagination.d.ts +1 -1
- package/dist/hooks/usePublicMenuList/usePublicMenuList.d.ts +1 -1
- package/dist/hooks/useScreenSize/useScreenSize.d.ts +7 -8
- package/dist/hooks/useStorageState/useStorageState.d.ts +1 -1
- package/dist/hooks/useToastManager/useToastManager.d.ts +1 -1
- package/dist/hooks/useValidatedState/useValidatedState.d.ts +1 -1
- package/dist/index.css +74 -75
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2704 -2676
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2380 -2351
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/ModalSize.d.ts +2 -1
- package/dist/libraries/ScreenSizes.d.ts +7 -0
- package/dist/utils/ArrayUtils.d.ts +1 -2
- package/dist/utils/HTMLutils.d.ts +3 -3
- package/dist/utils/MaskUtils.d.ts +8 -8
- package/dist/utils/ScrollUtils.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Agrupa um array pela chave passada
|
|
4
3
|
* @param arr array de itens
|
|
@@ -14,4 +13,4 @@ export declare const groupByKey: <T>(arr: T[], k: keyof T) => {
|
|
|
14
13
|
* @param k chave a qual vai ser agupada
|
|
15
14
|
* @returns um objeto de chaves de vlores diferentes
|
|
16
15
|
*/
|
|
17
|
-
export declare const mapGroupByKey: <T>(arr: T[], k: keyof T) => Map<
|
|
16
|
+
export declare const mapGroupByKey: <T = any>(arr: T[], k: keyof T) => Map<string, T[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const getMergedClassNames: (arr:
|
|
2
|
-
export declare const useMergedClassNames: (arr:
|
|
1
|
+
export declare const getMergedClassNames: (arr: unknown[]) => string;
|
|
2
|
+
export declare const useMergedClassNames: (arr: unknown[]) => string;
|
|
3
3
|
export declare const getUniqueKey: () => string;
|
|
4
4
|
export declare const isMobile: () => boolean;
|
|
5
5
|
export declare const isiPhone: () => boolean;
|
|
@@ -21,4 +21,4 @@ export declare const dispatchToAllYouTubeVideos: (command: 'pauseVideo' | 'stopV
|
|
|
21
21
|
export declare const dispatchToYoutubeVideo: (command: 'pauseVideo' | 'stopVideo' | 'playVideo', id?: string | undefined) => void;
|
|
22
22
|
export declare const getParentScrollableElements: (anchor?: HTMLElement | null | undefined) => HTMLElement[];
|
|
23
23
|
export declare const getParents: (anchor?: HTMLElement | null | undefined) => HTMLElement[];
|
|
24
|
-
export declare const objectKeysFiltered: <Type>(obj:
|
|
24
|
+
export declare const objectKeysFiltered: <Type>(obj: Type, keysToExclude: (keyof Type)[]) => Type;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const getUnmaskedValue: (value:
|
|
2
|
-
export declare const formatCNPJ: (input:
|
|
3
|
-
export declare const formatCPF: (input:
|
|
4
|
-
export declare const formatCPFCNPJ: (input:
|
|
5
|
-
export declare const formatTelefone: (input:
|
|
6
|
-
export declare const formatDataNascimento: (input:
|
|
7
|
-
export declare const formatHexadecimalColor: (input:
|
|
8
|
-
export declare const getStringWithoutSpecialChar: (input:
|
|
1
|
+
export declare const getUnmaskedValue: (value: string | number) => string;
|
|
2
|
+
export declare const formatCNPJ: (input: string) => string;
|
|
3
|
+
export declare const formatCPF: (input: string) => string;
|
|
4
|
+
export declare const formatCPFCNPJ: (input: string) => string;
|
|
5
|
+
export declare const formatTelefone: (input: string) => string;
|
|
6
|
+
export declare const formatDataNascimento: (input: string) => string;
|
|
7
|
+
export declare const formatHexadecimalColor: (input: string) => string;
|
|
8
|
+
export declare const getStringWithoutSpecialChar: (input: string | number) => string;
|
|
9
9
|
export declare const captalizeFirtLetter: (value?: string | undefined) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plataforma-fundacao-componentes",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "Made with create-react-library",
|
|
5
5
|
"author": "Guvidaletti",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "microbundle-crl --no-compress --format modern,cjs --css-modules false --jsxFragment React.Fragment",
|
|
19
19
|
"watch": "microbundle-crl watch --no-compress --format modern,cjs --css-modules false --jsxFragment React.Fragment",
|
|
20
20
|
"start": "start-storybook -p 6006",
|
|
21
|
-
"lint": "eslint src --max-warnings=0",
|
|
21
|
+
"lint": "tsc && eslint src/** --max-warnings=0",
|
|
22
22
|
"build-storybook": "build-storybook",
|
|
23
23
|
"serve-storybook": "node server",
|
|
24
24
|
"create-component": "cd src && node createComponent",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
62
62
|
"@typescript-eslint/parser": "^ 5.54.1",
|
|
63
63
|
"axios": "^1.4.0",
|
|
64
|
-
"babel-eslint": "^10.0.3",
|
|
65
64
|
"babel-loader": "^8.2.2",
|
|
66
65
|
"cross-env": "^7.0.2",
|
|
67
66
|
"css-loader": "^6.7.3",
|
|
68
|
-
"eslint": "^8.
|
|
67
|
+
"eslint": "^8.51.0",
|
|
68
|
+
"eslint-plugin-react": "^7.33.2",
|
|
69
69
|
"husky": "^7.0.0",
|
|
70
70
|
"microbundle-crl": "^0.13.10",
|
|
71
71
|
"npm-run-all": "^4.1.5",
|