@coopdigital/react 0.55.0 → 0.56.0

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 (274) hide show
  1. package/README.md +2 -2
  2. package/dist/components/Button/Button.js +2 -2
  3. package/dist/components/Card/Card.js +4 -4
  4. package/dist/components/DatePicker/DatePicker.js +1 -1
  5. package/dist/components/DatePicker/datepicker-utils.js +1 -5
  6. package/dist/components/Field/Field.d.ts +7 -24
  7. package/dist/components/Field/Field.js +11 -18
  8. package/dist/components/Field/index.js +0 -1
  9. package/dist/components/Fieldset/Fieldset.d.ts +12 -17
  10. package/dist/components/Fieldset/Fieldset.js +6 -8
  11. package/dist/components/Pill/Pill.js +2 -2
  12. package/dist/components/Popover/Popover.js +6 -6
  13. package/dist/components/Searchbox/Searchbox.js +4 -4
  14. package/dist/components/Signpost/Signpost.js +2 -2
  15. package/dist/components/Tag/Tag.js +2 -2
  16. package/dist/components/Textarea/Textarea.js +2 -0
  17. package/dist/hooks/useSlots.js +3 -3
  18. package/dist/index.js +2 -2
  19. package/package.json +11 -11
  20. package/src/components/Field/Field.tsx +5 -29
  21. package/src/components/Fieldset/Fieldset.tsx +6 -8
  22. package/src/components/Textarea/Textarea.tsx +2 -0
  23. package/dist/node_modules/@date-fns/tz/date/index.js +0 -83
  24. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -235
  25. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -39
  26. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -44
  27. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -814
  28. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -751
  29. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -350
  30. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
  31. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  32. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
  33. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
  34. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
  35. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -63
  36. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -213
  37. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -31
  38. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -209
  39. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
  40. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -303
  41. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -285
  42. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
  43. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -132
  44. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
  45. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -89
  46. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
  47. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
  48. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
  49. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  50. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -40
  51. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  52. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  53. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  54. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -775
  55. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -94
  56. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -66
  57. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -31
  58. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  59. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  60. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -25
  61. package/dist/node_modules/date-fns/addDays.js +0 -41
  62. package/dist/node_modules/date-fns/addMonths.js +0 -75
  63. package/dist/node_modules/date-fns/addWeeks.js +0 -33
  64. package/dist/node_modules/date-fns/addYears.js +0 -33
  65. package/dist/node_modules/date-fns/constants.js +0 -67
  66. package/dist/node_modules/date-fns/constructFrom.js +0 -49
  67. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -62
  68. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -42
  69. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -65
  70. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -65
  71. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -35
  72. package/dist/node_modules/date-fns/endOfMonth.js +0 -37
  73. package/dist/node_modules/date-fns/endOfWeek.js +0 -53
  74. package/dist/node_modules/date-fns/endOfYear.js +0 -37
  75. package/dist/node_modules/date-fns/format.js +0 -423
  76. package/dist/node_modules/date-fns/getDayOfYear.js +0 -34
  77. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -36
  78. package/dist/node_modules/date-fns/getDefaultOptions.js +0 -31
  79. package/dist/node_modules/date-fns/getISODay.js +0 -33
  80. package/dist/node_modules/date-fns/getISOWeek.js +0 -40
  81. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -52
  82. package/dist/node_modules/date-fns/getMonth.js +0 -29
  83. package/dist/node_modules/date-fns/getWeek.js +0 -54
  84. package/dist/node_modules/date-fns/getWeekYear.js +0 -75
  85. package/dist/node_modules/date-fns/getYear.js +0 -29
  86. package/dist/node_modules/date-fns/isAfter.js +0 -25
  87. package/dist/node_modules/date-fns/isBefore.js +0 -25
  88. package/dist/node_modules/date-fns/isDate.js +0 -41
  89. package/dist/node_modules/date-fns/isSameDay.js +0 -46
  90. package/dist/node_modules/date-fns/isSameMonth.js +0 -43
  91. package/dist/node_modules/date-fns/isSameYear.js +0 -35
  92. package/dist/node_modules/date-fns/isValid.js +0 -39
  93. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  94. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -64
  95. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -59
  96. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -22
  97. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -103
  98. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -41
  99. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -13
  100. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -189
  101. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -134
  102. package/dist/node_modules/date-fns/locale/en-US.js +0 -28
  103. package/dist/node_modules/date-fns/max.js +0 -49
  104. package/dist/node_modules/date-fns/min.js +0 -49
  105. package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -27
  106. package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -59
  107. package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -33
  108. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
  109. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -55
  110. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -59
  111. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -57
  112. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -64
  113. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -56
  114. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -41
  115. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -24
  116. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -21
  117. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -36
  118. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -31
  119. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -32
  120. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -38
  121. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -118
  122. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -47
  123. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -47
  124. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -48
  125. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -44
  126. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -96
  127. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -47
  128. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -76
  129. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -31
  130. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -86
  131. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -83
  132. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -31
  133. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -97
  134. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -86
  135. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -83
  136. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -19
  137. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -19
  138. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -62
  139. package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -110
  140. package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -135
  141. package/dist/node_modules/date-fns/parse.js +0 -497
  142. package/dist/node_modules/date-fns/setDay.js +0 -59
  143. package/dist/node_modules/date-fns/setISODay.js +0 -40
  144. package/dist/node_modules/date-fns/setISOWeek.js +0 -39
  145. package/dist/node_modules/date-fns/setMonth.js +0 -46
  146. package/dist/node_modules/date-fns/setWeek.js +0 -53
  147. package/dist/node_modules/date-fns/setYear.js +0 -40
  148. package/dist/node_modules/date-fns/startOfDay.js +0 -35
  149. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -35
  150. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -42
  151. package/dist/node_modules/date-fns/startOfMonth.js +0 -37
  152. package/dist/node_modules/date-fns/startOfWeek.js +0 -53
  153. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -64
  154. package/dist/node_modules/date-fns/startOfYear.js +0 -36
  155. package/dist/node_modules/date-fns/toDate.js +0 -46
  156. package/dist/node_modules/date-fns/transpose.js +0 -52
  157. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
  158. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -320
  159. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -122
  160. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -33
  161. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -14
  162. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -13
  163. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -604
  164. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -13
  165. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -13
  166. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -20
  167. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -18
  168. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -19
  169. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
  170. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -13
  171. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -13
  172. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -15
  173. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -14
  174. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -13
  175. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -13
  176. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -15
  177. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -31
  178. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -15
  179. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -13
  180. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -15
  181. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -14
  182. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -13
  183. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -14
  184. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -14
  185. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -13
  186. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -13
  187. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -14
  188. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -13
  189. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -15
  190. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  191. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -26
  192. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -19
  193. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -18
  194. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -21
  195. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -13
  196. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -19
  197. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -23
  198. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -7
  199. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -73
  200. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -95
  201. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -22
  202. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -28
  203. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -33
  204. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -20
  205. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -27
  206. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -59
  207. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -19
  208. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -33
  209. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -24
  210. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -46
  211. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -24
  212. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -27
  213. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -53
  214. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -33
  215. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -69
  216. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -51
  217. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -40
  218. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -36
  219. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -37
  220. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -27
  221. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -26
  222. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -14
  223. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -36
  224. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -27
  225. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -31
  226. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -11
  227. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -32
  228. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -25
  229. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -22
  230. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -14
  231. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -13
  232. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -16
  233. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -15
  234. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -15
  235. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -14
  236. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -18
  237. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -14
  238. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -67
  239. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -57
  240. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -45
  241. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -44
  242. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  243. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -113
  244. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -25
  245. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -56
  246. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -31
  247. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -95
  248. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -57
  249. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -62
  250. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -30
  251. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -74
  252. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -35
  253. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -21
  254. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -16
  255. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -66
  256. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
  257. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -167
  258. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
  259. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
  260. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  261. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  262. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  263. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
  264. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  265. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
  266. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
  267. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
  268. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
  269. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  270. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
  271. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
  272. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
  273. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  274. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
@@ -1,103 +0,0 @@
1
- const formatDistanceLocale = {
2
- lessThanXSeconds: {
3
- one: "less than a second",
4
- other: "less than {{count}} seconds",
5
- },
6
-
7
- xSeconds: {
8
- one: "1 second",
9
- other: "{{count}} seconds",
10
- },
11
-
12
- halfAMinute: "half a minute",
13
-
14
- lessThanXMinutes: {
15
- one: "less than a minute",
16
- other: "less than {{count}} minutes",
17
- },
18
-
19
- xMinutes: {
20
- one: "1 minute",
21
- other: "{{count}} minutes",
22
- },
23
-
24
- aboutXHours: {
25
- one: "about 1 hour",
26
- other: "about {{count}} hours",
27
- },
28
-
29
- xHours: {
30
- one: "1 hour",
31
- other: "{{count}} hours",
32
- },
33
-
34
- xDays: {
35
- one: "1 day",
36
- other: "{{count}} days",
37
- },
38
-
39
- aboutXWeeks: {
40
- one: "about 1 week",
41
- other: "about {{count}} weeks",
42
- },
43
-
44
- xWeeks: {
45
- one: "1 week",
46
- other: "{{count}} weeks",
47
- },
48
-
49
- aboutXMonths: {
50
- one: "about 1 month",
51
- other: "about {{count}} months",
52
- },
53
-
54
- xMonths: {
55
- one: "1 month",
56
- other: "{{count}} months",
57
- },
58
-
59
- aboutXYears: {
60
- one: "about 1 year",
61
- other: "about {{count}} years",
62
- },
63
-
64
- xYears: {
65
- one: "1 year",
66
- other: "{{count}} years",
67
- },
68
-
69
- overXYears: {
70
- one: "over 1 year",
71
- other: "over {{count}} years",
72
- },
73
-
74
- almostXYears: {
75
- one: "almost 1 year",
76
- other: "almost {{count}} years",
77
- },
78
- };
79
-
80
- const formatDistance = (token, count, options) => {
81
- let result;
82
-
83
- const tokenValue = formatDistanceLocale[token];
84
- if (typeof tokenValue === "string") {
85
- result = tokenValue;
86
- } else if (count === 1) {
87
- result = tokenValue.one;
88
- } else {
89
- result = tokenValue.other.replace("{{count}}", count.toString());
90
- }
91
-
92
- if (options?.addSuffix) {
93
- if (options.comparison && options.comparison > 0) {
94
- return "in " + result;
95
- } else {
96
- return result + " ago";
97
- }
98
- }
99
-
100
- return result;
101
- };
102
-
103
- export { formatDistance };
@@ -1,41 +0,0 @@
1
- import { buildFormatLongFn } from '../../_lib/buildFormatLongFn.js';
2
-
3
- const dateFormats = {
4
- full: "EEEE, MMMM do, y",
5
- long: "MMMM do, y",
6
- medium: "MMM d, y",
7
- short: "MM/dd/yyyy",
8
- };
9
-
10
- const timeFormats = {
11
- full: "h:mm:ss a zzzz",
12
- long: "h:mm:ss a z",
13
- medium: "h:mm:ss a",
14
- short: "h:mm a",
15
- };
16
-
17
- const dateTimeFormats = {
18
- full: "{{date}} 'at' {{time}}",
19
- long: "{{date}} 'at' {{time}}",
20
- medium: "{{date}}, {{time}}",
21
- short: "{{date}}, {{time}}",
22
- };
23
-
24
- const formatLong = {
25
- date: buildFormatLongFn({
26
- formats: dateFormats,
27
- defaultWidth: "full",
28
- }),
29
-
30
- time: buildFormatLongFn({
31
- formats: timeFormats,
32
- defaultWidth: "full",
33
- }),
34
-
35
- dateTime: buildFormatLongFn({
36
- formats: dateTimeFormats,
37
- defaultWidth: "full",
38
- }),
39
- };
40
-
41
- export { formatLong };
@@ -1,13 +0,0 @@
1
- const formatRelativeLocale = {
2
- lastWeek: "'last' eeee 'at' p",
3
- yesterday: "'yesterday at' p",
4
- today: "'today at' p",
5
- tomorrow: "'tomorrow at' p",
6
- nextWeek: "eeee 'at' p",
7
- other: "P",
8
- };
9
-
10
- const formatRelative = (token, _date, _baseDate, _options) =>
11
- formatRelativeLocale[token];
12
-
13
- export { formatRelative };
@@ -1,189 +0,0 @@
1
- import { buildLocalizeFn } from '../../_lib/buildLocalizeFn.js';
2
-
3
- const eraValues = {
4
- narrow: ["B", "A"],
5
- abbreviated: ["BC", "AD"],
6
- wide: ["Before Christ", "Anno Domini"],
7
- };
8
-
9
- const quarterValues = {
10
- narrow: ["1", "2", "3", "4"],
11
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
12
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
13
- };
14
-
15
- // Note: in English, the names of days of the week and months are capitalized.
16
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
17
- // Generally, formatted dates should look like they are in the middle of a sentence,
18
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
19
- const monthValues = {
20
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
21
- abbreviated: [
22
- "Jan",
23
- "Feb",
24
- "Mar",
25
- "Apr",
26
- "May",
27
- "Jun",
28
- "Jul",
29
- "Aug",
30
- "Sep",
31
- "Oct",
32
- "Nov",
33
- "Dec",
34
- ],
35
-
36
- wide: [
37
- "January",
38
- "February",
39
- "March",
40
- "April",
41
- "May",
42
- "June",
43
- "July",
44
- "August",
45
- "September",
46
- "October",
47
- "November",
48
- "December",
49
- ],
50
- };
51
-
52
- const dayValues = {
53
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
54
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
55
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
56
- wide: [
57
- "Sunday",
58
- "Monday",
59
- "Tuesday",
60
- "Wednesday",
61
- "Thursday",
62
- "Friday",
63
- "Saturday",
64
- ],
65
- };
66
-
67
- const dayPeriodValues = {
68
- narrow: {
69
- am: "a",
70
- pm: "p",
71
- midnight: "mi",
72
- noon: "n",
73
- morning: "morning",
74
- afternoon: "afternoon",
75
- evening: "evening",
76
- night: "night",
77
- },
78
- abbreviated: {
79
- am: "AM",
80
- pm: "PM",
81
- midnight: "midnight",
82
- noon: "noon",
83
- morning: "morning",
84
- afternoon: "afternoon",
85
- evening: "evening",
86
- night: "night",
87
- },
88
- wide: {
89
- am: "a.m.",
90
- pm: "p.m.",
91
- midnight: "midnight",
92
- noon: "noon",
93
- morning: "morning",
94
- afternoon: "afternoon",
95
- evening: "evening",
96
- night: "night",
97
- },
98
- };
99
-
100
- const formattingDayPeriodValues = {
101
- narrow: {
102
- am: "a",
103
- pm: "p",
104
- midnight: "mi",
105
- noon: "n",
106
- morning: "in the morning",
107
- afternoon: "in the afternoon",
108
- evening: "in the evening",
109
- night: "at night",
110
- },
111
- abbreviated: {
112
- am: "AM",
113
- pm: "PM",
114
- midnight: "midnight",
115
- noon: "noon",
116
- morning: "in the morning",
117
- afternoon: "in the afternoon",
118
- evening: "in the evening",
119
- night: "at night",
120
- },
121
- wide: {
122
- am: "a.m.",
123
- pm: "p.m.",
124
- midnight: "midnight",
125
- noon: "noon",
126
- morning: "in the morning",
127
- afternoon: "in the afternoon",
128
- evening: "in the evening",
129
- night: "at night",
130
- },
131
- };
132
-
133
- const ordinalNumber = (dirtyNumber, _options) => {
134
- const number = Number(dirtyNumber);
135
-
136
- // If ordinal numbers depend on context, for example,
137
- // if they are different for different grammatical genders,
138
- // use `options.unit`.
139
- //
140
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
141
- // 'day', 'hour', 'minute', 'second'.
142
-
143
- const rem100 = number % 100;
144
- if (rem100 > 20 || rem100 < 10) {
145
- switch (rem100 % 10) {
146
- case 1:
147
- return number + "st";
148
- case 2:
149
- return number + "nd";
150
- case 3:
151
- return number + "rd";
152
- }
153
- }
154
- return number + "th";
155
- };
156
-
157
- const localize = {
158
- ordinalNumber,
159
-
160
- era: buildLocalizeFn({
161
- values: eraValues,
162
- defaultWidth: "wide",
163
- }),
164
-
165
- quarter: buildLocalizeFn({
166
- values: quarterValues,
167
- defaultWidth: "wide",
168
- argumentCallback: (quarter) => quarter - 1,
169
- }),
170
-
171
- month: buildLocalizeFn({
172
- values: monthValues,
173
- defaultWidth: "wide",
174
- }),
175
-
176
- day: buildLocalizeFn({
177
- values: dayValues,
178
- defaultWidth: "wide",
179
- }),
180
-
181
- dayPeriod: buildLocalizeFn({
182
- values: dayPeriodValues,
183
- defaultWidth: "wide",
184
- formattingValues: formattingDayPeriodValues,
185
- defaultFormattingWidth: "wide",
186
- }),
187
- };
188
-
189
- export { localize };
@@ -1,134 +0,0 @@
1
- import { buildMatchFn } from '../../_lib/buildMatchFn.js';
2
- import { buildMatchPatternFn } from '../../_lib/buildMatchPatternFn.js';
3
-
4
- const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
5
- const parseOrdinalNumberPattern = /\d+/i;
6
-
7
- const matchEraPatterns = {
8
- narrow: /^(b|a)/i,
9
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
10
- wide: /^(before christ|before common era|anno domini|common era)/i,
11
- };
12
- const parseEraPatterns = {
13
- any: [/^b/i, /^(a|c)/i],
14
- };
15
-
16
- const matchQuarterPatterns = {
17
- narrow: /^[1234]/i,
18
- abbreviated: /^q[1234]/i,
19
- wide: /^[1234](th|st|nd|rd)? quarter/i,
20
- };
21
- const parseQuarterPatterns = {
22
- any: [/1/i, /2/i, /3/i, /4/i],
23
- };
24
-
25
- const matchMonthPatterns = {
26
- narrow: /^[jfmasond]/i,
27
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
28
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
29
- };
30
- const parseMonthPatterns = {
31
- narrow: [
32
- /^j/i,
33
- /^f/i,
34
- /^m/i,
35
- /^a/i,
36
- /^m/i,
37
- /^j/i,
38
- /^j/i,
39
- /^a/i,
40
- /^s/i,
41
- /^o/i,
42
- /^n/i,
43
- /^d/i,
44
- ],
45
-
46
- any: [
47
- /^ja/i,
48
- /^f/i,
49
- /^mar/i,
50
- /^ap/i,
51
- /^may/i,
52
- /^jun/i,
53
- /^jul/i,
54
- /^au/i,
55
- /^s/i,
56
- /^o/i,
57
- /^n/i,
58
- /^d/i,
59
- ],
60
- };
61
-
62
- const matchDayPatterns = {
63
- narrow: /^[smtwf]/i,
64
- short: /^(su|mo|tu|we|th|fr|sa)/i,
65
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
66
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
67
- };
68
- const parseDayPatterns = {
69
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
70
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
71
- };
72
-
73
- const matchDayPeriodPatterns = {
74
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
75
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
76
- };
77
- const parseDayPeriodPatterns = {
78
- any: {
79
- am: /^a/i,
80
- pm: /^p/i,
81
- midnight: /^mi/i,
82
- noon: /^no/i,
83
- morning: /morning/i,
84
- afternoon: /afternoon/i,
85
- evening: /evening/i,
86
- night: /night/i,
87
- },
88
- };
89
-
90
- const match = {
91
- ordinalNumber: buildMatchPatternFn({
92
- matchPattern: matchOrdinalNumberPattern,
93
- parsePattern: parseOrdinalNumberPattern,
94
- valueCallback: (value) => parseInt(value, 10),
95
- }),
96
-
97
- era: buildMatchFn({
98
- matchPatterns: matchEraPatterns,
99
- defaultMatchWidth: "wide",
100
- parsePatterns: parseEraPatterns,
101
- defaultParseWidth: "any",
102
- }),
103
-
104
- quarter: buildMatchFn({
105
- matchPatterns: matchQuarterPatterns,
106
- defaultMatchWidth: "wide",
107
- parsePatterns: parseQuarterPatterns,
108
- defaultParseWidth: "any",
109
- valueCallback: (index) => index + 1,
110
- }),
111
-
112
- month: buildMatchFn({
113
- matchPatterns: matchMonthPatterns,
114
- defaultMatchWidth: "wide",
115
- parsePatterns: parseMonthPatterns,
116
- defaultParseWidth: "any",
117
- }),
118
-
119
- day: buildMatchFn({
120
- matchPatterns: matchDayPatterns,
121
- defaultMatchWidth: "wide",
122
- parsePatterns: parseDayPatterns,
123
- defaultParseWidth: "any",
124
- }),
125
-
126
- dayPeriod: buildMatchFn({
127
- matchPatterns: matchDayPeriodPatterns,
128
- defaultMatchWidth: "any",
129
- parsePatterns: parseDayPeriodPatterns,
130
- defaultParseWidth: "any",
131
- }),
132
- };
133
-
134
- export { match };
@@ -1,28 +0,0 @@
1
- import { formatDistance } from './en-US/_lib/formatDistance.js';
2
- import { formatLong } from './en-US/_lib/formatLong.js';
3
- import { formatRelative } from './en-US/_lib/formatRelative.js';
4
- import { localize } from './en-US/_lib/localize.js';
5
- import { match } from './en-US/_lib/match.js';
6
-
7
- /**
8
- * @category Locales
9
- * @summary English locale (United States).
10
- * @language English
11
- * @iso-639-2 eng
12
- * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
13
- * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
14
- */
15
- const enUS = {
16
- code: "en-US",
17
- formatDistance: formatDistance,
18
- formatLong: formatLong,
19
- formatRelative: formatRelative,
20
- localize: localize,
21
- match: match,
22
- options: {
23
- weekStartsOn: 0 /* Sunday */,
24
- firstWeekContainsDate: 1,
25
- },
26
- };
27
-
28
- export { enUS };
@@ -1,49 +0,0 @@
1
- import { constructFrom } from './constructFrom.js';
2
- import { toDate } from './toDate.js';
3
-
4
- /**
5
- * The {@link max} function options.
6
- */
7
-
8
- /**
9
- * @name max
10
- * @category Common Helpers
11
- * @summary Return the latest of the given dates.
12
- *
13
- * @description
14
- * Return the latest of the given dates.
15
- *
16
- * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
- * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
18
- *
19
- * @param dates - The dates to compare
20
- *
21
- * @returns The latest of the dates
22
- *
23
- * @example
24
- * // Which of these dates is the latest?
25
- * const result = max([
26
- * new Date(1989, 6, 10),
27
- * new Date(1987, 1, 11),
28
- * new Date(1995, 6, 2),
29
- * new Date(1990, 0, 1)
30
- * ])
31
- * //=> Sun Jul 02 1995 00:00:00
32
- */
33
- function max(dates, options) {
34
- let result;
35
- let context = options?.in;
36
-
37
- dates.forEach((date) => {
38
- // Use the first date object as the context function
39
- if (!context && typeof date === "object")
40
- context = constructFrom.bind(null, date);
41
-
42
- const date_ = toDate(date, context);
43
- if (!result || result < date_ || isNaN(+date_)) result = date_;
44
- });
45
-
46
- return constructFrom(context, result || NaN);
47
- }
48
-
49
- export { max };
@@ -1,49 +0,0 @@
1
- import { constructFrom } from './constructFrom.js';
2
- import { toDate } from './toDate.js';
3
-
4
- /**
5
- * The {@link min} function options.
6
- */
7
-
8
- /**
9
- * @name min
10
- * @category Common Helpers
11
- * @summary Returns the earliest of the given dates.
12
- *
13
- * @description
14
- * Returns the earliest of the given dates.
15
- *
16
- * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
- * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
18
- *
19
- * @param dates - The dates to compare
20
- *
21
- * @returns The earliest of the dates
22
- *
23
- * @example
24
- * // Which of these dates is the earliest?
25
- * const result = min([
26
- * new Date(1989, 6, 10),
27
- * new Date(1987, 1, 11),
28
- * new Date(1995, 6, 2),
29
- * new Date(1990, 0, 1)
30
- * ])
31
- * //=> Wed Feb 11 1987 00:00:00
32
- */
33
- function min(dates, options) {
34
- let result;
35
- let context = options?.in;
36
-
37
- dates.forEach((date) => {
38
- // Use the first date object as the context function
39
- if (!context && typeof date === "object")
40
- context = constructFrom.bind(null, date);
41
-
42
- const date_ = toDate(date, context);
43
- if (!result || result > date_ || isNaN(+date_)) result = date_;
44
- });
45
-
46
- return constructFrom(context, result || NaN);
47
- }
48
-
49
- export { min };
@@ -1,27 +0,0 @@
1
- import { ValueSetter } from './Setter.js';
2
-
3
- class Parser {
4
- run(dateString, token, match, options) {
5
- const result = this.parse(dateString, token, match, options);
6
- if (!result) {
7
- return null;
8
- }
9
-
10
- return {
11
- setter: new ValueSetter(
12
- result.value,
13
- this.validate,
14
- this.set,
15
- this.priority,
16
- this.subPriority,
17
- ),
18
- rest: result.rest,
19
- };
20
- }
21
-
22
- validate(_utcDate, _value, _options) {
23
- return true;
24
- }
25
- }
26
-
27
- export { Parser };
@@ -1,59 +0,0 @@
1
- import { constructFrom } from '../../constructFrom.js';
2
- import { transpose } from '../../transpose.js';
3
-
4
- const TIMEZONE_UNIT_PRIORITY = 10;
5
-
6
- class Setter {
7
- subPriority = 0;
8
-
9
- validate(_utcDate, _options) {
10
- return true;
11
- }
12
- }
13
-
14
- class ValueSetter extends Setter {
15
- constructor(
16
- value,
17
-
18
- validateValue,
19
-
20
- setValue,
21
-
22
- priority,
23
- subPriority,
24
- ) {
25
- super();
26
- this.value = value;
27
- this.validateValue = validateValue;
28
- this.setValue = setValue;
29
- this.priority = priority;
30
- if (subPriority) {
31
- this.subPriority = subPriority;
32
- }
33
- }
34
-
35
- validate(date, options) {
36
- return this.validateValue(date, this.value, options);
37
- }
38
-
39
- set(date, flags, options) {
40
- return this.setValue(date, flags, this.value, options);
41
- }
42
- }
43
-
44
- class DateTimezoneSetter extends Setter {
45
- priority = TIMEZONE_UNIT_PRIORITY;
46
- subPriority = -1;
47
-
48
- constructor(context, reference) {
49
- super();
50
- this.context = context || ((date) => constructFrom(reference, date));
51
- }
52
-
53
- set(date, flags) {
54
- if (flags.timestampIsSet) return date;
55
- return constructFrom(date, transpose(date, this.context));
56
- }
57
- }
58
-
59
- export { DateTimezoneSetter, Setter, ValueSetter };