@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,13 +1,13 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import { composeEventHandlers as m } from "../../primitive/dist/index.js";
|
|
3
3
|
import { composeRefs as x } from "../../react-compose-refs/dist/index.js";
|
|
4
|
-
import { createContextScope as
|
|
5
|
-
import { useControllableState as
|
|
4
|
+
import { createContextScope as E } from "../../react-context/dist/index.js";
|
|
5
|
+
import { useControllableState as S } from "../node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
6
6
|
import { Primitive as P } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Root as y, Anchor as O, Portal as T, Content as G, Item as k, createMenuScope as D, Group as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as j, SubContent as X } from "../../react-menu/dist/index.js";
|
|
8
8
|
import { useId as g } from "../../react-id/dist/index.js";
|
|
9
9
|
import { jsx as a } from "react/jsx-runtime";
|
|
10
|
-
var f = "DropdownMenu", [q
|
|
10
|
+
var f = "DropdownMenu", [q] = E(
|
|
11
11
|
f,
|
|
12
12
|
[D]
|
|
13
13
|
), i = D(), [z, v] = q(f), _ = (o) => {
|
|
@@ -19,7 +19,7 @@ var f = "DropdownMenu", [q, Ao] = S(
|
|
|
19
19
|
defaultOpen: u,
|
|
20
20
|
onOpenChange: s,
|
|
21
21
|
modal: d = !0
|
|
22
|
-
} = o, c = i(n), M = p.useRef(null), [l, w] =
|
|
22
|
+
} = o, c = i(n), M = p.useRef(null), [l, w] = S({
|
|
23
23
|
prop: t,
|
|
24
24
|
defaultProp: u ?? !1,
|
|
25
25
|
onChange: s,
|
|
@@ -36,7 +36,7 @@ var f = "DropdownMenu", [q, Ao] = S(
|
|
|
36
36
|
onOpenChange: w,
|
|
37
37
|
onOpenToggle: p.useCallback(() => w((C) => !C), [w]),
|
|
38
38
|
modal: d,
|
|
39
|
-
children: /* @__PURE__ */ a(
|
|
39
|
+
children: /* @__PURE__ */ a(y, { ...c, open: l, onOpenChange: w, dir: e, modal: d, children: r })
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
};
|
|
@@ -44,7 +44,7 @@ _.displayName = f;
|
|
|
44
44
|
var R = "DropdownMenuTrigger", h = p.forwardRef(
|
|
45
45
|
(o, n) => {
|
|
46
46
|
const { __scopeDropdownMenu: r, disabled: e = !1, ...t } = o, u = v(R, r), s = i(r);
|
|
47
|
-
return /* @__PURE__ */ a(
|
|
47
|
+
return /* @__PURE__ */ a(O, { asChild: !0, ...s, children: /* @__PURE__ */ a(
|
|
48
48
|
P.button,
|
|
49
49
|
{
|
|
50
50
|
type: "button",
|
|
@@ -70,14 +70,14 @@ var R = "DropdownMenuTrigger", h = p.forwardRef(
|
|
|
70
70
|
h.displayName = R;
|
|
71
71
|
var J = "DropdownMenuPortal", I = (o) => {
|
|
72
72
|
const { __scopeDropdownMenu: n, ...r } = o, e = i(n);
|
|
73
|
-
return /* @__PURE__ */ a(
|
|
73
|
+
return /* @__PURE__ */ a(T, { ...e, ...r });
|
|
74
74
|
};
|
|
75
75
|
I.displayName = J;
|
|
76
76
|
var N = "DropdownMenuContent", b = p.forwardRef(
|
|
77
77
|
(o, n) => {
|
|
78
78
|
const { __scopeDropdownMenu: r, ...e } = o, t = v(N, r), u = i(r), s = p.useRef(!1);
|
|
79
79
|
return /* @__PURE__ */ a(
|
|
80
|
-
|
|
80
|
+
G,
|
|
81
81
|
{
|
|
82
82
|
id: t.contentId,
|
|
83
83
|
"aria-labelledby": t.triggerId,
|
|
@@ -107,14 +107,14 @@ b.displayName = N;
|
|
|
107
107
|
var Q = "DropdownMenuGroup", V = p.forwardRef(
|
|
108
108
|
(o, n) => {
|
|
109
109
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
110
|
-
return /* @__PURE__ */ a(
|
|
110
|
+
return /* @__PURE__ */ a(L, { ...t, ...e, ref: n });
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
113
|
V.displayName = Q;
|
|
114
114
|
var Y = "DropdownMenuLabel", Z = p.forwardRef(
|
|
115
115
|
(o, n) => {
|
|
116
116
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
117
|
-
return /* @__PURE__ */ a(
|
|
117
|
+
return /* @__PURE__ */ a(K, { ...t, ...e, ref: n });
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
Z.displayName = Y;
|
|
@@ -127,45 +127,45 @@ var oo = "DropdownMenuItem", A = p.forwardRef(
|
|
|
127
127
|
A.displayName = oo;
|
|
128
128
|
var eo = "DropdownMenuCheckboxItem", ro = p.forwardRef((o, n) => {
|
|
129
129
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
130
|
-
return /* @__PURE__ */ a(
|
|
130
|
+
return /* @__PURE__ */ a(U, { ...t, ...e, ref: n });
|
|
131
131
|
});
|
|
132
132
|
ro.displayName = eo;
|
|
133
133
|
var no = "DropdownMenuRadioGroup", to = p.forwardRef((o, n) => {
|
|
134
134
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
135
|
-
return /* @__PURE__ */ a(
|
|
135
|
+
return /* @__PURE__ */ a(B, { ...t, ...e, ref: n });
|
|
136
136
|
});
|
|
137
137
|
to.displayName = no;
|
|
138
138
|
var ao = "DropdownMenuRadioItem", po = p.forwardRef((o, n) => {
|
|
139
139
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
140
|
-
return /* @__PURE__ */ a(
|
|
140
|
+
return /* @__PURE__ */ a(F, { ...t, ...e, ref: n });
|
|
141
141
|
});
|
|
142
142
|
po.displayName = ao;
|
|
143
143
|
var io = "DropdownMenuItemIndicator", uo = p.forwardRef((o, n) => {
|
|
144
144
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
145
|
-
return /* @__PURE__ */ a(
|
|
145
|
+
return /* @__PURE__ */ a(H, { ...t, ...e, ref: n });
|
|
146
146
|
});
|
|
147
147
|
uo.displayName = io;
|
|
148
148
|
var so = "DropdownMenuSeparator", co = p.forwardRef((o, n) => {
|
|
149
149
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
150
|
-
return /* @__PURE__ */ a(
|
|
150
|
+
return /* @__PURE__ */ a(W, { ...t, ...e, ref: n });
|
|
151
151
|
});
|
|
152
152
|
co.displayName = so;
|
|
153
153
|
var lo = "DropdownMenuArrow", wo = p.forwardRef(
|
|
154
154
|
(o, n) => {
|
|
155
155
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
156
|
-
return /* @__PURE__ */ a(
|
|
156
|
+
return /* @__PURE__ */ a($, { ...t, ...e, ref: n });
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
wo.displayName = lo;
|
|
160
160
|
var mo = "DropdownMenuSubTrigger", fo = p.forwardRef((o, n) => {
|
|
161
161
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
162
|
-
return /* @__PURE__ */ a(
|
|
162
|
+
return /* @__PURE__ */ a(j, { ...t, ...e, ref: n });
|
|
163
163
|
});
|
|
164
164
|
fo.displayName = mo;
|
|
165
165
|
var Mo = "DropdownMenuSubContent", go = p.forwardRef((o, n) => {
|
|
166
166
|
const { __scopeDropdownMenu: r, ...e } = o, t = i(r);
|
|
167
167
|
return /* @__PURE__ */ a(
|
|
168
|
-
|
|
168
|
+
X,
|
|
169
169
|
{
|
|
170
170
|
...t,
|
|
171
171
|
...e,
|
|
@@ -182,7 +182,7 @@ var Mo = "DropdownMenuSubContent", go = p.forwardRef((o, n) => {
|
|
|
182
182
|
);
|
|
183
183
|
});
|
|
184
184
|
go.displayName = Mo;
|
|
185
|
-
var
|
|
185
|
+
var Ao = _, Co = h, xo = I, Eo = b, So = A;
|
|
186
186
|
export {
|
|
187
187
|
Eo as Content,
|
|
188
188
|
_ as DropdownMenu,
|
|
@@ -200,9 +200,8 @@ export {
|
|
|
200
200
|
go as DropdownMenuSubContent,
|
|
201
201
|
fo as DropdownMenuSubTrigger,
|
|
202
202
|
h as DropdownMenuTrigger,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
Ao as createDropdownMenuScope
|
|
203
|
+
So as Item,
|
|
204
|
+
xo as Portal,
|
|
205
|
+
Ao as Root,
|
|
206
|
+
Co as Trigger
|
|
208
207
|
};
|
|
@@ -23,7 +23,7 @@ var u = [
|
|
|
23
23
|
], w = u.reduce((t, i) => {
|
|
24
24
|
const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
25
|
const { asChild: a, ...p } = e, s = a ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
|
|
26
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
|
|
27
27
|
});
|
|
28
28
|
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
29
|
}, {});
|
|
@@ -25,7 +25,7 @@ function y(e) {
|
|
|
25
25
|
});
|
|
26
26
|
return r.displayName = `${e}.SlotClone`, r;
|
|
27
27
|
}
|
|
28
|
-
var E = Symbol("radix.slottable");
|
|
28
|
+
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
29
|
function g(e) {
|
|
30
30
|
return t.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
31
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { useLayoutEffect as
|
|
3
|
-
var
|
|
4
|
-
}),
|
|
5
|
-
function
|
|
6
|
-
const [
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
}, [
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { useLayoutEffect as a } from "../../react-use-layout-effect/dist/index.js";
|
|
3
|
+
var s = e[" useId ".trim().toString()] || (() => {
|
|
4
|
+
}), i = 0;
|
|
5
|
+
function d(r) {
|
|
6
|
+
const [t, o] = e.useState(s());
|
|
7
|
+
return a(() => {
|
|
8
|
+
o((u) => u ?? String(i++));
|
|
9
|
+
}, [r]), t ? `radix-${t}` : "";
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
d as useId
|
|
13
13
|
};
|
|
@@ -7,11 +7,11 @@ import { useDirection as He } from "../../react-direction/dist/index.js";
|
|
|
7
7
|
import { DismissableLayer as We } from "../node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
|
|
8
8
|
import { useFocusGuards as ze } from "../../react-focus-guards/dist/index.js";
|
|
9
9
|
import { FocusScope as Ze } from "../node_modules/@radix-ui/react-focus-scope/dist/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { Root as $e, Anchor as qe, createPopperScope as le, Content as Je, Arrow as Qe } from "../node_modules/@radix-ui/react-popper/dist/index.js";
|
|
11
11
|
import { Portal as et } from "../node_modules/@radix-ui/react-portal/dist/index.js";
|
|
12
12
|
import { Presence as Y } from "../node_modules/@radix-ui/react-presence/dist/index.js";
|
|
13
13
|
import { Primitive as N, dispatchDiscreteCustomEvent as tt } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
14
|
-
import { createRovingFocusGroupScope as de,
|
|
14
|
+
import { createRovingFocusGroupScope as de, Item as nt, Root as ot } from "../node_modules/@radix-ui/react-roving-focus/dist/index.js";
|
|
15
15
|
import { createSlot as rt } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
16
16
|
import { useCallbackRef as fe } from "../../react-use-callback-ref/dist/index.js";
|
|
17
17
|
import { hideOthers as ct } from "../../../aria-hidden/dist/es2015/index.js";
|
|
@@ -36,7 +36,7 @@ var $ = ["Enter", " "], st = ["ArrowDown", "PageUp", "Home"], me = ["ArrowUp", "
|
|
|
36
36
|
return document.addEventListener("keydown", g, { capture: !0 }), () => {
|
|
37
37
|
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
|
|
38
38
|
};
|
|
39
|
-
}, []), /* @__PURE__ */ s(
|
|
39
|
+
}, []), /* @__PURE__ */ s($e, { ...p, children: /* @__PURE__ */ s(
|
|
40
40
|
mt,
|
|
41
41
|
{
|
|
42
42
|
scope: n,
|
|
@@ -62,7 +62,7 @@ ve.displayName = F;
|
|
|
62
62
|
var vt = "MenuAnchor", q = o.forwardRef(
|
|
63
63
|
(e, n) => {
|
|
64
64
|
const { __scopeMenu: t, ...r } = e, u = X(t);
|
|
65
|
-
return /* @__PURE__ */ s(
|
|
65
|
+
return /* @__PURE__ */ s(qe, { ...u, ...r, ref: n });
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
q.displayName = vt;
|
|
@@ -186,7 +186,7 @@ var _ = "MenuContent", [ht, Q] = P(_), Ce = o.forwardRef(
|
|
|
186
186
|
onInteractOutside: f,
|
|
187
187
|
onDismiss: g,
|
|
188
188
|
children: /* @__PURE__ */ s(
|
|
189
|
-
|
|
189
|
+
ot,
|
|
190
190
|
{
|
|
191
191
|
asChild: !0,
|
|
192
192
|
...Fe,
|
|
@@ -200,7 +200,7 @@ var _ = "MenuContent", [ht, Q] = P(_), Ce = o.forwardRef(
|
|
|
200
200
|
}),
|
|
201
201
|
preventScrollOnEntryFocus: !0,
|
|
202
202
|
children: /* @__PURE__ */ s(
|
|
203
|
-
|
|
203
|
+
Je,
|
|
204
204
|
{
|
|
205
205
|
role: "menu",
|
|
206
206
|
"aria-orientation": "vertical",
|
|
@@ -303,7 +303,7 @@ var _e = o.forwardRef(
|
|
|
303
303
|
scope: t,
|
|
304
304
|
disabled: r,
|
|
305
305
|
textValue: u ?? f,
|
|
306
|
-
children: /* @__PURE__ */ s(
|
|
306
|
+
children: /* @__PURE__ */ s(nt, { asChild: !0, ...p, focusable: !r, children: /* @__PURE__ */ s(
|
|
307
307
|
N.div,
|
|
308
308
|
{
|
|
309
309
|
role: "menuitem",
|
|
@@ -423,7 +423,7 @@ xe.displayName = yt;
|
|
|
423
423
|
var xt = "MenuArrow", be = o.forwardRef(
|
|
424
424
|
(e, n) => {
|
|
425
425
|
const { __scopeMenu: t, ...r } = e, u = X(t);
|
|
426
|
-
return /* @__PURE__ */ s(
|
|
426
|
+
return /* @__PURE__ */ s(Qe, { ...u, ...r, ref: n });
|
|
427
427
|
}
|
|
428
428
|
);
|
|
429
429
|
be.displayName = xt;
|
package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-collection/dist/index.js
CHANGED
|
@@ -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;
|
package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var u = [
|
|
|
23
23
|
], h = u.reduce((t, i) => {
|
|
24
24
|
const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
25
|
const { asChild: s, ...a } = e, n = s ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
|
|
26
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
|
|
27
27
|
});
|
|
28
28
|
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
29
|
}, {});
|
package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function y(e) {
|
|
|
25
25
|
});
|
|
26
26
|
return r.displayName = `${e}.SlotClone`, r;
|
|
27
27
|
}
|
|
28
|
-
var E = Symbol("radix.slottable");
|
|
28
|
+
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
29
|
function g(e) {
|
|
30
30
|
return t.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
31
|
}
|
|
@@ -6,7 +6,7 @@ import { DismissableLayer as G } from "../node_modules/@radix-ui/react-dismissab
|
|
|
6
6
|
import { useFocusGuards as H } from "../../react-focus-guards/dist/index.js";
|
|
7
7
|
import { FocusScope as K } from "../node_modules/@radix-ui/react-focus-scope/dist/index.js";
|
|
8
8
|
import { useId as $ } from "../../react-id/dist/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Root as j, Anchor as _, createPopperScope as x, Content as U, Arrow as V } from "../node_modules/@radix-ui/react-popper/dist/index.js";
|
|
10
10
|
import { Portal as W } from "../node_modules/@radix-ui/react-portal/dist/index.js";
|
|
11
11
|
import { Presence as w } from "../node_modules/@radix-ui/react-presence/dist/index.js";
|
|
12
12
|
import { Primitive as E } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
@@ -15,9 +15,9 @@ import { useControllableState as q } from "../node_modules/@radix-ui/react-use-c
|
|
|
15
15
|
import { hideOthers as z } from "../../../aria-hidden/dist/es2015/index.js";
|
|
16
16
|
import B from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
17
17
|
import { jsx as p } from "react/jsx-runtime";
|
|
18
|
-
var C = "Popover", [b
|
|
19
|
-
|
|
20
|
-
]), m =
|
|
18
|
+
var C = "Popover", [b] = L(C, [
|
|
19
|
+
x
|
|
20
|
+
]), m = x(), [J, u] = b(C), F = (o) => {
|
|
21
21
|
const {
|
|
22
22
|
__scopePopover: n,
|
|
23
23
|
children: t,
|
|
@@ -31,7 +31,7 @@ var C = "Popover", [b, _o] = L(C, [
|
|
|
31
31
|
onChange: r,
|
|
32
32
|
caller: C
|
|
33
33
|
});
|
|
34
|
-
return /* @__PURE__ */ p(
|
|
34
|
+
return /* @__PURE__ */ p(j, { ...i, children: /* @__PURE__ */ p(
|
|
35
35
|
J,
|
|
36
36
|
{
|
|
37
37
|
scope: n,
|
|
@@ -52,7 +52,7 @@ F.displayName = C;
|
|
|
52
52
|
var N = "PopoverAnchor", Q = c.forwardRef(
|
|
53
53
|
(o, n) => {
|
|
54
54
|
const { __scopePopover: t, ...a } = o, e = u(N, t), r = m(t), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = e;
|
|
55
|
-
return c.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ p(
|
|
55
|
+
return c.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ p(_, { ...r, ...a, ref: n });
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
58
|
Q.displayName = N;
|
|
@@ -71,7 +71,7 @@ var S = "PopoverTrigger", y = c.forwardRef(
|
|
|
71
71
|
onClick: P(o.onClick, e.onOpenToggle)
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
return e.hasCustomAnchor ? i : /* @__PURE__ */ p(
|
|
74
|
+
return e.hasCustomAnchor ? i : /* @__PURE__ */ p(_, { asChild: !0, ...r, children: i });
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
y.displayName = S;
|
|
@@ -175,7 +175,7 @@ var oo = Z("PopoverContent.RemoveScroll"), eo = c.forwardRef(
|
|
|
175
175
|
onFocusOutside: v,
|
|
176
176
|
onDismiss: () => l.onOpenChange(!1),
|
|
177
177
|
children: /* @__PURE__ */ p(
|
|
178
|
-
|
|
178
|
+
U,
|
|
179
179
|
{
|
|
180
180
|
"data-state": T(l.open),
|
|
181
181
|
role: "dialog",
|
|
@@ -216,16 +216,16 @@ to.displayName = I;
|
|
|
216
216
|
var no = "PopoverArrow", ao = c.forwardRef(
|
|
217
217
|
(o, n) => {
|
|
218
218
|
const { __scopePopover: t, ...a } = o, e = m(t);
|
|
219
|
-
return /* @__PURE__ */ p(
|
|
219
|
+
return /* @__PURE__ */ p(V, { ...e, ...a, ref: n });
|
|
220
220
|
}
|
|
221
221
|
);
|
|
222
222
|
ao.displayName = no;
|
|
223
223
|
function T(o) {
|
|
224
224
|
return o ? "open" : "closed";
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var _o = F, xo = y, wo = D, Eo = M;
|
|
227
227
|
export {
|
|
228
|
-
|
|
228
|
+
Eo as Content,
|
|
229
229
|
F as Popover,
|
|
230
230
|
Q as PopoverAnchor,
|
|
231
231
|
ao as PopoverArrow,
|
|
@@ -233,8 +233,7 @@ export {
|
|
|
233
233
|
M as PopoverContent,
|
|
234
234
|
D as PopoverPortal,
|
|
235
235
|
y as PopoverTrigger,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
_o as createPopoverScope
|
|
236
|
+
wo as Portal,
|
|
237
|
+
_o as Root,
|
|
238
|
+
xo as Trigger
|
|
240
239
|
};
|
package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { useFloating as fe, offset as me, shift as he,
|
|
2
|
+
import { useFloating as fe, offset as me, shift as he, limitShift as ge, flip as ue, size as we, arrow as Pe, hide as xe } from "../../../../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
3
3
|
import { Root as ye } from "../../react-arrow/dist/index.js";
|
|
4
4
|
import { useComposedRefs as I } from "../../../../../react-compose-refs/dist/index.js";
|
|
5
5
|
import { createContextScope as Ae } from "../../../../../react-context/dist/index.js";
|
|
@@ -60,20 +60,20 @@ var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
|
60
60
|
p && he({
|
|
61
61
|
mainAxis: !0,
|
|
62
62
|
crossAxis: !1,
|
|
63
|
-
limiter: m === "partial" ?
|
|
63
|
+
limiter: m === "partial" ? ge() : void 0,
|
|
64
64
|
...y
|
|
65
65
|
}),
|
|
66
|
-
p &&
|
|
67
|
-
|
|
66
|
+
p && ue({ ...y }),
|
|
67
|
+
we({
|
|
68
68
|
...y,
|
|
69
69
|
apply: ({ elements: w, rects: W, availableWidth: pe, availableHeight: ce }) => {
|
|
70
70
|
const { width: de, height: le } = W.reference, v = w.floating.style;
|
|
71
71
|
v.setProperty("--radix-popper-available-width", `${pe}px`), v.setProperty("--radix-popper-available-height", `${ce}px`), v.setProperty("--radix-popper-anchor-width", `${de}px`), v.setProperty("--radix-popper-anchor-height", `${le}px`);
|
|
72
72
|
}
|
|
73
73
|
}),
|
|
74
|
-
S &&
|
|
74
|
+
S && Pe({ element: S, padding: g }),
|
|
75
75
|
_e({ arrowWidth: J, arrowHeight: E }),
|
|
76
|
-
P &&
|
|
76
|
+
P && xe({ strategy: "referenceHidden", ...y })
|
|
77
77
|
]
|
|
78
78
|
}), [$, re] = L(te), H = ve(l);
|
|
79
79
|
z(() => {
|
|
@@ -23,7 +23,7 @@ var u = [
|
|
|
23
23
|
], h = u.reduce((t, i) => {
|
|
24
24
|
const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
25
|
const { asChild: s, ...a } = e, n = s ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
|
|
26
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
|
|
27
27
|
});
|
|
28
28
|
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
29
|
}, {});
|
package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function y(e) {
|
|
|
25
25
|
});
|
|
26
26
|
return r.displayName = `${e}.SlotClone`, r;
|
|
27
27
|
}
|
|
28
|
-
var E = Symbol("radix.slottable");
|
|
28
|
+
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
29
|
function g(e) {
|
|
30
30
|
return t.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
31
|
}
|
|
@@ -22,7 +22,7 @@ var l = [
|
|
|
22
22
|
], h = l.reduce((t, i) => {
|
|
23
23
|
const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
24
24
|
const { asChild: a, ...s } = e, n = a ? o : i;
|
|
25
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...s, ref: m });
|
|
25
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...s, ref: m });
|
|
26
26
|
});
|
|
27
27
|
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
28
28
|
}, {});
|
|
@@ -2,29 +2,29 @@ import * as m from "react";
|
|
|
2
2
|
import { createContextScope as $ } from "../../react-context/dist/index.js";
|
|
3
3
|
import { Primitive as c } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
var u = "Progress", d = 100, [I
|
|
5
|
+
var u = "Progress", d = 100, [I] = $(u), [h, R] = I(u), f = m.forwardRef(
|
|
6
6
|
(r, e) => {
|
|
7
7
|
const {
|
|
8
8
|
__scopeProgress: i,
|
|
9
9
|
value: o = null,
|
|
10
10
|
max: a,
|
|
11
|
-
getValueLabel:
|
|
11
|
+
getValueLabel: P = E,
|
|
12
12
|
...N
|
|
13
13
|
} = r;
|
|
14
14
|
(a || a === 0) && !v(a) && console.error(M(`${a}`, "Progress"));
|
|
15
15
|
const t = v(a) ? a : d;
|
|
16
16
|
o !== null && !p(o, t) && console.error(V(`${o}`, "Progress"));
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */ l(h, { scope: i, value:
|
|
17
|
+
const n = p(o, t) ? o : null, b = s(n) ? P(n, t) : void 0;
|
|
18
|
+
return /* @__PURE__ */ l(h, { scope: i, value: n, max: t, children: /* @__PURE__ */ l(
|
|
19
19
|
c.div,
|
|
20
20
|
{
|
|
21
21
|
"aria-valuemax": t,
|
|
22
22
|
"aria-valuemin": 0,
|
|
23
|
-
"aria-valuenow": n
|
|
23
|
+
"aria-valuenow": s(n) ? n : void 0,
|
|
24
24
|
"aria-valuetext": b,
|
|
25
25
|
role: "progressbar",
|
|
26
|
-
"data-state":
|
|
27
|
-
"data-value":
|
|
26
|
+
"data-state": x(n, t),
|
|
27
|
+
"data-value": n ?? void 0,
|
|
28
28
|
"data-max": t,
|
|
29
29
|
...N,
|
|
30
30
|
ref: e
|
|
@@ -39,7 +39,7 @@ var g = "ProgressIndicator", _ = m.forwardRef(
|
|
|
39
39
|
return /* @__PURE__ */ l(
|
|
40
40
|
c.div,
|
|
41
41
|
{
|
|
42
|
-
"data-state":
|
|
42
|
+
"data-state": x(a.value, a.max),
|
|
43
43
|
"data-value": a.value ?? void 0,
|
|
44
44
|
"data-max": a.max,
|
|
45
45
|
...o,
|
|
@@ -52,17 +52,17 @@ _.displayName = g;
|
|
|
52
52
|
function E(r, e) {
|
|
53
53
|
return `${Math.round(r / e * 100)}%`;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function x(r, e) {
|
|
56
56
|
return r == null ? "indeterminate" : r === e ? "complete" : "loading";
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function s(r) {
|
|
59
59
|
return typeof r == "number";
|
|
60
60
|
}
|
|
61
61
|
function v(r) {
|
|
62
|
-
return
|
|
62
|
+
return s(r) && !isNaN(r) && r > 0;
|
|
63
63
|
}
|
|
64
64
|
function p(r, e) {
|
|
65
|
-
return
|
|
65
|
+
return s(r) && !isNaN(r) && r <= e && r >= 0;
|
|
66
66
|
}
|
|
67
67
|
function M(r, e) {
|
|
68
68
|
return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
|
|
@@ -79,6 +79,5 @@ var D = f;
|
|
|
79
79
|
export {
|
|
80
80
|
f as Progress,
|
|
81
81
|
_ as ProgressIndicator,
|
|
82
|
-
D as Root
|
|
83
|
-
C as createProgressScope
|
|
82
|
+
D as Root
|
|
84
83
|
};
|
|
@@ -23,7 +23,7 @@ var u = [
|
|
|
23
23
|
], w = u.reduce((t, i) => {
|
|
24
24
|
const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
25
|
const { asChild: a, ...p } = e, s = a ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
|
|
26
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
|
|
27
27
|
});
|
|
28
28
|
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
29
|
}, {});
|
package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function y(e) {
|
|
|
25
25
|
});
|
|
26
26
|
return r.displayName = `${e}.SlotClone`, r;
|
|
27
27
|
}
|
|
28
|
-
var g = Symbol("radix.slottable");
|
|
28
|
+
var g = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
29
|
function E(e) {
|
|
30
30
|
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
31
31
|
}
|