@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 +12 -0
- package/dist/theme/types.d.ts +0 -1
- package/dist/true-react-common-ui-kit.js +4 -2
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +4 -2
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Select/Select.stories.tsx +1 -0
- package/src/components/Select/Select.tsx +5 -1
- package/src/theme/common.ts +0 -1
- package/src/theme/types.ts +0 -1
package/README.md
CHANGED
package/dist/theme/types.d.ts
CHANGED
|
@@ -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({
|