@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.
@@ -744,81 +744,6 @@ var InputLabel = function InputLabel(_ref) {
744
744
  };
745
745
  var MemoInputLabel = /*#__PURE__*/React.memo(InputLabel);
746
746
 
747
- var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
748
- var children = _ref.children;
749
- var theme$1 = theme.useTheme();
750
- return /*#__PURE__*/jsxRuntime.jsxs("label", {
751
- className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]]),
752
- children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
753
- id: "1278828862",
754
- dynamic: [theme$1.palette.accents_6],
755
- 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;}")
756
- })]
757
- });
758
- };
759
- InputBlockLabelComponent.displayName = 'InputBlockLabel';
760
- var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
761
-
762
- var InputIconComponent = function InputIconComponent(_ref) {
763
- var icon = _ref.icon,
764
- _ref$clickable = _ref.clickable,
765
- clickable = _ref$clickable === void 0 ? false : _ref$clickable,
766
- onClick = _ref.onClick;
767
- return /*#__PURE__*/jsxRuntime.jsxs("span", {
768
- onClick: onClick,
769
- className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
770
- children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
771
- id: "4247656379",
772
- dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
773
- 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);}")
774
- })]
775
- });
776
- };
777
- InputIconComponent.displayName = 'InputIcon';
778
- var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
779
-
780
- var InputIconClear = function InputIconClear(_ref) {
781
- var onClick = _ref.onClick,
782
- disabled = _ref.disabled,
783
- visible = _ref.visible;
784
- var theme$1 = theme.useTheme();
785
- var classes = theme.useClasses('clear-icon', {
786
- visible: visible
787
- });
788
- var clickHandler = function clickHandler(event) {
789
- event.preventDefault();
790
- event.stopPropagation();
791
- event.nativeEvent.stopImmediatePropagation();
792
- onClick && onClick(event);
793
- };
794
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
795
- onClick: clickHandler,
796
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
797
- children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
798
- viewBox: "0 0 24 24",
799
- stroke: "currentColor",
800
- strokeWidth: "1.5",
801
- strokeLinecap: "round",
802
- strokeLinejoin: "round",
803
- fill: "none",
804
- shapeRendering: "geometricPrecision",
805
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
806
- children: [/*#__PURE__*/jsxRuntime.jsx("path", {
807
- d: "M18 6L6 18",
808
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
809
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
810
- d: "M6 6l12 12",
811
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
812
- })]
813
- }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
814
- id: "1567030211",
815
- dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
816
- 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);}")
817
- })]
818
- });
819
- };
820
- var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
821
-
822
747
  /* "use client" */
823
748
 
824
749
  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'];
@@ -1045,6 +970,88 @@ var withScale = function withScale(Render) {
1045
970
  return ScaleFC;
1046
971
  };
1047
972
 
973
+ var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
974
+ var children = _ref.children,
975
+ _ref$required = _ref.required,
976
+ required = _ref$required === void 0 ? false : _ref$required;
977
+ var theme$1 = theme.useTheme();
978
+ var _useScale = useScale(),
979
+ SCALES = _useScale.SCALES;
980
+ return /*#__PURE__*/jsxRuntime.jsxs("label", {
981
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]),
982
+ children: [children, required && /*#__PURE__*/jsxRuntime.jsx("span", {
983
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]) + " " + "mark-error",
984
+ children: "*"
985
+ }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
986
+ id: "588038827",
987
+ dynamic: [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)],
988
+ 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;}")
989
+ })]
990
+ });
991
+ };
992
+ InputBlockLabelComponent.displayName = 'InputBlockLabel';
993
+ var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
994
+
995
+ var InputIconComponent = function InputIconComponent(_ref) {
996
+ var icon = _ref.icon,
997
+ _ref$clickable = _ref.clickable,
998
+ clickable = _ref$clickable === void 0 ? false : _ref$clickable,
999
+ onClick = _ref.onClick;
1000
+ return /*#__PURE__*/jsxRuntime.jsxs("span", {
1001
+ onClick: onClick,
1002
+ className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
1003
+ children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
1004
+ id: "4247656379",
1005
+ dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
1006
+ 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);}")
1007
+ })]
1008
+ });
1009
+ };
1010
+ InputIconComponent.displayName = 'InputIcon';
1011
+ var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
1012
+
1013
+ var InputIconClear = function InputIconClear(_ref) {
1014
+ var onClick = _ref.onClick,
1015
+ disabled = _ref.disabled,
1016
+ visible = _ref.visible;
1017
+ var theme$1 = theme.useTheme();
1018
+ var classes = theme.useClasses('clear-icon', {
1019
+ visible: visible
1020
+ });
1021
+ var clickHandler = function clickHandler(event) {
1022
+ event.preventDefault();
1023
+ event.stopPropagation();
1024
+ event.nativeEvent.stopImmediatePropagation();
1025
+ onClick && onClick(event);
1026
+ };
1027
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
1028
+ onClick: clickHandler,
1029
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
1030
+ children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
1031
+ viewBox: "0 0 24 24",
1032
+ stroke: "currentColor",
1033
+ strokeWidth: "1.5",
1034
+ strokeLinecap: "round",
1035
+ strokeLinejoin: "round",
1036
+ fill: "none",
1037
+ shapeRendering: "geometricPrecision",
1038
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
1039
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
1040
+ d: "M18 6L6 18",
1041
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
1042
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
1043
+ d: "M6 6l12 12",
1044
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
1045
+ })]
1046
+ }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
1047
+ id: "1567030211",
1048
+ dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
1049
+ 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);}")
1050
+ })]
1051
+ });
1052
+ };
1053
+ var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
1054
+
1048
1055
  var _excluded$i = ["children", "tag", "className", "color"];
1049
1056
  var getTypeColor = function getTypeColor(type, palette) {
1050
1057
  var colors = {
@@ -1924,7 +1931,7 @@ var getColors$2 = function getColors(palette, status) {
1924
1931
  return colors[status];
1925
1932
  };
1926
1933
 
1927
- var _excluded$d = ["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"];
1934
+ var _excluded$d = ["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"];
1928
1935
  var simulateChangeEvent = function simulateChangeEvent(el, event) {
1929
1936
  return _objectSpread2(_objectSpread2({}, event), {}, {
1930
1937
  target: el,
@@ -1970,6 +1977,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1970
1977
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1971
1978
  _ref$fullWidth = _ref.fullWidth,
1972
1979
  fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
1980
+ required = _ref.required,
1973
1981
  props = _objectWithoutProperties(_ref, _excluded$d);
1974
1982
  var theme$1 = theme.useTheme();
1975
1983
  var _useScale = useScale(),
@@ -1998,7 +2006,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1998
2006
  }, [icon, iconRight]);
1999
2007
  var _useMemo = React.useMemo(function () {
2000
2008
  return getColors$2(theme$1.palette, _color);
2001
- }, [theme$1.palette, type]),
2009
+ }, [theme$1.palette, _color]),
2002
2010
  color = _useMemo.color,
2003
2011
  borderColor = _useMemo.borderColor,
2004
2012
  hoverBorder = _useMemo.hoverBorder;
@@ -2053,15 +2061,16 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2053
2061
  var inputProps = _objectSpread2(_objectSpread2({}, props), controlledValue);
2054
2062
  var defaultWidth = fullWidth ? '100%' : 'initial';
2055
2063
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2056
- className: _JSXStyle.dynamic([["1343268165", [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), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + "with-label",
2064
+ 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",
2057
2065
  children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
2066
+ required: required,
2058
2067
  children: children
2059
2068
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2060
- className: _JSXStyle.dynamic([["1343268165", [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), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (theme.useClasses('input-container', className) || ""),
2069
+ 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) || ""),
2061
2070
  children: [label && /*#__PURE__*/jsxRuntime.jsx(MemoInputLabel, {
2062
2071
  children: label
2063
2072
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2064
- className: _JSXStyle.dynamic([["1343268165", [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), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (theme.useClasses('input-wrapper', {
2073
+ 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', {
2065
2074
  hover: hover,
2066
2075
  disabled: disabled
2067
2076
  }, labelClasses) || ""),
@@ -2079,7 +2088,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2079
2088
  autoComplete: autoComplete,
2080
2089
  onKeyDown: handleKeyDown
2081
2090
  }, inputProps), {}, {
2082
- className: _JSXStyle.dynamic([["1343268165", [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), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (inputProps && inputProps.className != null && inputProps.className || theme.useClasses({
2091
+ 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({
2083
2092
  disabled: disabled
2084
2093
  }, iconClasses) || "")
2085
2094
  })), clearable && /*#__PURE__*/jsxRuntime.jsx(MemoInputIconClear, {
@@ -2093,7 +2102,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2093
2102
  isRight: true,
2094
2103
  children: labelRight
2095
2104
  }), /*#__PURE__*/jsxRuntime.jsx("br", {
2096
- className: _JSXStyle.dynamic([["1343268165", [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), color, theme$1.palette.accents_3, theme$1.palette.background, color]]])
2105
+ 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]]])
2097
2106
  })]
2098
2107
  }), helperText && /*#__PURE__*/jsxRuntime.jsxs(Text, {
2099
2108
  font: 0.8,
@@ -2107,9 +2116,9 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2107
2116
  color: error ? "error" : 'default',
2108
2117
  children: ["\xA0", helperText]
2109
2118
  }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
2110
- id: "1343268165",
2111
- 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), color, theme$1.palette.accents_3, theme$1.palette.background, color],
2112
- 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(color, ";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;}")
2119
+ id: "2371903369",
2120
+ 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],
2121
+ 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;}")
2113
2122
  })]
2114
2123
  });
2115
2124
  });
@@ -24163,16 +24172,16 @@ function TableComponent(tableProps) {
24163
24172
  borderBottomLeftRadius: '5px',
24164
24173
  borderBottomRightRadius: '5px'
24165
24174
  },
24166
- className: _JSXStyle.dynamic([["1809040460", [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]]]),
24175
+ 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]]]),
24167
24176
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
24168
24177
  style: _objectSpread2({
24169
24178
  overflow: 'auto'
24170
24179
  }, containerStyle),
24171
- className: _JSXStyle.dynamic([["1809040460", [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]]]),
24180
+ 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]]]),
24172
24181
  children: [/*#__PURE__*/jsxRuntime.jsxs("table", _objectSpread2(_objectSpread2({
24173
24182
  ref: ref
24174
24183
  }, props), {}, {
24175
- className: _JSXStyle.dynamic([["1809040460", [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 || ""),
24184
+ 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 || ""),
24176
24185
  children: [/*#__PURE__*/jsxRuntime.jsx(TableHead, {
24177
24186
  stickyHeader: stickyHeader,
24178
24187
  onFilters: onFilters,
@@ -24194,20 +24203,20 @@ function TableComponent(tableProps) {
24194
24203
  readOnly: readOnly,
24195
24204
  onSelected: onSelected
24196
24205
  }), children]
24197
- })), loading === "default" && isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {}) : data.length == 0 && /*#__PURE__*/jsxRuntime.jsx(Placeholder, {
24206
+ })), loading === "default" && isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {}) : null, data.length == 0 && !isLoading ? /*#__PURE__*/jsxRuntime.jsx(Placeholder, {
24207
+ height: "90%",
24198
24208
  empty: true,
24199
24209
  textOnly: textPlaceholder,
24200
24210
  msg: "No Data to show"
24201
- })]
24202
- }), cursorPagination || viewLength ? /*#__PURE__*/jsxRuntime.jsx("div", {
24203
- className: _JSXStyle.dynamic([["1809040460", [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",
24204
- children: cursorPagination ? /*#__PURE__*/jsxRuntime.jsxs("div", {
24211
+ }) : null]
24212
+ }), cursorPagination || viewLength ? /*#__PURE__*/jsxRuntime.jsxs("div", {
24213
+ 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",
24214
+ children: [cursorPagination && /*#__PURE__*/jsxRuntime.jsxs("div", {
24205
24215
  style: {
24206
24216
  display: 'flex',
24207
- gap: 10,
24208
- margin: '10px'
24217
+ gap: 10
24209
24218
  },
24210
- className: _JSXStyle.dynamic([["1809040460", [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]]]),
24219
+ 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]]]),
24211
24220
  children: [/*#__PURE__*/jsxRuntime.jsx(Tooltip.Small, {
24212
24221
  text: "Previous",
24213
24222
  type: "dark",
@@ -24225,21 +24234,23 @@ function TableComponent(tableProps) {
24225
24234
  text: "Next",
24226
24235
  type: "dark",
24227
24236
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
24228
- disabled: !nextCursor,
24237
+ disabled: !nextCursor || isLoading,
24229
24238
  onClick: function onClick() {
24230
24239
  return onNextPage && onNextPage(nextCursor);
24231
24240
  },
24232
24241
  auto: true,
24233
24242
  px: 0.6,
24234
24243
  scale: 2 / 3,
24235
- iconRight: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronRight, {})
24244
+ iconRight: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
24245
+ width: "20px",
24246
+ height: "20px"
24247
+ }) : /*#__PURE__*/jsxRuntime.jsx(icons.ChevronRight, {})
24236
24248
  })
24237
24249
  })]
24238
- }) : dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
24250
+ }), dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
24239
24251
  style: {
24240
24252
  marginLeft: '10px',
24241
- marginRight: '10px',
24242
- marginTop: '10px'
24253
+ marginRight: '10px'
24243
24254
  },
24244
24255
  onChange: function onChange(pageNumber) {
24245
24256
  // Get the range for the current page
@@ -24255,11 +24266,11 @@ function TableComponent(tableProps) {
24255
24266
  }), /*#__PURE__*/jsxRuntime.jsx(Pagination.Previous, {
24256
24267
  children: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronLeft, {})
24257
24268
  })]
24258
- }) : null
24269
+ }) : null]
24259
24270
  }) : null, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
24260
- id: "1809040460",
24271
+ id: "638332526",
24261
24272
  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],
24262
- 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;}")
24273
+ 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;}")
24263
24274
  })]
24264
24275
  })
24265
24276
  });
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { RowErrorMap, TableDataItemBase, TableOnCellClick, TableOnChange, TableOnRowClick, TableRowClassNameHandler } from './table-types';
3
3
  import { ScaleProps } from '../use-scale';
4
4
  interface Props<TableDataItem extends TableDataItemBase> {
@@ -26,7 +26,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
26
26
  nextCursor?: string;
27
27
  hasMore?: boolean;
28
28
  rowErrors?: RowErrorMap;
29
- containerStyle?: object;
29
+ containerStyle?: CSSProperties;
30
30
  loading?: string;
31
31
  isLoading?: boolean;
32
32
  onNextPage?: (next?: string) => void;
@@ -1788,14 +1788,21 @@ TextComponent.displayName = 'Text';
1788
1788
  var Text = withScale(TextComponent);
1789
1789
 
1790
1790
  var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
1791
- var children = _ref.children;
1791
+ var children = _ref.children,
1792
+ _ref$required = _ref.required,
1793
+ required = _ref$required === void 0 ? false : _ref$required;
1792
1794
  var theme$1 = theme.useTheme();
1795
+ var _useScale = useScale(),
1796
+ SCALES = _useScale.SCALES;
1793
1797
  return /*#__PURE__*/jsxRuntime.jsxs("label", {
1794
- className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]]),
1795
- children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
1796
- id: "1278828862",
1797
- dynamic: [theme$1.palette.accents_6],
1798
- 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;}")
1798
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]),
1799
+ children: [children, required && /*#__PURE__*/jsxRuntime.jsx("span", {
1800
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]) + " " + "mark-error",
1801
+ children: "*"
1802
+ }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
1803
+ id: "588038827",
1804
+ dynamic: [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)],
1805
+ 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;}")
1799
1806
  })]
1800
1807
  });
1801
1808
  };
@@ -7,7 +7,6 @@ export type GridProps = Props & GridBasicItemProps;
7
7
  declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item").GridBasicComponentProps & {
8
8
  children?: React.ReactNode;
9
9
  style?: React.CSSProperties | undefined;
10
- onClick?: React.MouseEventHandler<any> | undefined;
11
10
  onChange?: React.FormEventHandler<any> | undefined;
12
11
  defaultChecked?: boolean | undefined | undefined;
13
12
  defaultValue?: string | number | readonly string[] | undefined;
@@ -16,7 +15,7 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
16
15
  accessKey?: string | undefined | undefined;
17
16
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
18
17
  autoFocus?: boolean | undefined | undefined;
19
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
18
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
20
19
  contextMenu?: string | undefined | undefined;
21
20
  dir?: string | undefined | undefined;
22
21
  draggable?: (boolean | "true" | "false") | undefined;
@@ -201,6 +200,7 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
201
200
  onWaitingCapture?: React.ReactEventHandler<any> | undefined;
202
201
  onAuxClick?: React.MouseEventHandler<any> | undefined;
203
202
  onAuxClickCapture?: React.MouseEventHandler<any> | undefined;
203
+ onClick?: React.MouseEventHandler<any> | undefined;
204
204
  onClickCapture?: React.MouseEventHandler<any> | undefined;
205
205
  onContextMenu?: React.MouseEventHandler<any> | undefined;
206
206
  onContextMenuCapture?: React.MouseEventHandler<any> | undefined;
@@ -10,7 +10,6 @@ export type GridContainerProps = Props & GridBasicItemProps;
10
10
  declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./basic-item").GridBasicComponentProps & {
11
11
  children?: React.ReactNode;
12
12
  style?: React.CSSProperties | undefined;
13
- onClick?: React.MouseEventHandler<any> | undefined;
14
13
  onChange?: React.FormEventHandler<any> | undefined;
15
14
  defaultChecked?: boolean | undefined | undefined;
16
15
  defaultValue?: string | number | readonly string[] | undefined;
@@ -19,7 +18,7 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
19
18
  accessKey?: string | undefined | undefined;
20
19
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
21
20
  autoFocus?: boolean | undefined | undefined;
22
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
21
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
23
22
  contextMenu?: string | undefined | undefined;
24
23
  dir?: string | undefined | undefined;
25
24
  draggable?: (boolean | "true" | "false") | undefined;
@@ -204,6 +203,7 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
204
203
  onWaitingCapture?: React.ReactEventHandler<any> | undefined;
205
204
  onAuxClick?: React.MouseEventHandler<any> | undefined;
206
205
  onAuxClickCapture?: React.MouseEventHandler<any> | undefined;
206
+ onClick?: React.MouseEventHandler<any> | undefined;
207
207
  onClickCapture?: React.MouseEventHandler<any> | undefined;
208
208
  onContextMenu?: React.MouseEventHandler<any> | undefined;
209
209
  onContextMenuCapture?: React.MouseEventHandler<any> | undefined;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface InputBlockLabelLabel {
3
+ required?: boolean;
3
4
  }
4
5
  declare const InputBlockLabel: React.NamedExoticComponent<React.PropsWithChildren<InputBlockLabelLabel>>;
5
6
  export default InputBlockLabel;
@@ -1,15 +1,22 @@
1
1
  import _JSXStyle from "../styled-jsx.es.js";
2
2
  import React from 'react';
3
3
  import { useTheme } from '@helpdice/theme';
4
+ import useScale from '../use-scale';
4
5
  var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
5
- var children = _ref.children;
6
+ var children = _ref.children,
7
+ _ref$required = _ref.required,
8
+ required = _ref$required === void 0 ? false : _ref$required;
6
9
  var theme = useTheme();
10
+ var _useScale = useScale(),
11
+ SCALES = _useScale.SCALES;
7
12
  return /*#__PURE__*/React.createElement("label", {
8
- className: _JSXStyle.dynamic([["1278828862", [theme.palette.accents_6]]])
9
- }, children, /*#__PURE__*/React.createElement(_JSXStyle, {
10
- id: "1278828862",
11
- dynamic: [theme.palette.accents_6]
12
- }, "label.__jsx-style-dynamic-selector{display:block;font-weight:normal;color:".concat(theme.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;}")));
13
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme.palette.accents_6, theme.palette.errorDark, SCALES.font(1.2)]]])
14
+ }, children, required && /*#__PURE__*/React.createElement("span", {
15
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme.palette.accents_6, theme.palette.errorDark, SCALES.font(1.2)]]]) + " " + "mark-error"
16
+ }, "*"), /*#__PURE__*/React.createElement(_JSXStyle, {
17
+ id: "588038827",
18
+ dynamic: [typeof children === "string" ? 'block' : 'flex', theme.palette.accents_6, theme.palette.errorDark, SCALES.font(1.2)]
19
+ }, "label.__jsx-style-dynamic-selector{display:".concat(typeof children === "string" ? 'block' : 'flex', ";font-weight:normal;color:").concat(theme.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.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;}")));
13
20
  };
14
21
  InputBlockLabelComponent.displayName = 'InputBlockLabel';
15
22
  var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);