@phillips/seldon 1.237.0 → 1.238.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 (262) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +15 -10
  2. package/dist/_virtual/index.js +5 -2
  3. package/dist/_virtual/index10.js +2 -2
  4. package/dist/_virtual/index11.js +4 -0
  5. package/dist/_virtual/index12.js +4 -0
  6. package/dist/_virtual/index13.js +4 -0
  7. package/dist/_virtual/index14.js +5 -0
  8. package/dist/_virtual/index15.js +5 -0
  9. package/dist/_virtual/index16.js +7 -0
  10. package/dist/_virtual/index17.js +4 -0
  11. package/dist/_virtual/index18.js +4 -0
  12. package/dist/_virtual/index2.js +3 -2
  13. package/dist/_virtual/index3.js +2 -2
  14. package/dist/_virtual/index4.js +2 -2
  15. package/dist/_virtual/index5.js +2 -4
  16. package/dist/_virtual/index6.js +5 -2
  17. package/dist/_virtual/index7.js +3 -2
  18. package/dist/_virtual/index8.js +2 -2
  19. package/dist/_virtual/index9.js +2 -2
  20. package/dist/components/Accordion/Accordion.js +1 -1
  21. package/dist/components/Accordion/AccordionItem.js +1 -1
  22. package/dist/components/Accordion/utils.js +1 -1
  23. package/dist/components/AddToCalendar/AddToCalendar.js +1 -1
  24. package/dist/components/AddToCalendar/calendarLinks.js +10 -10
  25. package/dist/components/Article/Article.js +1 -1
  26. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  27. package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -1
  28. package/dist/components/Button/Button.d.ts +5 -1
  29. package/dist/components/Button/Button.js +49 -47
  30. package/dist/components/Button/Button.stories.d.ts +34 -5
  31. package/dist/components/Button/index.d.ts +3 -0
  32. package/dist/components/Button/types.d.ts +4 -1
  33. package/dist/components/Button/types.js +2 -1
  34. package/dist/components/Carousel/Carousel.js +1 -1
  35. package/dist/components/Carousel/CarouselArrows.js +1 -1
  36. package/dist/components/Carousel/CarouselContent.js +1 -1
  37. package/dist/components/Carousel/CarouselDot.js +1 -1
  38. package/dist/components/Carousel/CarouselDots.js +1 -1
  39. package/dist/components/Carousel/CarouselItem.js +1 -1
  40. package/dist/components/Collapsible/Collapsible.js +1 -1
  41. package/dist/components/Collapsible/CollapsibleContent.js +1 -1
  42. package/dist/components/Collapsible/CollapsibleTrigger.js +1 -1
  43. package/dist/components/ComboBox/ComboBox.js +16 -16
  44. package/dist/components/ComposedModal/ComposedModal.js +1 -1
  45. package/dist/components/ContentPeek/ContentPeek.js +1 -1
  46. package/dist/components/Countdown/Countdown.js +10 -10
  47. package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +1 -1
  48. package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js +1 -1
  49. package/dist/components/Detail/Detail.js +1 -1
  50. package/dist/components/DetailList/DetailList.js +1 -1
  51. package/dist/components/Divider/Divider.js +1 -1
  52. package/dist/components/Drawer/Drawer.js +1 -1
  53. package/dist/components/Dropdown/Dropdown.js +1 -1
  54. package/dist/components/ExitGateCard/ExitGateCard.js +1 -1
  55. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +1 -1
  56. package/dist/components/Filter/Filter.js +1 -1
  57. package/dist/components/Filter/FilterHeader.js +1 -1
  58. package/dist/components/Grid/Grid.js +1 -1
  59. package/dist/components/Grid/Grid.stories.d.ts +1 -1
  60. package/dist/components/Grid/utils.js +1 -1
  61. package/dist/components/GridItem/GridItem.js +1 -1
  62. package/dist/components/Icon/Icon.js +1 -1
  63. package/dist/components/IconButton/IconButton.js +1 -1
  64. package/dist/components/Input/Input.js +1 -1
  65. package/dist/components/Input/utils.js +1 -1
  66. package/dist/components/Link/Link.js +1 -1
  67. package/dist/components/LinkBlock/LinkBlock.js +1 -1
  68. package/dist/components/LinkList/LinkList.js +1 -1
  69. package/dist/components/Loader/Loader.js +1 -1
  70. package/dist/components/Modal/Modal.js +1 -1
  71. package/dist/components/Navigation/Navigation.js +1 -1
  72. package/dist/components/Navigation/NavigationItem/NavigationItem.js +1 -1
  73. package/dist/components/Navigation/NavigationItem/NavigationItem.stories.d.ts +1 -1
  74. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +1 -1
  75. package/dist/components/Navigation/NavigationList/NavigationList.js +1 -1
  76. package/dist/components/NotificationBanner/NotificationBanner.js +1 -1
  77. package/dist/components/PageContentWrapper/PageContentWrapper.js +1 -1
  78. package/dist/components/Pagination/Pagination.js +1 -1
  79. package/dist/components/Pictogram/Pictogram.js +1 -1
  80. package/dist/components/PinchZoom/PinchZoom.js +1 -1
  81. package/dist/components/ProgressIndicator/ProgressIndicator.js +1 -1
  82. package/dist/components/Row/Row.js +5 -5
  83. package/dist/components/Search/Search.js +1 -1
  84. package/dist/components/Search/Search.stories.d.ts +1 -1
  85. package/dist/components/SeldonImage/SeldonImage.js +1 -1
  86. package/dist/components/Select/Select.js +2 -2
  87. package/dist/components/SplitPanel/SplitPanel.js +1 -1
  88. package/dist/components/Tabs/TabsContainer.js +1 -1
  89. package/dist/components/Tabs/TabsContent.js +1 -1
  90. package/dist/components/Tags/Tags.js +1 -1
  91. package/dist/components/Text/Text.js +1 -1
  92. package/dist/components/Text/utils.js +1 -0
  93. package/dist/components/TextArea/TextArea.js +2 -2
  94. package/dist/components/TextSymbol/TextSymbol.js +16 -16
  95. package/dist/components/Toast/Toast.js +1 -1
  96. package/dist/components/Video/Video.js +1 -1
  97. package/dist/index.d.ts +1 -1
  98. package/dist/index.js +225 -224
  99. package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +261 -260
  100. package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +148 -143
  101. package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +124 -123
  102. package/dist/node_modules/@artsy/fresnel/dist/Media.js +158 -157
  103. package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +120 -120
  104. package/dist/node_modules/@artsy/fresnel/dist/Utils.js +85 -87
  105. package/dist/node_modules/@artsy/fresnel/dist/index.js +25 -21
  106. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +12 -12
  107. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +9 -9
  108. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +23 -24
  109. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +3 -1
  110. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +17 -18
  111. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +24 -25
  112. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  113. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  114. package/dist/node_modules/@radix-ui/react-id/dist/index.js +10 -10
  115. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +8 -8
  116. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-collection/dist/index.js +3 -1
  117. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  118. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  119. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +14 -15
  120. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +6 -6
  121. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  122. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  123. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  124. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +13 -14
  125. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  126. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  127. package/dist/node_modules/@radix-ui/react-select/dist/index.js +21 -22
  128. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  129. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +16 -17
  130. package/dist/node_modules/@radix-ui/react-toast/dist/index.js +43 -44
  131. package/dist/node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.js +3 -1
  132. package/dist/node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  133. package/dist/node_modules/change-case/dist/index.js +20 -20
  134. package/dist/node_modules/classnames/index.js +33 -38
  135. package/dist/node_modules/date-fns/_lib/format/formatters.js +51 -20
  136. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -1
  137. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -3
  138. package/dist/node_modules/date-fns/addHours.js +4 -5
  139. package/dist/node_modules/date-fns/addMilliseconds.js +4 -5
  140. package/dist/node_modules/date-fns/constants.js +1 -1
  141. package/dist/node_modules/date-fns/constructFrom.js +1 -2
  142. package/dist/node_modules/date-fns/differenceInCalendarDays.js +4 -5
  143. package/dist/node_modules/date-fns/differenceInDays.js +8 -9
  144. package/dist/node_modules/date-fns/differenceInHours.js +8 -9
  145. package/dist/node_modules/date-fns/differenceInMilliseconds.js +3 -4
  146. package/dist/node_modules/date-fns/differenceInMinutes.js +6 -7
  147. package/dist/node_modules/date-fns/differenceInSeconds.js +5 -6
  148. package/dist/node_modules/date-fns/format.js +7 -8
  149. package/dist/node_modules/date-fns/formatDuration.js +6 -7
  150. package/dist/node_modules/date-fns/getDayOfYear.js +5 -6
  151. package/dist/node_modules/date-fns/getISOWeek.js +2 -3
  152. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -1
  153. package/dist/node_modules/date-fns/getWeek.js +5 -6
  154. package/dist/node_modules/date-fns/getWeekYear.js +5 -6
  155. package/dist/node_modules/date-fns/isAfter.js +2 -3
  156. package/dist/node_modules/date-fns/isDate.js +0 -1
  157. package/dist/node_modules/date-fns/isSameWeek.js +5 -6
  158. package/dist/node_modules/date-fns/isValid.js +4 -5
  159. package/dist/node_modules/date-fns/locale/en-US.js +8 -9
  160. package/dist/node_modules/date-fns/locale/zh-CN.js +8 -9
  161. package/dist/node_modules/date-fns/startOfDay.js +4 -5
  162. package/dist/node_modules/date-fns/startOfISOWeek.js +2 -3
  163. package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
  164. package/dist/node_modules/date-fns/startOfWeek.js +5 -6
  165. package/dist/node_modules/date-fns/startOfWeekYear.js +2 -3
  166. package/dist/node_modules/date-fns/startOfYear.js +4 -5
  167. package/dist/node_modules/date-fns/toDate.js +3 -4
  168. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +6 -7
  169. package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +0 -1
  170. package/dist/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js +1 -1
  171. package/dist/node_modules/ics/dist/defaults.js +21 -19
  172. package/dist/node_modules/ics/dist/index.js +103 -104
  173. package/dist/node_modules/ics/dist/pipeline/build.js +47 -45
  174. package/dist/node_modules/ics/dist/pipeline/format.js +61 -61
  175. package/dist/node_modules/ics/dist/pipeline/index.js +56 -53
  176. package/dist/node_modules/ics/dist/pipeline/validate.js +21 -16
  177. package/dist/node_modules/ics/dist/schema/index.js +203 -201
  178. package/dist/node_modules/ics/dist/utils/encode-new-lines.js +15 -9
  179. package/dist/node_modules/ics/dist/utils/encode-param-value.js +15 -9
  180. package/dist/node_modules/ics/dist/utils/fold-line.js +19 -13
  181. package/dist/node_modules/ics/dist/utils/format-date.js +66 -60
  182. package/dist/node_modules/ics/dist/utils/format-duration.js +16 -10
  183. package/dist/node_modules/ics/dist/utils/format-text.js +15 -9
  184. package/dist/node_modules/ics/dist/utils/index.js +81 -86
  185. package/dist/node_modules/ics/dist/utils/set-alarm.js +47 -44
  186. package/dist/node_modules/ics/dist/utils/set-contact.js +23 -18
  187. package/dist/node_modules/ics/dist/utils/set-description.js +20 -15
  188. package/dist/node_modules/ics/dist/utils/set-geolocation.js +16 -10
  189. package/dist/node_modules/ics/dist/utils/set-location.js +20 -15
  190. package/dist/node_modules/ics/dist/utils/set-organizer.js +21 -16
  191. package/dist/node_modules/ics/dist/utils/set-summary.js +20 -15
  192. package/dist/node_modules/libphonenumber-js/es6/metadata.js +5 -5
  193. package/dist/node_modules/lodash.debounce/index.js +85 -3
  194. package/dist/node_modules/nanoid/index.browser.js +1 -1
  195. package/dist/node_modules/object-assign/index.js +0 -5
  196. package/dist/node_modules/prop-types/checkPropTypes.js +1 -1
  197. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
  198. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  199. package/dist/node_modules/prop-types/index.js +13 -11
  200. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +3 -11
  201. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -9
  202. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  203. package/dist/node_modules/property-expr/index.js +78 -73
  204. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +1 -1
  205. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +3 -3
  206. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +9 -9
  207. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +3 -3
  208. package/dist/node_modules/react-transition-group/esm/Transition.js +3 -3
  209. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  210. package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.js +2 -3
  211. package/dist/node_modules/runes2/dist/index.cjs.production.min.js +8 -8
  212. package/dist/node_modules/runes2/dist/index.js +8 -6
  213. package/dist/node_modules/tiny-case/index.js +20 -15
  214. package/dist/node_modules/toposort/index.js +57 -56
  215. package/dist/node_modules/usehooks-ts/dist/index.js +1 -1
  216. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -9
  217. package/dist/node_modules/wheel-gestures/dist/wheel-gestures.esm.js +2 -2
  218. package/dist/node_modules/yup/index.esm.js +3 -3
  219. package/dist/pages/Page.stories.d.ts +1 -1
  220. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +1 -1
  221. package/dist/patterns/BidSnapshot/BidMessage.js +1 -1
  222. package/dist/patterns/BidSnapshot/BidSnapshot.js +1 -1
  223. package/dist/patterns/CountryPicker/CountryPicker.stories.d.ts +1 -1
  224. package/dist/patterns/CountryPicker/CountryPickerModal.stories.d.ts +1 -1
  225. package/dist/patterns/CountryPicker/CountryPickerOption.js +1 -1
  226. package/dist/patterns/CountryPicker/CountryPickerTrigger.js +1 -1
  227. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +1 -1
  228. package/dist/patterns/FilterMenu/FilterMenu.js +1 -1
  229. package/dist/patterns/FiltersInline/FilterButton.js +1 -1
  230. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +1 -1
  231. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +1 -1
  232. package/dist/patterns/FiltersInline/FiltersInline.js +1 -1
  233. package/dist/patterns/FiltersInline/MainFilterDropdown.js +1 -1
  234. package/dist/patterns/HeroBanner/HeroBanner.js +1 -1
  235. package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
  236. package/dist/patterns/LanguageSelector/LanguageSelector.js +1 -1
  237. package/dist/patterns/ObjectTile/ObjectTile.js +1 -1
  238. package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +4 -4
  239. package/dist/patterns/ProgressWizard/ProgressWizard.stories.d.ts +8 -8
  240. package/dist/patterns/SaleCard/SaleCard.js +2 -2
  241. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +1 -1
  242. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +1 -1
  243. package/dist/patterns/Social/Social.js +1 -1
  244. package/dist/patterns/Subscribe/Subscribe.js +1 -1
  245. package/dist/patterns/TextBanner/TextBanner.js +1 -1
  246. package/dist/patterns/UserManagement/UserManagement.js +1 -1
  247. package/dist/patterns/UserManagement/UserManagement.stories.d.ts +1 -1
  248. package/dist/patterns/ViewingDetails/ViewingDetails.js +1 -1
  249. package/dist/patterns/ViewingsList/ViewingsList.js +5 -5
  250. package/dist/patterns/ViewingsList/ViewingsListCard.js +38 -29
  251. package/dist/patterns/ViewingsList/ViewingsListCardForm.js +1 -1
  252. package/dist/providers/SeldonProvider/utils.js +4 -5
  253. package/dist/scss/componentStyles.scss +1 -0
  254. package/dist/scss/components/Button/_button.scss +21 -35
  255. package/dist/scss/components/Button/_button.stories.scss +76 -0
  256. package/dist/scss/components/DatePicker/_datePicker.scss +2 -2
  257. package/dist/scss/components/Drawer/_drawer.scss +1 -1
  258. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  259. package/dist/scss/patterns/ViewingDetails/_viewingDetails.stories.scss +0 -2
  260. package/dist/site-furniture/Footer/Footer.js +1 -1
  261. package/dist/site-furniture/Header/Header.js +1 -1
  262. package/package.json +27 -30
@@ -6,8 +6,6 @@ import { getWeekYear as x } from "../../getWeekYear.js";
6
6
  import { addLeadingZeros as i } from "../addLeadingZeros.js";
7
7
  import { lightFormatters as u } from "./lightFormatters.js";
8
8
  const s = {
9
- am: "am",
10
- pm: "pm",
11
9
  midnight: "midnight",
12
10
  noon: "noon",
13
11
  morning: "morning",
@@ -19,13 +17,14 @@ const s = {
19
17
  G: function(n, r, e) {
20
18
  const t = n.getFullYear() > 0 ? 1 : 0;
21
19
  switch (r) {
20
+ // AD, BC
22
21
  case "G":
23
22
  case "GG":
24
23
  case "GGG":
25
24
  return e.era(t, { width: "abbreviated" });
25
+ // A, B
26
26
  case "GGGGG":
27
27
  return e.era(t, { width: "narrow" });
28
- case "GGGG":
29
28
  default:
30
29
  return e.era(t, { width: "wide" });
31
30
  }
@@ -69,23 +68,27 @@ const s = {
69
68
  Q: function(n, r, e) {
70
69
  const t = Math.ceil((n.getMonth() + 1) / 3);
71
70
  switch (r) {
71
+ // 1, 2, 3, 4
72
72
  case "Q":
73
73
  return String(t);
74
+ // 01, 02, 03, 04
74
75
  case "QQ":
75
76
  return i(t, 2);
77
+ // 1st, 2nd, 3rd, 4th
76
78
  case "Qo":
77
79
  return e.ordinalNumber(t, { unit: "quarter" });
80
+ // Q1, Q2, Q3, Q4
78
81
  case "QQQ":
79
82
  return e.quarter(t, {
80
83
  width: "abbreviated",
81
84
  context: "formatting"
82
85
  });
86
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
83
87
  case "QQQQQ":
84
88
  return e.quarter(t, {
85
89
  width: "narrow",
86
90
  context: "formatting"
87
91
  });
88
- case "QQQQ":
89
92
  default:
90
93
  return e.quarter(t, {
91
94
  width: "wide",
@@ -97,23 +100,27 @@ const s = {
97
100
  q: function(n, r, e) {
98
101
  const t = Math.ceil((n.getMonth() + 1) / 3);
99
102
  switch (r) {
103
+ // 1, 2, 3, 4
100
104
  case "q":
101
105
  return String(t);
106
+ // 01, 02, 03, 04
102
107
  case "qq":
103
108
  return i(t, 2);
109
+ // 1st, 2nd, 3rd, 4th
104
110
  case "qo":
105
111
  return e.ordinalNumber(t, { unit: "quarter" });
112
+ // Q1, Q2, Q3, Q4
106
113
  case "qqq":
107
114
  return e.quarter(t, {
108
115
  width: "abbreviated",
109
116
  context: "standalone"
110
117
  });
118
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
111
119
  case "qqqqq":
112
120
  return e.quarter(t, {
113
121
  width: "narrow",
114
122
  context: "standalone"
115
123
  });
116
- case "qqqq":
117
124
  default:
118
125
  return e.quarter(t, {
119
126
  width: "wide",
@@ -128,19 +135,21 @@ const s = {
128
135
  case "M":
129
136
  case "MM":
130
137
  return u.M(n, r);
138
+ // 1st, 2nd, ..., 12th
131
139
  case "Mo":
132
140
  return e.ordinalNumber(t + 1, { unit: "month" });
141
+ // Jan, Feb, ..., Dec
133
142
  case "MMM":
134
143
  return e.month(t, {
135
144
  width: "abbreviated",
136
145
  context: "formatting"
137
146
  });
147
+ // J, F, ..., D
138
148
  case "MMMMM":
139
149
  return e.month(t, {
140
150
  width: "narrow",
141
151
  context: "formatting"
142
152
  });
143
- case "MMMM":
144
153
  default:
145
154
  return e.month(t, { width: "wide", context: "formatting" });
146
155
  }
@@ -149,23 +158,27 @@ const s = {
149
158
  L: function(n, r, e) {
150
159
  const t = n.getMonth();
151
160
  switch (r) {
161
+ // 1, 2, ..., 12
152
162
  case "L":
153
163
  return String(t + 1);
164
+ // 01, 02, ..., 12
154
165
  case "LL":
155
166
  return i(t + 1, 2);
167
+ // 1st, 2nd, ..., 12th
156
168
  case "Lo":
157
169
  return e.ordinalNumber(t + 1, { unit: "month" });
170
+ // Jan, Feb, ..., Dec
158
171
  case "LLL":
159
172
  return e.month(t, {
160
173
  width: "abbreviated",
161
174
  context: "standalone"
162
175
  });
176
+ // J, F, ..., D
163
177
  case "LLLLL":
164
178
  return e.month(t, {
165
179
  width: "narrow",
166
180
  context: "standalone"
167
181
  });
168
- case "LLLL":
169
182
  default:
170
183
  return e.month(t, { width: "wide", context: "standalone" });
171
184
  }
@@ -193,6 +206,7 @@ const s = {
193
206
  E: function(n, r, e) {
194
207
  const t = n.getDay();
195
208
  switch (r) {
209
+ // Tue
196
210
  case "E":
197
211
  case "EE":
198
212
  case "EEE":
@@ -200,17 +214,18 @@ const s = {
200
214
  width: "abbreviated",
201
215
  context: "formatting"
202
216
  });
217
+ // T
203
218
  case "EEEEE":
204
219
  return e.day(t, {
205
220
  width: "narrow",
206
221
  context: "formatting"
207
222
  });
223
+ // Tu
208
224
  case "EEEEEE":
209
225
  return e.day(t, {
210
226
  width: "short",
211
227
  context: "formatting"
212
228
  });
213
- case "EEEE":
214
229
  default:
215
230
  return e.day(t, {
216
231
  width: "wide",
@@ -222,10 +237,13 @@ const s = {
222
237
  e: function(n, r, e, t) {
223
238
  const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
224
239
  switch (r) {
240
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
225
241
  case "e":
226
242
  return String(o);
243
+ // Padded numerical value
227
244
  case "ee":
228
245
  return i(o, 2);
246
+ // 1st, 2nd, ..., 7th
229
247
  case "eo":
230
248
  return e.ordinalNumber(o, { unit: "day" });
231
249
  case "eee":
@@ -233,17 +251,18 @@ const s = {
233
251
  width: "abbreviated",
234
252
  context: "formatting"
235
253
  });
254
+ // T
236
255
  case "eeeee":
237
256
  return e.day(a, {
238
257
  width: "narrow",
239
258
  context: "formatting"
240
259
  });
260
+ // Tu
241
261
  case "eeeeee":
242
262
  return e.day(a, {
243
263
  width: "short",
244
264
  context: "formatting"
245
265
  });
246
- case "eeee":
247
266
  default:
248
267
  return e.day(a, {
249
268
  width: "wide",
@@ -255,10 +274,13 @@ const s = {
255
274
  c: function(n, r, e, t) {
256
275
  const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
257
276
  switch (r) {
277
+ // Numerical value (same as in `e`)
258
278
  case "c":
259
279
  return String(o);
280
+ // Padded numerical value
260
281
  case "cc":
261
282
  return i(o, r.length);
283
+ // 1st, 2nd, ..., 7th
262
284
  case "co":
263
285
  return e.ordinalNumber(o, { unit: "day" });
264
286
  case "ccc":
@@ -266,17 +288,18 @@ const s = {
266
288
  width: "abbreviated",
267
289
  context: "standalone"
268
290
  });
291
+ // T
269
292
  case "ccccc":
270
293
  return e.day(a, {
271
294
  width: "narrow",
272
295
  context: "standalone"
273
296
  });
297
+ // Tu
274
298
  case "cccccc":
275
299
  return e.day(a, {
276
300
  width: "short",
277
301
  context: "standalone"
278
302
  });
279
- case "cccc":
280
303
  default:
281
304
  return e.day(a, {
282
305
  width: "wide",
@@ -288,28 +311,33 @@ const s = {
288
311
  i: function(n, r, e) {
289
312
  const t = n.getDay(), a = t === 0 ? 7 : t;
290
313
  switch (r) {
314
+ // 2
291
315
  case "i":
292
316
  return String(a);
317
+ // 02
293
318
  case "ii":
294
319
  return i(a, r.length);
320
+ // 2nd
295
321
  case "io":
296
322
  return e.ordinalNumber(a, { unit: "day" });
323
+ // Tue
297
324
  case "iii":
298
325
  return e.day(t, {
299
326
  width: "abbreviated",
300
327
  context: "formatting"
301
328
  });
329
+ // T
302
330
  case "iiiii":
303
331
  return e.day(t, {
304
332
  width: "narrow",
305
333
  context: "formatting"
306
334
  });
335
+ // Tu
307
336
  case "iiiiii":
308
337
  return e.day(t, {
309
338
  width: "short",
310
339
  context: "formatting"
311
340
  });
312
- case "iiii":
313
341
  default:
314
342
  return e.day(t, {
315
343
  width: "wide",
@@ -337,7 +365,6 @@ const s = {
337
365
  width: "narrow",
338
366
  context: "formatting"
339
367
  });
340
- case "aaaa":
341
368
  default:
342
369
  return e.dayPeriod(a, {
343
370
  width: "wide",
@@ -366,7 +393,6 @@ const s = {
366
393
  width: "narrow",
367
394
  context: "formatting"
368
395
  });
369
- case "bbbb":
370
396
  default:
371
397
  return e.dayPeriod(a, {
372
398
  width: "wide",
@@ -391,7 +417,6 @@ const s = {
391
417
  width: "narrow",
392
418
  context: "formatting"
393
419
  });
394
- case "BBBB":
395
420
  default:
396
421
  return e.dayPeriod(a, {
397
422
  width: "wide",
@@ -439,13 +464,16 @@ const s = {
439
464
  if (t === 0)
440
465
  return "Z";
441
466
  switch (r) {
467
+ // Hours and optional minutes
442
468
  case "X":
443
469
  return f(t);
470
+ // Hours, minutes and optional seconds without `:` delimiter
471
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
472
+ // so this token always has the same output as `XX`
444
473
  case "XXXX":
445
474
  case "XX":
446
475
  return c(t);
447
- case "XXXXX":
448
- case "XXX":
476
+ // Hours and minutes with `:` delimiter
449
477
  default:
450
478
  return c(t, ":");
451
479
  }
@@ -454,13 +482,16 @@ const s = {
454
482
  x: function(n, r, e) {
455
483
  const t = n.getTimezoneOffset();
456
484
  switch (r) {
485
+ // Hours and optional minutes
457
486
  case "x":
458
487
  return f(t);
488
+ // Hours, minutes and optional seconds without `:` delimiter
489
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
490
+ // so this token always has the same output as `xx`
459
491
  case "xxxx":
460
492
  case "xx":
461
493
  return c(t);
462
- case "xxxxx":
463
- case "xxx":
494
+ // Hours and minutes with `:` delimiter
464
495
  default:
465
496
  return c(t, ":");
466
497
  }
@@ -469,11 +500,11 @@ const s = {
469
500
  O: function(n, r, e) {
470
501
  const t = n.getTimezoneOffset();
471
502
  switch (r) {
503
+ // Short
472
504
  case "O":
473
505
  case "OO":
474
506
  case "OOO":
475
507
  return "GMT" + d(t, ":");
476
- case "OOOO":
477
508
  default:
478
509
  return "GMT" + c(t, ":");
479
510
  }
@@ -482,11 +513,11 @@ const s = {
482
513
  z: function(n, r, e) {
483
514
  const t = n.getTimezoneOffset();
484
515
  switch (r) {
516
+ // Short
485
517
  case "z":
486
518
  case "zz":
487
519
  case "zzz":
488
520
  return "GMT" + d(t, ":");
489
- case "zzzz":
490
521
  default:
491
522
  return "GMT" + c(t, ":");
492
523
  }
@@ -25,7 +25,6 @@ const g = {
25
25
  return r;
26
26
  case "aaaaa":
27
27
  return r[0];
28
- case "aaaa":
29
28
  default:
30
29
  return r === "am" ? "a.m." : "p.m.";
31
30
  }
@@ -6,7 +6,6 @@ const s = (t, e) => {
6
6
  return e.date({ width: "medium" });
7
7
  case "PPP":
8
8
  return e.date({ width: "long" });
9
- case "PPPP":
10
9
  default:
11
10
  return e.date({ width: "full" });
12
11
  }
@@ -18,7 +17,6 @@ const s = (t, e) => {
18
17
  return e.time({ width: "medium" });
19
18
  case "ppp":
20
19
  return e.time({ width: "long" });
21
- case "pppp":
22
20
  default:
23
21
  return e.time({ width: "full" });
24
22
  }
@@ -37,7 +35,6 @@ const s = (t, e) => {
37
35
  case "PPP":
38
36
  i = e.dateTime({ width: "long" });
39
37
  break;
40
- case "PPPP":
41
38
  default:
42
39
  i = e.dateTime({ width: "full" });
43
40
  break;
@@ -1,9 +1,8 @@
1
1
  import { addMilliseconds as i } from "./addMilliseconds.js";
2
- import { millisecondsInHour as d } from "./constants.js";
3
- function e(o, r, n) {
4
- return i(o, r * d);
2
+ import { millisecondsInHour as n } from "./constants.js";
3
+ function m(o, r, d) {
4
+ return i(o, r * n);
5
5
  }
6
6
  export {
7
- e as addHours,
8
- e as default
7
+ m as addHours
9
8
  };
@@ -1,9 +1,8 @@
1
- import { constructFrom as r } from "./constructFrom.js";
1
+ import { constructFrom as t } from "./constructFrom.js";
2
2
  import { toDate as i } from "./toDate.js";
3
- function c(o, t, n) {
4
- return r(o, +i(o) + t);
3
+ function p(o, r, n) {
4
+ return t(o, +i(o) + r);
5
5
  }
6
6
  export {
7
- c as addMilliseconds,
8
- c as default
7
+ p as addMilliseconds
9
8
  };
@@ -1,4 +1,4 @@
1
- const o = 6048e5, n = 864e5, s = 6e4, c = 36e5, t = Symbol.for("constructDateFrom");
1
+ const o = 6048e5, n = 864e5, s = 6e4, c = 36e5, t = /* @__PURE__ */ Symbol.for("constructDateFrom");
2
2
  export {
3
3
  t as constructFromSymbol,
4
4
  n as millisecondsInDay,
@@ -3,6 +3,5 @@ function c(r, n) {
3
3
  return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
4
4
  }
5
5
  export {
6
- c as constructFrom,
7
- c as default
6
+ c as constructFrom
8
7
  };
@@ -2,15 +2,14 @@ import { getTimezoneOffsetInMilliseconds as r } from "./_lib/getTimezoneOffsetIn
2
2
  import { normalizeDates as c } from "./_lib/normalizeDates.js";
3
3
  import { millisecondsInDay as D } from "./constants.js";
4
4
  import { startOfDay as a } from "./startOfDay.js";
5
- function O(o, n, i) {
6
- const [s, m] = c(
5
+ function u(o, n, i) {
6
+ const [m, s] = c(
7
7
  i?.in,
8
8
  o,
9
9
  n
10
- ), t = a(s), e = a(m), f = +t - r(t), l = +e - r(e);
10
+ ), t = a(m), e = a(s), f = +t - r(t), l = +e - r(e);
11
11
  return Math.round((f - l) / D);
12
12
  }
13
13
  export {
14
- O as default,
15
- O as differenceInCalendarDays
14
+ u as differenceInCalendarDays
16
15
  };
@@ -1,22 +1,21 @@
1
- import { normalizeDates as d } from "./_lib/normalizeDates.js";
2
- import { differenceInCalendarDays as r } from "./differenceInCalendarDays.js";
1
+ import { normalizeDates as r } from "./_lib/normalizeDates.js";
2
+ import { differenceInCalendarDays as d } from "./differenceInCalendarDays.js";
3
3
  function l(n, t, s) {
4
- const [o, e] = d(
4
+ const [o, e] = r(
5
5
  s?.in,
6
6
  n,
7
7
  t
8
- ), c = f(o, e), g = Math.abs(
9
- r(o, e)
8
+ ), c = u(o, e), g = Math.abs(
9
+ d(o, e)
10
10
  );
11
11
  o.setDate(o.getDate() - c * g);
12
- const i = +(f(o, e) === -c), u = c * (g - i);
13
- return u === 0 ? 0 : u;
12
+ const f = +(u(o, e) === -c), i = c * (g - f);
13
+ return i === 0 ? 0 : i;
14
14
  }
15
- function f(n, t) {
15
+ function u(n, t) {
16
16
  const s = n.getFullYear() - t.getFullYear() || n.getMonth() - t.getMonth() || n.getDate() - t.getDate() || n.getHours() - t.getHours() || n.getMinutes() - t.getMinutes() || n.getSeconds() - t.getSeconds() || n.getMilliseconds() - t.getMilliseconds();
17
17
  return s < 0 ? -1 : s > 0 ? 1 : s;
18
18
  }
19
19
  export {
20
- l as default,
21
20
  l as differenceInDays
22
21
  };
@@ -1,15 +1,14 @@
1
1
  import { getRoundingMethod as f } from "./_lib/getRoundingMethod.js";
2
- import { normalizeDates as a } from "./_lib/normalizeDates.js";
2
+ import { normalizeDates as m } from "./_lib/normalizeDates.js";
3
3
  import { millisecondsInHour as d } from "./constants.js";
4
- function s(r, o, e) {
5
- const [t, n] = a(
6
- e?.in,
7
- r,
4
+ function l(e, o, r) {
5
+ const [n, t] = m(
6
+ r?.in,
7
+ e,
8
8
  o
9
- ), i = (+t - +n) / d;
10
- return f(e?.roundingMethod)(i);
9
+ ), i = (+n - +t) / d;
10
+ return f(r?.roundingMethod)(i);
11
11
  }
12
12
  export {
13
- s as default,
14
- s as differenceInHours
13
+ l as differenceInHours
15
14
  };
@@ -1,8 +1,7 @@
1
1
  import { toDate as e } from "./toDate.js";
2
- function r(t, n) {
3
- return +e(t) - +e(n);
2
+ function t(n, o) {
3
+ return +e(n) - +e(o);
4
4
  }
5
5
  export {
6
- r as default,
7
- r as differenceInMilliseconds
6
+ t as differenceInMilliseconds
8
7
  };
@@ -1,11 +1,10 @@
1
- import { getRoundingMethod as t } from "./_lib/getRoundingMethod.js";
2
- import { millisecondsInMinute as r } from "./constants.js";
1
+ import { getRoundingMethod as r } from "./_lib/getRoundingMethod.js";
2
+ import { millisecondsInMinute as t } from "./constants.js";
3
3
  import { differenceInMilliseconds as f } from "./differenceInMilliseconds.js";
4
- function u(n, e, i) {
5
- const o = f(n, e) / r;
6
- return t(i?.roundingMethod)(o);
4
+ function s(n, e, i) {
5
+ const o = f(n, e) / t;
6
+ return r(i?.roundingMethod)(o);
7
7
  }
8
8
  export {
9
- u as default,
10
- u as differenceInMinutes
9
+ s as differenceInMinutes
11
10
  };
@@ -1,10 +1,9 @@
1
- import { getRoundingMethod as f } from "./_lib/getRoundingMethod.js";
2
- import { differenceInMilliseconds as i } from "./differenceInMilliseconds.js";
3
- function c(e, n, o) {
4
- const d = i(e, n) / 1e3;
5
- return f(o?.roundingMethod)(d);
1
+ import { getRoundingMethod as r } from "./_lib/getRoundingMethod.js";
2
+ import { differenceInMilliseconds as d } from "./differenceInMilliseconds.js";
3
+ function c(n, e, o) {
4
+ const i = d(n, e) / 1e3;
5
+ return r(o?.roundingMethod)(i);
6
6
  }
7
7
  export {
8
- c as default,
9
8
  c as differenceInSeconds
10
9
  };
@@ -10,11 +10,11 @@ function j(o, r, f) {
10
10
  const a = k(), n = a.locale ?? E, m = a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, p = a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, i = D(o, f?.in);
11
11
  if (!T(i))
12
12
  throw new RangeError("Invalid time value");
13
- let s = r.match(O).map((t) => {
13
+ let c = r.match(O).map((t) => {
14
14
  const e = t[0];
15
15
  if (e === "p" || e === "P") {
16
- const c = g[e];
17
- return c(t, n.formatLong);
16
+ const s = g[e];
17
+ return s(t, n.formatLong);
18
18
  }
19
19
  return t;
20
20
  }).join("").match(v).map((t) => {
@@ -31,18 +31,18 @@ function j(o, r, f) {
31
31
  );
32
32
  return { isToken: !1, value: t };
33
33
  });
34
- n.localize.preprocessor && (s = n.localize.preprocessor(i, s));
34
+ n.localize.preprocessor && (c = n.localize.preprocessor(i, c));
35
35
  const u = {
36
36
  firstWeekContainsDate: m,
37
37
  weekStartsOn: p,
38
38
  locale: n
39
39
  };
40
- return s.map((t) => {
40
+ return c.map((t) => {
41
41
  if (!t.isToken) return t.value;
42
42
  const e = t.value;
43
43
  (h(e) || d(e)) && w(e, r, String(o));
44
- const c = l[e[0]];
45
- return c(i, e, n.localize, u);
44
+ const s = l[e[0]];
45
+ return s(i, e, n.localize, u);
46
46
  }).join("");
47
47
  }
48
48
  function P(o) {
@@ -50,7 +50,6 @@ function P(o) {
50
50
  return r ? r[1].replace(x, "'") : o;
51
51
  }
52
52
  export {
53
- j as default,
54
53
  j as format,
55
54
  j as formatDate,
56
55
  l as formatters,
@@ -9,14 +9,13 @@ const p = [
9
9
  "minutes",
10
10
  "seconds"
11
11
  ];
12
- function x(r, e) {
13
- const a = i(), o = e?.locale ?? a.locale ?? d, c = e?.format ?? p, l = e?.zero ?? !1, f = e?.delimiter ?? " ";
14
- return o.formatDistance ? c.reduce((n, t) => {
15
- const m = `x${t.replace(/(^.)/, (u) => u.toUpperCase())}`, s = r[t];
16
- return s !== void 0 && (l || r[t]) ? n.concat(o.formatDistance(m, s)) : n;
17
- }, []).join(f) : "";
12
+ function x(s, e) {
13
+ const a = i(), t = e?.locale ?? a.locale ?? d, c = e?.format ?? p, l = e?.zero, u = e?.delimiter ?? " ";
14
+ return t.formatDistance ? c.reduce((r, o) => {
15
+ const f = `x${o.replace(/(^.)/, (m) => m.toUpperCase())}`, n = s[o];
16
+ return n !== void 0 && l ? r.concat(t.formatDistance(f, n)) : r;
17
+ }, []).join(u) : "";
18
18
  }
19
19
  export {
20
- x as default,
21
20
  x as formatDuration
22
21
  };
@@ -1,11 +1,10 @@
1
- import { differenceInCalendarDays as f } from "./differenceInCalendarDays.js";
1
+ import { differenceInCalendarDays as a } from "./differenceInCalendarDays.js";
2
2
  import { startOfYear as e } from "./startOfYear.js";
3
3
  import { toDate as o } from "./toDate.js";
4
- function c(t, a) {
5
- const r = o(t, a?.in);
6
- return f(r, e(r)) + 1;
4
+ function s(t, f) {
5
+ const r = o(t, f?.in);
6
+ return a(r, e(r)) + 1;
7
7
  }
8
8
  export {
9
- c as default,
10
- c as getDayOfYear
9
+ s as getDayOfYear
11
10
  };
@@ -2,11 +2,10 @@ import { millisecondsInWeek as f } from "./constants.js";
2
2
  import { startOfISOWeek as i } from "./startOfISOWeek.js";
3
3
  import { startOfISOWeekYear as m } from "./startOfISOWeekYear.js";
4
4
  import { toDate as n } from "./toDate.js";
5
- function O(e, o) {
5
+ function c(e, o) {
6
6
  const t = n(e, o?.in), r = +i(t) - +m(t);
7
7
  return Math.round(r / f) + 1;
8
8
  }
9
9
  export {
10
- O as default,
11
- O as getISOWeek
10
+ c as getISOWeek
12
11
  };
@@ -10,6 +10,5 @@ function Y(f, n) {
10
10
  return e.getTime() >= u.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
11
11
  }
12
12
  export {
13
- Y as default,
14
13
  Y as getISOWeekYear
15
14
  };