@true-engineering/true-react-common-ui-kit 3.37.0 → 3.38.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-engineering/true-react-common-ui-kit",
3
- "version": "3.37.0",
3
+ "version": "3.38.0",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -216,6 +216,7 @@ Default.args = {
216
216
  hasFloatingLabel: true,
217
217
  hasRequiredLabel: true,
218
218
  isDisabled: false,
219
+ isReadonly: false,
219
220
  isRequired: false,
220
221
  isClearable: false,
221
222
  isLoading: false,
@@ -276,6 +276,10 @@ export function Select<Value>(
276
276
  );
277
277
 
278
278
  const handleListOpen = () => {
279
+ if (isReadonly) {
280
+ return;
281
+ }
282
+
279
283
  if (!isListOpen) {
280
284
  setIsListOpen(true);
281
285
 
@@ -612,7 +616,7 @@ export function Select<Value>(
612
616
  <div className={classes.root} onKeyDown={handleKeyDown} ref={root}>
613
617
  <div
614
618
  className={clsx(classes.inputWrapper, isDisabled && classes.disabled)}
615
- onClick={isDisabled ? undefined : handleOnClick}
619
+ onClick={isDisabled || isReadonly ? undefined : handleOnClick}
616
620
  ref={inputWrapper}
617
621
  >
618
622
  <Input