plataforma-fundacao-componentes 2.25.2 → 2.25.4
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/title/Title.d.ts +6 -2
- package/dist/components/title/Title.stories.d.ts +44 -22
- package/dist/index.css +40 -29
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/EtiquetasThemes.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import './Title.scss';
|
|
3
3
|
interface TitleProps {
|
|
4
4
|
children: any;
|
|
5
5
|
showBackButton?: boolean;
|
|
6
6
|
onBackClick?: (event?: any) => void;
|
|
7
|
-
|
|
7
|
+
oneLineTitle?: boolean;
|
|
8
|
+
rightElement?: ReactNode;
|
|
9
|
+
hideRightElementXS?: boolean;
|
|
10
|
+
align?: CSSProperties['alignItems'];
|
|
11
|
+
flexWrap?: CSSProperties['flexWrap'];
|
|
8
12
|
}
|
|
9
13
|
declare function Title(props: TitleProps): React.JSX.Element;
|
|
10
14
|
declare namespace Title {
|
|
@@ -1,23 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
|
+
import Title from './Title';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Title;
|
|
6
|
+
argTypes: {
|
|
7
|
+
align: {
|
|
8
|
+
options: string[];
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
5
13
|
export default _default;
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
export declare const FirstExample: {
|
|
15
|
+
(args: ComponentProps<typeof Title>): React.JSX.Element;
|
|
16
|
+
args: {
|
|
17
|
+
children: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const BackExample: {
|
|
21
|
+
(args: ComponentProps<typeof Title>): React.JSX.Element;
|
|
22
|
+
args: {
|
|
23
|
+
children: string;
|
|
24
|
+
showBackButton: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const RightElementExample: {
|
|
28
|
+
(args: ComponentProps<typeof Title>): React.JSX.Element;
|
|
29
|
+
args: {
|
|
30
|
+
showBackButton: boolean;
|
|
31
|
+
oneLineTitle: boolean;
|
|
32
|
+
hideRightElementsXS: boolean;
|
|
33
|
+
children: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const RightElementExampleTwoElements: {
|
|
37
|
+
(args: ComponentProps<typeof Title>): React.JSX.Element;
|
|
38
|
+
args: {
|
|
39
|
+
showBackButton: boolean;
|
|
40
|
+
oneLineTitle: boolean;
|
|
41
|
+
hideRightElementXS: boolean;
|
|
42
|
+
align: string;
|
|
43
|
+
children: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
package/dist/index.css
CHANGED
|
@@ -3588,6 +3588,11 @@ max-width 100% 540px 720px 960px 1140px
|
|
|
3588
3588
|
color: #765f00;
|
|
3589
3589
|
border-color: #765f00; }
|
|
3590
3590
|
|
|
3591
|
+
.component-etiqueta.yellow {
|
|
3592
|
+
background-color: #ffeb98;
|
|
3593
|
+
color: #765f00;
|
|
3594
|
+
border-color: #ffeb98; }
|
|
3595
|
+
|
|
3591
3596
|
:export {
|
|
3592
3597
|
widthXs: 575.98px;
|
|
3593
3598
|
widthSm: 767.98px;
|
|
@@ -7463,41 +7468,47 @@ nav.component-tabs {
|
|
|
7463
7468
|
width: 100%;
|
|
7464
7469
|
position: relative;
|
|
7465
7470
|
display: flex;
|
|
7466
|
-
align-items:
|
|
7467
|
-
justify-content: space-between;
|
|
7471
|
+
align-items: flex-start;
|
|
7472
|
+
justify-content: space-between;
|
|
7473
|
+
flex-flow: row wrap;
|
|
7474
|
+
-moz-column-break-inside: avoid;
|
|
7475
|
+
break-inside: avoid; }
|
|
7468
7476
|
.component-title .component-title-wrapper {
|
|
7469
7477
|
display: flex;
|
|
7470
7478
|
align-items: center;
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
.component-title .component-title-text {
|
|
7487
|
-
font-size: 22px; } }
|
|
7488
|
-
@media screen and (max-width: 575.98px) {
|
|
7489
|
-
.component-title .component-title-text {
|
|
7490
|
-
font-size: 20px; } }
|
|
7491
|
-
.component-title .component-title-text.ellipsis {
|
|
7479
|
+
justify-content: flex-start;
|
|
7480
|
+
max-width: 100%;
|
|
7481
|
+
flex: 1 4 auto; }
|
|
7482
|
+
.component-title .component-title-wrapper .component-title-icon {
|
|
7483
|
+
display: flex;
|
|
7484
|
+
align-items: center;
|
|
7485
|
+
margin-right: 12px;
|
|
7486
|
+
margin-top: 2px; }
|
|
7487
|
+
.component-title .component-title-wrapper .component-title-text {
|
|
7488
|
+
-webkit-user-select: none;
|
|
7489
|
+
-moz-user-select: none;
|
|
7490
|
+
user-select: none;
|
|
7491
|
+
color: #323c32;
|
|
7492
|
+
font-size: 26px;
|
|
7493
|
+
font-weight: 700;
|
|
7492
7494
|
overflow: hidden;
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7495
|
+
max-width: 100%;
|
|
7496
|
+
text-overflow: ellipsis; }
|
|
7497
|
+
.component-title .component-title-wrapper .component-title-text.one-line-title {
|
|
7498
|
+
white-space: nowrap; }
|
|
7496
7499
|
@media screen and (max-width: 767.98px) {
|
|
7497
|
-
.component-title .component-title-text
|
|
7498
|
-
|
|
7500
|
+
.component-title .component-title-wrapper .component-title-text {
|
|
7501
|
+
font-size: 22px; } }
|
|
7502
|
+
@media screen and (max-width: 575.98px) {
|
|
7503
|
+
.component-title .component-title-wrapper .component-title-text {
|
|
7504
|
+
font-size: 20px; } }
|
|
7505
|
+
.component-title .component-title-right-element {
|
|
7506
|
+
display: flex;
|
|
7507
|
+
flex: 1 1 auto;
|
|
7508
|
+
align-items: center;
|
|
7509
|
+
justify-content: flex-end; }
|
|
7499
7510
|
@media screen and (max-width: 575.98px) {
|
|
7500
|
-
.component-title .component-title-right-element {
|
|
7511
|
+
.component-title.hide-right-xs .component-title-right-element {
|
|
7501
7512
|
display: none;
|
|
7502
7513
|
visibility: hidden; } }
|
|
7503
7514
|
|
package/dist/index.js
CHANGED
|
@@ -7907,6 +7907,7 @@ var Etapas$1 = React$1.memo(Etapas);
|
|
|
7907
7907
|
EtiquetasStyle["OutlineDark"] = "outline-dark";
|
|
7908
7908
|
EtiquetasStyle["OutlineBlue"] = "outline-blue";
|
|
7909
7909
|
EtiquetasStyle["OutlineWarningDark"] = "outline-warning-dark";
|
|
7910
|
+
EtiquetasStyle["Yellow"] = "yellow";
|
|
7910
7911
|
})(exports.EtiquetasStyle || (exports.EtiquetasStyle = {}));
|
|
7911
7912
|
|
|
7912
7913
|
var rootClassName$21 = 'component-etiqueta';
|
|
@@ -11611,7 +11612,11 @@ TextEditor.defaultProps = {
|
|
|
11611
11612
|
var rootClassName$2F = 'component-title';
|
|
11612
11613
|
function Title(props) {
|
|
11613
11614
|
return React$1__default.createElement("div", {
|
|
11614
|
-
className: rootClassName$2F
|
|
11615
|
+
className: getMergedClassNames([rootClassName$2F, props.hideRightElementXS ? 'hide-right-xs' : '']),
|
|
11616
|
+
style: {
|
|
11617
|
+
alignItems: props.align,
|
|
11618
|
+
flexWrap: props.flexWrap
|
|
11619
|
+
}
|
|
11615
11620
|
}, React$1__default.createElement("div", {
|
|
11616
11621
|
className: rootClassName$2F + "-wrapper"
|
|
11617
11622
|
}, props.showBackButton ? React$1__default.createElement("div", {
|
|
@@ -11620,7 +11625,7 @@ function Title(props) {
|
|
|
11620
11625
|
icon: React$1__default.createElement(ArrowLeftIcon, null),
|
|
11621
11626
|
onClick: props.onBackClick
|
|
11622
11627
|
})) : undefined, React$1__default.createElement("div", {
|
|
11623
|
-
className: getMergedClassNames([rootClassName$2F + "-text", props.
|
|
11628
|
+
className: getMergedClassNames([rootClassName$2F + "-text", props.oneLineTitle ? 'one-line-title' : ''])
|
|
11624
11629
|
}, props.children)), props.rightElement ? React$1__default.createElement("div", {
|
|
11625
11630
|
className: rootClassName$2F + "-right-element"
|
|
11626
11631
|
}, props.rightElement) : undefined);
|