plataforma-fundacao-componentes 2.25.3 → 2.25.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/components/textEditor/components/textEditorHeaderButton/TextEditorHeaderButton.d.ts +1 -2
- package/dist/components/title/Title.d.ts +6 -2
- package/dist/components/title/Title.stories.d.ts +44 -22
- package/dist/index.css +149 -143
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/components/textEditor/components/textEditorHeaderButton/TextEditorHeaderButton.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function TextEditorHeaderButton(props: any):
|
|
1
|
+
declare function TextEditorHeaderButton(props: any): import("react").JSX.Element;
|
|
2
2
|
declare namespace TextEditorHeaderButton {
|
|
3
3
|
export namespace propTypes {
|
|
4
4
|
export const icon: PropTypes.Requireable<object>;
|
|
@@ -8,5 +8,4 @@ declare namespace TextEditorHeaderButton {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export default TextEditorHeaderButton;
|
|
11
|
-
import React from "react";
|
|
12
11
|
import PropTypes from "prop-types";
|
|
@@ -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
|
@@ -6989,6 +6989,120 @@ nav.component-tabs {
|
|
|
6989
6989
|
warningLight: #ffeb98;
|
|
6990
6990
|
warningDark: #765f00; }
|
|
6991
6991
|
|
|
6992
|
+
.component-text-editor {
|
|
6993
|
+
background-color: #fefefe;
|
|
6994
|
+
border: 1px solid #cdd3cd;
|
|
6995
|
+
transition: border 0.3s ease;
|
|
6996
|
+
border-radius: 8px;
|
|
6997
|
+
width: 100%; }
|
|
6998
|
+
.component-text-editor.error {
|
|
6999
|
+
border: 1px solid #e60000; }
|
|
7000
|
+
.component-text-editor.disabled .component-text-editor-editor {
|
|
7001
|
+
min-height: 60px; }
|
|
7002
|
+
.component-text-editor .component-text-editor-header {
|
|
7003
|
+
position: relative;
|
|
7004
|
+
display: flex;
|
|
7005
|
+
flex-wrap: wrap;
|
|
7006
|
+
justify-content: space-between;
|
|
7007
|
+
align-items: center;
|
|
7008
|
+
padding: 4px 8px; }
|
|
7009
|
+
.component-text-editor .component-text-editor-header .component-text-editor-left-content {
|
|
7010
|
+
flex-wrap: wrap;
|
|
7011
|
+
display: flex;
|
|
7012
|
+
align-items: center; }
|
|
7013
|
+
.component-text-editor .component-text-editor-header .component-text-editor-right-content {
|
|
7014
|
+
display: flex;
|
|
7015
|
+
align-items: center; }
|
|
7016
|
+
@media (max-width: 575.98px) {
|
|
7017
|
+
.component-text-editor .component-text-editor-header .component-text-editor-right-content {
|
|
7018
|
+
width: 100%;
|
|
7019
|
+
justify-content: flex-end; } }
|
|
7020
|
+
.component-text-editor .component-text-editor-header::after {
|
|
7021
|
+
content: "";
|
|
7022
|
+
position: absolute;
|
|
7023
|
+
left: 9px;
|
|
7024
|
+
bottom: 0;
|
|
7025
|
+
width: calc(100% - 18px);
|
|
7026
|
+
height: 1px;
|
|
7027
|
+
background-color: #dbdfdb; }
|
|
7028
|
+
.component-text-editor .component-text-editor-editor {
|
|
7029
|
+
color: #121212;
|
|
7030
|
+
padding: 20px;
|
|
7031
|
+
min-height: 50px; }
|
|
7032
|
+
.component-text-editor .component-text-editor-editor:focus {
|
|
7033
|
+
outline: none; }
|
|
7034
|
+
|
|
7035
|
+
.component-text-editor-top-label {
|
|
7036
|
+
color: #323c32;
|
|
7037
|
+
transition: color 0.3s ease;
|
|
7038
|
+
font-size: 12px;
|
|
7039
|
+
line-height: 16px;
|
|
7040
|
+
-webkit-user-select: none;
|
|
7041
|
+
-moz-user-select: none;
|
|
7042
|
+
user-select: none;
|
|
7043
|
+
min-height: 16px; }
|
|
7044
|
+
.component-text-editor-top-label.error {
|
|
7045
|
+
color: #e60000; }
|
|
7046
|
+
|
|
7047
|
+
.component-text-editor-helper-text {
|
|
7048
|
+
-webkit-user-select: none;
|
|
7049
|
+
-moz-user-select: none;
|
|
7050
|
+
user-select: none;
|
|
7051
|
+
transition: color 0.3s ease;
|
|
7052
|
+
color: #323c32;
|
|
7053
|
+
font-size: 12px;
|
|
7054
|
+
line-height: 16px;
|
|
7055
|
+
min-height: 16px; }
|
|
7056
|
+
.component-text-editor-helper-text.error {
|
|
7057
|
+
color: #e60000; }
|
|
7058
|
+
|
|
7059
|
+
.component-text-editor-editor h1 {
|
|
7060
|
+
margin: 0;
|
|
7061
|
+
font-size: 2.5rem;
|
|
7062
|
+
font-weight: 300; }
|
|
7063
|
+
|
|
7064
|
+
.component-text-editor-editor h6 {
|
|
7065
|
+
margin: 0;
|
|
7066
|
+
font-family: "Nunito";
|
|
7067
|
+
font-size: 1.2rem;
|
|
7068
|
+
font-weight: 500; }
|
|
7069
|
+
|
|
7070
|
+
.component-text-editor-editor a {
|
|
7071
|
+
text-decoration: underline;
|
|
7072
|
+
color: #3fa111; }
|
|
7073
|
+
|
|
7074
|
+
.component-text-editor-outer {
|
|
7075
|
+
display: flex;
|
|
7076
|
+
flex-direction: column;
|
|
7077
|
+
width: 100%; }
|
|
7078
|
+
|
|
7079
|
+
:export {
|
|
7080
|
+
widthXs: 575.98px;
|
|
7081
|
+
widthSm: 767.98px;
|
|
7082
|
+
widthMd: 991.98px;
|
|
7083
|
+
widthLg: 1199.98px; }
|
|
7084
|
+
|
|
7085
|
+
:export {
|
|
7086
|
+
white: #fefefe;
|
|
7087
|
+
darkenWhite: #efefef;
|
|
7088
|
+
black: #121212;
|
|
7089
|
+
transparent: rgba(0, 0, 0, 0);
|
|
7090
|
+
primary: #3fa110;
|
|
7091
|
+
primaryDark: #33820d;
|
|
7092
|
+
primaryLight: #d7e6c8;
|
|
7093
|
+
secondaryDarker: #323c32;
|
|
7094
|
+
secondaryDark: #5a645a;
|
|
7095
|
+
blueDarker: #2b517b;
|
|
7096
|
+
secondary: #828a82;
|
|
7097
|
+
secondaryLight: #cdd3cd;
|
|
7098
|
+
secondaryLighter: #f8f9f7;
|
|
7099
|
+
danger: #e60000;
|
|
7100
|
+
dangerLight: #ffb4b4;
|
|
7101
|
+
dangerDark: #ab4745;
|
|
7102
|
+
warning: #ffcd00;
|
|
7103
|
+
warningLight: #ffeb98;
|
|
7104
|
+
warningDark: #765f00; }
|
|
7105
|
+
|
|
6992
7106
|
.text-editor-header-input {
|
|
6993
7107
|
display: flex;
|
|
6994
7108
|
justify-content: space-between;
|
|
@@ -7350,159 +7464,51 @@ nav.component-tabs {
|
|
|
7350
7464
|
warningLight: #ffeb98;
|
|
7351
7465
|
warningDark: #765f00; }
|
|
7352
7466
|
|
|
7353
|
-
.component-text-editor {
|
|
7354
|
-
background-color: #fefefe;
|
|
7355
|
-
border: 1px solid #cdd3cd;
|
|
7356
|
-
transition: border 0.3s ease;
|
|
7357
|
-
border-radius: 8px;
|
|
7358
|
-
width: 100%; }
|
|
7359
|
-
.component-text-editor.error {
|
|
7360
|
-
border: 1px solid #e60000; }
|
|
7361
|
-
.component-text-editor.disabled .component-text-editor-editor {
|
|
7362
|
-
min-height: 60px; }
|
|
7363
|
-
.component-text-editor .component-text-editor-header {
|
|
7364
|
-
position: relative;
|
|
7365
|
-
display: flex;
|
|
7366
|
-
flex-wrap: wrap;
|
|
7367
|
-
justify-content: space-between;
|
|
7368
|
-
align-items: center;
|
|
7369
|
-
padding: 4px 8px; }
|
|
7370
|
-
.component-text-editor .component-text-editor-header .component-text-editor-left-content {
|
|
7371
|
-
flex-wrap: wrap;
|
|
7372
|
-
display: flex;
|
|
7373
|
-
align-items: center; }
|
|
7374
|
-
.component-text-editor .component-text-editor-header .component-text-editor-right-content {
|
|
7375
|
-
display: flex;
|
|
7376
|
-
align-items: center; }
|
|
7377
|
-
@media (max-width: 575.98px) {
|
|
7378
|
-
.component-text-editor .component-text-editor-header .component-text-editor-right-content {
|
|
7379
|
-
width: 100%;
|
|
7380
|
-
justify-content: flex-end; } }
|
|
7381
|
-
.component-text-editor .component-text-editor-header::after {
|
|
7382
|
-
content: "";
|
|
7383
|
-
position: absolute;
|
|
7384
|
-
left: 9px;
|
|
7385
|
-
bottom: 0;
|
|
7386
|
-
width: calc(100% - 18px);
|
|
7387
|
-
height: 1px;
|
|
7388
|
-
background-color: #dbdfdb; }
|
|
7389
|
-
.component-text-editor .component-text-editor-editor {
|
|
7390
|
-
color: #121212;
|
|
7391
|
-
padding: 20px;
|
|
7392
|
-
min-height: 50px; }
|
|
7393
|
-
.component-text-editor .component-text-editor-editor:focus {
|
|
7394
|
-
outline: none; }
|
|
7395
|
-
|
|
7396
|
-
.component-text-editor-top-label {
|
|
7397
|
-
color: #323c32;
|
|
7398
|
-
transition: color 0.3s ease;
|
|
7399
|
-
font-size: 12px;
|
|
7400
|
-
line-height: 16px;
|
|
7401
|
-
-webkit-user-select: none;
|
|
7402
|
-
-moz-user-select: none;
|
|
7403
|
-
user-select: none;
|
|
7404
|
-
min-height: 16px; }
|
|
7405
|
-
.component-text-editor-top-label.error {
|
|
7406
|
-
color: #e60000; }
|
|
7407
|
-
|
|
7408
|
-
.component-text-editor-helper-text {
|
|
7409
|
-
-webkit-user-select: none;
|
|
7410
|
-
-moz-user-select: none;
|
|
7411
|
-
user-select: none;
|
|
7412
|
-
transition: color 0.3s ease;
|
|
7413
|
-
color: #323c32;
|
|
7414
|
-
font-size: 12px;
|
|
7415
|
-
line-height: 16px;
|
|
7416
|
-
min-height: 16px; }
|
|
7417
|
-
.component-text-editor-helper-text.error {
|
|
7418
|
-
color: #e60000; }
|
|
7419
|
-
|
|
7420
|
-
.component-text-editor-editor h1 {
|
|
7421
|
-
margin: 0;
|
|
7422
|
-
font-size: 2.5rem;
|
|
7423
|
-
font-weight: 300; }
|
|
7424
|
-
|
|
7425
|
-
.component-text-editor-editor h6 {
|
|
7426
|
-
margin: 0;
|
|
7427
|
-
font-family: "Nunito";
|
|
7428
|
-
font-size: 1.2rem;
|
|
7429
|
-
font-weight: 500; }
|
|
7430
|
-
|
|
7431
|
-
.component-text-editor-editor a {
|
|
7432
|
-
text-decoration: underline;
|
|
7433
|
-
color: #3fa111; }
|
|
7434
|
-
|
|
7435
|
-
.component-text-editor-outer {
|
|
7436
|
-
display: flex;
|
|
7437
|
-
flex-direction: column;
|
|
7438
|
-
width: 100%; }
|
|
7439
|
-
|
|
7440
|
-
:export {
|
|
7441
|
-
widthXs: 575.98px;
|
|
7442
|
-
widthSm: 767.98px;
|
|
7443
|
-
widthMd: 991.98px;
|
|
7444
|
-
widthLg: 1199.98px; }
|
|
7445
|
-
|
|
7446
|
-
:export {
|
|
7447
|
-
white: #fefefe;
|
|
7448
|
-
darkenWhite: #efefef;
|
|
7449
|
-
black: #121212;
|
|
7450
|
-
transparent: rgba(0, 0, 0, 0);
|
|
7451
|
-
primary: #3fa110;
|
|
7452
|
-
primaryDark: #33820d;
|
|
7453
|
-
primaryLight: #d7e6c8;
|
|
7454
|
-
secondaryDarker: #323c32;
|
|
7455
|
-
secondaryDark: #5a645a;
|
|
7456
|
-
blueDarker: #2b517b;
|
|
7457
|
-
secondary: #828a82;
|
|
7458
|
-
secondaryLight: #cdd3cd;
|
|
7459
|
-
secondaryLighter: #f8f9f7;
|
|
7460
|
-
danger: #e60000;
|
|
7461
|
-
dangerLight: #ffb4b4;
|
|
7462
|
-
dangerDark: #ab4745;
|
|
7463
|
-
warning: #ffcd00;
|
|
7464
|
-
warningLight: #ffeb98;
|
|
7465
|
-
warningDark: #765f00; }
|
|
7466
|
-
|
|
7467
7467
|
.component-title {
|
|
7468
7468
|
width: 100%;
|
|
7469
7469
|
position: relative;
|
|
7470
7470
|
display: flex;
|
|
7471
|
-
align-items:
|
|
7472
|
-
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; }
|
|
7473
7476
|
.component-title .component-title-wrapper {
|
|
7474
7477
|
display: flex;
|
|
7475
7478
|
align-items: center;
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
.component-title .component-title-text {
|
|
7492
|
-
font-size: 22px; } }
|
|
7493
|
-
@media screen and (max-width: 575.98px) {
|
|
7494
|
-
.component-title .component-title-text {
|
|
7495
|
-
font-size: 20px; } }
|
|
7496
|
-
.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;
|
|
7497
7494
|
overflow: hidden;
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7495
|
+
max-width: 100%;
|
|
7496
|
+
text-overflow: ellipsis; }
|
|
7497
|
+
.component-title .component-title-wrapper .component-title-text.one-line-title {
|
|
7498
|
+
white-space: nowrap; }
|
|
7501
7499
|
@media screen and (max-width: 767.98px) {
|
|
7502
|
-
.component-title .component-title-text
|
|
7503
|
-
|
|
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; }
|
|
7504
7510
|
@media screen and (max-width: 575.98px) {
|
|
7505
|
-
.component-title .component-title-right-element {
|
|
7511
|
+
.component-title.hide-right-xs .component-title-right-element {
|
|
7506
7512
|
display: none;
|
|
7507
7513
|
visibility: hidden; } }
|
|
7508
7514
|
|
package/dist/index.js
CHANGED
|
@@ -11172,7 +11172,7 @@ TextEditorColorPicker.defaultProps = {
|
|
|
11172
11172
|
|
|
11173
11173
|
var rootClassName$2B = 'text-editor-header-button';
|
|
11174
11174
|
function TextEditorHeaderButton(props) {
|
|
11175
|
-
return /*#__PURE__*/React
|
|
11175
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
11176
11176
|
className: getMergedClassNames([rootClassName$2B, props.active ? 'active' : '']),
|
|
11177
11177
|
onClick: props.onClick,
|
|
11178
11178
|
disabled: props.disabled
|
|
@@ -11612,7 +11612,11 @@ TextEditor.defaultProps = {
|
|
|
11612
11612
|
var rootClassName$2F = 'component-title';
|
|
11613
11613
|
function Title(props) {
|
|
11614
11614
|
return React$1__default.createElement("div", {
|
|
11615
|
-
className: rootClassName$2F
|
|
11615
|
+
className: getMergedClassNames([rootClassName$2F, props.hideRightElementXS ? 'hide-right-xs' : '']),
|
|
11616
|
+
style: {
|
|
11617
|
+
alignItems: props.align,
|
|
11618
|
+
flexWrap: props.flexWrap
|
|
11619
|
+
}
|
|
11616
11620
|
}, React$1__default.createElement("div", {
|
|
11617
11621
|
className: rootClassName$2F + "-wrapper"
|
|
11618
11622
|
}, props.showBackButton ? React$1__default.createElement("div", {
|
|
@@ -11621,7 +11625,7 @@ function Title(props) {
|
|
|
11621
11625
|
icon: React$1__default.createElement(ArrowLeftIcon, null),
|
|
11622
11626
|
onClick: props.onBackClick
|
|
11623
11627
|
})) : undefined, React$1__default.createElement("div", {
|
|
11624
|
-
className: getMergedClassNames([rootClassName$2F + "-text", props.
|
|
11628
|
+
className: getMergedClassNames([rootClassName$2F + "-text", props.oneLineTitle ? 'one-line-title' : ''])
|
|
11625
11629
|
}, props.children)), props.rightElement ? React$1__default.createElement("div", {
|
|
11626
11630
|
className: rootClassName$2F + "-right-element"
|
|
11627
11631
|
}, props.rightElement) : undefined);
|