@activecollab/components 2.0.138 → 2.0.140

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 (72) hide show
  1. package/dist/cjs/components/DatePicker/DatePickerV2.js +661 -0
  2. package/dist/cjs/components/DatePicker/DatePickerV2.js.map +1 -0
  3. package/dist/cjs/components/DatePicker/StylesV2.js +100 -0
  4. package/dist/cjs/components/DatePicker/StylesV2.js.map +1 -0
  5. package/dist/cjs/components/DatePicker/index.js +11 -0
  6. package/dist/cjs/components/DatePicker/index.js.map +1 -1
  7. package/dist/cjs/components/GlobalStyle.js +1 -1
  8. package/dist/cjs/components/GlobalStyle.js.map +1 -1
  9. package/dist/cjs/components/Icons/collection/SortSmall.js +47 -0
  10. package/dist/cjs/components/Icons/collection/SortSmall.js.map +1 -0
  11. package/dist/cjs/components/Icons/collection/index.js +7 -0
  12. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  13. package/dist/cjs/components/SelectDate/SelectDateV2.js +233 -0
  14. package/dist/cjs/components/SelectDate/SelectDateV2.js.map +1 -0
  15. package/dist/cjs/components/SelectDate/index.js +11 -0
  16. package/dist/cjs/components/SelectDate/index.js.map +1 -1
  17. package/dist/cjs/components/Steppers/DateStepper/DateStepperV2.js +276 -0
  18. package/dist/cjs/components/Steppers/DateStepper/DateStepperV2.js.map +1 -0
  19. package/dist/cjs/components/Steppers/DateStepper/Styles.js +2 -3
  20. package/dist/cjs/components/Steppers/DateStepper/Styles.js.map +1 -1
  21. package/dist/cjs/components/Steppers/DateStepper/index.js +11 -0
  22. package/dist/cjs/components/Steppers/DateStepper/index.js.map +1 -1
  23. package/dist/cjs/custom.d.js.map +1 -1
  24. package/dist/esm/components/DatePicker/DatePickerV2.d.ts +67 -0
  25. package/dist/esm/components/DatePicker/DatePickerV2.d.ts.map +1 -0
  26. package/dist/esm/components/DatePicker/DatePickerV2.js +574 -0
  27. package/dist/esm/components/DatePicker/DatePickerV2.js.map +1 -0
  28. package/dist/esm/components/DatePicker/StylesV2.d.ts +22 -0
  29. package/dist/esm/components/DatePicker/StylesV2.d.ts.map +1 -0
  30. package/dist/esm/components/DatePicker/StylesV2.js +93 -0
  31. package/dist/esm/components/DatePicker/StylesV2.js.map +1 -0
  32. package/dist/esm/components/DatePicker/index.d.ts +1 -0
  33. package/dist/esm/components/DatePicker/index.d.ts.map +1 -1
  34. package/dist/esm/components/DatePicker/index.js +1 -0
  35. package/dist/esm/components/DatePicker/index.js.map +1 -1
  36. package/dist/esm/components/GlobalStyle.d.ts.map +1 -1
  37. package/dist/esm/components/GlobalStyle.js +1 -1
  38. package/dist/esm/components/GlobalStyle.js.map +1 -1
  39. package/dist/esm/components/Icons/collection/SortSmall.d.ts +23 -0
  40. package/dist/esm/components/Icons/collection/SortSmall.d.ts.map +1 -0
  41. package/dist/esm/components/Icons/collection/SortSmall.js +39 -0
  42. package/dist/esm/components/Icons/collection/SortSmall.js.map +1 -0
  43. package/dist/esm/components/Icons/collection/index.d.ts +1 -0
  44. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  45. package/dist/esm/components/Icons/collection/index.js +1 -0
  46. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  47. package/dist/esm/components/SelectDate/SelectDateV2.d.ts +100 -0
  48. package/dist/esm/components/SelectDate/SelectDateV2.d.ts.map +1 -0
  49. package/dist/esm/components/SelectDate/SelectDateV2.js +195 -0
  50. package/dist/esm/components/SelectDate/SelectDateV2.js.map +1 -0
  51. package/dist/esm/components/SelectDate/Styles.d.ts +1 -1
  52. package/dist/esm/components/SelectDate/index.d.ts +1 -0
  53. package/dist/esm/components/SelectDate/index.d.ts.map +1 -1
  54. package/dist/esm/components/SelectDate/index.js +1 -0
  55. package/dist/esm/components/SelectDate/index.js.map +1 -1
  56. package/dist/esm/components/Steppers/DateStepper/DateStepperV2.d.ts +45 -0
  57. package/dist/esm/components/Steppers/DateStepper/DateStepperV2.d.ts.map +1 -0
  58. package/dist/esm/components/Steppers/DateStepper/DateStepperV2.js +241 -0
  59. package/dist/esm/components/Steppers/DateStepper/DateStepperV2.js.map +1 -0
  60. package/dist/esm/components/Steppers/DateStepper/Styles.d.ts.map +1 -1
  61. package/dist/esm/components/Steppers/DateStepper/Styles.js +2 -3
  62. package/dist/esm/components/Steppers/DateStepper/Styles.js.map +1 -1
  63. package/dist/esm/components/Steppers/DateStepper/index.d.ts +1 -0
  64. package/dist/esm/components/Steppers/DateStepper/index.d.ts.map +1 -1
  65. package/dist/esm/components/Steppers/DateStepper/index.js +1 -0
  66. package/dist/esm/components/Steppers/DateStepper/index.js.map +1 -1
  67. package/dist/esm/custom.d.js.map +1 -1
  68. package/dist/index.js +7078 -5836
  69. package/dist/index.js.map +1 -1
  70. package/dist/index.min.js +1 -1
  71. package/dist/index.min.js.map +1 -1
  72. package/package.json +2 -1
@@ -0,0 +1,241 @@
1
+ import React, { useCallback, useMemo, useState, useEffect } from "react";
2
+ import classNames from "classnames";
3
+ import moment from "moment-timezone";
4
+ import { StyledButton, StyledButtonGroup, StyledDiv, StyledSpan, StyledControl } from "./Styles";
5
+ import { DatePickerV2 } from "../../DatePicker/DatePickerV2";
6
+ import { ArrowRightIcon } from "../../Icons";
7
+ import ArrowLeftIcon from "../../Icons/collection/ArrowLeft";
8
+ /**
9
+ * This component allow you to select date range. It accepts two parameters "from" and "to" as valid format
10
+ * onChange and onBack and onForward it will return "from: Date" and "to: Date" as function arguments
11
+ */
12
+
13
+ export const DateStepperV2 = _ref => {
14
+ let {
15
+ step,
16
+ formatCallback,
17
+ onChange,
18
+ from,
19
+ to,
20
+ onBack,
21
+ onForward,
22
+ minValue,
23
+ maxValue,
24
+ className,
25
+ period = "week",
26
+ withDatePicker = true,
27
+ defaultMonth = moment(),
28
+ enableYearPicker,
29
+ position = "bottom",
30
+ popperClassName
31
+ } = _ref;
32
+ const [fromDate, setFromDate] = useState(moment.utc(from));
33
+ const [toDate, setToDate] = useState(moment.utc(to));
34
+ const getDatesByPeriod = useCallback(interval => {
35
+ const date = fromDate ? fromDate : moment();
36
+ if (step === "daily") {
37
+ date.add(interval, "days");
38
+ return [date, date.clone()];
39
+ } else if (step === "weekly") {
40
+ date.add(interval, "weeks");
41
+ return [date.clone().startOf(period), date.clone().endOf(period)];
42
+ } else if (step === "monthly") {
43
+ date.add(interval, "months");
44
+ return [date.clone().startOf("month"), date.clone().endOf("month")];
45
+ } else if (step === "quarterly") {
46
+ date.add(interval, "quarters");
47
+ return [date.clone().startOf("quarter"), date.clone().endOf("quarter")];
48
+ } else if (step === "yearly") {
49
+ date.add(interval, "years");
50
+ return [date.clone().startOf("year"), date.clone().endOf("year")];
51
+ }
52
+ return [date, date];
53
+ }, [fromDate, period, step]);
54
+ const getDateFormatted = useMemo(() => {
55
+ if (formatCallback) {
56
+ return formatCallback(fromDate, toDate);
57
+ }
58
+ const actualYear = moment().year();
59
+ const showWeekOrCustomDateFormat = (start, end) => {
60
+ if (start.year() === actualYear && end.year() === actualYear) {
61
+ return start.utc().format("MMM DD") + " - " + end.utc().format("MMM DD");
62
+ } else {
63
+ return start.utc().format("MMM DD YYYY") + " - " + end.utc().format("MMM DD YYYY");
64
+ }
65
+ };
66
+ if (step === "daily") {
67
+ if (fromDate.year() === actualYear) {
68
+ return fromDate.utc().format("MMM DD");
69
+ }
70
+ return fromDate.utc().format("MMM DD YYYY");
71
+ } else if (step === "weekly") {
72
+ const startDate = fromDate.clone().utc().startOf(period);
73
+ const endDate = startDate.clone().utc().endOf(period);
74
+ return showWeekOrCustomDateFormat(startDate, endDate);
75
+ } else if (step === "monthly") {
76
+ return fromDate.utc().format("MMM YYYY");
77
+ } else if (step === "quarterly") {
78
+ return "Q" + fromDate.utc().quarter() + "/" + fromDate.utc().format("YYYY");
79
+ } else if (step === "yearly") {
80
+ return fromDate.utc().format("YYYY");
81
+ } else if (step === "range") {
82
+ return showWeekOrCustomDateFormat(fromDate, toDate);
83
+ }
84
+ return "";
85
+ }, [fromDate, toDate, step, formatCallback, period]);
86
+ const datePickerMode = useMemo(() => {
87
+ if (step === "range") return "custom";
88
+ if (step === "yearly") return "custom";
89
+ return step;
90
+ }, [step]);
91
+ const onDatePickerChange = useCallback(dates => {
92
+ const fromDateTemp = moment.utc(Number(dates == null ? void 0 : dates.from) * 1000);
93
+ const toDateTemp = moment.utc(Number(dates == null ? void 0 : dates.to) * 1000);
94
+ setFromDate(fromDateTemp);
95
+ setToDate(toDateTemp);
96
+ if (onChange && moment.isMoment(fromDateTemp) && moment.isMoment(toDateTemp)) {
97
+ onChange(fromDateTemp.toDate(), toDateTemp.toDate());
98
+ }
99
+ }, [onChange, setFromDate, setToDate]);
100
+ const isAfterMaxDate = useMemo(() => {
101
+ return moment.isMoment(maxValue) && moment(moment.utc(maxValue).format("YYYY-MM-DD")).isSameOrBefore(toDate.utc().format("YYYY-MM-DD"));
102
+ }, [maxValue, toDate]);
103
+ const isBeforeMinDate = useMemo(() => {
104
+ return moment.isMoment(minValue) && moment.utc(moment(minValue).format("YYYY-MM-DD")).isSameOrAfter(toDate.utc().format("YYYY-MM-DD"));
105
+ }, [minValue, toDate]);
106
+ useEffect(() => {
107
+ if (isBeforeMinDate) {
108
+ if (step === "daily") {
109
+ setFromDate(moment.utc(minValue));
110
+ setToDate(moment.utc(minValue));
111
+ }
112
+ }
113
+ if (isAfterMaxDate) {
114
+ if (step === "daily") {
115
+ setFromDate(moment.utc(maxValue));
116
+ setToDate(moment.utc(maxValue));
117
+ }
118
+ }
119
+ }, [step, minValue, maxValue, isBeforeMinDate, isAfterMaxDate]);
120
+ const onRightClickHandler = useCallback(() => {
121
+ if (isAfterMaxDate) {
122
+ return;
123
+ }
124
+ const [newFrom, newTo] = getDatesByPeriod(1);
125
+ setFromDate(moment.utc(newFrom));
126
+ setToDate(moment.utc(newTo));
127
+ if (onChange) {
128
+ onChange(moment.utc(newFrom), moment.utc(newTo));
129
+ }
130
+ if (onForward) {
131
+ onForward(moment.utc(newFrom).toDate(), moment.utc(newTo).toDate());
132
+ }
133
+ }, [isAfterMaxDate, getDatesByPeriod, onChange, onForward]);
134
+ const onLeftClickHandler = useCallback(() => {
135
+ if (isBeforeMinDate) {
136
+ return;
137
+ }
138
+ const [newFrom, newTo] = getDatesByPeriod(-1);
139
+ setFromDate(moment.utc(newFrom));
140
+ setToDate(moment.utc(newTo));
141
+ if (onChange) {
142
+ onChange(moment.utc(newFrom), moment.utc(newTo));
143
+ }
144
+ if (onBack) {
145
+ onBack(moment.utc(newFrom).toDate(), moment.utc(newTo).toDate());
146
+ }
147
+ }, [isBeforeMinDate, getDatesByPeriod, onChange, onBack]);
148
+ const renderLeftRightButtons = useMemo(() => {
149
+ return step !== "range";
150
+ }, [step]);
151
+ useEffect(() => {
152
+ setFromDate(moment.utc(from));
153
+ setToDate(moment.utc(to));
154
+ }, [from, to]);
155
+ const dateStepperWidth = (fromDay, toDay, range) => {
156
+ if (fromDay.utc().year() !== moment.utc().year() || toDay.utc().year() !== moment.utc().year()) {
157
+ switch (range) {
158
+ case "daily":
159
+ case "monthly":
160
+ return {
161
+ minWidth: "122px"
162
+ };
163
+ case "weekly":
164
+ case "custom":
165
+ return {
166
+ minWidth: "232px"
167
+ };
168
+ }
169
+ }
170
+ switch (range) {
171
+ case "monthly":
172
+ return {
173
+ minWidth: "122px"
174
+ };
175
+ case "weekly":
176
+ case "custom":
177
+ return {
178
+ minWidth: "182px"
179
+ };
180
+ }
181
+ return {
182
+ minWidth: "102px"
183
+ };
184
+ };
185
+ const isDisabled = useCallback(day => {
186
+ const dayFormat = moment.utc(day).format("YYYY-MM-DD");
187
+ const isBefore = moment.isMoment(maxValue) && moment(moment.utc(maxValue).format("YYYY-MM-DD")).isBefore(dayFormat);
188
+ const isAfter = moment.isMoment(minValue) && moment(moment.utc(minValue).format("YYYY-MM-DD")).isAfter(dayFormat);
189
+ return isBefore || isAfter;
190
+ }, [maxValue, minValue]);
191
+ const modifiers = useMemo(() => ({
192
+ disabled: day => ({
193
+ matched: isDisabled(day),
194
+ title: null
195
+ }),
196
+ nonWorkingDay: day => ({
197
+ matched: isDisabled(day),
198
+ title: null
199
+ })
200
+ }), [isDisabled]);
201
+ return /*#__PURE__*/React.createElement(StyledButtonGroup, {
202
+ className: classNames("c-date-stepper", className)
203
+ }, renderLeftRightButtons ? /*#__PURE__*/React.createElement(StyledControl, {
204
+ type: "button",
205
+ variant: "secondary",
206
+ onClick: onLeftClickHandler,
207
+ disabled: isBeforeMinDate
208
+ }, /*#__PURE__*/React.createElement(ArrowLeftIcon, null)) : null, /*#__PURE__*/React.createElement(StyledDiv, {
209
+ $isTargetable: step === "yearly" || !withDatePicker,
210
+ $isRounded: step === "range",
211
+ style: dateStepperWidth(fromDate, toDate, step)
212
+ }, withDatePicker && step !== "yearly" ? /*#__PURE__*/React.createElement(DatePickerV2, {
213
+ month: defaultMonth,
214
+ target: /*#__PURE__*/React.createElement(StyledButton, {
215
+ type: "button"
216
+ }, getDateFormatted),
217
+ mode: datePickerMode,
218
+ selected: {
219
+ from: moment.utc(fromDate).unix(),
220
+ to: moment.utc(toDate).unix()
221
+ },
222
+ onChange: onDatePickerChange,
223
+ firstDayOfWeek: period === "week" ? 0 : 1,
224
+ modifiers: modifiers,
225
+ disabledDaysAfter: maxValue,
226
+ disabledDaysBefore: minValue,
227
+ disableYearPicker: !enableYearPicker,
228
+ popperClassName: popperClassName,
229
+ position: position,
230
+ key: datePickerMode,
231
+ instant: true,
232
+ required: true
233
+ }) : /*#__PURE__*/React.createElement(StyledSpan, null, getDateFormatted)), renderLeftRightButtons ? /*#__PURE__*/React.createElement(StyledControl, {
234
+ type: "button",
235
+ variant: "secondary",
236
+ onClick: onRightClickHandler,
237
+ disabled: isAfterMaxDate
238
+ }, /*#__PURE__*/React.createElement(ArrowRightIcon, null)) : null);
239
+ };
240
+ DateStepperV2.displayName = "DateStepperV2";
241
+ //# sourceMappingURL=DateStepperV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateStepperV2.js","names":["React","useCallback","useMemo","useState","useEffect","classNames","moment","StyledButton","StyledButtonGroup","StyledDiv","StyledSpan","StyledControl","DatePickerV2","ArrowRightIcon","ArrowLeftIcon","DateStepperV2","_ref","step","formatCallback","onChange","from","to","onBack","onForward","minValue","maxValue","className","period","withDatePicker","defaultMonth","enableYearPicker","position","popperClassName","fromDate","setFromDate","utc","toDate","setToDate","getDatesByPeriod","interval","date","add","clone","startOf","endOf","getDateFormatted","actualYear","year","showWeekOrCustomDateFormat","start","end","format","startDate","endDate","quarter","datePickerMode","onDatePickerChange","dates","fromDateTemp","Number","toDateTemp","isMoment","isAfterMaxDate","isSameOrBefore","isBeforeMinDate","isSameOrAfter","onRightClickHandler","newFrom","newTo","onLeftClickHandler","renderLeftRightButtons","dateStepperWidth","fromDay","toDay","range","minWidth","isDisabled","day","dayFormat","isBefore","isAfter","modifiers","disabled","matched","title","nonWorkingDay","createElement","type","variant","onClick","$isTargetable","$isRounded","style","month","target","mode","selected","unix","firstDayOfWeek","disabledDaysAfter","disabledDaysBefore","disableYearPicker","key","instant","required","displayName"],"sources":["../../../../../src/components/Steppers/DateStepper/DateStepperV2.tsx"],"sourcesContent":["import React, { FC, useCallback, useMemo, useState, useEffect } from \"react\";\n\nimport { Placement } from \"@popperjs/core\";\nimport classNames from \"classnames\";\nimport { Moment } from \"moment\";\nimport moment from \"moment-timezone\";\n\nimport {\n StyledButton,\n StyledButtonGroup,\n StyledDiv,\n StyledSpan,\n StyledControl,\n} from \"./Styles\";\nimport {\n DatePickerV2,\n TimestampDateRange,\n} from \"../../DatePicker/DatePickerV2\";\nimport { ArrowRightIcon } from \"../../Icons\";\nimport ArrowLeftIcon from \"../../Icons/collection/ArrowLeft\";\n\nexport interface IDateStepperPropsV2 {\n /** One of the possible steps for this component */\n step: \"daily\" | \"weekly\" | \"monthly\" | \"quarterly\" | \"yearly\" | \"range\";\n /** Callback function that will be called after the changed range */\n onChange?: (from: Date, to: Date) => void;\n /** Start date of the range */\n from: Moment | string;\n /** End date of the range */\n to: Moment | string;\n /** Callback function that will format the text label */\n formatCallback?: (from: string | Moment, to: string | Moment) => string;\n /** Default month */\n defaultMonth?: Moment;\n /** Callback function onBack */\n onBack?: (from: Date, to: Date) => void;\n /** Callback function onForward */\n onForward?: (from: Date, to: Date) => void;\n /** Min date */\n minValue?: Moment;\n /** Max fate */\n maxValue?: Moment;\n /** html class */\n className?: string;\n /** Period for calculating week (isoWeek) */\n period?: \"week\" | \"isoWeek\";\n /** Classes for datePicker */\n datePickerClass?: string;\n /** Show datePicker in the middle button */\n withDatePicker?: boolean;\n /** Popper class name*/\n popperClassName?: string;\n /** DatePicker menu position */\n position?: Placement;\n /** Enable year picker in DatePicker */\n enableYearPicker?: boolean;\n}\n\n/**\n * This component allow you to select date range. It accepts two parameters \"from\" and \"to\" as valid format\n * onChange and onBack and onForward it will return \"from: Date\" and \"to: Date\" as function arguments\n */\n\nexport const DateStepperV2: FC<IDateStepperPropsV2> = ({\n step,\n formatCallback,\n onChange,\n from,\n to,\n onBack,\n onForward,\n minValue,\n maxValue,\n className,\n period = \"week\",\n withDatePicker = true,\n defaultMonth = moment(),\n enableYearPicker,\n position = \"bottom\",\n popperClassName,\n}) => {\n const [fromDate, setFromDate] = useState<Moment>(moment.utc(from));\n const [toDate, setToDate] = useState<Moment>(moment.utc(to));\n\n const getDatesByPeriod = useCallback(\n (interval: number): Moment[] => {\n const date = fromDate ? fromDate : moment();\n if (step === \"daily\") {\n date.add(interval, \"days\");\n return [date, date.clone()];\n } else if (step === \"weekly\") {\n date.add(interval, \"weeks\");\n return [date.clone().startOf(period), date.clone().endOf(period)];\n } else if (step === \"monthly\") {\n date.add(interval, \"months\");\n return [date.clone().startOf(\"month\"), date.clone().endOf(\"month\")];\n } else if (step === \"quarterly\") {\n date.add(interval, \"quarters\");\n return [date.clone().startOf(\"quarter\"), date.clone().endOf(\"quarter\")];\n } else if (step === \"yearly\") {\n date.add(interval, \"years\");\n return [date.clone().startOf(\"year\"), date.clone().endOf(\"year\")];\n }\n return [date, date];\n },\n [fromDate, period, step]\n );\n\n const getDateFormatted = useMemo(() => {\n if (formatCallback) {\n return formatCallback(fromDate, toDate);\n }\n\n const actualYear = moment().year();\n\n const showWeekOrCustomDateFormat = (start, end): string => {\n if (start.year() === actualYear && end.year() === actualYear) {\n return (\n start.utc().format(\"MMM DD\") + \" - \" + end.utc().format(\"MMM DD\")\n );\n } else {\n return (\n start.utc().format(\"MMM DD YYYY\") +\n \" - \" +\n end.utc().format(\"MMM DD YYYY\")\n );\n }\n };\n\n if (step === \"daily\") {\n if (fromDate.year() === actualYear) {\n return fromDate.utc().format(\"MMM DD\");\n }\n return fromDate.utc().format(\"MMM DD YYYY\");\n } else if (step === \"weekly\") {\n const startDate = fromDate.clone().utc().startOf(period);\n const endDate = startDate.clone().utc().endOf(period);\n return showWeekOrCustomDateFormat(startDate, endDate);\n } else if (step === \"monthly\") {\n return fromDate.utc().format(\"MMM YYYY\");\n } else if (step === \"quarterly\") {\n return `Q${fromDate.utc().quarter()}/${fromDate.utc().format(\"YYYY\")}`;\n } else if (step === \"yearly\") {\n return fromDate.utc().format(\"YYYY\");\n } else if (step === \"range\") {\n return showWeekOrCustomDateFormat(fromDate, toDate);\n }\n\n return \"\";\n }, [fromDate, toDate, step, formatCallback, period]);\n\n const datePickerMode = useMemo(() => {\n if (step === \"range\") return \"custom\";\n if (step === \"yearly\") return \"custom\";\n return step;\n }, [step]);\n\n const onDatePickerChange = useCallback(\n (dates?: TimestampDateRange) => {\n const fromDateTemp: Moment = moment.utc(Number(dates?.from) * 1000);\n const toDateTemp: Moment = moment.utc(Number(dates?.to) * 1000);\n\n setFromDate(fromDateTemp);\n setToDate(toDateTemp);\n\n if (\n onChange &&\n moment.isMoment(fromDateTemp) &&\n moment.isMoment(toDateTemp)\n ) {\n onChange(fromDateTemp.toDate(), toDateTemp.toDate());\n }\n },\n [onChange, setFromDate, setToDate]\n );\n\n const isAfterMaxDate = useMemo(() => {\n return (\n moment.isMoment(maxValue) &&\n moment(moment.utc(maxValue).format(\"YYYY-MM-DD\")).isSameOrBefore(\n toDate.utc().format(\"YYYY-MM-DD\")\n )\n );\n }, [maxValue, toDate]);\n\n const isBeforeMinDate = useMemo(() => {\n return (\n moment.isMoment(minValue) &&\n moment\n .utc(moment(minValue).format(\"YYYY-MM-DD\"))\n .isSameOrAfter(toDate.utc().format(\"YYYY-MM-DD\"))\n );\n }, [minValue, toDate]);\n\n useEffect(() => {\n if (isBeforeMinDate) {\n if (step === \"daily\") {\n setFromDate(moment.utc(minValue));\n setToDate(moment.utc(minValue));\n }\n }\n if (isAfterMaxDate) {\n if (step === \"daily\") {\n setFromDate(moment.utc(maxValue));\n setToDate(moment.utc(maxValue));\n }\n }\n }, [step, minValue, maxValue, isBeforeMinDate, isAfterMaxDate]);\n\n const onRightClickHandler = useCallback(() => {\n if (isAfterMaxDate) {\n return;\n }\n\n const [newFrom, newTo] = getDatesByPeriod(1);\n setFromDate(moment.utc(newFrom));\n setToDate(moment.utc(newTo));\n\n if (onChange) {\n onChange(moment.utc(newFrom), moment.utc(newTo));\n }\n\n if (onForward) {\n onForward(moment.utc(newFrom).toDate(), moment.utc(newTo).toDate());\n }\n }, [isAfterMaxDate, getDatesByPeriod, onChange, onForward]);\n\n const onLeftClickHandler = useCallback(() => {\n if (isBeforeMinDate) {\n return;\n }\n\n const [newFrom, newTo] = getDatesByPeriod(-1);\n setFromDate(moment.utc(newFrom));\n setToDate(moment.utc(newTo));\n\n if (onChange) {\n onChange(moment.utc(newFrom), moment.utc(newTo));\n }\n if (onBack) {\n onBack(moment.utc(newFrom).toDate(), moment.utc(newTo).toDate());\n }\n }, [isBeforeMinDate, getDatesByPeriod, onChange, onBack]);\n\n const renderLeftRightButtons = useMemo(() => {\n return step !== \"range\";\n }, [step]);\n\n useEffect(() => {\n setFromDate(moment.utc(from));\n setToDate(moment.utc(to));\n }, [from, to]);\n\n const dateStepperWidth = (\n fromDay: Moment,\n toDay: Moment,\n range: string\n ): { minWidth: string } => {\n if (\n fromDay.utc().year() !== moment.utc().year() ||\n toDay.utc().year() !== moment.utc().year()\n ) {\n switch (range) {\n case \"daily\":\n case \"monthly\":\n return { minWidth: \"122px\" };\n case \"weekly\":\n case \"custom\":\n return { minWidth: \"232px\" };\n }\n }\n switch (range) {\n case \"monthly\":\n return { minWidth: \"122px\" };\n case \"weekly\":\n case \"custom\":\n return { minWidth: \"182px\" };\n }\n\n return { minWidth: \"102px\" };\n };\n const isDisabled = useCallback(\n (day: Date): boolean => {\n const dayFormat = moment.utc(day).format(\"YYYY-MM-DD\");\n\n const isBefore =\n moment.isMoment(maxValue) &&\n moment(moment.utc(maxValue).format(\"YYYY-MM-DD\")).isBefore(dayFormat);\n const isAfter =\n moment.isMoment(minValue) &&\n moment(moment.utc(minValue).format(\"YYYY-MM-DD\")).isAfter(dayFormat);\n\n return isBefore || isAfter;\n },\n [maxValue, minValue]\n );\n\n const modifiers = useMemo(\n () => ({\n disabled: (day: Date) => ({ matched: isDisabled(day), title: null }),\n nonWorkingDay: (day: Date) => ({ matched: isDisabled(day), title: null }),\n }),\n [isDisabled]\n );\n\n return (\n <StyledButtonGroup className={classNames(\"c-date-stepper\", className)}>\n {renderLeftRightButtons ? (\n <StyledControl\n type=\"button\"\n variant=\"secondary\"\n onClick={onLeftClickHandler}\n disabled={isBeforeMinDate}\n >\n <ArrowLeftIcon />\n </StyledControl>\n ) : null}\n <StyledDiv\n $isTargetable={step === \"yearly\" || !withDatePicker}\n $isRounded={step === \"range\"}\n style={dateStepperWidth(fromDate, toDate, step)}\n >\n {withDatePicker && step !== \"yearly\" ? (\n <DatePickerV2\n month={defaultMonth}\n target={\n <StyledButton type=\"button\">{getDateFormatted}</StyledButton>\n }\n mode={datePickerMode}\n selected={{\n from: moment.utc(fromDate).unix(),\n to: moment.utc(toDate).unix(),\n }}\n onChange={onDatePickerChange}\n firstDayOfWeek={period === \"week\" ? 0 : 1}\n modifiers={modifiers}\n disabledDaysAfter={maxValue}\n disabledDaysBefore={minValue}\n disableYearPicker={!enableYearPicker}\n popperClassName={popperClassName}\n position={position}\n key={datePickerMode}\n instant\n required\n />\n ) : (\n <StyledSpan>{getDateFormatted}</StyledSpan>\n )}\n </StyledDiv>\n {renderLeftRightButtons ? (\n <StyledControl\n type=\"button\"\n variant=\"secondary\"\n onClick={onRightClickHandler}\n disabled={isAfterMaxDate}\n >\n <ArrowRightIcon />\n </StyledControl>\n ) : null}\n </StyledButtonGroup>\n );\n};\n\nDateStepperV2.displayName = \"DateStepperV2\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAAQC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAG5E,OAAOC,UAAU,MAAM,YAAY;AAEnC,OAAOC,MAAM,MAAM,iBAAiB;AAEpC,SACEC,YAAY,EACZC,iBAAiB,EACjBC,SAAS,EACTC,UAAU,EACVC,aAAa,QACR,UAAU;AACjB,SACEC,YAAY,QAEP,+BAA+B;AACtC,SAASC,cAAc,QAAQ,aAAa;AAC5C,OAAOC,aAAa,MAAM,kCAAkC;AAuC5D;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,aAAsC,GAAGC,IAAA,IAiBhD;EAAA,IAjBiD;IACrDC,IAAI;IACJC,cAAc;IACdC,QAAQ;IACRC,IAAI;IACJC,EAAE;IACFC,MAAM;IACNC,SAAS;IACTC,QAAQ;IACRC,QAAQ;IACRC,SAAS;IACTC,MAAM,GAAG,MAAM;IACfC,cAAc,GAAG,IAAI;IACrBC,YAAY,GAAGvB,MAAM,CAAC,CAAC;IACvBwB,gBAAgB;IAChBC,QAAQ,GAAG,QAAQ;IACnBC;EACF,CAAC,GAAAhB,IAAA;EACC,MAAM,CAACiB,QAAQ,EAAEC,WAAW,CAAC,GAAG/B,QAAQ,CAASG,MAAM,CAAC6B,GAAG,CAACf,IAAI,CAAC,CAAC;EAClE,MAAM,CAACgB,MAAM,EAAEC,SAAS,CAAC,GAAGlC,QAAQ,CAASG,MAAM,CAAC6B,GAAG,CAACd,EAAE,CAAC,CAAC;EAE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AOtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wQAQ7B,CAAC;AAEF,eAAO,MAAM,UAAU,qEAGtB,CAAC;AAEF,UAAU,SAAS;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,2EAwErB,CAAC;AAEF,eAAO,MAAM,aAAa;;sEAEzB,CAAC"}
1
+ {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steppers/DateStepper/Styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY,uEAmDxB,CAAC;AAEF,eAAO,MAAM,UAAU,6GAOtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wQAQ7B,CAAC;AAEF,eAAO,MAAM,UAAU,qEAGtB,CAAC;AAEF,UAAU,SAAS;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,2EAwErB,CAAC;AAEF,eAAO,MAAM,aAAa;;sEAEzB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { BoxSizingStyle } from "../../BoxSizingStyle";
3
- import { screen } from "../../BreakPoints";
4
3
  import { ButtonGroup } from "../../ButtonGroup";
5
4
  import { FontStyle } from "../../FontStyle";
6
5
  import { IconButton } from "../../IconButton";
@@ -45,7 +44,7 @@ export const StyledSpan = styled.span.withConfig({
45
44
  export const StyledDiv = styled.div.withConfig({
46
45
  displayName: "Styles__StyledDiv",
47
46
  componentId: "sc-1v8h7mt-4"
48
- })(["", " ", " ", " height:32px;transition:all 0.3s ease;background-color:transparent;border:solid 1px var(--color-theme-700);color:var(--color-theme-700);margin-right:-1px;display:none;", "{display:block;}svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}&:hover{border-color:var(--color-primary);color:var(--color-primary);text-decoration:none;}&:active{border-color:var(--color-primary);color:var(--color-primary);background-color:var(--color-primary-200);}"], props => props.$isTargetable && css(["", ""], {
47
+ })(["", " ", " ", " height:32px;transition:all 0.3s ease;background-color:transparent;border:solid 1px var(--color-theme-700);color:var(--color-theme-700);margin-right:-1px;display:block;@media (max-width:768px){display:none;}svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}&:hover{border-color:var(--color-primary);color:var(--color-primary);text-decoration:none;}&:active{border-color:var(--color-primary);color:var(--color-primary);background-color:var(--color-primary-200);}"], props => props.$isTargetable && css(["", ""], {
49
48
  "pointerEvents": "none"
50
49
  }), props => props.$isRounded && css(["border-radius:var(--ac-br-rounded);"]), {
51
50
  "position": "relative",
@@ -64,7 +63,7 @@ export const StyledDiv = styled.div.withConfig({
64
63
  "textDecorationLine": "none",
65
64
  "WebkitFontSmoothing": "antialiased",
66
65
  "MozOsxFontSmoothing": "grayscale"
67
- }, screen.md);
66
+ });
68
67
  export const StyledControl = styled(IconButton).withConfig({
69
68
  displayName: "Styles__StyledControl",
70
69
  componentId: "sc-1v8h7mt-5"
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","screen","ButtonGroup","FontStyle","IconButton","Menu","StyledButton","button","withConfig","displayName","componentId","StyledMenu","StyledButtonGroup","StyledSpan","span","StyledDiv","div","props","$isTargetable","$isRounded","md","StyledControl"],"sources":["../../../../../src/components/Steppers/DateStepper/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\n\nimport { BoxSizingStyle } from \"../../BoxSizingStyle\";\nimport { screen } from \"../../BreakPoints\";\nimport { ButtonGroup } from \"../../ButtonGroup\";\nimport { FontStyle } from \"../../FontStyle\";\nimport { IconButton } from \"../../IconButton\";\nimport { Menu } from \"../../Menu\";\n\nexport const StyledButton = styled.button`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`\n tw-relative\n tw-antialiased\n tw-align-middle\n tw-font-medium\n tw-inline-block\n tw-leading-none\n tw-m-0\n tw-no-underline\n tw-text-sm\n tw-select-none\n tw-cursor-pointer\n tw-text-center\n `}\n\n color: var(--color-theme-700);\n margin: 0;\n padding: 0;\n background: none;\n width: 100%;\n height: auto;\n border: none;\n height: 30px;\n line-height: 1;\n transition: all 0.3s ease;\n\n svg {\n fill: currentColor;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:disabled {\n cursor: default;\n opacity: 50%;\n pointer-events: none;\n }\n`;\n\nexport const StyledMenu = styled(Menu)`\n ${tw`\n tw-w-auto\n tw-h-auto\n tw-py-4\n tw-px-2\n `}\n`;\n\nexport const StyledButtonGroup = styled(ButtonGroup)`\n ${FontStyle}\n ${BoxSizingStyle}\n\n button:hover {\n position: relative;\n z-index: 1;\n }\n`;\n\nexport const StyledSpan = styled.span`\n line-height: 30px;\n color: var(--color-theme-700);\n`;\n\ninterface StyledDiv {\n $isTargetable: boolean;\n $isRounded: boolean;\n}\n\nexport const StyledDiv = styled.div<StyledDiv>`\n ${(props) =>\n props.$isTargetable &&\n css`\n ${tw`tw-pointer-events-none`}\n `}\n\n ${(props) =>\n props.$isRounded &&\n css`\n border-radius: var(--ac-br-rounded);\n `}\n\n ${tw`\n tw-relative\n tw-text-center\n tw-p-0\n tw-antialiased\n tw-align-middle\n tw-font-medium\n tw-inline-block\n tw-leading-none\n tw-m-0\n tw-no-underline\n tw-text-sm\n tw-select-none\n tw-cursor-pointer\n tw-border\n tw-border-solid\n `}\n\n height: 32px;\n transition: all 0.3s ease;\n background-color: transparent;\n border: solid 1px var(--color-theme-700);\n color: var(--color-theme-700);\n margin-right: -1px;\n display: none;\n\n ${screen.md} {\n display: block;\n }\n\n svg {\n fill: currentColor;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &:disabled {\n cursor: default;\n opacity: 50%;\n pointer-events: none;\n }\n\n &:hover {\n border-color: var(--color-primary);\n color: var(--color-primary);\n text-decoration: none;\n }\n\n &:active {\n border-color: var(--color-primary);\n color: var(--color-primary);\n background-color: var(--color-primary-200);\n }\n`;\n\nexport const StyledControl = styled(IconButton)`\n border-radius: var(--ac-br-8);\n`;\n\nStyledButtonGroup.displayName = \"StyledButtonGroup\";\nStyledSpan.displayName = \"StyledSpan\";\nStyledDiv.displayName = \"StyledDiv\";\nStyledMenu.displayName = \"StyledMenu\";\nStyledButton.displayName = \"StyledButton\";\nStyledControl.displayName = \"StyledControl\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,IAAI,QAAQ,YAAY;AAEjC,OAAO,MAAMC,YAAY,GAAGR,MAAM,CAACS,MAAM,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kVACrCP,SAAS,EACTH,cAAc,EAEZ;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAaJ,CAAC,CAkCF;AAED,OAAO,MAAMW,UAAU,GAAGb,MAAM,CAACO,IAAI,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAChC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAKJ,CAAC,CACF;AAED,OAAO,MAAME,iBAAiB,GAAGd,MAAM,CAACI,WAAW,CAAC,CAAAM,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6DAChDP,SAAS,EACTH,cAAc,CAMjB;AAED,OAAO,MAAMa,UAAU,GAAGf,MAAM,CAACgB,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sDAGpC;AAOD,OAAO,MAAMK,SAAS,GAAGjB,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oiBAC9BO,KAAK,IACNA,KAAK,CAACC,aAAa,IACnBnB,GAAG,WACG;EAAA;AAAuB,CAAC,CAC7B,EAEAkB,KAAK,IACNA,KAAK,CAACE,UAAU,IAChBpB,GAAG,yCAEF,EAEC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAgBJ,CAAC,EAUCE,MAAM,CAACmB,EAAE,CAiCZ;AAED,OAAO,MAAMC,aAAa,GAAGvB,MAAM,CAACM,UAAU,CAAC,CAAAI,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qCAE9C;AAEDE,iBAAiB,CAACH,WAAW,GAAG,mBAAmB;AACnDI,UAAU,CAACJ,WAAW,GAAG,YAAY;AACrCM,SAAS,CAACN,WAAW,GAAG,WAAW;AACnCE,UAAU,CAACF,WAAW,GAAG,YAAY;AACrCH,YAAY,CAACG,WAAW,GAAG,cAAc;AACzCY,aAAa,CAACZ,WAAW,GAAG,eAAe"}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","ButtonGroup","FontStyle","IconButton","Menu","StyledButton","button","withConfig","displayName","componentId","StyledMenu","StyledButtonGroup","StyledSpan","span","StyledDiv","div","props","$isTargetable","$isRounded","StyledControl"],"sources":["../../../../../src/components/Steppers/DateStepper/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\n\nimport { BoxSizingStyle } from \"../../BoxSizingStyle\";\nimport { ButtonGroup } from \"../../ButtonGroup\";\nimport { FontStyle } from \"../../FontStyle\";\nimport { IconButton } from \"../../IconButton\";\nimport { Menu } from \"../../Menu\";\n\nexport const StyledButton = styled.button`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`\n tw-relative\n tw-antialiased\n tw-align-middle\n tw-font-medium\n tw-inline-block\n tw-leading-none\n tw-m-0\n tw-no-underline\n tw-text-sm\n tw-select-none\n tw-cursor-pointer\n tw-text-center\n `}\n\n color: var(--color-theme-700);\n margin: 0;\n padding: 0;\n background: none;\n width: 100%;\n height: auto;\n border: none;\n height: 30px;\n line-height: 1;\n transition: all 0.3s ease;\n\n svg {\n fill: currentColor;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:disabled {\n cursor: default;\n opacity: 50%;\n pointer-events: none;\n }\n`;\n\nexport const StyledMenu = styled(Menu)`\n ${tw`\n tw-w-auto\n tw-h-auto\n tw-py-4\n tw-px-2\n `}\n`;\n\nexport const StyledButtonGroup = styled(ButtonGroup)`\n ${FontStyle}\n ${BoxSizingStyle}\n\n button:hover {\n position: relative;\n z-index: 1;\n }\n`;\n\nexport const StyledSpan = styled.span`\n line-height: 30px;\n color: var(--color-theme-700);\n`;\n\ninterface StyledDiv {\n $isTargetable: boolean;\n $isRounded: boolean;\n}\n\nexport const StyledDiv = styled.div<StyledDiv>`\n ${(props) =>\n props.$isTargetable &&\n css`\n ${tw`tw-pointer-events-none`}\n `}\n\n ${(props) =>\n props.$isRounded &&\n css`\n border-radius: var(--ac-br-rounded);\n `}\n\n ${tw`\n tw-relative\n tw-text-center\n tw-p-0\n tw-antialiased\n tw-align-middle\n tw-font-medium\n tw-inline-block\n tw-leading-none\n tw-m-0\n tw-no-underline\n tw-text-sm\n tw-select-none\n tw-cursor-pointer\n tw-border\n tw-border-solid\n `}\n\n height: 32px;\n transition: all 0.3s ease;\n background-color: transparent;\n border: solid 1px var(--color-theme-700);\n color: var(--color-theme-700);\n margin-right: -1px;\n display: block;\n\n @media (max-width: 768px) {\n display: none;\n }\n\n svg {\n fill: currentColor;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &:disabled {\n cursor: default;\n opacity: 50%;\n pointer-events: none;\n }\n\n &:hover {\n border-color: var(--color-primary);\n color: var(--color-primary);\n text-decoration: none;\n }\n\n &:active {\n border-color: var(--color-primary);\n color: var(--color-primary);\n background-color: var(--color-primary-200);\n }\n`;\n\nexport const StyledControl = styled(IconButton)`\n border-radius: var(--ac-br-8);\n`;\n\nStyledButtonGroup.displayName = \"StyledButtonGroup\";\nStyledSpan.displayName = \"StyledSpan\";\nStyledDiv.displayName = \"StyledDiv\";\nStyledMenu.displayName = \"StyledMenu\";\nStyledButton.displayName = \"StyledButton\";\nStyledControl.displayName = \"StyledControl\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,IAAI,QAAQ,YAAY;AAEjC,OAAO,MAAMC,YAAY,GAAGP,MAAM,CAACQ,MAAM,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kVACrCP,SAAS,EACTF,cAAc,EAEZ;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAaJ,CAAC,CAkCF;AAED,OAAO,MAAMU,UAAU,GAAGZ,MAAM,CAACM,IAAI,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAChC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAKJ,CAAC,CACF;AAED,OAAO,MAAME,iBAAiB,GAAGb,MAAM,CAACG,WAAW,CAAC,CAAAM,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6DAChDP,SAAS,EACTF,cAAc,CAMjB;AAED,OAAO,MAAMY,UAAU,GAAGd,MAAM,CAACe,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sDAGpC;AAOD,OAAO,MAAMK,SAAS,GAAGhB,MAAM,CAACiB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wjBAC9BO,KAAK,IACNA,KAAK,CAACC,aAAa,IACnBlB,GAAG,WACG;EAAA;AAAuB,CAAC,CAC7B,EAEAiB,KAAK,IACNA,KAAK,CAACE,UAAU,IAChBnB,GAAG,yCAEF,EAEC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAgBJ,CAAC,CA2CF;AAED,OAAO,MAAMoB,aAAa,GAAGrB,MAAM,CAACK,UAAU,CAAC,CAAAI,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qCAE9C;AAEDE,iBAAiB,CAACH,WAAW,GAAG,mBAAmB;AACnDI,UAAU,CAACJ,WAAW,GAAG,YAAY;AACrCM,SAAS,CAACN,WAAW,GAAG,WAAW;AACnCE,UAAU,CAACF,WAAW,GAAG,YAAY;AACrCH,YAAY,CAACG,WAAW,GAAG,cAAc;AACzCW,aAAa,CAACX,WAAW,GAAG,eAAe"}
@@ -1,2 +1,3 @@
1
1
  export * from "./DateStepper";
2
+ export * from "./DateStepperV2";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steppers/DateStepper/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steppers/DateStepper/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./DateStepper";
2
+ export * from "./DateStepperV2";
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Steppers/DateStepper/index.ts"],"sourcesContent":["export * from \"./DateStepper\";\n"],"mappings":"AAAA,cAAc,eAAe"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Steppers/DateStepper/index.ts"],"sourcesContent":["export * from \"./DateStepper\";\nexport * from \"./DateStepperV2\";\n"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"custom.d.js","names":[],"sources":["../../src/custom.d.ts"],"sourcesContent":["// https://webpack.js.org/guides/typescript/#importing-other-assets\n\ndeclare module \"*.svg\" {\n const content: unknown;\n export default content;\n}\n\ndeclare module \"*.png\" {\n const content: string;\n export default content;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"custom.d.js","names":[],"sources":["../../src/custom.d.ts"],"sourcesContent":["// https://webpack.js.org/guides/typescript/#importing-other-assets\n\ndeclare module \"*.svg\" {\n const content: unknown;\n export default content;\n}\n\ndeclare module \"*.png\" {\n const content: string;\n export default content;\n}\n\ndeclare module \"moment-timezone\" {\n import moment from \"moment-timezone\";\n export = moment;\n}\n"],"mappings":""}