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.
@@ -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
- rightElement?: React.ReactNode;
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
- declare namespace _default {
2
- export const title: string;
3
- export { Title as component };
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 function FirstExample(args: any): React.JSX.Element;
7
- export namespace FirstExample {
8
- export namespace args {
9
- export const children: string;
10
- }
11
- }
12
- export function BackExample(args: any): React.JSX.Element;
13
- export namespace BackExample {
14
- export namespace args_1 {
15
- const children_1: string;
16
- export { children_1 as children };
17
- export const showBackButton: boolean;
18
- }
19
- export { args_1 as args };
20
- }
21
- export function RightElementExample(args: any): React.JSX.Element;
22
- import Title from "./Title";
23
- import React from "react";
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: center;
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
- flex: 1 1 100%;
7472
- min-width: 0; }
7473
- .component-title .component-title-icon {
7474
- display: flex;
7475
- align-items: center;
7476
- margin-right: 12px;
7477
- margin-top: 2px; }
7478
- .component-title .component-title-text {
7479
- -webkit-user-select: none;
7480
- -moz-user-select: none;
7481
- user-select: none;
7482
- color: #323c32;
7483
- font-size: 26px;
7484
- font-weight: 700; }
7485
- @media screen and (max-width: 767.98px) {
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
- text-overflow: ellipsis;
7494
- width: calc(100% - 48px);
7495
- white-space: nowrap; }
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.ellipsis {
7498
- white-space: pre-wrap; } }
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.rightElement ? 'ellipsis' : ''])
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);