quix-ui 1.1.3 → 1.1.4

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.
@@ -1,14 +1,52 @@
1
- "use strict";const Pe=require("react");var V={exports:{}},k={};var Te;function fr(){if(Te)return k;Te=1;var M=Pe,C=Symbol.for("react.element"),U=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,F=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function w(_,f,T){var p,y={},b=null,I=null;T!==void 0&&(b=""+T),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)m.call(f,p)&&!A.hasOwnProperty(p)&&(y[p]=f[p]);if(_&&_.defaultProps)for(p in f=_.defaultProps,f)y[p]===void 0&&(y[p]=f[p]);return{$$typeof:C,type:_,key:b,ref:I,props:y,_owner:F.current}}return k.Fragment=U,k.jsx=w,k.jsxs=w,k}var D={};var Oe;function cr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var M=Pe,C=Symbol.for("react.element"),U=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),H=Symbol.iterator,Ce="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var r=H&&e[H]||e[Ce];return typeof r=="function"?r:null}var O=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=O.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var xe=!1,ke=!1,De=!1,Fe=!1,Ae=!1,Z;Z=Symbol.for("react.module.reference");function Ie(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===A||Ae||e===F||e===T||e===p||Fe||e===I||xe||ke||De||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===_||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function $e(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function E(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case U:return"Portal";case A:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return Q(r)+".Consumer";case w:var t=e;return Q(t._context)+".Provider";case f:return $e(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:E(e.type)||"Memo";case b:{var o=e,u=o._payload,i=o._init;try{return E(i(u))}catch{return null}}}return null}var h=Object.assign,j=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function We(){{if(j===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function Ye(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:ee}),info:h({},e,{value:re}),warn:h({},e,{value:te}),error:h({},e,{value:ne}),group:h({},e,{value:ae}),groupCollapsed:h({},e,{value:ie}),groupEnd:h({},e,{value:oe})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=O.ReactCurrentDispatcher,q;function $(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
2
- `+q+e}}var J=!1,W;{var Le=typeof WeakMap=="function"?WeakMap:Map;W=new Le}function se(e,r){if(!e||J)return"";{var t=W.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=N.current,N.current=null,We();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(d){n=d}Reflect.construct(e,[],i)}else{try{i.call()}catch(d){n=d}e.call(i.prototype)}}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
3
- `),v=n.stack.split(`
4
- `),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var g=`
5
- `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,g),g}while(s>=1&&l>=0);break}}}finally{J=!1,N.current=u,Ye(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",R=P?$(P):"";return typeof e=="function"&&W.set(e,R),R}function Ve(e,r,t){return se(e,!1)}function Me(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Y(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Me(e));if(typeof e=="string")return $(e);switch(e){case T:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ve(e.render);case y:return Y(e.type,r,t);case b:{var n=e,o=n._payload,u=n._init;try{return Y(u(o),r,t)}catch{}}}return""}var x=Object.prototype.hasOwnProperty,le={},fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}function Ue(e,r,t,n,o){{var u=Function.call.bind(x);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in le)&&(le[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ne=Array.isArray;function B(e){return Ne(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Je(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),ce(e)}var de=O.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},pe,ge;function Ke(e){if(x.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ze(e,r){typeof e.ref=="string"&&de.current}function Xe(e,r){{var t=function(){pe||(pe=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function He(e,r){{var t=function(){ge||(ge=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ze=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Qe(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Ge(r)&&(ve(r.key),a=""+r.key),Ke(r)&&(v=r.ref,ze(r,o));for(u in r)x.call(r,u)&&!Be.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(i,l),v&&He(i,l)}return Ze(e,a,v,o,n,de.current,i)}}var K=O.ReactCurrentOwner,ye=O.ReactDebugCurrentFrame;function S(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var G;G=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function Ee(){{if(K.current){var e=E(K.current.type);if(e)return`
1
+ "use strict"; const Pe = require("react"); var V = { exports: {} }, k = {}; var Te; function fr() { if (Te) return k; Te = 1; var M = Pe, C = Symbol.for("react.element"), U = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 }; function w(_, f, T) { var p, y = {}, b = null, I = null; T !== void 0 && (b = "" + T), f.key !== void 0 && (b = "" + f.key), f.ref !== void 0 && (I = f.ref); for (p in f) m.call(f, p) && !A.hasOwnProperty(p) && (y[p] = f[p]); if (_ && _.defaultProps) for (p in f = _.defaultProps, f) y[p] === void 0 && (y[p] = f[p]); return { $$typeof: C, type: _, key: b, ref: I, props: y, _owner: F.current } } return k.Fragment = U, k.jsx = w, k.jsxs = w, k } var D = {}; var Oe; function cr() {
2
+ return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function () {
3
+ var M = Pe, C = Symbol.for("react.element"), U = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator"; function we(e) { if (e === null || typeof e != "object") return null; var r = H && e[H] || e[Ce]; return typeof r == "function" ? r : null } var O = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function c(e) { { for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)t[n - 1] = arguments[n]; je("error", e, t) } } function je(e, r, t) { { var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum(); o !== "" && (r += "%s", t = t.concat([o])); var u = t.map(function (i) { return String(i) }); u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u) } } var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z; Z = Symbol.for("react.module.reference"); function Ie(e) { return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || Ae || e === F || e === T || e === p || Fe || e === I || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === y || e.$$typeof === w || e.$$typeof === _ || e.$$typeof === f || e.$$typeof === Z || e.getModuleId !== void 0)) } function $e(e, r, t) { var n = e.displayName; if (n) return n; var o = r.displayName || r.name || ""; return o !== "" ? t + "(" + o + ")" : t } function Q(e) { return e.displayName || "Context" } function E(e) { if (e == null) return null; if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case m: return "Fragment"; case U: return "Portal"; case A: return "Profiler"; case F: return "StrictMode"; case T: return "Suspense"; case p: return "SuspenseList" }if (typeof e == "object") switch (e.$$typeof) { case _: var r = e; return Q(r) + ".Consumer"; case w: var t = e; return Q(t._context) + ".Provider"; case f: return $e(e, e.render, "ForwardRef"); case y: var n = e.displayName || null; return n !== null ? n : E(e.type) || "Memo"; case b: { var o = e, u = o._payload, i = o._init; try { return E(i(u)) } catch { return null } } }return null } var h = Object.assign, j = 0, ee, re, te, ne, ae, ie, oe; function ue() { } ue.__reactDisabledLog = !0; function We() { { if (j === 0) { ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd; var e = { configurable: !0, enumerable: !0, value: ue, writable: !0 }; Object.defineProperties(console, { info: e, log: e, warn: e, error: e, group: e, groupCollapsed: e, groupEnd: e }) } j++ } } function Ye() { { if (j--, j === 0) { var e = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: h({}, e, { value: ee }), info: h({}, e, { value: re }), warn: h({}, e, { value: te }), error: h({}, e, { value: ne }), group: h({}, e, { value: ae }), groupCollapsed: h({}, e, { value: ie }), groupEnd: h({}, e, { value: oe }) }) } j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.") } } var N = O.ReactCurrentDispatcher, q; function $(e, r, t) {
4
+ {
5
+ if (q === void 0) try { throw Error() } catch (o) { var n = o.stack.trim().match(/\n( *(at )?)/); q = n && n[1] || "" } return `
6
+ `+ q + e
7
+ }
8
+ } var J = !1, W; { var Le = typeof WeakMap == "function" ? WeakMap : Map; W = new Le } function se(e, r) {
9
+ if (!e || J) return ""; { var t = W.get(e); if (t !== void 0) return t } var n; J = !0; var o = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var u; u = N.current, N.current = null, We(); try { if (r) { var i = function () { throw Error() }; if (Object.defineProperty(i.prototype, "props", { set: function () { throw Error() } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(i, []) } catch (d) { n = d } Reflect.construct(e, [], i) } else { try { i.call() } catch (d) { n = d } e.call(i.prototype) } } else { try { throw Error() } catch (d) { n = d } e() } } catch (d) {
10
+ if (d && n && typeof d.stack == "string") {
11
+ for (var a = d.stack.split(`
12
+ `), v = n.stack.split(`
13
+ `), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l];)l--; for (; s >= 1 && l >= 0; s--, l--)if (a[s] !== v[l]) {
14
+ if (s !== 1 || l !== 1) do if (s--, l--, l < 0 || a[s] !== v[l]) {
15
+ var g = `
16
+ `+ a[s].replace(" at new ", " at "); return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, g), g
17
+ } while (s >= 1 && l >= 0); break
18
+ }
19
+ }
20
+ } finally { J = !1, N.current = u, Ye(), Error.prepareStackTrace = o } var P = e ? e.displayName || e.name : "", R = P ? $(P) : ""; return typeof e == "function" && W.set(e, R), R
21
+ } function Ve(e, r, t) { return se(e, !1) } function Me(e) { var r = e.prototype; return !!(r && r.isReactComponent) } function Y(e, r, t) { if (e == null) return ""; if (typeof e == "function") return se(e, Me(e)); if (typeof e == "string") return $(e); switch (e) { case T: return $("Suspense"); case p: return $("SuspenseList") }if (typeof e == "object") switch (e.$$typeof) { case f: return Ve(e.render); case y: return Y(e.type, r, t); case b: { var n = e, o = n._payload, u = n._init; try { return Y(u(o), r, t) } catch { } } }return "" } var x = Object.prototype.hasOwnProperty, le = {}, fe = O.ReactDebugCurrentFrame; function L(e) { if (e) { var r = e._owner, t = Y(e.type, e._source, r ? r.type : null); fe.setExtraStackFrame(t) } else fe.setExtraStackFrame(null) } function Ue(e, r, t, n, o) { { var u = Function.call.bind(x); for (var i in e) if (u(e, i)) { var a = void 0; try { if (typeof e[i] != "function") { var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw v.name = "Invariant Violation", v } a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED") } catch (s) { a = s } a && !(a instanceof Error) && (L(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null)) } } } var Ne = Array.isArray; function B(e) { return Ne(e) } function qe(e) { { var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; return t } } function Je(e) { try { return ce(e), !1 } catch { return !0 } } function ce(e) { return "" + e } function ve(e) { if (Je(e)) return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ce(e) } var de = O.ReactCurrentOwner, Be = { key: !0, ref: !0, __self: !0, __source: !0 }, pe, ge; function Ke(e) { if (x.call(e, "ref")) { var r = Object.getOwnPropertyDescriptor(e, "ref").get; if (r && r.isReactWarning) return !1 } return e.ref !== void 0 } function Ge(e) { if (x.call(e, "key")) { var r = Object.getOwnPropertyDescriptor(e, "key").get; if (r && r.isReactWarning) return !1 } return e.key !== void 0 } function ze(e, r) { typeof e.ref == "string" && de.current } function Xe(e, r) { { var t = function () { pe || (pe = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)) }; t.isReactWarning = !0, Object.defineProperty(e, "key", { get: t, configurable: !0 }) } } function He(e, r) { { var t = function () { ge || (ge = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)) }; t.isReactWarning = !0, Object.defineProperty(e, "ref", { get: t, configurable: !0 }) } } var Ze = function (e, r, t, n, o, u, i) { var a = { $$typeof: C, type: e, key: r, ref: t, props: i, _owner: u }; return a._store = {}, Object.defineProperty(a._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(a, "_self", { configurable: !1, enumerable: !1, writable: !1, value: n }), Object.defineProperty(a, "_source", { configurable: !1, enumerable: !1, writable: !1, value: o }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a }; function Qe(e, r, t, n, o) { { var u, i = {}, a = null, v = null; t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), Ke(r) && (v = r.ref, ze(r, o)); for (u in r) x.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]); if (e && e.defaultProps) { var s = e.defaultProps; for (u in s) i[u] === void 0 && (i[u] = s[u]) } if (a || v) { var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; a && Xe(i, l), v && He(i, l) } return Ze(e, a, v, o, n, de.current, i) } } var K = O.ReactCurrentOwner, ye = O.ReactDebugCurrentFrame; function S(e) { if (e) { var r = e._owner, t = Y(e.type, e._source, r ? r.type : null); ye.setExtraStackFrame(t) } else ye.setExtraStackFrame(null) } var G; G = !1; function z(e) { return typeof e == "object" && e !== null && e.$$typeof === C } function Ee() {
22
+ {
23
+ if (K.current) {
24
+ var e = E(K.current.type); if (e) return `
6
25
 
7
- Check the render method of \``+e+"`."}return""}}function er(e){return""}var _e={};function rr(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
+ Check the render method of \``+ e + "`."
27
+ } return ""
28
+ }
29
+ } function er(e) { return "" } var _e = {}; function rr(e) {
30
+ {
31
+ var r = Ee(); if (!r) {
32
+ var t = typeof e == "string" ? e : e.displayName || e.name; t && (r = `
8
33
 
9
- Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=rr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),S(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),S(null)}}function he(e,r){{if(typeof e!="object")return;if(B(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&be(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=we(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&be(i.value,r)}}}function tr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=E(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var o=E(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function nr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){S(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),S(null);break}}e.ref!==null&&(S(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),S(null))}}var Re={};function me(e,r,t,n,o,u){{var i=Ie(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=er();v?a+=v:a+=Ee();var s;e===null?s="null":B(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(E(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Qe(e,r,t,o,u);if(l==null)return l;if(i){var g=r.children;if(g!==void 0)if(n)if(B(g)){for(var P=0;P<g.length;P++)he(g[P],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(g,e)}if(x.call(r,"key")){var R=E(e),d=Object.keys(r).filter(function(lr){return lr!=="key"}),X=d.length>0?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}";if(!Re[R+X]){var sr=d.length>0?"{"+d.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
34
+ Check the top-level render call using <`+ t + ">.")
35
+ } return r
36
+ }
37
+ } function be(e, r) { { if (!e._store || e._store.validated || e.key != null) return; e._store.validated = !0; var t = rr(r); if (_e[t]) return; _e[t] = !0; var n = ""; e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null) } } function he(e, r) { { if (typeof e != "object") return; if (B(e)) for (var t = 0; t < e.length; t++) { var n = e[t]; z(n) && be(n, r) } else if (z(e)) e._store && (e._store.validated = !0); else if (e) { var o = we(e); if (typeof o == "function" && o !== e.entries) for (var u = o.call(e), i; !(i = u.next()).done;)z(i.value) && be(i.value, r) } } } function tr(e) { { var r = e.type; if (r == null || typeof r == "string") return; var t; if (typeof r == "function") t = r.propTypes; else if (typeof r == "object" && (r.$$typeof === f || r.$$typeof === y)) t = r.propTypes; else return; if (t) { var n = E(r); Ue(t, e.props, "prop", n, e) } else if (r.PropTypes !== void 0 && !G) { G = !0; var o = E(r); c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown") } typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.") } } function nr(e) { { for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { var n = r[t]; if (n !== "children" && n !== "key") { S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null); break } } e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null)) } } var Re = {}; function me(e, r, t, n, o, u) {
38
+ {
39
+ var i = Ie(e); if (!i) { var a = ""; (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var v = er(); v ? a += v : a += Ee(); var s; e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === C ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a) } var l = Qe(e, r, t, o, u); if (l == null) return l; if (i) { var g = r.children; if (g !== void 0) if (n) if (B(g)) { for (var P = 0; P < g.length; P++)he(g[P], e); Object.freeze && Object.freeze(g) } else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else he(g, e) } if (x.call(r, "key")) {
40
+ var R = E(e), d = Object.keys(r).filter(function (lr) { return lr !== "key" }), X = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!Re[R + X]) {
41
+ var sr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}"; c(`A props object containing a "key" prop is being spread into JSX:
10
42
  let props = %s;
11
43
  <%s {...props} />
12
44
  React keys must be passed directly to JSX without using spread:
13
45
  let props = %s;
14
- <%s key={someKey} {...props} />`,X,R,sr,R),Re[R+X]=!0}}return e===m?nr(l):tr(l),l}}function ar(e,r,t){return me(e,r,t,!0)}function ir(e,r,t){return me(e,r,t,!1)}var or=ir,ur=ar;D.Fragment=m,D.jsx=or,D.jsxs=ur})()),D}var Se;function vr(){return Se||(Se=1,process.env.NODE_ENV==="production"?V.exports=fr():V.exports=cr()),V.exports}vr();
46
+ <%s key={someKey} {...props} />`, X, R, sr, R), Re[R + X] = !0
47
+ }
48
+ } return e === m ? nr(l) : tr(l), l
49
+ }
50
+ } function ar(e, r, t) { return me(e, r, t, !0) } function ir(e, r, t) { return me(e, r, t, !1) } var or = ir, ur = ar; D.Fragment = m, D.jsx = or, D.jsxs = ur
51
+ })()), D
52
+ } var Se; function vr() { return Se || (Se = 1, process.env.NODE_ENV === "production" ? V.exports = fr() : V.exports = cr()), V.exports } vr();
@@ -0,0 +1,2 @@
1
+ import { ButtonsProps } from "./types";
2
+ export default function Buttons(props: ButtonsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,56 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ import Buttons from './Buttons';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Buttons;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ argTypes: {
11
+ backgroundColor: {
12
+ control: "color";
13
+ };
14
+ textColor: {
15
+ control: "color";
16
+ };
17
+ width: {
18
+ control: "number";
19
+ };
20
+ height: {
21
+ control: "number";
22
+ };
23
+ paddingX: {
24
+ control: "number";
25
+ };
26
+ paddingY: {
27
+ control: "number";
28
+ };
29
+ label: {
30
+ control: "text";
31
+ };
32
+ rounded: {
33
+ topLeft: {
34
+ control: string;
35
+ };
36
+ topRight: {
37
+ control: string;
38
+ };
39
+ bottomLeft: {
40
+ control: string;
41
+ };
42
+ bottomRight: {
43
+ control: string;
44
+ };
45
+ };
46
+ className: {
47
+ control: "text";
48
+ };
49
+ };
50
+ args: {
51
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
52
+ };
53
+ };
54
+ export default meta;
55
+ type Story = StoryObj<typeof meta>;
56
+ export declare const Button: Story;
@@ -0,0 +1,17 @@
1
+ export interface ButtonsProps {
2
+ onClick: () => void;
3
+ width?: number;
4
+ height?: number;
5
+ label?: string;
6
+ paddingX?: number;
7
+ paddingY?: number;
8
+ backgroundColor?: string;
9
+ textColor?: string;
10
+ rounded?: {
11
+ topLeft?: number;
12
+ topRight?: number;
13
+ bottomLeft?: number;
14
+ bottomRight?: number;
15
+ } | number;
16
+ className?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from './view/ViewContainer';
2
+ export * from './components/Buttons/Buttons';
@@ -0,0 +1,7 @@
1
+ interface figmaColorToRgbaProps {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
7
+ declare function figmaColorToRgba({ r, g, b, a }: figmaColorToRgbaProps): string;
@@ -0,0 +1,71 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ import ViewContainer from './ViewContainer';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof ViewContainer;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ argTypes: {
11
+ backgroundColor: {
12
+ control: "color";
13
+ };
14
+ textColor: {
15
+ control: "color";
16
+ };
17
+ width: {
18
+ control: "number";
19
+ };
20
+ height: {
21
+ control: "number";
22
+ };
23
+ display: {
24
+ options: string[];
25
+ };
26
+ direction: {
27
+ options: string[];
28
+ };
29
+ isScrollable: {
30
+ control: "boolean";
31
+ };
32
+ alignItems: {
33
+ options: string[];
34
+ };
35
+ justifyContent: {
36
+ options: string[];
37
+ };
38
+ paddingX: {
39
+ control: "number";
40
+ };
41
+ paddingY: {
42
+ control: "number";
43
+ };
44
+ children: {
45
+ control: "text";
46
+ };
47
+ rounded: {
48
+ topLeft: {
49
+ control: string;
50
+ };
51
+ topRight: {
52
+ control: string;
53
+ };
54
+ bottomLeft: {
55
+ control: string;
56
+ };
57
+ bottomRight: {
58
+ control: string;
59
+ };
60
+ };
61
+ className: {
62
+ control: "text";
63
+ };
64
+ };
65
+ args: {
66
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
67
+ };
68
+ };
69
+ export default meta;
70
+ type Story = StoryObj<typeof meta>;
71
+ export declare const View: Story;
@@ -0,0 +1,2 @@
1
+ import { ViewProps } from "./types";
2
+ export default function ViewContainer(props: ViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ export interface ViewProps {
2
+ display?: "block" | "flex" | "inline-block" | "inline-flex";
3
+ isScrollable?: boolean;
4
+ direction?: "row" | "column" | "row-reverse" | "column-reverse";
5
+ alignItems?: "stretch" | "center" | "flex-start";
6
+ justifyContent?: "flex-start" | "center" | "space-between";
7
+ width?: number;
8
+ height?: number;
9
+ backgroundColor?: string;
10
+ paddingX?: number;
11
+ paddingY?: number;
12
+ textColor?: string;
13
+ children?: React.ReactNode | string;
14
+ rounded?: {
15
+ topLeft?: number;
16
+ topRight?: number;
17
+ bottomLeft?: number;
18
+ bottomRight?: number;
19
+ } | number;
20
+ className?: string;
21
+ onClick?: () => void;
22
+ }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "quix-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "This is a react component library.",
5
5
  "type": "module",
6
- "main": "dist/quix-ui.cjs.js",
7
- "module": "dist/quix-ui.es.js",
6
+ "main": "dist/index.cjs.js",
7
+ "module": "dist/index.es.js",
8
8
  "types": "dist/types/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/quix-ui.es.js",
12
- "require": "./dist/quix-ui.cjs.js",
11
+ "import": "./dist/index.es.js",
12
+ "require": "./dist/index.cjs.js",
13
13
  "types": "./dist/types/index.d.ts"
14
14
  }
15
15
  },
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "scripts": {
21
21
  "build": "vite build",
22
- "dev": "rollup -c -w",
22
+ "rollup": "rollup -c",
23
23
  "test": "jest --watchAll --verbose",
24
24
  "storybook": "storybook dev -p 6006",
25
25
  "build-storybook": "storybook build",