@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,94 +1,92 @@
|
|
|
1
1
|
import { __exports as a } from "../../../../_virtual/Utils.js";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
a.createRuleSet = O;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
f(r, u, t[u]);
|
|
21
|
-
});
|
|
2
|
+
import I from "react";
|
|
3
|
+
var s;
|
|
4
|
+
function R() {
|
|
5
|
+
if (s) return a;
|
|
6
|
+
s = 1, Object.defineProperty(a, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), a.propKey = g, a.intersection = v, a.createRuleSet = O, a.createClassName = A, a.castBreakpointsToIntegers = h, a.memoize = S, a.useIsFirstRender = j;
|
|
9
|
+
var l = I;
|
|
10
|
+
function m(r) {
|
|
11
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
12
|
+
var t = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(t);
|
|
13
|
+
typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(t).filter(function(u) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(t, u).enumerable;
|
|
15
|
+
})), n.forEach(function(u) {
|
|
16
|
+
f(r, u, t[u]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return r;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function p() {
|
|
32
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
+
function f(r, e, t) {
|
|
22
|
+
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
23
|
+
}
|
|
24
|
+
function o(r) {
|
|
25
|
+
return b(r) || d(r) || y(r) || p();
|
|
26
|
+
}
|
|
27
|
+
function p() {
|
|
28
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
33
29
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
34
|
-
}
|
|
35
|
-
function y(r, e) {
|
|
36
|
-
if (r) {
|
|
37
|
-
if (typeof r == "string") return c(r, e);
|
|
38
|
-
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
39
|
-
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
|
|
40
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return c(r, e);
|
|
41
30
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
|
|
31
|
+
function y(r, e) {
|
|
32
|
+
if (r) {
|
|
33
|
+
if (typeof r == "string") return i(r, e);
|
|
34
|
+
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
35
|
+
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
|
|
36
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return i(r, e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function d(r) {
|
|
40
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
41
|
+
}
|
|
42
|
+
function b(r) {
|
|
43
|
+
if (Array.isArray(r)) return i(r);
|
|
44
|
+
}
|
|
45
|
+
function i(r, e) {
|
|
46
|
+
(e == null || e > r.length) && (e = r.length);
|
|
47
|
+
for (var t = 0, n = new Array(e); t < e; t++)
|
|
48
|
+
n[t] = r[t];
|
|
49
|
+
return n;
|
|
50
|
+
}
|
|
51
|
+
function g(r) {
|
|
52
|
+
return Object.keys(r)[0];
|
|
53
|
+
}
|
|
54
|
+
function v(r, e) {
|
|
55
|
+
return e ? r.filter(function(t) {
|
|
56
|
+
return e.indexOf(t) >= 0;
|
|
57
|
+
}) : o(r);
|
|
58
|
+
}
|
|
59
|
+
function O(r, e) {
|
|
60
|
+
return "@media ".concat(e, "{.").concat(r, "{display:none!important;}}");
|
|
61
|
+
}
|
|
62
|
+
function A() {
|
|
63
|
+
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
|
|
64
|
+
e[t] = arguments[t];
|
|
65
|
+
return ["fresnel"].concat(o(e.reduce(function(n, u) {
|
|
66
|
+
return Array.isArray(u) ? o(n).concat(o(u)) : o(n).concat([u]);
|
|
67
|
+
}, []))).join("-");
|
|
68
|
+
}
|
|
69
|
+
function h(r) {
|
|
70
|
+
var e = Object.keys(r);
|
|
71
|
+
return e.reduce(function(t, n, u) {
|
|
72
|
+
return m({}, t, f({}, e[u], Math.round(Number(r[n]))));
|
|
73
|
+
}, {});
|
|
74
|
+
}
|
|
75
|
+
function S(r) {
|
|
76
|
+
var e = {};
|
|
77
|
+
return function() {
|
|
78
|
+
for (var t = arguments.length, n = new Array(t), u = 0; u < t; u++)
|
|
79
|
+
n[u] = arguments[u];
|
|
80
|
+
var c = JSON.stringify(n);
|
|
81
|
+
return e[c] || (e[c] = r.apply(void 0, n)), e[c];
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function j() {
|
|
85
|
+
var r = (0, l.useRef)(!0);
|
|
86
|
+
return r.current ? (r.current = !1, !0) : !1;
|
|
87
|
+
}
|
|
88
|
+
return a;
|
|
91
89
|
}
|
|
92
90
|
export {
|
|
93
|
-
|
|
91
|
+
R as __require
|
|
94
92
|
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import "./Media.js";
|
|
3
|
-
import "./Breakpoints.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(function(e) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})(
|
|
1
|
+
import { __exports as r } from "../../../../_virtual/index3.js";
|
|
2
|
+
import { __require as u } from "./Media.js";
|
|
3
|
+
import { __require as o } from "./Breakpoints.js";
|
|
4
|
+
var t;
|
|
5
|
+
function d() {
|
|
6
|
+
return t ? r : (t = 1, (function(e) {
|
|
7
|
+
Object.defineProperty(e, "__esModule", {
|
|
8
|
+
value: !0
|
|
9
|
+
}), Object.defineProperty(e, "createMedia", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return i.createMedia;
|
|
13
|
+
}
|
|
14
|
+
}), Object.defineProperty(e, "BreakpointKey", {
|
|
15
|
+
enumerable: !0,
|
|
16
|
+
get: function() {
|
|
17
|
+
return n.BreakpointConstraint;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var i = u(), n = o();
|
|
21
|
+
})(r), r);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
d as __require
|
|
25
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getSideAxis as F, getAlignmentAxis as K, getSide as V, getAlignment as X, evaluate as D, clamp as $, getOppositePlacement as _, getExpandedPlacements as ee, getOppositeAxisPlacements as te, getAlignmentSides as ne, min as W, max as j, getAxisLength as N, getPaddingObject as Q, rectToClientRect as I, getOppositeAxis as U, sides as ie } from "../../utils/dist/floating-ui.utils.js";
|
|
2
2
|
function q(t, e, d) {
|
|
3
3
|
let {
|
|
4
4
|
reference: s,
|
|
5
5
|
floating: r
|
|
6
6
|
} = t;
|
|
7
|
-
const n =
|
|
7
|
+
const n = F(e), o = K(e), m = N(o), a = V(e), g = n === "y", u = s.x + s.width / 2 - r.width / 2, l = s.y + s.height / 2 - r.height / 2, f = s[m] / 2 - r[m] / 2;
|
|
8
8
|
let i;
|
|
9
9
|
switch (a) {
|
|
10
10
|
case "top":
|
|
@@ -124,7 +124,7 @@ async function z(t, e) {
|
|
|
124
124
|
elementContext: l = "floating",
|
|
125
125
|
altBoundary: f = !1,
|
|
126
126
|
padding: i = 0
|
|
127
|
-
} = D(e, t), c =
|
|
127
|
+
} = D(e, t), c = Q(i), x = m[f ? l === "floating" ? "reference" : "floating" : l], y = I(await n.getClippingRect({
|
|
128
128
|
element: (d = await (n.isElement == null ? void 0 : n.isElement(x))) == null || d ? x : x.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(m.floating)),
|
|
129
129
|
boundary: g,
|
|
130
130
|
rootBoundary: u,
|
|
@@ -171,10 +171,10 @@ const ae = (t) => ({
|
|
|
171
171
|
} = D(t, e) || {};
|
|
172
172
|
if (g == null)
|
|
173
173
|
return {};
|
|
174
|
-
const l =
|
|
174
|
+
const l = Q(u), f = {
|
|
175
175
|
x: d,
|
|
176
176
|
y: s
|
|
177
|
-
}, i = K(r), c =
|
|
177
|
+
}, i = K(r), c = N(i), w = await o.getDimensions(g), x = i === "y", y = x ? "top" : "left", v = x ? "bottom" : "right", p = x ? "clientHeight" : "clientWidth", A = n.reference[c] + n.reference[i] - f[i] - n.floating[c], h = f[i] - n.reference[i], O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(g));
|
|
178
178
|
let C = O ? O[p] : 0;
|
|
179
179
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(O))) && (C = m.floating[p] || n.floating[c]);
|
|
180
180
|
const M = A / 2 - h / 2, R = C / 2 - w[c] / 2 - 1, P = W(l[y], R), E = W(l[v], R), H = P, Y = C - w[c] - E, b = C / 2 - w[c] / 2 + M, B = $(H, b, Y), k = !a.arrow && X(r) != null && b !== B && n.reference[c] / 2 - (b < H ? P : E) - w[c] / 2 < 0, S = k ? b < H ? b - H : b - Y : 0;
|
|
@@ -214,7 +214,7 @@ const ae = (t) => ({
|
|
|
214
214
|
} = D(t, e);
|
|
215
215
|
if ((d = n.arrow) != null && d.alignmentOffset)
|
|
216
216
|
return {};
|
|
217
|
-
const y =
|
|
217
|
+
const y = V(r), v = F(m), p = V(m) === m, A = await (a.isRTL == null ? void 0 : a.isRTL(g.floating)), h = f || (p || !w ? [_(m)] : ee(m)), O = c !== "none";
|
|
218
218
|
!f && O && h.push(...te(m, w, c, A));
|
|
219
219
|
const C = [m, ...h], M = await z(e, x), R = [];
|
|
220
220
|
let P = ((s = n.flip) == null ? void 0 : s.overflows) || [];
|
|
@@ -245,7 +245,7 @@ const ae = (t) => ({
|
|
|
245
245
|
var Y;
|
|
246
246
|
const S = (Y = P.filter((T) => {
|
|
247
247
|
if (O) {
|
|
248
|
-
const L =
|
|
248
|
+
const L = F(T.placement);
|
|
249
249
|
return L === v || // Create a bias to the `y` side axis due to horizontal
|
|
250
250
|
// reading directions favoring greater width.
|
|
251
251
|
L === "y";
|
|
@@ -328,7 +328,7 @@ async function se(t, e) {
|
|
|
328
328
|
placement: d,
|
|
329
329
|
platform: s,
|
|
330
330
|
elements: r
|
|
331
|
-
} = t, n = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), o =
|
|
331
|
+
} = t, n = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), o = V(d), m = X(d), a = F(d) === "y", g = ["left", "top"].includes(o) ? -1 : 1, u = n && a ? -1 : 1, l = D(e, t);
|
|
332
332
|
let {
|
|
333
333
|
mainAxis: f,
|
|
334
334
|
crossAxis: i,
|
|
@@ -401,7 +401,7 @@ const fe = function(t) {
|
|
|
401
401
|
} = D(t, e), g = {
|
|
402
402
|
x: d,
|
|
403
403
|
y: s
|
|
404
|
-
}, u = await z(e, a), l = V(
|
|
404
|
+
}, u = await z(e, a), l = F(V(r)), f = U(l);
|
|
405
405
|
let i = g[f], c = g[l];
|
|
406
406
|
if (n) {
|
|
407
407
|
const x = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", v = i + u[x], p = i - u[y];
|
|
@@ -442,7 +442,7 @@ const fe = function(t) {
|
|
|
442
442
|
} = D(t, e), u = {
|
|
443
443
|
x: d,
|
|
444
444
|
y: s
|
|
445
|
-
}, l =
|
|
445
|
+
}, l = F(r), f = U(l);
|
|
446
446
|
let i = u[f], c = u[l];
|
|
447
447
|
const w = D(m, e), x = typeof w == "number" ? {
|
|
448
448
|
mainAxis: w,
|
|
@@ -458,7 +458,7 @@ const fe = function(t) {
|
|
|
458
458
|
}
|
|
459
459
|
if (g) {
|
|
460
460
|
var y, v;
|
|
461
|
-
const p = f === "y" ? "width" : "height", A = ["top", "left"].includes(
|
|
461
|
+
const p = f === "y" ? "width" : "height", A = ["top", "left"].includes(V(r)), h = n.reference[l] - n.floating[p] + (A && ((y = o.offset) == null ? void 0 : y[l]) || 0) + (A ? 0 : x.crossAxis), O = n.reference[l] + n.reference[p] + (A ? 0 : ((v = o.offset) == null ? void 0 : v[l]) || 0) - (A ? x.crossAxis : 0);
|
|
462
462
|
c < h ? c = h : c > O && (c = O);
|
|
463
463
|
}
|
|
464
464
|
return {
|
|
@@ -481,7 +481,7 @@ const fe = function(t) {
|
|
|
481
481
|
apply: o = () => {
|
|
482
482
|
},
|
|
483
483
|
...m
|
|
484
|
-
} = D(t, e), a = await z(e, m), g =
|
|
484
|
+
} = D(t, e), a = await z(e, m), g = V(d), u = X(d), l = F(d) === "y", {
|
|
485
485
|
width: f,
|
|
486
486
|
height: i
|
|
487
487
|
} = s.floating;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createCoords as b,
|
|
3
|
-
import {
|
|
1
|
+
import { computePosition as et, offset as it, shift as nt, flip as ot, size as st, hide as rt, arrow as ct, limitShift as lt } from "../../core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as b, round as A, max as T, min as V, rectToClientRect as X, floor as z } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { isElement as x, getDocumentElement as C, getOverflowAncestors as $, getComputedStyle as y, isHTMLElement as R, getWindow as E, isTopLayer as S, getParentNode as W, isLastTraversableNode as D, isTableElement as ft, isContainingBlock as j, getContainingBlock as ut, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getFrameElement as U, isWebKit as G } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
4
|
function J(t) {
|
|
5
5
|
const e = y(t);
|
|
6
6
|
let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
@@ -32,7 +32,7 @@ function F(t) {
|
|
|
32
32
|
const ht = /* @__PURE__ */ b(0);
|
|
33
33
|
function Q(t) {
|
|
34
34
|
const e = E(t);
|
|
35
|
-
return !
|
|
35
|
+
return !G() || !e.visualViewport ? ht : {
|
|
36
36
|
x: e.visualViewport.offsetLeft,
|
|
37
37
|
y: e.visualViewport.offsetTop
|
|
38
38
|
};
|
|
@@ -110,7 +110,7 @@ function mt(t, e) {
|
|
|
110
110
|
let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
|
|
111
111
|
if (o) {
|
|
112
112
|
c = o.width, s = o.height;
|
|
113
|
-
const f =
|
|
113
|
+
const f = G();
|
|
114
114
|
(!f || f && e === "fixed") && (r = o.offsetLeft, l = o.offsetTop);
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
@@ -159,7 +159,7 @@ function vt(t, e) {
|
|
|
159
159
|
const c = y(t).position === "fixed";
|
|
160
160
|
let s = c ? W(t) : t;
|
|
161
161
|
for (; x(s) && !D(s); ) {
|
|
162
|
-
const r = y(s), l =
|
|
162
|
+
const r = y(s), l = j(s);
|
|
163
163
|
!l && r.position === "fixed" && (o = null), (c ? !l && !o : !l && r.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && Z(t, s)) ? i = i.filter((u) => u !== s) : o = r, s = W(s);
|
|
164
164
|
}
|
|
165
165
|
return e.set(t, i), i;
|
|
@@ -234,7 +234,7 @@ function tt(t, e) {
|
|
|
234
234
|
let i = P(t, e);
|
|
235
235
|
for (; i && ft(i) && I(i); )
|
|
236
236
|
i = P(i, e);
|
|
237
|
-
return i && D(i) && I(i) && !
|
|
237
|
+
return i && D(i) && I(i) && !j(i) ? n : i || ut(t) || n;
|
|
238
238
|
}
|
|
239
239
|
const Rt = async function(t) {
|
|
240
240
|
const e = this.getOffsetParent || tt, n = this.getDimensions, i = await n(t.floating);
|
|
@@ -345,7 +345,7 @@ function Wt(t, e, n, i) {
|
|
|
345
345
|
}), h?.(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(v);
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
const Bt =
|
|
348
|
+
const Bt = it, zt = nt, At = ot, Dt = st, Nt = rt, Ht = ct, It = lt, Vt = (t, e, n) => {
|
|
349
349
|
const i = /* @__PURE__ */ new Map(), o = {
|
|
350
350
|
platform: Ot,
|
|
351
351
|
...n
|
|
@@ -353,7 +353,7 @@ const Bt = et, zt = it, At = nt, Dt = ot, Nt = st, Ht = ct, It = lt, Vt = (t, e,
|
|
|
353
353
|
...o.platform,
|
|
354
354
|
_c: i
|
|
355
355
|
};
|
|
356
|
-
return
|
|
356
|
+
return et(t, e, {
|
|
357
357
|
...o,
|
|
358
358
|
platform: c
|
|
359
359
|
});
|
|
@@ -9,13 +9,13 @@ import { createCollapsibleScope as M, Root as Z, Trigger as $, Content as oo } f
|
|
|
9
9
|
import { useId as eo } from "../../react-id/dist/index.js";
|
|
10
10
|
import { useDirection as ro } from "../../react-direction/dist/index.js";
|
|
11
11
|
import { jsx as n } from "react/jsx-runtime";
|
|
12
|
-
var f = "Accordion", to = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [
|
|
12
|
+
var f = "Accordion", to = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [E, no, co] = Q(f), [b] = J(f, [
|
|
13
13
|
co,
|
|
14
14
|
M
|
|
15
|
-
]),
|
|
15
|
+
]), S = M(), V = s.forwardRef(
|
|
16
16
|
(e, c) => {
|
|
17
17
|
const { type: o, ...t } = e, i = t, r = t;
|
|
18
|
-
return /* @__PURE__ */ n(
|
|
18
|
+
return /* @__PURE__ */ n(E.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ n(so, { ...r, ref: c }) : /* @__PURE__ */ n(lo, { ...i, ref: c }) });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
V.displayName = f;
|
|
@@ -77,18 +77,18 @@ var [H, io] = b(f), [K, ao] = b(
|
|
|
77
77
|
);
|
|
78
78
|
}), [po, I] = b(f), L = s.forwardRef(
|
|
79
79
|
(e, c) => {
|
|
80
|
-
const { __scopeAccordion: o, disabled: t, dir: i, orientation: r = "vertical", ...a } = e, l = s.useRef(null), d = W(l, c), m = no(o), u = ro(i) === "ltr", h = X(e.onKeyDown, (
|
|
81
|
-
if (!to.includes(
|
|
82
|
-
const B =
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
let p =
|
|
80
|
+
const { __scopeAccordion: o, disabled: t, dir: i, orientation: r = "vertical", ...a } = e, l = s.useRef(null), d = W(l, c), m = no(o), u = ro(i) === "ltr", h = X(e.onKeyDown, (C) => {
|
|
81
|
+
if (!to.includes(C.key)) return;
|
|
82
|
+
const B = C.target, x = m().filter((N) => !N.ref.current?.disabled), A = x.findIndex((N) => N.ref.current === B), D = x.length;
|
|
83
|
+
if (A === -1) return;
|
|
84
|
+
C.preventDefault();
|
|
85
|
+
let p = A;
|
|
86
86
|
const _ = 0, w = D - 1, R = () => {
|
|
87
|
-
p =
|
|
87
|
+
p = A + 1, p > w && (p = _);
|
|
88
88
|
}, P = () => {
|
|
89
|
-
p =
|
|
89
|
+
p = A - 1, p < _ && (p = w);
|
|
90
90
|
};
|
|
91
|
-
switch (
|
|
91
|
+
switch (C.key) {
|
|
92
92
|
case "Home":
|
|
93
93
|
p = _;
|
|
94
94
|
break;
|
|
@@ -118,7 +118,7 @@ var [H, io] = b(f), [K, ao] = b(
|
|
|
118
118
|
disabled: t,
|
|
119
119
|
direction: i,
|
|
120
120
|
orientation: r,
|
|
121
|
-
children: /* @__PURE__ */ n(
|
|
121
|
+
children: /* @__PURE__ */ n(E.Slot, { scope: o, children: /* @__PURE__ */ n(
|
|
122
122
|
T.div,
|
|
123
123
|
{
|
|
124
124
|
...a,
|
|
@@ -132,7 +132,7 @@ var [H, io] = b(f), [K, ao] = b(
|
|
|
132
132
|
}
|
|
133
133
|
), g = "AccordionItem", [fo, k] = b(g), z = s.forwardRef(
|
|
134
134
|
(e, c) => {
|
|
135
|
-
const { __scopeAccordion: o, value: t, ...i } = e, r = I(g, o), a = io(g, o), l =
|
|
135
|
+
const { __scopeAccordion: o, value: t, ...i } = e, r = I(g, o), a = io(g, o), l = S(o), d = eo(), m = t && a.value.includes(t) || !1, v = r.disabled || e.disabled;
|
|
136
136
|
return /* @__PURE__ */ n(
|
|
137
137
|
fo,
|
|
138
138
|
{
|
|
@@ -176,10 +176,10 @@ var G = "AccordionHeader", uo = s.forwardRef(
|
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
uo.displayName = G;
|
|
179
|
-
var
|
|
179
|
+
var y = "AccordionTrigger", U = s.forwardRef(
|
|
180
180
|
(e, c) => {
|
|
181
|
-
const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(
|
|
182
|
-
return /* @__PURE__ */ n(
|
|
181
|
+
const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(y, o), a = ao(y, o), l = S(o);
|
|
182
|
+
return /* @__PURE__ */ n(E.ItemSlot, { scope: o, children: /* @__PURE__ */ n(
|
|
183
183
|
$,
|
|
184
184
|
{
|
|
185
185
|
"aria-disabled": r.open && !a.collapsible || void 0,
|
|
@@ -192,10 +192,10 @@ var S = "AccordionTrigger", U = s.forwardRef(
|
|
|
192
192
|
) });
|
|
193
193
|
}
|
|
194
194
|
);
|
|
195
|
-
U.displayName =
|
|
195
|
+
U.displayName = y;
|
|
196
196
|
var j = "AccordionContent", Y = s.forwardRef(
|
|
197
197
|
(e, c) => {
|
|
198
|
-
const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(j, o), a =
|
|
198
|
+
const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(j, o), a = S(o);
|
|
199
199
|
return /* @__PURE__ */ n(
|
|
200
200
|
oo,
|
|
201
201
|
{
|
|
@@ -218,7 +218,7 @@ Y.displayName = j;
|
|
|
218
218
|
function q(e) {
|
|
219
219
|
return e ? "open" : "closed";
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var Ro = V, Po = z, No = U, yo = Y;
|
|
222
222
|
export {
|
|
223
223
|
V as Accordion,
|
|
224
224
|
Y as AccordionContent,
|
|
@@ -226,8 +226,7 @@ export {
|
|
|
226
226
|
z as AccordionItem,
|
|
227
227
|
U as AccordionTrigger,
|
|
228
228
|
yo as Content,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
Ro as createAccordionScope
|
|
229
|
+
Po as Item,
|
|
230
|
+
Ro as Root,
|
|
231
|
+
No as Trigger
|
|
233
232
|
};
|
|
@@ -22,7 +22,9 @@ function g(s) {
|
|
|
22
22
|
const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
|
|
23
23
|
(c, e) => {
|
|
24
24
|
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
|
|
25
|
-
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () =>
|
|
25
|
+
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => {
|
|
26
|
+
i.itemMap.delete(n);
|
|
27
|
+
})), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
|
|
26
28
|
}
|
|
27
29
|
);
|
|
28
30
|
I.displayName = d;
|
|
@@ -14,7 +14,7 @@ import z from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
|
14
14
|
import { hideOthers as J } from "../../../aria-hidden/dist/es2015/index.js";
|
|
15
15
|
import { createSlot as Q } from "../../react-slot/dist/index.js";
|
|
16
16
|
import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
|
|
17
|
-
var h = "Dialog", [I
|
|
17
|
+
var h = "Dialog", [I] = H(h), [X, u] = I(h), x = (e) => {
|
|
18
18
|
const {
|
|
19
19
|
__scopeDialog: t,
|
|
20
20
|
children: n,
|
|
@@ -109,7 +109,7 @@ var ne = s.forwardRef(
|
|
|
109
109
|
const o = a.current;
|
|
110
110
|
if (o) return J(o);
|
|
111
111
|
}, []), /* @__PURE__ */ i(
|
|
112
|
-
|
|
112
|
+
F,
|
|
113
113
|
{
|
|
114
114
|
...e,
|
|
115
115
|
ref: r,
|
|
@@ -133,7 +133,7 @@ var ne = s.forwardRef(
|
|
|
133
133
|
(e, t) => {
|
|
134
134
|
const n = u(d, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
135
135
|
return /* @__PURE__ */ i(
|
|
136
|
-
|
|
136
|
+
F,
|
|
137
137
|
{
|
|
138
138
|
...e,
|
|
139
139
|
ref: t,
|
|
@@ -150,7 +150,7 @@ var ne = s.forwardRef(
|
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
),
|
|
153
|
+
), F = s.forwardRef(
|
|
154
154
|
(e, t) => {
|
|
155
155
|
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...l } = e, c = u(d, n), f = s.useRef(null), D = R(t, f);
|
|
156
156
|
return Z(), /* @__PURE__ */ P(O, { children: [
|
|
@@ -183,13 +183,13 @@ var ne = s.forwardRef(
|
|
|
183
183
|
] })
|
|
184
184
|
] });
|
|
185
185
|
}
|
|
186
|
-
), y = "DialogTitle",
|
|
186
|
+
), y = "DialogTitle", S = s.forwardRef(
|
|
187
187
|
(e, t) => {
|
|
188
188
|
const { __scopeDialog: n, ...a } = e, r = u(y, n);
|
|
189
189
|
return /* @__PURE__ */ i(g.h2, { id: r.titleId, ...a, ref: t });
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
|
-
|
|
192
|
+
S.displayName = y;
|
|
193
193
|
var W = "DialogDescription", k = s.forwardRef(
|
|
194
194
|
(e, t) => {
|
|
195
195
|
const { __scopeDialog: n, ...a } = e, r = u(W, n);
|
|
@@ -215,7 +215,7 @@ L.displayName = G;
|
|
|
215
215
|
function N(e) {
|
|
216
216
|
return e ? "open" : "closed";
|
|
217
217
|
}
|
|
218
|
-
var $ = "DialogTitleWarning", [
|
|
218
|
+
var $ = "DialogTitleWarning", [Ne, B] = V($, {
|
|
219
219
|
contentName: d,
|
|
220
220
|
titleName: y,
|
|
221
221
|
docsSlug: "dialog"
|
|
@@ -234,23 +234,22 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
234
234
|
const r = e.current?.getAttribute("aria-describedby");
|
|
235
235
|
t && r && (document.getElementById(t) || console.warn(a));
|
|
236
236
|
}, [a, e, t]), null;
|
|
237
|
-
},
|
|
237
|
+
}, Pe = x, Oe = b, Ie = M, xe = w, Ae = S, Te = k, be = L;
|
|
238
238
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
be as Close,
|
|
240
|
+
xe as Content,
|
|
241
|
+
Te as Description,
|
|
242
242
|
x as Dialog,
|
|
243
243
|
L as DialogClose,
|
|
244
244
|
w as DialogContent,
|
|
245
245
|
k as DialogDescription,
|
|
246
246
|
M as DialogOverlay,
|
|
247
247
|
b as DialogPortal,
|
|
248
|
-
|
|
248
|
+
S as DialogTitle,
|
|
249
249
|
ee as DialogTrigger,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
Ne as createDialogScope
|
|
250
|
+
Ie as Overlay,
|
|
251
|
+
Oe as Portal,
|
|
252
|
+
Pe as Root,
|
|
253
|
+
Ae as Title,
|
|
254
|
+
Ne as WarningProvider
|
|
256
255
|
};
|