@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.
- package/dist/_virtual/_commonjsHelpers.js +15 -10
- package/dist/_virtual/index.js +5 -2
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index12.js +4 -0
- package/dist/_virtual/index13.js +4 -0
- package/dist/_virtual/index14.js +5 -0
- package/dist/_virtual/index15.js +5 -0
- package/dist/_virtual/index16.js +7 -0
- package/dist/_virtual/index17.js +4 -0
- package/dist/_virtual/index18.js +4 -0
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -4
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +3 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Accordion/utils.js +1 -1
- package/dist/components/AddToCalendar/AddToCalendar.js +1 -1
- package/dist/components/AddToCalendar/calendarLinks.js +10 -10
- package/dist/components/Article/Article.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/components/Button/Button.d.ts +5 -1
- package/dist/components/Button/Button.js +49 -47
- package/dist/components/Button/Button.stories.d.ts +34 -5
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/types.d.ts +4 -1
- package/dist/components/Button/types.js +2 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/CarouselArrows.js +1 -1
- package/dist/components/Carousel/CarouselContent.js +1 -1
- package/dist/components/Carousel/CarouselDot.js +1 -1
- package/dist/components/Carousel/CarouselDots.js +1 -1
- package/dist/components/Carousel/CarouselItem.js +1 -1
- package/dist/components/Collapsible/Collapsible.js +1 -1
- package/dist/components/Collapsible/CollapsibleContent.js +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.js +1 -1
- package/dist/components/ComboBox/ComboBox.js +16 -16
- package/dist/components/ComposedModal/ComposedModal.js +1 -1
- package/dist/components/ContentPeek/ContentPeek.js +1 -1
- package/dist/components/Countdown/Countdown.js +10 -10
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +1 -1
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js +1 -1
- package/dist/components/Detail/Detail.js +1 -1
- package/dist/components/DetailList/DetailList.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/ExitGateCard/ExitGateCard.js +1 -1
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/FilterHeader.js +1 -1
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/Grid/Grid.stories.d.ts +1 -1
- package/dist/components/Grid/utils.js +1 -1
- package/dist/components/GridItem/GridItem.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/utils.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/LinkBlock/LinkBlock.js +1 -1
- package/dist/components/LinkList/LinkList.js +1 -1
- package/dist/components/Loader/Loader.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Navigation/Navigation.js +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.stories.d.ts +1 -1
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +1 -1
- package/dist/components/Navigation/NavigationList/NavigationList.js +1 -1
- package/dist/components/NotificationBanner/NotificationBanner.js +1 -1
- package/dist/components/PageContentWrapper/PageContentWrapper.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pictogram/Pictogram.js +1 -1
- package/dist/components/PinchZoom/PinchZoom.js +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/dist/components/Row/Row.js +5 -5
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Search/Search.stories.d.ts +1 -1
- package/dist/components/SeldonImage/SeldonImage.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/SplitPanel/SplitPanel.js +1 -1
- package/dist/components/Tabs/TabsContainer.js +1 -1
- package/dist/components/Tabs/TabsContent.js +1 -1
- package/dist/components/Tags/Tags.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/utils.js +1 -0
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/components/TextSymbol/TextSymbol.js +16 -16
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Video/Video.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +225 -224
- package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +261 -260
- package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +148 -143
- package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +124 -123
- package/dist/node_modules/@artsy/fresnel/dist/Media.js +158 -157
- package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +120 -120
- package/dist/node_modules/@artsy/fresnel/dist/Utils.js +85 -87
- package/dist/node_modules/@artsy/fresnel/dist/index.js +25 -21
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +12 -12
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +9 -9
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +23 -24
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +3 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +17 -18
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-collection/dist/index.js +3 -1
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +14 -15
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +21 -22
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +16 -17
- package/dist/node_modules/@radix-ui/react-toast/dist/index.js +43 -44
- package/dist/node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.js +3 -1
- package/dist/node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/change-case/dist/index.js +20 -20
- package/dist/node_modules/classnames/index.js +33 -38
- package/dist/node_modules/date-fns/_lib/format/formatters.js +51 -20
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -3
- package/dist/node_modules/date-fns/addHours.js +4 -5
- package/dist/node_modules/date-fns/addMilliseconds.js +4 -5
- package/dist/node_modules/date-fns/constants.js +1 -1
- package/dist/node_modules/date-fns/constructFrom.js +1 -2
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +4 -5
- package/dist/node_modules/date-fns/differenceInDays.js +8 -9
- package/dist/node_modules/date-fns/differenceInHours.js +8 -9
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +3 -4
- package/dist/node_modules/date-fns/differenceInMinutes.js +6 -7
- package/dist/node_modules/date-fns/differenceInSeconds.js +5 -6
- package/dist/node_modules/date-fns/format.js +7 -8
- package/dist/node_modules/date-fns/formatDuration.js +6 -7
- package/dist/node_modules/date-fns/getDayOfYear.js +5 -6
- package/dist/node_modules/date-fns/getISOWeek.js +2 -3
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/getWeek.js +5 -6
- package/dist/node_modules/date-fns/getWeekYear.js +5 -6
- package/dist/node_modules/date-fns/isAfter.js +2 -3
- package/dist/node_modules/date-fns/isDate.js +0 -1
- package/dist/node_modules/date-fns/isSameWeek.js +5 -6
- package/dist/node_modules/date-fns/isValid.js +4 -5
- package/dist/node_modules/date-fns/locale/en-US.js +8 -9
- package/dist/node_modules/date-fns/locale/zh-CN.js +8 -9
- package/dist/node_modules/date-fns/startOfDay.js +4 -5
- package/dist/node_modules/date-fns/startOfISOWeek.js +2 -3
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
- package/dist/node_modules/date-fns/startOfWeek.js +5 -6
- package/dist/node_modules/date-fns/startOfWeekYear.js +2 -3
- package/dist/node_modules/date-fns/startOfYear.js +4 -5
- package/dist/node_modules/date-fns/toDate.js +3 -4
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +6 -7
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +0 -1
- package/dist/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js +1 -1
- package/dist/node_modules/ics/dist/defaults.js +21 -19
- package/dist/node_modules/ics/dist/index.js +103 -104
- package/dist/node_modules/ics/dist/pipeline/build.js +47 -45
- package/dist/node_modules/ics/dist/pipeline/format.js +61 -61
- package/dist/node_modules/ics/dist/pipeline/index.js +56 -53
- package/dist/node_modules/ics/dist/pipeline/validate.js +21 -16
- package/dist/node_modules/ics/dist/schema/index.js +203 -201
- package/dist/node_modules/ics/dist/utils/encode-new-lines.js +15 -9
- package/dist/node_modules/ics/dist/utils/encode-param-value.js +15 -9
- package/dist/node_modules/ics/dist/utils/fold-line.js +19 -13
- package/dist/node_modules/ics/dist/utils/format-date.js +66 -60
- package/dist/node_modules/ics/dist/utils/format-duration.js +16 -10
- package/dist/node_modules/ics/dist/utils/format-text.js +15 -9
- package/dist/node_modules/ics/dist/utils/index.js +81 -86
- package/dist/node_modules/ics/dist/utils/set-alarm.js +47 -44
- package/dist/node_modules/ics/dist/utils/set-contact.js +23 -18
- package/dist/node_modules/ics/dist/utils/set-description.js +20 -15
- package/dist/node_modules/ics/dist/utils/set-geolocation.js +16 -10
- package/dist/node_modules/ics/dist/utils/set-location.js +20 -15
- package/dist/node_modules/ics/dist/utils/set-organizer.js +21 -16
- package/dist/node_modules/ics/dist/utils/set-summary.js +20 -15
- package/dist/node_modules/libphonenumber-js/es6/metadata.js +5 -5
- package/dist/node_modules/lodash.debounce/index.js +85 -3
- package/dist/node_modules/nanoid/index.browser.js +1 -1
- package/dist/node_modules/object-assign/index.js +0 -5
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/node_modules/prop-types/index.js +13 -11
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +3 -11
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -9
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/property-expr/index.js +78 -73
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +3 -3
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +9 -9
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +3 -3
- package/dist/node_modules/react-transition-group/esm/Transition.js +3 -3
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.js +2 -3
- package/dist/node_modules/runes2/dist/index.cjs.production.min.js +8 -8
- package/dist/node_modules/runes2/dist/index.js +8 -6
- package/dist/node_modules/tiny-case/index.js +20 -15
- package/dist/node_modules/toposort/index.js +57 -56
- package/dist/node_modules/usehooks-ts/dist/index.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -9
- package/dist/node_modules/wheel-gestures/dist/wheel-gestures.esm.js +2 -2
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/pages/Page.stories.d.ts +1 -1
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +1 -1
- package/dist/patterns/BidSnapshot/BidMessage.js +1 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +1 -1
- package/dist/patterns/CountryPicker/CountryPicker.stories.d.ts +1 -1
- package/dist/patterns/CountryPicker/CountryPickerModal.stories.d.ts +1 -1
- package/dist/patterns/CountryPicker/CountryPickerOption.js +1 -1
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +1 -1
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +1 -1
- package/dist/patterns/FilterMenu/FilterMenu.js +1 -1
- package/dist/patterns/FiltersInline/FilterButton.js +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +1 -1
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +1 -1
- package/dist/patterns/FiltersInline/FiltersInline.js +1 -1
- package/dist/patterns/FiltersInline/MainFilterDropdown.js +1 -1
- package/dist/patterns/HeroBanner/HeroBanner.js +1 -1
- package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
- package/dist/patterns/LanguageSelector/LanguageSelector.js +1 -1
- package/dist/patterns/ObjectTile/ObjectTile.js +1 -1
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +4 -4
- package/dist/patterns/ProgressWizard/ProgressWizard.stories.d.ts +8 -8
- package/dist/patterns/SaleCard/SaleCard.js +2 -2
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +1 -1
- package/dist/patterns/Social/Social.js +1 -1
- package/dist/patterns/Subscribe/Subscribe.js +1 -1
- package/dist/patterns/TextBanner/TextBanner.js +1 -1
- package/dist/patterns/UserManagement/UserManagement.js +1 -1
- package/dist/patterns/UserManagement/UserManagement.stories.d.ts +1 -1
- package/dist/patterns/ViewingDetails/ViewingDetails.js +1 -1
- package/dist/patterns/ViewingsList/ViewingsList.js +5 -5
- package/dist/patterns/ViewingsList/ViewingsListCard.js +38 -29
- package/dist/patterns/ViewingsList/ViewingsListCardForm.js +1 -1
- package/dist/providers/SeldonProvider/utils.js +4 -5
- package/dist/scss/componentStyles.scss +1 -0
- package/dist/scss/components/Button/_button.scss +21 -35
- package/dist/scss/components/Button/_button.stories.scss +76 -0
- package/dist/scss/components/DatePicker/_datePicker.scss +2 -2
- package/dist/scss/components/Drawer/_drawer.scss +1 -1
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.stories.scss +0 -2
- package/dist/site-furniture/Footer/Footer.js +1 -1
- package/dist/site-furniture/Header/Header.js +1 -1
- package/package.json +27 -30
|
@@ -1,151 +1,156 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
function
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
e
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
155
|
+
k as __require
|
|
151
156
|
};
|
|
@@ -1,138 +1,139 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import "./Utils.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
function
|
|
37
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
87
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
|
|
138
|
+
C as __require
|
|
138
139
|
};
|