@phillips/seldon 1.236.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/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 +29 -33
- 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
|
@@ -3,20 +3,25 @@ function f(e) {
|
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
5
5
|
function l(e) {
|
|
6
|
-
if (e
|
|
7
|
-
var
|
|
8
|
-
if (typeof
|
|
9
|
-
var t = function
|
|
10
|
-
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
7
|
+
var n = e.default;
|
|
8
|
+
if (typeof n == "function") {
|
|
9
|
+
var t = function r() {
|
|
10
|
+
var o = !1;
|
|
11
|
+
try {
|
|
12
|
+
o = this instanceof r;
|
|
13
|
+
} catch {
|
|
14
|
+
}
|
|
15
|
+
return o ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
|
|
11
16
|
};
|
|
12
|
-
t.prototype =
|
|
17
|
+
t.prototype = n.prototype;
|
|
13
18
|
} else t = {};
|
|
14
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(
|
|
15
|
-
var
|
|
16
|
-
Object.defineProperty(t,
|
|
19
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
|
20
|
+
var o = Object.getOwnPropertyDescriptor(e, r);
|
|
21
|
+
Object.defineProperty(t, r, o.get ? o : {
|
|
17
22
|
enumerable: !0,
|
|
18
23
|
get: function() {
|
|
19
|
-
return e[
|
|
24
|
+
return e[r];
|
|
20
25
|
}
|
|
21
26
|
});
|
|
22
27
|
}), t;
|
package/dist/_virtual/index.js
CHANGED
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
package/dist/_virtual/index7.js
CHANGED
package/dist/_virtual/index8.js
CHANGED
package/dist/_virtual/index9.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import f from "../../
|
|
3
|
+
import f from "../../_virtual/index.js";
|
|
4
4
|
import { getCommonProps as l } from "../../utils/index.js";
|
|
5
5
|
import { Root as A } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
6
6
|
import { getAccordionVariantProps as C } from "./utils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as N, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Item as A, Trigger as _, Content as k } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
3
|
-
import C from "../../
|
|
3
|
+
import C from "../../_virtual/index.js";
|
|
4
4
|
import { forwardRef as v, useRef as w, useCallback as T } from "react";
|
|
5
5
|
import $ from "../Icon/Icon.js";
|
|
6
6
|
import { getCommonProps as y, px as R } from "../../utils/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useState as h } from "react";
|
|
3
3
|
import { getCommonProps as g } from "../../utils/index.js";
|
|
4
|
-
import u from "../../
|
|
4
|
+
import u from "../../_virtual/index.js";
|
|
5
5
|
import N from "../Text/Text.js";
|
|
6
6
|
import { Root as O, Trigger as I, Portal as T, Content as x, Item as A } from "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
7
7
|
import L from "../Icon/Icon.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as u } from "../../_virtual/index7.js";
|
|
2
2
|
import { isValid as p } from "../../node_modules/date-fns/isValid.js";
|
|
3
3
|
import { toZonedTime as m } from "../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js";
|
|
4
|
-
import { formatDate as a } from "../../node_modules/date-fns/format.js";
|
|
5
4
|
import { addHours as i } from "../../node_modules/date-fns/addHours.js";
|
|
5
|
+
import { format as s } from "../../node_modules/date-fns/format.js";
|
|
6
6
|
const l = {
|
|
7
7
|
google: "https://calendar.google.com/calendar/u/0/r/eventedit",
|
|
8
8
|
outlook: "https://outlook.office.com/calendar/0/deeplink/compose",
|
|
@@ -30,7 +30,7 @@ const l = {
|
|
|
30
30
|
}, H = (o, t, e) => {
|
|
31
31
|
const n = y({
|
|
32
32
|
text: e.title,
|
|
33
|
-
dates: t ? `${
|
|
33
|
+
dates: t ? `${s(o, "yyyyMMdd'T'HHmmss")}/${s(t, "yyyyMMdd'T'HHmmss")}` : `${s(o, "yyyyMMdd'T'HHmmss")}/${s(i(o, 1), "yyyyMMdd'T'HHmmss")}`,
|
|
34
34
|
ctz: e.timezone,
|
|
35
35
|
details: e.description,
|
|
36
36
|
location: e.location
|
|
@@ -41,23 +41,23 @@ const l = {
|
|
|
41
41
|
path: "/calendar/action/compose",
|
|
42
42
|
rru: "addevent",
|
|
43
43
|
subject: e.title,
|
|
44
|
-
startdt:
|
|
45
|
-
enddt: t ?
|
|
44
|
+
startdt: s(o, "yyyy-MM-dd'T'HH:mm:ssXXX"),
|
|
45
|
+
enddt: t ? s(t, "yyyy-MM-dd'T'HH:mm:ssXXX") : s(i(o, 1), "yyyy-MM-dd'T'HH:mm:ssXXX"),
|
|
46
46
|
body: e.description,
|
|
47
47
|
location: e.location,
|
|
48
48
|
allday: "false"
|
|
49
49
|
}), r = new URL(l.outlook);
|
|
50
50
|
return r.search = n.toString(), r.toString();
|
|
51
51
|
}, k = (o, t, e) => {
|
|
52
|
-
const n = encodeURIComponent(e.title), r = encodeURIComponent(e.description), c = encodeURIComponent(e.location),
|
|
53
|
-
return `${l.yahoo}?v=60&view=d&type=20&title=${n}&st=${
|
|
52
|
+
const n = encodeURIComponent(e.title), r = encodeURIComponent(e.description), c = encodeURIComponent(e.location), a = s(o, "yyyyMMdd'T'HHmmss"), g = t ? s(t, "yyyyMMdd'T'HHmmss") : s(i(o, 1), "yyyyMMdd'T'HHmmss");
|
|
53
|
+
return `${l.yahoo}?v=60&view=d&type=20&title=${n}&st=${a}&et=${g}&desc=${r}&in_loc=${c}`;
|
|
54
54
|
}, R = (o) => d("google", o), $ = (o) => d("outlook", o), X = (o) => d("yahoo", o), b = (o) => {
|
|
55
55
|
if (!o.start) {
|
|
56
56
|
console.error("Invalid event start date:", o);
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
const t = o.end ? o.end : i(o.start, 1);
|
|
60
|
-
u(
|
|
60
|
+
u.createEvent(
|
|
61
61
|
{
|
|
62
62
|
title: o.title,
|
|
63
63
|
description: o.description,
|
|
@@ -75,8 +75,8 @@ const l = {
|
|
|
75
75
|
if (e)
|
|
76
76
|
console.error("Error creating iCalendar event:", e);
|
|
77
77
|
else {
|
|
78
|
-
const r = new File([n], `${o.title}.ics`, { type: "text/calendar" }), c = URL.createObjectURL(r),
|
|
79
|
-
|
|
78
|
+
const r = new File([n], `${o.title}.ics`, { type: "text/calendar" }), c = URL.createObjectURL(r), a = document.createElement("a");
|
|
79
|
+
a.href = c, a.download = r.name, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(c);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N } from "react";
|
|
3
3
|
import { getCommonProps as h } from "../../utils/index.js";
|
|
4
|
-
import x from "../../
|
|
4
|
+
import x from "../../_virtual/index.js";
|
|
5
5
|
import $ from "../SeldonImage/SeldonImage.js";
|
|
6
6
|
import { TextVariants as c } from "../Text/types.js";
|
|
7
7
|
import t from "../Text/Text.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { getCommonProps as h, px as m } from "../../utils/index.js";
|
|
3
|
-
import u from "../../
|
|
3
|
+
import u from "../../_virtual/index.js";
|
|
4
4
|
import p from "./BreadcrumbItem.js";
|
|
5
5
|
import { SSRMediaQuery as c } from "../../providers/SeldonProvider/utils.js";
|
|
6
6
|
import x from "../Icon/Icon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { getCommonProps as d } from "../../utils/index.js";
|
|
3
|
-
import o from "../../
|
|
3
|
+
import o from "../../_virtual/index.js";
|
|
4
4
|
import u from "../Icon/Icon.js";
|
|
5
5
|
const b = ({
|
|
6
6
|
className: c,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonVariants } from './types';
|
|
1
|
+
import { ButtonVariants, ButtonSizes } from './types';
|
|
2
2
|
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement | HTMLAnchorElement> {
|
|
3
3
|
/**
|
|
4
4
|
* Button contents
|
|
@@ -16,6 +16,10 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement | HT
|
|
|
16
16
|
* Is this the principal call to action on the page?
|
|
17
17
|
*/
|
|
18
18
|
variant?: ButtonVariants;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the button
|
|
21
|
+
*/
|
|
22
|
+
size?: ButtonSizes;
|
|
19
23
|
/**
|
|
20
24
|
* The type of the button.
|
|
21
25
|
*/
|
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import { ButtonVariants as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { LinkVariants as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as j, Fragment as C, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import N from "../../_virtual/index.js";
|
|
3
|
+
import { getCommonProps as v, px as w } from "../../utils/index.js";
|
|
4
|
+
import { ButtonVariants as l, ButtonSizes as y } from "./types.js";
|
|
5
|
+
import { forwardRef as H, useState as g } from "react";
|
|
6
|
+
import { LinkVariants as s } from "../Link/types.js";
|
|
7
|
+
import F from "../Link/Link.js";
|
|
8
|
+
const I = H(
|
|
9
9
|
({
|
|
10
|
-
variant: t =
|
|
11
|
-
|
|
10
|
+
variant: t = l.primary,
|
|
11
|
+
size: k = y.default,
|
|
12
|
+
children: u,
|
|
12
13
|
className: c,
|
|
13
|
-
isIconLast:
|
|
14
|
-
type:
|
|
14
|
+
isIconLast: f = !1,
|
|
15
|
+
type: L = "button",
|
|
15
16
|
isDisabled: a = !1,
|
|
16
17
|
href: o,
|
|
17
|
-
target:
|
|
18
|
-
prefetch:
|
|
18
|
+
target: d,
|
|
19
|
+
prefetch: p = "none",
|
|
19
20
|
isSkeletonLoading: i,
|
|
20
|
-
linkSize:
|
|
21
|
+
linkSize: M = "md",
|
|
21
22
|
...m
|
|
22
|
-
},
|
|
23
|
-
const { className: e,
|
|
24
|
-
if (o || t ===
|
|
25
|
-
const
|
|
26
|
-
let r =
|
|
27
|
-
switch (
|
|
23
|
+
}, $) => {
|
|
24
|
+
const { className: e, ...b } = v(m, "Button"), [P, V] = g(!1);
|
|
25
|
+
if (o || t === l.link) {
|
|
26
|
+
const B = () => /* @__PURE__ */ n(C, { children: /* @__PURE__ */ n("link", { "data-testid": "prefetch-link", rel: "prefetch", href: o }) });
|
|
27
|
+
let r = s.linkMedium;
|
|
28
|
+
switch (M) {
|
|
28
29
|
case "lg":
|
|
29
|
-
r =
|
|
30
|
+
r = s.linkLarge;
|
|
30
31
|
break;
|
|
31
32
|
case "md":
|
|
32
|
-
r =
|
|
33
|
+
r = s.linkMedium;
|
|
33
34
|
break;
|
|
34
35
|
case "sm":
|
|
35
|
-
r =
|
|
36
|
+
r = s.linkSmall;
|
|
36
37
|
break;
|
|
37
38
|
}
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ j(C, { children: [
|
|
39
40
|
/* @__PURE__ */ n(
|
|
40
|
-
|
|
41
|
+
F,
|
|
41
42
|
{
|
|
42
|
-
|
|
43
|
+
...b,
|
|
43
44
|
variant: r,
|
|
44
|
-
ref:
|
|
45
|
+
ref: $,
|
|
45
46
|
href: o,
|
|
46
|
-
className:
|
|
47
|
+
className: N(
|
|
47
48
|
`${e}`,
|
|
48
|
-
{ [`${e}--${t}`]: t !==
|
|
49
|
-
{ [`${e}--link`]: t ===
|
|
49
|
+
{ [`${e}--${t}`]: t !== l.link },
|
|
50
|
+
{ [`${e}--link`]: t === l.link },
|
|
50
51
|
{
|
|
51
|
-
[`${e}--icon-last`]:
|
|
52
|
+
[`${e}--icon-last`]: f
|
|
52
53
|
},
|
|
53
54
|
c
|
|
54
55
|
),
|
|
55
|
-
target:
|
|
56
|
-
rel:
|
|
56
|
+
target: d,
|
|
57
|
+
rel: d === "_blank" ? "noopener noreferrer" : void 0,
|
|
57
58
|
onMouseOver: () => {
|
|
58
|
-
a ||
|
|
59
|
+
a || V(!0);
|
|
59
60
|
},
|
|
60
61
|
onClick: (x) => {
|
|
61
62
|
a ? x.preventDefault() : m.onClick?.(x);
|
|
62
63
|
},
|
|
63
|
-
children:
|
|
64
|
+
children: u
|
|
64
65
|
}
|
|
65
66
|
),
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
p === "intent" && o && P && /* @__PURE__ */ n(B, {}),
|
|
68
|
+
p === "render" && o && /* @__PURE__ */ n(B, {})
|
|
68
69
|
] });
|
|
69
70
|
} else
|
|
70
71
|
return /* @__PURE__ */ n(
|
|
71
72
|
"button",
|
|
72
73
|
{
|
|
73
|
-
|
|
74
|
-
ref:
|
|
75
|
-
type:
|
|
74
|
+
...b,
|
|
75
|
+
ref: $,
|
|
76
|
+
type: L,
|
|
76
77
|
"aria-busy": i,
|
|
77
|
-
className:
|
|
78
|
+
className: N(
|
|
78
79
|
`${e}`,
|
|
79
80
|
`${e}--${t}`,
|
|
81
|
+
{ [`${e}--${k}`]: k !== y.default },
|
|
80
82
|
{
|
|
81
|
-
[`${e}--icon-last`]:
|
|
82
|
-
[`${
|
|
83
|
+
[`${e}--icon-last`]: f,
|
|
84
|
+
[`${w}-skeleton`]: i
|
|
83
85
|
},
|
|
84
86
|
c
|
|
85
87
|
),
|
|
86
88
|
disabled: i || a,
|
|
87
89
|
...m,
|
|
88
|
-
children:
|
|
90
|
+
children: u
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
93
|
}
|
|
92
94
|
);
|
|
93
|
-
|
|
95
|
+
I.displayName = "Button";
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
I as default
|
|
96
98
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from './Button';
|
|
2
|
-
import { ButtonVariants } from './types';
|
|
2
|
+
import { ButtonVariants, ButtonSizes } from './types';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
@@ -10,6 +10,12 @@ declare const meta: {
|
|
|
10
10
|
type: "select";
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
size: {
|
|
14
|
+
options: ButtonSizes[];
|
|
15
|
+
control: {
|
|
16
|
+
type: "select";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
13
19
|
linkSize: {
|
|
14
20
|
options: string[];
|
|
15
21
|
control: {
|
|
@@ -36,13 +42,36 @@ export declare const ButtonAsLinkWithPrefetch: {
|
|
|
36
42
|
(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
37
43
|
args: {
|
|
38
44
|
variant: ButtonVariants;
|
|
39
|
-
|
|
40
|
-
} | {
|
|
41
|
-
variant: ButtonVariants;
|
|
42
|
-
size: string;
|
|
45
|
+
linkSize: string;
|
|
43
46
|
};
|
|
44
47
|
};
|
|
45
48
|
export declare const ButtonWithSkeleton: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare const SmallButtonVariant: {
|
|
50
|
+
(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
argTypes: {
|
|
52
|
+
size: {
|
|
53
|
+
control: boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const SmallButtonWithIcons: {
|
|
58
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
argTypes: {
|
|
60
|
+
size: {
|
|
61
|
+
control: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare const AllVariantsGrid: {
|
|
66
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
parameters: {
|
|
68
|
+
pseudo: {
|
|
69
|
+
hover: string[];
|
|
70
|
+
focus: string[];
|
|
71
|
+
focusVisible: string[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
46
75
|
export declare const Playground: {
|
|
47
76
|
args: {
|
|
48
77
|
children: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((r) => (r.primary = "primary", r.secondary = "secondary", r.
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.primary = "primary", r.secondary = "secondary", r.tertiary = "tertiary", r.link = "link", r))(e || {}), l = /* @__PURE__ */ ((r) => (r.default = "default", r.small = "small", r))(l || {});
|
|
2
2
|
export {
|
|
3
|
+
l as ButtonSizes,
|
|
3
4
|
e as ButtonVariants
|
|
4
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as R, forwardRef as K, useState as f, useEffect as m, useCallback as u } from "react";
|
|
3
3
|
import { getCommonProps as W } from "../../utils/index.js";
|
|
4
|
-
import j from "../../
|
|
4
|
+
import j from "../../_virtual/index.js";
|
|
5
5
|
import B from "../../node_modules/embla-carousel-class-names/esm/embla-carousel-class-names.esm.js";
|
|
6
6
|
import G from "../../node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js";
|
|
7
7
|
import { WheelGesturesPlugin as L } from "../../node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import n from "../../
|
|
2
|
+
import n from "../../_virtual/index.js";
|
|
3
3
|
import { forwardRef as p, useCallback as l } from "react";
|
|
4
4
|
import { getCommonProps as u } from "../../utils/index.js";
|
|
5
5
|
import { useCarousel as f } from "./utils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import a from "../../
|
|
3
|
+
import a from "../../_virtual/index.js";
|
|
4
4
|
import { useCarousel as p } from "./utils.js";
|
|
5
5
|
import { getCommonProps as u } from "../../utils/index.js";
|
|
6
6
|
const C = f(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import r from "../../
|
|
2
|
+
import r from "../../_virtual/index.js";
|
|
3
3
|
import { useInView as i } from "../../node_modules/react-intersection-observer/dist/index.js";
|
|
4
4
|
import { getCommonProps as f } from "../../utils/index.js";
|
|
5
5
|
const N = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import E from "../../
|
|
2
|
+
import E from "../../_virtual/index.js";
|
|
3
3
|
import { forwardRef as G, useState as S, useRef as L, useCallback as l, useEffect as M, useMemo as q } from "react";
|
|
4
4
|
import { useCarousel as z } from "./utils.js";
|
|
5
5
|
import { getCommonProps as A } from "../../utils/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import i from "../../
|
|
2
|
+
import i from "../../_virtual/index.js";
|
|
3
3
|
import { forwardRef as c } from "react";
|
|
4
4
|
import { getCommonProps as u } from "../../utils/index.js";
|
|
5
5
|
import { useCarousel as p } from "./utils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Root as e } from "../../node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
3
3
|
import { getCommonProps as t } from "../../utils/index.js";
|
|
4
|
-
import p from "../../
|
|
4
|
+
import p from "../../_virtual/index.js";
|
|
5
5
|
import { forwardRef as i } from "react";
|
|
6
6
|
const f = i(({ className: m, ...o }, s) => {
|
|
7
7
|
const { className: a, ...r } = t(o, "Collapsible");
|
|
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { Content as r } from "../../node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
4
4
|
import { getCommonProps as n } from "../../utils/index.js";
|
|
5
|
-
import p from "../../
|
|
5
|
+
import p from "../../_virtual/index.js";
|
|
6
6
|
const f = l.forwardRef(({ className: t, ...o }, e) => {
|
|
7
7
|
const { className: a, ...m } = n(o, "CollapsibleContent");
|
|
8
8
|
return /* @__PURE__ */ s(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Trigger as l } from "../../node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
3
3
|
import { getCommonProps as i } from "../../utils/index.js";
|
|
4
|
-
import t from "../../
|
|
4
|
+
import t from "../../_virtual/index.js";
|
|
5
5
|
import { forwardRef as p } from "react";
|
|
6
6
|
const g = p(({ className: o, ...r }, m) => {
|
|
7
7
|
const { className: s, ...e } = i(r, "CollapsibleTrigger");
|