@everlywell/consumer-ui 1.11.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 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,27 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Se=require("react"),K=require("@everlywell/ui-kit");var Z={exports:{}},D={};/**
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 Oe;function sr(){if(Oe)return D;Oe=1;var P=Se,m=Symbol.for("react.element"),w=Symbol.for("react.fragment"),R=Object.prototype.hasOwnProperty,A=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I={key:!0,ref:!0,__self:!0,__source:!0};function x(y,f,T){var v,g={},E=null,$=null;T!==void 0&&(E=""+T),f.key!==void 0&&(E=""+f.key),f.ref!==void 0&&($=f.ref);for(v in f)R.call(f,v)&&!I.hasOwnProperty(v)&&(g[v]=f[v]);if(y&&y.defaultProps)for(v in f=y.defaultProps,f)g[v]===void 0&&(g[v]=f[v]);return{$$typeof:m,type:y,key:E,ref:$,props:g,_owner:A.current}}return D.Fragment=w,D.jsx=x,D.jsxs=x,D}var F={};/**
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 Ce;function lr(){return Ce||(Ce=1,process.env.NODE_ENV!=="production"&&function(){var P=Se,m=Symbol.for("react.element"),w=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),Q=Symbol.iterator,Pe="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var r=Q&&e[Q]||e[Pe];return typeof r=="function"?r:null}var O=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(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=O.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,ke=!1,De=!1,Fe=!1,Ae=!1,ee;ee=Symbol.for("react.module.reference");function Ie(e){return!!(typeof e=="string"||typeof e=="function"||e===R||e===I||Ae||e===A||e===T||e===v||Fe||e===$||je||ke||De||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===g||e.$$typeof===x||e.$$typeof===y||e.$$typeof===f||e.$$typeof===ee||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 re(e){return e.displayName||"Context"}function b(e){if(e==null)return null;if(typeof e.tag=="number"&&c("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 R:return"Fragment";case w:return"Portal";case I:return"Profiler";case A:return"StrictMode";case T:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return re(r)+".Consumer";case x:var t=e;return re(t._context)+".Provider";case f:return $e(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:b(e.type)||"Memo";case E:{var o=e,u=o._payload,i=o._init;try{return b(i(u))}catch{return null}}}return null}var _=Object.assign,j=0,te,ne,ae,ie,oe,ue,se;function le(){}le.__reactDisabledLog=!0;function We(){{if(j===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function Ye(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:te}),info:_({},e,{value:ne}),warn:_({},e,{value:ae}),error:_({},e,{value:ie}),group:_({},e,{value:oe}),groupCollapsed:_({},e,{value:ue}),groupEnd:_({},e,{value:se})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var V=O.ReactCurrentDispatcher,U;function W(e,r,t){{if(U===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);U=n&&n[1]||""}return`
18
+ `+U+e}}var B=!1,Y;{var Le=typeof WeakMap=="function"?WeakMap:Map;Y=new Le}function fe(e,r){if(!e||B)return"";{var t=Y.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=V.current,V.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(h){n=h}Reflect.construct(e,[],i)}else{try{i.call()}catch(h){n=h}e.call(i.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var a=h.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 p=`
21
+ `+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&Y.set(e,p),p}while(s>=1&&l>=0);break}}}finally{B=!1,V.current=u,Ye(),Error.prepareStackTrace=o}var S=e?e.displayName||e.name:"",Te=S?W(S):"";return typeof e=="function"&&Y.set(e,Te),Te}function Ne(e,r,t){return fe(e,!1)}function Me(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Me(e));if(typeof e=="string")return W(e);switch(e){case T:return W("Suspense");case v:return W("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ne(e.render);case g:return L(e.type,r,t);case E:{var n=e,o=n._payload,u=n._init;try{return L(u(o),r,t)}catch{}}}return""}var N=Object.prototype.hasOwnProperty,ce={},de=O.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Ve(e,r,t,n,o){{var u=Function.call.bind(N);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)&&(M(o),c("%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),M(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,M(o),c("Failed %s type: %s",t,a.message),M(null))}}}var Ue=Array.isArray;function q(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 ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(qe(e))return c("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)}var k=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},ge,be,J;J={};function ze(e){if(N.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(N.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){if(typeof e.ref=="string"&&k.current&&r&&k.current.stateNode!==r){var t=b(k.current.type);J[t]||(c('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',b(k.current.type),e.ref),J[t]=!0)}}function Ke(e,r){{var t=function(){ge||(ge=!0,c("%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(){be||(be=!0,c("%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:m,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,d=null;t!==void 0&&(pe(t),a=""+t),Ge(r)&&(pe(r.key),a=""+r.key),ze(r)&&(d=r.ref,He(r,o));for(u in r)N.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||d){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ke(i,l),d&&Xe(i,l)}return Ze(e,a,d,o,n,k.current,i)}}var z=O.ReactCurrentOwner,he=O.ReactDebugCurrentFrame;function C(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}var G;G=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function me(){{if(z.current){var e=b(z.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 ye={};function rr(e){{var r=me();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 Ee(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=rr(r);if(ye[t])return;ye[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),C(e),c('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 _e(e,r){{if(typeof e!="object")return;if(q(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&Ee(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=we(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)H(i.value)&&Ee(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===f||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=b(r);Ve(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var o=b(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("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"){C(e),c("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),c("Invalid attribute `ref` supplied to `React.Fragment`."),C(null))}}function Re(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 d=er(o);d?a+=d:a+=me();var s;e===null?s="null":q(e)?s="array":e!==void 0&&e.$$typeof===m?(s="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("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 p=r.children;if(p!==void 0)if(n)if(q(p)){for(var S=0;S<p.length;S++)_e(p[S],e);Object.freeze&&Object.freeze(p)}else c("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(p,e)}return e===R?nr(l):tr(l),l}}function ar(e,r,t){return Re(e,r,t,!0)}function ir(e,r,t){return Re(e,r,t,!1)}var or=ir,ur=ar;F.Fragment=R,F.jsx=or,F.jsxs=ur}()),F}process.env.NODE_ENV==="production"?Z.exports=sr():Z.exports=lr();var X=Z.exports;function fr({title:P,subtitle:m,children:w}){return X.jsxs(K.Flex,{flexDirection:"column",border:"1px solid",borderColor:"tints.black",padding:"8",alignItems:"center",children:[X.jsx(K.Heading,{as:"h3",marginBottom:"10",children:P}),X.jsx(K.Heading,{as:"h4",marginBottom:"4",fontSize:"xl",children:m}),w]})}exports.TemporaryCard=fr;
package/index.mjs ADDED
@@ -0,0 +1,653 @@
1
+ import Se from "react";
2
+ import { Flex as sr, Heading as Te } from "@everlywell/ui-kit";
3
+ var X = { exports: {} }, D = {};
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 Oe;
14
+ function lr() {
15
+ if (Oe)
16
+ return D;
17
+ Oe = 1;
18
+ var P = Se, b = Symbol.for("react.element"), w = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, A = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function x(E, f, T) {
20
+ var v, g = {}, y = null, $ = null;
21
+ T !== void 0 && (y = "" + T), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && ($ = f.ref);
22
+ for (v in f)
23
+ R.call(f, v) && !I.hasOwnProperty(v) && (g[v] = f[v]);
24
+ if (E && E.defaultProps)
25
+ for (v in f = E.defaultProps, f)
26
+ g[v] === void 0 && (g[v] = f[v]);
27
+ return { $$typeof: b, type: E, key: y, ref: $, props: g, _owner: A.current };
28
+ }
29
+ return D.Fragment = w, D.jsx = x, D.jsxs = x, D;
30
+ }
31
+ var F = {};
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 Ce;
42
+ function fr() {
43
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var P = Se, b = Symbol.for("react.element"), w = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, Pe = "@@iterator";
45
+ function we(e) {
46
+ if (e === null || typeof e != "object")
47
+ return null;
48
+ var r = Z && e[Z] || e[Pe];
49
+ return typeof r == "function" ? r : null;
50
+ }
51
+ var O = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function c(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
+ xe("error", e, t);
57
+ }
58
+ }
59
+ function xe(e, r, t) {
60
+ {
61
+ var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
62
+ i !== "" && (r += "%s", t = t.concat([i]));
63
+ var u = t.map(function(o) {
64
+ return String(o);
65
+ });
66
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
67
+ }
68
+ }
69
+ var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Q;
70
+ Q = Symbol.for("react.module.reference");
71
+ function Ie(e) {
72
+ return !!(typeof e == "string" || typeof e == "function" || e === R || e === I || Ae || e === A || e === T || e === v || Fe || e === $ || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === g || e.$$typeof === x || e.$$typeof === E || e.$$typeof === f || // 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 === Q || e.getModuleId !== void 0));
77
+ }
78
+ function $e(e, r, t) {
79
+ var n = e.displayName;
80
+ if (n)
81
+ return n;
82
+ var i = r.displayName || r.name || "";
83
+ return i !== "" ? t + "(" + i + ")" : t;
84
+ }
85
+ function ee(e) {
86
+ return e.displayName || "Context";
87
+ }
88
+ function m(e) {
89
+ if (e == null)
90
+ return null;
91
+ if (typeof e.tag == "number" && c("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 R:
97
+ return "Fragment";
98
+ case w:
99
+ return "Portal";
100
+ case I:
101
+ return "Profiler";
102
+ case A:
103
+ return "StrictMode";
104
+ case T:
105
+ return "Suspense";
106
+ case v:
107
+ return "SuspenseList";
108
+ }
109
+ if (typeof e == "object")
110
+ switch (e.$$typeof) {
111
+ case E:
112
+ var r = e;
113
+ return ee(r) + ".Consumer";
114
+ case x:
115
+ var t = e;
116
+ return ee(t._context) + ".Provider";
117
+ case f:
118
+ return $e(e, e.render, "ForwardRef");
119
+ case g:
120
+ var n = e.displayName || null;
121
+ return n !== null ? n : m(e.type) || "Memo";
122
+ case y: {
123
+ var i = e, u = i._payload, o = i._init;
124
+ try {
125
+ return m(o(u));
126
+ } catch {
127
+ return null;
128
+ }
129
+ }
130
+ }
131
+ return null;
132
+ }
133
+ var _ = Object.assign, j = 0, re, te, ne, ae, oe, ie, ue;
134
+ function se() {
135
+ }
136
+ se.__reactDisabledLog = !0;
137
+ function We() {
138
+ {
139
+ if (j === 0) {
140
+ re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
141
+ var e = {
142
+ configurable: !0,
143
+ enumerable: !0,
144
+ value: se,
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
+ j++;
158
+ }
159
+ }
160
+ function Ye() {
161
+ {
162
+ if (j--, j === 0) {
163
+ var e = {
164
+ configurable: !0,
165
+ enumerable: !0,
166
+ writable: !0
167
+ };
168
+ Object.defineProperties(console, {
169
+ log: _({}, e, {
170
+ value: re
171
+ }),
172
+ info: _({}, e, {
173
+ value: te
174
+ }),
175
+ warn: _({}, e, {
176
+ value: ne
177
+ }),
178
+ error: _({}, e, {
179
+ value: ae
180
+ }),
181
+ group: _({}, e, {
182
+ value: oe
183
+ }),
184
+ groupCollapsed: _({}, e, {
185
+ value: ie
186
+ }),
187
+ groupEnd: _({}, e, {
188
+ value: ue
189
+ })
190
+ });
191
+ }
192
+ j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ }
194
+ }
195
+ var M = O.ReactCurrentDispatcher, U;
196
+ function W(e, r, t) {
197
+ {
198
+ if (U === void 0)
199
+ try {
200
+ throw Error();
201
+ } catch (i) {
202
+ var n = i.stack.trim().match(/\n( *(at )?)/);
203
+ U = n && n[1] || "";
204
+ }
205
+ return `
206
+ ` + U + e;
207
+ }
208
+ }
209
+ var B = !1, Y;
210
+ {
211
+ var Le = typeof WeakMap == "function" ? WeakMap : Map;
212
+ Y = new Le();
213
+ }
214
+ function le(e, r) {
215
+ if (!e || B)
216
+ return "";
217
+ {
218
+ var t = Y.get(e);
219
+ if (t !== void 0)
220
+ return t;
221
+ }
222
+ var n;
223
+ B = !0;
224
+ var i = Error.prepareStackTrace;
225
+ Error.prepareStackTrace = void 0;
226
+ var u;
227
+ u = M.current, M.current = null, We();
228
+ try {
229
+ if (r) {
230
+ var o = function() {
231
+ throw Error();
232
+ };
233
+ if (Object.defineProperty(o.prototype, "props", {
234
+ set: function() {
235
+ throw Error();
236
+ }
237
+ }), typeof Reflect == "object" && Reflect.construct) {
238
+ try {
239
+ Reflect.construct(o, []);
240
+ } catch (h) {
241
+ n = h;
242
+ }
243
+ Reflect.construct(e, [], o);
244
+ } else {
245
+ try {
246
+ o.call();
247
+ } catch (h) {
248
+ n = h;
249
+ }
250
+ e.call(o.prototype);
251
+ }
252
+ } else {
253
+ try {
254
+ throw Error();
255
+ } catch (h) {
256
+ n = h;
257
+ }
258
+ e();
259
+ }
260
+ } catch (h) {
261
+ if (h && n && typeof h.stack == "string") {
262
+ for (var a = h.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 p = `
272
+ ` + a[s].replace(" at new ", " at ");
273
+ return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, p), p;
274
+ }
275
+ while (s >= 1 && l >= 0);
276
+ break;
277
+ }
278
+ }
279
+ } finally {
280
+ B = !1, M.current = u, Ye(), Error.prepareStackTrace = i;
281
+ }
282
+ var S = e ? e.displayName || e.name : "", Re = S ? W(S) : "";
283
+ return typeof e == "function" && Y.set(e, Re), Re;
284
+ }
285
+ function Ne(e, r, t) {
286
+ return le(e, !1);
287
+ }
288
+ function Ve(e) {
289
+ var r = e.prototype;
290
+ return !!(r && r.isReactComponent);
291
+ }
292
+ function L(e, r, t) {
293
+ if (e == null)
294
+ return "";
295
+ if (typeof e == "function")
296
+ return le(e, Ve(e));
297
+ if (typeof e == "string")
298
+ return W(e);
299
+ switch (e) {
300
+ case T:
301
+ return W("Suspense");
302
+ case v:
303
+ return W("SuspenseList");
304
+ }
305
+ if (typeof e == "object")
306
+ switch (e.$$typeof) {
307
+ case f:
308
+ return Ne(e.render);
309
+ case g:
310
+ return L(e.type, r, t);
311
+ case y: {
312
+ var n = e, i = n._payload, u = n._init;
313
+ try {
314
+ return L(u(i), r, t);
315
+ } catch {
316
+ }
317
+ }
318
+ }
319
+ return "";
320
+ }
321
+ var N = Object.prototype.hasOwnProperty, fe = {}, ce = O.ReactDebugCurrentFrame;
322
+ function V(e) {
323
+ if (e) {
324
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
325
+ ce.setExtraStackFrame(t);
326
+ } else
327
+ ce.setExtraStackFrame(null);
328
+ }
329
+ function Me(e, r, t, n, i) {
330
+ {
331
+ var u = Function.call.bind(N);
332
+ for (var o in e)
333
+ if (u(e, o)) {
334
+ var a = void 0;
335
+ try {
336
+ if (typeof e[o] != "function") {
337
+ var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.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[o](r, o, 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) && (V(i), c("%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, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null));
345
+ }
346
+ }
347
+ }
348
+ var Ue = Array.isArray;
349
+ function q(e) {
350
+ return Ue(e);
351
+ }
352
+ function Be(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 qe(e) {
359
+ try {
360
+ return de(e), !1;
361
+ } catch {
362
+ return !0;
363
+ }
364
+ }
365
+ function de(e) {
366
+ return "" + e;
367
+ }
368
+ function ve(e) {
369
+ if (qe(e))
370
+ return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
371
+ }
372
+ var k = O.ReactCurrentOwner, Je = {
373
+ key: !0,
374
+ ref: !0,
375
+ __self: !0,
376
+ __source: !0
377
+ }, pe, ge, J;
378
+ J = {};
379
+ function ze(e) {
380
+ if (N.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 Ge(e) {
388
+ if (N.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" && k.current && r && k.current.stateNode !== r) {
397
+ var t = m(k.current.type);
398
+ J[t] || (c('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', m(k.current.type), e.ref), J[t] = !0);
399
+ }
400
+ }
401
+ function Ke(e, r) {
402
+ {
403
+ var t = function() {
404
+ pe || (pe = !0, c("%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 Xe(e, r) {
413
+ {
414
+ var t = function() {
415
+ ge || (ge = !0, c("%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 Ze = function(e, r, t, n, i, u, o) {
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: o,
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: i
450
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
451
+ };
452
+ function Qe(e, r, t, n, i) {
453
+ {
454
+ var u, o = {}, a = null, d = null;
455
+ t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (d = r.ref, He(r, i));
456
+ for (u in r)
457
+ N.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]);
458
+ if (e && e.defaultProps) {
459
+ var s = e.defaultProps;
460
+ for (u in s)
461
+ o[u] === void 0 && (o[u] = s[u]);
462
+ }
463
+ if (a || d) {
464
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
+ a && Ke(o, l), d && Xe(o, l);
466
+ }
467
+ return Ze(e, a, d, i, n, k.current, o);
468
+ }
469
+ }
470
+ var z = O.ReactCurrentOwner, me = O.ReactDebugCurrentFrame;
471
+ function C(e) {
472
+ if (e) {
473
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
474
+ me.setExtraStackFrame(t);
475
+ } else
476
+ me.setExtraStackFrame(null);
477
+ }
478
+ var G;
479
+ G = !1;
480
+ function H(e) {
481
+ return typeof e == "object" && e !== null && e.$$typeof === b;
482
+ }
483
+ function he() {
484
+ {
485
+ if (z.current) {
486
+ var e = m(z.current.type);
487
+ if (e)
488
+ return `
489
+
490
+ Check the render method of \`` + e + "`.";
491
+ }
492
+ return "";
493
+ }
494
+ }
495
+ function er(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 be = {};
507
+ function rr(e) {
508
+ {
509
+ var r = he();
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 Ee(e, r) {
520
+ {
521
+ if (!e._store || e._store.validated || e.key != null)
522
+ return;
523
+ e._store.validated = !0;
524
+ var t = rr(r);
525
+ if (be[t])
526
+ return;
527
+ be[t] = !0;
528
+ var n = "";
529
+ e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + m(e._owner.type) + "."), C(e), c('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 ye(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
+ H(n) && Ee(n, r);
540
+ }
541
+ else if (H(e))
542
+ e._store && (e._store.validated = !0);
543
+ else if (e) {
544
+ var i = we(e);
545
+ if (typeof i == "function" && i !== e.entries)
546
+ for (var u = i.call(e), o; !(o = u.next()).done; )
547
+ H(o.value) && Ee(o.value, r);
548
+ }
549
+ }
550
+ }
551
+ function tr(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 === f || // Note: Memo only checks outer props here.
560
+ // Inner props are checked in the reconciler.
561
+ r.$$typeof === g))
562
+ t = r.propTypes;
563
+ else
564
+ return;
565
+ if (t) {
566
+ var n = m(r);
567
+ Me(t, e.props, "prop", n, e);
568
+ } else if (r.PropTypes !== void 0 && !G) {
569
+ G = !0;
570
+ var i = m(r);
571
+ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
572
+ }
573
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
+ }
575
+ }
576
+ function nr(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), c("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), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
586
+ }
587
+ }
588
+ function _e(e, r, t, n, i, u) {
589
+ {
590
+ var o = Ie(e);
591
+ if (!o) {
592
+ var a = "";
593
+ (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.");
594
+ var d = er(i);
595
+ d ? a += d : a += he();
596
+ var s;
597
+ e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === b ? (s = "<" + (m(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("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);
598
+ }
599
+ var l = Qe(e, r, t, i, u);
600
+ if (l == null)
601
+ return l;
602
+ if (o) {
603
+ var p = r.children;
604
+ if (p !== void 0)
605
+ if (n)
606
+ if (q(p)) {
607
+ for (var S = 0; S < p.length; S++)
608
+ ye(p[S], e);
609
+ Object.freeze && Object.freeze(p);
610
+ } else
611
+ c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
+ else
613
+ ye(p, e);
614
+ }
615
+ return e === R ? nr(l) : tr(l), l;
616
+ }
617
+ }
618
+ function ar(e, r, t) {
619
+ return _e(e, r, t, !0);
620
+ }
621
+ function or(e, r, t) {
622
+ return _e(e, r, t, !1);
623
+ }
624
+ var ir = or, ur = ar;
625
+ F.Fragment = R, F.jsx = ir, F.jsxs = ur;
626
+ }()), F;
627
+ }
628
+ process.env.NODE_ENV === "production" ? X.exports = lr() : X.exports = fr();
629
+ var K = X.exports;
630
+ function vr({
631
+ title: P,
632
+ subtitle: b,
633
+ children: w
634
+ }) {
635
+ return /* @__PURE__ */ K.jsxs(
636
+ sr,
637
+ {
638
+ flexDirection: "column",
639
+ border: "1px solid",
640
+ borderColor: "tints.black",
641
+ padding: "8",
642
+ alignItems: "center",
643
+ children: [
644
+ /* @__PURE__ */ K.jsx(Te, { as: "h3", marginBottom: "10", children: P }),
645
+ /* @__PURE__ */ K.jsx(Te, { as: "h4", marginBottom: "4", fontSize: "xl", children: b }),
646
+ w
647
+ ]
648
+ }
649
+ );
650
+ }
651
+ export {
652
+ vr as TemporaryCard
653
+ };
@@ -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 ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@everlywell/consumer-ui",
3
+ "version": "1.11.0",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ },
12
+ "peerDependencies": {
13
+ "@everlywell/ui-kit": "1.x",
14
+ "@phosphor-icons/react": "2.0.15",
15
+ "react": "18.x",
16
+ "react-dom": "18.x"
17
+ },
18
+ "dependencies": {
19
+ "@chakra-ui/react": "^2.8.1",
20
+ "@emotion/react": "11.11.4",
21
+ "@emotion/styled": "11.11.5",
22
+ "framer-motion": "^11.0.0"
23
+ }
24
+ }