mimir-ui-kit 1.32.0 → 1.32.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,9 @@
|
|
1
1
|
import { SkeletonBrick } from "./SkeletonBrick/SkeletonBrick.js";
|
2
2
|
import { SkeletonText } from "./SkeletonText/SkeletonText.js";
|
3
3
|
import { SkeletonCircle } from "./SkeletonCircle/SkeletonCircle.js";
|
4
|
+
import { ESkeletonVariant } from "./constants.js";
|
4
5
|
export {
|
6
|
+
ESkeletonVariant,
|
5
7
|
SkeletonBrick,
|
6
8
|
SkeletonCircle,
|
7
9
|
SkeletonText
|
@@ -2,6 +2,10 @@ import { useCallback } from "react";
|
|
2
2
|
const useAutoResizeTextArea = (textArea) => {
|
3
3
|
return useCallback(() => {
|
4
4
|
if (textArea) {
|
5
|
+
if (!textArea.value.length) {
|
6
|
+
textArea.style.height = "auto";
|
7
|
+
return;
|
8
|
+
}
|
5
9
|
textArea.style.height = "var(--textarea-height)";
|
6
10
|
const scrollHeight = textArea.scrollHeight;
|
7
11
|
textArea.style.height = `${scrollHeight}px`;
|
@@ -53,3 +53,4 @@ export { Switcher } from './Switcher';
|
|
53
53
|
export { ELabelPositions } from './Switcher';
|
54
54
|
export type { TSwitcherProps } from './Switcher';
|
55
55
|
export { TwinSwitcher } from './TwinSwitcher';
|
56
|
+
export { ESkeletonVariant, SkeletonBrick, SkeletonCircle, SkeletonText } from './Skeleton';
|
package/dist/components/index.js
CHANGED
@@ -52,6 +52,10 @@ import { EGosZnakSize, EGosZnakType } from "./GosZnak/constants.js";
|
|
52
52
|
import { Switcher } from "./Switcher/Switcher.js";
|
53
53
|
import { ELabelPositions } from "./Switcher/constants.js";
|
54
54
|
import { TwinSwitcher } from "./TwinSwitcher/TwinSwitcher.js";
|
55
|
+
import { SkeletonBrick } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
|
56
|
+
import { SkeletonText } from "./Skeleton/SkeletonText/SkeletonText.js";
|
57
|
+
import { SkeletonCircle } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
|
58
|
+
import { ESkeletonVariant } from "./Skeleton/constants.js";
|
55
59
|
export {
|
56
60
|
Accordion,
|
57
61
|
AccordionItem,
|
@@ -82,6 +86,7 @@ export {
|
|
82
86
|
EMergedButtonVariantRound,
|
83
87
|
ENotificationBadgeSize,
|
84
88
|
ESelectSearchSize,
|
89
|
+
ESkeletonVariant,
|
85
90
|
EStepColor,
|
86
91
|
EStepsSize,
|
87
92
|
ETabTrailSize,
|
@@ -105,6 +110,9 @@ export {
|
|
105
110
|
Pagination,
|
106
111
|
RadioGroup,
|
107
112
|
SelectSearch,
|
113
|
+
SkeletonBrick,
|
114
|
+
SkeletonCircle,
|
115
|
+
SkeletonText,
|
108
116
|
Slider,
|
109
117
|
Steps,
|
110
118
|
Switcher,
|
package/dist/index.js
CHANGED
@@ -52,6 +52,10 @@ import { EGosZnakSize, EGosZnakType } from "./components/GosZnak/constants.js";
|
|
52
52
|
import { Switcher } from "./components/Switcher/Switcher.js";
|
53
53
|
import { ELabelPositions } from "./components/Switcher/constants.js";
|
54
54
|
import { TwinSwitcher } from "./components/TwinSwitcher/TwinSwitcher.js";
|
55
|
+
import { SkeletonBrick } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
|
56
|
+
import { SkeletonText } from "./components/Skeleton/SkeletonText/SkeletonText.js";
|
57
|
+
import { SkeletonCircle } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
|
58
|
+
import { ESkeletonVariant } from "./components/Skeleton/constants.js";
|
55
59
|
import { useMediaQuery } from "./hooks/useMediaQuery/useMediaQuery.js";
|
56
60
|
import { EMediaQuery, EMinMediaQuery } from "./hooks/useMediaQuery/constants.js";
|
57
61
|
import { useLockBodyScroll } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
|
@@ -95,6 +99,7 @@ import './assets/index.css';export {
|
|
95
99
|
EMinMediaQuery,
|
96
100
|
ENotificationBadgeSize,
|
97
101
|
ESelectSearchSize,
|
102
|
+
ESkeletonVariant,
|
98
103
|
EStepColor,
|
99
104
|
EStepsSize,
|
100
105
|
ETabTrailSize,
|
@@ -119,6 +124,9 @@ import './assets/index.css';export {
|
|
119
124
|
Pagination,
|
120
125
|
RadioGroup,
|
121
126
|
SelectSearch,
|
127
|
+
SkeletonBrick,
|
128
|
+
SkeletonCircle,
|
129
|
+
SkeletonText,
|
122
130
|
Slider,
|
123
131
|
Steps,
|
124
132
|
Switcher,
|