sls-ui-library 1.0.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.
@@ -0,0 +1,175 @@
1
+ (function(b,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],F):(b=typeof globalThis<"u"?globalThis:b||self,F(b.SlsUiLibrary={},b.React,b.ReactDOM))})(this,function(b,F,je){"use strict";function ht(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}return n.default=r,Object.freeze(n)}const g=ht(F);var ce={exports:{}},J={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ke;function bt(){if(ke)return J;ke=1;var r=F,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function f(h,c,x){var d,m={},j=null,z=null;x!==void 0&&(j=""+x),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(z=c.ref);for(d in c)s.call(c,d)&&!l.hasOwnProperty(d)&&(m[d]=c[d]);if(h&&h.defaultProps)for(d in c=h.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:n,type:h,key:j,ref:z,props:m,_owner:i.current}}return J.Fragment=a,J.jsx=f,J.jsxs=f,J}var X={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var we;function pt(){return we||(we=1,process.env.NODE_ENV!=="production"&&function(){var r=F,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),D=Symbol.iterator,k="@@iterator";function T(t){if(t===null||typeof t!="object")return null;var o=D&&t[D]||t[k];return typeof o=="function"?o:null}var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(t){{for(var o=arguments.length,u=new Array(o>1?o-1:0),v=1;v<o;v++)u[v-1]=arguments[v];Z("error",t,u)}}function Z(t,o,u){{var v=E.ReactDebugCurrentFrame,R=v.getStackAddendum();R!==""&&(o+="%s",u=u.concat([R]));var S=u.map(function(N){return String(N)});S.unshift("Warning: "+o),Function.prototype.apply.call(console[t],console,S)}}var Q=!1,C=!1,w=!1,Y=!1,yr=!1,Ve;Ve=Symbol.for("react.module.reference");function jr(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===l||yr||t===i||t===x||t===d||Y||t===z||Q||C||w||typeof t=="object"&&t!==null&&(t.$$typeof===j||t.$$typeof===m||t.$$typeof===f||t.$$typeof===h||t.$$typeof===c||t.$$typeof===Ve||t.getModuleId!==void 0))}function kr(t,o,u){var v=t.displayName;if(v)return v;var R=o.displayName||o.name||"";return R!==""?u+"("+R+")":u}function qe(t){return t.displayName||"Context"}function B(t){if(t==null)return null;if(typeof t.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case a:return"Portal";case l:return"Profiler";case i:return"StrictMode";case x:return"Suspense";case d:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case h:var o=t;return qe(o)+".Consumer";case f:var u=t;return qe(u._context)+".Provider";case c:return kr(t,t.render,"ForwardRef");case m:var v=t.displayName||null;return v!==null?v:B(t.type)||"Memo";case j:{var R=t,S=R._payload,N=R._init;try{return B(N(S))}catch{return null}}}return null}var q=Object.assign,K=0,Ue,He,Ge,Je,Xe,Ze,Qe;function Ke(){}Ke.__reactDisabledLog=!0;function wr(){{if(K===0){Ue=console.log,He=console.info,Ge=console.warn,Je=console.error,Xe=console.group,Ze=console.groupCollapsed,Qe=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}K++}}function Nr(){{if(K--,K===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},t,{value:Ue}),info:q({},t,{value:He}),warn:q({},t,{value:Ge}),error:q({},t,{value:Je}),group:q({},t,{value:Xe}),groupCollapsed:q({},t,{value:Ze}),groupEnd:q({},t,{value:Qe})})}K<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=E.ReactCurrentDispatcher,xe;function se(t,o,u){{if(xe===void 0)try{throw Error()}catch(R){var v=R.stack.trim().match(/\n( *(at )?)/);xe=v&&v[1]||""}return`
18
+ `+xe+t}}var he=!1,ie;{var Cr=typeof WeakMap=="function"?WeakMap:Map;ie=new Cr}function et(t,o){if(!t||he)return"";{var u=ie.get(t);if(u!==void 0)return u}var v;he=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=me.current,me.current=null,wr();try{if(o){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(A){v=A}Reflect.construct(t,[],N)}else{try{N.call()}catch(A){v=A}t.call(N.prototype)}}else{try{throw Error()}catch(A){v=A}t()}}catch(A){if(A&&v&&typeof A.stack=="string"){for(var y=A.stack.split(`
19
+ `),L=v.stack.split(`
20
+ `),P=y.length-1,O=L.length-1;P>=1&&O>=0&&y[P]!==L[O];)O--;for(;P>=1&&O>=0;P--,O--)if(y[P]!==L[O]){if(P!==1||O!==1)do if(P--,O--,O<0||y[P]!==L[O]){var $=`
21
+ `+y[P].replace(" at new "," at ");return t.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",t.displayName)),typeof t=="function"&&ie.set(t,$),$}while(P>=1&&O>=0);break}}}finally{he=!1,me.current=S,Nr(),Error.prepareStackTrace=R}var G=t?t.displayName||t.name:"",U=G?se(G):"";return typeof t=="function"&&ie.set(t,U),U}function Er(t,o,u){return et(t,!1)}function Rr(t){var o=t.prototype;return!!(o&&o.isReactComponent)}function oe(t,o,u){if(t==null)return"";if(typeof t=="function")return et(t,Rr(t));if(typeof t=="string")return se(t);switch(t){case x:return se("Suspense");case d:return se("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case c:return Er(t.render);case m:return oe(t.type,o,u);case j:{var v=t,R=v._payload,S=v._init;try{return oe(S(R),o,u)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,tt={},rt=E.ReactDebugCurrentFrame;function le(t){if(t){var o=t._owner,u=oe(t.type,t._source,o?o.type:null);rt.setExtraStackFrame(u)}else rt.setExtraStackFrame(null)}function Sr(t,o,u,v,R){{var S=Function.call.bind(ee);for(var N in t)if(S(t,N)){var y=void 0;try{if(typeof t[N]!="function"){var L=Error((v||"React class")+": "+u+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}y=t[N](o,N,v,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){y=P}y&&!(y instanceof Error)&&(le(R),M("%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).",v||"React class",u,N,typeof y),le(null)),y instanceof Error&&!(y.message in tt)&&(tt[y.message]=!0,le(R),M("Failed %s type: %s",u,y.message),le(null))}}}var _r=Array.isArray;function be(t){return _r(t)}function Tr(t){{var o=typeof Symbol=="function"&&Symbol.toStringTag,u=o&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u}}function Mr(t){try{return nt(t),!1}catch{return!0}}function nt(t){return""+t}function at(t){if(Mr(t))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Tr(t)),nt(t)}var st=E.ReactCurrentOwner,Pr={key:!0,ref:!0,__self:!0,__source:!0},it,ot;function Or(t){if(ee.call(t,"ref")){var o=Object.getOwnPropertyDescriptor(t,"ref").get;if(o&&o.isReactWarning)return!1}return t.ref!==void 0}function Dr(t){if(ee.call(t,"key")){var o=Object.getOwnPropertyDescriptor(t,"key").get;if(o&&o.isReactWarning)return!1}return t.key!==void 0}function zr(t,o){typeof t.ref=="string"&&st.current}function Lr(t,o){{var u=function(){it||(it=!0,M("%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)",o))};u.isReactWarning=!0,Object.defineProperty(t,"key",{get:u,configurable:!0})}}function Ar(t,o){{var u=function(){ot||(ot=!0,M("%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)",o))};u.isReactWarning=!0,Object.defineProperty(t,"ref",{get:u,configurable:!0})}}var Fr=function(t,o,u,v,R,S,N){var y={$$typeof:n,type:t,key:o,ref:u,props:N,_owner:S};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Ir(t,o,u,v,R){{var S,N={},y=null,L=null;u!==void 0&&(at(u),y=""+u),Dr(o)&&(at(o.key),y=""+o.key),Or(o)&&(L=o.ref,zr(o,R));for(S in o)ee.call(o,S)&&!Pr.hasOwnProperty(S)&&(N[S]=o[S]);if(t&&t.defaultProps){var P=t.defaultProps;for(S in P)N[S]===void 0&&(N[S]=P[S])}if(y||L){var O=typeof t=="function"?t.displayName||t.name||"Unknown":t;y&&Lr(N,O),L&&Ar(N,O)}return Fr(t,y,L,R,v,st.current,N)}}var pe=E.ReactCurrentOwner,lt=E.ReactDebugCurrentFrame;function H(t){if(t){var o=t._owner,u=oe(t.type,t._source,o?o.type:null);lt.setExtraStackFrame(u)}else lt.setExtraStackFrame(null)}var ve;ve=!1;function ge(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function ct(){{if(pe.current){var t=B(pe.current.type);if(t)return`
22
+
23
+ Check the render method of \``+t+"`."}return""}}function $r(t){return""}var dt={};function Yr(t){{var o=ct();if(!o){var u=typeof t=="string"?t:t.displayName||t.name;u&&(o=`
24
+
25
+ Check the top-level render call using <`+u+">.")}return o}}function ut(t,o){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var u=Yr(o);if(dt[u])return;dt[u]=!0;var v="";t&&t._owner&&t._owner!==pe.current&&(v=" It was passed a child from "+B(t._owner.type)+"."),H(t),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,v),H(null)}}function ft(t,o){{if(typeof t!="object")return;if(be(t))for(var u=0;u<t.length;u++){var v=t[u];ge(v)&&ut(v,o)}else if(ge(t))t._store&&(t._store.validated=!0);else if(t){var R=T(t);if(typeof R=="function"&&R!==t.entries)for(var S=R.call(t),N;!(N=S.next()).done;)ge(N.value)&&ut(N.value,o)}}}function Br(t){{var o=t.type;if(o==null||typeof o=="string")return;var u;if(typeof o=="function")u=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===c||o.$$typeof===m))u=o.propTypes;else return;if(u){var v=B(o);Sr(u,t.props,"prop",v,t)}else if(o.PropTypes!==void 0&&!ve){ve=!0;var R=B(o);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wr(t){{for(var o=Object.keys(t.props),u=0;u<o.length;u++){var v=o[u];if(v!=="children"&&v!=="key"){H(t),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),H(null);break}}t.ref!==null&&(H(t),M("Invalid attribute `ref` supplied to `React.Fragment`."),H(null))}}var mt={};function xt(t,o,u,v,R,S){{var N=jr(t);if(!N){var y="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(y+=" 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 L=$r();L?y+=L:y+=ct();var P;t===null?P="null":be(t)?P="array":t!==void 0&&t.$$typeof===n?(P="<"+(B(t.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):P=typeof t,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,y)}var O=Ir(t,o,u,R,S);if(O==null)return O;if(N){var $=o.children;if($!==void 0)if(v)if(be($)){for(var G=0;G<$.length;G++)ft($[G],t);Object.freeze&&Object.freeze($)}else M("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 ft($,t)}if(ee.call(o,"key")){var U=B(t),A=Object.keys(o).filter(function(Jr){return Jr!=="key"}),ye=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!mt[U+ye]){var Gr=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";M(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,ye,U,Gr,U),mt[U+ye]=!0}}return t===s?Wr(O):Br(O),O}}function Vr(t,o,u){return xt(t,o,u,!0)}function qr(t,o,u){return xt(t,o,u,!1)}var Ur=qr,Hr=Vr;X.Fragment=s,X.jsx=Ur,X.jsxs=Hr}()),X}process.env.NODE_ENV==="production"?ce.exports=bt():ce.exports=pt();var e=ce.exports;function Ne(r){var n,a,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(n=0;n<i;n++)r[n]&&(a=Ne(r[n]))&&(s&&(s+=" "),s+=a)}else for(a in r)r[a]&&(s&&(s+=" "),s+=a);return s}function vt(){for(var r,n,a=0,s="",i=arguments.length;a<i;a++)(r=arguments[a])&&(n=Ne(r))&&(s&&(s+=" "),s+=n);return s}function p(...r){return vt(r)}const gt={neutral:"bg-tag text-tag border border-tag-border",online:"bg-status-online-bg text-status-online",warn:"bg-status-warn-bg text-status-warn",offline:"bg-status-offline-bg text-status-offline",live:"bg-live-bg text-live-text",accent:"bg-accent-muted text-accent"};function yt({tone:r="neutral",className:n,children:a,...s}){return e.jsx("span",{className:p("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-xs font-medium",gt[r],n),...s,children:a})}const jt={primary:"bg-accent text-white hover:brightness-110 focus-visible:ring-accent/50",secondary:"bg-accent-muted text-accent hover:brightness-105 focus-visible:ring-accent/40",outline:"border border-card-border text-ink-primary bg-transparent hover:bg-accent-muted focus-visible:ring-accent/30",ghost:"bg-transparent text-ink-primary hover:bg-accent-muted focus-visible:ring-accent/30",danger:"bg-status-offline text-white hover:brightness-110 focus-visible:ring-status-offline/50",add:"bg-status-online text-white hover:brightness-110 focus-visible:ring-status-online/50",cancel:"border border-card-border text-ink-secondary bg-transparent hover:bg-card focus-visible:ring-ink-muted/30"},kt={sm:"h-8 px-3 text-sm gap-1.5",md:"h-10 px-4 text-sm gap-2",lg:"h-12 px-6 text-base gap-2"},I=g.forwardRef(({variant:r="primary",size:n="md",icon:a,trailingIcon:s,loading:i,fullWidth:l,disabled:f,className:h,children:c,...x},d)=>e.jsxs("button",{ref:d,disabled:f||i,className:p("inline-flex items-center justify-center rounded-md font-primary font-medium","transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2","disabled:opacity-50 disabled:cursor-not-allowed",jt[r],kt[n],l&&"w-full",h),...x,children:[i?e.jsx("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}):a&&e.jsx("span",{className:"inline-flex shrink-0",children:a}),c,!i&&s&&e.jsx("span",{className:"inline-flex shrink-0",children:s})]}));I.displayName="Button";const Ce=g.forwardRef(({padded:r=!0,className:n,children:a,...s},i)=>e.jsx("div",{ref:i,className:p("rounded-lg border border-card-border bg-card shadow-md text-ink-primary",r&&"p-4",n),...s,children:a}));Ce.displayName="Card";/**
31
+ * @license lucide-react v0.400.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */const wt=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ee=(...r)=>r.filter((n,a,s)=>!!n&&s.indexOf(n)===a).join(" ");/**
36
+ * @license lucide-react v0.400.0 - ISC
37
+ *
38
+ * This source code is licensed under the ISC license.
39
+ * See the LICENSE file in the root directory of this source tree.
40
+ */var Nt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
41
+ * @license lucide-react v0.400.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Ct=F.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:f,...h},c)=>F.createElement("svg",{ref:c,...Nt,width:n,height:n,stroke:r,strokeWidth:s?Number(a)*24/Number(n):a,className:Ee("lucide",i),...h},[...f.map(([x,d])=>F.createElement(x,d)),...Array.isArray(l)?l:[l]]));/**
46
+ * @license lucide-react v0.400.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const _=(r,n)=>{const a=F.forwardRef(({className:s,...i},l)=>F.createElement(Ct,{ref:l,iconNode:n,className:Ee(`lucide-${wt(r)}`,s),...i}));return a.displayName=`${r}`,a};/**
51
+ * @license lucide-react v0.400.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Et=_("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
56
+ * @license lucide-react v0.400.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Re=_("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
61
+ * @license lucide-react v0.400.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Rt=_("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
66
+ * @license lucide-react v0.400.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const St=_("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
71
+ * @license lucide-react v0.400.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Se=_("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
76
+ * @license lucide-react v0.400.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const _e=_("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
81
+ * @license lucide-react v0.400.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const Te=_("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
86
+ * @license lucide-react v0.400.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const _t=_("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
91
+ * @license lucide-react v0.400.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Tt=_("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
96
+ * @license lucide-react v0.400.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Me=_("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/**
101
+ * @license lucide-react v0.400.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Pe=_("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/**
106
+ * @license lucide-react v0.400.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Mt=_("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
111
+ * @license lucide-react v0.400.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Pt=_("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
116
+ * @license lucide-react v0.400.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Ot=_("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
121
+ * @license lucide-react v0.400.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const Dt=_("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
126
+ * @license lucide-react v0.400.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const zt=_("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
131
+ * @license lucide-react v0.400.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Lt=_("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
136
+ * @license lucide-react v0.400.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const At=_("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
141
+ * @license lucide-react v0.400.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Oe=_("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
146
+ * @license lucide-react v0.400.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Ft=_("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
151
+ * @license lucide-react v0.400.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const de=_("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
156
+ * @license lucide-react v0.400.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const De=_("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
161
+ * @license lucide-react v0.400.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const It=_("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
166
+ * @license lucide-react v0.400.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const $t=_("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
171
+ * @license lucide-react v0.400.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const te=_("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),re=g.forwardRef(({label:r,id:n,className:a,checked:s,...i},l)=>{const f=n??g.useId();return e.jsxs("label",{htmlFor:f,className:"inline-flex cursor-pointer items-center gap-2 select-none",children:[e.jsxs("span",{className:"relative inline-flex h-4 w-4 shrink-0 items-center justify-center",children:[e.jsx("input",{ref:l,id:f,type:"checkbox",checked:s,className:"peer sr-only",...i}),e.jsx("span",{className:p("h-4 w-4 rounded border border-card-border bg-input transition-colors","peer-checked:border-accent peer-checked:bg-accent","peer-focus-visible:ring-2 peer-focus-visible:ring-accent/40",a)}),s&&e.jsx(_e,{size:12,strokeWidth:3,className:"pointer-events-none absolute text-white"})]}),r&&e.jsx("span",{className:"text-sm text-ink-primary",children:r})]})});re.displayName="Checkbox";const Yt={idle:"text-icon-idle hover:text-icon-active hover:bg-accent-muted",active:"text-icon-active bg-accent-muted",danger:"text-status-offline hover:bg-status-offline-bg"},Bt={sm:"h-8 w-8",md:"h-10 w-10"},W=g.forwardRef(({icon:r,label:n,variant:a="idle",size:s="md",className:i,...l},f)=>e.jsx("button",{ref:f,"aria-label":n,title:n,className:p("inline-flex items-center justify-center rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40","disabled:opacity-40 disabled:cursor-not-allowed",Yt[a],Bt[s],i),...l,children:r}));W.displayName="IconButton";function Wt({columns:r,visible:n,onChange:a,className:s}){const[i,l]=g.useState(!1),f=g.useRef(null);g.useEffect(()=>{function c(x){f.current&&!f.current.contains(x.target)&&l(!1)}return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]);function h(c){a(n.includes(c)?n.filter(x=>x!==c):[...n,c])}return e.jsxs("div",{ref:f,className:p("relative",s),children:[e.jsx(W,{icon:e.jsx(zt,{size:16}),label:"Choose columns",onClick:()=>l(c=>!c),variant:i?"active":"idle"}),i&&e.jsx("div",{className:"absolute right-0 z-20 mt-1 w-52 rounded-md border border-card-border bg-card p-2 shadow-lg",children:r.map(c=>e.jsxs("label",{className:"flex items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-accent-muted",children:[e.jsx(re,{checked:n.includes(c.key),onChange:()=>h(c.key)}),e.jsx("span",{className:"text-ink-primary",children:c.label})]},c.key))})]})}const Vt={sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};function ne({open:r,onClose:n,title:a,footer:s,size:i="md",children:l,className:f}){return g.useEffect(()=>{if(!r)return;function h(c){c.key==="Escape"&&n()}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r,n]),r?je.createPortal(e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:n,"aria-hidden":!0}),e.jsxs("div",{role:"dialog","aria-modal":"true",className:p("relative z-10 flex max-h-[90vh] w-full flex-col rounded-lg border border-card-border bg-card shadow-xl",Vt[i],f),children:[a&&e.jsxs("div",{className:"flex items-center justify-between border-b border-card-border px-5 py-4",children:[e.jsx("h2",{className:"font-secondary text-base font-semibold text-ink-primary",children:a}),e.jsx("button",{onClick:n,"aria-label":"Close",className:"text-ink-muted hover:text-ink-primary",children:e.jsx(te,{size:18})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:l}),s&&e.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-card-border px-5 py-4",children:s})]})]}),document.body):null}function qt({open:r,title:n,message:a,confirmLabel:s="Ok",cancelLabel:i="Close",tone:l="default",onConfirm:f,onClose:h,loading:c}){return e.jsx(ne,{open:r,onClose:h,title:n,size:"sm",footer:e.jsxs(e.Fragment,{children:[e.jsx(I,{variant:"cancel",onClick:h,children:i}),e.jsx(I,{variant:l==="danger"?"danger":"primary",onClick:f,loading:c,children:s})]}),children:e.jsx("p",{className:"text-sm text-ink-secondary",children:a})})}function ue({fullPage:r,label:n="Loading...",className:a}){const s=e.jsxs("div",{className:p("flex flex-col items-center justify-center gap-3",a),children:[e.jsx("span",{className:"h-10 w-10 animate-spin rounded-full border-4 border-accent-muted border-t-accent"}),n&&e.jsx("span",{className:"text-sm text-ink-secondary",children:n})]});return r?e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-canvas/70 backdrop-blur-sm",children:s}):s}function fe({checked:r,indeterminate:n,onChange:a,label:s="Select row"}){const i=g.useRef(null);return g.useEffect(()=>{i.current&&(i.current.indeterminate=!!n)},[n]),e.jsx(re,{ref:i,checked:r,onChange:l=>a(l.target.checked),"aria-label":s})}function Ut({columns:r,data:n,rowKey:a,loading:s,emptyMessage:i="No records found.",visibleColumns:l,sortKey:f,sortDirection:h,onSortChange:c,selectable:x,selectedKeys:d=[],onSelectedKeysChange:m,onRowClick:j,className:z}){const D=l?r.filter(C=>l.includes(C.key)):r,k=n.map(a),T=x&&n.length>0&&k.every(C=>d.includes(C)),E=x&&k.some(C=>d.includes(C));function M(C){if(!(!C.sortable||!c)){if(f!==C.key)return c(C.key,"asc");if(h==="asc")return c(C.key,"desc");c(C.key,null)}}function Z(){m&&m(T?[]:k)}function Q(C){m&&m(d.includes(C)?d.filter(w=>w!==C):[...d,C])}return e.jsx("div",{className:p("overflow-x-auto rounded-lg border border-card-border bg-card",z),children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-card-border bg-canvas",children:[x&&e.jsx("th",{className:"w-10 px-4 py-3",children:e.jsx(fe,{checked:!!T,indeterminate:!T&&E,onChange:Z,label:"Select all rows"})}),D.map(C=>e.jsx("th",{style:{width:C.width},className:p("px-4 py-3 font-medium text-ink-secondary",C.align==="right"&&"text-right",C.align==="center"&&"text-center"),children:C.sortable?e.jsxs("button",{onClick:()=>M(C),className:"inline-flex items-center gap-1 hover:text-ink-primary",children:[C.header,f===C.key?h==="asc"?e.jsx(Rt,{size:12}):h==="desc"?e.jsx(Et,{size:12}):e.jsx(Re,{size:12,className:"opacity-40"}):e.jsx(Re,{size:12,className:"opacity-40"})]}):C.header},C.key))]})}),e.jsx("tbody",{children:s?e.jsx("tr",{children:e.jsx("td",{colSpan:D.length+(x?1:0),className:"py-10",children:e.jsx(ue,{label:"Loading records..."})})}):n.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:D.length+(x?1:0),className:"py-10 text-center text-ink-muted",children:i})}):n.map(C=>{const w=a(C);return e.jsxs("tr",{onClick:()=>j==null?void 0:j(C),className:p("border-b border-card-border last:border-0 hover:bg-accent-muted/60",j&&"cursor-pointer"),children:[x&&e.jsx("td",{className:"px-4 py-3",onClick:Y=>Y.stopPropagation(),children:e.jsx(fe,{checked:d.includes(w),onChange:()=>Q(w)})}),D.map(Y=>e.jsx("td",{className:p("px-4 py-3 text-ink-primary",Y.align==="right"&&"text-right",Y.align==="center"&&"text-center"),children:Y.render(C)},Y.key))]},w)})})]})})}function ze({children:r,className:n,...a}){return r?e.jsxs("p",{className:p("mt-1 flex items-center gap-1 text-xs text-status-offline",n),...a,children:[e.jsx(Mt,{size:12,className:"shrink-0"}),r]}):null}function V({label:r,htmlFor:n,required:a,error:s,hint:i,className:l,children:f,...h}){return e.jsxs("div",{className:p("flex flex-col",l),...h,children:[r&&e.jsxs("label",{htmlFor:n,className:"mb-1.5 text-sm font-medium text-ink-primary",children:[r,a&&e.jsx("span",{className:"ml-0.5 text-status-offline",children:"*"})]}),f,i&&!s&&e.jsx("p",{className:"mt-1 text-xs text-ink-muted",children:i}),e.jsx(ze,{children:s})]})}function Ht({label:r,required:n,error:a,value:s,onChange:i,min:l,max:f,disabled:h,className:c}){const x=g.useId();return e.jsx(V,{label:r,htmlFor:x,required:n,error:a,className:c,children:e.jsxs("div",{className:"relative",children:[e.jsx(Se,{size:16,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-ink-muted"}),e.jsx("input",{id:x,type:"date",value:s??"",min:l,max:f,disabled:h,onChange:d=>i(d.target.value),className:p("h-10 w-full rounded-md border bg-input pl-9 pr-3 text-sm text-ink-primary","focus:outline-none focus:ring-2 focus:ring-accent/40 disabled:opacity-50",a?"border-status-offline":"border-card-border")})]})})}const Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gt=["Su","Mo","Tu","We","Th","Fr","Sa"],Jt=["This Financial Year","This Month","Last Month","Next Month","This Quarter","This Year","Last Year","Custom Range"];function ae(r){return r?`${String(r.getDate()).padStart(2,"0")}-${Le[r.getMonth()]}-${r.getFullYear()}`:""}function Xt(r,n=new Date){const a=n.getFullYear(),s=n.getMonth();switch(r){case"This Financial Year":{const i=s>=3?a:a-1;return{from:new Date(i,3,1),to:new Date(i+1,2,31)}}case"This Month":return{from:new Date(a,s,1),to:new Date(a,s+1,0)};case"Last Month":return{from:new Date(a,s-1,1),to:new Date(a,s,0)};case"Next Month":return{from:new Date(a,s+1,1),to:new Date(a,s+2,0)};case"This Quarter":{const i=Math.floor(s/3)*3;return{from:new Date(a,i,1),to:new Date(a,i+3,0)}}case"This Year":return{from:new Date(a,0,1),to:new Date(a,11,31)};case"Last Year":return{from:new Date(a-1,0,1),to:new Date(a-1,11,31)};default:return{from:null,to:null}}}function Ae({year:r,month:n,from:a,to:s,onPick:i}){const f=new Date(r,n,1).getDay(),h=new Date(r,n+1,0).getDate(),c=[];for(let m=0;m<f;m++)c.push(null);for(let m=1;m<=h;m++)c.push(m);function x(m){if(!m||!a||!s)return!1;const j=new Date(r,n,m).getTime();return j>=a.getTime()&&j<=s.getTime()}function d(m){if(!m)return!1;const j=new Date(r,n,m).getTime();return a&&j===a.getTime()||s&&j===s.getTime()}return e.jsxs("div",{children:[e.jsxs("p",{className:"mb-2 text-center text-sm font-semibold text-ink-primary",children:[Le[n]," ",r]}),e.jsxs("div",{className:"grid grid-cols-7 gap-y-1 text-center text-xs",children:[Gt.map(m=>e.jsx("span",{className:"text-ink-muted",children:m},m)),c.map((m,j)=>e.jsx("button",{type:"button",disabled:!m,onClick:()=>m&&i(new Date(r,n,m)),className:p("h-7 w-7 rounded text-ink-primary",!m&&"invisible",m&&x(m)&&"bg-accent-muted",m&&d(m)&&"bg-accent text-white"),children:m},j))]})]})}function Zt({label:r,required:n,error:a,value:s,onChange:i,className:l}){const[f,h]=g.useState(!1),[c,x]=g.useState("Custom Range"),[d,m]=g.useState(s),[j,z]=g.useState(()=>(s.from??new Date).getMonth()),[D,k]=g.useState(()=>(s.from??new Date).getFullYear()),T=g.useRef(null);g.useEffect(()=>{function w(Y){T.current&&!T.current.contains(Y.target)&&h(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);function E(w){x(w),w!=="Custom Range"&&m(Xt(w))}function M(w){x("Custom Range"),!d.from||d.from&&d.to?m({from:w,to:null}):w.getTime()<d.from.getTime()?m({from:w,to:d.from}):m({...d,to:w})}function Z(){j===0?(z(11),k(w=>w-1)):z(w=>w-1)}function Q(){j===11?(z(0),k(w=>w+1)):z(w=>w+1)}function C(){i(d),h(!1)}return e.jsx(V,{label:r,required:n,error:a,className:l,children:e.jsxs("div",{ref:T,className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>h(w=>!w),className:p("flex h-10 w-full items-center gap-2 rounded-md border bg-input px-3 text-left text-sm","focus:outline-none focus:ring-2 focus:ring-accent/40",a?"border-status-offline":"border-card-border"),children:[e.jsx(Se,{size:16,className:"shrink-0 text-ink-muted"}),e.jsx("span",{className:s.from?"text-ink-primary":"text-ink-muted",children:s.from&&s.to?`${ae(s.from)} - ${ae(s.to)}`:"Select date range"})]}),f&&e.jsxs("div",{className:"absolute z-20 mt-1 flex w-[560px] max-w-[90vw] overflow-hidden rounded-md border border-card-border bg-card shadow-xl",children:[e.jsx("div",{className:"w-40 shrink-0 border-r border-card-border py-2",children:Jt.map(w=>e.jsx("button",{type:"button",onClick:()=>E(w),className:p("block w-full px-3 py-2 text-left text-sm",c===w?"bg-accent text-white":"text-ink-primary hover:bg-accent-muted"),children:w},w))}),e.jsxs("div",{className:"flex-1 p-3",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("button",{type:"button",onClick:Z,className:"text-ink-muted hover:text-ink-primary",children:e.jsx(_t,{size:16})}),e.jsx("button",{type:"button",onClick:Q,className:"text-ink-muted hover:text-ink-primary",children:e.jsx(Tt,{size:16})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(Ae,{year:D,month:j,from:d.from,to:d.to,onPick:M}),e.jsx(Ae,{year:j===11?D+1:D,month:j===11?0:j+1,from:d.from,to:d.to,onPick:M})]}),e.jsxs("div",{className:"mt-3 flex items-center justify-between border-t border-card-border pt-3",children:[e.jsx("span",{className:"text-sm text-ink-secondary",children:d.from&&d.to?`${ae(d.from)} - ${ae(d.to)}`:"Select a range"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(I,{variant:"cancel",size:"sm",onClick:()=>h(!1),children:"Cancel"}),e.jsx(I,{variant:"primary",size:"sm",onClick:C,disabled:!d.from||!d.to,children:"Apply"})]})]})]})]})]})})}function Qt({label:r,required:n,error:a,options:s,value:i,onChange:l,placeholder:f="Select...",searchable:h=!0,disabled:c,className:x}){const[d,m]=g.useState(!1),[j,z]=g.useState(""),D=g.useRef(null);g.useEffect(()=>{function E(M){D.current&&!D.current.contains(M.target)&&m(!1)}return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);const k=h&&j?s.filter(E=>E.label.toLowerCase().includes(j.toLowerCase())):s,T=s.find(E=>E.value===i);return e.jsx(V,{label:r,required:n,error:a,className:x,children:e.jsxs("div",{ref:D,className:"relative",children:[e.jsxs("button",{type:"button",disabled:c,onClick:()=>m(E=>!E),className:p("flex h-10 w-full items-center justify-between rounded-md border bg-input px-3 text-sm text-left","focus:outline-none focus:ring-2 focus:ring-accent/40 disabled:opacity-50",a?"border-status-offline":"border-card-border",T?"text-ink-primary":"text-ink-muted"),children:[e.jsx("span",{className:"truncate",children:(T==null?void 0:T.label)??f}),e.jsx(Te,{size:16,className:p("shrink-0 text-ink-muted transition-transform",d&&"rotate-180")})]}),d&&e.jsxs("div",{className:"absolute z-20 mt-1 w-full overflow-hidden rounded-md border border-card-border bg-card shadow-lg",children:[h&&e.jsxs("div",{className:"flex items-center gap-2 border-b border-card-border px-3 py-2",children:[e.jsx(de,{size:14,className:"text-ink-muted"}),e.jsx("input",{autoFocus:!0,value:j,onChange:E=>z(E.target.value),placeholder:"Search...",className:"w-full bg-transparent text-sm text-ink-primary placeholder:text-ink-muted focus:outline-none"})]}),e.jsxs("ul",{className:"max-h-56 overflow-y-auto py-1",role:"listbox",children:[k.length===0&&e.jsx("li",{className:"px-3 py-2 text-sm text-ink-muted",children:"No options"}),k.map(E=>e.jsx("li",{children:e.jsxs("button",{type:"button",disabled:E.disabled,onClick:()=>{l(E.value),m(!1),z("")},className:p("flex w-full items-center justify-between px-3 py-2 text-left text-sm hover:bg-accent-muted disabled:opacity-40",E.value===i?"text-accent":"text-ink-primary"),children:[E.label,E.value===i&&e.jsx(_e,{size:14})]})},E.value))]})]})]})})}function Kt({items:r,onChange:n,createItem:a,renderRow:s,addLabel:i="Add row",minRows:l=0,className:f}){function h(x,d){const m=r.slice();m[x]={...m[x],...d},n(m)}function c(x){n(r.filter((d,m)=>m!==x))}return e.jsxs("div",{className:p("flex flex-col gap-2",f),children:[r.map((x,d)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex-1",children:s(x,d,m=>h(d,m))}),e.jsx(W,{icon:e.jsx(It,{size:16}),label:"Remove row",variant:"danger",size:"sm",disabled:r.length<=l,onClick:()=>c(d)})]},d)),e.jsx(I,{variant:"ghost",size:"sm",icon:e.jsx(Oe,{size:14}),onClick:()=>n([...r,a()]),className:"self-start",children:i})]})}function er({open:r,onSearch:n,onClear:a,children:s,className:i}){return r?e.jsxs("div",{className:p("z-20 w-full max-w-md rounded-lg border border-card-border bg-card p-4 shadow-lg",i),children:[e.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:s}),e.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 border-t border-card-border pt-3",children:[e.jsx(I,{variant:"cancel",size:"sm",onClick:a,children:"Clear filters"}),e.jsx(I,{variant:"primary",size:"sm",onClick:n,children:"Search"})]})]}):null}const Fe=g.forwardRef(({label:r="Add",className:n,...a},s)=>e.jsx("button",{ref:s,"aria-label":r,title:r,className:p("fixed bottom-6 right-6 z-40 flex h-14 w-14 items-center justify-center rounded-full","bg-accent text-white shadow-lg hover:brightness-110 active:scale-95","transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50",n),...a,children:e.jsx(Oe,{size:24,strokeWidth:2.5})}));Fe.displayName="FloatingAddButton";function tr({open:r,onClose:n,onSubmit:a,title:s,size:i="md",submitLabel:l="Ok",cancelLabel:f="Close",submitting:h,submitDisabled:c,children:x}){return e.jsx(ne,{open:r,onClose:n,title:s,size:i,footer:e.jsxs(e.Fragment,{children:[e.jsx(I,{variant:"cancel",onClick:n,disabled:h,children:f}),e.jsx(I,{variant:"primary",onClick:a,loading:h,disabled:c,children:l})]}),children:e.jsx("form",{onSubmit:d=>{d.preventDefault(),a()},className:"flex flex-col gap-4",children:x})})}const Ie=g.forwardRef(({label:r,required:n,error:a,hint:s,icon:i,id:l,className:f,...h},c)=>{const x=l??g.useId();return e.jsx(V,{label:r,htmlFor:x,required:n,error:a,hint:s,children:e.jsxs("div",{className:"relative",children:[i&&e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-ink-muted",children:i}),e.jsx("input",{ref:c,id:x,className:p("h-10 w-full rounded-md border bg-input px-3 text-sm text-ink-primary placeholder:text-ink-muted","focus:outline-none focus:ring-2 focus:ring-accent/40",a?"border-status-offline":"border-card-border",i&&"pl-9",f),"aria-invalid":!!a,...h})]})})});Ie.displayName="InputField";function rr({label:r,required:n,error:a,options:s,value:i,onChange:l,placeholder:f="Select...",className:h}){const[c,x]=g.useState(!1),[d,m]=g.useState(""),j=g.useRef(null);g.useEffect(()=>{function k(T){j.current&&!j.current.contains(T.target)&&x(!1)}return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[]);const z=d?s.filter(k=>k.label.toLowerCase().includes(d.toLowerCase())):s;function D(k){l(i.includes(k)?i.filter(T=>T!==k):[...i,k])}return e.jsx(V,{label:r,required:n,error:a,className:h,children:e.jsxs("div",{ref:j,className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>x(k=>!k),className:p("flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-md border bg-input px-2 py-1.5 text-left","focus:outline-none focus:ring-2 focus:ring-accent/40",a?"border-status-offline":"border-card-border"),children:[i.length===0&&e.jsx("span",{className:"px-1 text-sm text-ink-muted",children:f}),i.map(k=>{const T=s.find(E=>E.value===k);return e.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-tag px-2 py-0.5 text-xs text-tag border border-tag-border",children:[(T==null?void 0:T.label)??k,e.jsx(te,{size:12,className:"cursor-pointer hover:text-status-offline",onClick:E=>{E.stopPropagation(),D(k)}})]},k)}),e.jsx(Te,{size:16,className:p("ml-auto shrink-0 text-ink-muted transition-transform",c&&"rotate-180")})]}),c&&e.jsxs("div",{className:"absolute z-20 mt-1 w-full overflow-hidden rounded-md border border-card-border bg-card shadow-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b border-card-border px-3 py-2",children:[e.jsx(de,{size:14,className:"text-ink-muted"}),e.jsx("input",{autoFocus:!0,value:d,onChange:k=>m(k.target.value),placeholder:"Search...",className:"w-full bg-transparent text-sm text-ink-primary placeholder:text-ink-muted focus:outline-none"})]}),e.jsxs("ul",{className:"max-h-56 overflow-y-auto py-1",role:"listbox",children:[z.length===0&&e.jsx("li",{className:"px-3 py-2 text-sm text-ink-muted",children:"No options"}),z.map(k=>e.jsx("li",{children:e.jsxs("label",{className:"flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm hover:bg-accent-muted",children:[e.jsx("input",{type:"checkbox",checked:i.includes(k.value),onChange:()=>D(k.value),className:"h-3.5 w-3.5 rounded border-card-border accent-[var(--accent-primary)]"}),e.jsx("span",{className:"text-ink-primary",children:k.label})]})},k.value))]})]})]})})}function nr({page:r,pageSize:n,total:a,onPageChange:s,className:i}){const l=Math.max(1,Math.ceil(a/n)),f=a===0?0:(r-1)*n+1,h=Math.min(a,r*n);return e.jsxs("nav",{className:p("flex items-center gap-2 text-sm text-ink-secondary",i),"aria-label":"Pagination",children:[e.jsx("button",{onClick:()=>s(Math.max(1,r-1)),disabled:r===1,"aria-label":"Previous page",className:"flex h-7 w-7 items-center justify-center rounded text-ink-secondary hover:bg-accent-muted disabled:opacity-40",children:e.jsx(Me,{size:16})}),e.jsxs("span",{children:[f,"-",h," of ",a]}),e.jsx("button",{onClick:()=>s(Math.min(l,r+1)),disabled:r>=l,"aria-label":"Next page",className:"flex h-7 w-7 items-center justify-center rounded text-ink-secondary hover:bg-accent-muted disabled:opacity-40",children:e.jsx(Pe,{size:16})})]})}function ar({title:r,actions:n,className:a,children:s,...i}){return e.jsxs("div",{className:p("rounded-lg border border-card-border bg-card",a),...i,children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-card-border px-4 py-3",children:[e.jsx("h3",{className:"font-secondary text-sm font-semibold text-ink-primary",children:r}),n&&e.jsx("div",{className:"flex items-center gap-2",children:n})]}),e.jsx("div",{className:"p-4",children:s})]})}const $e=g.forwardRef(({label:r,required:n,error:a,hint:s,id:i,className:l,...f},h)=>{const[c,x]=g.useState(!1),d=i??g.useId();return e.jsx(V,{label:r,htmlFor:d,required:n,error:a,hint:s,children:e.jsxs("div",{className:"relative",children:[e.jsx("input",{ref:h,id:d,type:c?"text":"password",className:p("h-10 w-full rounded-md border bg-input pl-3 pr-10 text-sm text-ink-primary placeholder:text-ink-muted","focus:outline-none focus:ring-2 focus:ring-accent/40",a?"border-status-offline":"border-card-border",l),"aria-invalid":!!a,...f}),e.jsx("button",{type:"button",onClick:()=>x(m=>!m),"aria-label":c?"Hide password":"Show password",className:"absolute right-3 top-1/2 -translate-y-1/2 text-ink-muted hover:text-ink-primary",children:c?e.jsx(Ot,{size:16}):e.jsx(Dt,{size:16})})]})})});$e.displayName="PasswordInput";function sr(r){let n=0;return r.length>=8&&n++,r.length>=12&&n++,/[A-Z]/.test(r)&&/[a-z]/.test(r)&&n++,/\d/.test(r)&&n++,/[^A-Za-z0-9]/.test(r)&&n++,n<=1?{score:n,label:"Weak",tone:"bg-status-offline"}:n<=3?{score:n,label:"Medium",tone:"bg-status-warn"}:{score:n,label:"Strong",tone:"bg-status-online"}}function ir({password:r,className:n}){const{score:a,label:s,tone:i}=sr(r),l=Math.min(a/5*100,100);return r?e.jsxs("div",{className:p("mt-2",n),children:[e.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-card-border",children:e.jsx("div",{className:p("h-full rounded-full transition-all duration-200",i),style:{width:`${l}%`}})}),e.jsxs("p",{className:"mt-1 text-xs text-ink-secondary",children:["Strength: ",s]})]}):null}const Ye=g.forwardRef(({value:r,onChange:n,onFilterClick:a,placeholder:s="Search Data",className:i,...l},f)=>e.jsxs("div",{className:p("flex h-10 w-full items-center gap-2 rounded-md border border-card-border bg-input px-3","focus-within:ring-2 focus-within:ring-accent/40",i),children:[e.jsx(de,{size:16,className:"shrink-0 text-ink-muted"}),e.jsx("input",{ref:f,value:r,onChange:h=>n(h.target.value),placeholder:s,className:"w-full bg-transparent text-sm text-ink-primary placeholder:text-ink-muted focus:outline-none",...l}),r&&e.jsx("button",{type:"button","aria-label":"Clear search",onClick:()=>n(""),className:"text-ink-muted hover:text-ink-primary",children:e.jsx(te,{size:14})}),a&&e.jsx("button",{type:"button","aria-label":"Filters",onClick:a,className:"text-ink-muted hover:text-accent",children:e.jsx(De,{size:16})})]}));Ye.displayName="SearchBox";function Be({open:r,onClose:n,title:a,width:s="480px",children:i,className:l}){return g.useEffect(()=>{if(!r)return;function f(h){h.key==="Escape"&&n()}return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[r,n]),r?je.createPortal(e.jsxs("div",{className:"fixed inset-0 z-50",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:n,"aria-hidden":!0}),e.jsxs("div",{role:"dialog","aria-modal":"true",style:{width:s},className:p("absolute right-0 top-0 flex h-full max-w-full flex-col border-l border-card-border bg-card shadow-xl",l),children:[a&&e.jsxs("div",{className:"flex items-center justify-between border-b border-card-border px-5 py-4",children:[e.jsx("h2",{className:"font-secondary text-base font-semibold text-ink-primary",children:a}),e.jsx("button",{onClick:n,"aria-label":"Close",className:"text-ink-muted hover:text-ink-primary",children:e.jsx(te,{size:18})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:i})]})]}),document.body):null}function or({start:r,end:n,className:a,...s}){return e.jsxs("div",{className:p("flex flex-wrap items-center justify-between gap-3 py-2",a),...s,children:[e.jsx("div",{className:"flex flex-1 items-center gap-2",children:r}),e.jsx("div",{className:"flex items-center gap-1.5",children:n})]})}function We({items:r,value:n,onChange:a,className:s}){return e.jsx("div",{role:"tablist",className:p("flex items-center gap-1 border-b border-card-border",s),children:r.map(i=>{const l=i.value===n;return e.jsxs("button",{role:"tab","aria-selected":l,onClick:()=>a(i.value),className:p("flex items-center gap-1.5 border-b-2 px-4 py-2 text-sm font-medium transition-colors",l?"border-accent text-accent":"border-transparent text-ink-secondary hover:text-ink-primary"),children:[i.icon,i.label]},i.value)})})}function lr({options:r,value:n,onChange:a,className:s}){return e.jsx("div",{className:p("inline-flex overflow-hidden rounded-md border border-card-border",s),role:"tablist",children:r.map((i,l)=>{const f=i.value===n;return e.jsx("button",{type:"button",role:"tab","aria-selected":f,onClick:()=>a(i.value),className:p("h-9 px-4 text-sm font-medium transition-colors",l===0?"border-r border-card-border":"",f?"bg-accent text-white":"bg-input text-ink-secondary hover:bg-accent-muted"),children:i.label},i.value)})})}function cr({logo:r,children:n,className:a}){return e.jsx("div",{className:p("flex min-h-screen items-center justify-center bg-canvas px-4",a),children:e.jsxs("div",{className:"w-full max-w-md",children:[r&&e.jsx("div",{className:"mb-8 flex justify-center",children:r}),e.jsx("div",{className:"rounded-lg border border-card-border bg-card p-8 shadow-lg",children:n})]})})}function dr({className:r,children:n,...a}){return e.jsx("footer",{className:p("border-t border-card-border px-6 py-3 text-xs text-ink-muted",r),...a,children:n??`© ${new Date().getFullYear()} SLS — Software License System`})}function ur({title:r,search:n,profileMenu:a,actions:s,className:i}){return e.jsxs("header",{className:p("flex h-16 items-center justify-between gap-4 border-b border-topbar-border bg-chrome px-6",i),children:[e.jsx("h1",{className:"font-secondary text-lg font-semibold text-ink-onchrome truncate",children:r}),e.jsxs("div",{className:"flex flex-1 items-center justify-end gap-4",children:[n&&e.jsx("div",{className:"w-full max-w-sm",children:n}),s,a]})]})}function fr({sidebar:r,header:n,footer:a,children:s,className:i}){return e.jsxs("div",{className:p("flex h-screen w-full overflow-hidden bg-canvas",i),children:[r,e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[n,e.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:s}),a]})]})}function mr({name:r,role:n,avatarUrl:a,onSignOut:s,actions:i=[],className:l}){const[f,h]=g.useState(!1),c=g.useRef(null);return g.useEffect(()=>{function x(d){c.current&&!c.current.contains(d.target)&&h(!1)}return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),e.jsxs("div",{ref:c,className:p("relative",l),children:[e.jsx("button",{onClick:()=>h(x=>!x),className:"flex items-center gap-2","aria-label":"Open profile menu",children:a?e.jsx("img",{src:a,alt:"",className:"h-9 w-9 rounded-full object-cover"}):e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-accent-muted text-accent",children:e.jsx($t,{size:16})})}),f&&e.jsxs("div",{className:"absolute right-0 z-30 mt-2 w-56 rounded-lg border border-card-border bg-card p-4 shadow-lg",children:[e.jsx("p",{className:"font-secondary text-sm font-semibold text-ink-primary",children:r}),e.jsx("p",{className:"text-xs text-ink-muted",children:n}),i.length>0&&e.jsx("div",{className:"mt-3 flex flex-col gap-1 border-t border-card-border pt-3",children:i.map(x=>e.jsxs("button",{onClick:x.onClick,className:"flex items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-ink-primary hover:bg-accent-muted",children:[x.icon,x.label]},x.label))}),e.jsxs("button",{onClick:s,className:"mt-2 flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-status-offline hover:bg-status-offline-bg",children:[e.jsx(Lt,{size:14}),"Sign out"]})]})]})}function xr({items:r,collapsed:n,onCollapsedChange:a,logo:s,className:i}){return e.jsxs("aside",{className:p("flex h-full flex-col border-r border-sidebar-border bg-chrome-deep transition-all duration-200",n?"w-16":"w-56",i),children:[s&&e.jsx("div",{className:"flex h-16 items-center justify-center border-b border-sidebar-border",children:s}),e.jsx("nav",{className:"flex flex-1 flex-col gap-1 p-2",children:r.map(l=>e.jsxs("button",{onClick:l.onClick,title:n?l.label:void 0,className:p("flex items-center gap-3 rounded-md px-3 py-2.5 text-sm font-medium transition-colors",l.active?"border-l-2 bg-nav-active-bg text-ink-onchrome":"text-icon-idle hover:bg-nav-active-bg hover:text-icon-active"),style:l.active?{borderColor:"var(--nav-active-border)"}:void 0,children:[e.jsx("span",{className:"shrink-0",children:l.icon}),!n&&e.jsx("span",{className:"truncate",children:l.label})]},l.key))}),a&&e.jsx("button",{onClick:()=>a(!n),className:"flex items-center justify-center border-t border-sidebar-border py-3 text-icon-idle hover:text-icon-active","aria-label":n?"Expand sidebar":"Collapse sidebar",children:n?e.jsx(Pe,{size:16}):e.jsx(Me,{size:16})})]})}function hr({onOpen:r,className:n}){function a(){if(r)return r();const s=window.open("","_blank");s&&s.document.write("<title>SLS License Agent</title><body style='font-family:sans-serif;padding:40px'><h2>SLS AI License Agent</h2><p>The agent would open here.</p></body>")}return e.jsx("button",{onClick:a,"aria-label":"Open AI license agent",title:"AI License Agent",className:p("fixed bottom-24 right-6 z-40 flex h-14 w-14 items-center justify-center rounded-full","bg-accent-light text-white shadow-lg hover:brightness-110 active:scale-95 transition-all",n),children:e.jsx(St,{size:22})})}function br({title:r,loading:n,onReload:a,onExport:s,onFilter:i,children:l,className:f}){return e.jsxs("div",{className:p("flex flex-col rounded-lg border border-card-border bg-card",f),children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-card-border px-4 py-3",children:[e.jsx("h3",{className:"font-secondary text-sm font-semibold text-ink-primary",children:r}),e.jsxs("div",{className:"flex items-center gap-1",children:[i&&e.jsx(W,{icon:e.jsx(De,{size:14}),label:"Filter",size:"sm",onClick:i}),a&&e.jsx(W,{icon:e.jsx(Ft,{size:14}),label:"Reload",size:"sm",onClick:a}),s&&e.jsx(W,{icon:e.jsx(Pt,{size:14}),label:"Export",size:"sm",onClick:s})]})]}),e.jsx("div",{className:"p-4",children:n?e.jsx(ue,{label:"Loading widget..."}):l})]})}const pr=[{value:"pdf",label:"Invoice PDF"},{value:"excel",label:"Renewal Excel"}];function vr({open:r,onClose:n,customerEmail:a,activeTab:s,onTabChange:i,onSendEmail:l,children:f}){return e.jsx(Be,{open:r,onClose:n,title:"Invoice preview",width:"640px",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(We,{items:pr,value:s,onChange:i}),a&&e.jsxs("div",{className:"flex items-center justify-between rounded-md bg-accent-muted px-3 py-2 text-sm",children:[e.jsxs("span",{className:"flex items-center gap-2 text-ink-secondary",children:[e.jsx(At,{size:14}),a]}),l&&e.jsx(I,{size:"sm",variant:"secondary",onClick:l,children:"Send"})]}),e.jsx("div",{className:"min-h-[60vh]",children:f})]})})}function gr({open:r,onClose:n,title:a="Changes",fields:s}){return e.jsx(ne,{open:r,onClose:n,title:a,size:"md",children:e.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm",children:[e.jsx("div",{className:"font-medium text-ink-secondary",children:"Field"}),e.jsx("div",{className:"font-medium text-ink-secondary",children:"Previous"}),e.jsx("div",{className:"font-medium text-ink-secondary",children:"Current"}),s.map(i=>e.jsxs(g.Fragment,{children:[e.jsx("div",{className:"text-ink-primary",children:i.label}),e.jsx("div",{className:"rounded bg-status-offline-bg px-2 py-1 text-status-offline",children:i.previous}),e.jsx("div",{className:"rounded bg-status-online-bg px-2 py-1 text-status-online",children:i.current})]},i.label))]})})}b.AuthLayout=cr,b.Badge=yt,b.Button=I,b.Card=Ce,b.ChangesPreviewModal=gr,b.Checkbox=re,b.ColumnFilterDropdown=Wt,b.ConfirmDialog=qt,b.DataTable=Ut,b.DatePicker=Ht,b.DateRangePicker=Zt,b.Dropdown=Qt,b.DynamicRowList=Kt,b.FilterPanel=er,b.FloatingAddButton=Fe,b.Footer=dr,b.FormGroup=V,b.FormModal=tr,b.Header=ur,b.IconButton=W,b.InputField=Ie,b.InvoicePreviewModal=vr,b.LicenseAgentButton=hr,b.Loader=ue,b.MainLayout=fr,b.Modal=ne,b.MultiSelectDropdown=rr,b.Pagination=nr,b.Panel=ar,b.PasswordInput=$e,b.PasswordStrengthMeter=ir,b.ProfileMenu=mr,b.ReportWidget=br,b.RowSelectCheckbox=fe,b.SearchBox=Ye,b.Sidebar=xr,b.SlideOverModal=Be,b.TableToolbar=or,b.Tabs=We,b.ToggleButtonGroup=lr,b.ValidationMessage=ze,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-left-\[29px\]{left:-29px}.bottom-24{bottom:6rem}.bottom-6{bottom:1.5rem}.left-1\/2{left:50%}.left-3{left:.75rem}.right-0{right:0}.right-3{right:.75rem}.right-6{right:1.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.mx-auto{margin-left:auto;margin-right:auto}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.aspect-\[1\/1\.3\]{aspect-ratio:1/1.3}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-56{max-height:14rem}.max-h-\[90vh\]{max-height:90vh}.min-h-10{min-height:2.5rem}.min-h-\[60vh\]{min-height:60vh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-52{width:13rem}.w-56{width:14rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[560px\]{width:560px}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[90vw\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-y-1{row-gap:.25rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-md{border-radius:8px}.rounded-t{border-top-left-radius:8px;border-top-right-radius:8px}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-accent{border-color:var(--accent-primary)}.border-accent-muted{border-color:var(--accent-muted-bg)}.border-card-border{border-color:var(--card-border)}.border-current{border-color:currentColor}.border-sidebar-border{border-color:var(--sidebar-border)}.border-status-offline{border-color:var(--status-offline)}.border-tag-border{border-color:var(--tag-border)}.border-topbar-border{border-color:var(--topbar-border)}.border-transparent{border-color:transparent}.border-t-accent{border-top-color:var(--accent-primary)}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:var(--accent-primary)}.bg-accent-light{background-color:var(--accent-light)}.bg-accent-muted{background-color:var(--accent-muted-bg)}.bg-black\/50{background-color:#00000080}.bg-canvas{background-color:var(--canvas-bg)}.bg-card{background-color:var(--card-bg)}.bg-card-border{background-color:var(--card-border)}.bg-chrome{background-color:var(--chrome-bg)}.bg-chrome-deep{background-color:var(--chrome-deep)}.bg-input{background-color:var(--input-bg)}.bg-live-bg{background-color:var(--live-bg)}.bg-nav-active-bg{background-color:var(--nav-active-bg)}.bg-status-offline{background-color:var(--status-offline)}.bg-status-offline-bg{background-color:var(--status-offline-bg)}.bg-status-online{background-color:var(--status-online)}.bg-status-online-bg{background-color:var(--status-online-bg)}.bg-status-warn{background-color:var(--status-warn)}.bg-status-warn-bg{background-color:var(--status-warn-bg)}.bg-transparent{background-color:transparent}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-primary{font-family:Source Sans 3,system-ui,sans-serif}.font-secondary{font-family:Cabin,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-accent{color:var(--accent-primary)}.text-icon-active{color:var(--icon-active)}.text-icon-idle{color:var(--icon-idle)}.text-ink-muted{color:var(--text-muted)}.text-ink-onchrome{color:var(--text-on-chrome)}.text-ink-primary{color:var(--text-primary)}.text-ink-secondary{color:var(--text-secondary)}.text-live-text{color:var(--live-text)}.text-status-offline{color:var(--status-offline)}.text-status-online{color:var(--status-online)}.text-status-warn{color:var(--status-warn)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.accent-\[var\(--accent-primary\)\]{accent-color:var(--accent-primary)}.opacity-40{opacity:.4}.shadow-lg{--tw-shadow: 0 8px 16px 0 rgba(107,68,35,.1);--tw-shadow-colored: 0 8px 16px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 12px 0 rgba(107,68,35,.1);--tw-shadow-colored: 0 4px 12px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 12px 24px 0 rgba(107,68,35,.1);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}:root{--chrome-bg: #061828;--chrome-deep: #040f1a;--canvas-bg: #0b1e30;--card-bg: #112035;--card-border: #1e3a55;--accent-primary: #00c9a7;--accent-light: #00ddb8;--accent-muted-bg: #0a2240;--accent-border: #1e3a55;--text-primary: #daeaf8;--text-secondary: #a8c4d9;--text-muted: #4a7fa5;--text-on-chrome: #daeaf8;--icon-idle: #2e5470;--icon-active: #00c9a7;--status-online: #00c9a7;--status-online-bg: #072219;--status-warn: #f5a623;--status-warn-bg: #1e1200;--status-offline: #e05252;--status-offline-bg: #1a0808;--live-bg: #072219;--live-text: #00c9a7;--sidebar-border: #0e2236;--topbar-border: #0e2236;--nav-active-bg: rgba(0, 201, 167, .08);--nav-active-border: #00c9a7;--tag-bg: #0a2240;--tag-text: #4a9ecf;--tag-border: #1e3a55;--input-bg: #0b1e30}body{background-color:var(--canvas-bg);color:var(--text-primary)}.placeholder\:text-ink-muted::-moz-placeholder{color:var(--text-muted)}.placeholder\:text-ink-muted::placeholder{color:var(--text-muted)}.last\:border-0:last-child{border-width:0px}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:bg-accent-muted:hover{background-color:var(--accent-muted-bg)}.hover\:bg-card:hover{background-color:var(--card-bg)}.hover\:bg-nav-active-bg:hover{background-color:var(--nav-active-bg)}.hover\:bg-status-offline-bg:hover{background-color:var(--status-offline-bg)}.hover\:text-accent:hover{color:var(--accent-primary)}.hover\:text-icon-active:hover{color:var(--icon-active)}.hover\:text-ink-primary:hover{color:var(--text-primary)}.hover\:text-status-offline:hover{color:var(--status-offline)}.hover\:underline:hover{text-decoration-line:underline}.hover\:brightness-105:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.peer:checked~.peer-checked\:border-accent{border-color:var(--accent-primary)}.peer:checked~.peer-checked\:bg-accent{background-color:var(--accent-primary)}.peer:focus-visible~.peer-focus-visible\:ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "sls-ui-library",
3
+ "version": "1.0.0",
4
+ "description": "Shared UI components and features for SLS",
5
+ "type": "module",
6
+ "main": "dist/sls-ui.umd.js",
7
+ "module": "dist/sls-ui.es.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/sls-ui.es.js",
11
+ "require": "./dist/sls-ui.umd.js"
12
+ },
13
+ "./style.css": "./dist/style.css"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "vite build",
21
+ "preview": "vite preview"
22
+ },
23
+ "peerDependencies": {
24
+ "react": "^18.0.0",
25
+ "react-dom": "^18.0.0"
26
+ }
27
+ }