design-system-silkhaus 0.0.54 → 0.0.55

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-system-silkhaus",
3
3
  "private": false,
4
- "version": "0.0.54",
4
+ "version": "0.0.55",
5
5
  "description": "A template for creating React component libraries with Vite, Tailwind, and Storybook.",
6
6
  "author": "meet-codevyasa",
7
7
  "license": "MIT",
package/dist/index.cjs DELETED
@@ -1,27 +0,0 @@
1
- "use strict";var nr=Object.defineProperty,or=Object.defineProperties;var ar=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var Ze=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Qe=(t,n,r)=>n in t?nr(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,I=(t,n)=>{for(var r in n||(n={}))Ze.call(n,r)&&Qe(t,r,n[r]);if(Ee)for(var r of Ee(n))et.call(n,r)&&Qe(t,r,n[r]);return t},tt=(t,n)=>or(t,ar(n));var L=(t,n)=>{var r={};for(var o in t)Ze.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ee)for(var o of Ee(t))n.indexOf(o)<0&&et.call(t,o)&&(r[o]=t[o]);return r};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react");function ir(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return n.default=t,Object.freeze(n)}const X=ir($);var Ie={exports:{}},ue={};/**
2
- * @license React
3
- * react-jsx-runtime.development.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 rt;function sr(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){var t=$,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator,T="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var a=M&&e[M]||e[T];return typeof a=="function"?a:null}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var a=arguments.length,l=new Array(a>1?a-1:0),d=1;d<a;d++)l[d-1]=arguments[d];ge("error",e,l)}}function ge(e,a,l){{var d=A.ReactDebugCurrentFrame,h=d.getStackAddendum();h!==""&&(a+="%s",l=l.concat([h]));var R=l.map(function(v){return String(v)});R.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,R)}}var oe=!1,we=!1,be=!1,me=!1,ye=!1,Z;Z=Symbol.for("react.module.reference");function ae(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===s||ye||e===i||e===g||e===p||me||e===O||oe||we||be||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function ie(e,a,l){var d=e.displayName;if(d)return d;var h=a.displayName||a.name||"";return h!==""?l+"("+h+")":l}function x(e){return e.displayName||"Context"}function z(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var a=e;return x(a)+".Consumer";case c:var l=e;return x(l._context)+".Provider";case f:return ie(e,e.render,"ForwardRef");case y:var d=e.displayName||null;return d!==null?d:z(e.type)||"Memo";case C:{var h=e,R=h._payload,v=h._init;try{return z(v(R))}catch(m){return null}}}return null}var D=Object.assign,G=0,H,se,ee,q,le,Y,K;function ze(){}ze.__reactDisabledLog=!0;function Ot(){{if(G===0){H=console.log,se=console.info,ee=console.warn,q=console.error,le=console.group,Y=console.groupCollapsed,K=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ze,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function Nt(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:H}),info:D({},e,{value:se}),warn:D({},e,{value:ee}),error:D({},e,{value:q}),group:D({},e,{value:le}),groupCollapsed:D({},e,{value:Y}),groupEnd:D({},e,{value:K})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Te=A.ReactCurrentDispatcher,je;function ve(e,a,l){{if(je===void 0)try{throw Error()}catch(h){var d=h.stack.trim().match(/\n( *(at )?)/);je=d&&d[1]||""}return`
10
- `+je+e}}var _e=!1,he;{var It=typeof WeakMap=="function"?WeakMap:Map;he=new It}function De(e,a){if(!e||_e)return"";{var l=he.get(e);if(l!==void 0)return l}var d;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=Te.current,Te.current=null,Ot();try{if(a){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(W){d=W}Reflect.construct(e,[],v)}else{try{v.call()}catch(W){d=W}e.call(v.prototype)}}else{try{throw Error()}catch(W){d=W}e()}}catch(W){if(W&&d&&typeof W.stack=="string"){for(var m=W.stack.split(`
11
- `),F=d.stack.split(`
12
- `),j=m.length-1,_=F.length-1;j>=1&&_>=0&&m[j]!==F[_];)_--;for(;j>=1&&_>=0;j--,_--)if(m[j]!==F[_]){if(j!==1||_!==1)do if(j--,_--,_<0||m[j]!==F[_]){var B=`
13
- `+m[j].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&he.set(e,B),B}while(j>=1&&_>=0);break}}}finally{_e=!1,Te.current=R,Nt(),Error.prepareStackTrace=h}var re=e?e.displayName||e.name:"",Ke=re?ve(re):"";return typeof e=="function"&&he.set(e,Ke),Ke}function Ft(e,a,l){return De(e,!1)}function Mt(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function xe(e,a,l){if(e==null)return"";if(typeof e=="function")return De(e,Mt(e));if(typeof e=="string")return ve(e);switch(e){case g:return ve("Suspense");case p:return ve("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ft(e.render);case y:return xe(e.type,a,l);case C:{var d=e,h=d._payload,R=d._init;try{return xe(R(h),a,l)}catch(v){}}}return""}var Re=Object.prototype.hasOwnProperty,Be={},Le=A.ReactDebugCurrentFrame;function Ce(e){if(e){var a=e._owner,l=xe(e.type,e._source,a?a.type:null);Le.setExtraStackFrame(l)}else Le.setExtraStackFrame(null)}function zt(e,a,l,d,h){{var R=Function.call.bind(Re);for(var v in e)if(R(e,v)){var m=void 0;try{if(typeof e[v]!="function"){var F=Error((d||"React class")+": "+l+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}m=e[v](a,v,d,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){m=j}m&&!(m instanceof Error)&&(Ce(h),E("%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).",d||"React class",l,v,typeof m),Ce(null)),m instanceof Error&&!(m.message in Be)&&(Be[m.message]=!0,Ce(h),E("Failed %s type: %s",l,m.message),Ce(null))}}}var Dt=Array.isArray;function Se(e){return Dt(e)}function Bt(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,l=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function Lt(e){try{return $e(e),!1}catch(a){return!0}}function $e(e){return""+e}function We(e){if(Lt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Bt(e)),$e(e)}var ce=A.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Ve,Ge,Pe;Pe={};function Wt(e){if(Re.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Vt(e){if(Re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Gt(e,a){if(typeof e.ref=="string"&&ce.current&&a&&ce.current.stateNode!==a){var l=z(ce.current.type);Pe[l]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',z(ce.current.type),e.ref),Pe[l]=!0)}}function qt(e,a){{var l=function(){Ve||(Ve=!0,E("%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)",a))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function Yt(e,a){{var l=function(){Ge||(Ge=!0,E("%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)",a))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var Ut=function(e,a,l,d,h,R,v){var m={$$typeof:n,type:e,key:a,ref:l,props:v,_owner:R};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Jt(e,a,l,d,h){{var R,v={},m=null,F=null;l!==void 0&&(We(l),m=""+l),Vt(a)&&(We(a.key),m=""+a.key),Wt(a)&&(F=a.ref,Gt(a,h));for(R in a)Re.call(a,R)&&!$t.hasOwnProperty(R)&&(v[R]=a[R]);if(e&&e.defaultProps){var j=e.defaultProps;for(R in j)v[R]===void 0&&(v[R]=j[R])}if(m||F){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&qt(v,_),F&&Yt(v,_)}return Ut(e,m,F,h,d,ce.current,v)}}var Ae=A.ReactCurrentOwner,qe=A.ReactDebugCurrentFrame;function te(e){if(e){var a=e._owner,l=xe(e.type,e._source,a?a.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var Oe;Oe=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ye(){{if(Ae.current){var e=z(Ae.current.type);if(e)return`
14
-
15
- Check the render method of \``+e+"`."}return""}}function Xt(e){{if(e!==void 0){var a=e.fileName.replace(/^.*[\\\/]/,""),l=e.lineNumber;return`
16
-
17
- Check your code at `+a+":"+l+"."}return""}}var Ue={};function Ht(e){{var a=Ye();if(!a){var l=typeof e=="string"?e:e.displayName||e.name;l&&(a=`
18
-
19
- Check the top-level render call using <`+l+">.")}return a}}function Je(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=Ht(a);if(Ue[l])return;Ue[l]=!0;var d="";e&&e._owner&&e._owner!==Ae.current&&(d=" It was passed a child from "+z(e._owner.type)+"."),te(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,d),te(null)}}function Xe(e,a){{if(typeof e!="object")return;if(Se(e))for(var l=0;l<e.length;l++){var d=e[l];Ne(d)&&Je(d,a)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var h=P(e);if(typeof h=="function"&&h!==e.entries)for(var R=h.call(e),v;!(v=R.next()).done;)Ne(v.value)&&Je(v.value,a)}}}function Kt(e){{var a=e.type;if(a==null||typeof a=="string")return;var l;if(typeof a=="function")l=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===f||a.$$typeof===y))l=a.propTypes;else return;if(l){var d=z(a);zt(l,e.props,"prop",d,e)}else if(a.PropTypes!==void 0&&!Oe){Oe=!0;var h=z(a);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qt(e){{for(var a=Object.keys(e.props),l=0;l<a.length;l++){var d=a[l];if(d!=="children"&&d!=="key"){te(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),te(null);break}}e.ref!==null&&(te(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}}function He(e,a,l,d,h,R){{var v=ae(e);if(!v){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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 F=Xt(h);F?m+=F:m+=Ye();var j;e===null?j="null":Se(e)?j="array":e!==void 0&&e.$$typeof===n?(j="<"+(z(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,m)}var _=Jt(e,a,l,h,R);if(_==null)return _;if(v){var B=a.children;if(B!==void 0)if(d)if(Se(B)){for(var re=0;re<B.length;re++)Xe(B[re],e);Object.freeze&&Object.freeze(B)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Xe(B,e)}return e===o?Qt(_):Kt(_),_}}function Zt(e,a,l){return He(e,a,l,!0)}function er(e,a,l){return He(e,a,l,!1)}var tr=er,rr=Zt;ue.Fragment=o,ue.jsx=tr,ue.jsxs=rr}()),ue}var de={};/**
20
- * @license React
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */var nt;function lr(){if(nt)return de;nt=1;var t=$,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,g){var p,y={},C=null,O=null;g!==void 0&&(C=""+g),f.key!==void 0&&(C=""+f.key),f.ref!==void 0&&(O=f.ref);for(p in f)o.call(f,p)&&!s.hasOwnProperty(p)&&(y[p]=f[p]);if(u&&u.defaultProps)for(p in f=u.defaultProps,f)y[p]===void 0&&(y[p]=f[p]);return{$$typeof:n,type:u,key:C,ref:O,props:y,_owner:i.current}}return de.Fragment=r,de.jsx=c,de.jsxs=c,de}process.env.NODE_ENV==="production"?Ie.exports=lr():Ie.exports=sr();var b=Ie.exports;function dt(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=dt(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function S(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=dt(t))&&(o&&(o+=" "),o+=n);return o}const Me="-";function cr(t){const n=dr(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=t;function i(c){const u=c.split(Me);return u[0]===""&&u.length!==1&&u.shift(),ft(u,n)||ur(c)}function s(c,u){const f=r[c]||[];return u&&o[c]?[...f,...o[c]]:f}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function ft(t,n){var c;if(t.length===0)return n.classGroupId;const r=t[0],o=n.nextPart.get(r),i=o?ft(t.slice(1),o):void 0;if(i)return i;if(n.validators.length===0)return;const s=t.join(Me);return(c=n.validators.find(({validator:u})=>u(s)))==null?void 0:c.classGroupId}const ot=/^\[(.+)\]$/;function ur(t){if(ot.test(t)){const n=ot.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}}function dr(t){const{theme:n,prefix:r}=t,o={nextPart:new Map,validators:[]};return pr(Object.entries(t.classGroups),r).forEach(([s,c])=>{Fe(c,o,s,n)}),o}function Fe(t,n,r,o){t.forEach(i=>{if(typeof i=="string"){const s=i===""?n:at(n,i);s.classGroupId=r;return}if(typeof i=="function"){if(fr(i)){Fe(i(o),n,r,o);return}n.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,c])=>{Fe(c,at(n,s),r,o)})})}function at(t,n){let r=t;return n.split(Me).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function fr(t){return t.isThemeGetter}function pr(t,n){return n?t.map(([r,o])=>{const i=o.map(s=>typeof s=="string"?n+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,u])=>[n+c,u])):s);return[r,i]}):t}function gr(t){if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;function i(s,c){r.set(s,c),n++,n>t&&(n=0,o=r,r=new Map)}return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return i(s,c),c},set(s,c){r.has(s)?r.set(s,c):i(s,c)}}}const pt="!";function wr(t){const n=t.separator,r=n.length===1,o=n[0],i=n.length;return function(c){const u=[];let f=0,g=0,p;for(let T=0;T<c.length;T++){let P=c[T];if(f===0){if(P===o&&(r||c.slice(T,T+i)===n)){u.push(c.slice(g,T)),g=T+i;continue}if(P==="/"){p=T;continue}}P==="["?f++:P==="]"&&f--}const y=u.length===0?c:c.substring(g),C=y.startsWith(pt),O=C?y.substring(1):y,M=p&&p>g?p-g:void 0;return{modifiers:u,hasImportantModifier:C,baseClassName:O,maybePostfixModifierPosition:M}}}function br(t){if(t.length<=1)return t;const n=[];let r=[];return t.forEach(o=>{o[0]==="["?(n.push(...r.sort(),o),r=[]):r.push(o)}),n.push(...r.sort()),n}function mr(t){return I({cache:gr(t.cacheSize),splitModifiers:wr(t)},cr(t))}const yr=/\s+/;function vr(t,n){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:i}=n,s=new Set;return t.trim().split(yr).map(c=>{const{modifiers:u,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}=r(c);let y=o(p?g.substring(0,p):g),C=!!p;if(!y){if(!p)return{isTailwindClass:!1,originalClassName:c};if(y=o(g),!y)return{isTailwindClass:!1,originalClassName:c};C=!1}const O=br(u).join(":");return{isTailwindClass:!0,modifierId:f?O+pt:O,classGroupId:y,originalClassName:c,hasPostfixModifier:C}}).reverse().filter(c=>{if(!c.isTailwindClass)return!0;const{modifierId:u,classGroupId:f,hasPostfixModifier:g}=c,p=u+f;return s.has(p)?!1:(s.add(p),i(f,g).forEach(y=>s.add(u+y)),!0)}).reverse().map(c=>c.originalClassName).join(" ")}function hr(){let t=0,n,r,o="";for(;t<arguments.length;)(n=arguments[t++])&&(r=gt(n))&&(o&&(o+=" "),o+=r);return o}function gt(t){if(typeof t=="string")return t;let n,r="";for(let o=0;o<t.length;o++)t[o]&&(n=gt(t[o]))&&(r&&(r+=" "),r+=n);return r}function xr(t,...n){let r,o,i,s=c;function c(f){const g=n.reduce((p,y)=>y(p),t());return r=mr(g),o=r.cache.get,i=r.cache.set,s=u,u(f)}function u(f){const g=o(f);if(g)return g;const p=vr(f,r);return i(f,p),p}return function(){return s(hr.apply(null,arguments))}}function k(t){const n=r=>r[t]||[];return n.isThemeGetter=!0,n}const wt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rr=/^\d+\/\d+$/,Cr=new Set(["px","full","screen"]),Er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_r=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function V(t){return Q(t)||Cr.has(t)||Rr.test(t)}function U(t){return ne(t,"length",Mr)}function Q(t){return!!t&&!Number.isNaN(Number(t))}function ke(t){return ne(t,"number",Q)}function fe(t){return!!t&&Number.isInteger(Number(t))}function Sr(t){return t.endsWith("%")&&Q(t.slice(0,-1))}function w(t){return wt.test(t)}function J(t){return Er.test(t)}const Pr=new Set(["length","size","percentage"]);function Ar(t){return ne(t,Pr,bt)}function Or(t){return ne(t,"position",bt)}const Nr=new Set(["image","url"]);function Ir(t){return ne(t,Nr,Dr)}function Fr(t){return ne(t,"",zr)}function pe(){return!0}function ne(t,n,r){const o=wt.exec(t);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):r(o[2]):!1}function Mr(t){return kr.test(t)&&!Tr.test(t)}function bt(){return!1}function zr(t){return jr.test(t)}function Dr(t){return _r.test(t)}function Br(){const t=k("colors"),n=k("spacing"),r=k("blur"),o=k("brightness"),i=k("borderColor"),s=k("borderRadius"),c=k("borderSpacing"),u=k("borderWidth"),f=k("contrast"),g=k("grayscale"),p=k("hueRotate"),y=k("invert"),C=k("gap"),O=k("gradientColorStops"),M=k("gradientColorStopPositions"),T=k("inset"),P=k("margin"),A=k("opacity"),E=k("padding"),ge=k("saturate"),oe=k("scale"),we=k("sepia"),be=k("skew"),me=k("space"),ye=k("translate"),Z=()=>["auto","contain","none"],ae=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",w,n],x=()=>[w,n],z=()=>["",V,U],D=()=>["auto",Q,w],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],ee=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",w],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Q,ke],K=()=>[Q,w];return{cacheSize:500,separator:":",theme:{colors:[pe],spacing:[V,U],blur:["none","",J,w],brightness:Y(),borderColor:[t],borderRadius:["none","","full",J,w],borderSpacing:x(),borderWidth:z(),contrast:Y(),grayscale:q(),hueRotate:K(),invert:q(),gap:x(),gradientColorStops:[t],gradientColorStopPositions:[Sr,U],inset:ie(),margin:ie(),opacity:Y(),padding:x(),saturate:Y(),scale:Y(),sepia:q(),skew:K(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),w]}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fe,w]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",w]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",fe,w]}],"grid-cols":[{"grid-cols":[pe]}],"col-start-end":[{col:["auto",{span:["full",fe,w]},w]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[pe]}],"row-start-end":[{row:["auto",{span:[fe,w]},w]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[me]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[me]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",w,n]}],"min-w":[{"min-w":[w,n,"min","max","fit"]}],"max-w":[{"max-w":[w,n,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[w,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[w,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[w,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[w,n,"auto","min","max","fit"]}],"font-size":[{text:["base",J,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ke]}],"font-family":[{font:[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",w]}],"line-clamp":[{"line-clamp":["none",Q,ke]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",V,w]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",V,U]}],"underline-offset":[{"underline-offset":["auto",V,w]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Or]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ar]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ir]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[V,w]}],"outline-w":[{outline:[V,U]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[V,U]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",J,Fr]}],"shadow-color":[{shadow:[pe]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":se()}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",J,w]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[y]}],saturate:[{saturate:[ge]}],sepia:[{sepia:[we]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[ge]}],"backdrop-sepia":[{"backdrop-sepia":[we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",w]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[oe]}],"scale-x":[{"scale-x":[oe]}],"scale-y":[{"scale-y":[oe]}],rotate:[{rotate:[fe,w]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[be]}],"skew-y":[{"skew-y":[be]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",w]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[V,U,ke]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const N=xr(Br),it={primary:"tw-bg-Background-accentEggplant-100 tw-text-Text-textPrimaryDark tw-rounded-sm hover:tw-text-Text-textPrimaryDark hover:tw-bg-Background-accentEggplant-highlight active:tw-bg-Background-accentEggplant-darkened focus:tw-bg-Background-accentEggplant-100 focus:tw-border focus:tw-border-white disabled:tw-bg-Background-accentEggplant-20",secondary:"tw-text-Text-secondary tw-rounded-sm tw-border tw-border-Fills-secondary hover:tw-text-black hover:tw-border hover:tw-border-Fills-black active:tw-text-black active:tw-border active:tw-border-Fills-black focus:tw-bg-Background-accentEggplant-5 focus:tw-text-accentEggplant-100 focus:tw-border focus:tw-border-Background-accentEggplant-100 disabled:tw-border disabled:tw-border-Fills-quadrutery disabled:tw-text-Text-tertiary",tertiary:"tw-text-Text-secondary tw-rounded-sm hover:tw-bg-Fills-quintiary active:tw-bg-Fills-quintiary focus:tw-bg-Fills-quadrutery disabled:tw-text-Fills-quadrutery disabled:tw-bg-Fills-quintiary",quaternary:"tw-text-accentEggplant-100 tw-rounded-sm hover:tw-bg-Background-accentEggplant-5 active:tw-bg-Background-accentEggplant-5 focus:tw-bg-Background-accentEggplant-100 focus:tw-text-Text-textPrimaryDark disabled:tw-text-Background-accentEggplant-20",small:"tw-py-space075 tw-px-space400",large:"tw-py-space150 tw-px-space400"},mt=$.forwardRef((c,s)=>{var u=c,{color:t="primary",size:n="small",disabled:r=!1,className:o}=u,i=L(u,["color","size","disabled","className"]);return b.jsx("button",I({ref:s,disabled:r,className:N(S(it[t],it[n],o))},i))});mt.displayName="Button";const st={primary:"tw-bg-Text-textSecondaryPlusDark tw-placeholder-Fills-quadrutery tw-text-Text-primary MediumBodyRegular tw-border tw-border-Fills-terciary tw-rounded-sm hover:tw-border-Fills-secondary active:tw-text-Text-primary active:tw-border-Text-primary focus:tw-border-Text-primary focus:tw-outline-none tw-disabled:bg-Fills-quintiary tw-px-[12px] tw-pt-[8px] tw-pb-[7px]",primaryRounded:"tw-bg-Text-textSecondaryPlusDark tw-placeholder-Fills-quadrutery tw-text-Text-primary MediumBodyRegular tw-border tw-border-Fills-terciary tw-rounded-sm hover:tw-border-Fills-secondary active:tw-text-Text-primary active:tw-border-Text-primary focus:tw-border-Text-primary focus:tw-outline-none tw-disabled:bg-Fills-quintiary tw-px-[12px] tw-pt-[8px] tw-pb-[7px]",success:"tw-bg-Text-textSecondaryPlusDark tw-placeholder-Fills-quadrutery tw-text-Text-primary MediumBodyRegular tw-border tw-border-Fills-terciary tw-rounded-sm hover:tw-border-Fills-secondary active:tw-text-Text-primary active:tw-border-Text-primary focus:tw-border-Text-primary focus:tw-outline-none tw-disabled:bg-Fills-quintiary tw-px-[12px] tw-pt-[8px] tw-pb-[7px]",error:"tw-bg-Text-textSecondaryPlusDark tw-placeholder-Fills-quadrutery tw-text-Text-primary MediumBodyRegular tw-border tw-border-System-red tw-rounded-sm active:tw-text-Text-primary focus:tw-outline-none tw-disabled:bg-Fills-quintiary tw-px-[12px] tw-pt-[8px] tw-pb-[7px]",errorRounded:"tw-bg-Text-textSecondaryPlusDark tw-placeholder-Fills-quadrutery tw-text-Text-primary MediumBodyRegular tw-border tw-border-System-red tw-rounded-sm active:tw-text-Text-primary focus:tw-outline-none tw-disabled:bg-Fills-quintiary tw-px-[12px] tw-pt-[8px] tw-pb-[7px]"},yt=$.forwardRef((f,u)=>{var g=f,{color:t="primary",disabled:n=!1,textarea:r=!1,label:o,caption:i,className:s}=g,c=L(g,["color","disabled","textarea","label","caption","className"]);return r?b.jsx("textarea",I({disabled:n,className:N(S(st[t],s))},c)):b.jsxs("div",{className:"tw-flex tw-flex-col tw-items-start tw-w-full",children:[o&&b.jsx("label",{className:"MediumSubheadRegular tw-mb-space075",children:o}),b.jsx("input",I({ref:u,disabled:n,className:N(S(st[t],s))},c)),i&&b.jsx("caption",{className:"MediumCaption1Regular tw-font-normal",children:i})]})});yt.displayName="Input";function vt(t){var n,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=vt(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Lr(){for(var t,n,r=0,o="";r<arguments.length;)(t=arguments[r++])&&(n=vt(t))&&(o&&(o+=" "),o+=n);return o}const lt=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,ct=Lr,ht=(t,n)=>r=>{var o;if((n==null?void 0:n.variants)==null)return ct(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=n,c=Object.keys(i).map(g=>{const p=r==null?void 0:r[g],y=s==null?void 0:s[g];if(p===null)return null;const C=lt(p)||lt(y);return i[g][C]}),u=r&&Object.entries(r).reduce((g,p)=>{let[y,C]=p;return C===void 0||(g[y]=C),g},{}),f=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((g,p)=>{let M=p,{class:y,className:C}=M,O=L(M,["class","className"]);return Object.entries(O).every(T=>{let[P,A]=T;return Array.isArray(A)?A.includes(I(I({},s),u)[P]):I(I({},s),u)[P]===A})?[...g,y,C]:g},[]);return ct(t,c,f,r==null?void 0:r.class,r==null?void 0:r.className)},$r=ht("tw-border tw-text-text-primary",{variants:{cardType:{default:"tw-shadow-none",shadowCard:"tw-shadow-card"}},defaultVariants:{cardType:"default"}}),xt=X.forwardRef((i,o)=>{var s=i,{className:t,cardType:n}=s,r=L(s,["className","cardType"]);return b.jsx("div",I({ref:o,className:N(S($r({cardType:n,className:t}),"tw-rounded"),t)},r))});xt.displayName="Card";const Rt=X.forwardRef((o,r)=>{var i=o,{className:t}=i,n=L(i,["className"]);return b.jsx("div",I({ref:r,className:N(S("tw-flex tw-flex-col tw-pt-space300 tw-pb-space200 tw-px-space300",t))},n))});Rt.displayName="CardHeader";const Ct=X.forwardRef((o,r)=>{var i=o,{className:t}=i,n=L(i,["className"]);return b.jsx("div",I({ref:r,className:N(S("tw-font-medium",t))},n))});Ct.displayName="Title";const Et=X.forwardRef((o,r)=>{var i=o,{className:t}=i,n=L(i,["className"]);return b.jsx("div",I({ref:r,className:N(S("tw-font-regular",t))},n))});Et.displayName="Description";const kt=X.forwardRef((o,r)=>{var i=o,{className:t}=i,n=L(i,["className"]);return b.jsx("div",I({ref:r,className:N(S("tw-pb-space300 tw-px-space300 ",t))},n))});kt.displayName="Content";const Tt=X.forwardRef((o,r)=>{var i=o,{className:t}=i,n=L(i,["className"]);return b.jsx("div",I({ref:r,className:N(S("tw-pb-space300 tw-px-space300",t))},n))});Tt.displayName="Footer";const Wr=ht("tw-grid zero:tw-grid-cols-4 tw-gap-x-8 mobile:tw-grid-cols-4 tablet:tw-grid-cols-6 desktop:tw-grid-cols-12 wide_desktop:tw-grid-cols-12 tw-w-full",{variants:{display:{grid:"tw-grid",inlineGrid:"tw-inline-grid"},gap:{gap0:"tw-gap0",gap100:"tw-gap-100",gap150:"tw-gap-150",gap200:"tw-gap-200",gap300:"tw-gap-300",gap400:"tw-gap-400",gap600:"tw-gap-600",gap800:"tw-gap-800",gap1000:"tw-gap-1000",gap1200:"tw-gap-1200",gap1600:"tw-gap-1600",gap2000:"tw-gap-2000"},gapX:{gap0:"tw-gap-x-0",gap100:"tw-gap-x-100",gap150:"tw-gap-x-150",gap200:"tw-gap-x-200",gap300:"tw-gap-x-300",gap400:"tw-gap-x-400",gap600:"tw-gap-x-600",gap800:"tw-gap-x-800",gap1000:"tw-gap-x-1000",gap1200:"tw-gap-x-1200",gap1600:"tw-gap-x-1600",gap2000:"tw-gap-x-2000"},gapY:{gap0:"tw-gap-y-0",gap100:"tw-gap-y-100",gap150:"tw-gap-y-150",gap200:"tw-gap-y-200",gap300:"tw-gap-y-300",gap400:"tw-gap-y-400",gap600:"tw-gap-y-600",gap800:"tw-gap-y-800",gap1000:"tw-gap-y-1000",gap1200:"tw-gap-y-1200",gap1600:"tw-gap-y-1600",gap2000:"tw-gap-y-2000"},justifyContent:{normal:"tw-justify-normal",start:"tw-justify-start",end:"tw-justify-end",center:"tw-justify-center",between:"tw-justify-between",around:"tw-justify-around",evenly:"tw-justify-evenly",stretch:"tw-justify-stretch"},justifyItems:{start:"tw-justify-items-start",end:"tw-justify-items-end",center:"tw-justify-items-center",stretch:"tw-justify-items-stretch"},alignContent:{normal:"tw-content-normal",center:"tw-content-center",start:"tw-content-start",end:"tw-content-end",between:"tw-content-between",around:"tw-content-around",evenly:"tw-content-evenly",baseline:"tw-content-baseline",stretch:"tw-content-stretch"},alignItems:{start:"tw-items-start",end:"tw-items-end",center:"tw-items-center",baseline:"tw-items-baseline",stretch:"tw-items-stretch"},placeContent:{center:"tw-place-content-center",start:"tw-place-content-start",end:"tw-place-content-end",between:"tw-place-content-between",around:"tw-place-content-around",evenly:"tw-place-content-evenly",baseline:"tw-place-content-baseline",stretch:"tw-place-content-stretch"},placeItems:{start:"tw-place-items-start",end:"tw-place-items-end",center:"tw-place-items-center",baseline:"tw-place-items-baseline",stretch:"tw-place-items-stretch"}}}),jt=X.forwardRef((i,o)=>{var s=i,{className:t,children:n}=s,r=L(s,["className","children"]);return b.jsx("div",tt(I({className:N(S(Wr({display:r==null?void 0:r.display,gap:r==null?void 0:r.gap,gapX:r==null?void 0:r.gapX,gapY:r==null?void 0:r.gapY,justifyContent:r==null?void 0:r.justifyContent,justifyItems:r==null?void 0:r.justifyItems,alignContent:r==null?void 0:r.alignContent,alignItems:r==null?void 0:r.alignItems,placeContent:r==null?void 0:r.placeContent,placeItems:r==null?void 0:r.placeItems,className:t}))),ref:o},r),{children:n}))});jt.displayName="Grid";const ut=t=>{let n="";switch(t){case"STANDARD":case"STANDARD_LINE_SEPARATED":n="tw-font-medium tw-text-Text-primary";break;case"DISCOUNT":n="tw-font-normal tw-text-teal-400";break;case"FEE":case"TAX":n="tw-font-medium tw-text-Text-secondary";break}return n},_t=X.forwardRef(({className:t,items:n},r)=>b.jsx(b.Fragment,{children:b.jsx("div",{className:N(S(t,"tw-w-full tw-flex tw-flex-col")),ref:r,children:n.length>0&&n.map((o,i)=>b.jsxs("div",{children:[o.type==="STANDARD_LINE_SEPARATED"&&b.jsx("hr",{className:"tw-mt-3 tw-mb-1"}),b.jsxs("div",{className:S("tw-flex tw-flex-row tw-justify-between",i>0&&"tw-mt-2",i!==n.length&&o.type==="STANDARD_LINE_SEPARATED"&&"tw-mb-1"),children:[b.jsx("span",{className:S("tw-text-xSmallCallout tablet:tw-text-mediumCallout tw-me-3",ut(o.type)),children:o.display_name}),b.jsx("span",{className:S("tw-text-xSmallCallout tablet:tw-text-mediumCallout",ut(o.type)),children:o.currency_converted_amount})]})]},`BookingQuoteLineItemType-${i}`))})}));_t.displayName="Booking_Quote_Card";const Vr="data:image/svg+xml,%3csvg%20width='14'%20height='13'%20viewBox='0%200%2014%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23cr9x6s95oa)'%3e%3cpath%20d='M4.222%206.738c0%20.13.05.246.152.345l4.302%204.057a.475.475%200%200%200%20.353.141c.282%200%20.5-.204.5-.476a.483.483%200%200%200-.147-.34l-3.95-3.727%203.95-3.727a.493.493%200%200%200%20.146-.34c0-.273-.217-.477-.499-.477a.492.492%200%200%200-.353.136L4.374%206.392a.455.455%200%200%200-.152.346z'%20fill='%23fff'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='cr9x6s95oa'%3e%3cpath%20fill='%23fff'%20transform='translate(.333%20.05)'%20d='M0%200h13.333v12.864H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Gr="data:image/svg+xml,%3csvg%20width='14'%20height='13'%20viewBox='0%200%2014%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.084%206.738a.46.46%200%200%200-.158-.346L5.63%202.33a.514.514%200%200%200-.358-.136.477.477%200%200%200-.353.817l3.95%203.727-3.95%203.727a.477.477%200%200%200%20.353.817c.14%200%20.26-.048.358-.142l4.296-4.057a.47.47%200%200%200%20.158-.345z'%20fill='%23fff'/%3e%3c/svg%3e",St=$.forwardRef(({images:t})=>{const[n,r]=$.useState(0),o=()=>{r(s=>s===t.length-1?0:s+1)},i=()=>{r(s=>s===0?t.length-1:s-1)};return b.jsx(b.Fragment,{children:b.jsxs("div",{className:"tw-relative tw-rounded-[4px] tw-w-full",children:[t.length>1&&b.jsx("button",{className:"tw-absolute tw-z-10 tw-top-[50%] -tw-translate-y-1/2 tw-left-4 tw-w-6 tw-h-6 tw-text-white tw-rounded-sm tw-flex tw-justify-center tw-items-center tw-bg-[rgba(255,255,255,0.25)] backdrop-blur-sm",onClick:i,children:b.jsx("img",{src:Vr,alt:"prev"})}),b.jsx("div",{className:"picture tw-w-full tw-rounded-[4px]",style:{backgroundImage:`url(${t[n]})`}}),t.length>1&&b.jsx("button",{className:"tw-absolute tw-z-10 tw-top-[50%] -tw-translate-y-1/2 tw-right-4 tw-w-6 tw-h-6 tw-text-white tw-rounded-sm tw-flex tw-justify-center tw-items-center tw-bg-[rgba(255,255,255,0.25)] backdrop-blur-sm",onClick:o,children:b.jsx("img",{src:Gr,alt:"next"})}),t.length>1&&b.jsx("ul",{className:"tw-absolute tw-flex tw-flex-row tw-bottom-1 tw-left-1/2 -tw-translate-x-1/2 tw-z-10",children:t.map((s,c)=>b.jsx("li",{"aria-description":s,className:N(S("tw-w-[5px] tw-h-[4px] tw-block tw-z-10 tw-mx-[2.5px] tw-rounded-[1px]",c!==n&&"tw-bg-[rgba(255,255,255,0.5)]",c===n&&"tw-bg-[rgba(255,255,255,0.8)]"))},c))})]})})});St.displayName="Image_Carousel";const Pt=$.forwardRef(({title:t,content:n,expandIcon:r,collapseIcon:o,accordionClass:i,accordionHeaderClass:s,accordionTitleClass:c,accordionContentClass:u,isEnabled:f=!0,isExpanded:g=!0},p)=>{const[y,C]=$.useState(g),O=()=>{f&&C(!y)};return b.jsxs("div",{className:N(S("silkhaus-accordion",i)),ref:p,children:[b.jsxs("div",{className:N(S("silkhaus-accordion-header tw-flex tw-flex-row tw-justify-between tw-items-center",s,!f&&"tw-cursor-not-allowed",f&&"tw-cursor-pointer")),onClick:O,children:[b.jsx("div",{className:N(S(c)),children:t}),y?o||"-":r||"+"]}),y&&b.jsx("div",{className:N(S("silkhaus-accordion-content",u)),children:n})]})});Pt.displayName="Accordion";function qr(...t){return N(S(t))}const At=$.forwardRef(({checked:t=!1,onChange:n,disabled:r=!1,htmlId:o="wa"},i)=>b.jsxs("label",{className:qr("switch",r&&"disabled"),htmlFor:o,children:[b.jsx("input",{id:o,type:"checkbox",checked:t,onChange:n,ref:i,disabled:r}),b.jsx("span",{className:"slider round",style:{opacity:r?.5:1,cursor:r?"not-allowed":"pointer"}})]}));At.displayName="Switch";exports.Accordion=Pt;exports.BookingQuoteCard=_t;exports.Button=mt;exports.Card=xt;exports.CardContent=kt;exports.CardDescription=Et;exports.CardFooter=Tt;exports.CardHeader=Rt;exports.CardTitle=Ct;exports.Grid=jt;exports.ImageCarousel=St;exports.Input=yt;exports.Switch=At;
package/dist/index.d.ts DELETED
@@ -1,112 +0,0 @@
1
- import { ClassProp } from 'class-variance-authority/types';
2
- import { default as React_2 } from 'react';
3
- import * as React_3 from 'react';
4
- import { ReactNode } from 'react';
5
- import { VariantProps } from 'class-variance-authority';
6
-
7
- export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
8
-
9
- export declare interface AccordionProps {
10
- title: string | ReactNode;
11
- content: ReactNode;
12
- expandIcon?: string | ReactNode;
13
- collapseIcon?: string | ReactNode;
14
- accordionClass?: string | undefined;
15
- accordionHeaderClass?: string | undefined;
16
- accordionTitleClass?: string | undefined;
17
- accordionContentClass?: string | undefined;
18
- isEnabled?: boolean;
19
- isExpanded?: boolean;
20
- }
21
-
22
- export declare const BookingQuoteCard: React_3.ForwardRefExoticComponent<BookingQuoteCardProps & React_3.RefAttributes<HTMLDivElement>>;
23
-
24
- export declare interface BookingQuoteCardProps extends React_3.HTMLAttributes<HTMLDivElement> {
25
- items: BookingQuoteLineItemType[];
26
- }
27
-
28
- export declare interface BookingQuoteLineItemType {
29
- key_name: string;
30
- aed_amount: number;
31
- display_name: string;
32
- currency_converted_amount: string;
33
- type: string;
34
- }
35
-
36
- export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
37
-
38
- export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
39
- color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
40
- size?: 'small' | 'large';
41
- disabled?: true | false;
42
- }
43
-
44
- export declare const Card: React_3.ForwardRefExoticComponent<CardProps & React_3.RefAttributes<HTMLDivElement>>;
45
-
46
- export declare const CardContent: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
47
-
48
- export declare const CardDescription: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
49
-
50
- export declare const CardFooter: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
51
-
52
- export declare const CardHeader: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
53
-
54
- declare interface CardProps extends React_3.HTMLAttributes<HTMLDivElement>, CardVariantProps {
55
- asChild?: boolean;
56
- as?: string;
57
- }
58
-
59
- export declare const CardTitle: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
60
-
61
- export declare type CardVariantProps = VariantProps<typeof cardVariants>;
62
-
63
- declare const cardVariants: (props?: ({
64
- cardType?: "default" | "shadowCard" | null | undefined;
65
- } & ClassProp) | undefined) => string;
66
-
67
- export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
68
-
69
- export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
70
- asChild?: boolean;
71
- }
72
-
73
- export declare type GridVariantProps = VariantProps<typeof gridVariants>;
74
-
75
- declare const gridVariants: (props?: ({
76
- display?: "grid" | "inlineGrid" | null | undefined;
77
- gap?: "gap0" | "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
78
- gapX?: "gap0" | "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
79
- gapY?: "gap0" | "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
80
- justifyContent?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | null | undefined;
81
- justifyItems?: "start" | "end" | "center" | "stretch" | null | undefined;
82
- alignContent?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | "baseline" | null | undefined;
83
- alignItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
84
- placeContent?: "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | "baseline" | null | undefined;
85
- placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
86
- } & ClassProp) | undefined) => string;
87
-
88
- export declare const ImageCarousel: React_2.ForwardRefExoticComponent<ImageCarouselProps & React_2.RefAttributes<HTMLDivElement>>;
89
-
90
- export declare interface ImageCarouselProps extends React_2.HTMLAttributes<HTMLDivElement> {
91
- images: string[];
92
- }
93
-
94
- export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
95
-
96
- export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
97
- textarea?: true | false | undefined;
98
- label?: string | undefined;
99
- caption?: string | undefined;
100
- color: 'primary' | 'success' | 'error' | 'primaryRounded' | 'errorRounded';
101
- }
102
-
103
- export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
104
-
105
- export declare interface SwitchProps {
106
- checked: boolean;
107
- onChange: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
108
- disabled?: boolean;
109
- htmlId?: string;
110
- }
111
-
112
- export { }