@astral/ui 4.0.0-alpha.37 → 4.0.0-alpha.39

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/README.md CHANGED
@@ -211,13 +211,13 @@ Breaking changes:
211
211
  - Удалены пропсы, которые являлись css правилами (margin, border, mr...)
212
212
  - Prop ```color``` принимает только ```string```. Удалена возможность использовать для color функцию
213
213
 
214
- Актуальные props находятся [здесь](https://main--61baeff6f06230003a88ef8a.chromatic.com/?path=/docs/components-typography--showcase).
214
+ Актуальные props находятся [здесь](https://main--61baeff6f06230003a88ef8a.chromatic.com/?path=/docs/typography-typography--docs).
215
215
 
216
216
  ### Grid
217
217
 
218
218
  Grid из @astral/ui v2 был переименован в LegacyGrid, в четвертой версии @astral/ui данный компонент будет удален.
219
219
 
220
- Сигнатуру нового Grid вы можете увидеть в [storybook](https://main--61baeff6f06230003a88ef8a.chromatic.com/?path=/story/components-grid--default).
220
+ Сигнатуру нового Grid вы можете увидеть в [storybook](https://main--61baeff6f06230003a88ef8a.chromatic.com/?path=/docs/layouts-grid--docs).
221
221
 
222
222
  ### Form
223
223
 
@@ -1,4 +1,4 @@
1
- import { addDays, isDate } from '@astral/utils';
1
+ import { isDate } from '@astral/utils';
2
2
  import { DAYS_IN_WEEK } from '../../../constants';
3
3
  import { buildIsoDate } from '../buildIsoDate';
4
4
  import { checkIsDateInRange } from '../checkIsDateInRange';
@@ -33,7 +33,8 @@ export const buildDaysCalendarGrid = ({ minDate, maxDate, selectedDate, selected
33
33
  return Array.from({ length: DAYS_CALENDAR_ITEMS_COUNT }).map((_, index) => {
34
34
  var _a, _b;
35
35
  // текущая дата в счетчике
36
- const date = addDays(startDate, index - startWeekDay + firstWeekDayGap);
36
+ const date = new Date(startDate);
37
+ date.setUTCDate(startDate.getUTCDate() + index - startWeekDay + firstWeekDayGap);
37
38
  /**
38
39
  * нормализованный номер месяца
39
40
  */
@@ -36,7 +36,8 @@ const buildDaysCalendarGrid = ({ minDate, maxDate, selectedDate, selectedRanges,
36
36
  return Array.from({ length: exports.DAYS_CALENDAR_ITEMS_COUNT }).map((_, index) => {
37
37
  var _a, _b;
38
38
  // текущая дата в счетчике
39
- const date = (0, utils_1.addDays)(startDate, index - startWeekDay + firstWeekDayGap);
39
+ const date = new Date(startDate);
40
+ date.setUTCDate(startDate.getUTCDate() + index - startWeekDay + firstWeekDayGap);
40
41
  /**
41
42
  * нормализованный номер месяца
42
43
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.0.0-alpha.37",
3
+ "version": "4.0.0-alpha.39",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {