@everlywell/consumer-ui 1.19.0 → 1.21.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/index.d.mts +7 -1
- package/index.d.ts +7 -1
- package/index.d.ts.map +1 -0
- package/index.js +11 -11
- package/index.mjs +532 -318
- package/lib/components/Navbar/BasketButton/BasketButton.d.ts +21 -0
- package/lib/components/Navbar/BasketButton/BasketButton.d.ts.map +1 -0
- package/lib/components/Navbar/BasketButton/BasketButton.stories.d.ts +9 -0
- package/lib/components/Navbar/BasketButton/BasketButton.stories.d.ts.map +1 -0
- package/lib/components/Navbar/BasketButton/index.d.ts +3 -0
- package/lib/components/Navbar/BasketButton/index.d.ts.map +1 -0
- package/lib/components/{CategoryLabel → Navbar/CategoryLabel}/CategoryLabel.d.ts +3 -2
- package/lib/components/Navbar/CategoryLabel/CategoryLabel.d.ts.map +1 -0
- package/lib/components/{CategoryLabel → Navbar/CategoryLabel}/CategoryLabel.stories.d.ts +1 -0
- package/lib/components/Navbar/CategoryLabel/CategoryLabel.stories.d.ts.map +1 -0
- package/lib/components/Navbar/CategoryLabel/index.d.ts +3 -0
- package/lib/components/Navbar/CategoryLabel/index.d.ts.map +1 -0
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.d.ts +3 -2
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.d.ts.map +1 -0
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.d.ts +1 -0
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.d.ts.map +1 -0
- package/lib/components/Navbar/DesktopNavLink/index.d.ts +1 -0
- package/lib/components/Navbar/DesktopNavLink/index.d.ts.map +1 -0
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.d.ts +1 -0
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.d.ts.map +1 -0
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.d.ts +1 -0
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.d.ts.map +1 -0
- package/lib/components/Navbar/MobileNavItems/index.d.ts +1 -0
- package/lib/components/Navbar/MobileNavItems/index.d.ts.map +1 -0
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.d.ts +3 -2
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.d.ts.map +1 -0
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.stories.d.ts +1 -0
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.stories.d.ts.map +1 -0
- package/lib/components/Navbar/MobileNavLink/index.d.ts +1 -0
- package/lib/components/Navbar/MobileNavLink/index.d.ts.map +1 -0
- package/lib/components/Navbar/NavButton/NavButton.d.ts +1 -0
- package/lib/components/Navbar/NavButton/NavButton.d.ts.map +1 -0
- package/lib/components/Navbar/NavButton/NavButton.stories.d.ts +1 -0
- package/lib/components/Navbar/NavButton/NavButton.stories.d.ts.map +1 -0
- package/lib/components/Navbar/NavButton/index.d.ts +1 -0
- package/lib/components/Navbar/NavButton/index.d.ts.map +1 -0
- package/lib/components/Navbar/SpotlightCard/SpotlightCard.d.ts +71 -0
- package/lib/components/Navbar/SpotlightCard/SpotlightCard.d.ts.map +1 -0
- package/lib/components/Navbar/SpotlightCard/SpotlightCard.stories.d.ts +8 -0
- package/lib/components/Navbar/SpotlightCard/SpotlightCard.stories.d.ts.map +1 -0
- package/lib/components/Navbar/SpotlightCard/index.d.ts +3 -0
- package/lib/components/Navbar/SpotlightCard/index.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.builder.d.ts +1 -0
- package/lib/components/Stepper/Stepper.builder.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.d.ts +1 -0
- package/lib/components/Stepper/Stepper.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.stories.d.ts +1 -0
- package/lib/components/Stepper/Stepper.stories.d.ts.map +1 -0
- package/lib/components/Stepper/index.d.ts +1 -0
- package/lib/components/Stepper/index.d.ts.map +1 -0
- package/lib/components/TemporaryCard/TemporaryCard.d.ts +1 -0
- package/lib/components/TemporaryCard/TemporaryCard.d.ts.map +1 -0
- package/lib/components/TemporaryCard/TemporaryCard.stories.d.ts +1 -0
- package/lib/components/TemporaryCard/TemporaryCard.stories.d.ts.map +1 -0
- package/lib/components/TemporaryCard/index.d.ts +1 -0
- package/lib/components/TemporaryCard/index.d.ts.map +1 -0
- package/lib/consumer-ui.d.ts +1 -0
- package/lib/consumer-ui.d.ts.map +1 -0
- package/lib/utils/utils.storybook.d.ts +1 -0
- package/lib/utils/utils.storybook.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/components/CategoryLabel/index.d.ts +0 -1
package/index.d.mts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export { default as TemporaryCard, type TemporaryCardProps, } from './lib/components/TemporaryCard';
|
|
2
2
|
export { default as Stepper, type StepperProps, type StepProps, } from './lib/components/Stepper';
|
|
3
|
-
export { CategoryLabel } from './lib/components/CategoryLabel';
|
|
3
|
+
export { default as CategoryLabel, type CategoryLabelProps, } from './lib/components/Navbar/CategoryLabel';
|
|
4
|
+
export { default as DesktopNavLink, type DesktopNavLinkProps, } from './lib/components/Navbar/DesktopNavLink';
|
|
5
|
+
export { default as MobileNavItems, type MobileNavItemsProps, } from './lib/components/Navbar/MobileNavItems';
|
|
6
|
+
export { default as MobileNavLink, type MobileNavLinkProps, } from './lib/components/Navbar/MobileNavLink';
|
|
7
|
+
export { default as NavButton, type NavButtonProps, } from './lib/components/Navbar/NavButton';
|
|
8
|
+
export { default as SpotlightCard, type SpotlightCardProps, } from './lib/components/Navbar/SpotlightCard';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export { default as TemporaryCard, type TemporaryCardProps, } from './lib/components/TemporaryCard';
|
|
2
2
|
export { default as Stepper, type StepperProps, type StepProps, } from './lib/components/Stepper';
|
|
3
|
-
export { CategoryLabel } from './lib/components/CategoryLabel';
|
|
3
|
+
export { default as CategoryLabel, type CategoryLabelProps, } from './lib/components/Navbar/CategoryLabel';
|
|
4
|
+
export { default as DesktopNavLink, type DesktopNavLinkProps, } from './lib/components/Navbar/DesktopNavLink';
|
|
5
|
+
export { default as MobileNavItems, type MobileNavItemsProps, } from './lib/components/Navbar/MobileNavItems';
|
|
6
|
+
export { default as MobileNavLink, type MobileNavLinkProps, } from './lib/components/Navbar/MobileNavLink';
|
|
7
|
+
export { default as NavButton, type NavButtonProps, } from './lib/components/Navbar/NavButton';
|
|
8
|
+
export { default as SpotlightCard, type SpotlightCardProps, } from './lib/components/Navbar/SpotlightCard';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/consumer-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,KAAK,mBAAmB,GACzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,KAAK,mBAAmB,GACzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,KAAK,cAAc,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@everlywell/ui-kit"),q=require("react"),gr=require("@chakra-ui/react"),Pe=require("@phosphor-icons/react");var ne={exports:{}},N={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ce;function hr(){if(Ce)return N;Ce=1;var p=q,s=Symbol.for("react.element"),g=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,k=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R={key:!0,ref:!0,__self:!0,__source:!0};function j(S,f,T){var h,_={},w=null,O=null;T!==void 0&&(w=""+T),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(O=f.ref);for(h in f)y.call(f,h)&&!R.hasOwnProperty(h)&&(_[h]=f[h]);if(S&&S.defaultProps)for(h in f=S.defaultProps,f)_[h]===void 0&&(_[h]=f[h]);return{$$typeof:s,type:S,key:w,ref:O,props:_,_owner:k.current}}return N.Fragment=g,N.jsx=j,N.jsxs=j,N}var Y={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+G+e}}var
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+a[
|
|
17
|
+
*/var ke;function br(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var p=q,s=Symbol.for("react.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),S=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),B=Symbol.iterator,Ie="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=B&&e[B]||e[Ie];return typeof r=="function"?r:null}var D=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=D.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ae=!1,We=!1,$e=!1,Le=!1,Ne=!1,ae;ae=Symbol.for("react.module.reference");function Ye(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===R||Ne||e===k||e===T||e===h||Le||e===O||Ae||We||$e||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===_||e.$$typeof===j||e.$$typeof===S||e.$$typeof===f||e.$$typeof===ae||e.getModuleId!==void 0))}function Be(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ie(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case g:return"Portal";case R:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return ie(r)+".Consumer";case j:var t=e;return ie(t._context)+".Provider";case f:return Be(e,e.render,"ForwardRef");case _:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case w:{var o=e,c=o._payload,i=o._init;try{return C(i(c))}catch{return null}}}return null}var P=Object.assign,W=0,oe,se,le,ue,ce,fe,de;function ve(){}ve.__reactDisabledLog=!0;function Me(){{if(W===0){oe=console.log,se=console.info,le=console.warn,ue=console.error,ce=console.group,fe=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Ve(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:oe}),info:P({},e,{value:se}),warn:P({},e,{value:le}),error:P({},e,{value:ue}),group:P({},e,{value:ce}),groupCollapsed:P({},e,{value:fe}),groupEnd:P({},e,{value:de})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=D.ReactCurrentDispatcher,G;function M(e,r,t){{if(G===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
|
|
18
|
+
`+G+e}}var J=!1,V;{var ze=typeof WeakMap=="function"?WeakMap:Map;V=new ze}function pe(e,r){if(!e||J)return"";{var t=V.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=H.current,H.current=null,Me();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(x){n=x}Reflect.construct(e,[],i)}else{try{i.call()}catch(x){n=x}e.call(i.prototype)}}else{try{throw Error()}catch(x){n=x}e()}}catch(x){if(x&&n&&typeof x.stack=="string"){for(var a=x.stack.split(`
|
|
19
|
+
`),m=n.stack.split(`
|
|
20
|
+
`),d=a.length-1,v=m.length-1;d>=1&&v>=0&&a[d]!==m[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==m[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==m[v]){var E=`
|
|
21
|
+
`+a[d].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,E),E}while(d>=1&&v>=0);break}}}finally{J=!1,H.current=c,Ve(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",I=A?M(A):"";return typeof e=="function"&&V.set(e,I),I}function Ue(e,r,t){return pe(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function z(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,qe(e));if(typeof e=="string")return M(e);switch(e){case T:return M("Suspense");case h:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ue(e.render);case _:return z(e.type,r,t);case w:{var n=e,o=n._payload,c=n._init;try{return z(c(o),r,t)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,ge={},he=D.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function He(e,r,t,n,o){{var c=Function.call.bind($);for(var i in e)if(c(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(U(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),U(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,U(o),b("Failed %s type: %s",t,a.message),U(null))}}}var Ge=Array.isArray;function K(e){return Ge(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ke(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function me(e){if(Ke(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),be(e)}var L=D.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ye,xe,X;X={};function Ze(e){if($.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=C(L.current.type);X[t]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C(L.current.type),e.ref),X[t]=!0)}}function rr(e,r){{var t=function(){ye||(ye=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function tr(e,r){{var t=function(){xe||(xe=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,n,o,c,i){var a={$$typeof:s,type:e,key:r,ref:t,props:i,_owner:c};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ar(e,r,t,n,o){{var c,i={},a=null,m=null;t!==void 0&&(me(t),a=""+t),Qe(r)&&(me(r.key),a=""+r.key),Ze(r)&&(m=r.ref,er(r,o));for(c in r)$.call(r,c)&&!Xe.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)i[c]===void 0&&(i[c]=d[c])}if(a||m){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&rr(i,v),m&&tr(i,v)}return nr(e,a,m,o,n,L.current,i)}}var Z=D.ReactCurrentOwner,_e=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ee(){{if(Z.current){var e=C(Z.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var Re={};function or(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=or(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+C(e._owner.type)+"."),F(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),F(null)}}function je(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Se(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var c=o.call(e),i;!(i=c.next()).done;)ee(i.value)&&Se(i.value,r)}}}function sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=C(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=C(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){F(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var Te={};function we(e,r,t,n,o,c){{var i=Ye(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=ir(o);m?a+=m:a+=Ee();var d;e===null?d="null":K(e)?d="array":e!==void 0&&e.$$typeof===s?(d="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var v=ar(e,r,t,o,c);if(v==null)return v;if(i){var E=r.children;if(E!==void 0)if(n)if(K(E)){for(var A=0;A<E.length;A++)je(E[A],e);Object.freeze&&Object.freeze(E)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else je(E,e)}if($.call(r,"key")){var I=C(e),x=Object.keys(r).filter(function(pr){return pr!=="key"}),re=x.length>0?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[I+re]){var vr=x.length>0?"{"+x.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
|
|
28
28
|
let props = %s;
|
|
29
29
|
<%s {...props} />
|
|
30
30
|
React keys must be passed directly to JSX without using spread:
|
|
31
31
|
let props = %s;
|
|
32
|
-
<%s key={someKey} {...props} />`,re,
|
|
32
|
+
<%s key={someKey} {...props} />`,re,I,vr,I),Te[I+re]=!0}}return e===y?lr(v):sr(v),v}}function ur(e,r,t){return we(e,r,t,!0)}function cr(e,r,t){return we(e,r,t,!1)}var fr=cr,dr=ur;Y.Fragment=y,Y.jsx=fr,Y.jsxs=dr}()),Y}process.env.NODE_ENV==="production"?ne.exports=hr():ne.exports=br();var u=ne.exports;function mr({title:p,subtitle:s,children:g}){return u.jsxs(l.Flex,{flexDirection:"column",border:"1px solid",borderColor:"tints.black",padding:"8",alignItems:"center",children:[u.jsx(l.Heading,{as:"h3",marginBottom:"10",children:p}),u.jsx(l.Heading,{as:"h4",marginBottom:"4",fontSize:"xl",children:s}),g]})}const te=60,Oe=6,yr=p=>{const{activeStepIndex:s,hideIndicators:g=!1,steps:y,stepperTheme:k={light:"eggplant.light",base:"eggplant.base"}}=p,{activeStep:R,setActiveStep:j}=l.useSteps({index:s,count:y.length});return q.useEffect(()=>{j(s)},[s,j]),u.jsx(l.Box,{position:"relative",width:"100%","data-testid":"stepper",children:u.jsx(l.Stepper,{role:"progressbar",index:R,width:"100%",display:"flex",flexWrap:"nowrap",children:y.map((S,f)=>{const T=R===f,h=f===0,_=f===y.length-1,w=R>f;let O=`${te}px`;const B=`calc(100% - ((${te*(y.length-1)}px) - (${y.length-1} * ${Oe*2}px)))`;return T?O=B:(h||_)&&(O=`${te-Oe}px`),u.jsx(l.Box,{width:O,opacity:w||T?1:.2,paddingRight:_?"0":"6px",paddingLeft:h?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:u.jsx(l.Box,{paddingTop:g?2:5,position:"relative",width:"100%",children:u.jsx(l.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:w?k.light:k.base,height:g?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${f}`)})})})},xr=q.memo(yr),_r=({children:p,...s})=>u.jsx(gr.Text,{color:"tints.uiGrey",fontSize:["md",null,"lg"],...s,children:p}),Er=({label:p,additionalContent:s,...g})=>u.jsxs(l.Link,{display:"flex",alignItems:"center",gap:2,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},...g,children:[u.jsx(l.Icon,{as:Pe.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),u.jsxs(l.Flex,{alignItems:"center",gap:1,children:[u.jsx(l.Text,{fontSize:"lg",fontWeight:"medium",children:p}),s&&(typeof s=="string"?u.jsx(l.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:s}):s)]})]}),Rr=({children:p,...s})=>u.jsx(l.Stack,{as:"nav",width:"100%",...s,children:p}),Sr=({label:p,additionalContent:s,...g})=>u.jsx(l.Link,{display:"flex",alignItems:"center",justifyContent:"space-between",paddingY:3,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:"1px",borderColor:"tints.cream",...g,children:u.jsxs(l.Flex,{alignItems:"center",gap:1,width:"100%",children:[u.jsx(l.Text,{fontWeight:"medium",fontSize:"xl",children:p}),s&&(typeof s=="string"?u.jsx(l.Text,{fontSize:"xl",fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:s}):s),u.jsx(l.Icon,{as:Pe.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})}),jr=({children:p,isSelected:s,...g})=>u.jsx(l.Button,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",backgroundColor:s?"tints.lightCream":"transparent",fontSize:"lg",fontWeight:"normal",color:"tints.black",_hover:{backgroundColor:"tints.lightCream",textDecoration:"none"},...g,children:p}),Tr=({title:p,description:s,imageSrc:g,imageElement:y,button:k,backgroundColor:R="viridian.wash",onClick:j})=>{const S="80px";return u.jsxs(l.Flex,{direction:["row",null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",minHeight:[S,null,"272px"],backgroundColor:R,onClick:j,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",_hover:{boxShadow:"lg",cursor:"pointer"},children:[u.jsx(l.Box,{width:["72px",null,"100%"],height:["100%"],flex:[null,null,"1"],children:g?u.jsx(l.Image,{src:g,objectFit:"cover",height:[S,null,"200px"],width:"100%",alt:""}):y}),u.jsxs(l.Flex,{direction:["column",null,"row"],justifyContent:[null,null,"space-between"],alignItems:["left",null,"center"],padding:"4",height:["100%",null,"auto"],width:"100%",position:[null,null,"absolute"],bottom:[null,null,"0"],backgroundColor:[null,null,`${R}CC`],backdropFilter:[null,null,"blur(8px)"],children:[u.jsxs(l.Box,{children:[u.jsx(l.Text,{fontSize:"lg",fontWeight:"medium",children:p}),u.jsx(l.Text,{fontSize:"sm",children:s})]}),u.jsx(l.Box,{display:["none",null,"block"],children:k})]})]})};exports.CategoryLabel=_r;exports.DesktopNavLink=Er;exports.MobileNavItems=Rr;exports.MobileNavLink=Sr;exports.NavButton=jr;exports.SpotlightCard=Tr;exports.Stepper=xr;exports.TemporaryCard=mr;
|