react-asc 25.17.2 → 25.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -542,7 +542,7 @@ declare class LoadingIndicatorService implements ILoadingIndicatorService {
542
542
  }
543
543
  declare const loadingIndicatorService: LoadingIndicatorService;
544
544
 
545
- type MenuPosition = 'right' | 'left';
545
+ type MenuPosition = 'right' | 'left' | 'bottom' | 'top';
546
546
 
547
547
  interface IMenuProps extends React$1.DetailedHTMLProps<React$1.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
548
548
  toggle?: ReactElement;
package/index.es.js CHANGED
@@ -5165,8 +5165,7 @@ styleInject(css_248z$E);
5165
5165
 
5166
5166
  const FormError = (props) => {
5167
5167
  const { className = styles$E.isInvalid, errors = [] } = props;
5168
- return (jsx(Fragment$2, { children: errors &&
5169
- jsx("div", { className: className, children: errors.map(e => jsx("div", { children: e.message }, e.validator)) }) }));
5168
+ return (jsx(Fragment$2, { children: errors && (jsx("div", { className: className, children: errors.map(e => (jsx("div", { children: e.message }, e.validator))) })) }));
5170
5169
  };
5171
5170
 
5172
5171
  const FormGroup = (props) => {
@@ -5188,7 +5187,7 @@ const FileInput = (props) => {
5188
5187
  const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
5189
5188
  const inputFileElement = useRef(null);
5190
5189
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5191
- const [model, setModel] = useState(value);
5190
+ const [model] = useState(value);
5192
5191
  const [fileList, setFileList] = useState();
5193
5192
  const getCssClasses = () => {
5194
5193
  const cssClasses = [];
@@ -5203,7 +5202,8 @@ const FileInput = (props) => {
5203
5202
  const handleOnDelete = () => {
5204
5203
  alert('coming soon');
5205
5204
  };
5206
- return (jsxs("div", { className: "d-flex align-items-start", children: [jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList && Array.from(fileList).map((file) => jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name)) }), jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
5205
+ return (jsxs("div", { className: "d-flex align-items-start", children: [jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList &&
5206
+ Array.from(fileList).map(file => (jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name))) }), jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
5207
5207
  };
5208
5208
 
5209
5209
  var css_248z$D = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
@@ -5423,9 +5423,9 @@ const EmailValidator = (value) => {
5423
5423
 
5424
5424
  const IsEqualValidator = (valueA, valueB) => valueA === valueB;
5425
5425
 
5426
- const MaxValidator = (val, valueB) => (val && val.length <= valueB) || false;
5426
+ const MaxValidator = (val, valueB) => (val && val.toString().length <= valueB) || false;
5427
5427
 
5428
- const MinValidator = (val, minLength) => (val && val.length >= minLength) || false;
5428
+ const MinValidator = (val, minLength) => (val && val.toString().length >= minLength) || false;
5429
5429
 
5430
5430
  class Form extends Component {
5431
5431
  constructor(props) {
@@ -5684,7 +5684,7 @@ const Row = ({ children, direction, className, ...rest }) => {
5684
5684
  };
5685
5685
 
5686
5686
  const DaySelect = (props) => {
5687
- const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
5687
+ const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange, } = props;
5688
5688
  useEffect(() => {
5689
5689
  init();
5690
5690
  }, [month, year]);
@@ -5711,7 +5711,20 @@ const DaySelect = (props) => {
5711
5711
  };
5712
5712
 
5713
5713
  const MonthSelect = (props) => {
5714
- const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
5714
+ const months = [
5715
+ 'January',
5716
+ 'February',
5717
+ 'March',
5718
+ 'April',
5719
+ 'May',
5720
+ 'June',
5721
+ 'July',
5722
+ 'August',
5723
+ 'September',
5724
+ 'October',
5725
+ 'November',
5726
+ 'December',
5727
+ ];
5715
5728
  const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
5716
5729
  const [newValue, setNewValue] = useState(value);
5717
5730
  const [monthOptions, setMonthOptions] = useState();
@@ -5826,7 +5839,7 @@ var styles$v = {"expansionPanelContent":"ExpansionPanelContent-module_expansionP
5826
5839
  styleInject(css_248z$v);
5827
5840
 
5828
5841
  const ExpansionPanelContent = ({ children }) => {
5829
- return (jsx("div", { className: styles$v.expansionPanelContent, children: children }));
5842
+ return jsx("div", { className: styles$v.expansionPanelContent, children: children });
5830
5843
  };
5831
5844
 
5832
5845
  var css_248z$u = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
@@ -5930,7 +5943,7 @@ const MenuBody = (props) => {
5930
5943
  },
5931
5944
  },
5932
5945
  },
5933
- ]
5946
+ ],
5934
5947
  });
5935
5948
  setPopperInstance(popperInstance);
5936
5949
  }
@@ -5951,7 +5964,7 @@ const MenuBody = (props) => {
5951
5964
  useOnDestroy(() => {
5952
5965
  popperInstance?.destroy();
5953
5966
  });
5954
- return (jsxs(Portal$1, { className: 'menu-root', children: [jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsx(List, { children: children }) }), jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
5967
+ return (jsxs(Portal$1, { className: "menu-root", children: [jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsx(List, { children: children }) }), jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
5955
5968
  };
5956
5969
 
5957
5970
  const Menu = (props) => {
@@ -5966,8 +5979,7 @@ const Menu = (props) => {
5966
5979
  const handleClickBackdrop = () => {
5967
5980
  onClickBackdrop && onClickBackdrop();
5968
5981
  };
5969
- return (jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
5970
- jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
5982
+ return (jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsx("div", { className: "d-inline", ref: toggleContainerRef, children: toggle }), open && (jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children }))] }));
5971
5983
  };
5972
5984
 
5973
5985
  const MenuItem = (props) => {
@@ -6001,7 +6013,7 @@ var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n
6001
6013
  var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
6002
6014
  styleInject(css_248z$o);
6003
6015
 
6004
- const ModalBody = ({ children }) => (jsx("div", { className: styles$o.modalBody, children: children }));
6016
+ const ModalBody = ({ children }) => jsx("div", { className: styles$o.modalBody, children: children });
6005
6017
 
6006
6018
  var css_248z$n = ".ModalFooter-module_modalFooter__SNm-f {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: flex-end;\n padding: 0.75rem;\n border-bottom-right-radius: calc(0.3rem - 1px);\n border-bottom-left-radius: calc(0.3rem - 1px);\n}\n.ModalFooter-module_modalFooter__SNm-f.ModalFooter-module_shadow__z29Cy {\n box-shadow: var(--shadow);\n}\n.ModalFooter-module_modalFooter__SNm-f > * {\n margin: 0.25rem;\n}";
6007
6019
  var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
@@ -6576,7 +6588,7 @@ const StepperActions = (props) => {
6576
6588
 
6577
6589
  const StepPanel = (props) => {
6578
6590
  const { children } = props;
6579
- return (jsx("div", { className: "steppanel", children: children }));
6591
+ return jsx("div", { className: "steppanel", children: children });
6580
6592
  };
6581
6593
 
6582
6594
  var css_248z$a = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
@@ -7001,7 +7013,7 @@ var TIMEMODE;
7001
7013
  TIMEMODE[TIMEMODE["MILLISECONDS"] = 3] = "MILLISECONDS";
7002
7014
  })(TIMEMODE || (TIMEMODE = {}));
7003
7015
  const TimeSelect = (props) => {
7004
- const { className, value = new Date(), disabled, showHours = true, showMinutes = true, showSeconds = false, showMilliSeconds = false, onChange } = props;
7016
+ const { className, value = new Date(), disabled, showHours = true, showMinutes = true, showSeconds = false, showMilliSeconds = false, onChange, } = props;
7005
7017
  const [currDate, setCurrDate] = useState(value);
7006
7018
  const getCssClasses = () => {
7007
7019
  const cssClasses = [];
@@ -7021,11 +7033,7 @@ const TimeSelect = (props) => {
7021
7033
  setCurrDate(newDate);
7022
7034
  onChange && onChange(newDate);
7023
7035
  };
7024
- return (jsxs(Row, { className: getCssClasses(), children: [showHours &&
7025
- jsxs(Column, { children: [jsx(FormLabel, { children: "Hours" }), jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.HOUR) })] }), showMinutes &&
7026
- jsxs(Column, { children: [jsx(FormLabel, { children: "Minutes" }), jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })] }), showSeconds &&
7027
- jsxs(Column, { children: [jsx(FormLabel, { children: "Seconds" }), jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })] }), showMilliSeconds &&
7028
- jsxs(Column, { children: [jsx(FormLabel, { children: "Milliseconds" }), jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) })] })] }));
7036
+ return (jsxs(Row, { className: getCssClasses(), children: [showHours && (jsxs(Column, { children: [jsx(FormLabel, { children: "Hours" }), jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.HOUR) })] })), showMinutes && (jsxs(Column, { children: [jsx(FormLabel, { children: "Minutes" }), jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })] })), showSeconds && (jsxs(Column, { children: [jsx(FormLabel, { children: "Seconds" }), jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })] })), showMilliSeconds && (jsxs(Column, { children: [jsx(FormLabel, { children: "Milliseconds" }), jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) })] }))] }));
7029
7037
  };
7030
7038
 
7031
7039
  var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
package/index.js CHANGED
@@ -5167,8 +5167,7 @@ styleInject(css_248z$E);
5167
5167
 
5168
5168
  const FormError = (props) => {
5169
5169
  const { className = styles$E.isInvalid, errors = [] } = props;
5170
- return (jsxRuntime.jsx(React.Fragment, { children: errors &&
5171
- jsxRuntime.jsx("div", { className: className, children: errors.map(e => jsxRuntime.jsx("div", { children: e.message }, e.validator)) }) }));
5170
+ return (jsxRuntime.jsx(React.Fragment, { children: errors && (jsxRuntime.jsx("div", { className: className, children: errors.map(e => (jsxRuntime.jsx("div", { children: e.message }, e.validator))) })) }));
5172
5171
  };
5173
5172
 
5174
5173
  const FormGroup = (props) => {
@@ -5190,7 +5189,7 @@ const FileInput = (props) => {
5190
5189
  const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
5191
5190
  const inputFileElement = React.useRef(null);
5192
5191
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5193
- const [model, setModel] = React.useState(value);
5192
+ const [model] = React.useState(value);
5194
5193
  const [fileList, setFileList] = React.useState();
5195
5194
  const getCssClasses = () => {
5196
5195
  const cssClasses = [];
@@ -5205,7 +5204,8 @@ const FileInput = (props) => {
5205
5204
  const handleOnDelete = () => {
5206
5205
  alert('coming soon');
5207
5206
  };
5208
- return (jsxRuntime.jsxs("div", { className: "d-flex align-items-start", children: [jsxRuntime.jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsxRuntime.jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList && Array.from(fileList).map((file) => jsxRuntime.jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name)) }), jsxRuntime.jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
5207
+ return (jsxRuntime.jsxs("div", { className: "d-flex align-items-start", children: [jsxRuntime.jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsxRuntime.jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList &&
5208
+ Array.from(fileList).map(file => (jsxRuntime.jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name))) }), jsxRuntime.jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
5209
5209
  };
5210
5210
 
5211
5211
  var css_248z$D = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
@@ -5425,9 +5425,9 @@ const EmailValidator = (value) => {
5425
5425
 
5426
5426
  const IsEqualValidator = (valueA, valueB) => valueA === valueB;
5427
5427
 
5428
- const MaxValidator = (val, valueB) => (val && val.length <= valueB) || false;
5428
+ const MaxValidator = (val, valueB) => (val && val.toString().length <= valueB) || false;
5429
5429
 
5430
- const MinValidator = (val, minLength) => (val && val.length >= minLength) || false;
5430
+ const MinValidator = (val, minLength) => (val && val.toString().length >= minLength) || false;
5431
5431
 
5432
5432
  class Form extends React.Component {
5433
5433
  constructor(props) {
@@ -5686,7 +5686,7 @@ const Row = ({ children, direction, className, ...rest }) => {
5686
5686
  };
5687
5687
 
5688
5688
  const DaySelect = (props) => {
5689
- const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
5689
+ const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange, } = props;
5690
5690
  React.useEffect(() => {
5691
5691
  init();
5692
5692
  }, [month, year]);
@@ -5713,7 +5713,20 @@ const DaySelect = (props) => {
5713
5713
  };
5714
5714
 
5715
5715
  const MonthSelect = (props) => {
5716
- const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
5716
+ const months = [
5717
+ 'January',
5718
+ 'February',
5719
+ 'March',
5720
+ 'April',
5721
+ 'May',
5722
+ 'June',
5723
+ 'July',
5724
+ 'August',
5725
+ 'September',
5726
+ 'October',
5727
+ 'November',
5728
+ 'December',
5729
+ ];
5717
5730
  const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
5718
5731
  const [newValue, setNewValue] = React.useState(value);
5719
5732
  const [monthOptions, setMonthOptions] = React.useState();
@@ -5828,7 +5841,7 @@ var styles$v = {"expansionPanelContent":"ExpansionPanelContent-module_expansionP
5828
5841
  styleInject(css_248z$v);
5829
5842
 
5830
5843
  const ExpansionPanelContent = ({ children }) => {
5831
- return (jsxRuntime.jsx("div", { className: styles$v.expansionPanelContent, children: children }));
5844
+ return jsxRuntime.jsx("div", { className: styles$v.expansionPanelContent, children: children });
5832
5845
  };
5833
5846
 
5834
5847
  var css_248z$u = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
@@ -5932,7 +5945,7 @@ const MenuBody = (props) => {
5932
5945
  },
5933
5946
  },
5934
5947
  },
5935
- ]
5948
+ ],
5936
5949
  });
5937
5950
  setPopperInstance(popperInstance);
5938
5951
  }
@@ -5953,7 +5966,7 @@ const MenuBody = (props) => {
5953
5966
  useOnDestroy(() => {
5954
5967
  popperInstance?.destroy();
5955
5968
  });
5956
- return (jsxRuntime.jsxs(Portal$1, { className: 'menu-root', children: [jsxRuntime.jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsxRuntime.jsx(List, { children: children }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
5969
+ return (jsxRuntime.jsxs(Portal$1, { className: "menu-root", children: [jsxRuntime.jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsxRuntime.jsx(List, { children: children }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
5957
5970
  };
5958
5971
 
5959
5972
  const Menu = (props) => {
@@ -5968,8 +5981,7 @@ const Menu = (props) => {
5968
5981
  const handleClickBackdrop = () => {
5969
5982
  onClickBackdrop && onClickBackdrop();
5970
5983
  };
5971
- return (jsxRuntime.jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
5972
- jsxRuntime.jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
5984
+ return (jsxRuntime.jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { className: "d-inline", ref: toggleContainerRef, children: toggle }), open && (jsxRuntime.jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children }))] }));
5973
5985
  };
5974
5986
 
5975
5987
  const MenuItem = (props) => {
@@ -6003,7 +6015,7 @@ var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n
6003
6015
  var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
6004
6016
  styleInject(css_248z$o);
6005
6017
 
6006
- const ModalBody = ({ children }) => (jsxRuntime.jsx("div", { className: styles$o.modalBody, children: children }));
6018
+ const ModalBody = ({ children }) => jsxRuntime.jsx("div", { className: styles$o.modalBody, children: children });
6007
6019
 
6008
6020
  var css_248z$n = ".ModalFooter-module_modalFooter__SNm-f {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: flex-end;\n padding: 0.75rem;\n border-bottom-right-radius: calc(0.3rem - 1px);\n border-bottom-left-radius: calc(0.3rem - 1px);\n}\n.ModalFooter-module_modalFooter__SNm-f.ModalFooter-module_shadow__z29Cy {\n box-shadow: var(--shadow);\n}\n.ModalFooter-module_modalFooter__SNm-f > * {\n margin: 0.25rem;\n}";
6009
6021
  var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
@@ -6578,7 +6590,7 @@ const StepperActions = (props) => {
6578
6590
 
6579
6591
  const StepPanel = (props) => {
6580
6592
  const { children } = props;
6581
- return (jsxRuntime.jsx("div", { className: "steppanel", children: children }));
6593
+ return jsxRuntime.jsx("div", { className: "steppanel", children: children });
6582
6594
  };
6583
6595
 
6584
6596
  var css_248z$a = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
@@ -7003,7 +7015,7 @@ exports.TIMEMODE = void 0;
7003
7015
  TIMEMODE[TIMEMODE["MILLISECONDS"] = 3] = "MILLISECONDS";
7004
7016
  })(exports.TIMEMODE || (exports.TIMEMODE = {}));
7005
7017
  const TimeSelect = (props) => {
7006
- const { className, value = new Date(), disabled, showHours = true, showMinutes = true, showSeconds = false, showMilliSeconds = false, onChange } = props;
7018
+ const { className, value = new Date(), disabled, showHours = true, showMinutes = true, showSeconds = false, showMilliSeconds = false, onChange, } = props;
7007
7019
  const [currDate, setCurrDate] = React.useState(value);
7008
7020
  const getCssClasses = () => {
7009
7021
  const cssClasses = [];
@@ -7023,11 +7035,7 @@ const TimeSelect = (props) => {
7023
7035
  setCurrDate(newDate);
7024
7036
  onChange && onChange(newDate);
7025
7037
  };
7026
- return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [showHours &&
7027
- jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Hours" }), jsxRuntime.jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.HOUR) })] }), showMinutes &&
7028
- jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Minutes" }), jsxRuntime.jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })] }), showSeconds &&
7029
- jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Seconds" }), jsxRuntime.jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })] }), showMilliSeconds &&
7030
- jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Milliseconds" }), jsxRuntime.jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) })] })] }));
7038
+ return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [showHours && (jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Hours" }), jsxRuntime.jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.HOUR) })] })), showMinutes && (jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Minutes" }), jsxRuntime.jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })] })), showSeconds && (jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Seconds" }), jsxRuntime.jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })] })), showMilliSeconds && (jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Milliseconds" }), jsxRuntime.jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) })] }))] }));
7031
7039
  };
7032
7040
 
7033
7041
  var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import React from 'react';
3
- import type { MenuPosition } from './menu.types';
4
3
  import type { IListItemProps } from '../List';
4
+ import type { MenuPosition } from './menu.types';
5
5
  export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
6
6
  toggle?: ReactElement;
7
7
  open?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import React from 'react';
3
- import type { MenuPosition } from './menu.types';
4
3
  import type { IListItemProps } from '../List';
4
+ import type { MenuPosition } from './menu.types';
5
5
  export interface IMenuBodyProps {
6
6
  children?: ReactElement<IListItemProps> | ReactElement<IListItemProps>[];
7
7
  className?: string;
@@ -1 +1 @@
1
- export type MenuPosition = 'right' | 'left';
1
+ export type MenuPosition = 'right' | 'left' | 'bottom' | 'top';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-asc",
3
- "version": "25.17.2",
3
+ "version": "25.18.1",
4
4
  "description": "handcrafted react components",
5
5
  "main": "index.js",
6
6
  "module": "index.es.js",
package/react-asc.scss CHANGED
@@ -258,6 +258,10 @@
258
258
  display: flex !important;
259
259
  }
260
260
 
261
+ .d-inline {
262
+ display: inline !important;
263
+ }
264
+
261
265
  .justify-content-center {
262
266
  justify-content: center !important;
263
267
  }