plataforma-fundacao-componentes 2.21.7 → 2.21.8
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/components/banner/Banner.stories.d.ts +1 -0
- package/dist/components/notaEdit/NotaEdit.d.ts +19 -28
- package/dist/index.css +2 -0
- package/dist/index.js +10 -31
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -31
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { IconButtonType } from '../../libraries/IconButtonTheme';
|
|
3
|
+
import { ButtonProps } from '../button/Button';
|
|
4
|
+
import './NotaEdit.scss';
|
|
5
|
+
interface ButtonSaveProps extends ButtonProps {
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
interface NotaEditProps {
|
|
9
|
+
inputTitleProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
10
|
+
inputTextProps?: InputHTMLAttributes<HTMLTextAreaElement>;
|
|
11
|
+
buttonSaveProps: ButtonSaveProps;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
hideCloseButton?: boolean;
|
|
14
|
+
iconButtonTheme?: IconButtonType;
|
|
15
|
+
}
|
|
16
|
+
declare function NotaEdit(props: NotaEditProps): JSX.Element;
|
|
2
17
|
declare namespace NotaEdit {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: PropTypes.Requireable<React.ReactText>;
|
|
7
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
maxLength: PropTypes.Requireable<number>;
|
|
9
|
-
}>>;
|
|
10
|
-
export const inputTextProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
-
PlaceHolder: PropTypes.Requireable<string>;
|
|
12
|
-
value: PropTypes.Requireable<React.ReactText>;
|
|
13
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
maxLength: PropTypes.Requireable<number>;
|
|
15
|
-
}>>;
|
|
16
|
-
export const buttonSaveProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
-
label: PropTypes.Requireable<string>;
|
|
18
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
}>>;
|
|
20
|
-
export const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
export const hideCloseButton: PropTypes.Requireable<boolean>;
|
|
22
|
-
export const iconButtonTheme: PropTypes.Requireable<string>;
|
|
23
|
-
}
|
|
24
|
-
export namespace defaultProps {
|
|
25
|
-
const iconButtonTheme_1: string;
|
|
26
|
-
export { iconButtonTheme_1 as iconButtonTheme };
|
|
27
|
-
}
|
|
18
|
+
var defaultProps: {
|
|
19
|
+
iconButtonTheme: string;
|
|
20
|
+
};
|
|
28
21
|
}
|
|
29
22
|
export default NotaEdit;
|
|
30
|
-
import PropTypes from "prop-types";
|
|
31
|
-
import React from "react";
|
package/dist/index.css
CHANGED
|
@@ -2825,6 +2825,8 @@ h5 {
|
|
|
2825
2825
|
justify-content: center;
|
|
2826
2826
|
white-space: normal;
|
|
2827
2827
|
word-wrap: break-word; }
|
|
2828
|
+
.component-banner .component-banner-side.text .component-banner-text a {
|
|
2829
|
+
color: #3fa110; }
|
|
2828
2830
|
.component-banner .component-banner-side.text .component-banner-text h1 {
|
|
2829
2831
|
display: block;
|
|
2830
2832
|
padding: 0 14%;
|
package/dist/index.js
CHANGED
|
@@ -8583,53 +8583,32 @@ ModulosTitle.defaultProps = {};
|
|
|
8583
8583
|
|
|
8584
8584
|
var rootClassName$1o = 'component-nota-edit';
|
|
8585
8585
|
function NotaEdit(props) {
|
|
8586
|
-
return
|
|
8586
|
+
return React__default.createElement("div", {
|
|
8587
8587
|
className: rootClassName$1o
|
|
8588
|
-
},
|
|
8588
|
+
}, React__default.createElement("div", {
|
|
8589
8589
|
className: rootClassName$1o + "-titulo"
|
|
8590
|
-
},
|
|
8590
|
+
}, React__default.createElement("input", Object.assign({}, props.inputTitleProps, {
|
|
8591
8591
|
className: getMergedClassNames([props.inputTitleProps && props.inputTitleProps.className ? props.inputTitleProps.className : '', 'scroll-white', 'nunito'])
|
|
8592
|
-
}))),
|
|
8592
|
+
}))), React__default.createElement("div", {
|
|
8593
8593
|
className: rootClassName$1o + "-texto"
|
|
8594
|
-
},
|
|
8594
|
+
}, React__default.createElement("textarea", Object.assign({}, props.inputTextProps, {
|
|
8595
8595
|
className: getMergedClassNames([props.inputTextProps && props.inputTextProps.className ? props.inputTextProps.className : '', 'scroll-white', 'nunito'])
|
|
8596
|
-
}))), !props.hideCloseButton ?
|
|
8596
|
+
}))), !props.hideCloseButton ? React__default.createElement("div", {
|
|
8597
8597
|
className: rootClassName$1o + "-close-button"
|
|
8598
|
-
},
|
|
8598
|
+
}, React__default.createElement(IconButton$1, {
|
|
8599
8599
|
theme: props.iconButtonTheme,
|
|
8600
|
-
icon:
|
|
8600
|
+
icon: React__default.createElement(CloseIcon, null),
|
|
8601
8601
|
onClick: function onClick() {
|
|
8602
8602
|
if (typeof props.onClose === 'function') {
|
|
8603
8603
|
props.onClose();
|
|
8604
8604
|
}
|
|
8605
8605
|
}
|
|
8606
|
-
})) : undefined,
|
|
8606
|
+
})) : undefined, React__default.createElement("div", {
|
|
8607
8607
|
className: rootClassName$1o + "-save-button"
|
|
8608
|
-
},
|
|
8608
|
+
}, React__default.createElement(Button$1, Object.assign({
|
|
8609
8609
|
theme: BUTTON_STYLE_BLUE
|
|
8610
8610
|
}, props.buttonSaveProps), props.buttonSaveProps ? props.buttonSaveProps.label : '')));
|
|
8611
8611
|
}
|
|
8612
|
-
NotaEdit.propTypes = {
|
|
8613
|
-
inputTitleProps: propTypes.shape({
|
|
8614
|
-
PlaceHolder: propTypes.string,
|
|
8615
|
-
value: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
8616
|
-
onChange: propTypes.func,
|
|
8617
|
-
maxLength: propTypes.number
|
|
8618
|
-
}),
|
|
8619
|
-
inputTextProps: propTypes.shape({
|
|
8620
|
-
PlaceHolder: propTypes.string,
|
|
8621
|
-
value: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
8622
|
-
onChange: propTypes.func,
|
|
8623
|
-
maxLength: propTypes.number
|
|
8624
|
-
}),
|
|
8625
|
-
buttonSaveProps: propTypes.shape({
|
|
8626
|
-
label: propTypes.string,
|
|
8627
|
-
onClick: propTypes.func
|
|
8628
|
-
}),
|
|
8629
|
-
onClose: propTypes.func,
|
|
8630
|
-
hideCloseButton: propTypes.bool,
|
|
8631
|
-
iconButtonTheme: propTypes.string
|
|
8632
|
-
};
|
|
8633
8612
|
NotaEdit.defaultProps = {
|
|
8634
8613
|
iconButtonTheme: 'blue'
|
|
8635
8614
|
};
|