@everlywell/consumer-ui 1.11.4 → 1.11.5

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 ADDED
@@ -0,0 +1 @@
1
+ export { default as TemporaryCard, type TemporaryCardProps, } from './lib/components/TemporaryCard';
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as TemporaryCard, type TemporaryCardProps, } from './lib/components/TemporaryCard';
package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("react"),Z=require("@everlywell/ui-kit");var ee={exports:{}},A={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ce;function dr(){if(Ce)return A;Ce=1;var w=we,h=Symbol.for("react.element"),j=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,W=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function x(m,c,O){var p,b={},E=null,Y=null;O!==void 0&&(E=""+O),c.key!==void 0&&(E=""+c.key),c.ref!==void 0&&(Y=c.ref);for(p in c)T.call(c,p)&&!$.hasOwnProperty(p)&&(b[p]=c[p]);if(m&&m.defaultProps)for(p in c=m.defaultProps,c)b[p]===void 0&&(b[p]=c[p]);return{$$typeof:h,type:m,key:E,ref:Y,props:b,_owner:W.current}}return A.Fragment=j,A.jsx=x,A.jsxs=x,A}var I={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Pe;function vr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var w=we,h=Symbol.for("react.element"),j=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),m=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),re=Symbol.iterator,je="@@iterator";function xe(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[je];return typeof r=="function"?r:null}var S=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];ke("error",e,t)}}function ke(e,r,t){{var n=S.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Fe=!1,Ae=!1,Ie=!1,We=!1,te;te=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===$||We||e===W||e===O||e===p||Ie||e===Y||De||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===b||e.$$typeof===x||e.$$typeof===m||e.$$typeof===c||e.$$typeof===te||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ne(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 T:return"Fragment";case j:return"Portal";case $:return"Profiler";case W:return"StrictMode";case O:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return ne(r)+".Consumer";case x:var t=e;return ne(t._context)+".Provider";case c:return Ye(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case E:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var R=Object.assign,k=0,ae,ie,oe,ue,se,le,fe;function ce(){}ce.__reactDisabledLog=!0;function Le(){{if(k===0){ae=console.log,ie=console.info,oe=console.warn,ue=console.error,se=console.group,le=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}k++}}function Me(){{if(k--,k===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:ae}),info:R({},e,{value:ie}),warn:R({},e,{value:oe}),error:R({},e,{value:ue}),group:R({},e,{value:se}),groupCollapsed:R({},e,{value:le}),groupEnd:R({},e,{value:fe})})}k<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=S.ReactCurrentDispatcher,B;function L(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
18
+ `+B+e}}var q=!1,M;{var Ve=typeof WeakMap=="function"?WeakMap:Map;M=new Ve}function de(e,r){if(!e||q)return"";{var t=M.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=N.current,N.current=null,Le();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(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
19
+ `),d=n.stack.split(`
20
+ `),s=a.length-1,l=d.length-1;s>=1&&l>=0&&a[s]!==d[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==d[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==d[l]){var g=`
21
+ `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,g),g}while(s>=1&&l>=0);break}}}finally{q=!1,N.current=u,Me(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",_=P?L(P):"";return typeof e=="function"&&M.set(e,_),_}function Ue(e,r,t){return de(e,!1)}function Ne(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Ne(e));if(typeof e=="string")return L(e);switch(e){case O:return L("Suspense");case p:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Ue(e.render);case b:return V(e.type,r,t);case E:{var n=e,o=n._payload,u=n._init;try{return V(u(o),r,t)}catch{}}}return""}var D=Object.prototype.hasOwnProperty,ve={},pe=S.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(D);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=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 d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(U(o),f("%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 ve)&&(ve[a.message]=!0,U(o),f("Failed %s type: %s",t,a.message),U(null))}}}var qe=Array.isArray;function J(e){return qe(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 ge(e),!1}catch{return!0}}function ge(e){return""+e}function ye(e){if(Ke(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),ge(e)}var F=S.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},be,he,K;K={};function Ge(e){if(D.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Xe(e,r){if(typeof e.ref=="string"&&F.current&&r&&F.current.stateNode!==r){var t=y(F.current.type);K[t]||(f('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',y(F.current.type),e.ref),K[t]=!0)}}function Ze(e,r){{var t=function(){be||(be=!0,f("%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 Qe(e,r){{var t=function(){he||(he=!0,f("%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 er=function(e,r,t,n,o,u,i){var a={$$typeof:h,type:e,key:r,ref:t,props:i,_owner:u};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 rr(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(ye(t),a=""+t),He(r)&&(ye(r.key),a=""+r.key),Ge(r)&&(d=r.ref,Xe(r,o));for(u in r)D.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ze(i,l),d&&Qe(i,l)}return er(e,a,d,o,n,F.current,i)}}var z=S.ReactCurrentOwner,me=S.ReactDebugCurrentFrame;function C(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}var G;G=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===h}function Ee(){{if(z.current){var e=y(z.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function tr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
+
25
+ Check your code at `+r+":"+t+"."}return""}}var Re={};function nr(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
+
27
+ Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),C(e),f('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),C(null)}}function Te(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&_e(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=xe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)H(i.value)&&_e(i.value,r)}}}function ar(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===c||r.$$typeof===b))t=r.propTypes;else return;if(t){var n=y(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var o=y(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){C(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),C(null);break}}e.ref!==null&&(C(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),C(null))}}var Oe={};function Se(e,r,t,n,o,u){{var i=$e(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 d=tr(o);d?a+=d:a+=Ee();var s;e===null?s="null":J(e)?s="array":e!==void 0&&e.$$typeof===h?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=rr(e,r,t,o,u);if(l==null)return l;if(i){var g=r.children;if(g!==void 0)if(n)if(J(g)){for(var P=0;P<g.length;P++)Te(g[P],e);Object.freeze&&Object.freeze(g)}else f("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 Te(g,e)}if(D.call(r,"key")){var _=y(e),v=Object.keys(r).filter(function(cr){return cr!=="key"}),X=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Oe[_+X]){var fr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
28
+ let props = %s;
29
+ <%s {...props} />
30
+ React keys must be passed directly to JSX without using spread:
31
+ let props = %s;
32
+ <%s key={someKey} {...props} />`,X,_,fr,_),Oe[_+X]=!0}}return e===T?ir(l):ar(l),l}}function or(e,r,t){return Se(e,r,t,!0)}function ur(e,r,t){return Se(e,r,t,!1)}var sr=ur,lr=or;I.Fragment=T,I.jsx=sr,I.jsxs=lr}()),I}process.env.NODE_ENV==="production"?ee.exports=dr():ee.exports=vr();var Q=ee.exports;function pr({title:w,subtitle:h,children:j}){return Q.jsxs(Z.Flex,{flexDirection:"column",border:"1px solid",borderColor:"tints.black",padding:"8",alignItems:"center",children:[Q.jsx(Z.Heading,{as:"h3",marginBottom:"10",children:w}),Q.jsx(Z.Heading,{as:"h4",marginBottom:"4",fontSize:"xl",children:h}),j]})}exports.TemporaryCard=pr;
package/index.mjs ADDED
@@ -0,0 +1,668 @@
1
+ import Pe from "react";
2
+ import { Flex as dr, Heading as Se } from "@everlywell/ui-kit";
3
+ var Q = { exports: {} }, A = {};
4
+ /**
5
+ * @license React
6
+ * react-jsx-runtime.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var Ce;
14
+ function vr() {
15
+ if (Ce)
16
+ return A;
17
+ Ce = 1;
18
+ var P = Pe, b = Symbol.for("react.element"), j = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, W = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function x(m, c, O) {
20
+ var p, y = {}, E = null, Y = null;
21
+ O !== void 0 && (E = "" + O), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && (Y = c.ref);
22
+ for (p in c)
23
+ T.call(c, p) && !$.hasOwnProperty(p) && (y[p] = c[p]);
24
+ if (m && m.defaultProps)
25
+ for (p in c = m.defaultProps, c)
26
+ y[p] === void 0 && (y[p] = c[p]);
27
+ return { $$typeof: b, type: m, key: E, ref: Y, props: y, _owner: W.current };
28
+ }
29
+ return A.Fragment = j, A.jsx = x, A.jsxs = x, A;
30
+ }
31
+ var I = {};
32
+ /**
33
+ * @license React
34
+ * react-jsx-runtime.development.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ */
41
+ var we;
42
+ function pr() {
43
+ return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var P = Pe, b = Symbol.for("react.element"), j = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), m = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), ee = Symbol.iterator, je = "@@iterator";
45
+ function xe(e) {
46
+ if (e === null || typeof e != "object")
47
+ return null;
48
+ var r = ee && e[ee] || e[je];
49
+ return typeof r == "function" ? r : null;
50
+ }
51
+ var S = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function f(e) {
53
+ {
54
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
55
+ t[n - 1] = arguments[n];
56
+ ke("error", e, t);
57
+ }
58
+ }
59
+ function ke(e, r, t) {
60
+ {
61
+ var n = S.ReactDebugCurrentFrame, o = n.getStackAddendum();
62
+ o !== "" && (r += "%s", t = t.concat([o]));
63
+ var u = t.map(function(i) {
64
+ return String(i);
65
+ });
66
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
67
+ }
68
+ }
69
+ var De = !1, Fe = !1, Ae = !1, Ie = !1, We = !1, re;
70
+ re = Symbol.for("react.module.reference");
71
+ function $e(e) {
72
+ return !!(typeof e == "string" || typeof e == "function" || e === T || e === $ || We || e === W || e === O || e === p || Ie || e === Y || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === y || e.$$typeof === x || e.$$typeof === m || e.$$typeof === c || // This needs to include all possible module reference object
73
+ // types supported by any Flight configuration anywhere since
74
+ // we don't know which Flight build this will end up being used
75
+ // with.
76
+ e.$$typeof === re || e.getModuleId !== void 0));
77
+ }
78
+ function Ye(e, r, t) {
79
+ var n = e.displayName;
80
+ if (n)
81
+ return n;
82
+ var o = r.displayName || r.name || "";
83
+ return o !== "" ? t + "(" + o + ")" : t;
84
+ }
85
+ function te(e) {
86
+ return e.displayName || "Context";
87
+ }
88
+ function h(e) {
89
+ if (e == null)
90
+ return null;
91
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
+ return e.displayName || e.name || null;
93
+ if (typeof e == "string")
94
+ return e;
95
+ switch (e) {
96
+ case T:
97
+ return "Fragment";
98
+ case j:
99
+ return "Portal";
100
+ case $:
101
+ return "Profiler";
102
+ case W:
103
+ return "StrictMode";
104
+ case O:
105
+ return "Suspense";
106
+ case p:
107
+ return "SuspenseList";
108
+ }
109
+ if (typeof e == "object")
110
+ switch (e.$$typeof) {
111
+ case m:
112
+ var r = e;
113
+ return te(r) + ".Consumer";
114
+ case x:
115
+ var t = e;
116
+ return te(t._context) + ".Provider";
117
+ case c:
118
+ return Ye(e, e.render, "ForwardRef");
119
+ case y:
120
+ var n = e.displayName || null;
121
+ return n !== null ? n : h(e.type) || "Memo";
122
+ case E: {
123
+ var o = e, u = o._payload, i = o._init;
124
+ try {
125
+ return h(i(u));
126
+ } catch {
127
+ return null;
128
+ }
129
+ }
130
+ }
131
+ return null;
132
+ }
133
+ var R = Object.assign, k = 0, ne, ae, ie, oe, ue, se, le;
134
+ function fe() {
135
+ }
136
+ fe.__reactDisabledLog = !0;
137
+ function Le() {
138
+ {
139
+ if (k === 0) {
140
+ ne = console.log, ae = console.info, ie = console.warn, oe = console.error, ue = console.group, se = console.groupCollapsed, le = console.groupEnd;
141
+ var e = {
142
+ configurable: !0,
143
+ enumerable: !0,
144
+ value: fe,
145
+ writable: !0
146
+ };
147
+ Object.defineProperties(console, {
148
+ info: e,
149
+ log: e,
150
+ warn: e,
151
+ error: e,
152
+ group: e,
153
+ groupCollapsed: e,
154
+ groupEnd: e
155
+ });
156
+ }
157
+ k++;
158
+ }
159
+ }
160
+ function Ve() {
161
+ {
162
+ if (k--, k === 0) {
163
+ var e = {
164
+ configurable: !0,
165
+ enumerable: !0,
166
+ writable: !0
167
+ };
168
+ Object.defineProperties(console, {
169
+ log: R({}, e, {
170
+ value: ne
171
+ }),
172
+ info: R({}, e, {
173
+ value: ae
174
+ }),
175
+ warn: R({}, e, {
176
+ value: ie
177
+ }),
178
+ error: R({}, e, {
179
+ value: oe
180
+ }),
181
+ group: R({}, e, {
182
+ value: ue
183
+ }),
184
+ groupCollapsed: R({}, e, {
185
+ value: se
186
+ }),
187
+ groupEnd: R({}, e, {
188
+ value: le
189
+ })
190
+ });
191
+ }
192
+ k < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ }
194
+ }
195
+ var N = S.ReactCurrentDispatcher, B;
196
+ function L(e, r, t) {
197
+ {
198
+ if (B === void 0)
199
+ try {
200
+ throw Error();
201
+ } catch (o) {
202
+ var n = o.stack.trim().match(/\n( *(at )?)/);
203
+ B = n && n[1] || "";
204
+ }
205
+ return `
206
+ ` + B + e;
207
+ }
208
+ }
209
+ var J = !1, V;
210
+ {
211
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
212
+ V = new Me();
213
+ }
214
+ function ce(e, r) {
215
+ if (!e || J)
216
+ return "";
217
+ {
218
+ var t = V.get(e);
219
+ if (t !== void 0)
220
+ return t;
221
+ }
222
+ var n;
223
+ J = !0;
224
+ var o = Error.prepareStackTrace;
225
+ Error.prepareStackTrace = void 0;
226
+ var u;
227
+ u = N.current, N.current = null, Le();
228
+ try {
229
+ if (r) {
230
+ var i = function() {
231
+ throw Error();
232
+ };
233
+ if (Object.defineProperty(i.prototype, "props", {
234
+ set: function() {
235
+ throw Error();
236
+ }
237
+ }), typeof Reflect == "object" && Reflect.construct) {
238
+ try {
239
+ Reflect.construct(i, []);
240
+ } catch (v) {
241
+ n = v;
242
+ }
243
+ Reflect.construct(e, [], i);
244
+ } else {
245
+ try {
246
+ i.call();
247
+ } catch (v) {
248
+ n = v;
249
+ }
250
+ e.call(i.prototype);
251
+ }
252
+ } else {
253
+ try {
254
+ throw Error();
255
+ } catch (v) {
256
+ n = v;
257
+ }
258
+ e();
259
+ }
260
+ } catch (v) {
261
+ if (v && n && typeof v.stack == "string") {
262
+ for (var a = v.stack.split(`
263
+ `), d = n.stack.split(`
264
+ `), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
265
+ l--;
266
+ for (; s >= 1 && l >= 0; s--, l--)
267
+ if (a[s] !== d[l]) {
268
+ if (s !== 1 || l !== 1)
269
+ do
270
+ if (s--, l--, l < 0 || a[s] !== d[l]) {
271
+ var g = `
272
+ ` + a[s].replace(" at new ", " at ");
273
+ return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, g), g;
274
+ }
275
+ while (s >= 1 && l >= 0);
276
+ break;
277
+ }
278
+ }
279
+ } finally {
280
+ J = !1, N.current = u, Ve(), Error.prepareStackTrace = o;
281
+ }
282
+ var w = e ? e.displayName || e.name : "", _ = w ? L(w) : "";
283
+ return typeof e == "function" && V.set(e, _), _;
284
+ }
285
+ function Ue(e, r, t) {
286
+ return ce(e, !1);
287
+ }
288
+ function Ne(e) {
289
+ var r = e.prototype;
290
+ return !!(r && r.isReactComponent);
291
+ }
292
+ function M(e, r, t) {
293
+ if (e == null)
294
+ return "";
295
+ if (typeof e == "function")
296
+ return ce(e, Ne(e));
297
+ if (typeof e == "string")
298
+ return L(e);
299
+ switch (e) {
300
+ case O:
301
+ return L("Suspense");
302
+ case p:
303
+ return L("SuspenseList");
304
+ }
305
+ if (typeof e == "object")
306
+ switch (e.$$typeof) {
307
+ case c:
308
+ return Ue(e.render);
309
+ case y:
310
+ return M(e.type, r, t);
311
+ case E: {
312
+ var n = e, o = n._payload, u = n._init;
313
+ try {
314
+ return M(u(o), r, t);
315
+ } catch {
316
+ }
317
+ }
318
+ }
319
+ return "";
320
+ }
321
+ var D = Object.prototype.hasOwnProperty, de = {}, ve = S.ReactDebugCurrentFrame;
322
+ function U(e) {
323
+ if (e) {
324
+ var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
325
+ ve.setExtraStackFrame(t);
326
+ } else
327
+ ve.setExtraStackFrame(null);
328
+ }
329
+ function Be(e, r, t, n, o) {
330
+ {
331
+ var u = Function.call.bind(D);
332
+ for (var i in e)
333
+ if (u(e, i)) {
334
+ var a = void 0;
335
+ try {
336
+ if (typeof e[i] != "function") {
337
+ var d = 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`.");
338
+ throw d.name = "Invariant Violation", d;
339
+ }
340
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (s) {
342
+ a = s;
343
+ }
344
+ a && !(a instanceof Error) && (U(o), f("%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 de) && (de[a.message] = !0, U(o), f("Failed %s type: %s", t, a.message), U(null));
345
+ }
346
+ }
347
+ }
348
+ var Je = Array.isArray;
349
+ function q(e) {
350
+ return Je(e);
351
+ }
352
+ function qe(e) {
353
+ {
354
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
+ return t;
356
+ }
357
+ }
358
+ function Ke(e) {
359
+ try {
360
+ return pe(e), !1;
361
+ } catch {
362
+ return !0;
363
+ }
364
+ }
365
+ function pe(e) {
366
+ return "" + e;
367
+ }
368
+ function ge(e) {
369
+ if (Ke(e))
370
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), pe(e);
371
+ }
372
+ var F = S.ReactCurrentOwner, ze = {
373
+ key: !0,
374
+ ref: !0,
375
+ __self: !0,
376
+ __source: !0
377
+ }, he, ye, K;
378
+ K = {};
379
+ function Ge(e) {
380
+ if (D.call(e, "ref")) {
381
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
382
+ if (r && r.isReactWarning)
383
+ return !1;
384
+ }
385
+ return e.ref !== void 0;
386
+ }
387
+ function Xe(e) {
388
+ if (D.call(e, "key")) {
389
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
390
+ if (r && r.isReactWarning)
391
+ return !1;
392
+ }
393
+ return e.key !== void 0;
394
+ }
395
+ function He(e, r) {
396
+ if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
397
+ var t = h(F.current.type);
398
+ K[t] || (f('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', h(F.current.type), e.ref), K[t] = !0);
399
+ }
400
+ }
401
+ function Ze(e, r) {
402
+ {
403
+ var t = function() {
404
+ he || (he = !0, f("%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));
405
+ };
406
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
407
+ get: t,
408
+ configurable: !0
409
+ });
410
+ }
411
+ }
412
+ function Qe(e, r) {
413
+ {
414
+ var t = function() {
415
+ ye || (ye = !0, f("%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));
416
+ };
417
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
+ get: t,
419
+ configurable: !0
420
+ });
421
+ }
422
+ }
423
+ var er = function(e, r, t, n, o, u, i) {
424
+ var a = {
425
+ // This tag allows us to uniquely identify this as a React Element
426
+ $$typeof: b,
427
+ // Built-in properties that belong on the element
428
+ type: e,
429
+ key: r,
430
+ ref: t,
431
+ props: i,
432
+ // Record the component responsible for creating this element.
433
+ _owner: u
434
+ };
435
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
436
+ configurable: !1,
437
+ enumerable: !1,
438
+ writable: !0,
439
+ value: !1
440
+ }), Object.defineProperty(a, "_self", {
441
+ configurable: !1,
442
+ enumerable: !1,
443
+ writable: !1,
444
+ value: n
445
+ }), Object.defineProperty(a, "_source", {
446
+ configurable: !1,
447
+ enumerable: !1,
448
+ writable: !1,
449
+ value: o
450
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
451
+ };
452
+ function rr(e, r, t, n, o) {
453
+ {
454
+ var u, i = {}, a = null, d = null;
455
+ t !== void 0 && (ge(t), a = "" + t), Xe(r) && (ge(r.key), a = "" + r.key), Ge(r) && (d = r.ref, He(r, o));
456
+ for (u in r)
457
+ D.call(r, u) && !ze.hasOwnProperty(u) && (i[u] = r[u]);
458
+ if (e && e.defaultProps) {
459
+ var s = e.defaultProps;
460
+ for (u in s)
461
+ i[u] === void 0 && (i[u] = s[u]);
462
+ }
463
+ if (a || d) {
464
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
+ a && Ze(i, l), d && Qe(i, l);
466
+ }
467
+ return er(e, a, d, o, n, F.current, i);
468
+ }
469
+ }
470
+ var z = S.ReactCurrentOwner, be = S.ReactDebugCurrentFrame;
471
+ function C(e) {
472
+ if (e) {
473
+ var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
474
+ be.setExtraStackFrame(t);
475
+ } else
476
+ be.setExtraStackFrame(null);
477
+ }
478
+ var G;
479
+ G = !1;
480
+ function X(e) {
481
+ return typeof e == "object" && e !== null && e.$$typeof === b;
482
+ }
483
+ function me() {
484
+ {
485
+ if (z.current) {
486
+ var e = h(z.current.type);
487
+ if (e)
488
+ return `
489
+
490
+ Check the render method of \`` + e + "`.";
491
+ }
492
+ return "";
493
+ }
494
+ }
495
+ function tr(e) {
496
+ {
497
+ if (e !== void 0) {
498
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
499
+ return `
500
+
501
+ Check your code at ` + r + ":" + t + ".";
502
+ }
503
+ return "";
504
+ }
505
+ }
506
+ var Ee = {};
507
+ function nr(e) {
508
+ {
509
+ var r = me();
510
+ if (!r) {
511
+ var t = typeof e == "string" ? e : e.displayName || e.name;
512
+ t && (r = `
513
+
514
+ Check the top-level render call using <` + t + ">.");
515
+ }
516
+ return r;
517
+ }
518
+ }
519
+ function Re(e, r) {
520
+ {
521
+ if (!e._store || e._store.validated || e.key != null)
522
+ return;
523
+ e._store.validated = !0;
524
+ var t = nr(r);
525
+ if (Ee[t])
526
+ return;
527
+ Ee[t] = !0;
528
+ var n = "";
529
+ e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + h(e._owner.type) + "."), C(e), f('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), C(null);
530
+ }
531
+ }
532
+ function _e(e, r) {
533
+ {
534
+ if (typeof e != "object")
535
+ return;
536
+ if (q(e))
537
+ for (var t = 0; t < e.length; t++) {
538
+ var n = e[t];
539
+ X(n) && Re(n, r);
540
+ }
541
+ else if (X(e))
542
+ e._store && (e._store.validated = !0);
543
+ else if (e) {
544
+ var o = xe(e);
545
+ if (typeof o == "function" && o !== e.entries)
546
+ for (var u = o.call(e), i; !(i = u.next()).done; )
547
+ X(i.value) && Re(i.value, r);
548
+ }
549
+ }
550
+ }
551
+ function ar(e) {
552
+ {
553
+ var r = e.type;
554
+ if (r == null || typeof r == "string")
555
+ return;
556
+ var t;
557
+ if (typeof r == "function")
558
+ t = r.propTypes;
559
+ else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
560
+ // Inner props are checked in the reconciler.
561
+ r.$$typeof === y))
562
+ t = r.propTypes;
563
+ else
564
+ return;
565
+ if (t) {
566
+ var n = h(r);
567
+ Be(t, e.props, "prop", n, e);
568
+ } else if (r.PropTypes !== void 0 && !G) {
569
+ G = !0;
570
+ var o = h(r);
571
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
572
+ }
573
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
+ }
575
+ }
576
+ function ir(e) {
577
+ {
578
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
579
+ var n = r[t];
580
+ if (n !== "children" && n !== "key") {
581
+ C(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
582
+ break;
583
+ }
584
+ }
585
+ e.ref !== null && (C(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
586
+ }
587
+ }
588
+ var Te = {};
589
+ function Oe(e, r, t, n, o, u) {
590
+ {
591
+ var i = $e(e);
592
+ if (!i) {
593
+ var a = "";
594
+ (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.");
595
+ var d = tr(o);
596
+ d ? a += d : a += me();
597
+ var s;
598
+ e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === b ? (s = "<" + (h(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
599
+ }
600
+ var l = rr(e, r, t, o, u);
601
+ if (l == null)
602
+ return l;
603
+ if (i) {
604
+ var g = r.children;
605
+ if (g !== void 0)
606
+ if (n)
607
+ if (q(g)) {
608
+ for (var w = 0; w < g.length; w++)
609
+ _e(g[w], e);
610
+ Object.freeze && Object.freeze(g);
611
+ } else
612
+ f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
613
+ else
614
+ _e(g, e);
615
+ }
616
+ if (D.call(r, "key")) {
617
+ var _ = h(e), v = Object.keys(r).filter(function(cr) {
618
+ return cr !== "key";
619
+ }), H = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
620
+ if (!Te[_ + H]) {
621
+ var fr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
622
+ f(`A props object containing a "key" prop is being spread into JSX:
623
+ let props = %s;
624
+ <%s {...props} />
625
+ React keys must be passed directly to JSX without using spread:
626
+ let props = %s;
627
+ <%s key={someKey} {...props} />`, H, _, fr, _), Te[_ + H] = !0;
628
+ }
629
+ }
630
+ return e === T ? ir(l) : ar(l), l;
631
+ }
632
+ }
633
+ function or(e, r, t) {
634
+ return Oe(e, r, t, !0);
635
+ }
636
+ function ur(e, r, t) {
637
+ return Oe(e, r, t, !1);
638
+ }
639
+ var sr = ur, lr = or;
640
+ I.Fragment = T, I.jsx = sr, I.jsxs = lr;
641
+ }()), I;
642
+ }
643
+ process.env.NODE_ENV === "production" ? Q.exports = vr() : Q.exports = pr();
644
+ var Z = Q.exports;
645
+ function yr({
646
+ title: P,
647
+ subtitle: b,
648
+ children: j
649
+ }) {
650
+ return /* @__PURE__ */ Z.jsxs(
651
+ dr,
652
+ {
653
+ flexDirection: "column",
654
+ border: "1px solid",
655
+ borderColor: "tints.black",
656
+ padding: "8",
657
+ alignItems: "center",
658
+ children: [
659
+ /* @__PURE__ */ Z.jsx(Se, { as: "h3", marginBottom: "10", children: P }),
660
+ /* @__PURE__ */ Z.jsx(Se, { as: "h4", marginBottom: "4", fontSize: "xl", children: b }),
661
+ j
662
+ ]
663
+ }
664
+ );
665
+ }
666
+ export {
667
+ yr as TemporaryCard
668
+ };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export type TemporaryCardProps = {
3
+ /**
4
+ * The title of the card
5
+ */
6
+ title: string;
7
+ /**
8
+ * The subtitle of the card
9
+ */
10
+ subtitle: string;
11
+ /**
12
+ * The children of the card
13
+ */
14
+ children: React.ReactNode;
15
+ };
16
+ /**
17
+ * This component is just to test the flow of the component library. To be removed.
18
+ */
19
+ export default function TemporaryCard({ title, subtitle, children, }: TemporaryCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("@storybook/csf").Args>;
2
+ export default _default;
3
+ export declare const Primary: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
4
+ title: string;
5
+ subtitle: string;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default } from './TemporaryCard';
2
+ export * from './TemporaryCard';
@@ -0,0 +1,4 @@
1
+ export interface ConsumerUiProps {
2
+ }
3
+ export declare function ConsumerUi(props: ConsumerUiProps): import("react/jsx-runtime").JSX.Element;
4
+ export default ConsumerUi;
@@ -0,0 +1,24 @@
1
+ import { StoryFn } from '@storybook/react';
2
+ type Options<T> = {
3
+ /**
4
+ * The default props for the story.
5
+ */
6
+ defaultProps: T;
7
+ /**
8
+ * The description of the story.
9
+ */
10
+ description?: string;
11
+ /**
12
+ * Custom name of the story.
13
+ */
14
+ customStoryName?: string;
15
+ /**
16
+ * The layout of the story.
17
+ *
18
+ * @default 'centered'
19
+ */
20
+ layout?: 'fullscreen' | 'padded' | 'centered';
21
+ };
22
+ export declare function createPrimary<T>(story: StoryFn<T>, options: Options<T>): StoryFn<T>;
23
+ export declare function flattenObject(obj: Record<string, unknown>, prefix?: string): Record<string, unknown>;
24
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everlywell/consumer-ui",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {