plataforma-fundacao-componentes 2.23.2 → 2.23.5
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/AgencyIcon.d.ts +3 -0
- package/dist/assets/icons/CalendarCheckIcon.d.ts +3 -0
- package/dist/assets/icons/CopyIcon.d.ts +3 -0
- package/dist/assets/icons/DevicePlusIcon.d.ts +3 -0
- package/dist/assets/icons/NotebookIcon.d.ts +3 -0
- package/dist/assets/icons/PrintIcon.d.ts +3 -0
- package/dist/assets/icons/QRCodeIcon.d.ts +3 -0
- package/dist/components/bigBlockButton/BigBlockButton.d.ts +1 -0
- package/dist/components/bigBlockButton/BigBlockButton.stories.d.ts +2 -0
- package/dist/components/datePicker/components/datePickerCalendar/DatePickerCalendar.d.ts +13 -15
- package/dist/components/qrcode/QRCode.d.ts +20 -0
- package/dist/components/qrcode/QRCode.stories.d.ts +14 -0
- package/dist/components/title/Title.d.ts +13 -0
- package/dist/components/{modulosTitle/ModulosTitle.stories.d.ts → title/Title.stories.d.ts} +2 -2
- package/dist/hooks/useHTMLShare/useHTMLShare.d.ts +18 -0
- package/dist/hooks/useHTMLShare/useHTMLShare.stories.d.ts +6 -0
- package/dist/index.css +320 -160
- package/dist/index.d.ts +203 -191
- package/dist/index.js +902 -733
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +893 -732
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/MoedaUtils.d.ts +3 -4
- package/package.json +12 -8
- package/dist/components/modulosTitle/ModulosTitle.d.ts +0 -13
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
monthsAbrev: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
12
|
-
}>>;
|
|
13
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './DatePickerCalendar.scss';
|
|
3
|
+
interface calendarProps {
|
|
4
|
+
value?: any;
|
|
5
|
+
onChange?: (date: string) => void;
|
|
6
|
+
language: {
|
|
7
|
+
daysOfWeek: string[];
|
|
8
|
+
months: string[];
|
|
9
|
+
monthsAbrev: string[];
|
|
10
|
+
};
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
declare function DatePickerCalendar(props: calendarProps): JSX.Element;
|
|
13
|
+
declare const _default: React.MemoExoticComponent<typeof DatePickerCalendar>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './QRCode.scss';
|
|
3
|
+
export interface QRCodeProps {
|
|
4
|
+
button?: boolean;
|
|
5
|
+
size: number;
|
|
6
|
+
margin?: number;
|
|
7
|
+
text: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare function QRCode(props: QRCodeProps): JSX.Element;
|
|
13
|
+
declare namespace QRCode {
|
|
14
|
+
var defaultProps: {
|
|
15
|
+
margin: number;
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.MemoExoticComponent<typeof QRCode>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { QRCodeProps } from './QRCode';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const DefaultExample: {
|
|
8
|
+
(args: QRCodeProps): JSX.Element;
|
|
9
|
+
args: QRCodeProps;
|
|
10
|
+
};
|
|
11
|
+
export declare const ColorizedExample: {
|
|
12
|
+
(args: QRCodeProps): JSX.Element;
|
|
13
|
+
args: QRCodeProps;
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Title.scss';
|
|
3
|
+
interface TitleProps {
|
|
4
|
+
children: any;
|
|
5
|
+
showBackButton?: boolean;
|
|
6
|
+
onBackClick?: (event?: any) => void;
|
|
7
|
+
rightElement?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Title(props: TitleProps): JSX.Element;
|
|
10
|
+
declare namespace Title {
|
|
11
|
+
var defaultProps: {};
|
|
12
|
+
}
|
|
13
|
+
export default Title;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
-
export {
|
|
3
|
+
export { Title as component };
|
|
4
4
|
}
|
|
5
5
|
export default _default;
|
|
6
6
|
export function FirstExample(args: any): JSX.Element;
|
|
@@ -19,4 +19,4 @@ export namespace BackExample {
|
|
|
19
19
|
export { args_1 as args };
|
|
20
20
|
}
|
|
21
21
|
export function RightElementExample(args: any): JSX.Element;
|
|
22
|
-
import
|
|
22
|
+
import Title from "./Title";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
declare type queryElementOrRef = string | JSX.Element | RefObject<any>;
|
|
3
|
+
declare type pdfOptions = {
|
|
4
|
+
pdfWidth?: number;
|
|
5
|
+
pdfHeight?: number;
|
|
6
|
+
imageWidth?: number;
|
|
7
|
+
imageHeight?: number;
|
|
8
|
+
imageX?: number;
|
|
9
|
+
imageY?: number;
|
|
10
|
+
quality?: 1;
|
|
11
|
+
orientation?: 'p' | 'portrait' | 'l' | 'landscape';
|
|
12
|
+
scale?: number;
|
|
13
|
+
};
|
|
14
|
+
export default function useHTMLShare(): {
|
|
15
|
+
print: (element: queryElementOrRef) => Promise<void>;
|
|
16
|
+
pdf: (elementOrQuerySelector: queryElementOrRef, fileName: string, options?: ((canvas: HTMLCanvasElement) => pdfOptions) | undefined, scale?: number) => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|