@salutejs/plasma-new-hope 0.80.0-dev.0 → 0.81.0-canary.1203.9092095304.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  4. package/cjs/components/Calendar/hooks/useDays.js +6 -3
  5. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  6. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  7. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  8. package/es/components/Calendar/Calendar.types.js.map +1 -1
  9. package/es/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  10. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  11. package/es/components/Calendar/hooks/useDays.js +6 -3
  12. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  13. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  14. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  15. package/package.json +2 -2
  16. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  17. package/styled-components/cjs/components/Calendar/hooks/useDays.js +6 -3
  18. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  19. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +18 -6
  20. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +18 -6
  21. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +18 -6
  22. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  23. package/styled-components/es/components/Calendar/hooks/useDays.js +6 -3
  24. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  25. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +18 -6
  26. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +18 -6
  27. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +18 -6
  28. package/types/components/Calendar/Calendar.types.d.ts +4 -0
  29. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  30. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  31. package/types/components/Calendar/hooks/useDays.d.ts +1 -1
  32. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  33. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  34. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts +1 -0
  35. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts.map +1 -1
@@ -2,5 +2,5 @@ import type { CalendarValueType, DateItem, DateObject, DisabledDay, EventDay } f
2
2
  /**
3
3
  * Хук для получения списка дней.
4
4
  */
5
- export declare const useDays: (date: DateObject, value: CalendarValueType, eventList?: EventDay[] | undefined, disabledList?: DisabledDay[] | undefined, min?: Date | undefined, max?: Date | undefined) => readonly [DateItem[][], number[] | undefined];
5
+ export declare const useDays: (date: DateObject, value: CalendarValueType, eventList?: EventDay[] | undefined, disabledList?: DisabledDay[] | undefined, min?: Date | undefined, max?: Date | undefined, includeEdgeDates?: boolean | undefined) => readonly [DateItem[][], number[] | undefined];
6
6
  //# sourceMappingURL=useDays.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDays.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useDays.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAqOxG;;GAEG;AACH,eAAO,MAAM,OAAO,SACV,UAAU,SACT,iBAAiB,gLAuB4B,CAAC"}
1
+ {"version":3,"file":"useDays.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useDays.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAwOxG;;GAEG;AACH,eAAO,MAAM,OAAO,SACV,UAAU,SACT,iBAAiB,wNAwB4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAiB9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA6JpD,CAAC"}
1
+ {"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAiB9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8JpD,CAAC"}
@@ -5,6 +5,7 @@ export interface CalendarDaysProps extends HTMLAttributes<HTMLDivElement> {
5
5
  value: CalendarValueType;
6
6
  min?: Date;
7
7
  max?: Date;
8
+ includeEdgeDates?: boolean;
8
9
  eventList?: EventDay[];
9
10
  disabledList?: DisabledDay[];
10
11
  isDouble?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarDays.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,iBAA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