@ttoss/components 1.28.6 → 1.28.8
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 +3 -2
- package/dist/index.d.ts +6 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -27,7 +27,9 @@ import { Box, Button, Flex, Text } from '@ttoss/ui';
|
|
|
27
27
|
/**
|
|
28
28
|
* See https://reactcommunity.org/react-modal/accessibility/#app-element
|
|
29
29
|
*/
|
|
30
|
-
// Modal.setAppElement('#root');
|
|
30
|
+
// Modal.setAppElement('#root'); Prefer using this static method over setting it on the component.
|
|
31
|
+
|
|
32
|
+
Modal.setAppElement('#modal-root');
|
|
31
33
|
|
|
32
34
|
const Component = () => {
|
|
33
35
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
@@ -42,7 +44,6 @@ const Component = () => {
|
|
|
42
44
|
action('onRequestClose')();
|
|
43
45
|
setIsOpen(false);
|
|
44
46
|
}}
|
|
45
|
-
appElement={document.getElementById('modal-root') as HTMLElement}
|
|
46
47
|
style={{
|
|
47
48
|
overlay: {
|
|
48
49
|
backgroundColor: 'primary',
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_accessible_accordion_dist_types_helpers_DisplayName from 'react-accessible-accordion/dist/types/helpers/DisplayName';
|
|
2
2
|
import * as react_accessible_accordion_dist_types_components_ItemContext from 'react-accessible-accordion/dist/types/components/ItemContext';
|
|
3
3
|
import * as react_accessible_accordion_dist_types_helpers_types from 'react-accessible-accordion/dist/types/helpers/types';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { BoxProps } from '@ttoss/ui';
|
|
6
7
|
import ReactModal from 'react-modal';
|
|
@@ -17,7 +18,7 @@ type AccordionProps = BoxProps & {
|
|
|
17
18
|
onChange?: (args: string[]) => void;
|
|
18
19
|
};
|
|
19
20
|
declare const Accordion: {
|
|
20
|
-
({ children, allowMultipleExpanded, allowZeroExpanded, preExpanded, onChange, ...boxProps }: AccordionProps): JSX.Element;
|
|
21
|
+
({ children, allowMultipleExpanded, allowZeroExpanded, preExpanded, onChange, ...boxProps }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
21
22
|
Item: {
|
|
22
23
|
({ uuid: customUuid, dangerouslySetExpanded, className, activeClassName, ...rest }: react_accessible_accordion_dist_types_helpers_types.DivAttributes & {
|
|
23
24
|
uuid?: react_accessible_accordion_dist_types_components_ItemContext.ID | undefined;
|
|
@@ -295,15 +296,15 @@ declare const Accordion: {
|
|
|
295
296
|
type InstallPwaUiProps = {
|
|
296
297
|
onInstall: React.MouseEventHandler<HTMLButtonElement>;
|
|
297
298
|
};
|
|
298
|
-
declare const InstallPwaUi: ({ onInstall }: InstallPwaUiProps) => JSX.Element;
|
|
299
|
-
declare const InstallPwa: () => JSX.Element | null;
|
|
299
|
+
declare const InstallPwaUi: ({ onInstall }: InstallPwaUiProps) => react_jsx_runtime.JSX.Element;
|
|
300
|
+
declare const InstallPwa: () => react_jsx_runtime.JSX.Element | null;
|
|
300
301
|
|
|
301
302
|
type ModalProps = ReactModal.Props;
|
|
302
303
|
declare const Modal: {
|
|
303
|
-
(props: ModalProps): JSX.Element;
|
|
304
|
+
(props: ModalProps): react_jsx_runtime.JSX.Element;
|
|
304
305
|
setAppElement: typeof ReactModal.setAppElement;
|
|
305
306
|
};
|
|
306
307
|
|
|
307
|
-
declare const ToastContainer: (props: ToastContainerProps) => JSX.Element;
|
|
308
|
+
declare const ToastContainer: (props: ToastContainerProps) => react_jsx_runtime.JSX.Element;
|
|
308
309
|
|
|
309
310
|
export { Accordion, AccordionProps, InstallPwa, InstallPwaUi, InstallPwaUiProps, Modal, ModalProps, ToastContainer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.8",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": ">=16.8.0",
|
|
27
|
-
"@ttoss/ui": "^1.36.
|
|
27
|
+
"@ttoss/ui": "^1.36.8"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/jest": "^29.5.1",
|
|
31
|
-
"@types/react": "^18.2.
|
|
31
|
+
"@types/react": "^18.2.6",
|
|
32
32
|
"jest": "^29.5.0",
|
|
33
33
|
"tsup": "^6.7.0",
|
|
34
34
|
"@ttoss/config": "^1.30.0",
|
|
35
|
-
"@ttoss/test-utils": "^1.23.
|
|
36
|
-
"@ttoss/ui": "^1.36.
|
|
35
|
+
"@ttoss/test-utils": "^1.23.1",
|
|
36
|
+
"@ttoss/ui": "^1.36.8"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"React",
|