@ainias42/react-bootstrap-mobile 0.2.15 → 0.2.16
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/dist/bootstrapReactMobile.js +5 -4
- package/dist/bootstrapReactMobile.js.map +1 -1
- package/dist/src/Components/SpoilerList/Spoiler/Spoiler.d.ts +2 -1
- package/package.json +1 -1
- package/src/Components/SpoilerList/Spoiler/Spoiler.tsx +3 -1
- package/src/Components/SpoilerList/Spoiler/spoiler.scss +2 -2
|
@@ -9,9 +9,10 @@ export type SpoilerProps<OnClickData> = RbmComponentProps<{
|
|
|
9
9
|
open?: boolean;
|
|
10
10
|
onlyTitleToggles?: boolean;
|
|
11
11
|
noClosingAnimation?: boolean;
|
|
12
|
+
noAnimation?: boolean;
|
|
12
13
|
openIcon?: IconSource | null;
|
|
13
14
|
closeIcon?: IconSource | null;
|
|
14
15
|
} & OptionalListener<'onClick', OnClickData>>;
|
|
15
|
-
declare function Spoiler<OnClickData>({ title, children, initialOpen, noClosingAnimation, openIcon, closeIcon, className, onlyTitleToggles, style, open, ...listenerProps }: SpoilerProps<OnClickData>): React.JSX.Element;
|
|
16
|
+
declare function Spoiler<OnClickData>({ title, children, initialOpen, noClosingAnimation, noAnimation, openIcon, closeIcon, className, onlyTitleToggles, style, open, ...listenerProps }: SpoilerProps<OnClickData>): React.JSX.Element;
|
|
16
17
|
declare const SpoilerMemo: typeof Spoiler;
|
|
17
18
|
export { SpoilerMemo as Spoiler };
|
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ export type SpoilerProps<OnClickData> = RbmComponentProps<
|
|
|
20
20
|
open?: boolean;
|
|
21
21
|
onlyTitleToggles?: boolean;
|
|
22
22
|
noClosingAnimation?: boolean;
|
|
23
|
+
noAnimation?: boolean;
|
|
23
24
|
openIcon?: IconSource | null;
|
|
24
25
|
closeIcon?: IconSource | null;
|
|
25
26
|
} & OptionalListener<'onClick', OnClickData>
|
|
@@ -30,6 +31,7 @@ function Spoiler<OnClickData>({
|
|
|
30
31
|
children,
|
|
31
32
|
initialOpen = false,
|
|
32
33
|
noClosingAnimation = false,
|
|
34
|
+
noAnimation = false,
|
|
33
35
|
openIcon = faChevronDown,
|
|
34
36
|
closeIcon = faChevronUp,
|
|
35
37
|
className,
|
|
@@ -85,7 +87,7 @@ function Spoiler<OnClickData>({
|
|
|
85
87
|
onClick={onlyTitleToggles ? undefined: toggleOpen}
|
|
86
88
|
className={classNames(className, styles.spoiler, {
|
|
87
89
|
[styles.open]: open ?? isOpen,
|
|
88
|
-
[styles.noAnimation]: isInitialValue,
|
|
90
|
+
[styles.noAnimation]: isInitialValue || noAnimation,
|
|
89
91
|
[styles.noClosingAnimation]: noClosingAnimation,
|
|
90
92
|
})}
|
|
91
93
|
style={style}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
100% {
|
|
25
25
|
height: initial;
|
|
26
|
-
transform:
|
|
26
|
+
transform: none !important;
|
|
27
27
|
opacity: 1;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
.body {
|
|
76
76
|
height: initial;
|
|
77
|
-
transform:
|
|
77
|
+
transform: none;
|
|
78
78
|
animation-name: spoilerOpen;
|
|
79
79
|
}
|
|
80
80
|
}
|