@helpdice/ui 2.5.8 → 2.6.0-beta.0

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.
@@ -737,81 +737,6 @@ var InputLabel = function InputLabel(_ref) {
737
737
  };
738
738
  var MemoInputLabel = /*#__PURE__*/React.memo(InputLabel);
739
739
 
740
- var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
741
- var children = _ref.children;
742
- var theme$1 = theme.useTheme();
743
- return /*#__PURE__*/jsxRuntime.jsxs("label", {
744
- className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]]),
745
- children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
746
- id: "1278828862",
747
- dynamic: [theme$1.palette.accents_6],
748
- 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;}")
749
- })]
750
- });
751
- };
752
- InputBlockLabelComponent.displayName = 'InputBlockLabel';
753
- var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
754
-
755
- var InputIconComponent = function InputIconComponent(_ref) {
756
- var icon = _ref.icon,
757
- _ref$clickable = _ref.clickable,
758
- clickable = _ref$clickable === void 0 ? false : _ref$clickable,
759
- onClick = _ref.onClick;
760
- return /*#__PURE__*/jsxRuntime.jsxs("span", {
761
- onClick: onClick,
762
- className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
763
- children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
764
- id: "4247656379",
765
- dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
766
- 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);}")
767
- })]
768
- });
769
- };
770
- InputIconComponent.displayName = 'InputIcon';
771
- var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
772
-
773
- var InputIconClear = function InputIconClear(_ref) {
774
- var onClick = _ref.onClick,
775
- disabled = _ref.disabled,
776
- visible = _ref.visible;
777
- var theme$1 = theme.useTheme();
778
- var classes = theme.useClasses('clear-icon', {
779
- visible: visible
780
- });
781
- var clickHandler = function clickHandler(event) {
782
- event.preventDefault();
783
- event.stopPropagation();
784
- event.nativeEvent.stopImmediatePropagation();
785
- onClick && onClick(event);
786
- };
787
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
788
- onClick: clickHandler,
789
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
790
- children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
791
- viewBox: "0 0 24 24",
792
- stroke: "currentColor",
793
- strokeWidth: "1.5",
794
- strokeLinecap: "round",
795
- strokeLinejoin: "round",
796
- fill: "none",
797
- shapeRendering: "geometricPrecision",
798
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
799
- children: [/*#__PURE__*/jsxRuntime.jsx("path", {
800
- d: "M18 6L6 18",
801
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
802
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
803
- d: "M6 6l12 12",
804
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
805
- })]
806
- }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
807
- id: "1567030211",
808
- dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
809
- 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);}")
810
- })]
811
- });
812
- };
813
- var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
814
-
815
740
  /* "use client" */
816
741
 
817
742
  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'];
@@ -1009,6 +934,88 @@ var withScale = function withScale(Render) {
1009
934
  return ScaleFC;
1010
935
  };
1011
936
 
937
+ var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
938
+ var children = _ref.children,
939
+ _ref$required = _ref.required,
940
+ required = _ref$required === void 0 ? false : _ref$required;
941
+ var theme$1 = theme.useTheme();
942
+ var _useScale = useScale(),
943
+ SCALES = _useScale.SCALES;
944
+ return /*#__PURE__*/jsxRuntime.jsxs("label", {
945
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]),
946
+ children: [children, required && /*#__PURE__*/jsxRuntime.jsx("span", {
947
+ className: _JSXStyle.dynamic([["588038827", [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)]]]) + " " + "mark-error",
948
+ children: "*"
949
+ }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
950
+ id: "588038827",
951
+ dynamic: [typeof children === "string" ? 'block' : 'flex', theme$1.palette.accents_6, theme$1.palette.errorDark, SCALES.font(1.2)],
952
+ 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;}")
953
+ })]
954
+ });
955
+ };
956
+ InputBlockLabelComponent.displayName = 'InputBlockLabel';
957
+ var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
958
+
959
+ var InputIconComponent = function InputIconComponent(_ref) {
960
+ var icon = _ref.icon,
961
+ _ref$clickable = _ref.clickable,
962
+ clickable = _ref$clickable === void 0 ? false : _ref$clickable,
963
+ onClick = _ref.onClick;
964
+ return /*#__PURE__*/jsxRuntime.jsxs("span", {
965
+ onClick: onClick,
966
+ className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
967
+ children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
968
+ id: "4247656379",
969
+ dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
970
+ 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);}")
971
+ })]
972
+ });
973
+ };
974
+ InputIconComponent.displayName = 'InputIcon';
975
+ var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
976
+
977
+ var InputIconClear = function InputIconClear(_ref) {
978
+ var onClick = _ref.onClick,
979
+ disabled = _ref.disabled,
980
+ visible = _ref.visible;
981
+ var theme$1 = theme.useTheme();
982
+ var classes = theme.useClasses('clear-icon', {
983
+ visible: visible
984
+ });
985
+ var clickHandler = function clickHandler(event) {
986
+ event.preventDefault();
987
+ event.stopPropagation();
988
+ event.nativeEvent.stopImmediatePropagation();
989
+ onClick && onClick(event);
990
+ };
991
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
992
+ onClick: clickHandler,
993
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
994
+ children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
995
+ viewBox: "0 0 24 24",
996
+ stroke: "currentColor",
997
+ strokeWidth: "1.5",
998
+ strokeLinecap: "round",
999
+ strokeLinejoin: "round",
1000
+ fill: "none",
1001
+ shapeRendering: "geometricPrecision",
1002
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
1003
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
1004
+ d: "M18 6L6 18",
1005
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
1006
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
1007
+ d: "M6 6l12 12",
1008
+ className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
1009
+ })]
1010
+ }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
1011
+ id: "1567030211",
1012
+ dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
1013
+ 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);}")
1014
+ })]
1015
+ });
1016
+ };
1017
+ var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
1018
+
1012
1019
  var _excluded$9 = ["children", "tag", "className", "color"];
1013
1020
  var getTypeColor = function getTypeColor(type, palette) {
1014
1021
  var colors = {
@@ -1888,7 +1895,7 @@ var getColors = function getColors(palette, status) {
1888
1895
  return colors[status];
1889
1896
  };
1890
1897
 
1891
- var _excluded$4 = ["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"];
1898
+ var _excluded$4 = ["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"];
1892
1899
  var simulateChangeEvent = function simulateChangeEvent(el, event) {
1893
1900
  return _objectSpread2(_objectSpread2({}, event), {}, {
1894
1901
  target: el,
@@ -1934,6 +1941,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1934
1941
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1935
1942
  _ref$fullWidth = _ref.fullWidth,
1936
1943
  fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
1944
+ required = _ref.required,
1937
1945
  props = _objectWithoutProperties(_ref, _excluded$4);
1938
1946
  var theme$1 = theme.useTheme();
1939
1947
  var _useScale = useScale(),
@@ -2019,6 +2027,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2019
2027
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2020
2028
  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",
2021
2029
  children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
2030
+ required: required,
2022
2031
  children: children
2023
2032
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2024
2033
  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) || ""),
@@ -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;
package/dist/index.js CHANGED
@@ -8,7 +8,6 @@ var framerMotion = require('framer-motion');
8
8
  var reactDom = require('react-dom');
9
9
  var reactDom$1 = require('@floating-ui/react-dom');
10
10
  var pro = require('@helpdice/pro');
11
- var Loading$1 = require('components/loading');
12
11
  var reactSyntaxHighlighter = require('react-syntax-highlighter');
13
12
  var prism = require('react-syntax-highlighter/dist/cjs/styles/prism');
14
13
  var require$$0 = require('react-is');
@@ -966,81 +965,6 @@ var InputLabel = function InputLabel(_ref) {
966
965
  };
967
966
  var MemoInputLabel = /*#__PURE__*/React.memo(InputLabel);
968
967
 
969
- var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
970
- var children = _ref.children;
971
- var theme$1 = theme.useTheme();
972
- return /*#__PURE__*/jsxRuntime.jsxs("label", {
973
- className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]]),
974
- children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
975
- id: "1278828862",
976
- dynamic: [theme$1.palette.accents_6],
977
- 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;}")
978
- })]
979
- });
980
- };
981
- InputBlockLabelComponent.displayName = 'InputBlockLabel';
982
- var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
983
-
984
- var InputIconComponent = function InputIconComponent(_ref) {
985
- var icon = _ref.icon,
986
- _ref$clickable = _ref.clickable,
987
- clickable = _ref$clickable === void 0 ? false : _ref$clickable,
988
- onClick = _ref.onClick;
989
- return /*#__PURE__*/jsxRuntime.jsxs("span", {
990
- onClick: onClick,
991
- className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
992
- children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
993
- id: "4247656379",
994
- dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
995
- 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);}")
996
- })]
997
- });
998
- };
999
- InputIconComponent.displayName = 'InputIcon';
1000
- var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
1001
-
1002
- var InputIconClear = function InputIconClear(_ref) {
1003
- var onClick = _ref.onClick,
1004
- disabled = _ref.disabled,
1005
- visible = _ref.visible;
1006
- var theme$1 = theme.useTheme();
1007
- var classes = theme.useClasses('clear-icon', {
1008
- visible: visible
1009
- });
1010
- var clickHandler = function clickHandler(event) {
1011
- event.preventDefault();
1012
- event.stopPropagation();
1013
- event.nativeEvent.stopImmediatePropagation();
1014
- onClick && onClick(event);
1015
- };
1016
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
1017
- onClick: clickHandler,
1018
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
1019
- children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
1020
- viewBox: "0 0 24 24",
1021
- stroke: "currentColor",
1022
- strokeWidth: "1.5",
1023
- strokeLinecap: "round",
1024
- strokeLinejoin: "round",
1025
- fill: "none",
1026
- shapeRendering: "geometricPrecision",
1027
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
1028
- children: [/*#__PURE__*/jsxRuntime.jsx("path", {
1029
- d: "M18 6L6 18",
1030
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
1031
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
1032
- d: "M6 6l12 12",
1033
- className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
1034
- })]
1035
- }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
1036
- id: "1567030211",
1037
- dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
1038
- 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);}")
1039
- })]
1040
- });
1041
- };
1042
- var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
1043
-
1044
968
  /* "use client" */
1045
969
 
1046
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'];
@@ -1341,6 +1265,88 @@ var withScale = function withScale(Render) {
1341
1265
  return ScaleFC;
1342
1266
  };
1343
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
+
1344
1350
  var _excluded$1n = ["children", "tag", "className", "color"];
1345
1351
  var getTypeColor = function getTypeColor(type, palette) {
1346
1352
  var colors = {
@@ -2220,7 +2226,7 @@ var getColors$7 = function getColors(palette, status) {
2220
2226
  return colors[status];
2221
2227
  };
2222
2228
 
2223
- 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"];
2224
2230
  var simulateChangeEvent = function simulateChangeEvent(el, event) {
2225
2231
  return _objectSpread2(_objectSpread2({}, event), {}, {
2226
2232
  target: el,
@@ -2266,6 +2272,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2266
2272
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
2267
2273
  _ref$fullWidth = _ref.fullWidth,
2268
2274
  fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
2275
+ required = _ref.required,
2269
2276
  props = _objectWithoutProperties(_ref, _excluded$1i);
2270
2277
  var theme$1 = theme.useTheme();
2271
2278
  var _useScale = useScale(),
@@ -2351,6 +2358,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2351
2358
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2352
2359
  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",
2353
2360
  children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
2361
+ required: required,
2354
2362
  children: children
2355
2363
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2356
2364
  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) || ""),
@@ -36333,16 +36341,16 @@ function TableComponent(tableProps) {
36333
36341
  borderBottomLeftRadius: '5px',
36334
36342
  borderBottomRightRadius: '5px'
36335
36343
  },
36336
- 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]]]),
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]]]),
36337
36345
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
36338
36346
  style: _objectSpread2({
36339
36347
  overflow: 'auto'
36340
36348
  }, containerStyle),
36341
- 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]]]),
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]]]),
36342
36350
  children: [/*#__PURE__*/jsxRuntime.jsxs("table", _objectSpread2(_objectSpread2({
36343
36351
  ref: ref
36344
36352
  }, props), {}, {
36345
- 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 || ""),
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 || ""),
36346
36354
  children: [/*#__PURE__*/jsxRuntime.jsx(TableHead, {
36347
36355
  stickyHeader: stickyHeader,
36348
36356
  onFilters: onFilters,
@@ -36364,20 +36372,20 @@ function TableComponent(tableProps) {
36364
36372
  readOnly: readOnly,
36365
36373
  onSelected: onSelected
36366
36374
  }), children]
36367
- })), loading === "default" && isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading$1, {}) : 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%",
36368
36377
  empty: true,
36369
36378
  textOnly: textPlaceholder,
36370
36379
  msg: "No Data to show"
36371
- })]
36372
- }), cursorPagination || viewLength ? /*#__PURE__*/jsxRuntime.jsx("div", {
36373
- 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",
36374
- children: cursorPagination ? /*#__PURE__*/jsxRuntime.jsxs("div", {
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", {
36375
36384
  style: {
36376
36385
  display: 'flex',
36377
- gap: 10,
36378
- margin: '10px'
36386
+ gap: 10
36379
36387
  },
36380
- 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]]]),
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]]]),
36381
36389
  children: [/*#__PURE__*/jsxRuntime.jsx(Tooltip.Small, {
36382
36390
  text: "Previous",
36383
36391
  type: "dark",
@@ -36395,21 +36403,23 @@ function TableComponent(tableProps) {
36395
36403
  text: "Next",
36396
36404
  type: "dark",
36397
36405
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
36398
- disabled: !nextCursor,
36406
+ disabled: !nextCursor || isLoading,
36399
36407
  onClick: function onClick() {
36400
36408
  return onNextPage && onNextPage(nextCursor);
36401
36409
  },
36402
36410
  auto: true,
36403
36411
  px: 0.6,
36404
36412
  scale: 2 / 3,
36405
- iconRight: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronRight, {})
36413
+ iconRight: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
36414
+ width: "20px",
36415
+ height: "20px"
36416
+ }) : /*#__PURE__*/jsxRuntime.jsx(icons.ChevronRight, {})
36406
36417
  })
36407
36418
  })]
36408
- }) : dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
36419
+ }), dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
36409
36420
  style: {
36410
36421
  marginLeft: '10px',
36411
- marginRight: '10px',
36412
- marginTop: '10px'
36422
+ marginRight: '10px'
36413
36423
  },
36414
36424
  onChange: function onChange(pageNumber) {
36415
36425
  // Get the range for the current page
@@ -36425,11 +36435,11 @@ function TableComponent(tableProps) {
36425
36435
  }), /*#__PURE__*/jsxRuntime.jsx(Pagination.Previous, {
36426
36436
  children: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronLeft, {})
36427
36437
  })]
36428
- }) : null
36438
+ }) : null]
36429
36439
  }) : null, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
36430
- id: "1809040460",
36440
+ id: "638332526",
36431
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],
36432
- 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;}")
36433
36443
  })]
36434
36444
  })
36435
36445
  });