@rolster/react-components 18.12.9 → 18.12.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.
- package/dist/cjs/assets/{index-7UzJ6VgT.css → index-VcI5p9dK.css} +54 -3
- package/dist/cjs/index.js +49 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/assets/{index-7UzJ6VgT.css → index-VcI5p9dK.css} +54 -3
- package/dist/es/index.js +49 -33
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/ButtonAction/ButtonAction.d.ts +1 -1
- package/dist/esm/components/atoms/Input/Input.css +0 -2
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.css +44 -0
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.d.ts +7 -0
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.js +6 -0
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.js.map +1 -0
- package/dist/esm/components/atoms/index.d.ts +1 -0
- package/dist/esm/components/atoms/index.js +1 -0
- package/dist/esm/components/atoms/index.js.map +1 -1
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.css +7 -0
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.d.ts +12 -0
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js +8 -0
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js.map +1 -0
- package/dist/esm/components/molecules/DayRangePicker/DayRangePicker.js +4 -4
- package/dist/esm/components/molecules/DayRangePicker/DayRangePicker.js.map +1 -1
- package/dist/esm/components/molecules/index.d.ts +1 -0
- package/dist/esm/components/molecules/index.js +1 -0
- package/dist/esm/components/molecules/index.js.map +1 -1
- package/dist/esm/components/organisms/DateField/DateField.js +4 -3
- package/dist/esm/components/organisms/DateField/DateField.js.map +1 -1
- package/dist/esm/components/organisms/DatePicker/DatePicker.js +6 -6
- package/dist/esm/components/organisms/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/organisms/DateRangeField/DateRangeField.css +1 -1
- package/dist/esm/components/organisms/DateRangeField/DateRangeField.js +2 -2
- package/dist/esm/components/organisms/DateRangeField/DateRangeField.js.map +1 -1
- package/dist/esm/components/organisms/DateRangePicker/DateRangePicker.js +5 -5
- package/dist/esm/components/organisms/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/esm/helpers/date-picker.d.ts +1 -1
- package/dist/esm/helpers/date-picker.js +7 -3
- package/dist/esm/helpers/date-picker.js.map +1 -1
- package/dist/esm/helpers/date-range-picker.d.ts +1 -1
- package/dist/esm/helpers/date-range-picker.js +10 -8
- package/dist/esm/helpers/date-range-picker.js.map +1 -1
- package/dist/esm/helpers/day-picker.js +6 -4
- package/dist/esm/helpers/day-picker.js.map +1 -1
- package/package.json +6 -6
|
@@ -423,7 +423,6 @@
|
|
|
423
423
|
--pvt-value-opacity: 1;
|
|
424
424
|
--pvt-component-font-color: transparent;
|
|
425
425
|
position: relative;
|
|
426
|
-
float: left;
|
|
427
426
|
width: 100%;
|
|
428
427
|
}
|
|
429
428
|
.rls-input--focused {
|
|
@@ -435,7 +434,6 @@
|
|
|
435
434
|
}
|
|
436
435
|
.rls-input__component {
|
|
437
436
|
position: relative;
|
|
438
|
-
float: left;
|
|
439
437
|
width: 100%;
|
|
440
438
|
height: var(--rls-input-height);
|
|
441
439
|
line-height: var(--rls-input-height);
|
|
@@ -640,6 +638,51 @@
|
|
|
640
638
|
}
|
|
641
639
|
}
|
|
642
640
|
|
|
641
|
+
.rls-progress-circular {
|
|
642
|
+
position: relative;
|
|
643
|
+
width: var(--rls-progress-circular-dimension);
|
|
644
|
+
height: var(--rls-progress-circular-dimension);
|
|
645
|
+
padding: var(--sizing-x2);
|
|
646
|
+
box-sizing: border-box;
|
|
647
|
+
stroke: var(--color-rolster-500);
|
|
648
|
+
}
|
|
649
|
+
.rls-progress-circular__svg {
|
|
650
|
+
height: 100%;
|
|
651
|
+
width: 100%;
|
|
652
|
+
transform: rotate(990deg);
|
|
653
|
+
animation: progress-circular-svg 3500ms linear infinite;
|
|
654
|
+
}
|
|
655
|
+
.rls-progress-circular__circle {
|
|
656
|
+
fill: none;
|
|
657
|
+
stroke-width: 4px;
|
|
658
|
+
stroke: inherit;
|
|
659
|
+
stroke-dasharray: 65;
|
|
660
|
+
stroke-dashoffset: 65;
|
|
661
|
+
opacity: 1;
|
|
662
|
+
animation: progress-circular-circle 1750ms var(--standard-curve) infinite;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
@keyframes progress-circular-svg {
|
|
666
|
+
0% {
|
|
667
|
+
transform: rotate(0deg);
|
|
668
|
+
}
|
|
669
|
+
50% {
|
|
670
|
+
transform: rotate(180deg);
|
|
671
|
+
}
|
|
672
|
+
100% {
|
|
673
|
+
transform: rotate(360deg);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
@keyframes progress-circular-circle {
|
|
678
|
+
50% {
|
|
679
|
+
stroke-dashoffset: 0;
|
|
680
|
+
}
|
|
681
|
+
100% {
|
|
682
|
+
stroke-dashoffset: -65;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
643
686
|
.rls-radiobutton {
|
|
644
687
|
--pvt-component-transform: scale(0);
|
|
645
688
|
position: relative;
|
|
@@ -897,6 +940,14 @@
|
|
|
897
940
|
white-space: var(--rls-ballot-subtitle-white-space);
|
|
898
941
|
}
|
|
899
942
|
|
|
943
|
+
.rls-button-progress {
|
|
944
|
+
--rls-progress-circular-dimension: var(--sizing-x16);
|
|
945
|
+
position: relative;
|
|
946
|
+
display: flex;
|
|
947
|
+
justify-content: center;
|
|
948
|
+
align-items: center;
|
|
949
|
+
}
|
|
950
|
+
|
|
900
951
|
.rls-button-toggle {
|
|
901
952
|
width: auto;
|
|
902
953
|
}
|
|
@@ -2040,7 +2091,7 @@
|
|
|
2040
2091
|
cursor: default;
|
|
2041
2092
|
border: none;
|
|
2042
2093
|
outline: none;
|
|
2043
|
-
color: var(--
|
|
2094
|
+
color: var(--rls-input-font-color);
|
|
2044
2095
|
background: transparent;
|
|
2045
2096
|
font-size: var(--input-font-size);
|
|
2046
2097
|
font-weight: var(--font-weight-medium);
|
package/dist/cjs/index.js
CHANGED
|
@@ -187,6 +187,10 @@ function RlsProgressBar({ indeterminate, percentage, rlsTheme }) {
|
|
|
187
187
|
return (jsxRuntime.jsx("div", { className: renderClassStatus('rls-progress-bar', { indeterminate }), "rls-theme": rlsTheme, children: jsxRuntime.jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage || 0}%` } }) }));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
function RlsProgressCircular({ rlsTheme }) {
|
|
191
|
+
return (jsxRuntime.jsx("div", { className: "rls-progress-circular", "rls-theme": rlsTheme, children: jsxRuntime.jsx("svg", { className: "rls-progress-circular__svg", viewBox: "0 0 36 36", children: jsxRuntime.jsx("circle", { className: "rls-progress-circular__circle", cx: "18", cy: "18", r: "12" }) }) }));
|
|
192
|
+
}
|
|
193
|
+
|
|
190
194
|
function RlsRadioButton({ checked, disabled, rlsTheme, onClick }) {
|
|
191
195
|
return (jsxRuntime.jsx("div", { className: renderClassStatus('rls-radiobutton', { checked, disabled }), onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntime.jsx("div", { className: "rls-radiobutton__component" }) }));
|
|
192
196
|
}
|
|
@@ -216,6 +220,10 @@ function RlsBallot({ bordered, children, img, initials, skeleton, subtitle, rlsT
|
|
|
216
220
|
return (jsxRuntime.jsxs("div", { className: renderClassStatus('rls-ballot', { bordered, skeleton }), "rls-theme": rlsTheme, children: [(img || initials) && (jsxRuntime.jsxs(RlsAvatar, { skeleton: skeleton, children: [img && jsxRuntime.jsx("img", { src: img }), initials && jsxRuntime.jsx("span", { children: initials })] })), jsxRuntime.jsxs("div", { className: "rls-ballot__component", children: [jsxRuntime.jsx("label", { className: "rls-ballot__title", children: jsxRuntime.jsx(RlsSkeletonText, { active: skeleton, children: children }) }), subtitle && (jsxRuntime.jsx("label", { className: "rls-ballot__subtitle", children: jsxRuntime.jsx(RlsSkeletonText, { active: skeleton, children: subtitle }) }))] })] }));
|
|
217
221
|
}
|
|
218
222
|
|
|
223
|
+
function RlsButtonProgress({ icon, disabled, onClick, progressing, rlsTheme }) {
|
|
224
|
+
return (jsxRuntime.jsxs("div", { className: renderClassStatus('rls-button-progress', { progressing }), "rls-theme": rlsTheme, children: [!progressing && (jsxRuntime.jsx(RlsButtonAction, { icon: icon, onClick: onClick, disabled: disabled })), progressing && jsxRuntime.jsx(RlsProgressCircular, {})] }));
|
|
225
|
+
}
|
|
226
|
+
|
|
219
227
|
function RlsButtonToggle({ onAction, options, type, automatic, disabled, rlsTheme }) {
|
|
220
228
|
const componentRef = react.useRef(null);
|
|
221
229
|
const [firstAction] = options;
|
|
@@ -298,7 +306,7 @@ class DayPickerFactory {
|
|
|
298
306
|
createRightWeeks() {
|
|
299
307
|
const dayStart = this.date.getDay();
|
|
300
308
|
const rightWeeks = [];
|
|
301
|
-
const dayCount = helpersDate.
|
|
309
|
+
const dayCount = helpersDate.getDaysOfMonth(this.date.getFullYear(), this.date.getMonth());
|
|
302
310
|
let days = [];
|
|
303
311
|
let countDaysWeek = 1;
|
|
304
312
|
let day = 8 - dayStart;
|
|
@@ -337,12 +345,14 @@ class DayPickerFactory {
|
|
|
337
345
|
}
|
|
338
346
|
minOverflowDay(day) {
|
|
339
347
|
return this.minDate
|
|
340
|
-
? helpersDate.
|
|
348
|
+
? helpersDate.getDateWeight(helpersDate.assignDayInDate(this.date, day)) <
|
|
349
|
+
helpersDate.getDateWeight(this.minDate)
|
|
341
350
|
: false;
|
|
342
351
|
}
|
|
343
352
|
maxOverflowDay(day) {
|
|
344
353
|
return this.maxDate
|
|
345
|
-
? helpersDate.
|
|
354
|
+
? helpersDate.getDateWeight(helpersDate.assignDayInDate(this.date, day)) >
|
|
355
|
+
helpersDate.getDateWeight(this.maxDate)
|
|
346
356
|
: false;
|
|
347
357
|
}
|
|
348
358
|
}
|
|
@@ -419,7 +429,7 @@ class DateRangePickerFactory {
|
|
|
419
429
|
createRightWeeks() {
|
|
420
430
|
const rightWeeks = [];
|
|
421
431
|
const dayStart = this.date.getDay();
|
|
422
|
-
const dayCount = helpersDate.
|
|
432
|
+
const dayCount = helpersDate.getDaysOfMonth(this.date.getFullYear(), this.date.getMonth());
|
|
423
433
|
let days = [];
|
|
424
434
|
let countDaysWeek = 1;
|
|
425
435
|
let day = 8 - dayStart;
|
|
@@ -458,19 +468,21 @@ class DateRangePickerFactory {
|
|
|
458
468
|
day === date.getDate());
|
|
459
469
|
}
|
|
460
470
|
isRangedFromDate(day) {
|
|
461
|
-
return helpersDate.
|
|
471
|
+
return helpersDate.dateIsBetween(this.range.minDate, this.range.maxDate, helpersDate.assignDayInDate(this.date, day));
|
|
462
472
|
}
|
|
463
473
|
overflowDay(day) {
|
|
464
474
|
return this.minOverflowDay(day) || this.maxOverflowDay(day);
|
|
465
475
|
}
|
|
466
476
|
minOverflowDay(day) {
|
|
467
477
|
return this.minDate
|
|
468
|
-
? helpersDate.
|
|
478
|
+
? helpersDate.getDateWeight(helpersDate.assignDayInDate(this.date, day)) <
|
|
479
|
+
helpersDate.getDateWeight(this.minDate)
|
|
469
480
|
: false;
|
|
470
481
|
}
|
|
471
482
|
maxOverflowDay(day) {
|
|
472
483
|
return this.maxDate
|
|
473
|
-
? helpersDate.
|
|
484
|
+
? helpersDate.getDateWeight(helpersDate.assignDayInDate(this.date, day)) >
|
|
485
|
+
helpersDate.getDateWeight(this.maxDate)
|
|
474
486
|
: false;
|
|
475
487
|
}
|
|
476
488
|
createDayRangeState(day) {
|
|
@@ -484,9 +496,9 @@ class DateRangePickerFactory {
|
|
|
484
496
|
};
|
|
485
497
|
}
|
|
486
498
|
}
|
|
487
|
-
function
|
|
488
|
-
const minFormat = helpersDate.
|
|
489
|
-
const maxFormat = helpersDate.
|
|
499
|
+
function rangeFormatTemplate(range) {
|
|
500
|
+
const minFormat = helpersDate.dateFormatTemplate(range.minDate, DATE_RANGE_FORMAT);
|
|
501
|
+
const maxFormat = helpersDate.dateFormatTemplate(range.maxDate, DATE_RANGE_FORMAT);
|
|
490
502
|
return `${minFormat} - ${maxFormat}`;
|
|
491
503
|
}
|
|
492
504
|
function createRangePicker(props) {
|
|
@@ -509,15 +521,15 @@ function RlsDayRangePicker({ date, disabled: disabledPicker, formControl, maxDat
|
|
|
509
521
|
}));
|
|
510
522
|
}, [range, date, minDate, maxDate]);
|
|
511
523
|
function onChange(value) {
|
|
512
|
-
const newDate = helpersDate.
|
|
513
|
-
const newRange = helpersDate.
|
|
524
|
+
const newDate = helpersDate.assignDayInDate(initialDate, value);
|
|
525
|
+
const newRange = helpersDate.dateIsBefore(newDate, sourceDate.current)
|
|
514
526
|
? new helpersDate.DateRange(sourceDate.current, newDate)
|
|
515
527
|
: new helpersDate.DateRange(newDate, sourceDate.current);
|
|
516
528
|
sourceDate.current = newDate;
|
|
517
529
|
setRange(newRange);
|
|
518
530
|
formControl?.setState(newRange);
|
|
519
531
|
}
|
|
520
|
-
return (jsxRuntime.jsxs("div", { className: "rls-day-range-picker", "rls-theme": rlsTheme, children: [jsxRuntime.jsx("div", { className: "rls-day-range-picker__title", children: helpersDate.
|
|
532
|
+
return (jsxRuntime.jsxs("div", { className: "rls-day-range-picker", "rls-theme": rlsTheme, children: [jsxRuntime.jsx("div", { className: "rls-day-range-picker__title", children: helpersDate.dateFormatTemplate(sourceDate.current, DATE_RANGE_FORMAT) }), jsxRuntime.jsx("div", { className: "rls-day-range-picker__header", children: helpersDate.DAY_LABELS().map((title, index) => (jsxRuntime.jsx("label", { className: "rls-day-range-picker__label", children: title }, index))) }), jsxRuntime.jsx("div", { className: "rls-day-range-picker__component", children: weeks.map(({ days }, index) => (jsxRuntime.jsx("div", { className: "rls-day-range-picker__week", children: days.map(({ disabled, end, forbidden, source, ranged, value }, index) => (jsxRuntime.jsx("div", { className: renderClassStatus('rls-day-range-picker__day', {
|
|
521
533
|
disabled: disabled || disabledPicker,
|
|
522
534
|
end,
|
|
523
535
|
forbidden,
|
|
@@ -1566,6 +1578,13 @@ function RlsDatatable({ children, datatable, footer, header, rlsTheme, summary }
|
|
|
1566
1578
|
}), "rls-theme": rlsTheme, children: [jsxRuntime.jsxs("table", { children: [header && jsxRuntime.jsx("thead", { className: "rls-datatable__thead", children: header }), jsxRuntime.jsx("tbody", { ref: datatable?.bodyRef, className: "rls-datatable__tbody", children: children })] }), summary && jsxRuntime.jsx("div", { className: "rls-datatable__tsummary", children: summary }), footer && jsxRuntime.jsx("div", { className: "rls-datatable__tfooter", children: footer })] }));
|
|
1567
1579
|
}
|
|
1568
1580
|
|
|
1581
|
+
var PickerListenerType;
|
|
1582
|
+
(function (PickerListenerType) {
|
|
1583
|
+
PickerListenerType["Select"] = "PickerSelect";
|
|
1584
|
+
PickerListenerType["Now"] = "PickerNow";
|
|
1585
|
+
PickerListenerType["Cancel"] = "PickerCancel";
|
|
1586
|
+
})(PickerListenerType || (PickerListenerType = {}));
|
|
1587
|
+
|
|
1569
1588
|
const controlIsValid = (props) => {
|
|
1570
1589
|
const { state, validators } = props;
|
|
1571
1590
|
return validators.reduce((errors, validator) => {
|
|
@@ -1662,15 +1681,12 @@ function useReactControl(controlProps, controlValidators) {
|
|
|
1662
1681
|
return useControl(controlProps, controlValidators);
|
|
1663
1682
|
}
|
|
1664
1683
|
|
|
1665
|
-
|
|
1666
|
-
(
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
function verifyDateRange(date, min, max) {
|
|
1673
|
-
return min && helpersDate.before(min, date) ? min : max && helpersDate.after(max, date) ? max : date;
|
|
1684
|
+
function dateIsRange(date, min, max) {
|
|
1685
|
+
return min && helpersDate.dateIsBefore(min, date)
|
|
1686
|
+
? min
|
|
1687
|
+
: max && helpersDate.dateIsAfter(max, date)
|
|
1688
|
+
? max
|
|
1689
|
+
: date;
|
|
1674
1690
|
}
|
|
1675
1691
|
|
|
1676
1692
|
const FORMAT_DESCRIPTION = '{dw}, {mx} {dd} de {aa}';
|
|
@@ -1700,25 +1716,25 @@ function RlsDatePicker({ automatic, date, formControl, disabled, maxDate, minDat
|
|
|
1700
1716
|
const monthControl = useReactControl(dateInitial.getMonth());
|
|
1701
1717
|
const [value, setValue] = react.useState(dateInitial);
|
|
1702
1718
|
const [{ day, month, year }, setVisibility] = react.useState(VISIBILITY$1.DAY);
|
|
1703
|
-
const title = helpersDate.
|
|
1719
|
+
const title = helpersDate.dateFormatTemplate(value, FORMAT_DESCRIPTION);
|
|
1704
1720
|
react.useEffect(() => {
|
|
1705
1721
|
setValue((prevValue) => {
|
|
1706
1722
|
return typeof yearControl.state === 'number'
|
|
1707
|
-
?
|
|
1723
|
+
? dateIsRange(helpersDate.assignYearInDate(prevValue, yearControl.state), minDate, maxDate)
|
|
1708
1724
|
: prevValue;
|
|
1709
1725
|
});
|
|
1710
1726
|
}, [yearControl.state]);
|
|
1711
1727
|
react.useEffect(() => {
|
|
1712
1728
|
setValue((prevValue) => {
|
|
1713
1729
|
return typeof monthControl.state === 'number'
|
|
1714
|
-
?
|
|
1730
|
+
? dateIsRange(helpersDate.assignMonthInDate(prevValue, monthControl.state), minDate, maxDate)
|
|
1715
1731
|
: prevValue;
|
|
1716
1732
|
});
|
|
1717
1733
|
}, [monthControl.state]);
|
|
1718
1734
|
react.useEffect(() => {
|
|
1719
1735
|
setValue((prevValue) => {
|
|
1720
1736
|
return typeof dayControl.state === 'number'
|
|
1721
|
-
?
|
|
1737
|
+
? dateIsRange(helpersDate.assignDayInDate(prevValue, dayControl.state), minDate, maxDate)
|
|
1722
1738
|
: prevValue;
|
|
1723
1739
|
});
|
|
1724
1740
|
}, [dayControl.state]);
|
|
@@ -1770,7 +1786,7 @@ function RlsDateField({ children, date, disabled, formControl, maxDate, minDate,
|
|
|
1770
1786
|
const [show, setShow] = react.useState(false);
|
|
1771
1787
|
const [description, setDescription] = react.useState('');
|
|
1772
1788
|
react.useEffect(() => {
|
|
1773
|
-
setDescription(value ? helpersDate.
|
|
1789
|
+
setDescription(value ? helpersDate.dateFormatTemplate(value, DATE_RANGE_FORMAT) : '');
|
|
1774
1790
|
}, [value]);
|
|
1775
1791
|
function onClickInput() {
|
|
1776
1792
|
setShow(true);
|
|
@@ -1837,14 +1853,14 @@ function RlsDateRangePicker({ automatic, date: datePicker, disabled, formControl
|
|
|
1837
1853
|
react.useEffect(() => {
|
|
1838
1854
|
setDate((prevValue) => {
|
|
1839
1855
|
return typeof yearControl.state === 'number'
|
|
1840
|
-
? helpersDate.
|
|
1856
|
+
? helpersDate.assignYearInDate(prevValue, yearControl.state)
|
|
1841
1857
|
: prevValue;
|
|
1842
1858
|
});
|
|
1843
1859
|
}, [yearControl.state]);
|
|
1844
1860
|
react.useEffect(() => {
|
|
1845
1861
|
setDate((prevValue) => {
|
|
1846
1862
|
return typeof monthControl.state === 'number'
|
|
1847
|
-
? helpersDate.
|
|
1863
|
+
? helpersDate.assignMonthInDate(prevValue, monthControl.state)
|
|
1848
1864
|
: prevValue;
|
|
1849
1865
|
});
|
|
1850
1866
|
}, [monthControl.state]);
|
|
@@ -1874,7 +1890,7 @@ function RlsDateRangePicker({ automatic, date: datePicker, disabled, formControl
|
|
|
1874
1890
|
onListener({ type: PickerListenerType.Select, value });
|
|
1875
1891
|
}
|
|
1876
1892
|
}
|
|
1877
|
-
return (jsxRuntime.jsxs("div", { className: "rls-date-range-picker", "rls-theme": rlsTheme, children: [jsxRuntime.jsxs("div", { className: "rls-date-range-picker__header", children: [jsxRuntime.jsx("div", { className: "rls-date-range-picker__title rls-date-range-picker__title--description", children: jsxRuntime.jsx("span", { onClick: onVisibilityDay, children:
|
|
1893
|
+
return (jsxRuntime.jsxs("div", { className: "rls-date-range-picker", "rls-theme": rlsTheme, children: [jsxRuntime.jsxs("div", { className: "rls-date-range-picker__header", children: [jsxRuntime.jsx("div", { className: "rls-date-range-picker__title rls-date-range-picker__title--description", children: jsxRuntime.jsx("span", { onClick: onVisibilityDay, children: rangeFormatTemplate(value) }) }), jsxRuntime.jsx("div", { className: "rls-date-range-picker__title rls-date-range-picker__title--year", children: jsxRuntime.jsx("span", { onClick: onVisibilityYear, children: yearControl.state }) }), jsxRuntime.jsx(RlsMonthTitlePicker, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: year, type: month ? 'year' : 'month', onClick: onVisibilityMonth })] }), jsxRuntime.jsxs("div", { className: renderClassStatus('rls-date-range-picker__component', {
|
|
1878
1894
|
year,
|
|
1879
1895
|
day,
|
|
1880
1896
|
month
|
|
@@ -1891,7 +1907,7 @@ function RlsDateRangeField({ children, date: datePicker, disabled, formControl,
|
|
|
1891
1907
|
const [show, setShow] = react.useState(false);
|
|
1892
1908
|
const [description, setDescription] = react.useState('');
|
|
1893
1909
|
react.useEffect(() => {
|
|
1894
|
-
setDescription(value ?
|
|
1910
|
+
setDescription(value ? rangeFormatTemplate(value) : '');
|
|
1895
1911
|
}, [value]);
|
|
1896
1912
|
function onClickInput() {
|
|
1897
1913
|
setShow(true);
|
|
@@ -2123,6 +2139,7 @@ exports.RlsBallot = RlsBallot;
|
|
|
2123
2139
|
exports.RlsBreadcrumb = RlsBreadcrumb;
|
|
2124
2140
|
exports.RlsButton = RlsButton;
|
|
2125
2141
|
exports.RlsButtonAction = RlsButtonAction;
|
|
2142
|
+
exports.RlsButtonProgress = RlsButtonProgress;
|
|
2126
2143
|
exports.RlsButtonToggle = RlsButtonToggle;
|
|
2127
2144
|
exports.RlsCard = RlsCard;
|
|
2128
2145
|
exports.RlsCheckBox = RlsCheckBox;
|
|
@@ -2161,6 +2178,7 @@ exports.RlsPagination = RlsPagination;
|
|
|
2161
2178
|
exports.RlsPasswordField = RlsPasswordField;
|
|
2162
2179
|
exports.RlsPoster = RlsPoster;
|
|
2163
2180
|
exports.RlsProgressBar = RlsProgressBar;
|
|
2181
|
+
exports.RlsProgressCircular = RlsProgressCircular;
|
|
2164
2182
|
exports.RlsRadioButton = RlsRadioButton;
|
|
2165
2183
|
exports.RlsRadioButtonLabel = RlsRadioButtonLabel;
|
|
2166
2184
|
exports.RlsSearchInput = RlsSearchInput;
|