@orangesix/react 1.0.9 → 1.0.10

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.
Files changed (41) hide show
  1. package/api/index.cjs.js +1 -1
  2. package/api/index.cjs.js.map +1 -1
  3. package/api/index.d.ts +140 -2
  4. package/api/index.esm.js +1 -1
  5. package/api/index.esm.js.map +1 -1
  6. package/api/theme.css +1 -378
  7. package/box/index.cjs.js +1 -1
  8. package/box/index.cjs.js.map +1 -1
  9. package/box/index.d.ts +6 -3
  10. package/box/index.esm.js +1 -1
  11. package/box/index.esm.js.map +1 -1
  12. package/editor/index.cjs.js +1 -19
  13. package/editor/index.cjs.js.map +1 -1
  14. package/editor/index.d.ts +10 -15
  15. package/editor/index.esm.js +1 -19
  16. package/editor/index.esm.js.map +1 -1
  17. package/inputfilter/_inputfilter.scss +64 -0
  18. package/inputfilter/index.cjs.js +2 -0
  19. package/inputfilter/index.cjs.js.map +1 -0
  20. package/inputfilter/index.d.ts +161 -0
  21. package/inputfilter/index.esm.js +2 -0
  22. package/inputfilter/index.esm.js.map +1 -0
  23. package/inputfilter/package.json +5 -0
  24. package/package.json +13 -12
  25. package/table/index.cjs.js +1 -1
  26. package/table/index.cjs.js.map +1 -1
  27. package/table/index.d.ts +56 -52
  28. package/table/index.esm.js +1 -1
  29. package/table/index.esm.js.map +1 -1
  30. package/tablepivot/_tablepivot.scss +101 -0
  31. package/tablepivot/index.cjs.js +2 -0
  32. package/tablepivot/index.cjs.js.map +1 -0
  33. package/tablepivot/index.d.ts +256 -0
  34. package/tablepivot/index.esm.js +2 -0
  35. package/tablepivot/index.esm.js.map +1 -0
  36. package/tablepivot/package.json +5 -0
  37. package/utils/index.cjs.js +1 -1
  38. package/utils/index.cjs.js.map +1 -1
  39. package/utils/index.d.ts +25 -1
  40. package/utils/index.esm.js +1 -1
  41. package/utils/index.esm.js.map +1 -1
package/api/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";
1
+ "use strict";var e=require("react");exports.InputLabel=({iconPrefix:a="bi bi-",...r})=>r.label&&e.createElement("p",{className:"form-label"},r.icon&&e.createElement("i",{className:a+r.icon+" me-1"}),r.label,r.required&&e.createElement("span",{className:"text-danger"},"*"));
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/api/input.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { ApiFieldComponentProps } from \"./types\";\r\n\r\n/**\r\n * API - `InputLabel`\r\n *\r\n * Um componente utilizado como label em todos os componente de campo do pacote.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n */\r\nexport const InputLabel = ({ iconPrefix = \"bi bi-\", ...props }: ApiFieldComponentProps) => {\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return props.label\r\n && <p className='form-label'>\r\n {props.icon && <i className={iconPrefix + props.icon + \" me-1\"}/>}\r\n {props.label}\r\n {props.required && <span className=\"text-danger\">*</span>}\r\n </p>;\r\n};"],"names":["iconPrefix","props","label","React","createElement","className","icon","required"],"mappings":"uDAS0B,EAAGA,aAAa,YAAaC,KAM5CA,EAAMC,OACNC,EAAGC,cAAA,IAAA,CAAAC,UAAU,cACXJ,EAAMK,MAAQH,EAAAC,cAAA,IAAA,CAAGC,UAAWL,EAAaC,EAAMK,KAAO,UACtDL,EAAMC,MACND,EAAMM,UAAYJ,EAAAC,cAAA,OAAA,CAAMC,UAAU,eAAsB"}
package/api/index.d.ts CHANGED
@@ -1,10 +1,91 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
 
3
+ /**
4
+ * Realiza o mapeamento dos valores da propriedades css `align-items`
5
+ */
6
+ type AlignItemsProps =
7
+ | "align-items-start"
8
+ | "align-items-end"
9
+ | "align-items-center"
10
+ | "align-items-baseline"
11
+ | "align-items-stretch"
12
+ | "align-items-sm-start"
13
+ | "align-items-sm-end"
14
+ | "align-items-sm-center"
15
+ | "align-items-sm-baseline"
16
+ | "align-items-sm-stretch"
17
+ | "align-items-md-start"
18
+ | "align-items-md-end"
19
+ | "align-items-md-center"
20
+ | "align-items-md-baseline"
21
+ | "align-items-md-stretch"
22
+ | "align-items-lg-start"
23
+ | "align-items-lg-end"
24
+ | "align-items-lg-center"
25
+ | "align-items-lg-baseline"
26
+ | "align-items-lg-stretch"
27
+ | "align-items-xl-start"
28
+ | "align-items-xl-end"
29
+ | "align-items-xl-center"
30
+ | "align-items-xl-baseline"
31
+ | "align-items-xl-stretch"
32
+ | "align-items-xxl-start"
33
+ | "align-items-xxl-end"
34
+ | "align-items-xxl-center"
35
+ | "align-items-xxl-baseline"
36
+ | "align-items-xxl-stretch"
37
+
38
+ /**
39
+ * Realiza o mapeamento dos valores da propriedades css `justify-content`
40
+ */
41
+ type JustifyContentProps =
42
+ | "justify-content-start"
43
+ | "justify-content-end"
44
+ | "justify-content-center"
45
+ | "justify-content-between"
46
+ | "justify-content-around"
47
+ | "justify-content-evenly"
48
+ | "justify-content-sm-start"
49
+ | "justify-content-sm-end"
50
+ | "justify-content-sm-center"
51
+ | "justify-content-sm-between"
52
+ | "justify-content-sm-around"
53
+ | "justify-content-sm-evenly"
54
+ | "justify-content-md-start"
55
+ | "justify-content-md-end"
56
+ | "justify-content-md-center"
57
+ | "justify-content-md-between"
58
+ | "justify-content-md-around"
59
+ | "justify-content-md-evenly"
60
+ | "justify-content-lg-start"
61
+ | "justify-content-lg-end"
62
+ | "justify-content-lg-center"
63
+ | "justify-content-lg-between"
64
+ | "justify-content-lg-around"
65
+ | "justify-content-lg-evenly"
66
+ | "justify-content-xl-start"
67
+ | "justify-content-xl-end"
68
+ | "justify-content-xl-center"
69
+ | "justify-content-xl-between"
70
+ | "justify-content-xl-around"
71
+ | "justify-content-xl-evenly"
72
+ | "justify-content-xxl-start"
73
+ | "justify-content-xxl-end"
74
+ | "justify-content-xxl-center"
75
+ | "justify-content-xxl-between"
76
+ | "justify-content-xxl-around"
77
+ | "justify-content-xxl-evenly"
78
+
3
79
  /**
4
80
  * Define as tipagens `default` de todos os componentes do pacote
5
81
  */
6
82
  interface ApiComponentProps {
7
83
 
84
+ /**
85
+ * Propriedade para identificar o id do elemento
86
+ */
87
+ id?: string
88
+
8
89
  /**
9
90
  * Adiciona no atributo `class` do componente o valor atribuido nessa propriedade
10
91
  */
@@ -19,8 +100,65 @@ interface ApiComponentProps {
19
100
  * Define as propriedades css do component `style`
20
101
  */
21
102
  css?: CSSProperties
103
+ }
104
+
105
+ /**
106
+ * Define as tipagens ´default´ de tidos os componente de entrada de dados do pacote
107
+ */
108
+ interface ApiFieldComponentProps {
109
+
110
+ /**
111
+ * Define o id do campo
112
+ */
113
+ id?: string
114
+
115
+ /**
116
+ * Define o nome do campo
117
+ */
118
+ name?: string
119
+
120
+ /**
121
+ * Define o rótulo do campo
122
+ */
123
+ label?: string
124
+
125
+ /**
126
+ * Define o espaço reservador do campo
127
+ */
128
+ placeholder?: string
129
+
130
+ /**
131
+ * Define o icone do campo
132
+ */
133
+ icon?: string
134
+
135
+ /**
136
+ * Define o prefixo dos icones do pacote
137
+ */
138
+ iconPrefix?: "bi bi-" | "pi pi-"
139
+
140
+ /**
141
+ * Define se campo é obrigatório
142
+ */
143
+ required?: boolean
144
+
145
+ /**
146
+ * Desabilita a entrada de dados no campo
147
+ */
148
+ disabled?: boolean
22
149
  }
23
150
 
151
+ /**
152
+ * API - `InputLabel`
153
+ *
154
+ * Um componente utilizado como label em todos os componente de campo do pacote.
155
+ * Permite personalizar o estilo e o conteúdo através de propriedades.
156
+ */
157
+ declare const InputLabel: ({ iconPrefix, ...props }: ApiFieldComponentProps) => "" | React.JSX.Element | undefined;
158
+
159
+ type IAlignItemsProps = AlignItemsProps;
24
160
  type IAPIComponentProps = ApiComponentProps;
161
+ type IJustifyContentProps = JustifyContentProps;
162
+ type IApiFieldComponentProps = ApiFieldComponentProps;
25
163
 
26
- export type { IAPIComponentProps };
164
+ export { type IAPIComponentProps, type IAlignItemsProps, type IApiFieldComponentProps, type IJustifyContentProps, InputLabel };
package/api/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
-
1
+ import e from"react";const a=({iconPrefix:a="bi bi-",...l})=>l.label&&e.createElement("p",{className:"form-label"},l.icon&&e.createElement("i",{className:a+l.icon+" me-1"}),l.label,l.required&&e.createElement("span",{className:"text-danger"},"*"));export{a as InputLabel};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/api/input.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { ApiFieldComponentProps } from \"./types\";\r\n\r\n/**\r\n * API - `InputLabel`\r\n *\r\n * Um componente utilizado como label em todos os componente de campo do pacote.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n */\r\nexport const InputLabel = ({ iconPrefix = \"bi bi-\", ...props }: ApiFieldComponentProps) => {\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return props.label\r\n && <p className='form-label'>\r\n {props.icon && <i className={iconPrefix + props.icon + \" me-1\"}/>}\r\n {props.label}\r\n {props.required && <span className=\"text-danger\">*</span>}\r\n </p>;\r\n};"],"names":["InputLabel","iconPrefix","props","label","React","createElement","className","icon","required"],"mappings":"qBASO,MAAMA,EAAa,EAAGC,aAAa,YAAaC,KAM5CA,EAAMC,OACNC,EAAGC,cAAA,IAAA,CAAAC,UAAU,cACXJ,EAAMK,MAAQH,EAAAC,cAAA,IAAA,CAAGC,UAAWL,EAAaC,EAAMK,KAAO,UACtDL,EAAMC,MACND,EAAMM,UAAYJ,EAAAC,cAAA,OAAA,CAAMC,UAAU,eAAsB"}
package/api/theme.css CHANGED
@@ -1,378 +1 @@
1
- @charset "UTF-8";
2
- :root {
3
- --box-size-5: 5%;
4
- --box-size-10: 10%;
5
- --box-size-12-5: 12.5%;
6
- --box-size-15: 15%;
7
- --box-size-17-5: 17.5%;
8
- --box-size-20: 20%;
9
- --box-size-22-5: 25.5%;
10
- --box-size-25: 25%;
11
- --box-size-30: 30%;
12
- --box-size-33: 33.3333%;
13
- --box-size-35: 35%;
14
- --box-size-40: 40%;
15
- --box-size-45: 45%;
16
- --box-size-50: 50%;
17
- --box-size-55: 55%;
18
- --box-size-60: 60%;
19
- --box-size-65: 65%;
20
- --box-size-70: 70%;
21
- --box-size-75: 75%;
22
- --box-size-80: 80%;
23
- --box-size-85: 85%;
24
- --box-size-90: 90%;
25
- --box-size-95: 95%;
26
- --box-size-100: 100%; }
27
-
28
- .box {
29
- display: flex;
30
- flex-wrap: wrap;
31
- position: relative; }
32
- .box.box-size-5 {
33
- width: calc(var(--box-size-5, 5%) - 0.5rem);
34
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
35
- padding: 0.5rem; }
36
- @media (max-width: 576px) {
37
- .box.box-size-5 {
38
- width: calc(100% - 0.5rem); } }
39
- .box.box-size-10 {
40
- width: calc(var(--box-size-10, 10%) - 0.5rem);
41
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
42
- padding: 0.5rem; }
43
- @media (max-width: 576px) {
44
- .box.box-size-10 {
45
- width: calc(100% - 0.5rem); } }
46
- .box.box-size-12-5 {
47
- width: calc(var(--box-size-12-5, 12.5%) - 0.5rem);
48
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
49
- padding: 0.5rem; }
50
- @media (max-width: 576px) {
51
- .box.box-size-12-5 {
52
- width: calc(100% - 0.5rem); } }
53
- .box.box-size-15 {
54
- width: calc(var(--box-size-15, 15%) - 0.5rem);
55
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
56
- padding: 0.5rem; }
57
- @media (max-width: 576px) {
58
- .box.box-size-15 {
59
- width: calc(100% - 0.5rem); } }
60
- .box.box-size-17-5 {
61
- width: calc(var(--box-size-17-5, 17.5%) - 0.5rem);
62
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
63
- padding: 0.5rem; }
64
- @media (max-width: 576px) {
65
- .box.box-size-17-5 {
66
- width: calc(100% - 0.5rem); } }
67
- .box.box-size-20 {
68
- width: calc(var(--box-size-20, 20%) - 0.5rem);
69
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
70
- padding: 0.5rem; }
71
- @media (max-width: 576px) {
72
- .box.box-size-20 {
73
- width: calc(100% - 0.5rem); } }
74
- .box.box-size-22-5 {
75
- width: calc(var(--box-size-22-5, 25.5%) - 0.5rem);
76
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
77
- padding: 0.5rem; }
78
- @media (max-width: 576px) {
79
- .box.box-size-22-5 {
80
- width: calc(100% - 0.5rem); } }
81
- .box.box-size-25 {
82
- width: calc(var(--box-size-25, 25%) - 0.5rem);
83
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
84
- padding: 0.5rem; }
85
- @media (max-width: 576px) {
86
- .box.box-size-25 {
87
- width: calc(100% - 0.5rem); } }
88
- .box.box-size-30 {
89
- width: calc(var(--box-size-30, 30%) - 0.5rem);
90
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
91
- padding: 0.5rem; }
92
- @media (max-width: 576px) {
93
- .box.box-size-30 {
94
- width: calc(100% - 0.5rem); } }
95
- .box.box-size-33 {
96
- width: calc(var(--box-size-33, 33%) - 0.5rem);
97
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
98
- padding: 0.5rem; }
99
- @media (max-width: 576px) {
100
- .box.box-size-33 {
101
- width: calc(100% - 0.5rem); } }
102
- .box.box-size-35 {
103
- width: calc(var(--box-size-35, 35%) - 0.5rem);
104
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
105
- padding: 0.5rem; }
106
- @media (max-width: 576px) {
107
- .box.box-size-35 {
108
- width: calc(100% - 0.5rem); } }
109
- .box.box-size-40 {
110
- width: calc(var(--box-size-40, 40%) - 0.5rem);
111
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
112
- padding: 0.5rem; }
113
- @media (max-width: 576px) {
114
- .box.box-size-40 {
115
- width: calc(100% - 0.5rem); } }
116
- .box.box-size-45 {
117
- width: calc(var(--box-size-45, 45%) - 0.5rem);
118
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
119
- padding: 0.5rem; }
120
- @media (max-width: 576px) {
121
- .box.box-size-45 {
122
- width: calc(100% - 0.5rem); } }
123
- .box.box-size-50 {
124
- width: calc(var(--box-size-50, 50%) - 0.5rem);
125
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
126
- padding: 0.5rem; }
127
- @media (max-width: 576px) {
128
- .box.box-size-50 {
129
- width: calc(100% - 0.5rem); } }
130
- .box.box-size-55 {
131
- width: calc(var(--box-size-55, 55%) - 0.5rem);
132
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
133
- padding: 0.5rem; }
134
- @media (max-width: 576px) {
135
- .box.box-size-55 {
136
- width: calc(100% - 0.5rem); } }
137
- .box.box-size-60 {
138
- width: calc(var(--box-size-60, 60%) - 0.5rem);
139
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
140
- padding: 0.5rem; }
141
- @media (max-width: 576px) {
142
- .box.box-size-60 {
143
- width: calc(100% - 0.5rem); } }
144
- .box.box-size-65 {
145
- width: calc(var(--box-size-65, 65%) - 0.5rem);
146
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
147
- padding: 0.5rem; }
148
- @media (max-width: 576px) {
149
- .box.box-size-65 {
150
- width: calc(100% - 0.5rem); } }
151
- .box.box-size-70 {
152
- width: calc(var(--box-size-70, 70%) - 0.5rem);
153
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
154
- padding: 0.5rem; }
155
- @media (max-width: 576px) {
156
- .box.box-size-70 {
157
- width: calc(100% - 0.5rem); } }
158
- .box.box-size-75 {
159
- width: calc(var(--box-size-75, 75%) - 0.5rem);
160
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
161
- padding: 0.5rem; }
162
- @media (max-width: 576px) {
163
- .box.box-size-75 {
164
- width: calc(100% - 0.5rem); } }
165
- .box.box-size-80 {
166
- width: calc(var(--box-size-80, 80%) - 0.5rem);
167
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
168
- padding: 0.5rem; }
169
- @media (max-width: 576px) {
170
- .box.box-size-80 {
171
- width: calc(100% - 0.5rem); } }
172
- .box.box-size-85 {
173
- width: calc(var(--box-size-85, 85%) - 0.5rem);
174
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
175
- padding: 0.5rem; }
176
- @media (max-width: 576px) {
177
- .box.box-size-85 {
178
- width: calc(100% - 0.5rem); } }
179
- .box.box-size-90 {
180
- width: calc(var(--box-size-90, 90%) - 0.5rem);
181
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
182
- padding: 0.5rem; }
183
- @media (max-width: 576px) {
184
- .box.box-size-90 {
185
- width: calc(100% - 0.5rem); } }
186
- .box.box-size-95 {
187
- width: calc(var(--box-size-95, 95%) - 0.5rem);
188
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
189
- padding: 0.5rem; }
190
- @media (max-width: 576px) {
191
- .box.box-size-95 {
192
- width: calc(100% - 0.5rem); } }
193
- .box.box-size-100 {
194
- width: calc(var(--box-size-100, 100%) - 0.5rem);
195
- margin: calc(0.5rem / 2) calc(0.5rem / 2);
196
- padding: 0.5rem; }
197
- @media (max-width: 576px) {
198
- .box.box-size-100 {
199
- width: calc(100% - 0.5rem); } }
200
- .box.box-direction-row {
201
- flex-direction: row; }
202
- .box.box-direction-column {
203
- flex-direction: column; }
204
-
205
- :root {
206
- --table-frozen: #fff;
207
- --table-sort-size: 12px;
208
- --table-sort-active: #0D6EFD;
209
- --table-checkbox-size: 17px;
210
- --table-scrollbar: #e1e1e1;
211
- --table-select: var(--bs-light, #e1e1e1);
212
- --table-header: var(--bs-light, #f5f5f5);
213
- --table-footer: var(--bs-light, #f5f5f5);
214
- --table-paginator-color: var(--bs-secondary-300, #b9b9b9);
215
- --table-paginator-active: var(--bs-primary, #0D6EFD); }
216
-
217
- .table-responsive {
218
- width: 100%; }
219
-
220
- .table {
221
- width: 100%;
222
- margin-bottom: 0; }
223
- .table-footer, .table-header {
224
- width: 100%;
225
- display: flex;
226
- padding: 0;
227
- margin: 0;
228
- background: var(--table-header, #F5F5F5);
229
- border-bottom: 1px solid #dee2e6; }
230
- .table-footer {
231
- border-top: 1px solid #dee2e6;
232
- background: var(--table-footer, #F5F5F5); }
233
- .table-sort {
234
- cursor: pointer;
235
- color: var(--bs-secondary, #5555); }
236
- .table-sort svg {
237
- width: var(--table-sort-size, 12px);
238
- height: var(--table-sort-size, 12px); }
239
- .table-sort-active span[data-pc-section='sort'] svg {
240
- color: var(--bs-primary, #0D6EFD); }
241
- .table-resizable {
242
- text-overflow: ellipsis; }
243
-
244
- /**
245
- * Personalização do style do PrimeReact
246
- */
247
- .p-datatable .p-datatable-wrapper::-webkit-scrollbar {
248
- height: 8px; }
249
-
250
- .p-datatable .p-datatable-wrapper::-webkit-scrollbar-thumb {
251
- background: var(--table-scrollbar, #e1e1e1);
252
- border-radius: 10px; }
253
-
254
- .p-datatable .p-datatable-tbody .p-highlight {
255
- background: var(--table-select, #e1e1e1); }
256
- .p-datatable .p-datatable-tbody .p-highlight td {
257
- font-weight: bolder; }
258
- .p-datatable .p-datatable-tbody .p-highlight td.p-frozen-column {
259
- background: var(--table-select, #e1e1e1); }
260
-
261
- .p-datatable .p-datatable-tbody .p-row-toggler {
262
- width: 14px;
263
- height: 14px;
264
- margin-left: 5px; }
265
-
266
- .p-datatable .p-frozen-column {
267
- position: sticky; }
268
-
269
- .p-datatable .p-frozen-column[data-pc-section="bodycell"] {
270
- background: var(--table-frozen, #fff); }
271
-
272
- .p-datatable .p-checkbox-box {
273
- width: var(--table-checkbox-size, 17px);
274
- height: var(--table-checkbox-size, 17px); }
275
-
276
- .p-datatable .p-checkbox.p-highlight .p-checkbox-box {
277
- background: var(--bs-primary, #0D6EFD);
278
- border-color: var(--bs-primary, #0D6EFD); }
279
-
280
- .p-datatable .p-checkbox:has(.p-checkbox-input:hover) .p-highlight .p-checkbox-box {
281
- border-color: var(--bs-primary, #0D6EFD); }
282
-
283
- .p-datatable .p-paginator .p-paginator-first,
284
- .p-datatable .p-paginator .p-paginator-page,
285
- .p-datatable .p-paginator .p-paginator-last {
286
- font-size: .9em;
287
- min-width: 28px;
288
- height: 28px;
289
- color: var(--table-paginator-color, #b9b9b9); }
290
-
291
- .p-datatable .p-paginator .p-paginator-page.p-highlight {
292
- color: #fff;
293
- border: none;
294
- background: var(--table-paginator-active, #0D6EFD); }
295
-
296
- :root {
297
- --editor-font-size: 1em;
298
- --editor-border-radius: 3px;
299
- --editor-background: transparent;
300
- --editor-border-color: var(--bs-gray-500, #adb5bd);
301
- --editor-menu-font-size: 1.2em;
302
- --editor-active-menu-color: var(--bs-primary, #0D6EFD); }
303
-
304
- .editor-container {
305
- position: relative;
306
- width: 100%;
307
- display: flex;
308
- flex-wrap: wrap;
309
- border-radius: var(--editor-border-radius);
310
- border: 1px solid var(--editor-border-color);
311
- /**
312
- * Personalização do style do Tiptap
313
- */ }
314
- .editor-container .editor {
315
- width: 100%;
316
- font-size: var(--editor-font-size);
317
- background: var(--editor-background); }
318
- .editor-container .editor-menu {
319
- overflow-x: auto;
320
- display: flex;
321
- width: 100%;
322
- padding: 2.5px;
323
- align-items: center;
324
- border-bottom: 1px solid var(--editor-border-color); }
325
- .editor-container .editor-menu-group {
326
- display: flex;
327
- margin: auto 10px; }
328
- .editor-container .editor-menu-item {
329
- margin: auto 5px;
330
- font-size: var(--editor-menu-font-size); }
331
- .editor-container .editor-menu-item.active {
332
- color: var(--editor-active-menu-color); }
333
- .editor-container .editor-menu::-webkit-scrollbar {
334
- height: 2px;
335
- width: 0;
336
- background: transparent; }
337
- .editor-container .editor-menu::-webkit-scrollbar-thumb {
338
- border-radius: 5px;
339
- background: var(--editor-border-color);
340
- border: none; }
341
- .editor-container .editor-link {
342
- display: flex;
343
- min-width: 300px;
344
- z-index: 5000;
345
- align-items: center;
346
- top: 45px;
347
- left: 10px;
348
- border: 1px solid #f1f1f1;
349
- border-radius: 3px;
350
- padding: 10px;
351
- background: #fff;
352
- position: absolute; }
353
- .editor-container .editor-image {
354
- margin-top: 3px;
355
- position: relative; }
356
- .editor-container .editor-image input {
357
- position: absolute;
358
- top: 0;
359
- left: 0;
360
- right: 0;
361
- bottom: 0;
362
- opacity: 0; }
363
- .editor-container .tiptap {
364
- flex: 1;
365
- padding: 10px; }
366
- .editor-container .tiptap a {
367
- color: var(--bs-primary);
368
- text-decoration: underline solid var(--bs-primary); }
369
- .editor-container .tiptap code {
370
- background: #f0f0f0;
371
- border-bottom: 3px;
372
- padding: 2px 4px;
373
- font-size: 85%; }
374
- .editor-container .tiptap img {
375
- max-width: 100%; }
376
- .editor-container .tiptap.ProseMirror-focused {
377
- border-radius: var(--editor-border-radius, 3px);
378
- outline: none !important; }
1
+ :root{--box-size-5: 5%;--box-size-10: 10%;--box-size-12-5: 12.5%;--box-size-15: 15%;--box-size-17-5: 17.5%;--box-size-20: 20%;--box-size-22-5: 25.5%;--box-size-25: 25%;--box-size-30: 30%;--box-size-33: 33.3333%;--box-size-35: 35%;--box-size-40: 40%;--box-size-45: 45%;--box-size-50: 50%;--box-size-55: 55%;--box-size-60: 60%;--box-size-65: 65%;--box-size-70: 70%;--box-size-75: 75%;--box-size-80: 80%;--box-size-85: 85%;--box-size-90: 90%;--box-size-95: 95%;--box-size-100: 100%}.box{display:flex;flex-wrap:wrap;position:relative}.box.box-size-5{width:calc(var(--box-size-5, 5%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-5{width:calc(100% - .5rem)}}.box.box-size-10{width:calc(var(--box-size-10, 10%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-10{width:calc(100% - .5rem)}}.box.box-size-12-5{width:calc(var(--box-size-12-5, 12.5%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-12-5{width:calc(100% - .5rem)}}.box.box-size-15{width:calc(var(--box-size-15, 15%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-15{width:calc(100% - .5rem)}}.box.box-size-17-5{width:calc(var(--box-size-17-5, 17.5%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-17-5{width:calc(100% - .5rem)}}.box.box-size-20{width:calc(var(--box-size-20, 20%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-20{width:calc(100% - .5rem)}}.box.box-size-22-5{width:calc(var(--box-size-22-5, 25.5%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-22-5{width:calc(100% - .5rem)}}.box.box-size-25{width:calc(var(--box-size-25, 25%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-25{width:calc(100% - .5rem)}}.box.box-size-30{width:calc(var(--box-size-30, 30%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-30{width:calc(100% - .5rem)}}.box.box-size-33{width:calc(var(--box-size-33, 33%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-33{width:calc(100% - .5rem)}}.box.box-size-35{width:calc(var(--box-size-35, 35%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-35{width:calc(100% - .5rem)}}.box.box-size-40{width:calc(var(--box-size-40, 40%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-40{width:calc(100% - .5rem)}}.box.box-size-45{width:calc(var(--box-size-45, 45%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-45{width:calc(100% - .5rem)}}.box.box-size-50{width:calc(var(--box-size-50, 50%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-50{width:calc(100% - .5rem)}}.box.box-size-55{width:calc(var(--box-size-55, 55%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-55{width:calc(100% - .5rem)}}.box.box-size-60{width:calc(var(--box-size-60, 60%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-60{width:calc(100% - .5rem)}}.box.box-size-65{width:calc(var(--box-size-65, 65%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-65{width:calc(100% - .5rem)}}.box.box-size-70{width:calc(var(--box-size-70, 70%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-70{width:calc(100% - .5rem)}}.box.box-size-75{width:calc(var(--box-size-75, 75%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-75{width:calc(100% - .5rem)}}.box.box-size-80{width:calc(var(--box-size-80, 80%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-80{width:calc(100% - .5rem)}}.box.box-size-85{width:calc(var(--box-size-85, 85%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-85{width:calc(100% - .5rem)}}.box.box-size-90{width:calc(var(--box-size-90, 90%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-90{width:calc(100% - .5rem)}}.box.box-size-95{width:calc(var(--box-size-95, 95%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-95{width:calc(100% - .5rem)}}.box.box-size-100{width:calc(var(--box-size-100, 100%) - .5rem);margin:calc(.5rem / 2) calc(.5rem / 2);padding:.5rem}@media (max-width: 576px){.box.box-size-100{width:calc(100% - .5rem)}}.box.box-direction-row{flex-direction:row}.box.box-direction-column{flex-direction:column}:root{--table-frozen: #fff;--table-sort-size: 12px;--table-sort-active: #0D6EFD;--table-checkbox-size: 17px;--table-scrollbar: #e1e1e1;--table-select: var(--bs-light, #e1e1e1);--table-header: var(--bs-light, #f5f5f5);--table-footer: var(--bs-light, #f5f5f5);--table-paginator-color: var(--bs-secondary-300, #b9b9b9);--table-paginator-active: var(--bs-primary, #0D6EFD)}.table-responsive{width:100%}.table{width:100%;margin-bottom:0}.table-footer,.table-header{width:100%;display:flex;padding:0;margin:0;background:var(--table-header, #f5f5f5);border-bottom:1px solid #dee2e6}.table-footer{border-top:1px solid #dee2e6;background:var(--table-footer, #f5f5f5)}.table-sort{cursor:pointer;color:var(--bs-secondary, rgba(85,85,85,0.333333))}.table-sort svg{width:var(--table-sort-size, 12px);height:var(--table-sort-size, 12px)}.table-sort-active span[data-pc-section='sort'] svg{color:var(--bs-primary, #0D6EFD)}.table-resizable{text-overflow:ellipsis}.p-datatable .p-datatable-wrapper::-webkit-scrollbar{height:8px}.p-datatable .p-datatable-wrapper::-webkit-scrollbar-thumb{background:var(--table-scrollbar, #e1e1e1);border-radius:10px}.p-datatable .p-datatable-tbody .p-highlight{background:var(--table-select, #e1e1e1)}.p-datatable .p-datatable-tbody .p-highlight td{font-weight:bolder}.p-datatable .p-datatable-tbody .p-highlight td.p-frozen-column{background:var(--table-select, #e1e1e1)}.p-datatable .p-datatable-tbody .p-row-toggler{width:14px;height:14px;margin-left:5px}.p-datatable .p-frozen-column{position:sticky}.p-datatable .p-frozen-column[data-pc-section="bodycell"]{background:var(--table-frozen, #fff)}.p-datatable .p-checkbox-box{width:var(--table-checkbox-size, 17px);height:var(--table-checkbox-size, 17px)}.p-datatable .p-checkbox.p-highlight .p-checkbox-box{background:var(--bs-primary, #0D6EFD);border-color:var(--bs-primary, #0D6EFD)}.p-datatable .p-checkbox:has(.p-checkbox-input:hover) .p-highlight .p-checkbox-box{border-color:var(--bs-primary, #0D6EFD)}.p-datatable .p-paginator .p-paginator-first,.p-datatable .p-paginator .p-paginator-page,.p-datatable .p-paginator .p-paginator-last{font-size:.9em;min-width:28px;height:28px;color:var(--table-paginator-color, #b9b9b9)}.p-datatable .p-paginator .p-paginator-page.p-highlight{color:#fff;border:none;background:var(--table-paginator-active, #0D6EFD)}:root{--editor-font-size: 1em;--editor-border-radius: 3px;--editor-background: transparent;--editor-border-color: var(--bs-gray-500, #adb5bd);--editor-menu-font-size: 1.2em;--editor-active-menu-color: var(--bs-primary, #0D6EFD)}.editor-container{position:relative;width:100%;display:flex;flex-wrap:wrap;border-radius:var(--editor-border-radius);border:1px solid var(--editor-border-color)}.editor-container .editor{width:100%;font-size:var(--editor-font-size);background:var(--editor-background)}.editor-container .editor-menu{overflow-x:auto;display:flex;width:100%;padding:2.5px;align-items:center;border-bottom:1px solid var(--editor-border-color)}.editor-container .editor-menu-group{display:flex;margin:auto 10px}.editor-container .editor-menu-item{margin:auto 5px;font-size:var(--editor-menu-font-size)}.editor-container .editor-menu-item.active{color:var(--editor-active-menu-color)}.editor-container .editor-menu::-webkit-scrollbar{height:2px;width:0;background:transparent}.editor-container .editor-menu::-webkit-scrollbar-thumb{border-radius:5px;background:var(--editor-border-color);border:none}.editor-container .editor-link{display:flex;min-width:300px;z-index:5000;align-items:center;top:45px;left:10px;border:1px solid #f1f1f1;border-radius:3px;padding:10px;background:#fff;position:absolute}.editor-container .editor-image{margin-top:3px;position:relative}.editor-container .editor-image input{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.editor-container .tiptap{flex:1;padding:10px}.editor-container .tiptap a{color:var(--bs-primary);text-decoration:underline solid var(--bs-primary)}.editor-container .tiptap code{background:#f0f0f0;border-bottom:3px;padding:2px 4px;font-size:85%}.editor-container .tiptap img{max-width:100%}.editor-container .tiptap.ProseMirror-focused{border-radius:var(--editor-border-radius, 3px);outline:none !important}:root{--table-pivot-toolbar-font-size: .9em;--table-pivot-border-radius: 5px;--table-pivot-border-color: var(--bs-gray-300, #e5e5e5);--table-pivot-background: var(--bs-white, #fff);--table-pivot-background-toolbar: transparent;--table-pivot-background-header: #f2f2f2;--table-pivot-background-filter: #e0e0e0;--table-pivot-modal-padding: 1rem;--table-pivot-modal-btn-font-size: .9em;--table-pivot-modal-btn-padding: .375rem .5rem}.pivot-table{position:relative;border:1px dashed var(--table-pivot-border-color);border-radius:var(--table-pivot-border-radius)}.pivot-table #wdr-toolbar-wrapper #wdr-toolbar{background:var(--table-pivot-background-toolbar) !important}.pivot-table #wdr-toolbar-wrapper #wdr-toolbar span{font-size:var(--table-pivot-toolbar-font-size) !important;font-family:var(--bs-body-font-family),serif !important}.pivot-table #wdr-pivot-view .wdr-grid-layout div.wdr-header{background:var(--table-pivot-background-header) !important}.pivot-table #wdr-pivot-view .wdr-grid-layout #wdr-cols-filter{background:var(--table-pivot-background-filter)}.pivot-table #wdr-pivot-view .wdr-ui div{font-family:var(--bs-body-font-family),serif !important}.pivot-table #wdr-pivot-view .wdr-ui div.wdr-cell{background:var(--table-pivot-background);border-color:var(--table-pivot-border-color)}.pivot-table #wdr-pivot-view div.wdr-ui-window{padding:var(--table-pivot-modal-padding)}.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-popup-subtitle,.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-popup-title{margin:0;padding:0}.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-popup-title{font-size:20px}.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-ui-btn{height:auto;margin:0 .25rem;padding:var(--table-pivot-modal-btn-padding);font-size:var(--table-pivot-modal-btn-font-size)}.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-selected span,.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-unchecked span,.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-checked span{font-family:var(--bs-body-font-family),serif !important}.pivot-table #wdr-pivot-view div.wdr-ui-window .wdr-ui-toggle-btn-dark{margin-bottom:15px !important}.pivot-table .wdr-ui{font-family:var(--bs-body-font-family),serif !important}.pivot-table .wdr-credits{display:none !important}:root{--input-filter-border-color: var(--gray-400, #ccc);--input-filter-border-radius: var(--input-border-radius, 5px)}.input-filter-container{border-radius:var(--input-filter-border-radius);border:1px dashed var(--input-filter-border-color)}.input-filter-content{width:100%;display:flex;align-items:flex-start;gap:.5rem}.input-filter-content .p-autocomplete-multiple{padding:0}.input-filter-content .p-autocomplete-multiple-container{width:100%;padding:.2rem .5rem}.input-filter-content .p-autocomplete-multiple-container .form-control{border:none;padding:.2rem}.input-filter-content .p-autocomplete-multiple-container .p-autocomplete-token{padding:.2rem .5rem;margin:0}.input-filter-content .p-autocomplete-multiple-container.p-focus{box-shadow:none;border-color:var(--input-filter-border-color)}.input-filter-select{width:40%;max-width:200px;min-width:130px}.input-filter-field{width:100% !important}.input-filter-field-date{flex:1}.input-filter-field-date.year{flex:2}.input-filter-autocomplete-panel .p-autocomplete-items{padding-left:0 !important}
package/box/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var i=require("react"),e=require("primereact/utils");exports.Box=({children:r,...s})=>{const t={size:`box-size-${s.size??"100"}`,direction:`box-direction-${s.direction??"row"}`,justify:void 0===s.justify?"":Array.isArray(s.justify)?s.justify?.join(" "):s.justify,align:void 0===s.align?"":Array.isArray(s.align)?s.align?.join(" "):s.align},a={className:e.classNames(["box",s.className??"",t.size,t.direction,t.justify,t.align]),style:s.css};return i.createElement("div",{...a},r)};
1
+ "use strict";var i=require("react"),e=require("primereact/utils");exports.Box=({children:r,...s})=>{const t={size:`box-size-${s.size??"100"}`,direction:`box-direction-${s.direction??"row"}`,justify:void 0===s.justify?"":Array.isArray(s.justify)?s.justify?.join(" "):s.justify,align:void 0===s.align?"":Array.isArray(s.align)?s.align?.join(" "):s.align},a={className:e.classNames(["box",s.className??"",t.size,t.direction,t.justify,t.align]),style:s.css,id:s.id};return i.createElement("div",{...a},r)};
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../src/box/box.tsx"],"sourcesContent":["import { BoxProps } from \"./types\";\r\nimport React, { HTMLAttributes } from \"react\";\r\nimport { classNames } from \"primereact/utils\";\r\n\r\n/**\r\n * Componente - `Box`\r\n *\r\n * Um componente versátil que pode ser utilizado para criar seções ou caixas em uma página.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n *\r\n * Exemplo de uso:\r\n * ```tsx\r\n * <Box align=\"align-items-center\"\r\n * justify=\"justify-content-end\"\r\n * size=\"25\">\r\n * ...conteúdo HTML\r\n * </Box>\r\n * ```\r\n */\r\nexport const Box = ({ children, ...props }: BoxProps) => {\r\n const css = {\r\n size: `box-size-${(props.size ?? \"100\")}`,\r\n direction: `box-direction-${props.direction ?? \"row\"}`,\r\n justify: props.justify === undefined ? \"\" : Array.isArray(props.justify) ? props.justify?.join(\" \") : props.justify,\r\n align: props.align === undefined ? \"\" : Array.isArray(props.align) ? props.align?.join(\" \") : props.align\r\n };\r\n\r\n const attr: HTMLAttributes<\"div\"> & Omit<BoxProps, \"children\"> = {\r\n className: classNames([\r\n \"box\",\r\n props.className ?? \"\",\r\n css.size,\r\n css.direction,\r\n css.justify,\r\n css.align\r\n ]),\r\n style: props.css\r\n };\r\n\r\n return (\r\n <div {...attr as any}>{children}</div>\r\n );\r\n};"],"names":["children","props","css","size","direction","justify","undefined","Array","isArray","join","align","attr","className","classNames","style","React","createElement"],"mappings":"8EAmBmB,EAAGA,cAAaC,MAC/B,MAAMC,EAAM,CACRC,KAAM,YAAaF,EAAME,MAAQ,QACjCC,UAAW,iBAAiBH,EAAMG,WAAa,QAC/CC,aAA2BC,IAAlBL,EAAMI,QAAwB,GAAKE,MAAMC,QAAQP,EAAMI,SAAWJ,EAAMI,SAASI,KAAK,KAAOR,EAAMI,QAC5GK,WAAuBJ,IAAhBL,EAAMS,MAAsB,GAAKH,MAAMC,QAAQP,EAAMS,OAAST,EAAMS,OAAOD,KAAK,KAAOR,EAAMS,OAGlGC,EAA2D,CAC7DC,UAAWC,EAAAA,WAAW,CAClB,MACAZ,EAAMW,WAAa,GACnBV,EAAIC,KACJD,EAAIE,UACJF,EAAIG,QACJH,EAAIQ,QAERI,MAAOb,EAAMC,KAGjB,OACIa,EAASC,cAAA,MAAA,IAAAL,GAAcX,EACzB"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/box/box.tsx"],"sourcesContent":["import { BoxProps } from \"./types\";\r\nimport React, { HTMLAttributes } from \"react\";\r\nimport { classNames } from \"primereact/utils\";\r\n\r\n/**\r\n * Componente - `Box`\r\n *\r\n * Um componente versátil que pode ser utilizado para criar seções ou caixas em uma página.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n *\r\n * Exemplo de uso:\r\n * ```tsx\r\n * <Box align=\"align-items-center\"\r\n * justify=\"justify-content-end\"\r\n * size=\"25\">\r\n * ...conteúdo HTML\r\n * </Box>\r\n * ```\r\n */\r\nexport const Box = ({ children, ...props }: BoxProps) => {\r\n const css = {\r\n size: `box-size-${(props.size ?? \"100\")}`,\r\n direction: `box-direction-${props.direction ?? \"row\"}`,\r\n justify: props.justify === undefined ? \"\" : Array.isArray(props.justify) ? props.justify?.join(\" \") : props.justify,\r\n align: props.align === undefined ? \"\" : Array.isArray(props.align) ? props.align?.join(\" \") : props.align\r\n };\r\n\r\n const attr: HTMLAttributes<\"div\"> & Omit<BoxProps, \"children\"> = {\r\n className: classNames([\r\n \"box\",\r\n props.className ?? \"\",\r\n css.size,\r\n css.direction,\r\n css.justify,\r\n css.align\r\n ]),\r\n style: props.css,\r\n id: props.id\r\n };\r\n\r\n return (\r\n <div {...attr as any}>{children}</div>\r\n );\r\n};"],"names":["children","props","css","size","direction","justify","undefined","Array","isArray","join","align","attr","className","classNames","style","id","React","createElement"],"mappings":"8EAmBmB,EAAGA,cAAaC,MAC/B,MAAMC,EAAM,CACRC,KAAM,YAAaF,EAAME,MAAQ,QACjCC,UAAW,iBAAiBH,EAAMG,WAAa,QAC/CC,aAA2BC,IAAlBL,EAAMI,QAAwB,GAAKE,MAAMC,QAAQP,EAAMI,SAAWJ,EAAMI,SAASI,KAAK,KAAOR,EAAMI,QAC5GK,WAAuBJ,IAAhBL,EAAMS,MAAsB,GAAKH,MAAMC,QAAQP,EAAMS,OAAST,EAAMS,OAAOD,KAAK,KAAOR,EAAMS,OAGlGC,EAA2D,CAC7DC,UAAWC,EAAAA,WAAW,CAClB,MACAZ,EAAMW,WAAa,GACnBV,EAAIC,KACJD,EAAIE,UACJF,EAAIG,QACJH,EAAIQ,QAERI,MAAOb,EAAMC,IACba,GAAId,EAAMc,IAGd,OACIC,EAASC,cAAA,MAAA,IAAAN,GAAcX,EACzB"}
package/box/index.d.ts CHANGED
@@ -81,6 +81,11 @@ type JustifyContentProps =
81
81
  */
82
82
  interface ApiComponentProps {
83
83
 
84
+ /**
85
+ * Propriedade para identificar o id do elemento
86
+ */
87
+ id?: string
88
+
84
89
  /**
85
90
  * Adiciona no atributo `class` do componente o valor atribuido nessa propriedade
86
91
  */
@@ -142,6 +147,4 @@ interface BoxProps extends ApiComponentProps {
142
147
  */
143
148
  declare const Box: ({ children, ...props }: BoxProps) => React.JSX.Element;
144
149
 
145
- type IBoxProps = BoxProps;
146
-
147
- export { Box, type IBoxProps };
150
+ export { Box };
package/box/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import i from"react";import{classNames as r}from"primereact/utils";const s=({children:s,...t})=>{const e={size:`box-size-${t.size??"100"}`,direction:`box-direction-${t.direction??"row"}`,justify:void 0===t.justify?"":Array.isArray(t.justify)?t.justify?.join(" "):t.justify,align:void 0===t.align?"":Array.isArray(t.align)?t.align?.join(" "):t.align},o={className:r(["box",t.className??"",e.size,e.direction,e.justify,e.align]),style:t.css};return i.createElement("div",{...o},s)};export{s as Box};
1
+ import i from"react";import{classNames as r}from"primereact/utils";const s=({children:s,...t})=>{const e={size:`box-size-${t.size??"100"}`,direction:`box-direction-${t.direction??"row"}`,justify:void 0===t.justify?"":Array.isArray(t.justify)?t.justify?.join(" "):t.justify,align:void 0===t.align?"":Array.isArray(t.align)?t.align?.join(" "):t.align},o={className:r(["box",t.className??"",e.size,e.direction,e.justify,e.align]),style:t.css,id:t.id};return i.createElement("div",{...o},s)};export{s as Box};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../src/box/box.tsx"],"sourcesContent":["import { BoxProps } from \"./types\";\r\nimport React, { HTMLAttributes } from \"react\";\r\nimport { classNames } from \"primereact/utils\";\r\n\r\n/**\r\n * Componente - `Box`\r\n *\r\n * Um componente versátil que pode ser utilizado para criar seções ou caixas em uma página.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n *\r\n * Exemplo de uso:\r\n * ```tsx\r\n * <Box align=\"align-items-center\"\r\n * justify=\"justify-content-end\"\r\n * size=\"25\">\r\n * ...conteúdo HTML\r\n * </Box>\r\n * ```\r\n */\r\nexport const Box = ({ children, ...props }: BoxProps) => {\r\n const css = {\r\n size: `box-size-${(props.size ?? \"100\")}`,\r\n direction: `box-direction-${props.direction ?? \"row\"}`,\r\n justify: props.justify === undefined ? \"\" : Array.isArray(props.justify) ? props.justify?.join(\" \") : props.justify,\r\n align: props.align === undefined ? \"\" : Array.isArray(props.align) ? props.align?.join(\" \") : props.align\r\n };\r\n\r\n const attr: HTMLAttributes<\"div\"> & Omit<BoxProps, \"children\"> = {\r\n className: classNames([\r\n \"box\",\r\n props.className ?? \"\",\r\n css.size,\r\n css.direction,\r\n css.justify,\r\n css.align\r\n ]),\r\n style: props.css\r\n };\r\n\r\n return (\r\n <div {...attr as any}>{children}</div>\r\n );\r\n};"],"names":["Box","children","props","css","size","direction","justify","undefined","Array","isArray","join","align","attr","className","classNames","style","React","createElement"],"mappings":"mEAmBO,MAAMA,EAAM,EAAGC,cAAaC,MAC/B,MAAMC,EAAM,CACRC,KAAM,YAAaF,EAAME,MAAQ,QACjCC,UAAW,iBAAiBH,EAAMG,WAAa,QAC/CC,aAA2BC,IAAlBL,EAAMI,QAAwB,GAAKE,MAAMC,QAAQP,EAAMI,SAAWJ,EAAMI,SAASI,KAAK,KAAOR,EAAMI,QAC5GK,WAAuBJ,IAAhBL,EAAMS,MAAsB,GAAKH,MAAMC,QAAQP,EAAMS,OAAST,EAAMS,OAAOD,KAAK,KAAOR,EAAMS,OAGlGC,EAA2D,CAC7DC,UAAWC,EAAW,CAClB,MACAZ,EAAMW,WAAa,GACnBV,EAAIC,KACJD,EAAIE,UACJF,EAAIG,QACJH,EAAIQ,QAERI,MAAOb,EAAMC,KAGjB,OACIa,EAASC,cAAA,MAAA,IAAAL,GAAcX,EACzB"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/box/box.tsx"],"sourcesContent":["import { BoxProps } from \"./types\";\r\nimport React, { HTMLAttributes } from \"react\";\r\nimport { classNames } from \"primereact/utils\";\r\n\r\n/**\r\n * Componente - `Box`\r\n *\r\n * Um componente versátil que pode ser utilizado para criar seções ou caixas em uma página.\r\n * Permite personalizar o estilo e o conteúdo através de propriedades.\r\n *\r\n * Exemplo de uso:\r\n * ```tsx\r\n * <Box align=\"align-items-center\"\r\n * justify=\"justify-content-end\"\r\n * size=\"25\">\r\n * ...conteúdo HTML\r\n * </Box>\r\n * ```\r\n */\r\nexport const Box = ({ children, ...props }: BoxProps) => {\r\n const css = {\r\n size: `box-size-${(props.size ?? \"100\")}`,\r\n direction: `box-direction-${props.direction ?? \"row\"}`,\r\n justify: props.justify === undefined ? \"\" : Array.isArray(props.justify) ? props.justify?.join(\" \") : props.justify,\r\n align: props.align === undefined ? \"\" : Array.isArray(props.align) ? props.align?.join(\" \") : props.align\r\n };\r\n\r\n const attr: HTMLAttributes<\"div\"> & Omit<BoxProps, \"children\"> = {\r\n className: classNames([\r\n \"box\",\r\n props.className ?? \"\",\r\n css.size,\r\n css.direction,\r\n css.justify,\r\n css.align\r\n ]),\r\n style: props.css,\r\n id: props.id\r\n };\r\n\r\n return (\r\n <div {...attr as any}>{children}</div>\r\n );\r\n};"],"names":["Box","children","props","css","size","direction","justify","undefined","Array","isArray","join","align","attr","className","classNames","style","id","React","createElement"],"mappings":"mEAmBO,MAAMA,EAAM,EAAGC,cAAaC,MAC/B,MAAMC,EAAM,CACRC,KAAM,YAAaF,EAAME,MAAQ,QACjCC,UAAW,iBAAiBH,EAAMG,WAAa,QAC/CC,aAA2BC,IAAlBL,EAAMI,QAAwB,GAAKE,MAAMC,QAAQP,EAAMI,SAAWJ,EAAMI,SAASI,KAAK,KAAOR,EAAMI,QAC5GK,WAAuBJ,IAAhBL,EAAMS,MAAsB,GAAKH,MAAMC,QAAQP,EAAMS,OAAST,EAAMS,OAAOD,KAAK,KAAOR,EAAMS,OAGlGC,EAA2D,CAC7DC,UAAWC,EAAW,CAClB,MACAZ,EAAMW,WAAa,GACnBV,EAAIC,KACJD,EAAIE,UACJF,EAAIG,QACJH,EAAIQ,QAERI,MAAOb,EAAMC,IACba,GAAId,EAAMc,IAGd,OACIC,EAASC,cAAA,MAAA,IAAAN,GAAcX,EACzB"}