@pedidopago/ui 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DateInput/dateInput.test.js +11 -0
- package/dist/components/DateInput/index.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +8 -4
- package/dist/components/DateInput/types.d.ts +2 -0
- package/dist/components/DateInput/types.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.js +17 -7
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +5 -4
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +1 -1
- package/dist/components/Icon/data/dash.d.ts.map +1 -1
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/payment.d.ts.map +1 -1
- package/dist/components/Icon/data/payment.js +7 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Illustration/BoletoSvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoletoSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoletoSvg/index.js +168 -0
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoxClosedSvg/index.js +99 -0
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoxDeliverySvg/index.js +111 -0
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoxOpenSvg/index.js +108 -0
- package/dist/components/Illustration/CalendarSvg/index.d.ts +5 -0
- package/dist/components/Illustration/CalendarSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/CalendarSvg/index.js +109 -0
- package/dist/components/Illustration/CardSvg/index.d.ts +5 -0
- package/dist/components/Illustration/CardSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/CardSvg/index.js +110 -0
- package/dist/components/Illustration/InquirySvg/index.d.ts +5 -0
- package/dist/components/Illustration/InquirySvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/InquirySvg/index.js +219 -0
- package/dist/components/Illustration/OrderSvg/index.d.ts +5 -0
- package/dist/components/Illustration/OrderSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/OrderSvg/index.js +135 -0
- package/dist/components/Illustration/PixSvg/index.d.ts +5 -0
- package/dist/components/Illustration/PixSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/PixSvg/index.js +93 -0
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +5 -0
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/PrescriptionSvg/index.js +81 -0
- package/dist/components/Illustration/TransportSvg/index.d.ts +5 -0
- package/dist/components/Illustration/TransportSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/TransportSvg/index.js +102 -0
- package/dist/components/Illustration/illustration.test.d.ts +2 -0
- package/dist/components/Illustration/illustration.test.d.ts.map +1 -0
- package/dist/components/Illustration/illustration.test.js +61 -0
- package/dist/components/Illustration/index.d.ts +5 -0
- package/dist/components/Illustration/index.d.ts.map +1 -0
- package/dist/components/Illustration/index.js +134 -0
- package/dist/components/Illustration/styles.d.ts +11 -0
- package/dist/components/Illustration/styles.d.ts.map +1 -0
- package/dist/components/Illustration/styles.js +38 -0
- package/dist/components/Illustration/types.d.ts +7 -0
- package/dist/components/Illustration/types.d.ts.map +1 -0
- package/dist/components/Illustration/types.js +1 -0
- package/dist/components/Steps/components/StepIcon/index.d.ts +2 -2
- package/dist/components/Steps/components/StepIcon/index.d.ts.map +1 -1
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +2 -2
- package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +1 -1
- package/dist/components/Steps/index.d.ts +2 -2
- package/dist/components/Steps/index.d.ts.map +1 -1
- package/dist/components/Steps/index.js +22 -9
- package/dist/components/Steps/styles.d.ts.map +1 -1
- package/dist/components/Steps/styles.js +30 -19
- package/dist/components/Steps/types.d.ts +11 -5
- package/dist/components/Steps/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -38,4 +38,15 @@ describe('DateInput', function () {
|
|
|
38
38
|
|
|
39
39
|
expect(container).toBeInTheDocument();
|
|
40
40
|
});
|
|
41
|
+
it('should render the datepicker with minimum and maximum dates', function () {
|
|
42
|
+
var _setup3 = setup({
|
|
43
|
+
value: new Date(),
|
|
44
|
+
onChange: jest.fn(),
|
|
45
|
+
minDate: new Date(),
|
|
46
|
+
maxDate: new Date()
|
|
47
|
+
}),
|
|
48
|
+
container = _setup3.container;
|
|
49
|
+
|
|
50
|
+
expect(container).toBeInTheDocument();
|
|
51
|
+
});
|
|
41
52
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DateInputProps } from './types';
|
|
3
|
-
export declare function DateInput({ label, placeholder, alert, helperText, value, locales, localeOptions, onChange, disabled, ...rest }: DateInputProps): JSX.Element;
|
|
3
|
+
export declare function DateInput({ label, placeholder, alert, helperText, value, locales, localeOptions, minDate, maxDate, onChange, disabled, ...rest }: DateInputProps): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/index.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,KAAK,EACL,UAAU,EACV,KAAK,EACL,OAAO,EACP,aAAa,EACb,QAAQ,EACR,QAAgB,EAChB,GAAG,IAAI,EACR,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/index.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,KAAK,EACL,UAAU,EACV,KAAK,EACL,OAAO,EACP,aAAa,EACb,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAgB,EAChB,GAAG,IAAI,EACR,EAAE,cAAc,eA2FhB"}
|
|
@@ -23,7 +23,7 @@ var _useDisableBodyScroll = require("../../shared/hooks/useDisableBodyScroll");
|
|
|
23
23
|
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["label", "placeholder", "alert", "helperText", "value", "locales", "localeOptions", "onChange", "disabled"];
|
|
26
|
+
var _excluded = ["label", "placeholder", "alert", "helperText", "value", "locales", "localeOptions", "minDate", "maxDate", "onChange", "disabled"];
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
29
|
|
|
@@ -59,6 +59,8 @@ function DateInput(_ref) {
|
|
|
59
59
|
value = _ref.value,
|
|
60
60
|
locales = _ref.locales,
|
|
61
61
|
localeOptions = _ref.localeOptions,
|
|
62
|
+
minDate = _ref.minDate,
|
|
63
|
+
maxDate = _ref.maxDate,
|
|
62
64
|
onChange = _ref.onChange,
|
|
63
65
|
_ref$disabled = _ref.disabled,
|
|
64
66
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -89,7 +91,7 @@ function DateInput(_ref) {
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
(0, _react.useEffect)(function () {
|
|
92
|
-
setCurrentValue(value);
|
|
94
|
+
setCurrentValue(value === undefined ? new Date() : value);
|
|
93
95
|
}, [value]);
|
|
94
96
|
(0, _useDisableBodyScroll.useDisableBodyScroll)(datePickerOpen);
|
|
95
97
|
|
|
@@ -116,7 +118,7 @@ function DateInput(_ref) {
|
|
|
116
118
|
}),
|
|
117
119
|
disabled: disabled,
|
|
118
120
|
tabIndex: disabled ? -1 : 0,
|
|
119
|
-
value: currentValue ? Array.isArray(currentValue) ? "".concat(currentValue[0].toLocaleDateString(locales, localeOptions), " - ").concat(currentValue[1].toLocaleDateString(locales, localeOptions)) : currentValue.toLocaleDateString(
|
|
121
|
+
value: currentValue ? Array.isArray(currentValue) ? "".concat(currentValue[0].toLocaleDateString(locales, localeOptions), " - ").concat(currentValue[1].toLocaleDateString(locales, localeOptions)) : new Date(currentValue).toLocaleDateString() : '',
|
|
120
122
|
onClick: toggleOptionsAreaView,
|
|
121
123
|
onMouseOver: handleRepositionModal
|
|
122
124
|
}), datePickerOpen && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -134,7 +136,9 @@ function DateInput(_ref) {
|
|
|
134
136
|
maxWidth: "auto",
|
|
135
137
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DatePicker.default, _objectSpread({
|
|
136
138
|
value: currentValue,
|
|
137
|
-
onChange: selectDate
|
|
139
|
+
onChange: selectDate,
|
|
140
|
+
minDate: minDate,
|
|
141
|
+
maxDate: maxDate
|
|
138
142
|
}, rest))
|
|
139
143
|
})
|
|
140
144
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,oBAAY,wBAAwB,GAAG;IACrC,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,oBAAY,wBAAwB,GAAG;IACrC,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC3C,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerContent.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/components/DatePickerContent.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,iBAAiB,4KAc3B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"DatePickerContent.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/components/DatePickerContent.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,iBAAiB,4KAc3B,sBAAsB,gBAmOxB,CAAC"}
|
|
@@ -56,11 +56,6 @@ var DatePickerContent = function DatePickerContent(_ref) {
|
|
|
56
56
|
if (maxDate || minDate) {
|
|
57
57
|
var newDate = new Date(date);
|
|
58
58
|
newDate.setMonth(newDate.getMonth() + (to === 'up' ? 1 : -1));
|
|
59
|
-
|
|
60
|
-
if (maxDate && newDate > maxDate || minDate && newDate < minDate) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
59
|
handleChangeDate(newDate);
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -109,6 +104,20 @@ var DatePickerContent = function DatePickerContent(_ref) {
|
|
|
109
104
|
return groupedDaysWithWeekDays;
|
|
110
105
|
};
|
|
111
106
|
|
|
107
|
+
var checkIfSelectedDateIsInvalid = function checkIfSelectedDateIsInvalid(cellDate) {
|
|
108
|
+
var isDateInvalid = false;
|
|
109
|
+
|
|
110
|
+
if (minDate && cellDate < minDate) {
|
|
111
|
+
isDateInvalid = true;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (maxDate && cellDate > maxDate) {
|
|
115
|
+
isDateInvalid = true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return isDateInvalid;
|
|
119
|
+
};
|
|
120
|
+
|
|
112
121
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.motion.div, {
|
|
113
122
|
initial: {
|
|
114
123
|
opacity: 0
|
|
@@ -194,12 +203,13 @@ var DatePickerContent = function DatePickerContent(_ref) {
|
|
|
194
203
|
var removeZeros = days.filter(function (day) {
|
|
195
204
|
return day !== 0;
|
|
196
205
|
});
|
|
206
|
+
var isDateBeyondMinAndMaxLimits = checkIfSelectedDateIsInvalid(cellDate);
|
|
197
207
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.DatePickerTableCell, {
|
|
198
208
|
role: "gridcell",
|
|
199
209
|
title: cellTitle,
|
|
200
210
|
"data-date": cellDate,
|
|
201
211
|
tabIndex: -1,
|
|
202
|
-
disabled: isDisabled,
|
|
212
|
+
disabled: isDisabled || isDateBeyondMinAndMaxLimits,
|
|
203
213
|
"aria-label": cellDate.toLocaleDateString('pt-BR', {
|
|
204
214
|
weekday: 'short',
|
|
205
215
|
year: '2-digit',
|
|
@@ -213,7 +223,7 @@ var DatePickerContent = function DatePickerContent(_ref) {
|
|
|
213
223
|
isEndDateOfRange: type === 'range' && isEndDateOfRange,
|
|
214
224
|
isToday: isToday,
|
|
215
225
|
isSelected: isStartDateOfRange,
|
|
216
|
-
isPrevNextMonth: isPreviousMonth || isNextMonth,
|
|
226
|
+
isPrevNextMonth: isPreviousMonth || isNextMonth || isDateBeyondMinAndMaxLimits,
|
|
217
227
|
isFirstDayOfMonth: isExtended && rowIndex === 0 && day === 1,
|
|
218
228
|
isLastDayOfMonth: isExtended && rowIndex === monthDaysLength - 1 && day === removeZeros[removeZeros.length - 1],
|
|
219
229
|
onMouseOver: function onMouseOver() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,UAAU,iEAQb,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,UAAU,iEAQb,eAAe,gBAoJjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -134,8 +134,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
134
134
|
isInTheRange: isInTheRange,
|
|
135
135
|
handleMouseOver: handleMouseOver,
|
|
136
136
|
handleChange: handleChange,
|
|
137
|
-
minDate: minDate
|
|
138
|
-
maxDate: maxDate
|
|
137
|
+
minDate: minDate,
|
|
138
|
+
maxDate: maxDate
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
var handleToggleYearPicker = function handleToggleYearPicker() {
|
|
@@ -156,7 +156,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
156
156
|
enableYearPicker: !maxDate && !minDate
|
|
157
157
|
}), {}, {
|
|
158
158
|
date: firstCalendarDate,
|
|
159
|
-
maxDate: variant === 'extended' ? new Date(secondCalendarDate.getFullYear(), secondCalendarDate.getMonth()
|
|
159
|
+
maxDate: variant === 'extended' ? new Date(secondCalendarDate.getFullYear(), secondCalendarDate.getMonth(), 1) : maxDate,
|
|
160
160
|
handleChangeDate: function handleChangeDate(newDate) {
|
|
161
161
|
return setFirstCalendarDate(newDate);
|
|
162
162
|
}
|
|
@@ -165,7 +165,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
165
165
|
minDate: new Date(firstCalendarDate.getFullYear(), firstCalendarDate.getMonth() + 1, 1),
|
|
166
166
|
handleChangeDate: function handleChangeDate(newDate) {
|
|
167
167
|
return setSecondCalendarDate(newDate);
|
|
168
|
-
}
|
|
168
|
+
},
|
|
169
|
+
maxDate: maxDate
|
|
169
170
|
}))]
|
|
170
171
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateYearPicker.DateYearPicker, {
|
|
171
172
|
date: firstCalendarDate,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/styles.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;;gBACzB,OAAO;yGAsBpB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;yGAG/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;yGAM5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;yGAwBjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;qHAwBlC,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAE1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;uIAiB/B,CAAC;AACF,eAAO,MAAM,kBAAkB;;;;;mHAkB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/styles.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;;gBACzB,OAAO;yGAsBpB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;yGAG/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;yGAM5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;yGAwBjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;qHAwBlC,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAE1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;uIAiB/B,CAAC;AACF,eAAO,MAAM,kBAAkB;;;;;mHAkB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;+HAyJ/B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;gIAGnC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;yGAGnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAG9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;yGAoC9B,CAAC"}
|
|
@@ -74,7 +74,7 @@ var DatePickerTableCell = _styled.default.td(_templateObject9 || (_templateObjec
|
|
|
74
74
|
}, function (props) {
|
|
75
75
|
return props.isPrevNextMonth && !props.isSelected && !props.isEndDateOfRange && !props['aria-selected'] ? (0, _colorCheck.parseHslColorToString)(props.theme.colorMode === 'dark' ? (0, _colorToGray.convertColor)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme)).neutral3 : (0, _colorToGray.convertColor)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme)).neutral1) : props.isSelected || props.isEndDateOfRange ? props.theme.colors.body.light : props['aria-selected'] ? (0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme) : props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.black;
|
|
76
76
|
}, function (props) {
|
|
77
|
-
return props.disabled && "\n cursor: default; \n pointer-events: none;\n
|
|
77
|
+
return props.disabled && "\n cursor: default; \n pointer-events: none;\n ";
|
|
78
78
|
}, function (props) {
|
|
79
79
|
return props.isToday && !props.isSelected && !props.isEndDateOfRange && "\n &:after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n border: solid 1px ".concat(props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral3 : props.theme.colors.neutral.neutral2, ";\n transform: translate(-50%, -50%);\n }\n ");
|
|
80
80
|
}, function (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/data/dash.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;
|
|
1
|
+
{"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/data/dash.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;GAyiFrB,CAAC"}
|