@rubenpazch/patient-search 3.0.2 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -2,25 +2,6 @@
2
2
 
3
3
  var require$$0 = require('react');
4
4
 
5
- function _interopNamespaceDefault(e) {
6
- var n = Object.create(null);
7
- if (e) {
8
- Object.keys(e).forEach(function (k) {
9
- if (k !== 'default') {
10
- var d = Object.getOwnPropertyDescriptor(e, k);
11
- Object.defineProperty(n, k, d.get ? d : {
12
- enumerable: true,
13
- get: function () { return e[k]; }
14
- });
15
- }
16
- });
17
- }
18
- n.default = e;
19
- return Object.freeze(n);
20
- }
21
-
22
- var require$$0__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$0);
23
-
24
5
  var jsxRuntime = {exports: {}};
25
6
 
26
7
  var reactJsxRuntime_production = {};
@@ -443,7 +424,22 @@ function requireJsxRuntime () {
443
424
 
444
425
  var jsxRuntimeExports = requireJsxRuntime();
445
426
 
446
- var t,r={exports:{}},o={};var l,n,a={};
427
+ var e$2={exports:{}};
428
+
429
+ var r$4={};
430
+
431
+ /**
432
+ * @license React
433
+ * react-jsx-runtime.production.js
434
+ *
435
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
436
+ *
437
+ * This source code is licensed under the MIT license found in the
438
+ * LICENSE file in the root directory of this source tree.
439
+ */var e$1;function t$2(){if(e$1)return r$4;e$1=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function n(r,e,o){var n=null;if(void 0!==o&&(n=""+o),void 0!==e.key&&(n=""+e.key),"key"in e)for(var i in o={},e)"key"!==i&&(o[i]=e[i]);else o=e;return e=o.ref,{$$typeof:t,type:r,key:n,ref:void 0!==e?e:null,props:o}}return r$4.Fragment=o,r$4.jsx=n,r$4.jsxs=n,r$4}
440
+
441
+ var r$3={};
442
+
447
443
  /**
448
444
  * @license React
449
445
  * react-jsx-runtime.development.js
@@ -452,7 +448,17 @@ var t,r={exports:{}},o={};var l,n,a={};
452
448
  *
453
449
  * This source code is licensed under the MIT license found in the
454
450
  * LICENSE file in the root directory of this source tree.
455
- */function i(){return l||(l=1,"production"!==process.env.NODE_ENV&&function(){function e(s){if(null==s)return null;if("function"==typeof s)return s.$$typeof===M?null:s.displayName||s.name||null;if("string"==typeof s)return s;switch(s){case u:return "Fragment";case v:return "Profiler";case x:return "StrictMode";case f:return "Suspense";case C:return "SuspenseList";case N:return "Activity"}if("object"==typeof s)switch("number"==typeof s.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case g:return "Portal";case j:return s.displayName||"Context";case p:return (s._context.displayName||"Context")+".Consumer";case k:var t=s.render;return (s=s.displayName)||(s=""!==(s=t.displayName||t.name||"")?"ForwardRef("+s+")":"ForwardRef"),s;case L:return null!==(t=s.displayName||null)?t:e(s.type)||"Memo";case y:t=s._payload,s=s._init;try{return e(s(t))}catch(e){}}return null}function t(e){return ""+e}function r(e){try{t(e);var s=!1;}catch(e){s=true;}if(s){var r=(s=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function o(s){if(s===u)return "<>";if("object"==typeof s&&null!==s&&s.$$typeof===y)return "<...>";try{var t=e(s);return t?"<"+t+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function n(){var s=e(this.type);return B[s]||(B[s]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(s=this.props.ref)?s:null}function i(s,t,o,l,a,i){var c,m=t.children;if(void 0!==m)if(l)if(z(m)){for(l=0;l<m.length;l++)h(m[l]);Object.freeze&&Object.freeze(m);}else console.error("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 h(m);if(b.call(t,"key")){m=e(s);var g=Object.keys(t).filter(function(e){return "key"!==e});l=0<g.length?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}",W[m+l]||(g=0<g.length?"{"+g.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',l,m,g,m),W[m+l]=true);}if(m=null,void 0!==o&&(r(o),m=""+o),function(e){if(b.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return false}return void 0!==e.key}(t)&&(r(t.key),m=""+t.key),"key"in t)for(var u in o={},t)"key"!==u&&(o[u]=t[u]);else o=t;return m&&function(e,s){function t(){d||(d=true,console.error("%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://react.dev/link/special-props)",s));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(o,"function"==typeof s?s.displayName||s.name||"Unknown":s),function(e,s,t,r,o,l){var a=t.ref;return e={$$typeof:w,type:e,key:s,props:t,_owner:r},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:false,get:n}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:o}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(s,m,o,null===(c=$.A)?null:c.getOwner(),a,i)}function h(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===y&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function c(e){return "object"==typeof e&&null!==e&&e.$$typeof===w}var d,m=require$$0,w=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),$=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=Object.prototype.hasOwnProperty,z=Array.isArray,H=console.createTask?console.createTask:function(){return null},B={},V=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,l)(),Z=H(o(l)),W={};a.Fragment=u,a.jsx=function(e,s,t){var r=1e4>$.recentlyCreatedOwnerStacks++;return i(e,s,t,false,r?Error("react-stack-top-frame"):V,r?H(o(e)):Z)},a.jsxs=function(e,s,t){var r=1e4>$.recentlyCreatedOwnerStacks++;return i(e,s,t,true,r?Error("react-stack-top-frame"):V,r?H(o(e)):Z)};}()),a}var h=(n||(n=1,"production"===process.env.NODE_ENV?r.exports=function(){if(t)return o;t=1;var e=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function r(s,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var l in r={},t)"key"!==l&&(r[l]=t[l]);else r=t;return t=r.ref,{$$typeof:e,type:s,key:o,ref:void 0!==t?t:null,props:r}}return o.Fragment=s,o.jsx=r,o.jsxs=r,o}():r.exports=i()),r.exports);function qe({className:e="",size:s="md"}){const t={sm:16,md:20,lg:24},r=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${e}`;return h.jsx("svg",{width:t[s],height:t[s],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:r,"aria-label":"Plus",children:h.jsx("path",{d:"M12 4v16m8-8H4"})})}const Pe=({className:e="",size:s="md",color:t="currentColor"})=>{const r={sm:16,md:20,lg:24};return h.jsxs("svg",{width:r[s],height:r[s],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} animate-spin ${e}`,fill:"none",stroke:t,viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})};const rs=({className:e="",size:s="md",color:t="currentColor"})=>{const r={sm:16,md:20,lg:24};return h.jsxs("svg",{width:r[s],height:r[s],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${e}`,fill:"none",stroke:t,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),h.jsx("circle",{cx:"12",cy:"7",r:"4"})]})};const ds={outlined:"material-symbols-outlined",rounded:"material-symbols-rounded",sharp:"material-symbols-sharp"},ms=require$$0__namespace.forwardRef(({name:e,variant:s="outlined",size:t="md",fill:r=0,weight:o=400,grade:l=0,opticalSize:n=24,style:a,className:i,...c},d)=>{const m=(e=>"number"==typeof e?e:"sm"===e?16:"md"===e?20:24)(t),w=`"FILL" ${r}, "wght" ${o}, "GRAD" ${l}, "opsz" ${n}`;return h.jsx("span",{ref:d,"aria-hidden":"true",className:ds[s]+(i?` ${i}`:""),style:{fontVariationSettings:w,fontSize:m,lineHeight:1,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",...a},...c,children:e})});ms.displayName="MaterialIcon";
451
+ */var t$1;function n(){return t$1||(t$1=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return "Fragment";case _:return "Profiler";case b:return "StrictMode";case S:return "Suspense";case j:return "SuspenseList";case w:return "Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case m:return "Portal";case g:return e.displayName||"Context";case v:return (e._context.displayName||"Context")+".Consumer";case k:var r=e.render;return (e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(r=e.displayName||null)?r:t(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return t(e(r))}catch(e){}}return null}function n(e){return ""+e}function o(e){try{n(e);var r=!1;}catch(e){r=true;}if(r){var t=(r=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function a(e){if(e===d)return "<>";if("object"==typeof e&&null!==e&&e.$$typeof===O)return "<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function i(){var e=t(this.type);return P[e]||(P[e]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function c(e,r,n,a,l,c){var u,y=r.children;if(void 0!==y)if(a)if(x(y)){for(a=0;a<y.length;a++)s(y[a]);Object.freeze&&Object.freeze(y);}else console.error("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 s(y);if(T.call(r,"key")){y=t(e);var m=Object.keys(r).filter(function(e){return "key"!==e});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",C[y+a]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,y,m,y),C[y+a]=true);}if(y=null,void 0!==n&&(o(n),y=""+n),function(e){if(T.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return false}return void 0!==e.key}(r)&&(o(r.key),y=""+r.key),"key"in r)for(var d in n={},r)"key"!==d&&(n[d]=r[d]);else n=r;return y&&function(e,r){function t(){f||(f=true,console.error("%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://react.dev/link/special-props)",r));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(n,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,r,t,n,o,a){var l=t.ref;return e={$$typeof:p,type:e,key:r,props:t,_owner:n},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:false,get:i}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:o}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,y,n,null===(u=R.A)?null:u.getOwner(),l,c)}function s(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===O&&("fulfilled"===e._payload.status?u(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function u(e){return "object"==typeof e&&null!==e&&e.$$typeof===p}var f,y=require$$0,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),R=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,x=Array.isArray,E=console.createTask?console.createTask:function(){return null},P={},$=(y={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(y,l)(),A=E(a(l)),C={};r$3.Fragment=d,r$3.jsx=function(e,r,t){var n=1e4>R.recentlyCreatedOwnerStacks++;return c(e,r,t,false,n?Error("react-stack-top-frame"):$,n?E(a(e)):A)},r$3.jsxs=function(e,r,t){var n=1e4>R.recentlyCreatedOwnerStacks++;return c(e,r,t,true,n?Error("react-stack-top-frame"):$,n?E(a(e)):A)};}()),r$3}
452
+
453
+ var t;function s(){return t||(t=1,"production"===process.env.NODE_ENV?e$2.exports=t$2():e$2.exports=n()),e$2.exports}
454
+
455
+ var r$2=s();
456
+
457
+ function e({className:e="",size:r="md"}){const t={sm:16,md:20,lg:24},o=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r]} ${e}`;return r$2.jsx("svg",{width:t[r],height:t[r],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":"true",children:r$2.jsx("path",{d:"M12 4v16m8-8H4"})})}
458
+
459
+ const r$1=({className:r="",size:e="md",color:t="currentColor"})=>{const o={sm:16,md:20,lg:24};return r$2.jsxs("svg",{width:o[e],height:o[e],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[e]} animate-spin ${r}`,fill:"none",stroke:t,viewBox:"0 0 24 24",children:[r$2.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r$2.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})};
460
+
461
+ const r=({className:r="",size:e="md",color:o="currentColor"})=>{const t={sm:16,md:20,lg:24};return r$2.jsxs("svg",{width:t[e],height:t[e],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[e]} ${r}`,fill:"none",stroke:o,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[r$2.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),r$2.jsx("circle",{cx:"12",cy:"7",r:"4"})]})};
456
462
 
457
463
  function styleInject(css, ref) {
458
464
  if ( ref === void 0 ) ref = {};
@@ -481,7 +487,7 @@ function styleInject(css, ref) {
481
487
  }
482
488
  }
483
489
 
484
- var css_248z = ".PatientSearch-module_root__zTVVD {\n position: relative;\n width: 100%;\n}\n\n.PatientSearch-module_sizeSM__03j3N {\n max-width: 24rem;\n}\n\n.PatientSearch-module_sizeMD__nBLGE {\n max-width: 42rem;\n}\n\n.PatientSearch-module_sizeLG__XrG-E {\n max-width: 48rem;\n}\n\n.PatientSearch-module_inputWrapper__p4A5i {\n position: relative;\n}\n\n.PatientSearch-module_iconWrapper__3ALRt {\n position: absolute;\n inset-block: 0;\n left: 0;\n display: flex;\n align-items: center;\n padding-left: 0.75rem;\n pointer-events: none;\n}\n\n.PatientSearch-module_icon__Y7R4n {\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_iconSM__igbM5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.PatientSearch-module_iconMD__X6PHz {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.PatientSearch-module_iconLG__2hcLU {\n width: 1.75rem;\n height: 1.75rem;\n}\n\n.PatientSearch-module_input__rf8h4 {\n width: 100%;\n border: 2px solid var(--lb-color-neutral-300);\n border-radius: 0.5rem;\n outline: none;\n background: var(--lb-color-background);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n color: var(--lb-color-foreground);\n}\n\n.PatientSearch-module_input__rf8h4:focus {\n border-color: transparent;\n box-shadow: 0 0 0 2px var(--lb-color-blue-accent);\n}\n\n.PatientSearch-module_inputSM__dOHod {\n padding: 0.5rem 1rem 0.5rem 2.5rem;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_inputMD__qsc7w {\n padding: 0.75rem 1rem 0.75rem 3rem;\n font-size: 1rem;\n}\n\n.PatientSearch-module_inputLG__nSshn {\n padding: 1rem 1rem 1rem 3.5rem;\n font-size: 1.125rem;\n}\n\n.PatientSearch-module_spinnerWrapper__hQ2-M {\n position: absolute;\n inset-block: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 1rem;\n}\n\n.PatientSearch-module_spinner__K-4tv {\n color: var(--lb-color-primary);\n}\n\n.PatientSearch-module_dropdown__dXnOa {\n position: absolute;\n z-index: 50;\n width: 100%;\n margin-top: 0.5rem;\n background: var(--lb-color-background);\n border-radius: 0.75rem;\n border: 1px solid var(--lb-color-neutral-200);\n box-shadow:\n 0 20px 25px -5px rgba(0, 0, 0, 0.1),\n 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n max-height: 24rem;\n overflow-y: auto;\n}\n\n.PatientSearch-module_resultsHeader__AVkCQ {\n padding: 0.5rem 1rem;\n font-size: 0.75rem;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--lb-color-neutral-500);\n background: var(--lb-color-neutral-50);\n}\n\n.PatientSearch-module_resultButton__RNO53 {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-bottom: 1px solid var(--lb-color-neutral-100);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_resultButton__RNO53:hover {\n background: var(--lb-color-blue-subtle);\n}\n\n.PatientSearch-module_resultButtonHighlighted__QIaEZ {\n background: var(--lb-color-blue-subtle);\n}\n\n.PatientSearch-module_resultContent__s48zw {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_avatar__Yc4OV {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-blue-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.PatientSearch-module_avatarText__vT-d7 {\n color: var(--lb-color-primary);\n font-weight: 500;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_resultDetails__x-w5D {\n flex: 1;\n min-width: 0;\n}\n\n.PatientSearch-module_patientName__nmkyN {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-foreground);\n margin: 0;\n}\n\n.PatientSearch-module_patientEmail__1W1LS {\n font-size: 0.875rem;\n color: var(--lb-color-neutral-500);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n}\n\n.PatientSearch-module_patientDni__dFO7a {\n font-size: 0.75rem;\n color: var(--lb-color-neutral-400);\n margin: 0;\n}\n\n.PatientSearch-module_statusBadge__FbiKb {\n display: inline-flex;\n align-items: center;\n padding: 0.125rem 0.625rem;\n border-radius: 9999px;\n font-size: 0.75rem;\n font-weight: 500;\n}\n\n.PatientSearch-module_statusActive__Z0Ag1 {\n background: var(--lb-color-emerald-subtle);\n color: var(--lb-color-emerald-strong);\n}\n\n.PatientSearch-module_statusInactive__BI2SM {\n background: var(--lb-color-neutral-100);\n color: var(--lb-color-neutral-800);\n}\n\n.PatientSearch-module_noResults__kLmFF {\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.PatientSearch-module_noResultsIcon__ld0Ry {\n margin: 0 auto;\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_noResultsTitle__CKFA8 {\n margin-top: 0.5rem;\n font-size: 0.875rem;\n color: var(--lb-color-neutral-600);\n}\n\n.PatientSearch-module_noResultsHint__5GF6i {\n margin-top: 0.25rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_createButton__zmTRQ {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-top: 2px solid var(--lb-color-neutral-200);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_createButton__zmTRQ:hover {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createButtonHighlighted__mJSvX {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createContent__AjXGO {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_createIconWrapper__epP2f {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-emerald-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.PatientSearch-module_createIcon__DlnY3 {\n color: var(--lb-color-success);\n}\n\n.PatientSearch-module_createTitle__Ai46p {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-success);\n margin: 0;\n}\n\n.PatientSearch-module_createSubtitle__2wYqU {\n margin-top: 0.125rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_highlight__61pMO {\n background: var(--lb-color-amber-border);\n font-weight: 600;\n}\n";
490
+ var css_248z = ".PatientSearch-module_root__zTVVD {\n position: relative;\n width: 100%;\n}\n\n.PatientSearch-module_sizeSM__03j3N {\n max-width: 24rem;\n}\n\n.PatientSearch-module_sizeMD__nBLGE {\n max-width: 42rem;\n}\n\n.PatientSearch-module_sizeLG__XrG-E {\n max-width: 48rem;\n}\n\n.PatientSearch-module_inputWrapper__p4A5i {\n position: relative;\n}\n\n.PatientSearch-module_iconWrapper__3ALRt {\n position: absolute;\n inset-block: 0;\n left: 0;\n display: flex;\n align-items: center;\n padding-left: 0.75rem;\n pointer-events: none;\n}\n\n.PatientSearch-module_icon__Y7R4n {\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_iconSM__igbM5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.PatientSearch-module_iconMD__X6PHz {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.PatientSearch-module_iconLG__2hcLU {\n width: 1.75rem;\n height: 1.75rem;\n}\n\n.PatientSearch-module_input__rf8h4 {\n width: 100%;\n border: 2px solid var(--lb-color-neutral-300);\n border-radius: 0.5rem;\n outline: none;\n background: var(--lb-color-background);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n color: var(--lb-color-foreground);\n}\n\n.PatientSearch-module_input__rf8h4:focus {\n border-color: transparent;\n box-shadow: 0 0 0 2px var(--lb-color-primary-accent);\n}\n\n.PatientSearch-module_inputSM__dOHod {\n padding: 0.5rem 1rem 0.5rem 2.5rem;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_inputMD__qsc7w {\n padding: 0.75rem 1rem 0.75rem 3rem;\n font-size: 1rem;\n}\n\n.PatientSearch-module_inputLG__nSshn {\n padding: 1rem 1rem 1rem 3.5rem;\n font-size: 1.125rem;\n}\n\n.PatientSearch-module_spinnerWrapper__hQ2-M {\n position: absolute;\n inset-block: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 1rem;\n}\n\n.PatientSearch-module_spinner__K-4tv {\n color: var(--lb-color-primary);\n}\n\n.PatientSearch-module_dropdown__dXnOa {\n position: absolute;\n z-index: 50;\n width: 100%;\n margin-top: 0.5rem;\n background: var(--lb-color-background);\n border-radius: 0.75rem;\n border: 1px solid var(--lb-color-neutral-200);\n box-shadow:\n 0 20px 25px -5px rgba(0, 0, 0, 0.1),\n 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n max-height: 24rem;\n overflow-y: auto;\n}\n\n.PatientSearch-module_resultsHeader__AVkCQ {\n padding: 0.5rem 1rem;\n font-size: 0.75rem;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--lb-color-neutral-500);\n background: var(--lb-color-neutral-50);\n}\n\n.PatientSearch-module_resultButton__RNO53 {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-bottom: 1px solid var(--lb-color-neutral-100);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_resultButton__RNO53:hover {\n background: var(--lb-color-primary-subtle);\n}\n\n.PatientSearch-module_resultButtonHighlighted__QIaEZ {\n background: var(--lb-color-primary-subtle);\n}\n\n.PatientSearch-module_resultContent__s48zw {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_avatar__Yc4OV {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-primary-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.PatientSearch-module_avatarText__vT-d7 {\n color: var(--lb-color-primary);\n font-weight: 500;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_resultDetails__x-w5D {\n flex: 1;\n min-width: 0;\n}\n\n.PatientSearch-module_patientName__nmkyN {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-foreground);\n margin: 0;\n}\n\n.PatientSearch-module_patientEmail__1W1LS {\n font-size: 0.875rem;\n color: var(--lb-color-neutral-500);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n}\n\n.PatientSearch-module_patientDni__dFO7a {\n font-size: 0.75rem;\n color: var(--lb-color-neutral-400);\n margin: 0;\n}\n\n.PatientSearch-module_statusBadge__FbiKb {\n display: inline-flex;\n align-items: center;\n padding: 0.125rem 0.625rem;\n border-radius: 9999px;\n font-size: 0.75rem;\n font-weight: 500;\n}\n\n.PatientSearch-module_statusActive__Z0Ag1 {\n background: var(--lb-color-emerald-subtle);\n color: var(--lb-color-emerald-strong);\n}\n\n.PatientSearch-module_statusInactive__BI2SM {\n background: var(--lb-color-neutral-100);\n color: var(--lb-color-neutral-800);\n}\n\n.PatientSearch-module_noResults__kLmFF {\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.PatientSearch-module_noResultsIcon__ld0Ry {\n margin: 0 auto;\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_noResultsTitle__CKFA8 {\n margin-top: 0.5rem;\n font-size: 0.875rem;\n color: var(--lb-color-neutral-600);\n}\n\n.PatientSearch-module_noResultsHint__5GF6i {\n margin-top: 0.25rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_createButton__zmTRQ {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-top: 2px solid var(--lb-color-neutral-200);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_createButton__zmTRQ:hover {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createButtonHighlighted__mJSvX {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createContent__AjXGO {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_createIconWrapper__epP2f {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-emerald-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.PatientSearch-module_createIcon__DlnY3 {\n color: var(--lb-color-success);\n}\n\n.PatientSearch-module_createTitle__Ai46p {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-success);\n margin: 0;\n}\n\n.PatientSearch-module_createSubtitle__2wYqU {\n margin-top: 0.125rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_highlight__61pMO {\n background: var(--lb-color-amber-border);\n font-weight: 600;\n}\n";
485
491
  var styles = {"root":"PatientSearch-module_root__zTVVD","sizeSM":"PatientSearch-module_sizeSM__03j3N","sizeMD":"PatientSearch-module_sizeMD__nBLGE","sizeLG":"PatientSearch-module_sizeLG__XrG-E","inputWrapper":"PatientSearch-module_inputWrapper__p4A5i","iconWrapper":"PatientSearch-module_iconWrapper__3ALRt","icon":"PatientSearch-module_icon__Y7R4n","iconSM":"PatientSearch-module_iconSM__igbM5","iconMD":"PatientSearch-module_iconMD__X6PHz","iconLG":"PatientSearch-module_iconLG__2hcLU","input":"PatientSearch-module_input__rf8h4","inputSM":"PatientSearch-module_inputSM__dOHod","inputMD":"PatientSearch-module_inputMD__qsc7w","inputLG":"PatientSearch-module_inputLG__nSshn","spinnerWrapper":"PatientSearch-module_spinnerWrapper__hQ2-M","spinner":"PatientSearch-module_spinner__K-4tv","dropdown":"PatientSearch-module_dropdown__dXnOa","resultsHeader":"PatientSearch-module_resultsHeader__AVkCQ","resultButton":"PatientSearch-module_resultButton__RNO53","resultButtonHighlighted":"PatientSearch-module_resultButtonHighlighted__QIaEZ","resultContent":"PatientSearch-module_resultContent__s48zw","avatar":"PatientSearch-module_avatar__Yc4OV","avatarText":"PatientSearch-module_avatarText__vT-d7","resultDetails":"PatientSearch-module_resultDetails__x-w5D","patientName":"PatientSearch-module_patientName__nmkyN","patientEmail":"PatientSearch-module_patientEmail__1W1LS","patientDni":"PatientSearch-module_patientDni__dFO7a","statusBadge":"PatientSearch-module_statusBadge__FbiKb","statusActive":"PatientSearch-module_statusActive__Z0Ag1","statusInactive":"PatientSearch-module_statusInactive__BI2SM","noResults":"PatientSearch-module_noResults__kLmFF","noResultsIcon":"PatientSearch-module_noResultsIcon__ld0Ry","noResultsTitle":"PatientSearch-module_noResultsTitle__CKFA8","noResultsHint":"PatientSearch-module_noResultsHint__5GF6i","createButton":"PatientSearch-module_createButton__zmTRQ","createButtonHighlighted":"PatientSearch-module_createButtonHighlighted__mJSvX","createContent":"PatientSearch-module_createContent__AjXGO","createIconWrapper":"PatientSearch-module_createIconWrapper__epP2f","createIcon":"PatientSearch-module_createIcon__DlnY3","createTitle":"PatientSearch-module_createTitle__Ai46p","createSubtitle":"PatientSearch-module_createSubtitle__2wYqU","highlight":"PatientSearch-module_highlight__61pMO"};
486
492
  styleInject(css_248z);
487
493
 
@@ -582,14 +588,14 @@ const PatientSearch = ({ onSelectPatient, onSearchPatients, onCreateNewPatient,
582
588
  const parts = text.split(regex);
583
589
  return parts.map((part, index) => regex.test(part) ? (jsxRuntimeExports.jsx("mark", { className: styles.highlight, children: part }, index)) : (part));
584
590
  };
585
- return (jsxRuntimeExports.jsxs("div", { ref: searchRef, className: classNames(styles.root, styles[`size${size.toUpperCase()}`]), children: [jsxRuntimeExports.jsxs("div", { className: styles.inputWrapper, children: [jsxRuntimeExports.jsx("div", { className: styles.iconWrapper, children: jsxRuntimeExports.jsx("svg", { className: classNames(styles.icon, styles[`icon${size.toUpperCase()}`]), fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }), jsxRuntimeExports.jsx("input", { type: "text", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), onKeyDown: handleKeyDown, onFocus: () => searchTerm.length >= 2 && setIsOpen(true), placeholder: labels.searchPlaceholder, className: classNames(styles.input, styles[`input${size.toUpperCase()}`]) }), loading && (jsxRuntimeExports.jsx("div", { className: styles.spinnerWrapper, children: jsxRuntimeExports.jsx(Pe, { size: "md", className: styles.spinner }) }))] }), isOpen && searchTerm.length >= 2 && (jsxRuntimeExports.jsxs("div", { className: styles.dropdown, children: [results.length > 0 ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: styles.resultsHeader, children: [labels.resultsTitle, ": ", results.length, " ", results.length === 1 ? "" : "s"] }), results.map((patient, index) => (jsxRuntimeExports.jsx("button", { onClick: () => handleSelectPatient(patient), onMouseEnter: () => setHighlightedIndex(index), className: classNames(styles.resultButton, highlightedIndex === index &&
591
+ return (jsxRuntimeExports.jsxs("div", { ref: searchRef, className: classNames(styles.root, styles[`size${size.toUpperCase()}`]), children: [jsxRuntimeExports.jsxs("div", { className: styles.inputWrapper, children: [jsxRuntimeExports.jsx("div", { className: styles.iconWrapper, children: jsxRuntimeExports.jsx("svg", { className: classNames(styles.icon, styles[`icon${size.toUpperCase()}`]), fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }), jsxRuntimeExports.jsx("input", { type: "text", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), onKeyDown: handleKeyDown, onFocus: () => searchTerm.length >= 2 && setIsOpen(true), placeholder: labels.searchPlaceholder, className: classNames(styles.input, styles[`input${size.toUpperCase()}`]) }), loading && (jsxRuntimeExports.jsx("div", { className: styles.spinnerWrapper, children: jsxRuntimeExports.jsx(r$1, { size: "md", className: styles.spinner }) }))] }), isOpen && searchTerm.length >= 2 && (jsxRuntimeExports.jsxs("div", { className: styles.dropdown, children: [results.length > 0 ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: styles.resultsHeader, children: [labels.resultsTitle, ": ", results.length, " ", results.length === 1 ? "" : "s"] }), results.map((patient, index) => (jsxRuntimeExports.jsx("button", { onClick: () => handleSelectPatient(patient), onMouseEnter: () => setHighlightedIndex(index), className: classNames(styles.resultButton, highlightedIndex === index &&
586
592
  styles.resultButtonHighlighted), children: jsxRuntimeExports.jsxs("div", { className: styles.resultContent, children: [jsxRuntimeExports.jsx("div", { className: styles.avatar, children: jsxRuntimeExports.jsxs("span", { className: styles.avatarText, children: [patient.first_name.charAt(0), patient.last_name.charAt(0)] }) }), jsxRuntimeExports.jsxs("div", { className: styles.resultDetails, children: [jsxRuntimeExports.jsx("p", { className: styles.patientName, children: highlightMatch(`${patient.first_name} ${patient.last_name}`, searchTerm) }), jsxRuntimeExports.jsx("p", { className: styles.patientEmail, children: patient.email &&
587
593
  highlightMatch(patient.email, searchTerm) }), patient.dni && (jsxRuntimeExports.jsxs("p", { className: styles.patientDni, children: [labels.dniLabel, ":", " ", highlightMatch(patient.dni, searchTerm)] }))] }), jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx("span", { className: classNames(styles.statusBadge, patient.active
588
594
  ? styles.statusActive
589
595
  : styles.statusInactive), children: patient.active
590
596
  ? labels.activeStatus
591
- : labels.inactiveStatus }) })] }) }, patient.id)))] })) : !loading ? (jsxRuntimeExports.jsxs("div", { className: styles.noResults, children: [jsxRuntimeExports.jsx(rs, { size: "lg", className: styles.noResultsIcon }), jsxRuntimeExports.jsx("p", { className: styles.noResultsTitle, children: labels.noResultsTitle }), jsxRuntimeExports.jsx("p", { className: styles.noResultsHint, children: labels.noResultsHint })] })) : null, jsxRuntimeExports.jsx("button", { onClick: handleCreateNew, onMouseEnter: () => setHighlightedIndex(results.length), className: classNames(styles.createButton, highlightedIndex === results.length &&
592
- styles.createButtonHighlighted), children: jsxRuntimeExports.jsxs("div", { className: styles.createContent, children: [jsxRuntimeExports.jsx("div", { className: styles.createIconWrapper, children: jsxRuntimeExports.jsx(qe, { size: "md", className: styles.createIcon }) }), jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("p", { className: styles.createTitle, children: labels.createNewPatient }), searchTerm && (jsxRuntimeExports.jsxs("p", { className: styles.createSubtitle, children: [labels.withSearchTerm, ": \"", searchTerm, "\""] }))] })] }) })] }))] }));
597
+ : labels.inactiveStatus }) })] }) }, patient.id)))] })) : !loading ? (jsxRuntimeExports.jsxs("div", { className: styles.noResults, children: [jsxRuntimeExports.jsx(r, { size: "lg", className: styles.noResultsIcon }), jsxRuntimeExports.jsx("p", { className: styles.noResultsTitle, children: labels.noResultsTitle }), jsxRuntimeExports.jsx("p", { className: styles.noResultsHint, children: labels.noResultsHint })] })) : null, jsxRuntimeExports.jsx("button", { onClick: handleCreateNew, onMouseEnter: () => setHighlightedIndex(results.length), className: classNames(styles.createButton, highlightedIndex === results.length &&
598
+ styles.createButtonHighlighted), children: jsxRuntimeExports.jsxs("div", { className: styles.createContent, children: [jsxRuntimeExports.jsx("div", { className: styles.createIconWrapper, children: jsxRuntimeExports.jsx(e, { size: "md", className: styles.createIcon }) }), jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("p", { className: styles.createTitle, children: labels.createNewPatient }), searchTerm && (jsxRuntimeExports.jsxs("p", { className: styles.createSubtitle, children: [labels.withSearchTerm, ": \"", searchTerm, "\""] }))] })] }) })] }))] }));
593
599
  };
594
600
 
595
601
  module.exports = PatientSearch;
package/dist/index.esm.js CHANGED
@@ -1,5 +1,4 @@
1
- import * as require$$0 from 'react';
2
- import require$$0__default, { useState, useRef, useEffect } from 'react';
1
+ import require$$0, { useState, useRef, useEffect } from 'react';
3
2
 
4
3
  var jsxRuntime = {exports: {}};
5
4
 
@@ -337,7 +336,7 @@ function requireReactJsxRuntime_development () {
337
336
  object.$$typeof === REACT_ELEMENT_TYPE
338
337
  );
339
338
  }
340
- var React = require$$0__default,
339
+ var React = require$$0,
341
340
  REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
342
341
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
343
342
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
@@ -423,7 +422,22 @@ function requireJsxRuntime () {
423
422
 
424
423
  var jsxRuntimeExports = requireJsxRuntime();
425
424
 
426
- var t,r={exports:{}},o={};var l,n,a={};
425
+ var e$2={exports:{}};
426
+
427
+ var r$4={};
428
+
429
+ /**
430
+ * @license React
431
+ * react-jsx-runtime.production.js
432
+ *
433
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
434
+ *
435
+ * This source code is licensed under the MIT license found in the
436
+ * LICENSE file in the root directory of this source tree.
437
+ */var e$1;function t$2(){if(e$1)return r$4;e$1=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function n(r,e,o){var n=null;if(void 0!==o&&(n=""+o),void 0!==e.key&&(n=""+e.key),"key"in e)for(var i in o={},e)"key"!==i&&(o[i]=e[i]);else o=e;return e=o.ref,{$$typeof:t,type:r,key:n,ref:void 0!==e?e:null,props:o}}return r$4.Fragment=o,r$4.jsx=n,r$4.jsxs=n,r$4}
438
+
439
+ var r$3={};
440
+
427
441
  /**
428
442
  * @license React
429
443
  * react-jsx-runtime.development.js
@@ -432,7 +446,17 @@ var t,r={exports:{}},o={};var l,n,a={};
432
446
  *
433
447
  * This source code is licensed under the MIT license found in the
434
448
  * LICENSE file in the root directory of this source tree.
435
- */function i(){return l||(l=1,"production"!==process.env.NODE_ENV&&function(){function e(s){if(null==s)return null;if("function"==typeof s)return s.$$typeof===M?null:s.displayName||s.name||null;if("string"==typeof s)return s;switch(s){case u:return "Fragment";case v:return "Profiler";case x:return "StrictMode";case f:return "Suspense";case C:return "SuspenseList";case N:return "Activity"}if("object"==typeof s)switch("number"==typeof s.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case g:return "Portal";case j:return s.displayName||"Context";case p:return (s._context.displayName||"Context")+".Consumer";case k:var t=s.render;return (s=s.displayName)||(s=""!==(s=t.displayName||t.name||"")?"ForwardRef("+s+")":"ForwardRef"),s;case L:return null!==(t=s.displayName||null)?t:e(s.type)||"Memo";case y:t=s._payload,s=s._init;try{return e(s(t))}catch(e){}}return null}function t(e){return ""+e}function r(e){try{t(e);var s=!1;}catch(e){s=true;}if(s){var r=(s=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function o(s){if(s===u)return "<>";if("object"==typeof s&&null!==s&&s.$$typeof===y)return "<...>";try{var t=e(s);return t?"<"+t+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function n(){var s=e(this.type);return B[s]||(B[s]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(s=this.props.ref)?s:null}function i(s,t,o,l,a,i){var c,m=t.children;if(void 0!==m)if(l)if(z(m)){for(l=0;l<m.length;l++)h(m[l]);Object.freeze&&Object.freeze(m);}else console.error("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 h(m);if(b.call(t,"key")){m=e(s);var g=Object.keys(t).filter(function(e){return "key"!==e});l=0<g.length?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}",W[m+l]||(g=0<g.length?"{"+g.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',l,m,g,m),W[m+l]=true);}if(m=null,void 0!==o&&(r(o),m=""+o),function(e){if(b.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return false}return void 0!==e.key}(t)&&(r(t.key),m=""+t.key),"key"in t)for(var u in o={},t)"key"!==u&&(o[u]=t[u]);else o=t;return m&&function(e,s){function t(){d||(d=true,console.error("%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://react.dev/link/special-props)",s));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(o,"function"==typeof s?s.displayName||s.name||"Unknown":s),function(e,s,t,r,o,l){var a=t.ref;return e={$$typeof:w,type:e,key:s,props:t,_owner:r},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:false,get:n}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:o}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(s,m,o,null===(c=$.A)?null:c.getOwner(),a,i)}function h(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===y&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function c(e){return "object"==typeof e&&null!==e&&e.$$typeof===w}var d,m=require$$0__default,w=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),$=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=Object.prototype.hasOwnProperty,z=Array.isArray,H=console.createTask?console.createTask:function(){return null},B={},V=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,l)(),Z=H(o(l)),W={};a.Fragment=u,a.jsx=function(e,s,t){var r=1e4>$.recentlyCreatedOwnerStacks++;return i(e,s,t,false,r?Error("react-stack-top-frame"):V,r?H(o(e)):Z)},a.jsxs=function(e,s,t){var r=1e4>$.recentlyCreatedOwnerStacks++;return i(e,s,t,true,r?Error("react-stack-top-frame"):V,r?H(o(e)):Z)};}()),a}var h=(n||(n=1,"production"===process.env.NODE_ENV?r.exports=function(){if(t)return o;t=1;var e=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function r(s,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var l in r={},t)"key"!==l&&(r[l]=t[l]);else r=t;return t=r.ref,{$$typeof:e,type:s,key:o,ref:void 0!==t?t:null,props:r}}return o.Fragment=s,o.jsx=r,o.jsxs=r,o}():r.exports=i()),r.exports);function qe({className:e="",size:s="md"}){const t={sm:16,md:20,lg:24},r=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${e}`;return h.jsx("svg",{width:t[s],height:t[s],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:r,"aria-label":"Plus",children:h.jsx("path",{d:"M12 4v16m8-8H4"})})}const Pe=({className:e="",size:s="md",color:t="currentColor"})=>{const r={sm:16,md:20,lg:24};return h.jsxs("svg",{width:r[s],height:r[s],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} animate-spin ${e}`,fill:"none",stroke:t,viewBox:"0 0 24 24",children:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})};const rs=({className:e="",size:s="md",color:t="currentColor"})=>{const r={sm:16,md:20,lg:24};return h.jsxs("svg",{width:r[s],height:r[s],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${e}`,fill:"none",stroke:t,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),h.jsx("circle",{cx:"12",cy:"7",r:"4"})]})};const ds={outlined:"material-symbols-outlined",rounded:"material-symbols-rounded",sharp:"material-symbols-sharp"},ms=require$$0.forwardRef(({name:e,variant:s="outlined",size:t="md",fill:r=0,weight:o=400,grade:l=0,opticalSize:n=24,style:a,className:i,...c},d)=>{const m=(e=>"number"==typeof e?e:"sm"===e?16:"md"===e?20:24)(t),w=`"FILL" ${r}, "wght" ${o}, "GRAD" ${l}, "opsz" ${n}`;return h.jsx("span",{ref:d,"aria-hidden":"true",className:ds[s]+(i?` ${i}`:""),style:{fontVariationSettings:w,fontSize:m,lineHeight:1,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",...a},...c,children:e})});ms.displayName="MaterialIcon";
449
+ */var t$1;function n(){return t$1||(t$1=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return "Fragment";case _:return "Profiler";case b:return "StrictMode";case S:return "Suspense";case j:return "SuspenseList";case w:return "Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case m:return "Portal";case g:return e.displayName||"Context";case v:return (e._context.displayName||"Context")+".Consumer";case k:var r=e.render;return (e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(r=e.displayName||null)?r:t(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return t(e(r))}catch(e){}}return null}function n(e){return ""+e}function o(e){try{n(e);var r=!1;}catch(e){r=true;}if(r){var t=(r=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function a(e){if(e===d)return "<>";if("object"==typeof e&&null!==e&&e.$$typeof===O)return "<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function i(){var e=t(this.type);return P[e]||(P[e]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function c(e,r,n,a,l,c){var u,y=r.children;if(void 0!==y)if(a)if(x(y)){for(a=0;a<y.length;a++)s(y[a]);Object.freeze&&Object.freeze(y);}else console.error("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 s(y);if(T.call(r,"key")){y=t(e);var m=Object.keys(r).filter(function(e){return "key"!==e});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",C[y+a]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,y,m,y),C[y+a]=true);}if(y=null,void 0!==n&&(o(n),y=""+n),function(e){if(T.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return false}return void 0!==e.key}(r)&&(o(r.key),y=""+r.key),"key"in r)for(var d in n={},r)"key"!==d&&(n[d]=r[d]);else n=r;return y&&function(e,r){function t(){f||(f=true,console.error("%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://react.dev/link/special-props)",r));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(n,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,r,t,n,o,a){var l=t.ref;return e={$$typeof:p,type:e,key:r,props:t,_owner:n},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:false,get:i}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:o}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,y,n,null===(u=R.A)?null:u.getOwner(),l,c)}function s(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===O&&("fulfilled"===e._payload.status?u(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function u(e){return "object"==typeof e&&null!==e&&e.$$typeof===p}var f,y=require$$0,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),R=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,x=Array.isArray,E=console.createTask?console.createTask:function(){return null},P={},$=(y={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(y,l)(),A=E(a(l)),C={};r$3.Fragment=d,r$3.jsx=function(e,r,t){var n=1e4>R.recentlyCreatedOwnerStacks++;return c(e,r,t,false,n?Error("react-stack-top-frame"):$,n?E(a(e)):A)},r$3.jsxs=function(e,r,t){var n=1e4>R.recentlyCreatedOwnerStacks++;return c(e,r,t,true,n?Error("react-stack-top-frame"):$,n?E(a(e)):A)};}()),r$3}
450
+
451
+ var t;function s(){return t||(t=1,"production"===process.env.NODE_ENV?e$2.exports=t$2():e$2.exports=n()),e$2.exports}
452
+
453
+ var r$2=s();
454
+
455
+ function e({className:e="",size:r="md"}){const t={sm:16,md:20,lg:24},o=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r]} ${e}`;return r$2.jsx("svg",{width:t[r],height:t[r],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":"true",children:r$2.jsx("path",{d:"M12 4v16m8-8H4"})})}
456
+
457
+ const r$1=({className:r="",size:e="md",color:t="currentColor"})=>{const o={sm:16,md:20,lg:24};return r$2.jsxs("svg",{width:o[e],height:o[e],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[e]} animate-spin ${r}`,fill:"none",stroke:t,viewBox:"0 0 24 24",children:[r$2.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r$2.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})};
458
+
459
+ const r=({className:r="",size:e="md",color:o="currentColor"})=>{const t={sm:16,md:20,lg:24};return r$2.jsxs("svg",{width:t[e],height:t[e],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[e]} ${r}`,fill:"none",stroke:o,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[r$2.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),r$2.jsx("circle",{cx:"12",cy:"7",r:"4"})]})};
436
460
 
437
461
  function styleInject(css, ref) {
438
462
  if ( ref === void 0 ) ref = {};
@@ -461,7 +485,7 @@ function styleInject(css, ref) {
461
485
  }
462
486
  }
463
487
 
464
- var css_248z = ".PatientSearch-module_root__zTVVD {\n position: relative;\n width: 100%;\n}\n\n.PatientSearch-module_sizeSM__03j3N {\n max-width: 24rem;\n}\n\n.PatientSearch-module_sizeMD__nBLGE {\n max-width: 42rem;\n}\n\n.PatientSearch-module_sizeLG__XrG-E {\n max-width: 48rem;\n}\n\n.PatientSearch-module_inputWrapper__p4A5i {\n position: relative;\n}\n\n.PatientSearch-module_iconWrapper__3ALRt {\n position: absolute;\n inset-block: 0;\n left: 0;\n display: flex;\n align-items: center;\n padding-left: 0.75rem;\n pointer-events: none;\n}\n\n.PatientSearch-module_icon__Y7R4n {\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_iconSM__igbM5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.PatientSearch-module_iconMD__X6PHz {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.PatientSearch-module_iconLG__2hcLU {\n width: 1.75rem;\n height: 1.75rem;\n}\n\n.PatientSearch-module_input__rf8h4 {\n width: 100%;\n border: 2px solid var(--lb-color-neutral-300);\n border-radius: 0.5rem;\n outline: none;\n background: var(--lb-color-background);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n color: var(--lb-color-foreground);\n}\n\n.PatientSearch-module_input__rf8h4:focus {\n border-color: transparent;\n box-shadow: 0 0 0 2px var(--lb-color-blue-accent);\n}\n\n.PatientSearch-module_inputSM__dOHod {\n padding: 0.5rem 1rem 0.5rem 2.5rem;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_inputMD__qsc7w {\n padding: 0.75rem 1rem 0.75rem 3rem;\n font-size: 1rem;\n}\n\n.PatientSearch-module_inputLG__nSshn {\n padding: 1rem 1rem 1rem 3.5rem;\n font-size: 1.125rem;\n}\n\n.PatientSearch-module_spinnerWrapper__hQ2-M {\n position: absolute;\n inset-block: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 1rem;\n}\n\n.PatientSearch-module_spinner__K-4tv {\n color: var(--lb-color-primary);\n}\n\n.PatientSearch-module_dropdown__dXnOa {\n position: absolute;\n z-index: 50;\n width: 100%;\n margin-top: 0.5rem;\n background: var(--lb-color-background);\n border-radius: 0.75rem;\n border: 1px solid var(--lb-color-neutral-200);\n box-shadow:\n 0 20px 25px -5px rgba(0, 0, 0, 0.1),\n 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n max-height: 24rem;\n overflow-y: auto;\n}\n\n.PatientSearch-module_resultsHeader__AVkCQ {\n padding: 0.5rem 1rem;\n font-size: 0.75rem;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--lb-color-neutral-500);\n background: var(--lb-color-neutral-50);\n}\n\n.PatientSearch-module_resultButton__RNO53 {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-bottom: 1px solid var(--lb-color-neutral-100);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_resultButton__RNO53:hover {\n background: var(--lb-color-blue-subtle);\n}\n\n.PatientSearch-module_resultButtonHighlighted__QIaEZ {\n background: var(--lb-color-blue-subtle);\n}\n\n.PatientSearch-module_resultContent__s48zw {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_avatar__Yc4OV {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-blue-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.PatientSearch-module_avatarText__vT-d7 {\n color: var(--lb-color-primary);\n font-weight: 500;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_resultDetails__x-w5D {\n flex: 1;\n min-width: 0;\n}\n\n.PatientSearch-module_patientName__nmkyN {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-foreground);\n margin: 0;\n}\n\n.PatientSearch-module_patientEmail__1W1LS {\n font-size: 0.875rem;\n color: var(--lb-color-neutral-500);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n}\n\n.PatientSearch-module_patientDni__dFO7a {\n font-size: 0.75rem;\n color: var(--lb-color-neutral-400);\n margin: 0;\n}\n\n.PatientSearch-module_statusBadge__FbiKb {\n display: inline-flex;\n align-items: center;\n padding: 0.125rem 0.625rem;\n border-radius: 9999px;\n font-size: 0.75rem;\n font-weight: 500;\n}\n\n.PatientSearch-module_statusActive__Z0Ag1 {\n background: var(--lb-color-emerald-subtle);\n color: var(--lb-color-emerald-strong);\n}\n\n.PatientSearch-module_statusInactive__BI2SM {\n background: var(--lb-color-neutral-100);\n color: var(--lb-color-neutral-800);\n}\n\n.PatientSearch-module_noResults__kLmFF {\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.PatientSearch-module_noResultsIcon__ld0Ry {\n margin: 0 auto;\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_noResultsTitle__CKFA8 {\n margin-top: 0.5rem;\n font-size: 0.875rem;\n color: var(--lb-color-neutral-600);\n}\n\n.PatientSearch-module_noResultsHint__5GF6i {\n margin-top: 0.25rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_createButton__zmTRQ {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-top: 2px solid var(--lb-color-neutral-200);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_createButton__zmTRQ:hover {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createButtonHighlighted__mJSvX {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createContent__AjXGO {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_createIconWrapper__epP2f {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-emerald-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.PatientSearch-module_createIcon__DlnY3 {\n color: var(--lb-color-success);\n}\n\n.PatientSearch-module_createTitle__Ai46p {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-success);\n margin: 0;\n}\n\n.PatientSearch-module_createSubtitle__2wYqU {\n margin-top: 0.125rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_highlight__61pMO {\n background: var(--lb-color-amber-border);\n font-weight: 600;\n}\n";
488
+ var css_248z = ".PatientSearch-module_root__zTVVD {\n position: relative;\n width: 100%;\n}\n\n.PatientSearch-module_sizeSM__03j3N {\n max-width: 24rem;\n}\n\n.PatientSearch-module_sizeMD__nBLGE {\n max-width: 42rem;\n}\n\n.PatientSearch-module_sizeLG__XrG-E {\n max-width: 48rem;\n}\n\n.PatientSearch-module_inputWrapper__p4A5i {\n position: relative;\n}\n\n.PatientSearch-module_iconWrapper__3ALRt {\n position: absolute;\n inset-block: 0;\n left: 0;\n display: flex;\n align-items: center;\n padding-left: 0.75rem;\n pointer-events: none;\n}\n\n.PatientSearch-module_icon__Y7R4n {\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_iconSM__igbM5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.PatientSearch-module_iconMD__X6PHz {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.PatientSearch-module_iconLG__2hcLU {\n width: 1.75rem;\n height: 1.75rem;\n}\n\n.PatientSearch-module_input__rf8h4 {\n width: 100%;\n border: 2px solid var(--lb-color-neutral-300);\n border-radius: 0.5rem;\n outline: none;\n background: var(--lb-color-background);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n color: var(--lb-color-foreground);\n}\n\n.PatientSearch-module_input__rf8h4:focus {\n border-color: transparent;\n box-shadow: 0 0 0 2px var(--lb-color-primary-accent);\n}\n\n.PatientSearch-module_inputSM__dOHod {\n padding: 0.5rem 1rem 0.5rem 2.5rem;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_inputMD__qsc7w {\n padding: 0.75rem 1rem 0.75rem 3rem;\n font-size: 1rem;\n}\n\n.PatientSearch-module_inputLG__nSshn {\n padding: 1rem 1rem 1rem 3.5rem;\n font-size: 1.125rem;\n}\n\n.PatientSearch-module_spinnerWrapper__hQ2-M {\n position: absolute;\n inset-block: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 1rem;\n}\n\n.PatientSearch-module_spinner__K-4tv {\n color: var(--lb-color-primary);\n}\n\n.PatientSearch-module_dropdown__dXnOa {\n position: absolute;\n z-index: 50;\n width: 100%;\n margin-top: 0.5rem;\n background: var(--lb-color-background);\n border-radius: 0.75rem;\n border: 1px solid var(--lb-color-neutral-200);\n box-shadow:\n 0 20px 25px -5px rgba(0, 0, 0, 0.1),\n 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n max-height: 24rem;\n overflow-y: auto;\n}\n\n.PatientSearch-module_resultsHeader__AVkCQ {\n padding: 0.5rem 1rem;\n font-size: 0.75rem;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--lb-color-neutral-500);\n background: var(--lb-color-neutral-50);\n}\n\n.PatientSearch-module_resultButton__RNO53 {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-bottom: 1px solid var(--lb-color-neutral-100);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_resultButton__RNO53:hover {\n background: var(--lb-color-primary-subtle);\n}\n\n.PatientSearch-module_resultButtonHighlighted__QIaEZ {\n background: var(--lb-color-primary-subtle);\n}\n\n.PatientSearch-module_resultContent__s48zw {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_avatar__Yc4OV {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-primary-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.PatientSearch-module_avatarText__vT-d7 {\n color: var(--lb-color-primary);\n font-weight: 500;\n font-size: 0.875rem;\n}\n\n.PatientSearch-module_resultDetails__x-w5D {\n flex: 1;\n min-width: 0;\n}\n\n.PatientSearch-module_patientName__nmkyN {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-foreground);\n margin: 0;\n}\n\n.PatientSearch-module_patientEmail__1W1LS {\n font-size: 0.875rem;\n color: var(--lb-color-neutral-500);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n}\n\n.PatientSearch-module_patientDni__dFO7a {\n font-size: 0.75rem;\n color: var(--lb-color-neutral-400);\n margin: 0;\n}\n\n.PatientSearch-module_statusBadge__FbiKb {\n display: inline-flex;\n align-items: center;\n padding: 0.125rem 0.625rem;\n border-radius: 9999px;\n font-size: 0.75rem;\n font-weight: 500;\n}\n\n.PatientSearch-module_statusActive__Z0Ag1 {\n background: var(--lb-color-emerald-subtle);\n color: var(--lb-color-emerald-strong);\n}\n\n.PatientSearch-module_statusInactive__BI2SM {\n background: var(--lb-color-neutral-100);\n color: var(--lb-color-neutral-800);\n}\n\n.PatientSearch-module_noResults__kLmFF {\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.PatientSearch-module_noResultsIcon__ld0Ry {\n margin: 0 auto;\n color: var(--lb-color-neutral-400);\n}\n\n.PatientSearch-module_noResultsTitle__CKFA8 {\n margin-top: 0.5rem;\n font-size: 0.875rem;\n color: var(--lb-color-neutral-600);\n}\n\n.PatientSearch-module_noResultsHint__5GF6i {\n margin-top: 0.25rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_createButton__zmTRQ {\n width: 100%;\n padding: 0.75rem 1rem;\n text-align: left;\n background: transparent;\n border: none;\n border-top: 2px solid var(--lb-color-neutral-200);\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n\n.PatientSearch-module_createButton__zmTRQ:hover {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createButtonHighlighted__mJSvX {\n background: var(--lb-color-emerald-subtle);\n}\n\n.PatientSearch-module_createContent__AjXGO {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n.PatientSearch-module_createIconWrapper__epP2f {\n width: 2.5rem;\n height: 2.5rem;\n background: var(--lb-color-emerald-subtle);\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.PatientSearch-module_createIcon__DlnY3 {\n color: var(--lb-color-success);\n}\n\n.PatientSearch-module_createTitle__Ai46p {\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--lb-color-success);\n margin: 0;\n}\n\n.PatientSearch-module_createSubtitle__2wYqU {\n margin-top: 0.125rem;\n font-size: 0.75rem;\n color: var(--lb-color-neutral-500);\n}\n\n.PatientSearch-module_highlight__61pMO {\n background: var(--lb-color-amber-border);\n font-weight: 600;\n}\n";
465
489
  var styles = {"root":"PatientSearch-module_root__zTVVD","sizeSM":"PatientSearch-module_sizeSM__03j3N","sizeMD":"PatientSearch-module_sizeMD__nBLGE","sizeLG":"PatientSearch-module_sizeLG__XrG-E","inputWrapper":"PatientSearch-module_inputWrapper__p4A5i","iconWrapper":"PatientSearch-module_iconWrapper__3ALRt","icon":"PatientSearch-module_icon__Y7R4n","iconSM":"PatientSearch-module_iconSM__igbM5","iconMD":"PatientSearch-module_iconMD__X6PHz","iconLG":"PatientSearch-module_iconLG__2hcLU","input":"PatientSearch-module_input__rf8h4","inputSM":"PatientSearch-module_inputSM__dOHod","inputMD":"PatientSearch-module_inputMD__qsc7w","inputLG":"PatientSearch-module_inputLG__nSshn","spinnerWrapper":"PatientSearch-module_spinnerWrapper__hQ2-M","spinner":"PatientSearch-module_spinner__K-4tv","dropdown":"PatientSearch-module_dropdown__dXnOa","resultsHeader":"PatientSearch-module_resultsHeader__AVkCQ","resultButton":"PatientSearch-module_resultButton__RNO53","resultButtonHighlighted":"PatientSearch-module_resultButtonHighlighted__QIaEZ","resultContent":"PatientSearch-module_resultContent__s48zw","avatar":"PatientSearch-module_avatar__Yc4OV","avatarText":"PatientSearch-module_avatarText__vT-d7","resultDetails":"PatientSearch-module_resultDetails__x-w5D","patientName":"PatientSearch-module_patientName__nmkyN","patientEmail":"PatientSearch-module_patientEmail__1W1LS","patientDni":"PatientSearch-module_patientDni__dFO7a","statusBadge":"PatientSearch-module_statusBadge__FbiKb","statusActive":"PatientSearch-module_statusActive__Z0Ag1","statusInactive":"PatientSearch-module_statusInactive__BI2SM","noResults":"PatientSearch-module_noResults__kLmFF","noResultsIcon":"PatientSearch-module_noResultsIcon__ld0Ry","noResultsTitle":"PatientSearch-module_noResultsTitle__CKFA8","noResultsHint":"PatientSearch-module_noResultsHint__5GF6i","createButton":"PatientSearch-module_createButton__zmTRQ","createButtonHighlighted":"PatientSearch-module_createButtonHighlighted__mJSvX","createContent":"PatientSearch-module_createContent__AjXGO","createIconWrapper":"PatientSearch-module_createIconWrapper__epP2f","createIcon":"PatientSearch-module_createIcon__DlnY3","createTitle":"PatientSearch-module_createTitle__Ai46p","createSubtitle":"PatientSearch-module_createSubtitle__2wYqU","highlight":"PatientSearch-module_highlight__61pMO"};
466
490
  styleInject(css_248z);
467
491
 
@@ -562,14 +586,14 @@ const PatientSearch = ({ onSelectPatient, onSearchPatients, onCreateNewPatient,
562
586
  const parts = text.split(regex);
563
587
  return parts.map((part, index) => regex.test(part) ? (jsxRuntimeExports.jsx("mark", { className: styles.highlight, children: part }, index)) : (part));
564
588
  };
565
- return (jsxRuntimeExports.jsxs("div", { ref: searchRef, className: classNames(styles.root, styles[`size${size.toUpperCase()}`]), children: [jsxRuntimeExports.jsxs("div", { className: styles.inputWrapper, children: [jsxRuntimeExports.jsx("div", { className: styles.iconWrapper, children: jsxRuntimeExports.jsx("svg", { className: classNames(styles.icon, styles[`icon${size.toUpperCase()}`]), fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }), jsxRuntimeExports.jsx("input", { type: "text", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), onKeyDown: handleKeyDown, onFocus: () => searchTerm.length >= 2 && setIsOpen(true), placeholder: labels.searchPlaceholder, className: classNames(styles.input, styles[`input${size.toUpperCase()}`]) }), loading && (jsxRuntimeExports.jsx("div", { className: styles.spinnerWrapper, children: jsxRuntimeExports.jsx(Pe, { size: "md", className: styles.spinner }) }))] }), isOpen && searchTerm.length >= 2 && (jsxRuntimeExports.jsxs("div", { className: styles.dropdown, children: [results.length > 0 ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: styles.resultsHeader, children: [labels.resultsTitle, ": ", results.length, " ", results.length === 1 ? "" : "s"] }), results.map((patient, index) => (jsxRuntimeExports.jsx("button", { onClick: () => handleSelectPatient(patient), onMouseEnter: () => setHighlightedIndex(index), className: classNames(styles.resultButton, highlightedIndex === index &&
589
+ return (jsxRuntimeExports.jsxs("div", { ref: searchRef, className: classNames(styles.root, styles[`size${size.toUpperCase()}`]), children: [jsxRuntimeExports.jsxs("div", { className: styles.inputWrapper, children: [jsxRuntimeExports.jsx("div", { className: styles.iconWrapper, children: jsxRuntimeExports.jsx("svg", { className: classNames(styles.icon, styles[`icon${size.toUpperCase()}`]), fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }), jsxRuntimeExports.jsx("input", { type: "text", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), onKeyDown: handleKeyDown, onFocus: () => searchTerm.length >= 2 && setIsOpen(true), placeholder: labels.searchPlaceholder, className: classNames(styles.input, styles[`input${size.toUpperCase()}`]) }), loading && (jsxRuntimeExports.jsx("div", { className: styles.spinnerWrapper, children: jsxRuntimeExports.jsx(r$1, { size: "md", className: styles.spinner }) }))] }), isOpen && searchTerm.length >= 2 && (jsxRuntimeExports.jsxs("div", { className: styles.dropdown, children: [results.length > 0 ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: styles.resultsHeader, children: [labels.resultsTitle, ": ", results.length, " ", results.length === 1 ? "" : "s"] }), results.map((patient, index) => (jsxRuntimeExports.jsx("button", { onClick: () => handleSelectPatient(patient), onMouseEnter: () => setHighlightedIndex(index), className: classNames(styles.resultButton, highlightedIndex === index &&
566
590
  styles.resultButtonHighlighted), children: jsxRuntimeExports.jsxs("div", { className: styles.resultContent, children: [jsxRuntimeExports.jsx("div", { className: styles.avatar, children: jsxRuntimeExports.jsxs("span", { className: styles.avatarText, children: [patient.first_name.charAt(0), patient.last_name.charAt(0)] }) }), jsxRuntimeExports.jsxs("div", { className: styles.resultDetails, children: [jsxRuntimeExports.jsx("p", { className: styles.patientName, children: highlightMatch(`${patient.first_name} ${patient.last_name}`, searchTerm) }), jsxRuntimeExports.jsx("p", { className: styles.patientEmail, children: patient.email &&
567
591
  highlightMatch(patient.email, searchTerm) }), patient.dni && (jsxRuntimeExports.jsxs("p", { className: styles.patientDni, children: [labels.dniLabel, ":", " ", highlightMatch(patient.dni, searchTerm)] }))] }), jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx("span", { className: classNames(styles.statusBadge, patient.active
568
592
  ? styles.statusActive
569
593
  : styles.statusInactive), children: patient.active
570
594
  ? labels.activeStatus
571
- : labels.inactiveStatus }) })] }) }, patient.id)))] })) : !loading ? (jsxRuntimeExports.jsxs("div", { className: styles.noResults, children: [jsxRuntimeExports.jsx(rs, { size: "lg", className: styles.noResultsIcon }), jsxRuntimeExports.jsx("p", { className: styles.noResultsTitle, children: labels.noResultsTitle }), jsxRuntimeExports.jsx("p", { className: styles.noResultsHint, children: labels.noResultsHint })] })) : null, jsxRuntimeExports.jsx("button", { onClick: handleCreateNew, onMouseEnter: () => setHighlightedIndex(results.length), className: classNames(styles.createButton, highlightedIndex === results.length &&
572
- styles.createButtonHighlighted), children: jsxRuntimeExports.jsxs("div", { className: styles.createContent, children: [jsxRuntimeExports.jsx("div", { className: styles.createIconWrapper, children: jsxRuntimeExports.jsx(qe, { size: "md", className: styles.createIcon }) }), jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("p", { className: styles.createTitle, children: labels.createNewPatient }), searchTerm && (jsxRuntimeExports.jsxs("p", { className: styles.createSubtitle, children: [labels.withSearchTerm, ": \"", searchTerm, "\""] }))] })] }) })] }))] }));
595
+ : labels.inactiveStatus }) })] }) }, patient.id)))] })) : !loading ? (jsxRuntimeExports.jsxs("div", { className: styles.noResults, children: [jsxRuntimeExports.jsx(r, { size: "lg", className: styles.noResultsIcon }), jsxRuntimeExports.jsx("p", { className: styles.noResultsTitle, children: labels.noResultsTitle }), jsxRuntimeExports.jsx("p", { className: styles.noResultsHint, children: labels.noResultsHint })] })) : null, jsxRuntimeExports.jsx("button", { onClick: handleCreateNew, onMouseEnter: () => setHighlightedIndex(results.length), className: classNames(styles.createButton, highlightedIndex === results.length &&
596
+ styles.createButtonHighlighted), children: jsxRuntimeExports.jsxs("div", { className: styles.createContent, children: [jsxRuntimeExports.jsx("div", { className: styles.createIconWrapper, children: jsxRuntimeExports.jsx(e, { size: "md", className: styles.createIcon }) }), jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("p", { className: styles.createTitle, children: labels.createNewPatient }), searchTerm && (jsxRuntimeExports.jsxs("p", { className: styles.createSubtitle, children: [labels.withSearchTerm, ": \"", searchTerm, "\""] }))] })] }) })] }))] }));
573
597
  };
574
598
 
575
599
  export { PatientSearch as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubenpazch/patient-search",
3
- "version": "3.0.2",
3
+ "version": "3.0.5",
4
4
  "description": "PatientSearch component",
5
5
  "private": false,
6
6
  "main": "dist/index.cjs.js",
@@ -29,10 +29,10 @@
29
29
  "peerDependencies": {
30
30
  "react": "^19.0.0",
31
31
  "react-dom": "^19.0.0",
32
- "@rubenpazch/tokens": "0.4.0"
32
+ "@rubenpazch/tokens": "0.5.0"
33
33
  },
34
34
  "dependencies": {
35
- "@rubenpazch/icons": "6.2.0"
35
+ "@rubenpazch/icons": "6.4.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@rubenpazch/typescript-config": "3.0.0"