@phillips/seldon 1.237.0 → 1.239.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/FiltersInline/_filterButton.scss +3 -3
- 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,281 +1,282 @@
|
|
|
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 v } from "../../../../_virtual/Breakpoints.js";
|
|
2
|
+
import { __require as N } from "./Utils.js";
|
|
3
|
+
var O;
|
|
4
|
+
function R() {
|
|
5
|
+
if (O) return v;
|
|
6
|
+
O = 1, Object.defineProperty(v, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), v.Breakpoints = v.BreakpointConstraint = void 0;
|
|
9
|
+
var g = N();
|
|
10
|
+
function x(t) {
|
|
11
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12
|
+
var e = arguments[r] != null ? Object(arguments[r]) : {}, n = Object.keys(e);
|
|
13
|
+
typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(e).filter(function(s) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
15
|
+
})), n.forEach(function(s) {
|
|
16
|
+
h(t, s, e[s]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
17
20
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function E() {
|
|
24
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
+
function p(t) {
|
|
22
|
+
return q(t) || A(t) || T(t) || E();
|
|
23
|
+
}
|
|
24
|
+
function E() {
|
|
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 A(t) {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
function
|
|
37
|
-
|
|
27
|
+
}
|
|
28
|
+
function A(t) {
|
|
29
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
30
|
+
}
|
|
31
|
+
function q(t) {
|
|
32
|
+
if (Array.isArray(t)) return B(t);
|
|
33
|
+
}
|
|
34
|
+
function m(t, r) {
|
|
35
|
+
return M(t) || S(t, r) || T(t, r) || Q();
|
|
36
|
+
}
|
|
37
|
+
function Q() {
|
|
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 w(t, r) {
|
|
41
|
-
if (t) {
|
|
42
|
-
if (typeof t == "string") return k(t, r);
|
|
43
|
-
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
44
|
-
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
|
|
45
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return k(t, r);
|
|
46
40
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
function T(t, r) {
|
|
42
|
+
if (t) {
|
|
43
|
+
if (typeof t == "string") return B(t, r);
|
|
44
|
+
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
45
|
+
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
|
|
46
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return B(t, r);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function B(t, r) {
|
|
50
|
+
(r == null || r > t.length) && (r = t.length);
|
|
51
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
52
|
+
n[e] = t[e];
|
|
53
|
+
return n;
|
|
54
|
+
}
|
|
55
|
+
function S(t, r) {
|
|
56
|
+
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
57
|
+
if (e != null) {
|
|
58
|
+
var n = [], s = !0, a = !1, i, u;
|
|
64
59
|
try {
|
|
65
|
-
!s
|
|
60
|
+
for (e = e.call(t); !(s = (i = e.next()).done) && (n.push(i.value), !(r && n.length === r)); s = !0)
|
|
61
|
+
;
|
|
62
|
+
} catch (o) {
|
|
63
|
+
a = !0, u = o;
|
|
66
64
|
} finally {
|
|
67
|
-
|
|
65
|
+
try {
|
|
66
|
+
!s && e.return != null && e.return();
|
|
67
|
+
} finally {
|
|
68
|
+
if (a) throw u;
|
|
69
|
+
}
|
|
68
70
|
}
|
|
71
|
+
return n;
|
|
69
72
|
}
|
|
70
|
-
return n;
|
|
71
73
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (Array.isArray(t)) return t;
|
|
75
|
-
}
|
|
76
|
-
function q(t, r) {
|
|
77
|
-
if (!(t instanceof r))
|
|
78
|
-
throw new TypeError("Cannot call a class as a function");
|
|
79
|
-
}
|
|
80
|
-
function T(t, r) {
|
|
81
|
-
for (var e = 0; e < r.length; e++) {
|
|
82
|
-
var n = r[e];
|
|
83
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
74
|
+
function M(t) {
|
|
75
|
+
if (Array.isArray(t)) return t;
|
|
84
76
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return Array.isArray(t) ? t.join("-") : t;
|
|
94
|
-
}
|
|
95
|
-
var l;
|
|
96
|
-
y.BreakpointConstraint = l;
|
|
97
|
-
(function(t) {
|
|
98
|
-
t.at = "at", t.lessThan = "lessThan", t.greaterThan = "greaterThan", t.greaterThanOrEqual = "greaterThanOrEqual", t.between = "between";
|
|
99
|
-
})(l || (y.BreakpointConstraint = l = {}));
|
|
100
|
-
var C = /* @__PURE__ */ function() {
|
|
101
|
-
b(t, null, [{
|
|
102
|
-
key: "validKeys",
|
|
103
|
-
value: function() {
|
|
104
|
-
return [l.at, l.lessThan, l.greaterThan, l.greaterThanOrEqual, l.between];
|
|
77
|
+
function j(t, r) {
|
|
78
|
+
if (!(t instanceof r))
|
|
79
|
+
throw new TypeError("Cannot call a class as a function");
|
|
80
|
+
}
|
|
81
|
+
function b(t, r) {
|
|
82
|
+
for (var e = 0; e < r.length; e++) {
|
|
83
|
+
var n = r[e];
|
|
84
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
105
85
|
}
|
|
106
|
-
}]);
|
|
107
|
-
function t(r) {
|
|
108
|
-
var e = this, n;
|
|
109
|
-
q(this, t), h(this, "_sortedBreakpoints", void 0), h(this, "_breakpoints", void 0), h(this, "_mediaQueries", void 0), h(this, "findBreakpointsForWidths", function(a, i) {
|
|
110
|
-
var u = e.findBreakpointAtWidth(a);
|
|
111
|
-
if (u) {
|
|
112
|
-
var o = e.findBreakpointAtWidth(i);
|
|
113
|
-
return !o || u === o ? [u] : e._sortedBreakpoints.slice(e._sortedBreakpoints.indexOf(u), e._sortedBreakpoints.indexOf(o) + 1);
|
|
114
|
-
}
|
|
115
|
-
}), h(this, "findBreakpointAtWidth", function(a) {
|
|
116
|
-
return e._sortedBreakpoints.find(function(i, u) {
|
|
117
|
-
var o = e._sortedBreakpoints[u + 1];
|
|
118
|
-
return o ? a >= e._breakpoints[i] && a < e._breakpoints[o] : a >= e._breakpoints[i];
|
|
119
|
-
});
|
|
120
|
-
}), h(this, "valuesWithBreakpointProps", function(a) {
|
|
121
|
-
var i = a.length, u = [], o;
|
|
122
|
-
return e._sortedBreakpoints.forEach(function(f, d) {
|
|
123
|
-
var _ = a[d];
|
|
124
|
-
d < i && (!o || o[0] !== _) ? (o = [_, [f]], u.push(o)) : o[1].push(f);
|
|
125
|
-
}), u.map(function(f, d) {
|
|
126
|
-
var _ = B(f, 2), m = _[0], v = _[1], c = {};
|
|
127
|
-
return d === u.length - 1 ? c.greaterThanOrEqual = v[0] : v.length === 1 ? c.at = v[0] : c.between = [v[0], u[d + 1][1][0]], [m, c];
|
|
128
|
-
});
|
|
129
|
-
}), this._breakpoints = r, this._sortedBreakpoints = Object.keys(r).map(function(a) {
|
|
130
|
-
return [a, r[a]];
|
|
131
|
-
}).sort(function(a, i) {
|
|
132
|
-
return a[1] < i[1] ? -1 : 1;
|
|
133
|
-
}).map(function(a) {
|
|
134
|
-
return a[0];
|
|
135
|
-
});
|
|
136
|
-
var s = this._sortedBreakpoints.slice(0, -1).reduce(function(a, i, u) {
|
|
137
|
-
return p(a).concat(p(e._sortedBreakpoints.slice(u + 1).map(function(o) {
|
|
138
|
-
return [i, o];
|
|
139
|
-
})));
|
|
140
|
-
}, []);
|
|
141
|
-
this._mediaQueries = (n = {}, h(n, l.at, this._createBreakpointQueries(l.at, this._sortedBreakpoints)), h(n, l.lessThan, this._createBreakpointQueries(l.lessThan, this._sortedBreakpoints.slice(1))), h(n, l.greaterThan, this._createBreakpointQueries(l.greaterThan, this._sortedBreakpoints.slice(0, -1))), h(n, l.greaterThanOrEqual, this._createBreakpointQueries(l.greaterThanOrEqual, this._sortedBreakpoints)), h(n, l.between, this._createBreakpointQueries(l.between, s)), n);
|
|
142
86
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
87
|
+
function w(t, r, e) {
|
|
88
|
+
return r && b(t.prototype, r), e && b(t, e), t;
|
|
89
|
+
}
|
|
90
|
+
function h(t, r, e) {
|
|
91
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
92
|
+
}
|
|
93
|
+
function I(t) {
|
|
94
|
+
return Array.isArray(t) ? t.join("-") : t;
|
|
95
|
+
}
|
|
96
|
+
var l;
|
|
97
|
+
v.BreakpointConstraint = l, (function(t) {
|
|
98
|
+
t.at = "at", t.lessThan = "lessThan", t.greaterThan = "greaterThan", t.greaterThanOrEqual = "greaterThanOrEqual", t.between = "between";
|
|
99
|
+
})(l || (v.BreakpointConstraint = l = {}));
|
|
100
|
+
var C = /* @__PURE__ */ (function() {
|
|
101
|
+
w(t, null, [{
|
|
102
|
+
key: "validKeys",
|
|
103
|
+
value: function() {
|
|
104
|
+
return [l.at, l.lessThan, l.greaterThan, l.greaterThanOrEqual, l.between];
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
function t(r) {
|
|
108
|
+
var e = this, n;
|
|
109
|
+
j(this, t), h(this, "_sortedBreakpoints", void 0), h(this, "_breakpoints", void 0), h(this, "_mediaQueries", void 0), h(this, "findBreakpointsForWidths", function(a, i) {
|
|
110
|
+
var u = e.findBreakpointAtWidth(a);
|
|
111
|
+
if (u) {
|
|
112
|
+
var o = e.findBreakpointAtWidth(i);
|
|
113
|
+
return !o || u === o ? [u] : e._sortedBreakpoints.slice(e._sortedBreakpoints.indexOf(u), e._sortedBreakpoints.indexOf(o) + 1);
|
|
114
|
+
}
|
|
115
|
+
}), h(this, "findBreakpointAtWidth", function(a) {
|
|
116
|
+
return e._sortedBreakpoints.find(function(i, u) {
|
|
117
|
+
var o = e._sortedBreakpoints[u + 1];
|
|
118
|
+
return o ? a >= e._breakpoints[i] && a < e._breakpoints[o] : a >= e._breakpoints[i];
|
|
159
119
|
});
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
120
|
+
}), h(this, "valuesWithBreakpointProps", function(a) {
|
|
121
|
+
var i = a.length, u = [], o;
|
|
122
|
+
return e._sortedBreakpoints.forEach(function(f, d) {
|
|
123
|
+
var _ = a[d];
|
|
124
|
+
d < i && (!o || o[0] !== _) ? (o = [_, [f]], u.push(o)) : o[1].push(f);
|
|
125
|
+
}), u.map(function(f, d) {
|
|
126
|
+
var _ = m(f, 2), k = _[0], y = _[1], c = {};
|
|
127
|
+
return d === u.length - 1 ? c.greaterThanOrEqual = y[0] : y.length === 1 ? c.at = y[0] : c.between = [y[0], u[d + 1][1][0]], [k, c];
|
|
166
128
|
});
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
var
|
|
175
|
-
return a
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
var u = B(i, 2), o = u[0], f = u[1];
|
|
179
|
-
return f.forEach(function(d, _) {
|
|
180
|
-
a.push((0, g.createRuleSet)((0, g.createClassName)(o, _), "not all and ".concat(d)));
|
|
181
|
-
}), a;
|
|
129
|
+
}), this._breakpoints = r, this._sortedBreakpoints = Object.keys(r).map(function(a) {
|
|
130
|
+
return [a, r[a]];
|
|
131
|
+
}).sort(function(a, i) {
|
|
132
|
+
return a[1] < i[1] ? -1 : 1;
|
|
133
|
+
}).map(function(a) {
|
|
134
|
+
return a[0];
|
|
135
|
+
});
|
|
136
|
+
var s = this._sortedBreakpoints.slice(0, -1).reduce(function(a, i, u) {
|
|
137
|
+
return p(a).concat(p(e._sortedBreakpoints.slice(u + 1).map(function(o) {
|
|
138
|
+
return [i, o];
|
|
139
|
+
})));
|
|
182
140
|
}, []);
|
|
141
|
+
this._mediaQueries = (n = {}, h(n, l.at, this._createBreakpointQueries(l.at, this._sortedBreakpoints)), h(n, l.lessThan, this._createBreakpointQueries(l.lessThan, this._sortedBreakpoints.slice(1))), h(n, l.greaterThan, this._createBreakpointQueries(l.greaterThan, this._sortedBreakpoints.slice(0, -1))), h(n, l.greaterThanOrEqual, this._createBreakpointQueries(l.greaterThanOrEqual, this._sortedBreakpoints)), h(n, l.between, this._createBreakpointQueries(l.between, s)), n);
|
|
183
142
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
143
|
+
return w(t, [{
|
|
144
|
+
key: "toVisibleAtBreakpointSet",
|
|
145
|
+
value: function(e) {
|
|
146
|
+
if (e = this._normalizeProps(e), e.lessThan) {
|
|
147
|
+
var n = this.sortedBreakpoints.findIndex(function(f) {
|
|
148
|
+
return f === e.lessThan;
|
|
149
|
+
});
|
|
150
|
+
return this.sortedBreakpoints.slice(0, n);
|
|
151
|
+
} else if (e.greaterThan) {
|
|
152
|
+
var s = this.sortedBreakpoints.findIndex(function(f) {
|
|
153
|
+
return f === e.greaterThan;
|
|
154
|
+
});
|
|
155
|
+
return this.sortedBreakpoints.slice(s + 1);
|
|
156
|
+
} else if (e.greaterThanOrEqual) {
|
|
157
|
+
var a = this.sortedBreakpoints.findIndex(function(f) {
|
|
158
|
+
return f === e.greaterThanOrEqual;
|
|
159
|
+
});
|
|
160
|
+
return this.sortedBreakpoints.slice(a);
|
|
161
|
+
} else if (e.between) {
|
|
162
|
+
var i = e.between, u = this.sortedBreakpoints.findIndex(function(f) {
|
|
163
|
+
return f === i[0];
|
|
164
|
+
}), o = this.sortedBreakpoints.findIndex(function(f) {
|
|
165
|
+
return f === i[1];
|
|
166
|
+
});
|
|
167
|
+
return this.sortedBreakpoints.slice(u, o);
|
|
168
|
+
}
|
|
169
|
+
return [];
|
|
208
170
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
};
|
|
171
|
+
}, {
|
|
172
|
+
key: "toRuleSets",
|
|
173
|
+
value: function() {
|
|
174
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : t.validKeys(), s = n.reduce(function(a, i) {
|
|
175
|
+
return a[i] = e._mediaQueries[i], a;
|
|
176
|
+
}, {});
|
|
177
|
+
return Object.entries(s).reduce(function(a, i) {
|
|
178
|
+
var u = m(i, 2), o = u[0], f = u[1];
|
|
179
|
+
return f.forEach(function(d, _) {
|
|
180
|
+
a.push((0, g.createRuleSet)((0, g.createClassName)(o, _), "not all and ".concat(d)));
|
|
181
|
+
}), a;
|
|
182
|
+
}, []);
|
|
221
183
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
184
|
+
}, {
|
|
185
|
+
key: "shouldRenderMediaQuery",
|
|
186
|
+
value: function(e, n) {
|
|
187
|
+
var s = this;
|
|
188
|
+
if (e = this._normalizeProps(e), e.lessThan) {
|
|
189
|
+
var a = this._breakpoints[e.lessThan], i = Math.min.apply(Math, p(n.map(function(c) {
|
|
190
|
+
return s._breakpoints[c];
|
|
191
|
+
})));
|
|
192
|
+
return i < a;
|
|
193
|
+
} else if (e.greaterThan) {
|
|
194
|
+
var u = this._breakpoints[this._findNextBreakpoint(e.greaterThan)], o = Math.max.apply(Math, p(n.map(function(c) {
|
|
195
|
+
return s._breakpoints[c];
|
|
196
|
+
})));
|
|
197
|
+
return o >= u;
|
|
198
|
+
} else if (e.greaterThanOrEqual) {
|
|
199
|
+
var f = this._breakpoints[e.greaterThanOrEqual], d = Math.max.apply(Math, p(n.map(function(c) {
|
|
200
|
+
return s._breakpoints[c];
|
|
201
|
+
})));
|
|
202
|
+
return d >= f;
|
|
203
|
+
} else if (e.between) {
|
|
204
|
+
var _ = this._breakpoints[e.between[0]], k = this._breakpoints[e.between[1]], y = n.map(function(c) {
|
|
205
|
+
return s._breakpoints[c];
|
|
206
|
+
});
|
|
207
|
+
return !(Math.max.apply(Math, p(y)) < _ || Math.min.apply(Math, p(y)) >= k);
|
|
208
|
+
}
|
|
209
|
+
return !1;
|
|
239
210
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}();
|
|
278
|
-
|
|
211
|
+
}, {
|
|
212
|
+
key: "_normalizeProps",
|
|
213
|
+
value: function(e) {
|
|
214
|
+
if (e.at) {
|
|
215
|
+
var n = this._sortedBreakpoints.indexOf(e.at), s = this._sortedBreakpoints[n + 1];
|
|
216
|
+
return s ? {
|
|
217
|
+
between: [e.at, s]
|
|
218
|
+
} : {
|
|
219
|
+
greaterThanOrEqual: e.at
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
return e;
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "_createBreakpointQuery",
|
|
226
|
+
value: function(e) {
|
|
227
|
+
if (e = this._normalizeProps(e), e.lessThan) {
|
|
228
|
+
var n = this._breakpoints[e.lessThan];
|
|
229
|
+
return "(max-width:".concat(n - 0.02, "px)");
|
|
230
|
+
} else if (e.greaterThan) {
|
|
231
|
+
var s = this._breakpoints[this._findNextBreakpoint(e.greaterThan)];
|
|
232
|
+
return "(min-width:".concat(s, "px)");
|
|
233
|
+
} else if (e.greaterThanOrEqual) {
|
|
234
|
+
var a = this._breakpoints[e.greaterThanOrEqual];
|
|
235
|
+
return "(min-width:".concat(a, "px)");
|
|
236
|
+
} else if (e.between) {
|
|
237
|
+
var i = this._breakpoints[e.between[0]], u = this._breakpoints[e.between[1]];
|
|
238
|
+
return "(min-width:".concat(i, "px) and (max-width:").concat(u - 0.02, "px)");
|
|
239
|
+
}
|
|
240
|
+
throw new Error("Unexpected breakpoint props: ".concat(JSON.stringify(e)));
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
key: "_createBreakpointQueries",
|
|
244
|
+
value: function(e, n) {
|
|
245
|
+
var s = this;
|
|
246
|
+
return n.reduce(function(a, i) {
|
|
247
|
+
return a.set(I(i), s._createBreakpointQuery(h({}, e, i))), a;
|
|
248
|
+
}, /* @__PURE__ */ new Map());
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "_findNextBreakpoint",
|
|
252
|
+
value: function(e) {
|
|
253
|
+
var n = this._sortedBreakpoints[this._sortedBreakpoints.indexOf(e) + 1];
|
|
254
|
+
if (!n)
|
|
255
|
+
throw new Error("There is no breakpoint larger than ".concat(e));
|
|
256
|
+
return n;
|
|
257
|
+
}
|
|
258
|
+
}, {
|
|
259
|
+
key: "sortedBreakpoints",
|
|
260
|
+
get: function() {
|
|
261
|
+
return this._sortedBreakpoints;
|
|
262
|
+
}
|
|
263
|
+
}, {
|
|
264
|
+
key: "dynamicResponsiveMediaQueries",
|
|
265
|
+
get: function() {
|
|
266
|
+
return Array.from(this._mediaQueries[l.at].entries()).reduce(function(e, n) {
|
|
267
|
+
var s = m(n, 2), a = s[0], i = s[1];
|
|
268
|
+
return x({}, e, h({}, a, i));
|
|
269
|
+
}, {});
|
|
270
|
+
}
|
|
271
|
+
}, {
|
|
272
|
+
key: "largestBreakpoint",
|
|
273
|
+
get: function() {
|
|
274
|
+
return this._sortedBreakpoints[this._sortedBreakpoints.length - 1];
|
|
275
|
+
}
|
|
276
|
+
}]), t;
|
|
277
|
+
})();
|
|
278
|
+
return v.Breakpoints = C, v;
|
|
279
|
+
}
|
|
279
280
|
export {
|
|
280
|
-
|
|
281
|
+
R as __require
|
|
281
282
|
};
|