@helpdice/ui 2.5.9 → 2.6.0-beta.1
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/auto-complete/index.js +94 -85
- package/dist/grid/grid-base.d.ts +2 -2
- package/dist/grid/grid-container.d.ts +2 -2
- package/dist/index.js +115 -104
- package/dist/input/index.js +94 -85
- package/dist/input/input-block-label.d.ts +1 -0
- package/dist/input/input-props.d.ts +1 -0
- package/dist/table/index.js +115 -104
- package/dist/table/table.d.ts +2 -2
- package/dist/textarea/index.js +13 -6
- package/esm/grid/grid-base.d.ts +2 -2
- package/esm/grid/grid-container.d.ts +2 -2
- package/esm/input/input-block-label.d.ts +1 -0
- package/esm/input/input-block-label.js +13 -6
- package/esm/input/input-field.js +14 -11
- package/esm/input/input-props.d.ts +1 -0
- package/esm/table/table.d.ts +2 -2
- package/esm/table/table.js +19 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -965,81 +965,6 @@ var InputLabel = function InputLabel(_ref) {
|
|
|
965
965
|
};
|
|
966
966
|
var MemoInputLabel = /*#__PURE__*/React.memo(InputLabel);
|
|
967
967
|
|
|
968
|
-
var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
|
|
969
|
-
var children = _ref.children;
|
|
970
|
-
var theme$1 = theme.useTheme();
|
|
971
|
-
return /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
972
|
-
className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]]),
|
|
973
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
974
|
-
id: "1278828862",
|
|
975
|
-
dynamic: [theme$1.palette.accents_6],
|
|
976
|
-
children: "label.__jsx-style-dynamic-selector{display:block;font-weight:normal;color:".concat(theme$1.palette.accents_6, ";padding:0 0 0 1px;margin-bottom:0.5em;font-size:1em;line-height:1.5;}label.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}label.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")
|
|
977
|
-
})]
|
|
978
|
-
});
|
|
979
|
-
};
|
|
980
|
-
InputBlockLabelComponent.displayName = 'InputBlockLabel';
|
|
981
|
-
var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
|
|
982
|
-
|
|
983
|
-
var InputIconComponent = function InputIconComponent(_ref) {
|
|
984
|
-
var icon = _ref.icon,
|
|
985
|
-
_ref$clickable = _ref.clickable,
|
|
986
|
-
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
|
987
|
-
onClick = _ref.onClick;
|
|
988
|
-
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
989
|
-
onClick: onClick,
|
|
990
|
-
className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
|
|
991
|
-
children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
992
|
-
id: "4247656379",
|
|
993
|
-
dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
|
|
994
|
-
children: ".input-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;line-height:1;position:relative;cursor:".concat(clickable ? 'pointer' : 'default', ";pointer-events:").concat(clickable ? 'auto' : 'none', ";}.input-icon.__jsx-style-dynamic-selector svg{width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")
|
|
995
|
-
})]
|
|
996
|
-
});
|
|
997
|
-
};
|
|
998
|
-
InputIconComponent.displayName = 'InputIcon';
|
|
999
|
-
var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
|
|
1000
|
-
|
|
1001
|
-
var InputIconClear = function InputIconClear(_ref) {
|
|
1002
|
-
var onClick = _ref.onClick,
|
|
1003
|
-
disabled = _ref.disabled,
|
|
1004
|
-
visible = _ref.visible;
|
|
1005
|
-
var theme$1 = theme.useTheme();
|
|
1006
|
-
var classes = theme.useClasses('clear-icon', {
|
|
1007
|
-
visible: visible
|
|
1008
|
-
});
|
|
1009
|
-
var clickHandler = function clickHandler(event) {
|
|
1010
|
-
event.preventDefault();
|
|
1011
|
-
event.stopPropagation();
|
|
1012
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
1013
|
-
onClick && onClick(event);
|
|
1014
|
-
};
|
|
1015
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1016
|
-
onClick: clickHandler,
|
|
1017
|
-
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
|
|
1018
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
1019
|
-
viewBox: "0 0 24 24",
|
|
1020
|
-
stroke: "currentColor",
|
|
1021
|
-
strokeWidth: "1.5",
|
|
1022
|
-
strokeLinecap: "round",
|
|
1023
|
-
strokeLinejoin: "round",
|
|
1024
|
-
fill: "none",
|
|
1025
|
-
shapeRendering: "geometricPrecision",
|
|
1026
|
-
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
|
|
1027
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1028
|
-
d: "M18 6L6 18",
|
|
1029
|
-
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
|
|
1030
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1031
|
-
d: "M6 6l12 12",
|
|
1032
|
-
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
|
|
1033
|
-
})]
|
|
1034
|
-
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1035
|
-
id: "1567030211",
|
|
1036
|
-
dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
|
|
1037
|
-
children: ".clear-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;margin:0;padding:0;color:").concat(theme$1.palette.accents_3, ";visibility:hidden;opacity:0;}.visible.__jsx-style-dynamic-selector{visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")
|
|
1038
|
-
})]
|
|
1039
|
-
});
|
|
1040
|
-
};
|
|
1041
|
-
var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
|
|
1042
|
-
|
|
1043
968
|
/* "use client" */
|
|
1044
969
|
|
|
1045
970
|
var ScalePropKeys = ['width', 'height', 'padding', 'margin', 'w', 'h', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'pl', 'pr', 'pt', 'pb', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'ml', 'mr', 'mt', 'mb', 'px', 'py', 'mx', 'my', 'font', 'unit', 'scale'];
|
|
@@ -1340,6 +1265,88 @@ var withScale = function withScale(Render) {
|
|
|
1340
1265
|
return ScaleFC;
|
|
1341
1266
|
};
|
|
1342
1267
|
|
|
1268
|
+
var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
|
|
1269
|
+
var children = _ref.children,
|
|
1270
|
+
_ref$required = _ref.required,
|
|
1271
|
+
required = _ref$required === void 0 ? false : _ref$required;
|
|
1272
|
+
var theme$1 = theme.useTheme();
|
|
1273
|
+
var _useScale = useScale(),
|
|
1274
|
+
SCALES = _useScale.SCALES;
|
|
1275
|
+
return /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
1276
|
+
className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]),
|
|
1277
|
+
children: [children, required && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1278
|
+
className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]) + " " + "mark-error",
|
|
1279
|
+
children: "*"
|
|
1280
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1281
|
+
id: "588038827",
|
|
1282
|
+
dynamic: [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)],
|
|
1283
|
+
children: "label.__jsx-style-dynamic-selector{display:".concat(typeof children === "string" ? 'block' : 'flex', ";font-weight:normal;color:").concat(theme$1.palette.accents_6, ";padding:0 0 0 1px;margin-bottom:0.5em;font-size:1em;line-height:1.5;}label.__jsx-style-dynamic-selector .mark-error.__jsx-style-dynamic-selector{color:").concat(theme$1.palette.errorDark, ";margin:0px 3px;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;font-size:").concat(SCALES.font(1.2), ";}label.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}label.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")
|
|
1284
|
+
})]
|
|
1285
|
+
});
|
|
1286
|
+
};
|
|
1287
|
+
InputBlockLabelComponent.displayName = 'InputBlockLabel';
|
|
1288
|
+
var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
|
|
1289
|
+
|
|
1290
|
+
var InputIconComponent = function InputIconComponent(_ref) {
|
|
1291
|
+
var icon = _ref.icon,
|
|
1292
|
+
_ref$clickable = _ref.clickable,
|
|
1293
|
+
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
|
1294
|
+
onClick = _ref.onClick;
|
|
1295
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1296
|
+
onClick: onClick,
|
|
1297
|
+
className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
|
|
1298
|
+
children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1299
|
+
id: "4247656379",
|
|
1300
|
+
dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
|
|
1301
|
+
children: ".input-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;line-height:1;position:relative;cursor:".concat(clickable ? 'pointer' : 'default', ";pointer-events:").concat(clickable ? 'auto' : 'none', ";}.input-icon.__jsx-style-dynamic-selector svg{width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")
|
|
1302
|
+
})]
|
|
1303
|
+
});
|
|
1304
|
+
};
|
|
1305
|
+
InputIconComponent.displayName = 'InputIcon';
|
|
1306
|
+
var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
|
|
1307
|
+
|
|
1308
|
+
var InputIconClear = function InputIconClear(_ref) {
|
|
1309
|
+
var onClick = _ref.onClick,
|
|
1310
|
+
disabled = _ref.disabled,
|
|
1311
|
+
visible = _ref.visible;
|
|
1312
|
+
var theme$1 = theme.useTheme();
|
|
1313
|
+
var classes = theme.useClasses('clear-icon', {
|
|
1314
|
+
visible: visible
|
|
1315
|
+
});
|
|
1316
|
+
var clickHandler = function clickHandler(event) {
|
|
1317
|
+
event.preventDefault();
|
|
1318
|
+
event.stopPropagation();
|
|
1319
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
1320
|
+
onClick && onClick(event);
|
|
1321
|
+
};
|
|
1322
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1323
|
+
onClick: clickHandler,
|
|
1324
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
|
|
1325
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
1326
|
+
viewBox: "0 0 24 24",
|
|
1327
|
+
stroke: "currentColor",
|
|
1328
|
+
strokeWidth: "1.5",
|
|
1329
|
+
strokeLinecap: "round",
|
|
1330
|
+
strokeLinejoin: "round",
|
|
1331
|
+
fill: "none",
|
|
1332
|
+
shapeRendering: "geometricPrecision",
|
|
1333
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
|
|
1334
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1335
|
+
d: "M18 6L6 18",
|
|
1336
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
|
|
1337
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1338
|
+
d: "M6 6l12 12",
|
|
1339
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
|
|
1340
|
+
})]
|
|
1341
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1342
|
+
id: "1567030211",
|
|
1343
|
+
dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
|
|
1344
|
+
children: ".clear-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;margin:0;padding:0;color:").concat(theme$1.palette.accents_3, ";visibility:hidden;opacity:0;}.visible.__jsx-style-dynamic-selector{visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")
|
|
1345
|
+
})]
|
|
1346
|
+
});
|
|
1347
|
+
};
|
|
1348
|
+
var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
|
|
1349
|
+
|
|
1343
1350
|
var _excluded$1n = ["children", "tag", "className", "color"];
|
|
1344
1351
|
var getTypeColor = function getTypeColor(type, palette) {
|
|
1345
1352
|
var colors = {
|
|
@@ -2219,7 +2226,7 @@ var getColors$7 = function getColors(palette, status) {
|
|
|
2219
2226
|
return colors[status];
|
|
2220
2227
|
};
|
|
2221
2228
|
|
|
2222
|
-
var _excluded$1i = ["label", "labelRight", "error", "color", "helperText", "type", "icon", "variant", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "onEnter", "autoComplete", "placeholder", "children", "disabled", "fullWidth"];
|
|
2229
|
+
var _excluded$1i = ["label", "labelRight", "error", "color", "helperText", "type", "icon", "variant", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "onEnter", "autoComplete", "placeholder", "children", "disabled", "fullWidth", "required"];
|
|
2223
2230
|
var simulateChangeEvent = function simulateChangeEvent(el, event) {
|
|
2224
2231
|
return _objectSpread2(_objectSpread2({}, event), {}, {
|
|
2225
2232
|
target: el,
|
|
@@ -2265,6 +2272,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2265
2272
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
2266
2273
|
_ref$fullWidth = _ref.fullWidth,
|
|
2267
2274
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
2275
|
+
required = _ref.required,
|
|
2268
2276
|
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
2269
2277
|
var theme$1 = theme.useTheme();
|
|
2270
2278
|
var _useScale = useScale(),
|
|
@@ -2293,7 +2301,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2293
2301
|
}, [icon, iconRight]);
|
|
2294
2302
|
var _useMemo = React.useMemo(function () {
|
|
2295
2303
|
return getColors$7(theme$1.palette, _color);
|
|
2296
|
-
}, [theme$1.palette,
|
|
2304
|
+
}, [theme$1.palette, _color]),
|
|
2297
2305
|
color = _useMemo.color,
|
|
2298
2306
|
borderColor = _useMemo.borderColor,
|
|
2299
2307
|
hoverBorder = _useMemo.hoverBorder;
|
|
@@ -2348,15 +2356,16 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2348
2356
|
var inputProps = _objectSpread2(_objectSpread2({}, props), controlledValue);
|
|
2349
2357
|
var defaultWidth = fullWidth ? '100%' : 'initial';
|
|
2350
2358
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2351
|
-
className: _JSXStyle.dynamic([["
|
|
2359
|
+
className: _JSXStyle.dynamic([["2371903369", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), theme$1.palette.foreground, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + "with-label",
|
|
2352
2360
|
children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
2361
|
+
required: required,
|
|
2353
2362
|
children: children
|
|
2354
2363
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2355
|
-
className: _JSXStyle.dynamic([["
|
|
2364
|
+
className: _JSXStyle.dynamic([["2371903369", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), theme$1.palette.foreground, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (theme.useClasses('input-container', className) || ""),
|
|
2356
2365
|
children: [label && /*#__PURE__*/jsxRuntime.jsx(MemoInputLabel, {
|
|
2357
2366
|
children: label
|
|
2358
2367
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2359
|
-
className: _JSXStyle.dynamic([["
|
|
2368
|
+
className: _JSXStyle.dynamic([["2371903369", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), theme$1.palette.foreground, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (theme.useClasses('input-wrapper', {
|
|
2360
2369
|
hover: hover,
|
|
2361
2370
|
disabled: disabled
|
|
2362
2371
|
}, labelClasses) || ""),
|
|
@@ -2374,7 +2383,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2374
2383
|
autoComplete: autoComplete,
|
|
2375
2384
|
onKeyDown: handleKeyDown
|
|
2376
2385
|
}, inputProps), {}, {
|
|
2377
|
-
className: _JSXStyle.dynamic([["
|
|
2386
|
+
className: _JSXStyle.dynamic([["2371903369", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), theme$1.palette.foreground, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (inputProps && inputProps.className != null && inputProps.className || theme.useClasses({
|
|
2378
2387
|
disabled: disabled
|
|
2379
2388
|
}, iconClasses) || "")
|
|
2380
2389
|
})), clearable && /*#__PURE__*/jsxRuntime.jsx(MemoInputIconClear, {
|
|
@@ -2388,7 +2397,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2388
2397
|
isRight: true,
|
|
2389
2398
|
children: labelRight
|
|
2390
2399
|
}), /*#__PURE__*/jsxRuntime.jsx("br", {
|
|
2391
|
-
className: _JSXStyle.dynamic([["
|
|
2400
|
+
className: _JSXStyle.dynamic([["2371903369", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), theme$1.palette.foreground, theme$1.palette.accents_3, theme$1.palette.background, color]]])
|
|
2392
2401
|
})]
|
|
2393
2402
|
}), helperText && /*#__PURE__*/jsxRuntime.jsxs(Text, {
|
|
2394
2403
|
font: 0.8,
|
|
@@ -2402,9 +2411,9 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2402
2411
|
color: error ? "error" : 'default',
|
|
2403
2412
|
children: ["\xA0", helperText]
|
|
2404
2413
|
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2405
|
-
id: "
|
|
2406
|
-
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875),
|
|
2407
|
-
children: ".with-label.__jsx-style-dynamic-selector{display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.input-container.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:").concat(SCALES.width(1, defaultWidth), ";height:var(--input-height);}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:").concat(variant === 'normal' ? theme$1.layout.radius : '', ";").concat(variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), ";-webkit-transition:border 0.2s ease 0s,color 0.2s ease 0s;transition:border 0.2s ease 0s,color 0.2s ease 0s;}.input-wrapper.left-label.__jsx-style-dynamic-selector{border-top-left-radius:0;border-bottom-left-radius:0;}.input-wrapper.right-label.__jsx-style-dynamic-selector{border-top-right-radius:0;border-bottom-right-radius:0;}.input-wrapper.disabled.__jsx-style-dynamic-selector{background-color:").concat(theme$1.palette.accents_1, ";border-color:").concat(theme$1.palette.accents_2, ";cursor:not-allowed;}input.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;}.input-wrapper.hover.__jsx-style-dynamic-selector{border-color:").concat(hoverBorder, ";}input.__jsx-style-dynamic-selector{margin:0.25em 0.625em;padding:0;box-shadow:none;font-size:").concat(SCALES.font(0.875), ";background-color:transparent;border:none;color:").concat(
|
|
2414
|
+
id: "2371903369",
|
|
2415
|
+
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), theme$1.palette.foreground, theme$1.palette.accents_3, theme$1.palette.background, color],
|
|
2416
|
+
children: ".with-label.__jsx-style-dynamic-selector{display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.input-container.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:").concat(SCALES.width(1, defaultWidth), ";height:var(--input-height);}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:").concat(variant === 'normal' ? theme$1.layout.radius : '', ";").concat(variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), ";-webkit-transition:border 0.2s ease 0s,color 0.2s ease 0s;transition:border 0.2s ease 0s,color 0.2s ease 0s;}.input-wrapper.left-label.__jsx-style-dynamic-selector{border-top-left-radius:0;border-bottom-left-radius:0;}.input-wrapper.right-label.__jsx-style-dynamic-selector{border-top-right-radius:0;border-bottom-right-radius:0;}.input-wrapper.disabled.__jsx-style-dynamic-selector{background-color:").concat(theme$1.palette.accents_1, ";border-color:").concat(theme$1.palette.accents_2, ";cursor:not-allowed;}input.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;}.input-wrapper.hover.__jsx-style-dynamic-selector{border-color:").concat(hoverBorder, ";}input.__jsx-style-dynamic-selector{margin:0.25em 0.625em;padding:0;box-shadow:none;font-size:").concat(SCALES.font(0.875), ";background-color:transparent;border:none;color:").concat(theme$1.palette.foreground, ";outline:none;border-radius:0;width:100%;min-width:0;-webkit-appearance:none;}input.left-icon.__jsx-style-dynamic-selector{margin-left:0;}input.right-icon.__jsx-style-dynamic-selector{margin-right:0;}.__jsx-style-dynamic-selector::-webkit-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector::placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector::-ms-reveal{display:none !important;}input.__jsx-style-dynamic-selector:-webkit-autofill,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:hover,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:active,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:focus{-webkit-box-shadow:0 0 0 30px ").concat(theme$1.palette.background, " inset !important;-webkit-text-fill-color:").concat(color, " !important;}")
|
|
2408
2417
|
})]
|
|
2409
2418
|
});
|
|
2410
2419
|
});
|
|
@@ -36332,16 +36341,16 @@ function TableComponent(tableProps) {
|
|
|
36332
36341
|
borderBottomLeftRadius: '5px',
|
|
36333
36342
|
borderBottomRightRadius: '5px'
|
|
36334
36343
|
},
|
|
36335
|
-
className: _JSXStyle.dynamic([["
|
|
36344
|
+
className: _JSXStyle.dynamic([["638332526", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.background]]]),
|
|
36336
36345
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36337
36346
|
style: _objectSpread2({
|
|
36338
36347
|
overflow: 'auto'
|
|
36339
36348
|
}, containerStyle),
|
|
36340
|
-
className: _JSXStyle.dynamic([["
|
|
36349
|
+
className: _JSXStyle.dynamic([["638332526", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.background]]]),
|
|
36341
36350
|
children: [/*#__PURE__*/jsxRuntime.jsxs("table", _objectSpread2(_objectSpread2({
|
|
36342
36351
|
ref: ref
|
|
36343
36352
|
}, props), {}, {
|
|
36344
|
-
className: _JSXStyle.dynamic([["
|
|
36353
|
+
className: _JSXStyle.dynamic([["638332526", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.background]]]) + " " + (props && props.className != null && props.className || className || ""),
|
|
36345
36354
|
children: [/*#__PURE__*/jsxRuntime.jsx(TableHead, {
|
|
36346
36355
|
stickyHeader: stickyHeader,
|
|
36347
36356
|
onFilters: onFilters,
|
|
@@ -36363,20 +36372,20 @@ function TableComponent(tableProps) {
|
|
|
36363
36372
|
readOnly: readOnly,
|
|
36364
36373
|
onSelected: onSelected
|
|
36365
36374
|
}), children]
|
|
36366
|
-
})), loading === "default" && isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {}) : data.length == 0 && /*#__PURE__*/jsxRuntime.jsx(Placeholder, {
|
|
36375
|
+
})), loading === "default" && isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {}) : null, data.length == 0 && !isLoading ? /*#__PURE__*/jsxRuntime.jsx(Placeholder, {
|
|
36376
|
+
height: "90%",
|
|
36367
36377
|
empty: true,
|
|
36368
36378
|
textOnly: textPlaceholder,
|
|
36369
36379
|
msg: "No Data to show"
|
|
36370
|
-
})]
|
|
36371
|
-
}), cursorPagination || viewLength ? /*#__PURE__*/jsxRuntime.
|
|
36372
|
-
className: _JSXStyle.dynamic([["
|
|
36373
|
-
children: cursorPagination
|
|
36380
|
+
}) : null]
|
|
36381
|
+
}), cursorPagination || viewLength ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36382
|
+
className: _JSXStyle.dynamic([["638332526", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.background]]]) + " " + "table-footer",
|
|
36383
|
+
children: [cursorPagination && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
36374
36384
|
style: {
|
|
36375
36385
|
display: 'flex',
|
|
36376
|
-
gap: 10
|
|
36377
|
-
margin: '10px'
|
|
36386
|
+
gap: 10
|
|
36378
36387
|
},
|
|
36379
|
-
className: _JSXStyle.dynamic([["
|
|
36388
|
+
className: _JSXStyle.dynamic([["638332526", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.background]]]),
|
|
36380
36389
|
children: [/*#__PURE__*/jsxRuntime.jsx(Tooltip.Small, {
|
|
36381
36390
|
text: "Previous",
|
|
36382
36391
|
type: "dark",
|
|
@@ -36394,21 +36403,23 @@ function TableComponent(tableProps) {
|
|
|
36394
36403
|
text: "Next",
|
|
36395
36404
|
type: "dark",
|
|
36396
36405
|
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
36397
|
-
disabled: !nextCursor,
|
|
36406
|
+
disabled: !nextCursor || isLoading,
|
|
36398
36407
|
onClick: function onClick() {
|
|
36399
36408
|
return onNextPage && onNextPage(nextCursor);
|
|
36400
36409
|
},
|
|
36401
36410
|
auto: true,
|
|
36402
36411
|
px: 0.6,
|
|
36403
36412
|
scale: 2 / 3,
|
|
36404
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
36413
|
+
iconRight: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
36414
|
+
width: "20px",
|
|
36415
|
+
height: "20px"
|
|
36416
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(icons.ChevronRight, {})
|
|
36405
36417
|
})
|
|
36406
36418
|
})]
|
|
36407
|
-
})
|
|
36419
|
+
}), dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
|
|
36408
36420
|
style: {
|
|
36409
36421
|
marginLeft: '10px',
|
|
36410
|
-
marginRight: '10px'
|
|
36411
|
-
marginTop: '10px'
|
|
36422
|
+
marginRight: '10px'
|
|
36412
36423
|
},
|
|
36413
36424
|
onChange: function onChange(pageNumber) {
|
|
36414
36425
|
// Get the range for the current page
|
|
@@ -36424,11 +36435,11 @@ function TableComponent(tableProps) {
|
|
|
36424
36435
|
}), /*#__PURE__*/jsxRuntime.jsx(Pagination.Previous, {
|
|
36425
36436
|
children: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronLeft, {})
|
|
36426
36437
|
})]
|
|
36427
|
-
}) : null
|
|
36438
|
+
}) : null]
|
|
36428
36439
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
36429
|
-
id: "
|
|
36440
|
+
id: "638332526",
|
|
36430
36441
|
dynamic: [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.background],
|
|
36431
|
-
children: "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.table-footer.__jsx-style-dynamic-selector{background-color:").concat(theme$1.palette.background, ";width:100%;bottom:0;}")
|
|
36442
|
+
children: "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.table-footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:").concat(theme$1.palette.background, ";width:100%;bottom:0;padding:10px;}")
|
|
36432
36443
|
})]
|
|
36433
36444
|
})
|
|
36434
36445
|
});
|