@orion-ds/react 1.0.0 → 1.0.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.
Files changed (293) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +18 -0
  2. package/dist/components/Accordion/Accordion.d.ts.map +1 -0
  3. package/dist/components/Accordion/Accordion.types.d.ts +92 -0
  4. package/dist/components/Accordion/Accordion.types.d.ts.map +1 -0
  5. package/dist/components/Accordion/index.d.ts +6 -0
  6. package/dist/components/Accordion/index.d.ts.map +1 -0
  7. package/dist/components/Alert/Alert.d.ts +1 -0
  8. package/dist/components/Alert/Alert.d.ts.map +1 -1
  9. package/dist/components/Card/Card.d.ts +5 -1
  10. package/dist/components/Card/Card.d.ts.map +1 -1
  11. package/dist/components/Card/Card.types.d.ts +43 -1
  12. package/dist/components/Card/Card.types.d.ts.map +1 -1
  13. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  14. package/dist/components/Chip/Chip.d.ts +15 -0
  15. package/dist/components/Chip/Chip.d.ts.map +1 -0
  16. package/dist/components/Chip/Chip.types.d.ts +68 -0
  17. package/dist/components/Chip/Chip.types.d.ts.map +1 -0
  18. package/dist/components/Chip/index.d.ts +6 -0
  19. package/dist/components/Chip/index.d.ts.map +1 -0
  20. package/dist/components/Combobox/Combobox.d.ts +21 -0
  21. package/dist/components/Combobox/Combobox.d.ts.map +1 -0
  22. package/dist/components/Combobox/Combobox.types.d.ts +153 -0
  23. package/dist/components/Combobox/Combobox.types.d.ts.map +1 -0
  24. package/dist/components/Combobox/index.d.ts +6 -0
  25. package/dist/components/Combobox/index.d.ts.map +1 -0
  26. package/dist/components/Divider/Divider.d.ts +15 -0
  27. package/dist/components/Divider/Divider.d.ts.map +1 -0
  28. package/dist/components/Divider/Divider.types.d.ts +46 -0
  29. package/dist/components/Divider/Divider.types.d.ts.map +1 -0
  30. package/dist/components/Divider/index.d.ts +6 -0
  31. package/dist/components/Divider/index.d.ts.map +1 -0
  32. package/dist/components/Drawer/Drawer.d.ts +23 -0
  33. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  34. package/dist/components/Drawer/Drawer.types.d.ts +83 -0
  35. package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
  36. package/dist/components/Drawer/index.d.ts +6 -0
  37. package/dist/components/Drawer/index.d.ts.map +1 -0
  38. package/dist/components/Dropdown/Dropdown.d.ts +19 -0
  39. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
  40. package/dist/components/Dropdown/Dropdown.types.d.ts +119 -0
  41. package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -0
  42. package/dist/components/Dropdown/index.d.ts +6 -0
  43. package/dist/components/Dropdown/index.d.ts.map +1 -0
  44. package/dist/components/EmptyState/EmptyState.d.ts +18 -0
  45. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
  46. package/dist/components/EmptyState/EmptyState.types.d.ts +51 -0
  47. package/dist/components/EmptyState/EmptyState.types.d.ts.map +1 -0
  48. package/dist/components/EmptyState/index.d.ts +6 -0
  49. package/dist/components/EmptyState/index.d.ts.map +1 -0
  50. package/dist/components/Icon/Icon.d.ts +37 -0
  51. package/dist/components/Icon/Icon.d.ts.map +1 -0
  52. package/dist/components/Icon/Icon.types.d.ts +102 -0
  53. package/dist/components/Icon/Icon.types.d.ts.map +1 -0
  54. package/dist/components/Icon/index.d.ts +6 -0
  55. package/dist/components/Icon/index.d.ts.map +1 -0
  56. package/dist/components/IconGallery/IconGallery.d.ts +15 -0
  57. package/dist/components/IconGallery/IconGallery.d.ts.map +1 -0
  58. package/dist/components/IconGallery/IconGallery.types.d.ts +39 -0
  59. package/dist/components/IconGallery/IconGallery.types.d.ts.map +1 -0
  60. package/dist/components/IconGallery/index.d.ts +6 -0
  61. package/dist/components/IconGallery/index.d.ts.map +1 -0
  62. package/dist/components/Link/Link.d.ts +15 -0
  63. package/dist/components/Link/Link.d.ts.map +1 -0
  64. package/dist/components/Link/Link.types.d.ts +59 -0
  65. package/dist/components/Link/Link.types.d.ts.map +1 -0
  66. package/dist/components/Link/index.d.ts +6 -0
  67. package/dist/components/Link/index.d.ts.map +1 -0
  68. package/dist/components/List/List.d.ts +19 -0
  69. package/dist/components/List/List.d.ts.map +1 -0
  70. package/dist/components/List/List.types.d.ts +117 -0
  71. package/dist/components/List/List.types.d.ts.map +1 -0
  72. package/dist/components/List/index.d.ts +6 -0
  73. package/dist/components/List/index.d.ts.map +1 -0
  74. package/dist/components/Pagination/Pagination.d.ts +17 -0
  75. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  76. package/dist/components/Pagination/Pagination.types.d.ts +62 -0
  77. package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
  78. package/dist/components/Pagination/index.d.ts +6 -0
  79. package/dist/components/Pagination/index.d.ts.map +1 -0
  80. package/dist/components/Popover/Popover.d.ts +17 -0
  81. package/dist/components/Popover/Popover.d.ts.map +1 -0
  82. package/dist/components/Popover/Popover.types.d.ts +100 -0
  83. package/dist/components/Popover/Popover.types.d.ts.map +1 -0
  84. package/dist/components/Popover/index.d.ts +6 -0
  85. package/dist/components/Popover/index.d.ts.map +1 -0
  86. package/dist/components/SearchInput/SearchInput.d.ts +18 -0
  87. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
  88. package/dist/components/SearchInput/SearchInput.types.d.ts +73 -0
  89. package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -0
  90. package/dist/components/SearchInput/index.d.ts +6 -0
  91. package/dist/components/SearchInput/index.d.ts.map +1 -0
  92. package/dist/components/Skeleton/Skeleton.d.ts +15 -0
  93. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
  94. package/dist/components/Skeleton/Skeleton.types.d.ts +56 -0
  95. package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -0
  96. package/dist/components/Skeleton/index.d.ts +6 -0
  97. package/dist/components/Skeleton/index.d.ts.map +1 -0
  98. package/dist/components/Slider/Slider.d.ts +18 -0
  99. package/dist/components/Slider/Slider.d.ts.map +1 -0
  100. package/dist/components/Slider/Slider.types.d.ts +98 -0
  101. package/dist/components/Slider/Slider.types.d.ts.map +1 -0
  102. package/dist/components/Slider/index.d.ts +6 -0
  103. package/dist/components/Slider/index.d.ts.map +1 -0
  104. package/dist/components/Stepper/Stepper.d.ts +20 -0
  105. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  106. package/dist/components/Stepper/Stepper.types.d.ts +135 -0
  107. package/dist/components/Stepper/Stepper.types.d.ts.map +1 -0
  108. package/dist/components/Stepper/index.d.ts +6 -0
  109. package/dist/components/Stepper/index.d.ts.map +1 -0
  110. package/dist/components/Table/Table.types.d.ts +2 -2
  111. package/dist/components/Table/Table.types.d.ts.map +1 -1
  112. package/dist/components/Toast/Toast.d.ts +33 -0
  113. package/dist/components/Toast/Toast.d.ts.map +1 -0
  114. package/dist/components/Toast/Toast.types.d.ts +126 -0
  115. package/dist/components/Toast/Toast.types.d.ts.map +1 -0
  116. package/dist/components/Toast/index.d.ts +6 -0
  117. package/dist/components/Toast/index.d.ts.map +1 -0
  118. package/dist/components/index.d.ts +48 -0
  119. package/dist/components/index.d.ts.map +1 -0
  120. package/dist/hooks/index.d.ts +14 -0
  121. package/dist/hooks/index.d.ts.map +1 -1
  122. package/dist/hooks/useClickOutside.d.ts +31 -0
  123. package/dist/hooks/useClickOutside.d.ts.map +1 -0
  124. package/dist/hooks/useCopyToClipboard.d.ts +72 -0
  125. package/dist/hooks/useCopyToClipboard.d.ts.map +1 -0
  126. package/dist/hooks/useDebounce.d.ts +58 -0
  127. package/dist/hooks/useDebounce.d.ts.map +1 -0
  128. package/dist/hooks/useDisclosure.d.ts +74 -0
  129. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  130. package/dist/hooks/useKeyboard.d.ts +101 -0
  131. package/dist/hooks/useKeyboard.d.ts.map +1 -0
  132. package/dist/hooks/useLocalStorage.d.ts +48 -0
  133. package/dist/hooks/useLocalStorage.d.ts.map +1 -0
  134. package/dist/hooks/useMediaQuery.d.ts +43 -0
  135. package/dist/hooks/useMediaQuery.d.ts.map +1 -0
  136. package/dist/index.cjs +3 -3
  137. package/dist/index.cjs.map +1 -1
  138. package/dist/index.d.ts +54 -0
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.mjs +16458 -12654
  141. package/dist/index.mjs.map +1 -1
  142. package/dist/react.css +1 -1
  143. package/dist/sections/AppDownload/AppDownload.d.ts +12 -0
  144. package/dist/sections/AppDownload/AppDownload.d.ts.map +1 -0
  145. package/dist/sections/AppDownload/AppDownload.types.d.ts +118 -0
  146. package/dist/sections/AppDownload/AppDownload.types.d.ts.map +1 -0
  147. package/dist/sections/AppDownload/index.d.ts +3 -0
  148. package/dist/sections/AppDownload/index.d.ts.map +1 -0
  149. package/dist/sections/Banner/Banner.d.ts +12 -0
  150. package/dist/sections/Banner/Banner.d.ts.map +1 -0
  151. package/dist/sections/Banner/Banner.types.d.ts +105 -0
  152. package/dist/sections/Banner/Banner.types.d.ts.map +1 -0
  153. package/dist/sections/Banner/index.d.ts +3 -0
  154. package/dist/sections/Banner/index.d.ts.map +1 -0
  155. package/dist/sections/Blog/Blog.d.ts +12 -0
  156. package/dist/sections/Blog/Blog.d.ts.map +1 -0
  157. package/dist/sections/Blog/Blog.types.d.ts +143 -0
  158. package/dist/sections/Blog/Blog.types.d.ts.map +1 -0
  159. package/dist/sections/Blog/index.d.ts +3 -0
  160. package/dist/sections/Blog/index.d.ts.map +1 -0
  161. package/dist/sections/CTA/CTA.d.ts +24 -0
  162. package/dist/sections/CTA/CTA.d.ts.map +1 -0
  163. package/dist/sections/CTA/CTA.types.d.ts +74 -0
  164. package/dist/sections/CTA/CTA.types.d.ts.map +1 -0
  165. package/dist/sections/CTA/index.d.ts +6 -0
  166. package/dist/sections/CTA/index.d.ts.map +1 -0
  167. package/dist/sections/Carousel/Carousel.d.ts +36 -0
  168. package/dist/sections/Carousel/Carousel.d.ts.map +1 -0
  169. package/dist/sections/Carousel/Carousel.types.d.ts +160 -0
  170. package/dist/sections/Carousel/Carousel.types.d.ts.map +1 -0
  171. package/dist/sections/Carousel/CarouselCard.d.ts +12 -0
  172. package/dist/sections/Carousel/CarouselCard.d.ts.map +1 -0
  173. package/dist/sections/Carousel/index.d.ts +7 -0
  174. package/dist/sections/Carousel/index.d.ts.map +1 -0
  175. package/dist/sections/Comparison/Comparison.d.ts +12 -0
  176. package/dist/sections/Comparison/Comparison.d.ts.map +1 -0
  177. package/dist/sections/Comparison/Comparison.types.d.ts +124 -0
  178. package/dist/sections/Comparison/Comparison.types.d.ts.map +1 -0
  179. package/dist/sections/Comparison/index.d.ts +3 -0
  180. package/dist/sections/Comparison/index.d.ts.map +1 -0
  181. package/dist/sections/Contact/Contact.d.ts +29 -0
  182. package/dist/sections/Contact/Contact.d.ts.map +1 -0
  183. package/dist/sections/Contact/Contact.types.d.ts +137 -0
  184. package/dist/sections/Contact/Contact.types.d.ts.map +1 -0
  185. package/dist/sections/Contact/index.d.ts +6 -0
  186. package/dist/sections/Contact/index.d.ts.map +1 -0
  187. package/dist/sections/Container/Container.d.ts +17 -0
  188. package/dist/sections/Container/Container.d.ts.map +1 -0
  189. package/dist/sections/Container/Container.types.d.ts +47 -0
  190. package/dist/sections/Container/Container.types.d.ts.map +1 -0
  191. package/dist/sections/Container/index.d.ts +6 -0
  192. package/dist/sections/Container/index.d.ts.map +1 -0
  193. package/dist/sections/FAQ/FAQ.d.ts +29 -0
  194. package/dist/sections/FAQ/FAQ.d.ts.map +1 -0
  195. package/dist/sections/FAQ/FAQ.types.d.ts +121 -0
  196. package/dist/sections/FAQ/FAQ.types.d.ts.map +1 -0
  197. package/dist/sections/FAQ/FAQItemCard.d.ts +12 -0
  198. package/dist/sections/FAQ/FAQItemCard.d.ts.map +1 -0
  199. package/dist/sections/FAQ/index.d.ts +7 -0
  200. package/dist/sections/FAQ/index.d.ts.map +1 -0
  201. package/dist/sections/Features/FeatureCard.d.ts +11 -0
  202. package/dist/sections/Features/FeatureCard.d.ts.map +1 -0
  203. package/dist/sections/Features/Features.d.ts +24 -0
  204. package/dist/sections/Features/Features.d.ts.map +1 -0
  205. package/dist/sections/Features/Features.types.d.ts +104 -0
  206. package/dist/sections/Features/Features.types.d.ts.map +1 -0
  207. package/dist/sections/Features/index.d.ts +7 -0
  208. package/dist/sections/Features/index.d.ts.map +1 -0
  209. package/dist/sections/Footer/Footer.d.ts +24 -0
  210. package/dist/sections/Footer/Footer.d.ts.map +1 -0
  211. package/dist/sections/Footer/Footer.types.d.ts +133 -0
  212. package/dist/sections/Footer/Footer.types.d.ts.map +1 -0
  213. package/dist/sections/Footer/index.d.ts +6 -0
  214. package/dist/sections/Footer/index.d.ts.map +1 -0
  215. package/dist/sections/Gallery/Gallery.d.ts +12 -0
  216. package/dist/sections/Gallery/Gallery.d.ts.map +1 -0
  217. package/dist/sections/Gallery/Gallery.types.d.ts +118 -0
  218. package/dist/sections/Gallery/Gallery.types.d.ts.map +1 -0
  219. package/dist/sections/Gallery/index.d.ts +3 -0
  220. package/dist/sections/Gallery/index.d.ts.map +1 -0
  221. package/dist/sections/Hero/Hero.d.ts +22 -0
  222. package/dist/sections/Hero/Hero.d.ts.map +1 -0
  223. package/dist/sections/Hero/Hero.types.d.ts +83 -0
  224. package/dist/sections/Hero/Hero.types.d.ts.map +1 -0
  225. package/dist/sections/Hero/index.d.ts +6 -0
  226. package/dist/sections/Hero/index.d.ts.map +1 -0
  227. package/dist/sections/LogoCloud/LogoCloud.d.ts +26 -0
  228. package/dist/sections/LogoCloud/LogoCloud.d.ts.map +1 -0
  229. package/dist/sections/LogoCloud/LogoCloud.types.d.ts +105 -0
  230. package/dist/sections/LogoCloud/LogoCloud.types.d.ts.map +1 -0
  231. package/dist/sections/LogoCloud/index.d.ts +6 -0
  232. package/dist/sections/LogoCloud/index.d.ts.map +1 -0
  233. package/dist/sections/Newsletter/Newsletter.d.ts +22 -0
  234. package/dist/sections/Newsletter/Newsletter.d.ts.map +1 -0
  235. package/dist/sections/Newsletter/Newsletter.types.d.ts +101 -0
  236. package/dist/sections/Newsletter/Newsletter.types.d.ts.map +1 -0
  237. package/dist/sections/Newsletter/index.d.ts +6 -0
  238. package/dist/sections/Newsletter/index.d.ts.map +1 -0
  239. package/dist/sections/Pricing/Pricing.d.ts +35 -0
  240. package/dist/sections/Pricing/Pricing.d.ts.map +1 -0
  241. package/dist/sections/Pricing/Pricing.types.d.ts +133 -0
  242. package/dist/sections/Pricing/Pricing.types.d.ts.map +1 -0
  243. package/dist/sections/Pricing/PricingCard.d.ts +11 -0
  244. package/dist/sections/Pricing/PricingCard.d.ts.map +1 -0
  245. package/dist/sections/Pricing/index.d.ts +7 -0
  246. package/dist/sections/Pricing/index.d.ts.map +1 -0
  247. package/dist/sections/Section/Section.d.ts +19 -0
  248. package/dist/sections/Section/Section.d.ts.map +1 -0
  249. package/dist/sections/Section/Section.types.d.ts +68 -0
  250. package/dist/sections/Section/Section.types.d.ts.map +1 -0
  251. package/dist/sections/Section/index.d.ts +6 -0
  252. package/dist/sections/Section/index.d.ts.map +1 -0
  253. package/dist/sections/SocialProof/SocialProof.d.ts +12 -0
  254. package/dist/sections/SocialProof/SocialProof.d.ts.map +1 -0
  255. package/dist/sections/SocialProof/SocialProof.types.d.ts +142 -0
  256. package/dist/sections/SocialProof/SocialProof.types.d.ts.map +1 -0
  257. package/dist/sections/SocialProof/index.d.ts +3 -0
  258. package/dist/sections/SocialProof/index.d.ts.map +1 -0
  259. package/dist/sections/Stats/StatItemCard.d.ts +11 -0
  260. package/dist/sections/Stats/StatItemCard.d.ts.map +1 -0
  261. package/dist/sections/Stats/Stats.d.ts +25 -0
  262. package/dist/sections/Stats/Stats.d.ts.map +1 -0
  263. package/dist/sections/Stats/Stats.types.d.ts +125 -0
  264. package/dist/sections/Stats/Stats.types.d.ts.map +1 -0
  265. package/dist/sections/Stats/index.d.ts +7 -0
  266. package/dist/sections/Stats/index.d.ts.map +1 -0
  267. package/dist/sections/Team/Team.d.ts +31 -0
  268. package/dist/sections/Team/Team.d.ts.map +1 -0
  269. package/dist/sections/Team/Team.types.d.ts +135 -0
  270. package/dist/sections/Team/Team.types.d.ts.map +1 -0
  271. package/dist/sections/Team/TeamMemberCard.d.ts +11 -0
  272. package/dist/sections/Team/TeamMemberCard.d.ts.map +1 -0
  273. package/dist/sections/Team/index.d.ts +7 -0
  274. package/dist/sections/Team/index.d.ts.map +1 -0
  275. package/dist/sections/Testimonials/TestimonialCard.d.ts +11 -0
  276. package/dist/sections/Testimonials/TestimonialCard.d.ts.map +1 -0
  277. package/dist/sections/Testimonials/Testimonials.d.ts +31 -0
  278. package/dist/sections/Testimonials/Testimonials.d.ts.map +1 -0
  279. package/dist/sections/Testimonials/Testimonials.types.d.ts +130 -0
  280. package/dist/sections/Testimonials/Testimonials.types.d.ts.map +1 -0
  281. package/dist/sections/Testimonials/index.d.ts +7 -0
  282. package/dist/sections/Testimonials/index.d.ts.map +1 -0
  283. package/dist/sections/Timeline/Timeline.d.ts +12 -0
  284. package/dist/sections/Timeline/Timeline.d.ts.map +1 -0
  285. package/dist/sections/Timeline/Timeline.types.d.ts +102 -0
  286. package/dist/sections/Timeline/Timeline.types.d.ts.map +1 -0
  287. package/dist/sections/Timeline/index.d.ts +3 -0
  288. package/dist/sections/Timeline/index.d.ts.map +1 -0
  289. package/dist/sections/index.d.ts +80 -0
  290. package/dist/sections/index.d.ts.map +1 -0
  291. package/dist/utils/icons.d.ts +47 -46
  292. package/dist/utils/icons.d.ts.map +1 -1
  293. package/package.json +5 -3
@@ -0,0 +1,72 @@
1
+ /**
2
+ * useCopyToClipboard Hook
3
+ *
4
+ * Provides a function to copy text to clipboard with status tracking.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const { copy, copied, error } = useCopyToClipboard();
9
+ *
10
+ * return (
11
+ * <Button onClick={() => copy('Hello!')}>
12
+ * {copied ? 'Copied!' : 'Copy'}
13
+ * </Button>
14
+ * );
15
+ * ```
16
+ */
17
+ /**
18
+ * Options for useCopyToClipboard hook
19
+ */
20
+ export interface UseCopyToClipboardOptions {
21
+ /**
22
+ * Duration in ms to show "copied" state
23
+ * @default 2000
24
+ */
25
+ copiedDuration?: number;
26
+ /**
27
+ * Callback when copy succeeds
28
+ */
29
+ onSuccess?: (text: string) => void;
30
+ /**
31
+ * Callback when copy fails
32
+ */
33
+ onError?: (error: Error) => void;
34
+ }
35
+ /**
36
+ * Return type for useCopyToClipboard hook
37
+ */
38
+ export interface UseCopyToClipboardReturn {
39
+ /**
40
+ * Function to copy text to clipboard
41
+ */
42
+ copy: (text: string) => Promise<boolean>;
43
+ /**
44
+ * Whether text was recently copied
45
+ */
46
+ copied: boolean;
47
+ /**
48
+ * The last copied text
49
+ */
50
+ copiedText: string | null;
51
+ /**
52
+ * Any error that occurred
53
+ */
54
+ error: Error | null;
55
+ /**
56
+ * Reset the copied state
57
+ */
58
+ reset: () => void;
59
+ }
60
+ /**
61
+ * Hook to copy text to clipboard
62
+ *
63
+ * @param options - Configuration options
64
+ * @returns Copy function and status
65
+ */
66
+ export declare function useCopyToClipboard(options?: UseCopyToClipboardOptions): UseCopyToClipboardReturn;
67
+ /**
68
+ * Simplified hook that just returns the copy function
69
+ * For simple use cases where you don't need status tracking
70
+ */
71
+ export declare function useCopy(): (text: string) => Promise<boolean>;
72
+ //# sourceMappingURL=useCopyToClipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCopyToClipboard.d.ts","sourceRoot":"","sources":["../../src/hooks/useCopyToClipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,yBAA8B,GACtC,wBAAwB,CA2E1B;AAED;;;GAGG;AACH,wBAAgB,OAAO,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAG5D"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * useDebounce Hook
3
+ *
4
+ * Debounces a value, updating only after a specified delay.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const [search, setSearch] = useState('');
9
+ * const debouncedSearch = useDebounce(search, 300);
10
+ *
11
+ * useEffect(() => {
12
+ * // Only runs 300ms after user stops typing
13
+ * fetchResults(debouncedSearch);
14
+ * }, [debouncedSearch]);
15
+ * ```
16
+ */
17
+ /**
18
+ * Hook to debounce a value
19
+ *
20
+ * @param value - Value to debounce
21
+ * @param delay - Debounce delay in milliseconds
22
+ * @returns Debounced value
23
+ */
24
+ export declare function useDebounce<T>(value: T, delay: number): T;
25
+ /**
26
+ * Options for useDebouncedCallback
27
+ */
28
+ export interface UseDebouncedCallbackOptions {
29
+ /**
30
+ * Whether to call immediately on the leading edge
31
+ * @default false
32
+ */
33
+ leading?: boolean;
34
+ /**
35
+ * Whether to call on the trailing edge
36
+ * @default true
37
+ */
38
+ trailing?: boolean;
39
+ /**
40
+ * Maximum time to wait before forcing invocation
41
+ */
42
+ maxWait?: number;
43
+ }
44
+ /**
45
+ * Hook to create a debounced callback function
46
+ *
47
+ * @param callback - Function to debounce
48
+ * @param delay - Debounce delay in milliseconds
49
+ * @param options - Additional options
50
+ * @returns Debounced callback and control functions
51
+ */
52
+ export declare function useDebouncedCallback<T extends (...args: unknown[]) => unknown>(callback: T, delay: number, options?: UseDebouncedCallbackOptions): {
53
+ callback: (...args: Parameters<T>) => void;
54
+ cancel: () => void;
55
+ flush: () => void;
56
+ isPending: () => boolean;
57
+ };
58
+ //# sourceMappingURL=useDebounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/hooks/useDebounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAczD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAC5E,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,2BAAgC,GACxC;IACD,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,OAAO,CAAC;CAC1B,CAmFA"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * useDisclosure Hook
3
+ *
4
+ * Manages open/close state for modals, drawers, dropdowns, etc.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const { isOpen, open, close, toggle } = useDisclosure();
9
+ *
10
+ * return (
11
+ * <>
12
+ * <Button onClick={toggle}>Toggle Modal</Button>
13
+ * <Modal open={isOpen} onClose={close}>
14
+ * Content
15
+ * </Modal>
16
+ * </>
17
+ * );
18
+ * ```
19
+ */
20
+ /**
21
+ * Options for useDisclosure hook
22
+ */
23
+ export interface UseDisclosureOptions {
24
+ /**
25
+ * Initial open state
26
+ * @default false
27
+ */
28
+ defaultOpen?: boolean;
29
+ /**
30
+ * Callback when state changes to open
31
+ */
32
+ onOpen?: () => void;
33
+ /**
34
+ * Callback when state changes to closed
35
+ */
36
+ onClose?: () => void;
37
+ /**
38
+ * Callback when state changes (open or close)
39
+ */
40
+ onChange?: (isOpen: boolean) => void;
41
+ }
42
+ /**
43
+ * Return type for useDisclosure hook
44
+ */
45
+ export interface UseDisclosureReturn {
46
+ /**
47
+ * Whether the disclosure is open
48
+ */
49
+ isOpen: boolean;
50
+ /**
51
+ * Open the disclosure
52
+ */
53
+ open: () => void;
54
+ /**
55
+ * Close the disclosure
56
+ */
57
+ close: () => void;
58
+ /**
59
+ * Toggle the disclosure
60
+ */
61
+ toggle: () => void;
62
+ /**
63
+ * Set the disclosure state directly
64
+ */
65
+ setIsOpen: (value: boolean) => void;
66
+ }
67
+ /**
68
+ * Hook for managing open/close state
69
+ *
70
+ * @param options - Configuration options
71
+ * @returns Disclosure state and control functions
72
+ */
73
+ export declare function useDisclosure(options?: UseDisclosureOptions): UseDisclosureReturn;
74
+ //# sourceMappingURL=useDisclosure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDisclosure.d.ts","sourceRoot":"","sources":["../../src/hooks/useDisclosure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CAkDrB"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * useKeyboard Hook
3
+ *
4
+ * Handles keyboard shortcuts and key events.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * // Single key
9
+ * useKeyboard('Escape', () => closeModal());
10
+ *
11
+ * // With modifiers
12
+ * useKeyboard('k', () => openSearch(), { meta: true });
13
+ * useKeyboard('s', () => save(), { ctrl: true });
14
+ *
15
+ * // Multiple keys
16
+ * useKeyboardShortcuts({
17
+ * 'Escape': () => closeModal(),
18
+ * 'Meta+k': () => openSearch(),
19
+ * 'Ctrl+s': () => save(),
20
+ * });
21
+ * ```
22
+ */
23
+ /**
24
+ * Key modifier options
25
+ */
26
+ export interface KeyModifiers {
27
+ /**
28
+ * Require Ctrl key
29
+ * @default false
30
+ */
31
+ ctrl?: boolean;
32
+ /**
33
+ * Require Alt/Option key
34
+ * @default false
35
+ */
36
+ alt?: boolean;
37
+ /**
38
+ * Require Shift key
39
+ * @default false
40
+ */
41
+ shift?: boolean;
42
+ /**
43
+ * Require Meta/Cmd key (Mac) or Windows key
44
+ * @default false
45
+ */
46
+ meta?: boolean;
47
+ }
48
+ /**
49
+ * Options for useKeyboard hook
50
+ */
51
+ export interface UseKeyboardOptions extends KeyModifiers {
52
+ /**
53
+ * Whether the handler is enabled
54
+ * @default true
55
+ */
56
+ enabled?: boolean;
57
+ /**
58
+ * Event type to listen for
59
+ * @default 'keydown'
60
+ */
61
+ event?: 'keydown' | 'keyup' | 'keypress';
62
+ /**
63
+ * Whether to prevent default browser behavior
64
+ * @default true
65
+ */
66
+ preventDefault?: boolean;
67
+ /**
68
+ * Whether to stop event propagation
69
+ * @default false
70
+ */
71
+ stopPropagation?: boolean;
72
+ /**
73
+ * Target element (default: document)
74
+ */
75
+ target?: HTMLElement | null;
76
+ /**
77
+ * Only trigger if target element is focused
78
+ * @default false
79
+ */
80
+ targetOnly?: boolean;
81
+ }
82
+ /**
83
+ * Hook to handle a single keyboard shortcut
84
+ *
85
+ * @param key - Key to listen for (e.g., 'Escape', 'Enter', 'k')
86
+ * @param handler - Callback when key is pressed
87
+ * @param options - Additional options
88
+ */
89
+ export declare function useKeyboard(key: string, handler: (event: KeyboardEvent) => void, options?: UseKeyboardOptions): void;
90
+ /**
91
+ * Shortcut definition with handler
92
+ */
93
+ export type KeyboardShortcuts = Record<string, () => void>;
94
+ /**
95
+ * Hook to handle multiple keyboard shortcuts
96
+ *
97
+ * @param shortcuts - Object mapping shortcut strings to handlers
98
+ * @param options - Common options for all shortcuts
99
+ */
100
+ export declare function useKeyboardShortcuts(shortcuts: KeyboardShortcuts, options?: Omit<UseKeyboardOptions, keyof KeyModifiers>): void;
101
+ //# sourceMappingURL=useKeyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAEzC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,EACvC,OAAO,GAAE,kBAAuB,GAC/B,IAAI,CAqFN;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;AAuC3D;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,iBAAiB,EAC5B,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,YAAY,CAAM,GACzD,IAAI,CAkEN"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * useLocalStorage Hook
3
+ *
4
+ * Syncs state with localStorage for persistence across sessions.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const [theme, setTheme] = useLocalStorage('theme', 'light');
9
+ * const [user, setUser] = useLocalStorage<User | null>('user', null);
10
+ *
11
+ * // Value persists across page refreshes
12
+ * setTheme('dark');
13
+ * ```
14
+ */
15
+ /**
16
+ * Options for useLocalStorage hook
17
+ */
18
+ export interface UseLocalStorageOptions<T> {
19
+ /**
20
+ * Custom serializer function
21
+ * @default JSON.stringify
22
+ */
23
+ serializer?: (value: T) => string;
24
+ /**
25
+ * Custom deserializer function
26
+ * @default JSON.parse
27
+ */
28
+ deserializer?: (value: string) => T;
29
+ /**
30
+ * Whether to sync across tabs
31
+ * @default true
32
+ */
33
+ syncAcrossTabs?: boolean;
34
+ }
35
+ /**
36
+ * Hook to sync state with localStorage
37
+ *
38
+ * @param key - localStorage key
39
+ * @param initialValue - Initial value if key doesn't exist
40
+ * @param options - Additional options
41
+ * @returns [value, setValue, removeValue]
42
+ */
43
+ export declare function useLocalStorage<T>(key: string, initialValue: T, options?: UseLocalStorageOptions<T>): [T, (value: T | ((prev: T) => T)) => void, () => void];
44
+ /**
45
+ * Hook to sync state with sessionStorage (similar to useLocalStorage)
46
+ */
47
+ export declare function useSessionStorage<T>(key: string, initialValue: T, options?: Omit<UseLocalStorageOptions<T>, 'syncAcrossTabs'>): [T, (value: T | ((prev: T) => T)) => void, () => void];
48
+ //# sourceMappingURL=useLocalStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLocalStorage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;IAElC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,CAAC;IAEpC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,EACf,OAAO,GAAE,sBAAsB,CAAC,CAAC,CAAM,GACtC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,IAAI,CAAC,CAiHxD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,EACf,OAAO,GAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAM,GAC9D,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,IAAI,CAAC,CAuDxD"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * useMediaQuery Hook
3
+ *
4
+ * Detects if a media query matches the current viewport.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isMobile = useMediaQuery('(max-width: 768px)');
9
+ * const isDark = useMediaQuery('(prefers-color-scheme: dark)');
10
+ * const prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');
11
+ * ```
12
+ */
13
+ /**
14
+ * Hook to detect if a media query matches
15
+ *
16
+ * @param query - CSS media query string
17
+ * @returns Whether the media query matches
18
+ */
19
+ export declare function useMediaQuery(query: string): boolean;
20
+ /**
21
+ * Preset breakpoint hooks based on Orion Design System
22
+ */
23
+ /**
24
+ * Returns true if viewport is mobile (< 640px)
25
+ */
26
+ export declare function useIsMobile(): boolean;
27
+ /**
28
+ * Returns true if viewport is tablet (640px - 1023px)
29
+ */
30
+ export declare function useIsTablet(): boolean;
31
+ /**
32
+ * Returns true if viewport is desktop (>= 1024px)
33
+ */
34
+ export declare function useIsDesktop(): boolean;
35
+ /**
36
+ * Returns true if user prefers dark color scheme
37
+ */
38
+ export declare function usePrefersDarkMode(): boolean;
39
+ /**
40
+ * Returns true if user prefers reduced motion
41
+ */
42
+ export declare function usePrefersReducedMotion(): boolean;
43
+ //# sourceMappingURL=useMediaQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAoCpD;AAED;;GAEG;AAEH;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD"}