@everlywell/consumer-ui 1.15.0 → 1.17.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 +1 -0
- package/index.d.ts +1 -0
- package/index.js +7 -7
- package/index.mjs +113 -105
- package/lib/components/CategoryLabel/CategoryLabel.d.ts +21 -0
- package/lib/components/CategoryLabel/CategoryLabel.stories.d.ts +7 -0
- package/lib/components/CategoryLabel/index.d.ts +1 -0
- package/lib/components/Navbar/NavButton/NavButton.d.ts +11 -0
- package/lib/components/Navbar/NavButton/NavButton.stories.d.ts +7 -0
- package/lib/components/Navbar/NavButton/index.d.ts +2 -0
- package/package.json +1 -1
package/index.d.mts
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@everlywell/ui-kit"),J=require("react"),pr=require("@chakra-ui/react");var ne={exports:{}},L={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Oe;function
|
|
9
|
+
*/var Oe;function gr(){if(Oe)return L;Oe=1;var _=J,g=Symbol.for("react.element"),x=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,P=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0};function w(O,u,R){var f,b={},m=null,j=null;R!==void 0&&(m=""+R),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(j=u.ref);for(f in u)h.call(u,f)&&!C.hasOwnProperty(f)&&(b[f]=u[f]);if(O&&O.defaultProps)for(f in u=O.defaultProps,u)b[f]===void 0&&(b[f]=u[f]);return{$$typeof:g,type:O,key:m,ref:j,props:b,_owner:P.current}}return L.Fragment=x,L.jsx=w,L.jsxs=w,L}var V={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var je;function hr(){return je||(je=1,process.env.NODE_ENV!=="production"&&function(){var _=J,g=Symbol.for("react.element"),x=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),O=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),M=Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=M&&e[M]||e[ke];return typeof r=="function"?r:null}var A=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ae("error",e,t)}}function Ae(e,r,t){{var n=A.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Fe=!1,Ie=!1,$e=!1,We=!1,Ye=!1,ae;ae=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===h||e===C||Ye||e===P||e===R||e===f||We||e===j||Fe||Ie||$e||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===w||e.$$typeof===O||e.$$typeof===u||e.$$typeof===ae||e.getModuleId!==void 0))}function Ve(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ie(e){return e.displayName||"Context"}function E(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 h:return"Fragment";case x:return"Portal";case C:return"Profiler";case P:return"StrictMode";case R:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case O:var r=e;return ie(r)+".Consumer";case w:var t=e;return ie(t._context)+".Provider";case u:return Ve(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:E(e.type)||"Memo";case m:{var o=e,s=o._payload,i=o._init;try{return E(i(s))}catch{return null}}}return null}var k=Object.assign,$=0,oe,se,ue,le,ce,fe,de;function ve(){}ve.__reactDisabledLog=!0;function Me(){{if($===0){oe=console.log,se=console.info,ue=console.warn,le=console.error,ce=console.group,fe=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Ne(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:oe}),info:k({},e,{value:se}),warn:k({},e,{value:ue}),error:k({},e,{value:le}),group:k({},e,{value:ce}),groupCollapsed:k({},e,{value:fe}),groupEnd:k({},e,{value:de})})}$<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=A.ReactCurrentDispatcher,G;function N(e,r,t){{if(G===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
|
|
18
18
|
`+G+e}}var z=!1,U;{var Ue=typeof WeakMap=="function"?WeakMap:Map;U=new Ue}function pe(e,r){if(!e||z)return"";{var t=U.get(e);if(t!==void 0)return t}var n;z=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=K.current,K.current=null,Me();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(p){n=p}Reflect.construct(e,[],i)}else{try{i.call()}catch(p){n=p}e.call(i.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
|
|
19
19
|
`),v=n.stack.split(`
|
|
20
|
-
`),l=a.length-1,c=v.length-1;l>=1&&c>=0&&a[l]!==v[c];)c--;for(;l>=1&&c>=0;l--,c--)if(a[l]!==v[c]){if(l!==1||c!==1)do if(l--,c--,c<0||a[l]!==v[c]){var
|
|
21
|
-
`+a[l].replace(" at new "," at ");return e.displayName&&
|
|
20
|
+
`),l=a.length-1,c=v.length-1;l>=1&&c>=0&&a[l]!==v[c];)c--;for(;l>=1&&c>=0;l--,c--)if(a[l]!==v[c]){if(l!==1||c!==1)do if(l--,c--,c<0||a[l]!==v[c]){var y=`
|
|
21
|
+
`+a[l].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,y),y}while(l>=1&&c>=0);break}}}finally{z=!1,K.current=s,Ne(),Error.prepareStackTrace=o}var I=e?e.displayName||e.name:"",D=I?N(I):"";return typeof e=="function"&&U.set(e,D),D}function Be(e,r,t){return pe(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,qe(e));if(typeof e=="string")return N(e);switch(e){case R:return N("Suspense");case f:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Be(e.render);case b:return B(e.type,r,t);case m:{var n=e,o=n._payload,s=n._init;try{return B(s(o),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,ge={},he=A.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Je(e,r,t,n,o){{var s=Function.call.bind(W);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=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 v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(o),d("%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),q(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,q(o),d("Failed %s type: %s",t,a.message),q(null))}}}var Ke=Array.isArray;function H(e){return Ke(e)}function Ge(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ze(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ye(e){if(ze(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(e)),be(e)}var Y=A.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},me,Ee,X;X={};function Xe(e){if(W.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(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=E(Y.current.type);X[t]||(d('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',E(Y.current.type),e.ref),X[t]=!0)}}function er(e,r){{var t=function(){me||(me=!0,d("%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 rr(e,r){{var t=function(){Ee||(Ee=!0,d("%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 tr=function(e,r,t,n,o,s,i){var a={$$typeof:g,type:e,key:r,ref:t,props:i,_owner:s};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 nr(e,r,t,n,o){{var s,i={},a=null,v=null;t!==void 0&&(ye(t),a=""+t),Ze(r)&&(ye(r.key),a=""+r.key),Xe(r)&&(v=r.ref,Qe(r,o));for(s in r)W.call(r,s)&&!He.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||v){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,c),v&&rr(i,c)}return tr(e,a,v,o,n,Y.current,i)}}var Z=A.ReactCurrentOwner,_e=A.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}function Re(){{if(Z.current){var e=E(Z.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function ar(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+r+":"+t+"."}return""}}var Se={};function ir(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),F(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),F(null)}}function xe(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Te(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)ee(i.value)&&Te(i.value,r)}}}function or(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===u||r.$$typeof===
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),F(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),F(null)}}function xe(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Te(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)ee(i.value)&&Te(i.value,r)}}}function or(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===u||r.$$typeof===b))t=r.propTypes;else return;if(t){var n=E(r);Je(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=E(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){F(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var Ce={};function we(e,r,t,n,o,s){{var i=Le(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 v=ar(o);v?a+=v:a+=Re();var l;e===null?l="null":H(e)?l="array":e!==void 0&&e.$$typeof===g?(l="<"+(E(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var c=nr(e,r,t,o,s);if(c==null)return c;if(i){var y=r.children;if(y!==void 0)if(n)if(H(y)){for(var I=0;I<y.length;I++)xe(y[I],e);Object.freeze&&Object.freeze(y)}else d("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 xe(y,e)}if(W.call(r,"key")){var D=E(e),p=Object.keys(r).filter(function(vr){return vr!=="key"}),re=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[D+re]){var dr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
|
|
28
28
|
let props = %s;
|
|
29
29
|
<%s {...props} />
|
|
30
30
|
React keys must be passed directly to JSX without using spread:
|
|
31
31
|
let props = %s;
|
|
32
|
-
<%s key={someKey} {...props} />`,re,D,dr,D),
|
|
32
|
+
<%s key={someKey} {...props} />`,re,D,dr,D),Ce[D+re]=!0}}return e===h?sr(c):or(c),c}}function ur(e,r,t){return we(e,r,t,!0)}function lr(e,r,t){return we(e,r,t,!1)}var cr=lr,fr=ur;V.Fragment=h,V.jsx=cr,V.jsxs=fr}()),V}process.env.NODE_ENV==="production"?ne.exports=gr():ne.exports=hr();var T=ne.exports;function br({title:_,subtitle:g,children:x}){return T.jsxs(S.Flex,{flexDirection:"column",border:"1px solid",borderColor:"tints.black",padding:"8",alignItems:"center",children:[T.jsx(S.Heading,{as:"h3",marginBottom:"10",children:_}),T.jsx(S.Heading,{as:"h4",marginBottom:"4",fontSize:"xl",children:g}),x]})}const te=60,Pe=6,yr=_=>{const{activeStepIndex:g,hideIndicators:x=!1,steps:h,stepperTheme:P={light:"eggplant.light",base:"eggplant.base"}}=_,{activeStep:C,setActiveStep:w}=S.useSteps({index:g,count:h.length});return J.useEffect(()=>{w(g)},[g,w]),T.jsx(S.Box,{position:"relative",width:"100%","data-testid":"stepper",children:T.jsx(S.Stepper,{role:"progressbar",index:C,width:"100%",display:"flex",flexWrap:"nowrap",children:h.map((O,u)=>{const R=C===u,f=u===0,b=u===h.length-1,m=C>u;let j=`${te}px`;const M=`calc(100% - ((${te*(h.length-1)}px) - (${h.length-1} * ${Pe*2}px)))`;return R?j=M:(f||b)&&(j=`${te-Pe}px`),T.jsx(S.Box,{width:j,opacity:m||R?1:.2,paddingRight:b?"0":"6px",paddingLeft:f?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:T.jsx(S.Box,{paddingTop:x?2:5,position:"relative",width:"100%",children:T.jsx(S.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:m?P.light:P.base,height:x?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${u}`)})})})},mr=J.memo(yr),Er=({children:_,...g})=>T.jsx(pr.Text,{color:"tints.uiGrey",fontSize:["md",null,"lg"],...g,children:_});exports.CategoryLabel=Er;exports.Stepper=mr;exports.TemporaryCard=br;
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Flex as
|
|
1
|
+
import { Flex as gr, Heading as Oe, useSteps as hr, Box as J, Stepper as br } from "@everlywell/ui-kit";
|
|
2
2
|
import ne, { useEffect as yr } from "react";
|
|
3
|
+
import { Text as mr } from "@chakra-ui/react";
|
|
3
4
|
var te = { exports: {} }, Y = {};
|
|
4
5
|
/**
|
|
5
6
|
* @license React
|
|
@@ -10,23 +11,23 @@ var te = { exports: {} }, Y = {};
|
|
|
10
11
|
* This source code is licensed under the MIT license found in the
|
|
11
12
|
* LICENSE file in the root directory of this source tree.
|
|
12
13
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
14
|
+
var je;
|
|
15
|
+
function Er() {
|
|
16
|
+
if (je)
|
|
16
17
|
return Y;
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
var c,
|
|
21
|
-
|
|
18
|
+
je = 1;
|
|
19
|
+
var _ = ne, g = Symbol.for("react.element"), T = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, j = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function w(C, u, R) {
|
|
21
|
+
var c, b = {}, m = null, O = null;
|
|
22
|
+
R !== void 0 && (m = "" + R), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (O = u.ref);
|
|
22
23
|
for (c in u)
|
|
23
|
-
h.call(u, c) && !
|
|
24
|
-
if (
|
|
25
|
-
for (c in u =
|
|
26
|
-
|
|
27
|
-
return { $$typeof:
|
|
24
|
+
h.call(u, c) && !x.hasOwnProperty(c) && (b[c] = u[c]);
|
|
25
|
+
if (C && C.defaultProps)
|
|
26
|
+
for (c in u = C.defaultProps, u)
|
|
27
|
+
b[c] === void 0 && (b[c] = u[c]);
|
|
28
|
+
return { $$typeof: g, type: C, key: m, ref: O, props: b, _owner: j.current };
|
|
28
29
|
}
|
|
29
|
-
return Y.Fragment =
|
|
30
|
+
return Y.Fragment = T, Y.jsx = w, Y.jsxs = w, Y;
|
|
30
31
|
}
|
|
31
32
|
var L = {};
|
|
32
33
|
/**
|
|
@@ -38,17 +39,17 @@ var L = {};
|
|
|
38
39
|
* This source code is licensed under the MIT license found in the
|
|
39
40
|
* LICENSE file in the root directory of this source tree.
|
|
40
41
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var
|
|
42
|
+
var Pe;
|
|
43
|
+
function _r() {
|
|
44
|
+
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
+
var _ = ne, g = Symbol.for("react.element"), T = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), C = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), V = Symbol.iterator, De = "@@iterator";
|
|
45
46
|
function Ae(e) {
|
|
46
47
|
if (e === null || typeof e != "object")
|
|
47
48
|
return null;
|
|
48
49
|
var r = V && e[V] || e[De];
|
|
49
50
|
return typeof r == "function" ? r : null;
|
|
50
51
|
}
|
|
51
|
-
var D =
|
|
52
|
+
var D = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
53
|
function d(e) {
|
|
53
54
|
{
|
|
54
55
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -69,7 +70,7 @@ function Er() {
|
|
|
69
70
|
var Ie = !1, $e = !1, We = !1, Ye = !1, Le = !1, ae;
|
|
70
71
|
ae = Symbol.for("react.module.reference");
|
|
71
72
|
function Ve(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === h || e ===
|
|
73
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === x || Le || e === j || e === R || e === c || Ye || e === O || Ie || $e || We || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === b || e.$$typeof === w || e.$$typeof === C || e.$$typeof === u || // This needs to include all possible module reference object
|
|
73
74
|
// types supported by any Flight configuration anywhere since
|
|
74
75
|
// we don't know which Flight build this will end up being used
|
|
75
76
|
// with.
|
|
@@ -95,28 +96,28 @@ function Er() {
|
|
|
95
96
|
switch (e) {
|
|
96
97
|
case h:
|
|
97
98
|
return "Fragment";
|
|
98
|
-
case
|
|
99
|
+
case T:
|
|
99
100
|
return "Portal";
|
|
100
|
-
case
|
|
101
|
+
case x:
|
|
101
102
|
return "Profiler";
|
|
102
|
-
case
|
|
103
|
+
case j:
|
|
103
104
|
return "StrictMode";
|
|
104
|
-
case
|
|
105
|
+
case R:
|
|
105
106
|
return "Suspense";
|
|
106
107
|
case c:
|
|
107
108
|
return "SuspenseList";
|
|
108
109
|
}
|
|
109
110
|
if (typeof e == "object")
|
|
110
111
|
switch (e.$$typeof) {
|
|
111
|
-
case
|
|
112
|
+
case C:
|
|
112
113
|
var r = e;
|
|
113
114
|
return ie(r) + ".Consumer";
|
|
114
|
-
case
|
|
115
|
+
case w:
|
|
115
116
|
var t = e;
|
|
116
117
|
return ie(t._context) + ".Provider";
|
|
117
118
|
case u:
|
|
118
119
|
return Ne(e, e.render, "ForwardRef");
|
|
119
|
-
case
|
|
120
|
+
case b:
|
|
120
121
|
var n = e.displayName || null;
|
|
121
122
|
return n !== null ? n : E(e.type) || "Memo";
|
|
122
123
|
case m: {
|
|
@@ -130,7 +131,7 @@ function Er() {
|
|
|
130
131
|
}
|
|
131
132
|
return null;
|
|
132
133
|
}
|
|
133
|
-
var
|
|
134
|
+
var P = Object.assign, I = 0, oe, se, ue, le, fe, ce, de;
|
|
134
135
|
function ve() {
|
|
135
136
|
}
|
|
136
137
|
ve.__reactDisabledLog = !0;
|
|
@@ -166,25 +167,25 @@ function Er() {
|
|
|
166
167
|
writable: !0
|
|
167
168
|
};
|
|
168
169
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
+
log: P({}, e, {
|
|
170
171
|
value: oe
|
|
171
172
|
}),
|
|
172
|
-
info:
|
|
173
|
+
info: P({}, e, {
|
|
173
174
|
value: se
|
|
174
175
|
}),
|
|
175
|
-
warn:
|
|
176
|
+
warn: P({}, e, {
|
|
176
177
|
value: ue
|
|
177
178
|
}),
|
|
178
|
-
error:
|
|
179
|
+
error: P({}, e, {
|
|
179
180
|
value: le
|
|
180
181
|
}),
|
|
181
|
-
group:
|
|
182
|
+
group: P({}, e, {
|
|
182
183
|
value: fe
|
|
183
184
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: P({}, e, {
|
|
185
186
|
value: ce
|
|
186
187
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
+
groupEnd: P({}, e, {
|
|
188
189
|
value: de
|
|
189
190
|
})
|
|
190
191
|
});
|
|
@@ -192,27 +193,27 @@ function Er() {
|
|
|
192
193
|
I < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
|
-
var q = D.ReactCurrentDispatcher,
|
|
196
|
+
var q = D.ReactCurrentDispatcher, G;
|
|
196
197
|
function N(e, r, t) {
|
|
197
198
|
{
|
|
198
|
-
if (
|
|
199
|
+
if (G === void 0)
|
|
199
200
|
try {
|
|
200
201
|
throw Error();
|
|
201
202
|
} catch (o) {
|
|
202
203
|
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
|
|
204
|
+
G = n && n[1] || "";
|
|
204
205
|
}
|
|
205
206
|
return `
|
|
206
|
-
` +
|
|
207
|
+
` + G + e;
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
var
|
|
210
|
+
var K = !1, M;
|
|
210
211
|
{
|
|
211
212
|
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
213
|
M = new Be();
|
|
213
214
|
}
|
|
214
215
|
function pe(e, r) {
|
|
215
|
-
if (!e ||
|
|
216
|
+
if (!e || K)
|
|
216
217
|
return "";
|
|
217
218
|
{
|
|
218
219
|
var t = M.get(e);
|
|
@@ -220,7 +221,7 @@ function Er() {
|
|
|
220
221
|
return t;
|
|
221
222
|
}
|
|
222
223
|
var n;
|
|
223
|
-
|
|
224
|
+
K = !0;
|
|
224
225
|
var o = Error.prepareStackTrace;
|
|
225
226
|
Error.prepareStackTrace = void 0;
|
|
226
227
|
var s;
|
|
@@ -268,16 +269,16 @@ function Er() {
|
|
|
268
269
|
if (l !== 1 || f !== 1)
|
|
269
270
|
do
|
|
270
271
|
if (l--, f--, f < 0 || a[l] !== v[f]) {
|
|
271
|
-
var
|
|
272
|
+
var y = `
|
|
272
273
|
` + a[l].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName &&
|
|
274
|
+
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, y), y;
|
|
274
275
|
}
|
|
275
276
|
while (l >= 1 && f >= 0);
|
|
276
277
|
break;
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
} finally {
|
|
280
|
-
|
|
281
|
+
K = !1, q.current = s, Ue(), Error.prepareStackTrace = o;
|
|
281
282
|
}
|
|
282
283
|
var F = e ? e.displayName || e.name : "", k = F ? N(F) : "";
|
|
283
284
|
return typeof e == "function" && M.set(e, k), k;
|
|
@@ -297,7 +298,7 @@ function Er() {
|
|
|
297
298
|
if (typeof e == "string")
|
|
298
299
|
return N(e);
|
|
299
300
|
switch (e) {
|
|
300
|
-
case
|
|
301
|
+
case R:
|
|
301
302
|
return N("Suspense");
|
|
302
303
|
case c:
|
|
303
304
|
return N("SuspenseList");
|
|
@@ -306,7 +307,7 @@ function Er() {
|
|
|
306
307
|
switch (e.$$typeof) {
|
|
307
308
|
case u:
|
|
308
309
|
return Je(e.render);
|
|
309
|
-
case
|
|
310
|
+
case b:
|
|
310
311
|
return U(e.type, r, t);
|
|
311
312
|
case m: {
|
|
312
313
|
var n = e, o = n._payload, s = n._init;
|
|
@@ -318,15 +319,15 @@ function Er() {
|
|
|
318
319
|
}
|
|
319
320
|
return "";
|
|
320
321
|
}
|
|
321
|
-
var $ = Object.prototype.hasOwnProperty,
|
|
322
|
+
var $ = Object.prototype.hasOwnProperty, ge = {}, he = D.ReactDebugCurrentFrame;
|
|
322
323
|
function B(e) {
|
|
323
324
|
if (e) {
|
|
324
325
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
325
|
-
|
|
326
|
+
he.setExtraStackFrame(t);
|
|
326
327
|
} else
|
|
327
|
-
|
|
328
|
+
he.setExtraStackFrame(null);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Ge(e, r, t, n, o) {
|
|
330
331
|
{
|
|
331
332
|
var s = Function.call.bind($);
|
|
332
333
|
for (var i in e)
|
|
@@ -341,13 +342,13 @@ function Er() {
|
|
|
341
342
|
} catch (l) {
|
|
342
343
|
a = l;
|
|
343
344
|
}
|
|
344
|
-
a && !(a instanceof Error) && (B(o), d("%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), B(null)), a instanceof Error && !(a.message in
|
|
345
|
+
a && !(a instanceof Error) && (B(o), d("%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), B(null)), a instanceof Error && !(a.message in ge) && (ge[a.message] = !0, B(o), d("Failed %s type: %s", t, a.message), B(null));
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
|
-
var
|
|
349
|
+
var Ke = Array.isArray;
|
|
349
350
|
function z(e) {
|
|
350
|
-
return
|
|
351
|
+
return Ke(e);
|
|
351
352
|
}
|
|
352
353
|
function ze(e) {
|
|
353
354
|
{
|
|
@@ -423,7 +424,7 @@ function Er() {
|
|
|
423
424
|
var nr = function(e, r, t, n, o, s, i) {
|
|
424
425
|
var a = {
|
|
425
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
-
$$typeof:
|
|
427
|
+
$$typeof: g,
|
|
427
428
|
// Built-in properties that belong on the element
|
|
428
429
|
type: e,
|
|
429
430
|
key: r,
|
|
@@ -478,7 +479,7 @@ function Er() {
|
|
|
478
479
|
var Z;
|
|
479
480
|
Z = !1;
|
|
480
481
|
function Q(e) {
|
|
481
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
482
|
+
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
482
483
|
}
|
|
483
484
|
function Re() {
|
|
484
485
|
{
|
|
@@ -558,13 +559,13 @@ Check the top-level render call using <` + t + ">.");
|
|
|
558
559
|
t = r.propTypes;
|
|
559
560
|
else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
|
|
560
561
|
// Inner props are checked in the reconciler.
|
|
561
|
-
r.$$typeof ===
|
|
562
|
+
r.$$typeof === b))
|
|
562
563
|
t = r.propTypes;
|
|
563
564
|
else
|
|
564
565
|
return;
|
|
565
566
|
if (t) {
|
|
566
567
|
var n = E(r);
|
|
567
|
-
|
|
568
|
+
Ge(t, e.props, "prop", n, e);
|
|
568
569
|
} else if (r.PropTypes !== void 0 && !Z) {
|
|
569
570
|
Z = !0;
|
|
570
571
|
var o = E(r);
|
|
@@ -595,23 +596,23 @@ Check the top-level render call using <` + t + ">.");
|
|
|
595
596
|
var v = ir(o);
|
|
596
597
|
v ? a += v : a += Re();
|
|
597
598
|
var l;
|
|
598
|
-
e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof ===
|
|
599
|
+
e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === g ? (l = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
599
600
|
}
|
|
600
601
|
var f = ar(e, r, t, o, s);
|
|
601
602
|
if (f == null)
|
|
602
603
|
return f;
|
|
603
604
|
if (i) {
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
605
|
+
var y = r.children;
|
|
606
|
+
if (y !== void 0)
|
|
606
607
|
if (n)
|
|
607
|
-
if (z(
|
|
608
|
-
for (var F = 0; F <
|
|
609
|
-
xe(
|
|
610
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if (z(y)) {
|
|
609
|
+
for (var F = 0; F < y.length; F++)
|
|
610
|
+
xe(y[F], e);
|
|
611
|
+
Object.freeze && Object.freeze(y);
|
|
611
612
|
} else
|
|
612
613
|
d("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
614
|
else
|
|
614
|
-
xe(
|
|
615
|
+
xe(y, e);
|
|
615
616
|
}
|
|
616
617
|
if ($.call(r, "key")) {
|
|
617
618
|
var k = E(e), p = Object.keys(r).filter(function(pr) {
|
|
@@ -640,15 +641,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
640
641
|
L.Fragment = h, L.jsx = cr, L.jsxs = dr;
|
|
641
642
|
}()), L;
|
|
642
643
|
}
|
|
643
|
-
process.env.NODE_ENV === "production" ? te.exports =
|
|
644
|
-
var
|
|
645
|
-
function
|
|
646
|
-
title:
|
|
647
|
-
subtitle:
|
|
648
|
-
children:
|
|
644
|
+
process.env.NODE_ENV === "production" ? te.exports = Er() : te.exports = _r();
|
|
645
|
+
var S = te.exports;
|
|
646
|
+
function wr({
|
|
647
|
+
title: _,
|
|
648
|
+
subtitle: g,
|
|
649
|
+
children: T
|
|
649
650
|
}) {
|
|
650
|
-
return /* @__PURE__ */
|
|
651
|
-
|
|
651
|
+
return /* @__PURE__ */ S.jsxs(
|
|
652
|
+
gr,
|
|
652
653
|
{
|
|
653
654
|
flexDirection: "column",
|
|
654
655
|
border: "1px solid",
|
|
@@ -656,70 +657,70 @@ function Tr({
|
|
|
656
657
|
padding: "8",
|
|
657
658
|
alignItems: "center",
|
|
658
659
|
children: [
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
+
/* @__PURE__ */ S.jsx(
|
|
660
661
|
Oe,
|
|
661
|
-
{ as: "h3", marginBottom: "10", children:
|
|
662
|
+
{ as: "h3", marginBottom: "10", children: _ }
|
|
662
663
|
),
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ S.jsx(
|
|
664
665
|
Oe,
|
|
665
|
-
{ as: "h4", marginBottom: "4", fontSize: "xl", children:
|
|
666
|
+
{ as: "h4", marginBottom: "4", fontSize: "xl", children: g }
|
|
666
667
|
),
|
|
667
|
-
|
|
668
|
+
T
|
|
668
669
|
]
|
|
669
670
|
}
|
|
670
671
|
);
|
|
671
672
|
}
|
|
672
|
-
const re = 60, ke = 6,
|
|
673
|
+
const re = 60, ke = 6, Rr = (_) => {
|
|
673
674
|
const {
|
|
674
|
-
activeStepIndex:
|
|
675
|
-
hideIndicators:
|
|
675
|
+
activeStepIndex: g,
|
|
676
|
+
hideIndicators: T = !1,
|
|
676
677
|
steps: h,
|
|
677
|
-
stepperTheme:
|
|
678
|
+
stepperTheme: j = {
|
|
678
679
|
light: "eggplant.light",
|
|
679
680
|
base: "eggplant.base"
|
|
680
681
|
}
|
|
681
|
-
} =
|
|
682
|
-
index:
|
|
682
|
+
} = _, { activeStep: x, setActiveStep: w } = hr({
|
|
683
|
+
index: g,
|
|
683
684
|
count: h.length
|
|
684
685
|
});
|
|
685
686
|
return yr(() => {
|
|
686
|
-
|
|
687
|
-
}, [
|
|
687
|
+
w(g);
|
|
688
|
+
}, [g, w]), /* @__PURE__ */ S.jsx(
|
|
688
689
|
J,
|
|
689
|
-
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */
|
|
690
|
+
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ S.jsx(
|
|
690
691
|
br,
|
|
691
692
|
{
|
|
692
693
|
role: "progressbar",
|
|
693
|
-
index:
|
|
694
|
+
index: x,
|
|
694
695
|
width: "100%",
|
|
695
696
|
display: "flex",
|
|
696
697
|
flexWrap: "nowrap",
|
|
697
|
-
children: h.map((
|
|
698
|
-
const
|
|
699
|
-
let
|
|
698
|
+
children: h.map((C, u) => {
|
|
699
|
+
const R = x === u, c = u === 0, b = u === h.length - 1, m = x > u;
|
|
700
|
+
let O = `${re}px`;
|
|
700
701
|
const V = `calc(100% - ((${re * (h.length - 1)}px) - (${h.length - 1} * ${ke * 2}px)))`;
|
|
701
|
-
return
|
|
702
|
+
return R ? O = V : (c || b) && (O = `${re - ke}px`), /* @__PURE__ */ S.jsx(
|
|
702
703
|
J,
|
|
703
704
|
{
|
|
704
|
-
width:
|
|
705
|
-
opacity: m ||
|
|
706
|
-
paddingRight:
|
|
705
|
+
width: O,
|
|
706
|
+
opacity: m || R ? 1 : 0.2,
|
|
707
|
+
paddingRight: b ? "0" : "6px",
|
|
707
708
|
paddingLeft: c ? "0" : "6px",
|
|
708
709
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
709
|
-
children: /* @__PURE__ */
|
|
710
|
+
children: /* @__PURE__ */ S.jsx(
|
|
710
711
|
J,
|
|
711
712
|
{
|
|
712
|
-
paddingTop:
|
|
713
|
+
paddingTop: T ? 2 : 5,
|
|
713
714
|
position: "relative",
|
|
714
715
|
width: "100%",
|
|
715
|
-
children: /* @__PURE__ */
|
|
716
|
+
children: /* @__PURE__ */ S.jsx(
|
|
716
717
|
J,
|
|
717
718
|
{
|
|
718
719
|
width: "100%",
|
|
719
720
|
position: "absolute",
|
|
720
721
|
top: "0",
|
|
721
|
-
backgroundColor: m ?
|
|
722
|
-
height:
|
|
722
|
+
backgroundColor: m ? j.light : j.base,
|
|
723
|
+
height: T ? "4px" : "8px",
|
|
723
724
|
borderRadius: "4",
|
|
724
725
|
left: "0"
|
|
725
726
|
}
|
|
@@ -733,8 +734,15 @@ const re = 60, ke = 6, _r = (O) => {
|
|
|
733
734
|
}
|
|
734
735
|
) }
|
|
735
736
|
);
|
|
736
|
-
},
|
|
737
|
+
}, Cr = ne.memo(Rr), Or = ({
|
|
738
|
+
children: _,
|
|
739
|
+
...g
|
|
740
|
+
}) => /* @__PURE__ */ S.jsx(
|
|
741
|
+
mr,
|
|
742
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, "lg"], ...g, children: _ }
|
|
743
|
+
);
|
|
737
744
|
export {
|
|
738
|
-
|
|
739
|
-
|
|
745
|
+
Or as CategoryLabel,
|
|
746
|
+
Cr as Stepper,
|
|
747
|
+
wr as TemporaryCard
|
|
740
748
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TextProps } from '@chakra-ui/react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the CategoryLabel component.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This type extends the `TextProps` from Chakra UI, omitting the `children` property.
|
|
7
|
+
*
|
|
8
|
+
* @property {string | number} children - The content to be displayed inside the CategoryLabel.
|
|
9
|
+
* It can be either a string or a number.
|
|
10
|
+
*/
|
|
11
|
+
type CategoryLabelProps = Omit<TextProps, 'children'> & {
|
|
12
|
+
children: string | number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* CategoryLabel component
|
|
16
|
+
*
|
|
17
|
+
* @param {CategoryLabelProps} props - The props for the CategoryLabel component.
|
|
18
|
+
* @returns {JSX.Element} The rendered CategoryLabel component.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CategoryLabel: ({ children, ...props }: CategoryLabelProps) => JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CategoryLabel } from './CategoryLabel';
|
|
3
|
+
declare const meta: Meta<typeof CategoryLabel>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CategoryLabel>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithCustomProps: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CategoryLabel';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../../../../ui-kit/src/index.ts';
|
|
2
|
+
export interface NavButtonProps extends Omit<ButtonProps, 'children'> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the button is selected or not
|
|
6
|
+
* @default false
|
|
7
|
+
* */
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const NavButton: ({ children, isSelected, ...buttonProps }: NavButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default NavButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import NavButton from './NavButton';
|
|
3
|
+
declare const meta: Meta<typeof NavButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NavButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithOverrides: Story;
|