@kaio-xyz/design-system 1.1.63 → 1.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -326,9 +326,9 @@ var SvgArrowUpRight = function SvgArrowUpRight(props) {
|
|
|
326
326
|
var style$v = {"root":"stack-module__root__AqSLk"};
|
|
327
327
|
|
|
328
328
|
var Stack = function (_a) {
|
|
329
|
-
var children = _a.children, _b = _a.space, space = _b === void 0 ? "s" : _b, className = _a.className, _c = _a.position, position = _c === void 0 ? "vertical" : _c, _d = _a.fullHeight, fullHeight = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, dataTest = _a.dataTest, dataAlignItems = _a.dataAlignItems, dataCapitalize = _a.dataCapitalize, dataMarginTop = _a.dataMarginTop, dataMarginBottom = _a.dataMarginBottom, dataMarginLeft = _a.dataMarginLeft, dataPaddingBottom = _a.dataPaddingBottom, as = _a.as, rest = __rest(_a, ["children", "space", "className", "position", "fullHeight", "fullWidth", "dataTest", "dataAlignItems", "dataCapitalize", "dataMarginTop", "dataMarginBottom", "dataMarginLeft", "dataPaddingBottom", "as"]);
|
|
329
|
+
var children = _a.children, _b = _a.space, space = _b === void 0 ? "s" : _b, className = _a.className, _c = _a.position, position = _c === void 0 ? "vertical" : _c, _d = _a.fullHeight, fullHeight = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, dataTest = _a.dataTest, dataAlignItems = _a.dataAlignItems, dataCapitalize = _a.dataCapitalize, dataMarginTop = _a.dataMarginTop, dataMarginBottom = _a.dataMarginBottom, dataMarginLeft = _a.dataMarginLeft, dataPaddingBottom = _a.dataPaddingBottom, _f = _a.wrap, wrap = _f === void 0 ? false : _f, as = _a.as, rest = __rest(_a, ["children", "space", "className", "position", "fullHeight", "fullWidth", "dataTest", "dataAlignItems", "dataCapitalize", "dataMarginTop", "dataMarginBottom", "dataMarginLeft", "dataPaddingBottom", "wrap", "as"]);
|
|
330
330
|
var Tag = as || "div";
|
|
331
|
-
return (jsxRuntime.jsx(Tag, __assign({ className: clsx(style$v.root, className), "data-space": space, "data-position": position, "data-full-width": fullWidth, "data-full-height": fullHeight, "data-test": dataTest, "data-align-items": dataAlignItems, "data-capitalize": dataCapitalize, "data-margin-top": dataMarginTop, "data-margin-bottom": dataMarginBottom, "data-margin-left": dataMarginLeft, "data-padding-bottom": dataPaddingBottom }, rest, { children: children })));
|
|
331
|
+
return (jsxRuntime.jsx(Tag, __assign({ className: clsx(style$v.root, className), "data-space": space, "data-position": position, "data-full-width": fullWidth, "data-full-height": fullHeight, "data-test": dataTest, "data-align-items": dataAlignItems, "data-capitalize": dataCapitalize, "data-margin-top": dataMarginTop, "data-margin-bottom": dataMarginBottom, "data-margin-left": dataMarginLeft, "data-padding-bottom": dataPaddingBottom, "data-wrap": wrap }, rest, { children: children })));
|
|
332
332
|
};
|
|
333
333
|
|
|
334
334
|
var baseStyle = {"root":"badge-base-module__root__oUZlm"};
|
|
@@ -397,6 +397,12 @@ var TextField = React.forwardRef(function (_a, ref) {
|
|
|
397
397
|
var _h = React.useState(function () { return Boolean(value || defaultValue); }), hasValue = _h[0], setHasValue = _h[1];
|
|
398
398
|
var internalRef = React.useRef(null);
|
|
399
399
|
var inputRef = ref || internalRef;
|
|
400
|
+
React.useEffect(function () {
|
|
401
|
+
var input = inputRef.current;
|
|
402
|
+
if (input && input.value) {
|
|
403
|
+
setHasValue(true);
|
|
404
|
+
}
|
|
405
|
+
}, []);
|
|
400
406
|
React.useEffect(function () {
|
|
401
407
|
if (value !== undefined)
|
|
402
408
|
setHasValue(value !== '');
|
|
@@ -602,7 +608,7 @@ var style$e = {"root":"list-item-module__root__-fOHc","label":"list-item-module_
|
|
|
602
608
|
|
|
603
609
|
var ListItem = function (_a) {
|
|
604
610
|
var value = _a.value, label = _a.label, key = _a.key;
|
|
605
|
-
return (jsxRuntime.jsx("li", { children: jsxRuntime.jsxs(Stack, { space: "m", className: style$e.root, children: [jsxRuntime.jsx("span", { className: style$e.label, children: label }), jsxRuntime.jsx("span", { className: style$e.value, children: value })] }) }, key));
|
|
611
|
+
return (jsxRuntime.jsx("li", { children: jsxRuntime.jsxs(Stack, { space: "m", className: style$e.root, wrap: true, children: [jsxRuntime.jsx("span", { className: style$e.label, children: label }), jsxRuntime.jsx("span", { className: style$e.value, children: value })] }) }, key));
|
|
606
612
|
};
|
|
607
613
|
|
|
608
614
|
var AccordionRoot = function (_a) {
|