@phillips/seldon 1.258.0 → 1.260.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/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/components/Tabs/TabsContainer.cjs +1 -1
- package/dist/components/Tabs/TabsContainer.d.ts +1 -1
- package/dist/components/Tabs/TabsContainer.js +12 -12
- package/dist/node_modules/ics/dist/schema/index.cjs +1 -1
- package/dist/node_modules/ics/dist/schema/index.js +1 -1
- package/dist/node_modules/ics/dist/utils/index.cjs +1 -1
- package/dist/node_modules/ics/dist/utils/index.js +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.cjs +1 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +11 -11
- package/package.json +1 -1
package/dist/_virtual/index12.js
CHANGED
package/dist/_virtual/index13.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../node_modules/@radix-ui/react-tabs/dist/index.cjs"),f=require("../../_virtual/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../node_modules/@radix-ui/react-tabs/dist/index.cjs"),f=require("../../_virtual/index.cjs"),q=require("react"),v=require("../../utils/index.cjs"),T=require("../Text/types.cjs"),_=require("../Text/Text.cjs"),g=require("./TabTrigger.cjs"),i=q.forwardRef(({className:n,tabs:r=[],tabListLabel:u,children:o,defaultValue:c,value:d,onTabClick:m,...l},x)=>{const{className:a,...b}=v.getCommonProps(l,"TabsContainer");return e.jsxs(t.Root,{...l,defaultValue:c||r[0].value,value:d,...b,className:f.default(`${a}`,n),ref:x,children:[e.jsxs(t.List,{"aria-label":u,className:`${a}__tabs-list`,children:[r.map(s=>e.jsx(g.default,{value:s.value,className:`${a}__tabs-trigger`,onClick:m,children:e.jsx(_.default,{variant:T.TextVariants.labelMedium,children:s.label})},s.value)),e.jsx("div",{className:`${a}__full-bleed-underline`})]}),o]})});i.displayName="TabsContainer";exports.default=i;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Root as u, List as b } from "../../node_modules/@radix-ui/react-tabs/dist/index.js";
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { getCommonProps as
|
|
6
|
-
import { TextVariants as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const x =
|
|
10
|
-
({ className: m, tabs: o = [], tabListLabel: i
|
|
11
|
-
const { className: a, ...p } =
|
|
3
|
+
import N from "../../_virtual/index.js";
|
|
4
|
+
import { forwardRef as T } from "react";
|
|
5
|
+
import { getCommonProps as v } from "../../utils/index.js";
|
|
6
|
+
import { TextVariants as C } from "../Text/types.js";
|
|
7
|
+
import _ from "../Text/Text.js";
|
|
8
|
+
import g from "./TabTrigger.js";
|
|
9
|
+
const x = T(
|
|
10
|
+
({ className: m, tabs: o = [], tabListLabel: i, children: t, defaultValue: n, value: c, onTabClick: f, ...s }, d) => {
|
|
11
|
+
const { className: a, ...p } = v(s, "TabsContainer");
|
|
12
12
|
return /* @__PURE__ */ l(
|
|
13
13
|
u,
|
|
14
14
|
{
|
|
@@ -16,17 +16,17 @@ const x = N(
|
|
|
16
16
|
defaultValue: n || o[0].value,
|
|
17
17
|
value: c,
|
|
18
18
|
...p,
|
|
19
|
-
className:
|
|
19
|
+
className: N(`${a}`, m),
|
|
20
20
|
ref: d,
|
|
21
21
|
children: [
|
|
22
22
|
/* @__PURE__ */ l(b, { "aria-label": i, className: `${a}__tabs-list`, children: [
|
|
23
23
|
o.map((e) => /* @__PURE__ */ r(
|
|
24
|
-
|
|
24
|
+
g,
|
|
25
25
|
{
|
|
26
26
|
value: e.value,
|
|
27
27
|
className: `${a}__tabs-trigger`,
|
|
28
28
|
onClick: f,
|
|
29
|
-
children: /* @__PURE__ */ r(
|
|
29
|
+
children: /* @__PURE__ */ r(_, { variant: C.labelMedium, children: e.label })
|
|
30
30
|
},
|
|
31
31
|
e.value
|
|
32
32
|
)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../_virtual/index12.cjs"),R=require("../../../../_virtual/index.esm.cjs");var b;function D(){if(b)return u.__exports;b=1,Object.defineProperty(u.__exports,"__esModule",{value:!0}),u.__exports.urlRegex=void 0,u.__exports.validateHeader=T,u.__exports.validateHeaderAndEvent=j;var e=v(R.default);function f(r){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(f=function(c){return c?n:t})(r)}function v(r,t){if(r&&r.__esModule)return r;if(r===null||o(r)!=="object"&&typeof r!="function")return{default:r};var n=f(t);if(n&&n.has(r))return n.get(r);var a={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)){var d=c?Object.getOwnPropertyDescriptor(r,i):null;d&&(d.get||d.set)?Object.defineProperty(a,i,d):a[i]=r[i]}return a.default=r,n&&n.set(r,a),a}function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(r)}function l(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function m(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(a){O(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}function O(r,t,n){return t=S(t),t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function S(r){var t=x(r,"string");return o(t)==="symbol"?t:String(t)}function x(r,t){if(o(r)!=="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var a=n.call(r,t);if(o(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}var p=u.__exports.urlRegex=/^(?:([a-z0-9+.-]+):\/\/)(?:\S+(?::\S*)?@)?(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/,s=function(t){var n=t.required;return e.lazy(function(a){return typeof a=="number"?e.number().integer().min(0):typeof a=="string"?e.string().required():!n&&typeof a>"u"?e.mixed().oneOf([void 0]):e.array().required().min(3).max(7).of(e.lazy(function(c,i){var d=i.parent.indexOf(i.value);return[e.number().integer(),e.number().integer().min(1).max(12),e.number().integer().min(1).max(31),e.number().integer().min(0).max(23),e.number().integer().min(0).max(60),e.number().integer().min(0).max(60)][d]}))})},g=e.object().shape({before:e.boolean(),weeks:e.number(),days:e.number(),hours:e.number(),minutes:e.number(),seconds:e.number()}).noUnknown(),y=e.object().shape({name:e.string(),email:e.string().email(),rsvp:e.boolean(),dir:e.string().matches(p),partstat:e.string(),role:e.string(),cutype:e.string(),xNumGuests:e.number()}).noUnknown(),_=e.object().shape({name:e.string(),email:e.string().email(),dir:e.string(),sentBy:e.string()}).noUnknown(),P=e.object().shape({action:e.string().matches(/^(audio|display|email)$/).required(),trigger:e.mixed().required(),description:e.string(),duration:g,repeat:e.number(),attach:e.string(),attachType:e.string(),summary:e.string(),attendee:y,"x-prop":e.mixed(),"iana-prop":e.mixed()}).noUnknown(),h={productId:e.string(),method:e.string(),calName:e.string()},w=e.object().shape(h).noUnknown(),q={summary:e.string(),timestamp:s({required:!1}),title:e.string(),uid:e.string(),sequence:e.number().integer().max(2147483647),start:s({required:!0}),duration:g,startType:e.string().matches(/^(utc|local)$/),startInputType:e.string().matches(/^(utc|local)$/),startOutputType:e.string().matches(/^(utc|local)$/),end:s({required:!1}),endInputType:e.string().matches(/^(utc|local)$/),endOutputType:e.string().matches(/^(utc|local)$/),description:e.string(),url:e.string().matches(p),geo:e.object().shape({lat:e.number(),lon:e.number()}),location:e.string(),status:e.string().matches(/^(TENTATIVE|CANCELLED|CONFIRMED)$/i),categories:e.array().of(e.string()),organizer:_,attendees:e.array().of(y),alarms:e.array().of(P),recurrenceRule:e.string(),busyStatus:e.string().matches(/^(TENTATIVE|FREE|BUSY|OOF)$/i),transp:e.string().matches(/^(TRANSPARENT|OPAQUE)$/i),classification:e.string(),created:s({required:!1}),lastModified:s({required:!1}),exclusionDates:e.array().of(s({required:!0})),htmlContent:e.string()},E=e.object().shape(m(m({},h),q)).test("xor","object should have end or duration (but not both)",function(r){var t=!!r.end,n=!!r.duration;return t&&!n||!t&&n||!t&&!n}).noUnknown();function T(r){try{var t=w.validateSync(r,{abortEarly:!1,strict:!0});return{error:null,value:t}}catch(n){return{error:Object.assign({},n),value:void 0}}}function j(r){try{var t=E.validateSync(r,{abortEarly:!1,strict:!0});return{error:null,value:t}}catch(n){return{error:Object.assign({},n),value:void 0}}}return u.__exports}exports.__require=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../_virtual/index13.cjs"),q=require("./format-date.cjs"),b=require("./set-geolocation.cjs"),y=require("./set-contact.cjs"),O=require("./set-organizer.cjs"),P=require("./set-alarm.cjs"),v=require("./set-description.cjs"),j=require("./set-summary.cjs"),D=require("./format-duration.cjs"),p=require("./fold-line.cjs"),L=require("./set-location.cjs"),S=require("./encode-param-value.cjs");var n;function z(){return n||(n=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeParamValue",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(r,"foldLine",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"formatDate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"formatDuration",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"setAlarm",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(r,"setContact",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"setDescription",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(r,"setGeolocation",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"setLocation",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(r,"setOrganizer",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"setSummary",{enumerable:!0,get:function(){return l.default}});var i=t(q.__require()),a=t(b.__require()),o=t(y.__require()),c=t(O.__require()),f=t(P.__require()),_=t(v.__require()),l=t(j.__require()),d=t(D.__require()),s=t(p.__require()),m=t(L.__require()),g=t(S.__require());function t(e){return e&&e.__esModule?e:{default:e}}})(u.__exports)),u.__exports}exports.__require=z;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as u } from "../../../../_virtual/
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/index13.js";
|
|
2
2
|
import { __require as g } from "./format-date.js";
|
|
3
3
|
import { __require as b } from "./set-geolocation.js";
|
|
4
4
|
import { __require as p } from "./set-contact.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),V=require("react"),k=require("../../utils/index.cjs"),C=require("../../_virtual/index.cjs"),x=require("../../components/Countdown/Countdown.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),V=require("react"),k=require("../../utils/index.cjs"),C=require("../../_virtual/index.cjs"),x=require("../../components/Countdown/Countdown.cjs"),A=require("../../components/SeldonImage/SeldonImage.cjs"),H=require("../../types/commonTypes.cjs"),s=require("../../components/Text/types.cjs"),r=require("../../components/Text/Text.cjs"),O=require("../../components/PageContentWrapper/PageContentWrapper.cjs"),j=require("../../providers/SeldonProvider/utils.cjs"),h=V.forwardRef(({auctionEndTime:t,auctionTitle:l,badgeText:i,imageSrcUrl:f,imageSrcSet:g,imageSizes:v,imageLoading:N,imageFetchPriority:S,location:$,countdownTimerLabel:q,countdownFormatDuration:b,auctionState:p,occurrenceInformation:M,onClick:D,children:y,className:T,footerElement:w,headerLabel:B,showTimer:c,getCurrentDateTime:P,...n},d)=>{const{className:a,...o}=k.getCommonProps(n,"SaleHeaderBanner"),u=p===H.AuctionStatus.live,m={endDateTime:t,label:q,formatDurationStr:b,getCurrentDateTime:P};return e.jsxs("div",{...o,className:C.default(a,T),...n,ref:d,children:[u&&t&&c?e.jsx(j.SSRMediaQuery.Media,{lessThan:"md",children:e.jsx("div",{className:`${a}__stack__countdown`,children:e.jsx(x.default,{...m,showBottomBorder:!1,centerAlign:!0})})}):null,e.jsx(A.default,{aspectRatio:"16/9",src:f,alt:String(l),objectFit:"cover",className:`${a}__image`,srcSet:g,sizes:v,loading:N,fetchPriority:S}),e.jsx(O.default,{className:`${a}__stack-wrapper`,...o,...n,ref:d,children:e.jsxs("div",{className:`${a}__stack`,children:[u&&t&&c?e.jsx(j.SSRMediaQuery.Media,{greaterThanOrEqual:"md",children:e.jsx("div",{className:`${a}__stack__countdown`,children:e.jsx(x.default,{...m,centerAlign:!0})})}):null,e.jsx(r.default,{variant:s.TextVariants.labelMedium,className:`${a}__header-label`,children:B}),e.jsx(r.default,{className:`${a}__title`,variant:s.TextVariants.headingLarge,children:l}),i&&e.jsx(r.default,{variant:s.TextVariants.badge,className:`${a}__badge`,children:i}),e.jsx(r.default,{variant:s.TextVariants.labelMedium,className:`${a}__location`,children:$}),e.jsxs("div",{className:`${a}__occurrence-details`,children:[M.map(({date:_,occurrenceLabel:R})=>e.jsxs("div",{className:`${a}__occurrence-details-text`,children:[e.jsx(r.default,{variant:s.TextVariants.labelMedium,children:R}),e.jsx(r.default,{variant:s.TextVariants.labelMedium,className:`${a}__date`,children:_})]},String(_))),y]}),w]})})]})});h.displayName="SaleHeaderBanner";exports.default=h;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
2
|
+
import { forwardRef as H } from "react";
|
|
3
|
+
import { getCommonProps as R } from "../../utils/index.js";
|
|
4
4
|
import D from "../../_virtual/index.js";
|
|
5
5
|
import u from "../../components/Countdown/Countdown.js";
|
|
6
6
|
import F from "../../components/SeldonImage/SeldonImage.js";
|
|
@@ -9,14 +9,14 @@ import { TextVariants as r } from "../../components/Text/types.js";
|
|
|
9
9
|
import l from "../../components/Text/Text.js";
|
|
10
10
|
import q from "../../components/PageContentWrapper/PageContentWrapper.js";
|
|
11
11
|
import { SSRMediaQuery as f } from "../../providers/SeldonProvider/utils.js";
|
|
12
|
-
const z =
|
|
12
|
+
const z = H(
|
|
13
13
|
({
|
|
14
14
|
auctionEndTime: t,
|
|
15
15
|
auctionTitle: s,
|
|
16
16
|
badgeText: o,
|
|
17
17
|
imageSrcUrl: N,
|
|
18
|
-
imageSrcSet:
|
|
19
|
-
imageSizes:
|
|
18
|
+
imageSrcSet: g,
|
|
19
|
+
imageSizes: v,
|
|
20
20
|
imageLoading: $,
|
|
21
21
|
imageFetchPriority: S,
|
|
22
22
|
location: b,
|
|
@@ -33,7 +33,7 @@ const z = R(
|
|
|
33
33
|
getCurrentDateTime: y,
|
|
34
34
|
...n
|
|
35
35
|
}, m) => {
|
|
36
|
-
const { className: a, ...d } =
|
|
36
|
+
const { className: a, ...d } = R(n, "SaleHeaderBanner"), _ = B === O.live, h = {
|
|
37
37
|
endDateTime: t,
|
|
38
38
|
label: M,
|
|
39
39
|
formatDurationStr: w,
|
|
@@ -49,21 +49,21 @@ const z = R(
|
|
|
49
49
|
alt: String(s),
|
|
50
50
|
objectFit: "cover",
|
|
51
51
|
className: `${a}__image`,
|
|
52
|
-
srcSet:
|
|
53
|
-
sizes:
|
|
52
|
+
srcSet: g,
|
|
53
|
+
sizes: v,
|
|
54
54
|
loading: $,
|
|
55
55
|
fetchPriority: S
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
/* @__PURE__ */ e(q, { className: `${a}__stack-wrapper`, ...d, ...n, ref: m, children: /* @__PURE__ */ i("div", { className: `${a}__stack`, children: [
|
|
59
|
-
_ && t && c ? /* @__PURE__ */ e(f.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ e("div", { className: `${a}__stack__countdown`, children: /* @__PURE__ */ e(u, { ...h }) }) }) : null,
|
|
59
|
+
_ && t && c ? /* @__PURE__ */ e(f.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ e("div", { className: `${a}__stack__countdown`, children: /* @__PURE__ */ e(u, { ...h, centerAlign: !0 }) }) }) : null,
|
|
60
60
|
/* @__PURE__ */ e(l, { variant: r.labelMedium, className: `${a}__header-label`, children: j }),
|
|
61
61
|
/* @__PURE__ */ e(l, { className: `${a}__title`, variant: r.headingLarge, children: s }),
|
|
62
62
|
o && /* @__PURE__ */ e(l, { variant: r.badge, className: `${a}__badge`, children: o }),
|
|
63
63
|
/* @__PURE__ */ e(l, { variant: r.labelMedium, className: `${a}__location`, children: b }),
|
|
64
64
|
/* @__PURE__ */ i("div", { className: `${a}__occurrence-details`, children: [
|
|
65
|
-
k.map(({ date: p, occurrenceLabel:
|
|
66
|
-
/* @__PURE__ */ e(l, { variant: r.labelMedium, children:
|
|
65
|
+
k.map(({ date: p, occurrenceLabel: A }) => /* @__PURE__ */ i("div", { className: `${a}__occurrence-details-text`, children: [
|
|
66
|
+
/* @__PURE__ */ e(l, { variant: r.labelMedium, children: A }),
|
|
67
67
|
/* @__PURE__ */ e(l, { variant: r.labelMedium, className: `${a}__date`, children: p })
|
|
68
68
|
] }, String(p))),
|
|
69
69
|
x
|