@ghostly-solutions/ui 2.1.1 → 2.1.2
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 +12 -2
- package/dist/components/drawer/drawer.d.ts +1 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/hooks/use-reduced-motion.d.ts +2 -1
- package/dist/hooks/use-reduced-motion.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/server.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-e8n8m48r.js → index-0v1djh1s.js} +0 -0
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @ghostly-solutions/ui
|
|
2
2
|
|
|
3
|
-
Core UI component library for Ghostly Solutions products.
|
|
3
|
+
Core React UI component library for Ghostly Solutions products.
|
|
4
4
|
|
|
5
5
|
Built on Radix primitives, Tailwind CSS tokens, and CVA-based variants.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
|
|
10
|
+
npm install @ghostly-solutions/ui
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Peer Dependencies
|
|
@@ -54,6 +54,16 @@ Includes:
|
|
|
54
54
|
- feedback (`Toast`, `Alert`, `Progress`, `Skeleton`, ...)
|
|
55
55
|
- theme and motion hooks/contracts
|
|
56
56
|
|
|
57
|
+
## Best Fit
|
|
58
|
+
|
|
59
|
+
Use `@ghostly-solutions/ui` when you need:
|
|
60
|
+
|
|
61
|
+
- primitives and composition building blocks
|
|
62
|
+
- overlays, navigation, forms, and feedback components
|
|
63
|
+
- theme-aware product shells
|
|
64
|
+
|
|
65
|
+
For data-heavy widgets such as tables and advanced pickers, use `@ghostly-solutions/blocks`.
|
|
66
|
+
|
|
57
67
|
## Notes
|
|
58
68
|
|
|
59
69
|
- Named exports only.
|
|
@@ -22,6 +22,7 @@ interface DrawerContentProps extends ComponentPropsWithoutRef<typeof DrawerPrimi
|
|
|
22
22
|
size?: DrawerSizeValue;
|
|
23
23
|
showClose?: boolean;
|
|
24
24
|
direction?: DrawerDirection;
|
|
25
|
+
srTitle?: string;
|
|
25
26
|
}
|
|
26
27
|
declare const DrawerContent: import("react").ForwardRefExoticComponent<DrawerContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
28
|
declare const DrawerHeader: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEN,KAAK,wBAAwB,EAG7B,KAAK,cAAc,EAGnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,QAAA,MAAM,UAAU;;;;;CAKN,CAAC;AAEX,KAAK,eAAe,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAgBpE,QAAA,MAAM,qBAAqB,oFAAsD,CAAC;AAElF,QAAA,MAAM,qBAAqB,oFAMzB,CAAC;AAEH,QAAA,MAAM,oBAAoB;;8EAezB,CAAC;AASF,KAAK,eAAe,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3D,QAAA,MAAM,MAAM,4BAAuB,CAAC;AACpC,QAAA,MAAM,aAAa,mJAA0B,CAAC;AAC9C,QAAA,MAAM,WAAW,iJAAwB,CAAC;AAC1C,QAAA,MAAM,YAAY,8BAAyB,CAAC;AAG5C,QAAA,MAAM,aAAa,0QASjB,CAAC;AAGH,UAAU,kBAAmB,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC;IAC5F,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAeD,QAAA,MAAM,aAAa,+GAuDlB,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,cAAc,CAAC,cAAc,CAAC;;CAQ5E,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,cAAc,CAAC,cAAc,CAAC;;CAE5E,CAAC;AAGF,QAAA,MAAM,WAAW,mNASf,CAAC;AAGH,QAAA,MAAM,iBAAiB,6NASrB,CAAC;AAGH,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,GACpB,CAAC"}
|
|
@@ -2,6 +2,7 @@ declare const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
|
2
2
|
declare const REDUCED_MOTION_ATTRIBUTE = "data-gs-reduced-motion";
|
|
3
3
|
declare const REDUCED_MOTION_COMPAT_ATTRIBUTE = "data-gs-demo-reduced-motion";
|
|
4
4
|
declare const REDUCED_MOTION_STORAGE_KEY = "gs-reduced-motion";
|
|
5
|
+
declare const REDUCED_MOTION_EVENT = "gs:reduced-motion-change";
|
|
5
6
|
declare const DEMO_REDUCED_MOTION_ATTRIBUTE = "data-gs-demo-reduced-motion";
|
|
6
7
|
declare function readStoredReducedMotion(storageKey: string): boolean | null;
|
|
7
8
|
declare function getReducedMotionPreference(): boolean;
|
|
@@ -12,5 +13,5 @@ interface SetReducedMotionOptions {
|
|
|
12
13
|
declare function setReducedMotion(enabled: boolean, options?: SetReducedMotionOptions): void;
|
|
13
14
|
declare function hydrateReducedMotion(storageKey: string): void;
|
|
14
15
|
declare function useReducedMotion(): boolean;
|
|
15
|
-
export { DEMO_REDUCED_MOTION_ATTRIBUTE, REDUCED_MOTION_ATTRIBUTE, REDUCED_MOTION_COMPAT_ATTRIBUTE, REDUCED_MOTION_QUERY, REDUCED_MOTION_STORAGE_KEY, getReducedMotionPreference, hydrateReducedMotion, readStoredReducedMotion, setReducedMotion, useReducedMotion, type SetReducedMotionOptions, };
|
|
16
|
+
export { DEMO_REDUCED_MOTION_ATTRIBUTE, REDUCED_MOTION_ATTRIBUTE, REDUCED_MOTION_COMPAT_ATTRIBUTE, REDUCED_MOTION_QUERY, REDUCED_MOTION_STORAGE_KEY, REDUCED_MOTION_EVENT, getReducedMotionPreference, hydrateReducedMotion, readStoredReducedMotion, setReducedMotion, useReducedMotion, type SetReducedMotionOptions, };
|
|
16
17
|
//# sourceMappingURL=use-reduced-motion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-reduced-motion.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reduced-motion.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,qCAAqC,CAAC;AAChE,QAAA,MAAM,wBAAwB,2BAA2B,CAAC;AAC1D,QAAA,MAAM,+BAA+B,gCAAgC,CAAC;AACtE,QAAA,MAAM,0BAA0B,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-reduced-motion.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reduced-motion.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,qCAAqC,CAAC;AAChE,QAAA,MAAM,wBAAwB,2BAA2B,CAAC;AAC1D,QAAA,MAAM,+BAA+B,gCAAgC,CAAC;AACtE,QAAA,MAAM,0BAA0B,sBAAsB,CAAC;AACvD,QAAA,MAAM,oBAAoB,6BAA6B,CAAC;AAExD,QAAA,MAAM,6BAA6B,gCAAkC,CAAC;AAOtE,iBAAS,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAgBnE;AAsCD,iBAAS,0BAA0B,IAAI,OAAO,CAE7C;AAeD,UAAU,uBAAuB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAUnF;AAED,iBAAS,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAUtD;AAyCD,iBAAS,gBAAgB,IAAI,OAAO,CAKnC;AAED,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,uBAAuB,GAC5B,CAAC"}
|