@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
@@ -1,151 +1,156 @@
1
- import { __exports as b } from "../../../../_virtual/DynamicResponsive.js";
2
- import _ from "react";
3
- function d(e) {
4
- "@babel/helpers - typeof";
5
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? d = function(n) {
6
- return typeof n;
7
- } : d = function(n) {
8
- return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
9
- }, d(e);
10
- }
11
- Object.defineProperty(b, "__esModule", {
12
- value: !0
13
- });
14
- b.createResponsiveComponents = C;
15
- var y = M(_);
16
- function M(e) {
17
- return e && e.__esModule ? e : { default: e };
18
- }
19
- function m(e) {
20
- for (var t = 1; t < arguments.length; t++) {
21
- var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
22
- typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(o) {
23
- return Object.getOwnPropertyDescriptor(n, o).enumerable;
24
- })), r.forEach(function(o) {
25
- f(e, o, n[o]);
26
- });
1
+ import { __exports as h } from "../../../../_virtual/DynamicResponsive.js";
2
+ import R from "react";
3
+ var _;
4
+ function k() {
5
+ if (_) return h;
6
+ _ = 1;
7
+ function d(e) {
8
+ "@babel/helpers - typeof";
9
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? d = function(n) {
10
+ return typeof n;
11
+ } : d = function(n) {
12
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
13
+ }, d(e);
27
14
  }
28
- return e;
29
- }
30
- function O(e, t) {
31
- if (!(e instanceof t))
32
- throw new TypeError("Cannot call a class as a function");
33
- }
34
- function w(e, t) {
35
- for (var n = 0; n < t.length; n++) {
36
- var r = t[n];
37
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
15
+ Object.defineProperty(h, "__esModule", {
16
+ value: !0
17
+ }), h.createResponsiveComponents = C;
18
+ var y = M(R);
19
+ function M(e) {
20
+ return e && e.__esModule ? e : { default: e };
38
21
  }
39
- }
40
- function Q(e, t, n) {
41
- return t && w(e.prototype, t), e;
42
- }
43
- function g(e, t) {
44
- if (t && (d(t) === "object" || typeof t == "function"))
45
- return t;
46
- if (t !== void 0)
47
- throw new TypeError("Derived constructors may only return object or undefined");
48
- return c(e);
49
- }
50
- function p(e) {
51
- return p = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
52
- return n.__proto__ || Object.getPrototypeOf(n);
53
- }, p(e);
54
- }
55
- function P(e, t) {
56
- if (typeof t != "function" && t !== null)
57
- throw new TypeError("Super expression must either be null or a function");
58
- e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && v(e, t);
59
- }
60
- function v(e, t) {
61
- return v = Object.setPrototypeOf || function(r, o) {
62
- return r.__proto__ = o, r;
63
- }, v(e, t);
64
- }
65
- function c(e) {
66
- if (e === void 0)
67
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
68
- return e;
69
- }
70
- function f(e, t, n) {
71
- return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
72
- }
73
- var S = function(t, n) {
74
- for (var r in t)
75
- if (t[r] !== n[r]) return !1;
76
- return !0;
77
- };
78
- function C() {
79
- var e = y.default.createContext({});
80
- e.displayName = "Media.DynamicContext";
81
- var t = e.Consumer;
82
- return {
83
- Consumer: t,
84
- Provider: /* @__PURE__ */ function(n) {
85
- P(r, n);
86
- function r(o) {
87
- var i;
88
- O(this, r), i = g(this, p(r).call(this, o)), f(c(c(i)), "isSupportedEnvironment", function() {
89
- return typeof window < "u" && typeof window.matchMedia < "u";
90
- }), f(c(c(i)), "setupMatchers", function(a) {
91
- return Object.keys(a).reduce(function(s, l) {
92
- return m({}, s, f({}, l, window.matchMedia(a[l])));
93
- }, {});
94
- }), f(c(c(i)), "checkMatchers", function(a) {
95
- return Object.keys(a).reduce(function(s, l) {
96
- return m({}, s, f({}, l, a[l].matches));
97
- }, {});
98
- }), f(c(c(i)), "mediaQueryStatusChangedCallback", function() {
99
- var a = i.checkMatchers(i.state.mediaQueryMatchers);
100
- i.setState({
101
- mediaQueryMatches: a
102
- });
103
- });
104
- var u = void 0, h;
105
- return i.isSupportedEnvironment() ? (u = i.setupMatchers(o.mediaQueries), h = i.checkMatchers(u)) : h = Object.keys(o.mediaQueries).reduce(function(a, s) {
106
- return m({}, a, f({}, s, !!o.initialMatchingMediaQueries && o.initialMatchingMediaQueries.includes(s)));
107
- }, {}), i.state = {
108
- mediaQueryMatchers: u,
109
- mediaQueryMatches: h
110
- }, i;
111
- }
112
- return Q(r, [{
113
- key: "componentDidMount",
114
- // Lifecycle methods
115
- value: function() {
116
- if (this.state.mediaQueryMatchers) {
117
- var i = this.mediaQueryStatusChangedCallback;
118
- Object.values(this.state.mediaQueryMatchers).forEach(function(u) {
119
- u.addListener(i);
22
+ function m(e) {
23
+ for (var t = 1; t < arguments.length; t++) {
24
+ var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
25
+ typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(o) {
26
+ return Object.getOwnPropertyDescriptor(n, o).enumerable;
27
+ })), r.forEach(function(o) {
28
+ f(e, o, n[o]);
29
+ });
30
+ }
31
+ return e;
32
+ }
33
+ function O(e, t) {
34
+ if (!(e instanceof t))
35
+ throw new TypeError("Cannot call a class as a function");
36
+ }
37
+ function w(e, t) {
38
+ for (var n = 0; n < t.length; n++) {
39
+ var r = t[n];
40
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
41
+ }
42
+ }
43
+ function Q(e, t, n) {
44
+ return t && w(e.prototype, t), e;
45
+ }
46
+ function g(e, t) {
47
+ if (t && (d(t) === "object" || typeof t == "function"))
48
+ return t;
49
+ if (t !== void 0)
50
+ throw new TypeError("Derived constructors may only return object or undefined");
51
+ return u(e);
52
+ }
53
+ function p(e) {
54
+ return p = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
55
+ return n.__proto__ || Object.getPrototypeOf(n);
56
+ }, p(e);
57
+ }
58
+ function P(e, t) {
59
+ if (typeof t != "function" && t !== null)
60
+ throw new TypeError("Super expression must either be null or a function");
61
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && v(e, t);
62
+ }
63
+ function v(e, t) {
64
+ return v = Object.setPrototypeOf || function(r, o) {
65
+ return r.__proto__ = o, r;
66
+ }, v(e, t);
67
+ }
68
+ function u(e) {
69
+ if (e === void 0)
70
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
71
+ return e;
72
+ }
73
+ function f(e, t, n) {
74
+ return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
75
+ }
76
+ var S = function(t, n) {
77
+ for (var r in t)
78
+ if (t[r] !== n[r]) return !1;
79
+ return !0;
80
+ };
81
+ function C() {
82
+ var e = y.default.createContext({});
83
+ e.displayName = "Media.DynamicContext";
84
+ var t = e.Consumer;
85
+ return {
86
+ Consumer: t,
87
+ Provider: /* @__PURE__ */ (function(n) {
88
+ P(r, n);
89
+ function r(o) {
90
+ var i;
91
+ O(this, r), i = g(this, p(r).call(this, o)), f(u(u(i)), "isSupportedEnvironment", function() {
92
+ return typeof window < "u" && typeof window.matchMedia < "u";
93
+ }), f(u(u(i)), "setupMatchers", function(c) {
94
+ return Object.keys(c).reduce(function(s, l) {
95
+ return m({}, s, f({}, l, window.matchMedia(c[l])));
96
+ }, {});
97
+ }), f(u(u(i)), "checkMatchers", function(c) {
98
+ return Object.keys(c).reduce(function(s, l) {
99
+ return m({}, s, f({}, l, c[l].matches));
100
+ }, {});
101
+ }), f(u(u(i)), "mediaQueryStatusChangedCallback", function() {
102
+ var c = i.checkMatchers(i.state.mediaQueryMatchers);
103
+ i.setState({
104
+ mediaQueryMatches: c
120
105
  });
121
- }
106
+ });
107
+ var a = void 0, b;
108
+ return i.isSupportedEnvironment() ? (a = i.setupMatchers(o.mediaQueries), b = i.checkMatchers(a)) : b = Object.keys(o.mediaQueries).reduce(function(c, s) {
109
+ return m({}, c, f({}, s, !!o.initialMatchingMediaQueries && o.initialMatchingMediaQueries.includes(s)));
110
+ }, {}), i.state = {
111
+ mediaQueryMatchers: a,
112
+ mediaQueryMatches: b
113
+ }, i;
122
114
  }
123
- }, {
124
- key: "componentWillUnmount",
125
- value: function() {
126
- if (this.state.mediaQueryMatchers) {
127
- var i = this.mediaQueryStatusChangedCallback;
128
- Object.values(this.state.mediaQueryMatchers).forEach(function(u) {
129
- return u.removeListener(i);
130
- });
115
+ return Q(r, [{
116
+ key: "componentDidMount",
117
+ // Lifecycle methods
118
+ value: function() {
119
+ if (this.state.mediaQueryMatchers) {
120
+ var i = this.mediaQueryStatusChangedCallback;
121
+ Object.values(this.state.mediaQueryMatchers).forEach(function(a) {
122
+ a.addListener(i);
123
+ });
124
+ }
131
125
  }
132
- }
133
- }, {
134
- key: "shouldComponentUpdate",
135
- value: function(i, u) {
136
- return this.state.mediaQueryMatchers ? i.children !== this.props.children ? !0 : !S(this.state.mediaQueryMatches, u.mediaQueryMatches) : !1;
137
- }
138
- }, {
139
- key: "render",
140
- value: function() {
141
- return y.default.createElement(e.Provider, {
142
- value: this.state.mediaQueryMatches
143
- }, this.props.children);
144
- }
145
- }]), r;
146
- }(y.default.Component)
147
- };
126
+ }, {
127
+ key: "componentWillUnmount",
128
+ value: function() {
129
+ if (this.state.mediaQueryMatchers) {
130
+ var i = this.mediaQueryStatusChangedCallback;
131
+ Object.values(this.state.mediaQueryMatchers).forEach(function(a) {
132
+ return a.removeListener(i);
133
+ });
134
+ }
135
+ }
136
+ }, {
137
+ key: "shouldComponentUpdate",
138
+ value: function(i, a) {
139
+ return this.state.mediaQueryMatchers ? i.children !== this.props.children ? !0 : !S(this.state.mediaQueryMatches, a.mediaQueryMatches) : !1;
140
+ }
141
+ }, {
142
+ key: "render",
143
+ value: function() {
144
+ return y.default.createElement(e.Provider, {
145
+ value: this.state.mediaQueryMatches
146
+ }, this.props.children);
147
+ }
148
+ }]), r;
149
+ })(y.default.Component)
150
+ };
151
+ }
152
+ return h;
148
153
  }
149
154
  export {
150
- b as default
155
+ k as __require
151
156
  };
@@ -1,138 +1,139 @@
1
- import { __exports as u } from "../../../../_virtual/Interactions.js";
2
- import "./Utils.js";
3
- import { __exports as p } from "../../../../_virtual/Utils.js";
4
- Object.defineProperty(u, "__esModule", {
5
- value: !0
6
- });
7
- u.Interactions = u.InteractionKey = void 0;
8
- var y = p;
9
- function h(e) {
10
- for (var r = 1; r < arguments.length; r++) {
11
- var t = arguments[r] != null ? Object(arguments[r]) : {}, n = Object.keys(t);
12
- typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(t).filter(function(a) {
13
- return Object.getOwnPropertyDescriptor(t, a).enumerable;
14
- })), n.forEach(function(a) {
15
- f(e, a, t[a]);
16
- });
1
+ import { __exports as a } from "../../../../_virtual/Interactions.js";
2
+ import { __require as T } from "./Utils.js";
3
+ var v;
4
+ function C() {
5
+ if (v) return a;
6
+ v = 1, Object.defineProperty(a, "__esModule", {
7
+ value: !0
8
+ }), a.Interactions = a.InteractionKey = void 0;
9
+ var s = T();
10
+ function h(e) {
11
+ for (var r = 1; r < arguments.length; r++) {
12
+ var t = arguments[r] != null ? Object(arguments[r]) : {}, n = Object.keys(t);
13
+ typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(t).filter(function(i) {
14
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
15
+ })), n.forEach(function(i) {
16
+ f(e, i, t[i]);
17
+ });
18
+ }
19
+ return e;
17
20
  }
18
- return e;
19
- }
20
- function g(e) {
21
- return A(e) || O(e) || _(e) || I();
22
- }
23
- function I() {
24
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
21
+ function p(e) {
22
+ return O(e) || I(e) || b(e) || g();
23
+ }
24
+ function g() {
25
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
26
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
26
- }
27
- function O(e) {
28
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
29
- }
30
- function A(e) {
31
- if (Array.isArray(e)) return c(e);
32
- }
33
- function b(e, r) {
34
- return w(e) || j(e, r) || _(e, r) || S();
35
- }
36
- function S() {
37
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ }
28
+ function I(e) {
29
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
30
+ }
31
+ function O(e) {
32
+ if (Array.isArray(e)) return c(e);
33
+ }
34
+ function y(e, r) {
35
+ return j(e) || S(e, r) || b(e, r) || A();
36
+ }
37
+ function A() {
38
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
38
39
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
39
- }
40
- function _(e, r) {
41
- if (e) {
42
- if (typeof e == "string") return c(e, r);
43
- var t = Object.prototype.toString.call(e).slice(8, -1);
44
- if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
45
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return c(e, r);
46
40
  }
47
- }
48
- function c(e, r) {
49
- (r == null || r > e.length) && (r = e.length);
50
- for (var t = 0, n = new Array(r); t < r; t++)
51
- n[t] = e[t];
52
- return n;
53
- }
54
- function j(e, r) {
55
- var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
56
- if (t != null) {
57
- var n = [], a = !0, i = !1, o, s;
58
- try {
59
- for (t = t.call(e); !(a = (o = t.next()).done) && (n.push(o.value), !(r && n.length === r)); a = !0)
60
- ;
61
- } catch (v) {
62
- i = !0, s = v;
63
- } finally {
41
+ function b(e, r) {
42
+ if (e) {
43
+ if (typeof e == "string") return c(e, r);
44
+ var t = Object.prototype.toString.call(e).slice(8, -1);
45
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
46
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return c(e, r);
47
+ }
48
+ }
49
+ function c(e, r) {
50
+ (r == null || r > e.length) && (r = e.length);
51
+ for (var t = 0, n = new Array(r); t < r; t++)
52
+ n[t] = e[t];
53
+ return n;
54
+ }
55
+ function S(e, r) {
56
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
57
+ if (t != null) {
58
+ var n = [], i = !0, u = !1, o, m;
64
59
  try {
65
- !a && t.return != null && t.return();
60
+ for (t = t.call(e); !(i = (o = t.next()).done) && (n.push(o.value), !(r && n.length === r)); i = !0)
61
+ ;
62
+ } catch (R) {
63
+ u = !0, m = R;
66
64
  } finally {
67
- if (i) throw s;
65
+ try {
66
+ !i && t.return != null && t.return();
67
+ } finally {
68
+ if (u) throw m;
69
+ }
68
70
  }
71
+ return n;
69
72
  }
70
- return n;
71
73
  }
72
- }
73
- function w(e) {
74
- if (Array.isArray(e)) return e;
75
- }
76
- function k(e, r) {
77
- if (!(e instanceof r))
78
- throw new TypeError("Cannot call a class as a function");
79
- }
80
- function m(e, r) {
81
- for (var t = 0; t < r.length; t++) {
82
- var n = r[t];
83
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
74
+ function j(e) {
75
+ if (Array.isArray(e)) return e;
84
76
  }
85
- }
86
- function d(e, r, t) {
87
- return r && m(e.prototype, r), t && m(e, t), e;
88
- }
89
- function f(e, r, t) {
90
- return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
91
- }
92
- var l;
93
- u.InteractionKey = l;
94
- (function(e) {
95
- e.interaction = "interaction";
96
- })(l || (u.InteractionKey = l = {}));
97
- var T = /* @__PURE__ */ function() {
98
- d(e, null, [{
99
- key: "validKeys",
100
- value: function() {
101
- return [l.interaction];
102
- }
103
- }]);
104
- function e(r) {
105
- k(this, e), f(this, "_interactions", void 0), this._interactions = r;
77
+ function w(e, r) {
78
+ if (!(e instanceof r))
79
+ throw new TypeError("Cannot call a class as a function");
106
80
  }
107
- return d(e, [{
108
- key: "toRuleSets",
109
- value: function() {
110
- return Object.entries(this._interactions).reduce(function(t, n) {
111
- var a = b(n, 2), i = a[0], o = a[1];
112
- return g(t).concat([(0, y.createRuleSet)((0, y.createClassName)(l.interaction, i), o)]);
113
- }, []);
114
- }
115
- }, {
116
- key: "shouldRenderMediaQuery",
117
- value: function(t, n) {
118
- return !!(n && n.includes(t));
119
- }
120
- }, {
121
- key: "interactions",
122
- get: function() {
123
- return Object.keys(this._interactions);
81
+ function _(e, r) {
82
+ for (var t = 0; t < r.length; t++) {
83
+ var n = r[t];
84
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
124
85
  }
125
- }, {
126
- key: "dynamicResponsiveMediaQueries",
127
- get: function() {
128
- return Object.entries(this._interactions).reduce(function(t, n) {
129
- var a = b(n, 2), i = a[0], o = a[1];
130
- return h({}, t, f({}, i, o));
131
- }, {});
86
+ }
87
+ function d(e, r, t) {
88
+ return r && _(e.prototype, r), t && _(e, t), e;
89
+ }
90
+ function f(e, r, t) {
91
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
92
+ }
93
+ var l;
94
+ a.InteractionKey = l, (function(e) {
95
+ e.interaction = "interaction";
96
+ })(l || (a.InteractionKey = l = {}));
97
+ var k = /* @__PURE__ */ (function() {
98
+ d(e, null, [{
99
+ key: "validKeys",
100
+ value: function() {
101
+ return [l.interaction];
102
+ }
103
+ }]);
104
+ function e(r) {
105
+ w(this, e), f(this, "_interactions", void 0), this._interactions = r;
132
106
  }
133
- }]), e;
134
- }();
135
- u.Interactions = T;
107
+ return d(e, [{
108
+ key: "toRuleSets",
109
+ value: function() {
110
+ return Object.entries(this._interactions).reduce(function(t, n) {
111
+ var i = y(n, 2), u = i[0], o = i[1];
112
+ return p(t).concat([(0, s.createRuleSet)((0, s.createClassName)(l.interaction, u), o)]);
113
+ }, []);
114
+ }
115
+ }, {
116
+ key: "shouldRenderMediaQuery",
117
+ value: function(t, n) {
118
+ return !!(n && n.includes(t));
119
+ }
120
+ }, {
121
+ key: "interactions",
122
+ get: function() {
123
+ return Object.keys(this._interactions);
124
+ }
125
+ }, {
126
+ key: "dynamicResponsiveMediaQueries",
127
+ get: function() {
128
+ return Object.entries(this._interactions).reduce(function(t, n) {
129
+ var i = y(n, 2), u = i[0], o = i[1];
130
+ return h({}, t, f({}, u, o));
131
+ }, {});
132
+ }
133
+ }]), e;
134
+ })();
135
+ return a.Interactions = k, a;
136
+ }
136
137
  export {
137
- u as default
138
+ C as __require
138
139
  };