@true-engineering/true-react-common-ui-kit 3.36.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/README.md CHANGED
@@ -11,6 +11,18 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.38.0
15
+
16
+ ### Changes
17
+
18
+ - **Select**: Запрещает открывать `SelectList` при `isReadonly`
19
+
20
+ ## 3.37.0
21
+
22
+ ### Changes
23
+
24
+ - **IUiKitTheme**: Удалено поле name
25
+
14
26
  ## 3.36.0
15
27
 
16
28
  ### Changes
@@ -69,7 +69,6 @@ export type IComponentName = keyof IComponentStyles;
69
69
  export type IUiKitAnimations = Record<string, any>;
70
70
  export type IUiKitHelpers = Record<string, Styles | (() => Styles)>;
71
71
  export interface IUiKitTheme {
72
- name: string;
73
72
  components?: Partial<IComponentStyles>;
74
73
  icons?: Partial<Record<ICommonIcon, ISvgIcon>>;
75
74
  complexIcons?: Partial<Record<IComplexIcon, string>>;
@@ -1110,7 +1110,6 @@ var animations = {
1110
1110
  }
1111
1111
  };
1112
1112
  var common = {
1113
- name: "common",
1114
1113
  animations,
1115
1114
  colors,
1116
1115
  dimensions,
@@ -11779,6 +11778,9 @@ function Select(props) {
11779
11778
  onBlur
11780
11779
  ]);
11781
11780
  var handleListOpen = function() {
11781
+ if (isReadonly) {
11782
+ return;
11783
+ }
11782
11784
  if (!isListOpen) {
11783
11785
  setIsListOpen(true);
11784
11786
  if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
@@ -12086,7 +12088,7 @@ function Select(props) {
12086
12088
  children: [
12087
12089
  /* @__PURE__ */ jsxs("div", {
12088
12090
  className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12089
- onClick: isDisabled ? void 0 : handleOnClick,
12091
+ onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12090
12092
  ref: inputWrapper,
12091
12093
  children: [
12092
12094
  /* @__PURE__ */ jsx(Input, _object_spread$G({