@sproutsocial/seeds-react-modal 1.1.1 → 2.0.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/.turbo/turbo-build.log +23 -23
- package/CHANGELOG.md +175 -0
- package/dist/ModalAction-BB7qJtQj.d.mts +445 -0
- package/dist/ModalAction-BB7qJtQj.d.ts +445 -0
- package/dist/esm/chunk-ETVICNHP.js +1353 -0
- package/dist/esm/chunk-ETVICNHP.js.map +1 -0
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/v2/index.js +12 -20
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1154 -546
- package/dist/index.js.map +1 -1
- package/dist/v2/index.d.mts +4 -11
- package/dist/v2/index.d.ts +4 -11
- package/dist/v2/index.js +1152 -545
- package/dist/v2/index.js.map +1 -1
- package/package.json +8 -7
- package/src/index.ts +11 -12
- package/src/shared/constants.ts +11 -7
- package/src/v2/Modal.tsx +169 -0
- package/src/v2/ModalTypes.ts +343 -0
- package/src/v2/ModalV2.stories.tsx +413 -128
- package/src/v2/MotionConfig.ts +185 -0
- package/src/v2/components/ModalAction.tsx +94 -0
- package/src/v2/components/ModalBody.tsx +54 -0
- package/src/v2/components/ModalCloseWrapper.tsx +35 -0
- package/src/v2/components/ModalContent.tsx +288 -11
- package/src/v2/components/ModalDescription.tsx +14 -2
- package/src/v2/components/ModalFooter.tsx +94 -13
- package/src/v2/components/ModalHeader.tsx +77 -34
- package/src/v2/components/ModalOverlay.tsx +52 -0
- package/src/v2/components/ModalRail.tsx +35 -99
- package/src/v2/components/index.ts +11 -7
- package/src/v2/index.ts +13 -16
- package/dist/ModalRail-5PeilhW7.d.mts +0 -186
- package/dist/ModalRail-5PeilhW7.d.ts +0 -186
- package/dist/esm/chunk-4ITF4DBY.js +0 -717
- package/dist/esm/chunk-4ITF4DBY.js.map +0 -1
- package/src/v2/ModalV2.tsx +0 -388
- package/src/v2/ModalV2Styles.tsx +0 -180
- package/src/v2/ModalV2Types.ts +0 -154
- package/src/v2/components/ModalClose.tsx +0 -29
- package/src/v2/components/ModalCloseButton.tsx +0 -100
- package/src/v2/components/ModalTrigger.tsx +0 -39
package/dist/esm/v2/index.js
CHANGED
|
@@ -2,40 +2,32 @@ import {
|
|
|
2
2
|
BODY_PADDING,
|
|
3
3
|
DEFAULT_MODAL_BG,
|
|
4
4
|
DEFAULT_MODAL_WIDTH,
|
|
5
|
-
DEFAULT_MODAL_Z_INDEX,
|
|
6
|
-
DEFAULT_OVERLAY_Z_INDEX_OFFSET,
|
|
7
|
-
MODAL_PRIORITY_Z_INDEX,
|
|
8
5
|
MODAL_SIZE_PRESETS,
|
|
9
6
|
ModalAction,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
ModalBody,
|
|
8
|
+
ModalCloseWrapper,
|
|
9
|
+
ModalCustomFooter,
|
|
10
|
+
ModalCustomHeader,
|
|
13
11
|
ModalDescription,
|
|
14
12
|
ModalFooter,
|
|
15
13
|
ModalHeader,
|
|
16
14
|
ModalRail,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
useDragContext
|
|
20
|
-
} from "../chunk-4ITF4DBY.js";
|
|
15
|
+
Modal_default
|
|
16
|
+
} from "../chunk-ETVICNHP.js";
|
|
21
17
|
export {
|
|
22
18
|
BODY_PADDING,
|
|
23
19
|
DEFAULT_MODAL_BG,
|
|
24
20
|
DEFAULT_MODAL_WIDTH,
|
|
25
|
-
DEFAULT_MODAL_Z_INDEX,
|
|
26
|
-
DEFAULT_OVERLAY_Z_INDEX_OFFSET,
|
|
27
|
-
MODAL_PRIORITY_Z_INDEX,
|
|
28
21
|
MODAL_SIZE_PRESETS,
|
|
29
|
-
|
|
22
|
+
Modal_default as Modal,
|
|
30
23
|
ModalAction,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
ModalBody,
|
|
25
|
+
ModalCloseWrapper,
|
|
26
|
+
ModalCustomFooter,
|
|
27
|
+
ModalCustomHeader,
|
|
34
28
|
ModalDescription,
|
|
35
29
|
ModalFooter,
|
|
36
30
|
ModalHeader,
|
|
37
|
-
ModalRail
|
|
38
|
-
ModalTrigger,
|
|
39
|
-
useDragContext
|
|
31
|
+
ModalRail
|
|
40
32
|
};
|
|
41
33
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { M as Modal } from './Modal-ki8oiGbC.mjs';
|
|
2
2
|
export { d as TypeModalCloseButtonProps, c as TypeModalContentProps, b as TypeModalFooterProps, a as TypeModalHeaderProps, T as TypeModalProps } from './Modal-ki8oiGbC.mjs';
|
|
3
|
-
export {
|
|
3
|
+
export { g as ModalAction, d as ModalBody, e as ModalCloseWrapper, p as ModalCloseWrapperProps, i as ModalCustomFooter, h as ModalCustomHeader, a as ModalDescription, c as ModalFooter, b as ModalHeader, f as ModalRail, M as ModalV2, o as TypeModalActionProps, n as TypeModalRailProps, l as TypeModalV2BodyProps, m as TypeModalV2DescriptionProps, k as TypeModalV2FooterProps, j as TypeModalV2HeaderProps, T as TypeModalV2Props } from './ModalAction-BB7qJtQj.mjs';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-modal';
|
|
7
7
|
import '@sproutsocial/seeds-react-box';
|
|
8
8
|
import '@sproutsocial/seeds-react-button';
|
|
9
|
+
import 'styled-components';
|
|
9
10
|
import '@radix-ui/react-dialog';
|
|
10
11
|
import '@sproutsocial/seeds-react-icon';
|
|
11
12
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { M as Modal } from './Modal-ki8oiGbC.js';
|
|
2
2
|
export { d as TypeModalCloseButtonProps, c as TypeModalContentProps, b as TypeModalFooterProps, a as TypeModalHeaderProps, T as TypeModalProps } from './Modal-ki8oiGbC.js';
|
|
3
|
-
export {
|
|
3
|
+
export { g as ModalAction, d as ModalBody, e as ModalCloseWrapper, p as ModalCloseWrapperProps, i as ModalCustomFooter, h as ModalCustomHeader, a as ModalDescription, c as ModalFooter, b as ModalHeader, f as ModalRail, M as ModalV2, o as TypeModalActionProps, n as TypeModalRailProps, l as TypeModalV2BodyProps, m as TypeModalV2DescriptionProps, k as TypeModalV2FooterProps, j as TypeModalV2HeaderProps, T as TypeModalV2Props } from './ModalAction-BB7qJtQj.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-modal';
|
|
7
7
|
import '@sproutsocial/seeds-react-box';
|
|
8
8
|
import '@sproutsocial/seeds-react-button';
|
|
9
|
+
import 'styled-components';
|
|
9
10
|
import '@radix-ui/react-dialog';
|
|
10
11
|
import '@sproutsocial/seeds-react-icon';
|
|
11
12
|
|