plataforma-fundacao-componentes 2.23.10 → 2.23.13

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.
@@ -5,6 +5,7 @@ interface EtiquetaProps {
5
5
  theme?: EtiquetasStyle;
6
6
  label?: string | number;
7
7
  icon?: React.ReactNode;
8
+ fitContent?: boolean;
8
9
  }
9
10
  declare function Etiqueta(props: EtiquetaProps): JSX.Element;
10
11
  declare namespace Etiqueta {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { ReactFragment } from 'react';
2
2
  import { ModalSizes } from '../../libraries/ModalSize';
3
3
  import { ButtonProps } from '../button/Button';
4
4
  import './Modal.scss';
@@ -14,7 +14,7 @@ export interface ModalProps {
14
14
  mobileOnXS?: boolean;
15
15
  compenseColPaddingContent?: boolean;
16
16
  footer?: ButtonProps[] | JSX.Element;
17
- children?: string | JSX.Element;
17
+ children?: string | JSX.Element | ReactFragment;
18
18
  }
19
19
  declare function Modal(props: ModalProps): JSX.Element;
20
20
  declare namespace Modal {
@@ -1,13 +1,13 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Modal as component };
4
- }
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Small(): JSX.Element;
7
- export function SmallCompensePadding(): JSX.Element;
8
- export function Large(): JSX.Element;
9
- export function ExtraLarge(): JSX.Element;
10
- export function Alert(): JSX.Element;
11
- export function Confirm(): JSX.Element;
12
- export function Destructive(): JSX.Element;
13
- import Modal from "./Modal";
6
+ export declare const Small: () => JSX.Element;
7
+ export declare const MultipleChildren: () => JSX.Element;
8
+ export declare const SmallCompensePadding: () => JSX.Element;
9
+ export declare const Large: () => JSX.Element;
10
+ export declare const ExtraLarge: () => JSX.Element;
11
+ export declare const Alert: () => JSX.Element;
12
+ export declare const Confirm: () => JSX.Element;
13
+ export declare const Destructive: () => JSX.Element;
@@ -4,7 +4,7 @@ import './Select.scss';
4
4
  declare type SelectAcceptedTypes = number | string | boolean;
5
5
  export declare type SelectOptionsType<T extends SelectAcceptedTypes = SelectAcceptedTypes> = {
6
6
  label: string | number;
7
- value: T;
7
+ value: T | null;
8
8
  key?: string;
9
9
  };
10
10
  export interface SelectProps {
@@ -6,3 +6,4 @@ export default _default;
6
6
  export declare const Primary: () => JSX.Element;
7
7
  export declare const UpperHeader: () => JSX.Element;
8
8
  export declare const UpperHeaderWithColumnFilter: () => JSX.Element;
9
+ export declare const CollapseExample: () => JSX.Element;
package/dist/index.css CHANGED
@@ -1,3 +1,124 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
2
+ @import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap");
3
+ :export {
4
+ white: #fefefe;
5
+ darkenWhite: #efefef;
6
+ black: #121212;
7
+ transparent: rgba(0, 0, 0, 0);
8
+ primary: #3fa110;
9
+ primaryDark: #33820d;
10
+ primaryLight: #d7e6c8;
11
+ secondaryDarker: #323c32;
12
+ secondaryDark: #5a645a;
13
+ secondary: #828a82;
14
+ secondaryLight: #cdd3cd;
15
+ secondaryLighter: #f8f9f7;
16
+ danger: #e60000;
17
+ dangerLight: #ffb4b4;
18
+ dangerDark: #ab4745;
19
+ warning: #ffcd00;
20
+ warningLight: #ffeb98;
21
+ warningDark: #765f00; }
22
+
23
+ :export {
24
+ widthXs: 575.98px;
25
+ widthSm: 767.98px;
26
+ widthMd: 991.98px;
27
+ widthLg: 1199.98px; }
28
+
29
+ :root {
30
+ --rowPadding: 0;
31
+ --colPadding: 8px; }
32
+
33
+ body.sb-show-main.sb-main-padded {
34
+ padding: 15px; }
35
+
36
+ *.nunito {
37
+ font-family: "Nunito", sans-serif; }
38
+
39
+ *:not(.nunito) {
40
+ font-family: "Exo 2", sans-serif; }
41
+
42
+ .document-grabbing {
43
+ cursor: -webkit-grabbing !important;
44
+ cursor: grabbing !important; }
45
+
46
+ h1 {
47
+ font-size: 36px;
48
+ font-weight: 600;
49
+ margin: 0; }
50
+
51
+ h2 {
52
+ font-size: 32px;
53
+ font-weight: 500;
54
+ margin: 0; }
55
+
56
+ h3 {
57
+ font-size: 24px;
58
+ font-weight: 500;
59
+ margin: 0; }
60
+
61
+ h4 {
62
+ font-size: 18px;
63
+ font-weight: 500;
64
+ margin: 0; }
65
+
66
+ h5 {
67
+ font-family: "Nunito", sans-serif;
68
+ font-size: 24px;
69
+ font-weight: 400;
70
+ margin: 0; }
71
+
72
+ .fade-enter {
73
+ position: absolute;
74
+ opacity: 0; }
75
+
76
+ .fade-enter-active {
77
+ transition: opacity 0.2s ease;
78
+ position: absolute;
79
+ opacity: 1; }
80
+
81
+ .fade-exit {
82
+ position: absolute;
83
+ opacity: 1; }
84
+
85
+ .fade-exit-active {
86
+ transition: opacity 0.15s ease;
87
+ position: absolute;
88
+ opacity: 0; }
89
+
90
+ * {
91
+ box-sizing: border-box; }
92
+ *::-webkit-scrollbar-track {
93
+ background-color: #f8f9f7;
94
+ border-radius: 20px; }
95
+ *::-webkit-scrollbar {
96
+ width: 12px;
97
+ height: 12px; }
98
+ *::-webkit-scrollbar-thumb {
99
+ -webkit-transition: all 0.3s ease;
100
+ transition: all 0.3s ease;
101
+ border-radius: 10px;
102
+ background-color: #cdd3cd;
103
+ border-width: 3px;
104
+ border-style: solid;
105
+ border-color: #f8f9f7; }
106
+ *::-webkit-scrollbar-thumb:hover {
107
+ border-width: 2px;
108
+ background-color: #bfc7bf; }
109
+ *::-webkit-scrollbar-button {
110
+ display: none; }
111
+
112
+ .scroll-white::-webkit-scrollbar-track {
113
+ background-color: #fefefe;
114
+ border-radius: 20px; }
115
+
116
+ .scroll-white::-webkit-scrollbar-thumb {
117
+ background-color: #cdd3cd;
118
+ border-color: #fefefe; }
119
+ .scroll-white::-webkit-scrollbar-thumb:hover {
120
+ background-color: #bfc7bf; }
121
+
1
122
  .icon-component {
2
123
  fill: currentColor;
3
124
  width: 1em;
@@ -4743,7 +4864,7 @@ max-width 100% 540px 720px 960px 1140px
4743
4864
  display: flex;
4744
4865
  align-items: center;
4745
4866
  justify-content: center;
4746
- height: 20px;
4867
+ height: 25px;
4747
4868
  border: 1px solid rgba(0, 0, 0, 0);
4748
4869
  border-radius: 20px;
4749
4870
  padding: 10px; }
@@ -4755,19 +4876,26 @@ max-width 100% 540px 720px 960px 1140px
4755
4876
  font-size: 14px;
4756
4877
  font-weight: 700;
4757
4878
  -webkit-user-select: none;
4758
- -moz-user-select: none;
4759
- user-select: none; }
4879
+ -moz-user-select: none;
4880
+ user-select: none;
4881
+ margin-bottom: 2px; }
4760
4882
  .component-etiqueta .component-etiqueta-icon {
4761
4883
  display: flex;
4762
4884
  align-items: center;
4763
4885
  justify-content: center;
4764
4886
  -webkit-user-select: none;
4765
- -moz-user-select: none;
4766
- user-select: none;
4767
- margin-right: 8px; }
4887
+ -moz-user-select: none;
4888
+ user-select: none;
4889
+ margin-right: 8px;
4890
+ margin-bottom: 1px; }
4768
4891
  .component-etiqueta .component-etiqueta-icon svg {
4769
4892
  height: 14px;
4770
4893
  width: 14px; }
4894
+ .component-etiqueta.fit-content {
4895
+ width: -webkit-fit-content;
4896
+ width: -moz-fit-content;
4897
+ width: fit-content;
4898
+ padding: 8px 12px; }
4771
4899
 
4772
4900
  .component-etiqueta.programas {
4773
4901
  background-color: rgba(0, 0, 0, 0);
@@ -4809,6 +4937,26 @@ max-width 100% 540px 720px 960px 1140px
4809
4937
  color: #ab4745;
4810
4938
  border-color: #ab4745; }
4811
4939
 
4940
+ .component-etiqueta.outline-primary {
4941
+ background-color: rgba(0, 0, 0, 0);
4942
+ color: #3fa110;
4943
+ border-color: #3fa110; }
4944
+
4945
+ .component-etiqueta.outline-danger {
4946
+ background-color: rgba(0, 0, 0, 0);
4947
+ color: #ab4745;
4948
+ border-color: #ab4745; }
4949
+
4950
+ .component-etiqueta.outline-blue {
4951
+ background-color: rgba(0, 0, 0, 0);
4952
+ color: #2b517b;
4953
+ border-color: #2b517b; }
4954
+
4955
+ .component-etiqueta.outline-warning-dark {
4956
+ background-color: rgba(0, 0, 0, 0);
4957
+ color: #765f00;
4958
+ border-color: #765f00; }
4959
+
4812
4960
  :export {
4813
4961
  widthXs: 575.98px;
4814
4962
  widthSm: 767.98px;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './assets/styles/default.scss';
1
2
  import { AconteceuIcon } from './assets/icons/AconteceuIcon';
2
3
  import { ChevronArrowRightIcon } from './assets/icons/ChevronArrowRightIcon';
3
4
  import { FontIcon } from './assets/icons/FontIcon';
package/dist/index.js CHANGED
@@ -9056,12 +9056,16 @@ var Etapas$1 = React.memo(Etapas);
9056
9056
  EtiquetasStyle["Aprovado"] = "aprovado";
9057
9057
  EtiquetasStyle["Reprovado"] = "reprovado";
9058
9058
  EtiquetasStyle["Cancelado"] = "cancelado";
9059
+ EtiquetasStyle["OutlinePrimary"] = "outline-primary";
9060
+ EtiquetasStyle["OutlineDanger"] = "outline-danger";
9061
+ EtiquetasStyle["OutlineBlue"] = "outline-blue";
9062
+ EtiquetasStyle["OutlineWarningDark"] = "outline-warning-dark";
9059
9063
  })(exports.EtiquetasStyle || (exports.EtiquetasStyle = {}));
9060
9064
 
9061
9065
  var rootClassName$2b = 'component-etiqueta';
9062
9066
  function Etiqueta(props) {
9063
9067
  return React__default.createElement("div", {
9064
- className: getMergedClassNames([rootClassName$2b, props.theme])
9068
+ className: getMergedClassNames([rootClassName$2b, props.theme, props.fitContent ? 'fit-content' : undefined])
9065
9069
  }, props.icon ? React__default.createElement("div", {
9066
9070
  className: rootClassName$2b + "-icon"
9067
9071
  }, props.icon) : undefined, React__default.createElement("div", {