New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@boxyhq/react-ui

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boxyhq/react-ui - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

449

dist/@boxyhq/react-ui.js
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode("._container_1b6sp_1{--input-outline-color: hsl(0 0% 20%/ .2);--btn-hover-bg-color: hsl(0 0% 20%);--btn-outline-color: hsl(219 14% 22%);display:flex;flex-direction:column;max-width:28rem}._label_1b6sp_10{margin-bottom:.375rem}._input_1b6sp_14{font-family:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-radius:.375rem;border-width:1px;border-color:#ebedf0;border-style:solid;padding:.5rem .75rem;font-size:1rem;margin-top:1px;outline:none;margin-bottom:1rem}._input_1b6sp_14:focus{outline:2px solid var(--input-outline-color);outline-offset:2px}._button_1b6sp_34{cursor:pointer;font-family:inherit;background-image:none;border-radius:.25rem;padding:.5rem 1rem;background-color:transparent;border:1px solid rgb(51,51,51);color:currentColor}._button_1b6sp_34:hover{background-color:var(--btn-hover-bg-color);color:#fff}._button_1b6sp_34:focus-visible{outline:2px solid var(--btn-outline-color);outline-offset:2px}._button_1b6sp_34:active:hover,._button_1b6sp_34:active:focus{transform:scale(.95)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
import Ye, { useState as H, useEffect as vr } from "react";
var M = {}, pr = {
import Me, { useState as H, useEffect as vr } from "react";
var L = {}, pr = {
get exports() {
return M;
return L;
},
set exports(c) {
M = c;
L = c;
}
}, W = {};
}, Y = {};
/**

@@ -20,21 +20,21 @@ * @license React

*/
var De;
var Ie;
function br() {
if (De)
return W;
De = 1;
var c = Ye, g = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, j = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(E, d, S) {
var b, m = {}, T = null, w = null;
S !== void 0 && (T = "" + S), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (w = d.ref);
for (b in d)
y.call(d, b) && !p.hasOwnProperty(b) && (m[b] = d[b]);
if (E && E.defaultProps)
for (b in d = E.defaultProps, d)
m[b] === void 0 && (m[b] = d[b]);
return { $$typeof: g, type: E, key: T, ref: w, props: m, _owner: j.current };
if (Ie)
return Y;
Ie = 1;
var c = Me, b = Symbol.for("react.element"), R = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, P = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
function d(_, l, T) {
var g, E = {}, S = null, x = null;
T !== void 0 && (S = "" + T), l.key !== void 0 && (S = "" + l.key), l.ref !== void 0 && (x = l.ref);
for (g in l)
y.call(l, g) && !v.hasOwnProperty(g) && (E[g] = l[g]);
if (_ && _.defaultProps)
for (g in l = _.defaultProps, l)
E[g] === void 0 && (E[g] = l[g]);
return { $$typeof: b, type: _, key: S, ref: x, props: E, _owner: P.current };
}
return W.Fragment = _, W.jsx = s, W.jsxs = s, W;
return Y.Fragment = R, Y.jsx = d, Y.jsxs = d, Y;
}
var Y = {};
var M = {};
/**

@@ -49,23 +49,23 @@ * @license React

*/
var Ie;
var Ae;
function gr() {
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
var c = Ye, g = Symbol.for("react.element"), _ = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), E = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), L = Symbol.iterator, X = "@@iterator";
function U(e) {
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
var c = Me, b = Symbol.for("react.element"), R = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), _ = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), D = Symbol.iterator, X = "@@iterator";
function Z(e) {
if (e === null || typeof e != "object")
return null;
var r = L && e[L] || e[X];
var r = D && e[D] || e[X];
return typeof r == "function" ? r : null;
}
var P = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function v(e) {
var O = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function p(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
fe("error", e, t);
U("error", e, t);
}
}
function fe(e, r, t) {
function U(e, r, t) {
{
var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
i !== "" && (r += "%s", t = t.concat([i]));

@@ -78,6 +78,6 @@ var u = t.map(function(o) {

}
var Z = !1, Q = !1, D = !1, I = !1, Me = !1, ce;
ce = Symbol.for("react.module.reference");
var ce = !1, Q = !1, ee = !1, I = !1, A = !1, le;
le = Symbol.for("react.module.reference");
function Le(e) {
return !!(typeof e == "string" || typeof e == "function" || e === y || e === p || Me || e === j || e === S || e === b || I || e === w || Z || Q || D || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === m || e.$$typeof === s || e.$$typeof === E || e.$$typeof === d || e.$$typeof === ce || e.getModuleId !== void 0));
return !!(typeof e == "string" || typeof e == "function" || e === y || e === v || A || e === P || e === T || e === g || I || e === x || ce || Q || ee || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === E || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === l || e.$$typeof === le || e.getModuleId !== void 0));
}

@@ -91,9 +91,9 @@ function Ue(e, r, t) {

}
function le(e) {
function se(e) {
return e.displayName || "Context";
}
function O(e) {
function C(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
if (typeof e.tag == "number" && p("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;

@@ -105,11 +105,11 @@ if (typeof e == "string")

return "Fragment";
case _:
case R:
return "Portal";
case p:
case v:
return "Profiler";
case j:
case P:
return "StrictMode";
case S:
case T:
return "Suspense";
case b:
case g:
return "SuspenseList";

@@ -119,17 +119,17 @@ }

switch (e.$$typeof) {
case E:
case _:
var r = e;
return le(r) + ".Consumer";
case s:
return se(r) + ".Consumer";
case d:
var t = e;
return le(t._context) + ".Provider";
case d:
return se(t._context) + ".Provider";
case l:
return Ue(e, e.render, "ForwardRef");
case m:
case E:
var n = e.displayName || null;
return n !== null ? n : O(e.type) || "Memo";
case T: {
return n !== null ? n : C(e.type) || "Memo";
case S: {
var i = e, u = i._payload, o = i._init;
try {
return O(o(u));
return C(o(u));
} catch {

@@ -142,14 +142,14 @@ return null;

}
var x = Object.assign, A = 0, se, de, ve, pe, be, ge, he;
function _e() {
var j = Object.assign, $ = 0, de, ve, pe, be, ge, he, _e;
function Ee() {
}
_e.__reactDisabledLog = !0;
Ee.__reactDisabledLog = !0;
function Ve() {
{
if (A === 0) {
se = console.log, de = console.info, ve = console.warn, pe = console.error, be = console.group, ge = console.groupCollapsed, he = console.groupEnd;
if ($ === 0) {
de = console.log, ve = console.info, pe = console.warn, be = console.error, ge = console.group, he = console.groupCollapsed, _e = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: _e,
value: Ee,
writable: !0

@@ -167,3 +167,3 @@ };

}
A++;
$++;
}

@@ -173,3 +173,3 @@ }

{
if (A--, A === 0) {
if ($--, $ === 0) {
var e = {

@@ -181,32 +181,32 @@ configurable: !0,

Object.defineProperties(console, {
log: x({}, e, {
value: se
}),
info: x({}, e, {
log: j({}, e, {
value: de
}),
warn: x({}, e, {
info: j({}, e, {
value: ve
}),
error: x({}, e, {
warn: j({}, e, {
value: pe
}),
group: x({}, e, {
error: j({}, e, {
value: be
}),
groupCollapsed: x({}, e, {
group: j({}, e, {
value: ge
}),
groupEnd: x({}, e, {
groupCollapsed: j({}, e, {
value: he
}),
groupEnd: j({}, e, {
value: _e
})
});
}
A < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
$ < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ee = P.ReactCurrentDispatcher, re;
var re = O.ReactCurrentDispatcher, te;
function V(e, r, t) {
{
if (re === void 0)
if (te === void 0)
try {

@@ -216,9 +216,9 @@ throw Error();

var n = i.stack.trim().match(/\n( *(at )?)/);
re = n && n[1] || "";
te = n && n[1] || "";
}
return `
` + re + e;
` + te + e;
}
}
var te = !1, q;
var ne = !1, q;
{

@@ -228,4 +228,4 @@ var Be = typeof WeakMap == "function" ? WeakMap : Map;

}
function Ee(e, r) {
if (!e || te)
function Re(e, r) {
if (!e || ne)
return "";

@@ -238,7 +238,7 @@ {

var n;
te = !0;
ne = !0;
var i = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = ee.current, ee.current = null, Ve();
u = re.current, re.current = null, Ve();
try {

@@ -256,4 +256,4 @@ if (r) {

Reflect.construct(o, []);
} catch (C) {
n = C;
} catch (w) {
n = w;
}

@@ -264,4 +264,4 @@ Reflect.construct(e, [], o);

o.call();
} catch (C) {
n = C;
} catch (w) {
n = w;
}

@@ -273,23 +273,23 @@ e.call(o.prototype);

throw Error();
} catch (C) {
n = C;
} catch (w) {
n = w;
}
e();
}
} catch (C) {
if (C && n && typeof C.stack == "string") {
for (var a = C.stack.split(`
} catch (w) {
if (w && n && typeof w.stack == "string") {
for (var a = w.stack.split(`
`), h = n.stack.split(`
`), f = a.length - 1, l = h.length - 1; f >= 1 && l >= 0 && a[f] !== h[l]; )
l--;
for (; f >= 1 && l >= 0; f--, l--)
if (a[f] !== h[l]) {
if (f !== 1 || l !== 1)
`), f = a.length - 1, s = h.length - 1; f >= 1 && s >= 0 && a[f] !== h[s]; )
s--;
for (; f >= 1 && s >= 0; f--, s--)
if (a[f] !== h[s]) {
if (f !== 1 || s !== 1)
do
if (f--, l--, l < 0 || a[f] !== h[l]) {
var R = `
if (f--, s--, s < 0 || a[f] !== h[s]) {
var m = `
` + a[f].replace(" at new ", " at ");
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, R), R;
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, m), m;
}
while (f >= 1 && l >= 0);
while (f >= 1 && s >= 0);
break;

@@ -299,9 +299,9 @@ }

} finally {
te = !1, ee.current = u, qe(), Error.prepareStackTrace = i;
ne = !1, re.current = u, qe(), Error.prepareStackTrace = i;
}
var F = e ? e.displayName || e.name : "", Fe = F ? V(F) : "";
return typeof e == "function" && q.set(e, Fe), Fe;
var F = e ? e.displayName || e.name : "", De = F ? V(F) : "";
return typeof e == "function" && q.set(e, De), De;
}
function Ge(e, r, t) {
return Ee(e, !1);
return Re(e, !1);
}

@@ -316,9 +316,9 @@ function Je(e) {

if (typeof e == "function")
return Ee(e, Je(e));
return Re(e, Je(e));
if (typeof e == "string")
return V(e);
switch (e) {
case S:
case T:
return V("Suspense");
case b:
case g:
return V("SuspenseList");

@@ -328,7 +328,7 @@ }

switch (e.$$typeof) {
case d:
case l:
return Ge(e.render);
case m:
case E:
return B(e.type, r, t);
case T: {
case S: {
var n = e, i = n._payload, u = n._init;

@@ -343,9 +343,9 @@ try {

}
var G = Object.prototype.hasOwnProperty, Re = {}, me = P.ReactDebugCurrentFrame;
var G = Object.prototype.hasOwnProperty, me = {}, ye = O.ReactDebugCurrentFrame;
function J(e) {
if (e) {
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
me.setExtraStackFrame(t);
ye.setExtraStackFrame(t);
} else
me.setExtraStackFrame(null);
ye.setExtraStackFrame(null);
}

@@ -367,3 +367,3 @@ function ze(e, r, t, n, i) {

}
a && !(a instanceof Error) && (J(i), v("%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, o, typeof a), J(null)), a instanceof Error && !(a.message in Re) && (Re[a.message] = !0, J(i), v("Failed %s type: %s", t, a.message), J(null));
a && !(a instanceof Error) && (J(i), p("%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, o, typeof a), J(null)), a instanceof Error && !(a.message in me) && (me[a.message] = !0, J(i), p("Failed %s type: %s", t, a.message), J(null));
}

@@ -373,3 +373,3 @@ }

var Ne = Array.isArray;
function ne(e) {
function ae(e) {
return Ne(e);

@@ -385,3 +385,3 @@ }

try {
return ye(e), !1;
return Te(e), !1;
} catch {

@@ -391,10 +391,10 @@ return !0;

}
function ye(e) {
function Te(e) {
return "" + e;
}
function Te(e) {
function Se(e) {
if (He(e))
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), ye(e);
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Te(e);
}
var $ = P.ReactCurrentOwner, Xe = {
var W = O.ReactCurrentOwner, Xe = {
key: !0,

@@ -404,4 +404,4 @@ ref: !0,

__source: !0
}, Se, Oe, ae;
ae = {};
}, Oe, Ce, oe;
oe = {};
function Ze(e) {

@@ -424,5 +424,5 @@ if (G.call(e, "ref")) {

function er(e, r) {
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
var t = O($.current.type);
ae[t] || (v('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', O($.current.type), e.ref), ae[t] = !0);
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
var t = C(W.current.type);
oe[t] || (p('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', C(W.current.type), e.ref), oe[t] = !0);
}

@@ -433,3 +433,3 @@ }

var t = function() {
Se || (Se = !0, v("%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));
Oe || (Oe = !0, p("%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));
};

@@ -445,3 +445,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

var t = function() {
Oe || (Oe = !0, v("%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));
Ce || (Ce = !0, p("%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));
};

@@ -456,3 +456,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

var a = {
$$typeof: g,
$$typeof: b,
type: e,

@@ -484,3 +484,3 @@ key: r,

var u, o = {}, a = null, h = null;
t !== void 0 && (Te(t), a = "" + t), Qe(r) && (Te(r.key), a = "" + r.key), Ze(r) && (h = r.ref, er(r, i));
t !== void 0 && (Se(t), a = "" + t), Qe(r) && (Se(r.key), a = "" + r.key), Ze(r) && (h = r.ref, er(r, i));
for (u in r)

@@ -494,25 +494,25 @@ G.call(r, u) && !Xe.hasOwnProperty(u) && (o[u] = r[u]);

if (a || h) {
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && rr(o, l), h && tr(o, l);
var s = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && rr(o, s), h && tr(o, s);
}
return nr(e, a, h, i, n, $.current, o);
return nr(e, a, h, i, n, W.current, o);
}
}
var oe = P.ReactCurrentOwner, Ce = P.ReactDebugCurrentFrame;
var ie = O.ReactCurrentOwner, we = O.ReactDebugCurrentFrame;
function k(e) {
if (e) {
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
Ce.setExtraStackFrame(t);
we.setExtraStackFrame(t);
} else
Ce.setExtraStackFrame(null);
we.setExtraStackFrame(null);
}
var ie;
ie = !1;
function ue(e) {
return typeof e == "object" && e !== null && e.$$typeof === g;
var ue;
ue = !1;
function fe(e) {
return typeof e == "object" && e !== null && e.$$typeof === b;
}
function Pe() {
function xe() {
{
if (oe.current) {
var e = O(oe.current.type);
if (ie.current) {
var e = C(ie.current.type);
if (e)

@@ -537,6 +537,6 @@ return `

}
var we = {};
var je = {};
function ir(e) {
{
var r = Pe();
var r = xe();
if (!r) {

@@ -551,3 +551,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

}
function xe(e, r) {
function Pe(e, r) {
{

@@ -558,25 +558,25 @@ if (!e._store || e._store.validated || e.key != null)

var t = ir(r);
if (we[t])
if (je[t])
return;
we[t] = !0;
je[t] = !0;
var n = "";
e && e._owner && e._owner !== oe.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e), v('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), k(null);
e && e._owner && e._owner !== ie.current && (n = " It was passed a child from " + C(e._owner.type) + "."), k(e), p('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), k(null);
}
}
function je(e, r) {
function ke(e, r) {
{
if (typeof e != "object")
return;
if (ne(e))
if (ae(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
ue(n) && xe(n, r);
fe(n) && Pe(n, r);
}
else if (ue(e))
else if (fe(e))
e._store && (e._store.validated = !0);
else if (e) {
var i = U(e);
var i = Z(e);
if (typeof i == "function" && i !== e.entries)
for (var u = i.call(e), o; !(o = u.next()).done; )
ue(o.value) && xe(o.value, r);
fe(o.value) && Pe(o.value, r);
}

@@ -593,3 +593,3 @@ }

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === d || r.$$typeof === m))
else if (typeof r == "object" && (r.$$typeof === l || r.$$typeof === E))
t = r.propTypes;

@@ -599,10 +599,10 @@ else

if (t) {
var n = O(r);
var n = C(r);
ze(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !ie) {
ie = !0;
var i = O(r);
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
} else if (r.PropTypes !== void 0 && !ue) {
ue = !0;
var i = C(r);
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}

@@ -615,10 +615,10 @@ }

if (n !== "children" && n !== "key") {
k(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
k(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
break;
}
}
e.ref !== null && (k(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
e.ref !== null && (k(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
}
}
function ke(e, r, t, n, i, u) {
function Fe(e, r, t, n, i, u) {
{

@@ -630,34 +630,34 @@ var o = Le(e);

var h = or(i);
h ? a += h : a += Pe();
h ? a += h : a += xe();
var f;
e === null ? f = "null" : ne(e) ? f = "array" : e !== void 0 && e.$$typeof === g ? (f = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, a);
e === null ? f = "null" : ae(e) ? f = "array" : e !== void 0 && e.$$typeof === b ? (f = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, a);
}
var l = ar(e, r, t, i, u);
if (l == null)
return l;
var s = ar(e, r, t, i, u);
if (s == null)
return s;
if (o) {
var R = r.children;
if (R !== void 0)
var m = r.children;
if (m !== void 0)
if (n)
if (ne(R)) {
for (var F = 0; F < R.length; F++)
je(R[F], e);
Object.freeze && Object.freeze(R);
if (ae(m)) {
for (var F = 0; F < m.length; F++)
ke(m[F], e);
Object.freeze && Object.freeze(m);
} else
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
p("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
je(R, e);
ke(m, e);
}
return e === y ? fr(l) : ur(l), l;
return e === y ? fr(s) : ur(s), s;
}
}
function cr(e, r, t) {
return ke(e, r, t, !0);
return Fe(e, r, t, !0);
}
function lr(e, r, t) {
return ke(e, r, t, !1);
return Fe(e, r, t, !1);
}
var sr = lr, dr = cr;
Y.Fragment = y, Y.jsx = sr, Y.jsxs = dr;
}()), Y;
M.Fragment = y, M.jsx = sr, M.jsxs = dr;
}()), M;
}

@@ -667,11 +667,11 @@ (function(c) {

})(pr);
const hr = M.Fragment, z = M.jsx, Ae = M.jsxs, _r = (c, g) => {
const _ = Math.floor(1e6 + Math.random() * 1e6).toString();
return g ? `boxyhq-${c}-${g}-${_}` : `boxyhq-${c}-${_}`;
}, $e = (c, g) => {
const [_, y] = H("");
const hr = L.Fragment, z = L.jsx, $e = L.jsxs, _r = (c, b) => {
const R = Math.floor(1e6 + Math.random() * 1e6).toString();
return b ? `boxyhq-${c}-${b}-${R}` : `boxyhq-${c}-${R}`;
}, We = (c, b) => {
const [R, y] = H("");
return vr(() => {
y(_r(c, g));
}, [c, g]), _;
}, N = (c = !1, g = "", _) => c ? g : `${_} ${g}`, Er = "_container_1b6sp_1", Rr = "_label_1b6sp_10", mr = "_input_1b6sp_14", yr = "_button_1b6sp_34", K = {
y(_r(c, b));
}, [c, b]), R;
}, N = (c = !1, b = "", R) => c ? b : `${R} ${b}`, Er = "_container_1b6sp_1", Rr = "_label_1b6sp_10", mr = "_input_1b6sp_14", yr = "_button_1b6sp_34", K = {
container: Er,

@@ -681,28 +681,29 @@ label: Rr,

button: yr
}, We = "sso", Sr = ({
}, Ye = "sso", Sr = ({
ssoIdentifier: c = "",
onSubmit: g,
inputLabel: _ = "Tenant",
onSubmit: b,
inputLabel: R = "Tenant",
placeholder: y = "",
buttonText: j = "Sign-in with SSO",
styles: p,
classNames: s,
unstyled: E = !1
buttonText: P = "Sign-in with SSO",
styles: v,
classNames: d,
innerProps: _,
unstyled: l = !1
}) => {
const d = $e(We, "input"), S = $e(We, "span"), [b, m] = H(""), [T, w] = H(""), L = (D) => {
w(""), m(D.currentTarget.value);
}, [X, U] = H(!1), P = async (D) => {
D.preventDefault(), U(!0);
const T = We(Ye, "input"), g = We(Ye, "span"), [E, S] = H(""), [x, D] = H(""), X = (I) => {
D(""), S(I.currentTarget.value);
}, [Z, O] = H(!1), p = async (I) => {
I.preventDefault(), O(!0);
const {
error: { message: I }
} = await g(b || c) || { error: {} };
U(!1), typeof I == "string" && I && w(I);
}, v = !!T, Z = !c ? /* @__PURE__ */ Ae(hr, { children: [
error: { message: A }
} = await b(E || c) || { error: {} };
O(!1), typeof A == "string" && A && D(A);
}, U = !!x, Q = !c ? /* @__PURE__ */ $e(hr, { children: [
/* @__PURE__ */ z(
"label",
{
htmlFor: d,
style: p == null ? void 0 : p.label,
className: N(E, s == null ? void 0 : s.label, K.label),
children: _
htmlFor: T,
style: v == null ? void 0 : v.label,
className: N(l, d == null ? void 0 : d.label, K.label),
children: R
}

@@ -713,30 +714,32 @@ ),

{
id: d,
value: b,
id: T,
value: E,
placeholder: y,
onChange: L,
style: p == null ? void 0 : p.input,
className: N(E, s == null ? void 0 : s.input, K.input),
"aria-invalid": v,
"aria-describedby": S
onChange: X,
style: v == null ? void 0 : v.input,
className: N(l, d == null ? void 0 : d.input, K.input),
"aria-invalid": U,
"aria-describedby": g,
..._ == null ? void 0 : _.input
}
),
v && /* @__PURE__ */ z("span", { id: S, children: T })
] }) : null, Q = !(b || c) || X;
return /* @__PURE__ */ Ae(
U && /* @__PURE__ */ z("span", { id: g, children: x })
] }) : null, ee = !(E || c) || Z;
return /* @__PURE__ */ $e(
"div",
{
className: N(E, s == null ? void 0 : s.container, K.container),
style: p == null ? void 0 : p.container,
className: N(l, d == null ? void 0 : d.container, K.container),
style: v == null ? void 0 : v.container,
children: [
Z,
Q,
/* @__PURE__ */ z(
"button",
{
disabled: Q,
disabled: ee,
type: "button",
onClick: P,
style: p == null ? void 0 : p.button,
className: N(E, s == null ? void 0 : s.button, K.button),
children: j
onClick: p,
style: v == null ? void 0 : v.button,
className: N(l, d == null ? void 0 : d.button, K.button),
..._ == null ? void 0 : _.button,
children: P
}

@@ -743,0 +746,0 @@ )

/// <reference types="react" />
import type { LoginProps } from './types';
declare const Login: ({ ssoIdentifier, onSubmit, inputLabel, placeholder, buttonText, styles, classNames, unstyled, }: LoginProps) => JSX.Element;
declare const Login: ({ ssoIdentifier, onSubmit, inputLabel, placeholder, buttonText, styles, classNames, innerProps, unstyled, }: LoginProps) => JSX.Element;
export default Login;

@@ -1,2 +0,2 @@

import type { CSSProperties } from 'react';
import type { ButtonHTMLAttributes, CSSProperties, InputHTMLAttributes } from 'react';
interface ContainerCSSProperties extends CSSProperties {

@@ -55,2 +55,6 @@ '--input-outline-color'?: string;

};
innerProps?: {
input?: InputHTMLAttributes<HTMLInputElement>;
button?: ButtonHTMLAttributes<HTMLButtonElement>;
};
/**

@@ -57,0 +61,0 @@ * Boolean that disables all the default styling making it easier to style from scratch

{
"name": "@boxyhq/react-ui",
"description": "React UI components from BoxyHQ",
"version": "0.0.17",
"version": "0.0.18",
"type": "module",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc