@sps-woodland/modal 8.50.1 → 8.51.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 CHANGED
@@ -1,3 +1,27 @@
1
- ## [@sps-woodland/tabs](https://github.com/SPSCommerce/woodland/tree/master/packages/@sps-woodland/modal#readme)
1
+ ## [@sps-woodland/modal](https://github.com/SPSCommerce/woodland/tree/master/packages/@sps-woodland/modal#readme)
2
2
 
3
- SPS Woodland Design System useModal hook and modal component
3
+ SPS Woodland Design System `useModal` hook and modal component.
4
+
5
+ > **Heads up — this is a wrapper package.** The component source now lives in
6
+ > [`@sps-woodland/core`](../core). This package re-exports from core so existing
7
+ > imports keep working, but new code should prefer the core paths.
8
+
9
+ ### Preferred imports (core)
10
+
11
+ ```ts
12
+ import { Modal, ModalFooter, useModal } from "@sps-woodland/core/modal";
13
+ // or, if you only need the footer:
14
+ import { ModalFooter } from "@sps-woodland/core/modal-footer";
15
+
16
+ import "@sps-woodland/core/modal/style.css";
17
+ ```
18
+
19
+ `Modal` itself is barrel-only (because the family name and the parent
20
+ component share a name). `ModalFooter` also has its own flat subpath.
21
+
22
+ ### Legacy imports (still supported)
23
+
24
+ ```ts
25
+ import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
26
+ import "@sps-woodland/modal/style.css";
27
+ ```
package/lib/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
- export * from "./modal/Modal";
2
- export * from "./modal-footer/ModalFooter";
3
- export * from "./modal/useModal";
1
+ export * from "@sps-woodland/core/modal";
4
2
  export * from "./manifest";