@charlesgomes/leafcode-shared-lib-react 1.0.88 → 1.0.90
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/index.css +55 -54
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +126 -63
- package/dist/index.mjs +126 -63
- package/dist/styles/input.css +28 -2
- package/dist/styles/modalBase.css +1 -1
- package/dist/styles/table.css +55 -54
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5,12 +5,17 @@ import { createContext, useContext } from "react";
|
|
|
5
5
|
// src/provider/defaultTheme.ts
|
|
6
6
|
var defaultTheme = {
|
|
7
7
|
colors: {
|
|
8
|
-
primary: "#
|
|
8
|
+
primary: "#3c3fe8",
|
|
9
|
+
primaryHover: "#4f46e5",
|
|
10
|
+
secundary: "",
|
|
11
|
+
secundaryHover: "",
|
|
9
12
|
danger: "#ED202E",
|
|
10
|
-
|
|
13
|
+
dangerHover: "#f35353",
|
|
14
|
+
borderDisabledBg: "#D4D4D8",
|
|
11
15
|
text: "#18181B",
|
|
12
16
|
light: "#FFFFFF",
|
|
13
|
-
background: "#FFFFFF"
|
|
17
|
+
background: "#FFFFFF",
|
|
18
|
+
placeholder: "#71717A"
|
|
14
19
|
},
|
|
15
20
|
fonts: {
|
|
16
21
|
body: "Roboto, sans-serif",
|
|
@@ -55,7 +60,7 @@ var defaultTheme = {
|
|
|
55
60
|
button: {
|
|
56
61
|
colors: {
|
|
57
62
|
text: "#FFFFFF",
|
|
58
|
-
primaryBg: "#
|
|
63
|
+
primaryBg: "#3c3fe8",
|
|
59
64
|
primaryHoverBg: "#4f46e5",
|
|
60
65
|
secondaryBg: "#bf1717",
|
|
61
66
|
secondaryHoverBg: "#f35353",
|
|
@@ -73,6 +78,20 @@ var defaultTheme = {
|
|
|
73
78
|
radius: "6px"
|
|
74
79
|
}
|
|
75
80
|
},
|
|
81
|
+
table: {
|
|
82
|
+
colors: {
|
|
83
|
+
text: "#FFFFFF",
|
|
84
|
+
primaryBg: "#3c3fe8",
|
|
85
|
+
primaryHoverBg: "#4f46e5"
|
|
86
|
+
},
|
|
87
|
+
fonts: {
|
|
88
|
+
family: '"Roboto", sans-serif',
|
|
89
|
+
customWeight: 500,
|
|
90
|
+
thWeight: 600,
|
|
91
|
+
weight: 800,
|
|
92
|
+
size: "13px"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
76
95
|
modalBase: {
|
|
77
96
|
colors: {
|
|
78
97
|
modalTitleColor: "#000",
|
|
@@ -122,13 +141,13 @@ function Button({
|
|
|
122
141
|
"--button-font-family": theme.components.button.fonts.family,
|
|
123
142
|
"--button-font-weight": theme.components.button.fonts.weight,
|
|
124
143
|
"--button-font-size": theme.components.button.fonts.size,
|
|
125
|
-
"--button-text-color": theme.
|
|
126
|
-
"--button-primary-bg": theme.
|
|
127
|
-
"--button-primary-hover-bg": theme.
|
|
128
|
-
"--button-secondary-bg": theme.
|
|
129
|
-
"--button-secondary-hover-bg": theme.
|
|
130
|
-
"--button-disabled-bg-color": theme.
|
|
131
|
-
"--button-disabled-border-color": theme.
|
|
144
|
+
"--button-text-color": theme.colors.light,
|
|
145
|
+
"--button-primary-bg": theme.colors.primary,
|
|
146
|
+
"--button-primary-hover-bg": theme.colors.primaryHover,
|
|
147
|
+
"--button-secondary-bg": theme.colors.secundary,
|
|
148
|
+
"--button-secondary-hover-bg": theme.colors.secundaryHover,
|
|
149
|
+
"--button-disabled-bg-color": theme.colors.borderDisabledBg,
|
|
150
|
+
"--button-disabled-border-color": theme.colors.borderDisabledBg,
|
|
132
151
|
"--button-height": theme.components.button.sizes.height,
|
|
133
152
|
"--button-min-width": theme.components.button.sizes.minWidth,
|
|
134
153
|
"--button-border-radius": theme.components.button.sizes.radius
|
|
@@ -195,12 +214,14 @@ function TooltipErrorInput({
|
|
|
195
214
|
}) {
|
|
196
215
|
const theme = useLeafcodeTheme();
|
|
197
216
|
const styleVars = {
|
|
217
|
+
// Fonts
|
|
198
218
|
"--input-font-family": theme.components.input.fonts.input,
|
|
199
219
|
"--input-font-weight": theme.components.input.fonts.inputWeight,
|
|
200
220
|
"--input-font-size": theme.components.input.fonts.inputSize,
|
|
201
|
-
|
|
221
|
+
// Colors
|
|
222
|
+
"--input-text-color": theme.colors.light,
|
|
202
223
|
"--input-text-color-hover": theme.colors.light,
|
|
203
|
-
"--input-error-border": theme.
|
|
224
|
+
"--input-error-border": theme.colors.danger,
|
|
204
225
|
"--input-font-size-tooltip": theme.components.tooltip.fonts.TooltipSize
|
|
205
226
|
};
|
|
206
227
|
const [isTooltipOpen, setIsTooltipOpen] = useState(true);
|
|
@@ -291,25 +312,25 @@ var InputBase = ({
|
|
|
291
312
|
"--input-font-weight": theme.components.input.fonts.inputWeight,
|
|
292
313
|
"--input-font-size": theme.components.input.fonts.inputSize,
|
|
293
314
|
// Colors
|
|
294
|
-
"--label-color": theme.
|
|
295
|
-
"--label-line": theme.
|
|
296
|
-
"--input-border": theme.
|
|
297
|
-
"--input-bg": theme.
|
|
298
|
-
"--autofill-box-shadow": theme.
|
|
299
|
-
"--autofill-text-color": theme.
|
|
300
|
-
"--autofill-border": theme.
|
|
301
|
-
"--input-text-color": theme.
|
|
302
|
-
"--input-placeholder": theme.
|
|
303
|
-
"--input-focus-border": theme.
|
|
304
|
-
"--input-error-border": theme.
|
|
305
|
-
"--color-password-toggle": theme.
|
|
315
|
+
"--label-color": theme.colors.text,
|
|
316
|
+
"--label-line": theme.colors.light,
|
|
317
|
+
"--input-border": theme.colors.borderDisabledBg,
|
|
318
|
+
"--input-bg": theme.colors.background,
|
|
319
|
+
"--autofill-box-shadow": theme.colors.background,
|
|
320
|
+
"--autofill-text-color": theme.colors.text,
|
|
321
|
+
"--autofill-border": theme.colors.primary,
|
|
322
|
+
"--input-text-color": theme.colors.text,
|
|
323
|
+
"--input-placeholder": theme.colors.placeholder,
|
|
324
|
+
"--input-focus-border": theme.colors.primary,
|
|
325
|
+
"--input-error-border": theme.colors.danger,
|
|
326
|
+
"--color-password-toggle": theme.colors.placeholder,
|
|
306
327
|
// Sizes
|
|
307
328
|
"--input-height": theme.components.input.sizes.height,
|
|
308
329
|
"--input-border-radius": theme.components.input.sizes.radius
|
|
309
330
|
};
|
|
310
331
|
const handleChange = (e) => {
|
|
311
332
|
let val = e.target.value;
|
|
312
|
-
if (validationMode === "restricted") {
|
|
333
|
+
if (validationMode === "restricted" && !showPasswordToggle) {
|
|
313
334
|
val = val.replace(/[^a-zA-Z0-9_.-]/g, "");
|
|
314
335
|
val = val.replace(/^\.+/, "");
|
|
315
336
|
val = val.replace(/\.+$/, "");
|
|
@@ -318,7 +339,8 @@ var InputBase = ({
|
|
|
318
339
|
e.target.value = val;
|
|
319
340
|
onChange?.(e);
|
|
320
341
|
};
|
|
321
|
-
const [show, setShow] = useState2(
|
|
342
|
+
const [show, setShow] = useState2(false);
|
|
343
|
+
const isPassword = showPasswordToggle;
|
|
322
344
|
const handleClick = () => setShow(!show);
|
|
323
345
|
return /* @__PURE__ */ jsxs3(
|
|
324
346
|
"div",
|
|
@@ -341,7 +363,8 @@ var InputBase = ({
|
|
|
341
363
|
id: name,
|
|
342
364
|
name,
|
|
343
365
|
disabled,
|
|
344
|
-
type: show ? "text" : "password",
|
|
366
|
+
type: isPassword ? show ? "text" : "password" : rest.type ?? "text",
|
|
367
|
+
autoComplete: isPassword ? rest.autoComplete ?? "current-password" : rest.autoComplete,
|
|
345
368
|
className: `input ${error && "input-error"} ${isUppercaseText && "is-uppercase"}`,
|
|
346
369
|
placeholder,
|
|
347
370
|
onFocus,
|
|
@@ -391,17 +414,17 @@ var TextAreaBase = ({
|
|
|
391
414
|
"--input-font-weight": theme.components.input.fonts.inputWeight,
|
|
392
415
|
"--input-font-size": theme.components.input.fonts.inputSize,
|
|
393
416
|
// Colors
|
|
394
|
-
"--label-color": theme.
|
|
395
|
-
"--label-line": theme.
|
|
396
|
-
"--input-border": theme.
|
|
397
|
-
"--input-bg": theme.
|
|
398
|
-
"--autofill-box-shadow": theme.
|
|
399
|
-
"--autofill-text-color": theme.
|
|
400
|
-
"--input-text-color": theme.
|
|
401
|
-
"--input-placeholder": theme.
|
|
402
|
-
"--input-focus-border": theme.
|
|
403
|
-
"--input-error-border": theme.
|
|
404
|
-
"--color-password-toggle": theme.
|
|
417
|
+
"--label-color": theme.colors.text,
|
|
418
|
+
"--label-line": theme.colors.light,
|
|
419
|
+
"--input-border": theme.colors.borderDisabledBg,
|
|
420
|
+
"--input-bg": theme.colors.background,
|
|
421
|
+
"--autofill-box-shadow": theme.colors.background,
|
|
422
|
+
"--autofill-text-color": theme.colors.text,
|
|
423
|
+
"--input-text-color": theme.colors.text,
|
|
424
|
+
"--input-placeholder": theme.colors.placeholder,
|
|
425
|
+
"--input-focus-border": theme.colors.primary,
|
|
426
|
+
"--input-error-border": theme.colors.danger,
|
|
427
|
+
"--color-password-toggle": theme.colors.placeholder,
|
|
405
428
|
// Sizes
|
|
406
429
|
"--input-height-text-area": theme.components.input.sizes.heightTextArea,
|
|
407
430
|
"--input-border-radius": theme.components.input.sizes.radius
|
|
@@ -480,15 +503,17 @@ var InputBase2 = ({
|
|
|
480
503
|
"--input-font-weight": theme.components.input.fonts.inputWeight,
|
|
481
504
|
"--input-font-size": theme.components.input.fonts.inputSize,
|
|
482
505
|
// Colors
|
|
483
|
-
"--label-color": theme.
|
|
484
|
-
"--
|
|
485
|
-
"--input-
|
|
486
|
-
"--
|
|
506
|
+
"--label-color": theme.colors.text,
|
|
507
|
+
"--label-line": theme.colors.light,
|
|
508
|
+
"--input-border": theme.colors.borderDisabledBg,
|
|
509
|
+
"--input-bg": theme.colors.background,
|
|
487
510
|
"--input-text-color": theme.colors.light,
|
|
488
|
-
"--input-
|
|
489
|
-
"--input-
|
|
490
|
-
"--input-
|
|
491
|
-
"--
|
|
511
|
+
"--input-text-single-color": theme.colors.text,
|
|
512
|
+
"--input-placeholder": theme.colors.placeholder,
|
|
513
|
+
"--input-focus-border": theme.colors.primary,
|
|
514
|
+
"--input-error-border": theme.colors.danger,
|
|
515
|
+
"--color-password-toggle": theme.colors.placeholder,
|
|
516
|
+
"--dropdown-item-hover-bg-color": theme.colors.primaryHover,
|
|
492
517
|
// Sizes
|
|
493
518
|
"--input-height": theme.components.input.sizes.height,
|
|
494
519
|
"--input-border-radius": theme.components.input.sizes.radius
|
|
@@ -598,15 +623,18 @@ function ModalBase({
|
|
|
598
623
|
}) {
|
|
599
624
|
const theme = useLeafcodeTheme();
|
|
600
625
|
const styleVars = {
|
|
626
|
+
// Fonts
|
|
601
627
|
"--modal-title-font-weight": theme.components.modalBase.fonts?.modalTitleFontWeight,
|
|
602
628
|
"--modal-title-font-size": theme.components.modalBase.fonts?.modalTitleFontSize,
|
|
603
629
|
"--modal-title-font-family": theme.components.modalBase.fonts?.modalTitleFontFamily,
|
|
604
630
|
"--modal-body-font-family": theme.components.modalBase.fonts?.modalBodyFontFamily,
|
|
605
631
|
"--modal-body-font-size": theme.components.modalBase.fonts?.modalBodyFontSize,
|
|
606
|
-
|
|
607
|
-
"--modal-
|
|
608
|
-
"--modal-
|
|
609
|
-
"--modal-
|
|
632
|
+
// Colors
|
|
633
|
+
"--modal-bg-color": theme.colors.background,
|
|
634
|
+
"--modal-title-color": theme.colors.text,
|
|
635
|
+
"--modal-body-color": theme.colors.background,
|
|
636
|
+
"--modal-close-color": theme.colors.danger,
|
|
637
|
+
// Sizes
|
|
610
638
|
"--modal-max-width": theme.components.modalBase.sizes.modalMaxWidth
|
|
611
639
|
};
|
|
612
640
|
useEffect3(() => {
|
|
@@ -675,8 +703,8 @@ var LoadingSpinner = memo(({ size = 20 }) => {
|
|
|
675
703
|
style: {
|
|
676
704
|
width: size,
|
|
677
705
|
height: size,
|
|
678
|
-
border: `3px solid ${theme.
|
|
679
|
-
borderTopColor: theme.
|
|
706
|
+
border: `3px solid ${theme.colors.primary}33`,
|
|
707
|
+
borderTopColor: theme.colors.primary,
|
|
680
708
|
borderRadius: "50%",
|
|
681
709
|
display: "inline-block",
|
|
682
710
|
animation: "leafcode-spin 0.8s linear infinite"
|
|
@@ -710,18 +738,21 @@ function AutoCompleteInner(props, ref) {
|
|
|
710
738
|
} = props;
|
|
711
739
|
const theme = useLeafcodeTheme();
|
|
712
740
|
const styleVars = {
|
|
713
|
-
|
|
741
|
+
// Fonts
|
|
714
742
|
"--label-font-family": theme.components.input.fonts.label,
|
|
715
743
|
"--label-font-weight": theme.components.input.fonts.labelWeight,
|
|
716
744
|
"--label-font-size": theme.components.input.fonts.labelSize,
|
|
717
|
-
|
|
745
|
+
// Colors
|
|
746
|
+
"--label-color": theme.colors.text,
|
|
747
|
+
"--label-line": theme.colors.light,
|
|
748
|
+
"--input-border": theme.colors.borderDisabledBg,
|
|
749
|
+
"--input-bg": theme.colors.background,
|
|
750
|
+
"--input-text-color": theme.colors.text,
|
|
751
|
+
"--dropdown-empty-color": theme.colors.text,
|
|
718
752
|
"--dropdown-item-hover-bg-color": theme.colors.primary,
|
|
719
|
-
"--
|
|
720
|
-
"--input-border": theme.components.input.colors.border,
|
|
721
|
-
"--input-bg": theme.components.input.colors.background,
|
|
722
|
-
"--input-text-color": theme.components.input.colors.text,
|
|
723
|
-
"--input-focus-border": theme.components.input.colors.focusBorder,
|
|
753
|
+
"--input-focus-border": theme.colors.primary,
|
|
724
754
|
"--dropdown-item-hover-color": theme.colors.light,
|
|
755
|
+
// Sizes
|
|
725
756
|
"--input-height": theme.components.input.sizes.height,
|
|
726
757
|
"--input-border-radius": theme.components.input.sizes.radius
|
|
727
758
|
};
|
|
@@ -1244,9 +1275,13 @@ function DataTableAdvancedFilterWrapper({
|
|
|
1244
1275
|
};
|
|
1245
1276
|
const [page, setPage] = useState6(initialState.page);
|
|
1246
1277
|
const [rows, setRows] = useState6(initialState.rows);
|
|
1247
|
-
const [first, setFirst] = useState6(
|
|
1278
|
+
const [first, setFirst] = useState6(
|
|
1279
|
+
(initialState.page - 1) * initialState.rows
|
|
1280
|
+
);
|
|
1248
1281
|
const [sortField, setSortField] = useState6(initialState.sortField);
|
|
1249
|
-
const [sortOrder, setSortOrder] = useState6(
|
|
1282
|
+
const [sortOrder, setSortOrder] = useState6(
|
|
1283
|
+
initialState.sortOrder ?? 1
|
|
1284
|
+
);
|
|
1250
1285
|
const [searchText, setSearchText] = useState6(initialState.filter ?? "");
|
|
1251
1286
|
const [filters, setFilters] = useState6({
|
|
1252
1287
|
...initFilters,
|
|
@@ -1386,7 +1421,35 @@ function DataTableAdvancedFilterWrapper({
|
|
|
1386
1421
|
customActions
|
|
1387
1422
|
]
|
|
1388
1423
|
);
|
|
1389
|
-
|
|
1424
|
+
const theme = useLeafcodeTheme();
|
|
1425
|
+
const styleVars = {
|
|
1426
|
+
"--table-font-family": theme.components.table.fonts.family,
|
|
1427
|
+
"--table-font-weight": theme.components.table.fonts.weight,
|
|
1428
|
+
"--table-custom-font-weight": theme.components.table.fonts.customWeight,
|
|
1429
|
+
"--table-font-size": theme.components.table.fonts.size,
|
|
1430
|
+
"--table-th-font-weight": theme.components.table.fonts.thWeight,
|
|
1431
|
+
"--table-th-font-size": theme.components.table.fonts.size,
|
|
1432
|
+
"--custom-input-focus": theme.colors.primary,
|
|
1433
|
+
"--prev-next-enabled-hover": theme.colors.primaryHover,
|
|
1434
|
+
"--p-checkbox-box-border": theme.colors.primary,
|
|
1435
|
+
"--p-checkbox-highlight-border": theme.colors.primary,
|
|
1436
|
+
"--p-checkbox-highlight-bg": theme.colors.primary,
|
|
1437
|
+
"--p-checkbox-boder-hover": theme.colors.primaryHover,
|
|
1438
|
+
"--p-checkbox-bg": theme.colors.primary,
|
|
1439
|
+
"--p-dropdown-bg": theme.colors.primary,
|
|
1440
|
+
"--p-column-filter-hover-focus": theme.colors.primary,
|
|
1441
|
+
"--p-column-filter-button-active": theme.colors.primary,
|
|
1442
|
+
"--p-sortable-column-icon-bg": theme.colors.primary,
|
|
1443
|
+
"--p-column-filter-add-button-color": theme.colors.primary,
|
|
1444
|
+
"--p-column-filter-buttonbar-bg": theme.colors.primary,
|
|
1445
|
+
"--p-column-filter-buttonbar-bg-hover": theme.colors.primaryHover,
|
|
1446
|
+
"--enable-button-table-actions-hover": theme.colors.primaryHover,
|
|
1447
|
+
"--btn-icone-actions-column-hover": theme.colors.primaryHover,
|
|
1448
|
+
"--p-datepicker": theme.colors.primary,
|
|
1449
|
+
"--p-datepicker-prev-next": theme.colors.primary,
|
|
1450
|
+
"--p-datepicker-button": theme.colors.primary
|
|
1451
|
+
};
|
|
1452
|
+
return /* @__PURE__ */ jsx16(Fragment6, { children: isClient && /* @__PURE__ */ jsxs11("div", { style: styleVars, children: [
|
|
1390
1453
|
disablePagination && /* @__PURE__ */ jsx16("div", { className: "disablePagination", children: TableHeaderAndTableActions }),
|
|
1391
1454
|
/* @__PURE__ */ jsxs11(
|
|
1392
1455
|
DataTable,
|
package/dist/styles/input.css
CHANGED
|
@@ -114,7 +114,8 @@ input:-webkit-autofill:focus {
|
|
|
114
114
|
|
|
115
115
|
.password-toggle {
|
|
116
116
|
position: absolute;
|
|
117
|
-
|
|
117
|
+
top: 50%;
|
|
118
|
+
transform: translateY(-50%);
|
|
118
119
|
color: var(--color-password-toggle, #a5a5a5);
|
|
119
120
|
cursor: pointer;
|
|
120
121
|
width: 1.25rem;
|
|
@@ -250,7 +251,8 @@ input:-webkit-autofill:focus {
|
|
|
250
251
|
.dropdown-clear {
|
|
251
252
|
position: absolute;
|
|
252
253
|
right: 0.75rem;
|
|
253
|
-
top:
|
|
254
|
+
top: 50%;
|
|
255
|
+
transform: translateY(-50%);
|
|
254
256
|
background: none;
|
|
255
257
|
border: none;
|
|
256
258
|
padding: 0;
|
|
@@ -260,3 +262,27 @@ input:-webkit-autofill:focus {
|
|
|
260
262
|
.icone-clear {
|
|
261
263
|
color: var(--input-error-border, #f87171);
|
|
262
264
|
}
|
|
265
|
+
|
|
266
|
+
/* O container da lista (Menu) */
|
|
267
|
+
.react-select__menu {
|
|
268
|
+
background-color: var(--input-bg, #ffffff) !important;
|
|
269
|
+
border: 1px solid var(--input-bg, #ffffff);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Quando você passa o mouse por cima (Hover/Focus) */
|
|
273
|
+
.react-select__option--is-focused {
|
|
274
|
+
background-color: var(--dropdown-item-hover-bg-color, #333333) !important;
|
|
275
|
+
color: var(--input-text-color, #ffffff) !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* O texto dentro da caixa principal */
|
|
279
|
+
.react-select__single-value {
|
|
280
|
+
color: var(--input-text-single-color, #070707) !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* ESTADO DESABILITADO */
|
|
284
|
+
.react-select__control--is-disabled {
|
|
285
|
+
border-color: var(--input-disabled-border, #d1d5db) !important;
|
|
286
|
+
background-color: var(--input-disabled-bg, #f3f4f6) !important;
|
|
287
|
+
cursor: not-allowed;
|
|
288
|
+
}
|
package/dist/styles/table.css
CHANGED
|
@@ -12,22 +12,22 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.tableClassName {
|
|
15
|
-
font-weight:
|
|
16
|
-
font-family: "Roboto", sans-serif;
|
|
17
|
-
font-size: 0.875rem;
|
|
15
|
+
font-weight: var(--table-font-weight, 600);
|
|
16
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
17
|
+
font-size: var(--table-font-size, 0.875rem);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.paginatorClassName {
|
|
21
21
|
padding: 0 0 0.75rem 0;
|
|
22
|
-
font-weight:
|
|
23
|
-
font-family: "Roboto", sans-serif;
|
|
24
|
-
font-size: 0.875rem;
|
|
22
|
+
font-weight: var(--table-font-weight, 600);
|
|
23
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
24
|
+
font-size: var(--table-font-size, 0.875rem);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.custom-input {
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
font-family: "Roboto", sans-serif;
|
|
30
|
-
font-size: 0.875rem;
|
|
28
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
29
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
30
|
+
font-size: var(--table-font-size, 0.875rem);
|
|
31
31
|
color: #1c1c1c;
|
|
32
32
|
padding: 0 1.25rem;
|
|
33
33
|
width: 13rem;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.custom-input:focus {
|
|
40
|
-
border: 1px solid #
|
|
40
|
+
border: 1px solid var(--custom-input-focus, #6366f1);
|
|
41
41
|
box-shadow: none;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
|
|
71
71
|
.PrevPageEnabled:hover,
|
|
72
72
|
.NextPageEnabled:hover {
|
|
73
|
-
background-color: #
|
|
73
|
+
background-color: var(--prev-next-enabled-hover, #6366f1);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.pageReport {
|
|
77
|
-
font-weight: 500;
|
|
78
|
-
font-family: "Roboto", sans-serif;
|
|
79
|
-
font-size: 0.875rem;
|
|
77
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
78
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
79
|
+
font-size: var(--table-font-size, 0.875rem);
|
|
80
80
|
color: #191919;
|
|
81
81
|
padding: 0 0.5rem;
|
|
82
82
|
}
|
|
@@ -89,15 +89,15 @@
|
|
|
89
89
|
|
|
90
90
|
.custom-select-filtro {
|
|
91
91
|
height: 2rem;
|
|
92
|
-
font-weight: 500;
|
|
93
|
-
font-family: "Roboto", sans-serif;
|
|
94
|
-
font-size: 0.875rem;
|
|
92
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
93
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
94
|
+
font-size: var(--table-font-size, 0.875rem);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.mensagem-nenhum-dado {
|
|
98
98
|
text-align: center;
|
|
99
|
-
font-weight: 500;
|
|
100
|
-
font-family: "Roboto", sans-serif;
|
|
99
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
100
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
101
101
|
padding: 2rem 0;
|
|
102
102
|
color: #191919;
|
|
103
103
|
}
|
|
@@ -126,8 +126,8 @@ th {
|
|
|
126
126
|
border-bottom: 1px solid #edf0f2;
|
|
127
127
|
border-left: 1px solid #edf0f2;
|
|
128
128
|
padding: 0 0 0 7px;
|
|
129
|
-
font-size: 14px;
|
|
130
|
-
font-family: "Roboto", sans-serif;
|
|
129
|
+
font-size: var(--table-th-font-size, 14px);
|
|
130
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
131
131
|
font-weight: bold;
|
|
132
132
|
color: #373737;
|
|
133
133
|
}
|
|
@@ -174,21 +174,21 @@ th {
|
|
|
174
174
|
.p-datatable .p-datatable-tbody > tr {
|
|
175
175
|
background: #fff;
|
|
176
176
|
color: #000;
|
|
177
|
-
font-family: "
|
|
178
|
-
font-weight: 500;
|
|
177
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
178
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.p-checkbox .p-checkbox-box {
|
|
182
182
|
width: 1rem;
|
|
183
183
|
height: 1rem;
|
|
184
|
-
border: 1px solid #
|
|
184
|
+
border: 1px solid var(--p-checkbox-box-border, #6366f1) !important;
|
|
185
185
|
border-radius: 4px !important;
|
|
186
186
|
background-color: #fff;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.p-checkbox.p-highlight .p-checkbox-box {
|
|
190
|
-
border-color: #
|
|
191
|
-
background: #
|
|
190
|
+
border-color: var(--p-checkbox-highlight-border, #6366f1);
|
|
191
|
+
background: var(--p-checkbox-highlight-bg, #6366f1);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.p-checkbox {
|
|
@@ -198,8 +198,8 @@ th {
|
|
|
198
198
|
|
|
199
199
|
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover).p-highlight
|
|
200
200
|
.p-checkbox-box {
|
|
201
|
-
border-color: #
|
|
202
|
-
background: #
|
|
201
|
+
border-color: var(--p-checkbox-boder-hover, #4f46e5);
|
|
202
|
+
background: var(--p-checkbox-bg, #6366f1);
|
|
203
203
|
color: #ffffff;
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -245,7 +245,7 @@ th {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.p-datatable .p-datatable-tbody > tr.p-highlight {
|
|
248
|
-
background: #
|
|
248
|
+
background: #f3f3f3;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.p-dropdown {
|
|
@@ -260,16 +260,16 @@ th {
|
|
|
260
260
|
|
|
261
261
|
.p-dropdown-label,
|
|
262
262
|
.p-dropdown-item-label {
|
|
263
|
-
font-size: 14px;
|
|
264
|
-
font-family: "
|
|
263
|
+
font-size: var(--table-th-font-size, 14px);
|
|
264
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
265
265
|
font-weight: bold;
|
|
266
266
|
padding: 0 1rem 0 1rem;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
.p-dropdown-item-label {
|
|
270
270
|
padding: 6px 1rem;
|
|
271
|
-
font-weight: 500;
|
|
272
|
-
font-family: "Roboto", sans-serif;
|
|
271
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
272
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.p-dropdown-panel .p-dropdown-items .p-dropdown-item {
|
|
@@ -279,7 +279,7 @@ th {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight.p-focus {
|
|
282
|
-
background: #
|
|
282
|
+
background: var(--p-dropdown-bg, #6366f1);
|
|
283
283
|
color: #fff;
|
|
284
284
|
padding: 0;
|
|
285
285
|
}
|
|
@@ -304,8 +304,8 @@ th {
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.p-column-filter {
|
|
307
|
-
font-family: "Roboto", sans-serif;
|
|
308
|
-
font-weight: 500;
|
|
307
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
308
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
309
309
|
margin-top: 0.25rem;
|
|
310
310
|
transition: all 0.3s ease-in-out;
|
|
311
311
|
border: 1px solid #e1e1e6;
|
|
@@ -326,7 +326,7 @@ th {
|
|
|
326
326
|
|
|
327
327
|
.p-column-filter:hover,
|
|
328
328
|
.p-column-filter:focus {
|
|
329
|
-
border-color: #
|
|
329
|
+
border-color: var(--p-column-filter-hover-focus, #6366f1);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
.p-column-filter-menu {
|
|
@@ -352,7 +352,7 @@ th {
|
|
|
352
352
|
|
|
353
353
|
/* Botão ativo */
|
|
354
354
|
.p-column-filter-menu-button.p-column-filter-menu-button-active {
|
|
355
|
-
background-color: #
|
|
355
|
+
background-color: var(--p-column-filter-button-active, #6366f1);
|
|
356
356
|
color: #ffffff;
|
|
357
357
|
padding: 6px;
|
|
358
358
|
margin-left: 4px;
|
|
@@ -364,7 +364,7 @@ th {
|
|
|
364
364
|
|
|
365
365
|
[aria-sort="ascending"] .p-sortable-column-icon,
|
|
366
366
|
[aria-sort="descending"] .p-sortable-column-icon {
|
|
367
|
-
background-color: #
|
|
367
|
+
background-color: var(--p-sortable-column-icon-bg, #6366f1);
|
|
368
368
|
color: #ffffff !important;
|
|
369
369
|
padding: 6px;
|
|
370
370
|
margin-left: 4px;
|
|
@@ -381,13 +381,14 @@ th {
|
|
|
381
381
|
.p-column-title {
|
|
382
382
|
flex: 1;
|
|
383
383
|
text-align: left;
|
|
384
|
+
font-weight: var(--table-th-font-weight, 800);
|
|
384
385
|
}
|
|
385
386
|
|
|
386
387
|
.p-column-filter-add-button {
|
|
387
|
-
font-family: "Roboto", sans-serif;
|
|
388
|
-
font-weight: 500;
|
|
388
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
389
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
389
390
|
font-size: 12px;
|
|
390
|
-
color: #
|
|
391
|
+
color: var(--p-column-filter-add-button-color, #6366f1);
|
|
391
392
|
box-shadow: none;
|
|
392
393
|
display: flex;
|
|
393
394
|
gap: 8px;
|
|
@@ -409,17 +410,17 @@ th {
|
|
|
409
410
|
}
|
|
410
411
|
|
|
411
412
|
.p-column-filter-buttonbar .p-c {
|
|
412
|
-
font-family: "Roboto", sans-serif;
|
|
413
|
-
font-weight: 500;
|
|
413
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
414
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
414
415
|
font-size: 13px;
|
|
415
416
|
color: #fff;
|
|
416
|
-
background-color: #
|
|
417
|
+
background-color: var(--p-column-filter-buttonbar-bg, #6366f1);
|
|
417
418
|
padding: 4px 10px;
|
|
418
419
|
border-radius: 4px;
|
|
419
420
|
}
|
|
420
421
|
|
|
421
422
|
.p-column-filter-buttonbar .p-c:hover {
|
|
422
|
-
background-color: #
|
|
423
|
+
background-color: var(--p-column-filter-buttonbar-bg-hover, #4f46e5);
|
|
423
424
|
}
|
|
424
425
|
|
|
425
426
|
.p-component .p-button-outlined,
|
|
@@ -428,8 +429,8 @@ th {
|
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
.p-column-filter-remove-button {
|
|
431
|
-
font-family: "Roboto", sans-serif;
|
|
432
|
-
font-weight: 500;
|
|
432
|
+
font-family: var(--table-font-family, "Roboto", sans-serif);
|
|
433
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
433
434
|
font-size: 12px;
|
|
434
435
|
color: #f35353;
|
|
435
436
|
box-shadow: none;
|
|
@@ -480,7 +481,7 @@ th {
|
|
|
480
481
|
|
|
481
482
|
.enable-button-table-actions:hover {
|
|
482
483
|
color: #fff;
|
|
483
|
-
background-color: #
|
|
484
|
+
background-color: var(--enable-button-table-actions-hover, #6366f1);
|
|
484
485
|
}
|
|
485
486
|
|
|
486
487
|
.disable-button-table-actions {
|
|
@@ -553,11 +554,11 @@ th {
|
|
|
553
554
|
|
|
554
555
|
.btn-icone-actions-column:hover {
|
|
555
556
|
color: #ffffff;
|
|
556
|
-
background-color: #
|
|
557
|
+
background-color: var(--btn-icone-actions-column-hover, #6366f1);
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
.tooltip-custom {
|
|
560
|
-
font-weight: 500;
|
|
561
|
+
font-weight: var(--table-custom-font-weight, 500);
|
|
561
562
|
font-size: 13px;
|
|
562
563
|
}
|
|
563
564
|
|
|
@@ -610,16 +611,16 @@ th {
|
|
|
610
611
|
|
|
611
612
|
.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year,
|
|
612
613
|
.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
|
|
613
|
-
color: #
|
|
614
|
+
color: var(--p-datepicker, #4f46e5) !important;
|
|
614
615
|
}
|
|
615
616
|
|
|
616
617
|
.p-datepicker .p-datepicker-header .p-datepicker-prev,
|
|
617
618
|
.p-datepicker .p-datepicker-header .p-datepicker-next {
|
|
618
|
-
color: #
|
|
619
|
+
color: var(--p-datepicker-prev-next, #4f46e5) !important;
|
|
619
620
|
}
|
|
620
621
|
|
|
621
622
|
.p-datepicker .p-timepicker button {
|
|
622
|
-
color: #
|
|
623
|
+
color: var(--p-datepicker-button, #4f46e5) !important;
|
|
623
624
|
}
|
|
624
625
|
|
|
625
626
|
.p-datepicker-calendar th {
|