@everlywell/consumer-ui 1.11.4 → 1.11.6

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