@spteck/react-controls-v2 2.4.4 → 2.5.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 (222) hide show
  1. package/dist/{LocalizationProvider-CvSHuk0e.js → LocalizationProvider-CBc0PcyH.js} +140 -48
  2. package/dist/LocalizationProvider-CJ2mjvH-.cjs +2 -0
  3. package/dist/{ar-BPzd6WER.js → ar-D78_ioot.js} +93 -1
  4. package/dist/{ar-CBSdRr5Q.cjs → ar-DbkaJtO2.cjs} +2 -2
  5. package/dist/{az-DoZjCfF0.cjs → az-Cf7y5UC1.cjs} +2 -2
  6. package/dist/{az-MWX-WDgc.js → az-OomGCL5f.js} +93 -1
  7. package/dist/{bg-CvRGS4sF.js → bg-OQDPULfM.js} +93 -1
  8. package/dist/{bg-DI8UD_HF.cjs → bg-nghgX11u.cjs} +2 -2
  9. package/dist/{bs-aXQgChJT.js → bs-BYdzDqQ_.js} +93 -1
  10. package/dist/{bs-DQhZlEEo.cjs → bs-CMdfvb33.cjs} +2 -2
  11. package/dist/{ca-BCXCXzgh.js → ca-9lGrM-T0.js} +93 -1
  12. package/dist/{ca-DSC32tOX.cjs → ca-C8cBXf9y.cjs} +2 -2
  13. package/dist/components/BackgroundImage/BackgroundImage.d.ts +4 -0
  14. package/dist/components/BackgroundImage/IBackgroundImageProps.d.ts +14 -0
  15. package/dist/components/BackgroundImage/index.d.ts +3 -0
  16. package/dist/components/BackgroundImage/useBackgroundImageStyles.d.ts +4 -0
  17. package/dist/components/Blockquote/Blockquote.d.ts +4 -0
  18. package/dist/components/Blockquote/IBlockquoteProps.d.ts +21 -0
  19. package/dist/components/Blockquote/index.d.ts +4 -0
  20. package/dist/components/Blockquote/useBlockquoteStyles.d.ts +6 -0
  21. package/dist/components/ColorPicker/ColorPicker.d.ts +51 -0
  22. package/dist/components/ColorPicker/ColorPickerAlpha.d.ts +4 -0
  23. package/dist/components/ColorPicker/ColorPickerBlock.d.ts +4 -0
  24. package/dist/components/ColorPicker/ColorPickerChrome.d.ts +4 -0
  25. package/dist/components/ColorPicker/ColorPickerCircle.d.ts +4 -0
  26. package/dist/components/ColorPicker/ColorPickerColorful.d.ts +4 -0
  27. package/dist/components/ColorPicker/ColorPickerCompact.d.ts +4 -0
  28. package/dist/components/ColorPicker/ColorPickerEditableInput.d.ts +4 -0
  29. package/dist/components/ColorPicker/ColorPickerEditableInputHSLA.d.ts +4 -0
  30. package/dist/components/ColorPicker/ColorPickerEditableInputRGBA.d.ts +4 -0
  31. package/dist/components/ColorPicker/ColorPickerHue.d.ts +4 -0
  32. package/dist/components/ColorPicker/ColorPickerInteractive.d.ts +6 -0
  33. package/dist/components/ColorPicker/ColorPickerSaturation.d.ts +4 -0
  34. package/dist/components/ColorPicker/ColorPickerShadeSlider.d.ts +4 -0
  35. package/dist/components/ColorPicker/ColorPickerSketch.d.ts +4 -0
  36. package/dist/components/ColorPicker/ColorPickerSlider.d.ts +4 -0
  37. package/dist/components/ColorPicker/ColorPickerSwatch.d.ts +4 -0
  38. package/dist/components/ColorPicker/ColorPickerTheme.d.ts +4 -0
  39. package/dist/components/ColorPicker/ColorPickerWheel.d.ts +4 -0
  40. package/dist/components/ColorPicker/IColorPickerProps.d.ts +297 -0
  41. package/dist/components/ColorPicker/colorConvert.d.ts +72 -0
  42. package/dist/components/ColorPicker/index.d.ts +25 -0
  43. package/dist/components/ColorPicker/useColorPickerStyles.d.ts +30 -0
  44. package/dist/components/CompactCalendar/CalendarGrid.d.ts +4 -0
  45. package/dist/components/CompactCalendar/CalendarHeader.d.ts +4 -0
  46. package/dist/components/CompactCalendar/CompactCalendar.d.ts +4 -0
  47. package/dist/components/CompactCalendar/EventsList.d.ts +4 -0
  48. package/dist/components/CompactCalendar/ICalendarGridProps.d.ts +32 -0
  49. package/dist/components/CompactCalendar/ICalendarHeaderProps.d.ts +15 -0
  50. package/dist/components/CompactCalendar/ICompactCalendarProps.d.ts +54 -0
  51. package/dist/components/CompactCalendar/IEventsListProps.d.ts +21 -0
  52. package/dist/components/CompactCalendar/index.d.ts +12 -0
  53. package/dist/components/CompactCalendar/resolveLocale.d.ts +12 -0
  54. package/dist/components/CompactCalendar/useCompactCalendarEvents.d.ts +12 -0
  55. package/dist/components/CompactCalendar/useCompactCalendarStyles.d.ts +26 -0
  56. package/dist/components/Dropzone/Dropzone.d.ts +31 -0
  57. package/dist/components/Dropzone/DropzoneContext.d.ts +20 -0
  58. package/dist/components/Dropzone/DropzoneFullScreen.d.ts +19 -0
  59. package/dist/components/Dropzone/DropzoneStatus.d.ts +9 -0
  60. package/dist/components/Dropzone/IDropzoneProps.d.ts +102 -0
  61. package/dist/components/Dropzone/index.d.ts +8 -0
  62. package/dist/components/Dropzone/mime-types.d.ts +39 -0
  63. package/dist/components/Dropzone/useDropzoneStyles.d.ts +12 -0
  64. package/dist/components/InlineSVG/IInlineSVGProps.d.ts +40 -0
  65. package/dist/components/InlineSVG/InlineSVG.d.ts +4 -0
  66. package/dist/components/InlineSVG/index.d.ts +5 -0
  67. package/dist/components/InlineSVG/useInlineSVG.d.ts +30 -0
  68. package/dist/components/InlineSVG/useInlineSVGStyles.d.ts +4 -0
  69. package/dist/components/Marquee/IMarqueeProps.d.ts +28 -0
  70. package/dist/components/Marquee/Marquee.d.ts +4 -0
  71. package/dist/components/Marquee/index.d.ts +4 -0
  72. package/dist/components/Marquee/useMarqueeStyles.d.ts +6 -0
  73. package/dist/components/OTPField/IOTPFieldProps.d.ts +49 -0
  74. package/dist/components/OTPField/OTPField.d.ts +8 -0
  75. package/dist/components/OTPField/index.d.ts +3 -0
  76. package/dist/components/OTPField/useOTPField.d.ts +25 -0
  77. package/dist/components/OTPField/useOTPFieldStyles.d.ts +23 -0
  78. package/dist/components/RichTextEditor/IRichTextEditorProps.d.ts +230 -0
  79. package/dist/components/RichTextEditor/Icons.d.ts +43 -0
  80. package/dist/components/RichTextEditor/RichTextEditor.d.ts +163 -0
  81. package/dist/components/RichTextEditor/RichTextEditorColorControl.d.ts +4 -0
  82. package/dist/components/RichTextEditor/RichTextEditorColorPickerControl.d.ts +4 -0
  83. package/dist/components/RichTextEditor/RichTextEditorContent.d.ts +4 -0
  84. package/dist/components/RichTextEditor/RichTextEditorContext.d.ts +20 -0
  85. package/dist/components/RichTextEditor/RichTextEditorControl.d.ts +22 -0
  86. package/dist/components/RichTextEditor/RichTextEditorControlsGroup.d.ts +4 -0
  87. package/dist/components/RichTextEditor/RichTextEditorFontFamilyControl.d.ts +4 -0
  88. package/dist/components/RichTextEditor/RichTextEditorLinkControl.d.ts +4 -0
  89. package/dist/components/RichTextEditor/RichTextEditorSourceCodeControl.d.ts +6 -0
  90. package/dist/components/RichTextEditor/RichTextEditorToolbar.d.ts +4 -0
  91. package/dist/components/RichTextEditor/controls.d.ts +125 -0
  92. package/dist/components/RichTextEditor/extensions.d.ts +12 -0
  93. package/dist/components/RichTextEditor/index.d.ts +15 -0
  94. package/dist/components/RichTextEditor/useRichTextEditorStyles.d.ts +28 -0
  95. package/dist/components/Skeleton/ISkeletonLoaderProps.d.ts +102 -0
  96. package/dist/components/Skeleton/SkeletonLoader.d.ts +4 -0
  97. package/dist/components/Skeleton/index.d.ts +5 -0
  98. package/dist/components/Skeleton/useSkeletonExtract.d.ts +4 -0
  99. package/dist/components/Skeleton/useSkeletonLoaderStyles.d.ts +11 -0
  100. package/dist/components/Skeleton/useSkeletonShared.d.ts +25 -0
  101. package/dist/components/Spoiler/ISpoilerProps.d.ts +30 -0
  102. package/dist/components/Spoiler/Spoiler.d.ts +4 -0
  103. package/dist/components/Spoiler/index.d.ts +3 -0
  104. package/dist/components/Spoiler/useSpoilerStyles.d.ts +13 -0
  105. package/dist/components/Spotlight/ISpotlightProps.d.ts +181 -0
  106. package/dist/components/Spotlight/Spotlight.d.ts +27 -0
  107. package/dist/components/Spotlight/SpotlightAction.d.ts +5 -0
  108. package/dist/components/Spotlight/SpotlightActionsGroup.d.ts +5 -0
  109. package/dist/components/Spotlight/SpotlightActionsList.d.ts +5 -0
  110. package/dist/components/Spotlight/SpotlightEmpty.d.ts +5 -0
  111. package/dist/components/Spotlight/SpotlightFooter.d.ts +5 -0
  112. package/dist/components/Spotlight/SpotlightRoot.d.ts +5 -0
  113. package/dist/components/Spotlight/SpotlightSearch.d.ts +5 -0
  114. package/dist/components/Spotlight/defaultSpotlightFilter.d.ts +9 -0
  115. package/dist/components/Spotlight/index.d.ts +12 -0
  116. package/dist/components/Spotlight/useSpotlight.d.ts +59 -0
  117. package/dist/components/Spotlight/useSpotlightStyles.d.ts +17 -0
  118. package/dist/components/Stepper/IStepperProps.d.ts +54 -0
  119. package/dist/components/Stepper/Stepper.d.ts +9 -0
  120. package/dist/components/Stepper/StepperCompleted.d.ts +9 -0
  121. package/dist/components/Stepper/StepperStep.d.ts +20 -0
  122. package/dist/components/Stepper/index.d.ts +3 -0
  123. package/dist/components/Stepper/useStepperStepStyles.d.ts +21 -0
  124. package/dist/components/Stepper/useStepperStyles.d.ts +11 -0
  125. package/dist/components/Timeline/ITimelineProps.d.ts +42 -0
  126. package/dist/components/Timeline/Timeline.d.ts +6 -0
  127. package/dist/components/Timeline/TimelineItem.d.ts +15 -0
  128. package/dist/components/Timeline/index.d.ts +3 -0
  129. package/dist/components/Timeline/useTimelineItemStyles.d.ts +19 -0
  130. package/dist/components/Timeline/useTimelineStyles.d.ts +9 -0
  131. package/dist/components/calendarControl/models/IAttendee.d.ts +5 -0
  132. package/dist/components/calendarControl/models/IEvents.d.ts +21 -0
  133. package/dist/{cs-B0C33FJt.cjs → cs-B_90ZpDL.cjs} +2 -2
  134. package/dist/{cs-VHWnqXwJ.js → cs-nVY__F1s.js} +93 -1
  135. package/dist/{cy-qF-aNCW-.js → cy-DcW2RMnM.js} +93 -1
  136. package/dist/{cy-BNabORao.cjs → cy-YdAkRgN7.cjs} +2 -2
  137. package/dist/{da-BmgXTEXm.cjs → da-3S6dCKx6.cjs} +2 -2
  138. package/dist/{da-rR5TnSBw.js → da-DlZaxKzd.js} +93 -1
  139. package/dist/{de-DbeDjRNp.js → de-DMQCCsxB.js} +93 -1
  140. package/dist/{de-B4w38-0d.cjs → de-cBD6cQjC.cjs} +2 -2
  141. package/dist/{el-Cgk6VsxL.cjs → el-C861pBjb.cjs} +2 -2
  142. package/dist/{el-DDeD6FiX.js → el-DWGl8fc0.js} +93 -1
  143. package/dist/{es-dvKffn6Q.js → es--B6susjn.js} +93 -1
  144. package/dist/{es-3ugMIZuA.cjs → es-7wJEQTAK.cjs} +2 -2
  145. package/dist/{et-CIIzxbat.cjs → et-BDQwGJeu.cjs} +2 -2
  146. package/dist/{et-DgZFBtK7.js → et-CNiq2LnL.js} +93 -1
  147. package/dist/{eu-C6r1_PRy.js → eu-B4UCvLGV.js} +93 -1
  148. package/dist/{eu-BUNUOJ7E.cjs → eu-Bis1mMYp.cjs} +2 -2
  149. package/dist/{fi-q6BFPHtt.cjs → fi-Bish9bFy.cjs} +2 -2
  150. package/dist/{fi-CzOKgmjK.js → fi-C1YgTvJp.js} +93 -1
  151. package/dist/{fr-D0cDkdbn.js → fr-Dn0f3XKj.js} +93 -1
  152. package/dist/{fr-BEnCZ733.cjs → fr-mNj_7F7p.cjs} +2 -2
  153. package/dist/{ga-BXyKTnJr.cjs → ga-DHGpUClX.cjs} +2 -2
  154. package/dist/{ga-0A7ndSzw.js → ga-lrKtfvqw.js} +93 -1
  155. package/dist/{gl-DR1C-hSi.cjs → gl-BaGwE_dH.cjs} +2 -2
  156. package/dist/{gl-BNwj4XAu.js → gl-Bcp6x2zx.js} +93 -1
  157. package/dist/{he-BPiZ6D5h.js → he-6cRlkGst.js} +93 -1
  158. package/dist/{he-OD1Ex2Fw.cjs → he-CyBuj0mX.cjs} +2 -2
  159. package/dist/{hi-Dt9FvBmh.cjs → hi-C9Y--qfd.cjs} +2 -2
  160. package/dist/{hi-CSgtp9Yg.js → hi-sWnw2IKq.js} +93 -1
  161. package/dist/hooks/useLocalizationStrings.d.ts +10 -0
  162. package/dist/{hr-CDSSj52Q.js → hr-DVYuTFrR.js} +93 -1
  163. package/dist/{hr-DMzwNhar.cjs → hr-_DB2jbdD.cjs} +2 -2
  164. package/dist/{hu-Bc-rChfV.cjs → hu-B6P_13vr.cjs} +2 -2
  165. package/dist/{hu-TDJYiDOB.js → hu-Ds35ELag.js} +93 -1
  166. package/dist/{id-CwndN9HH.cjs → id-CD6_OeAS.cjs} +2 -2
  167. package/dist/{id-B3IF5pnh.js → id-D3-zrJWX.js} +93 -1
  168. package/dist/index.cjs +48 -33
  169. package/dist/index.d.ts +14 -0
  170. package/dist/index.js +10637 -4137
  171. package/dist/{it-BLET318M.js → it-7v9Dp1d5.js} +93 -1
  172. package/dist/{it-DaYS5Vil.cjs → it-BqWJuJRG.cjs} +2 -2
  173. package/dist/{ja-NxwXLaKV.js → ja-HEhZtJlu.js} +93 -1
  174. package/dist/{ja-BYA2LXHy.cjs → ja-_IB67CHC.cjs} +2 -2
  175. package/dist/{kk-Ctrvuqlz.cjs → kk-1zP-M5hA.cjs} +2 -2
  176. package/dist/{kk-CceJcjtl.js → kk-vjMXRcfC.js} +93 -1
  177. package/dist/{ko-evIcpTG8.cjs → ko-Bh_npcwe.cjs} +2 -2
  178. package/dist/{ko-cS_OE967.js → ko-k4Pa7puV.js} +93 -1
  179. package/dist/localization/ILibraryStrings.d.ts +132 -0
  180. package/dist/localization/index.d.ts +2 -2
  181. package/dist/{lt-CYTLGgh6.cjs → lt-Bcs_RvUC.cjs} +2 -2
  182. package/dist/{lt-CZ-kk_5b.js → lt-DiJ0TBtG.js} +93 -1
  183. package/dist/{lv-COjitD3w.cjs → lv-DXbttzfD.cjs} +2 -2
  184. package/dist/{lv-BTvPpEjc.js → lv-Dsam0ieq.js} +93 -1
  185. package/dist/{mk-CSSyI3El.js → mk-6gVlhUMj.js} +93 -1
  186. package/dist/{mk-B-LF5gVL.cjs → mk-CwexdV8N.cjs} +2 -2
  187. package/dist/{ms-CzEvkib0.cjs → ms-DbohV4fa.cjs} +2 -2
  188. package/dist/{ms-Dz5JnKJ1.js → ms-LR8UEBWu.js} +93 -1
  189. package/dist/{nb-DkgTg1et.js → nb-BCuhLUFv.js} +93 -1
  190. package/dist/{nb-B1KWSX94.cjs → nb-XSnogBcy.cjs} +2 -2
  191. package/dist/{nl-knWqo2aX.cjs → nl-C3fB4nMe.cjs} +2 -2
  192. package/dist/{nl-CQ5eoxw2.js → nl-Cjbk_uDE.js} +93 -1
  193. package/dist/{pl-BQJfOizT.js → pl-3SZu8o4v.js} +93 -1
  194. package/dist/{pl-Ce6dq53t.cjs → pl-BJHabrpe.cjs} +2 -2
  195. package/dist/providers.cjs +1 -1
  196. package/dist/providers.js +1 -1
  197. package/dist/{pt-b0p7DoD0.js → pt-BRvCnjwa.js} +93 -1
  198. package/dist/{pt-BVqTnGkF.cjs → pt-BqRRasV7.cjs} +2 -2
  199. package/dist/{ro-sbBtUVJV.js → ro-B051tdWj.js} +93 -1
  200. package/dist/{ro-DqJMfhmX.cjs → ro-BCq9yIk8.cjs} +2 -2
  201. package/dist/{ru-Dm2NAQyK.cjs → ru-B-TiRA2D.cjs} +2 -2
  202. package/dist/{ru-ofzbka6D.js → ru-wGNmtZwA.js} +93 -1
  203. package/dist/{sk-BtpdNCPC.js → sk-BEUsTaCT.js} +93 -1
  204. package/dist/{sk-BNe6CHG-.cjs → sk-Btf7EoeH.cjs} +2 -2
  205. package/dist/{sl-BKmEUGyu.cjs → sl-Cs0S-Rru.cjs} +2 -2
  206. package/dist/{sl-B4GsKLu6.js → sl-Dt-Wix4R.js} +93 -1
  207. package/dist/{sr-C76YVpkQ.js → sr-Cj6FjoPV.js} +93 -1
  208. package/dist/{sr-Dwya5lwF.cjs → sr-Jxn52mZC.cjs} +2 -2
  209. package/dist/{sv-PesX57cX.js → sv-C5PBTvZZ.js} +93 -1
  210. package/dist/{sv-BGL2G9Vm.cjs → sv-DqwVwzYH.cjs} +2 -2
  211. package/dist/{th-DEv6shFI.cjs → th-CnqYsyp5.cjs} +2 -2
  212. package/dist/{th-CbCNOBnR.js → th-DEMLnNto.js} +93 -1
  213. package/dist/{tr-B0TPxXKS.js → tr-7wlGJ97W.js} +93 -1
  214. package/dist/{tr-BB-QonGE.cjs → tr-BiSE3U_v.cjs} +2 -2
  215. package/dist/{uk-_9cNoBNe.js → uk-B2JY5Ka3.js} +93 -1
  216. package/dist/{uk-B-3fLKpR.cjs → uk-YsR97h-O.cjs} +2 -2
  217. package/dist/{vi-Dx6pJ0ir.cjs → vi-BqlBS0CX.cjs} +2 -2
  218. package/dist/{vi-B8SfqLW6.js → vi-By1JUTa6.js} +93 -1
  219. package/dist/{zh-DD0ml2HG.cjs → zh-C3amwoRq.cjs} +2 -2
  220. package/dist/{zh-DqHnbp6B.js → zh-SZ0W4ZGV.js} +93 -1
  221. package/package.json +19 -1
  222. package/dist/LocalizationProvider-BbfcY9z3.cjs +0 -2
@@ -0,0 +1,12 @@
1
+ import { Extension } from '@tiptap/core';
2
+ /**
3
+ * Custom Link extension that adds Mod-k keyboard shortcut
4
+ * to trigger the link editor popover.
5
+ */
6
+ export declare const Link: import('@tiptap/core').Mark<import('@tiptap/extension-link').LinkOptions, any>;
7
+ /**
8
+ * Creates a TaskList extension with Mod-[/] shortcuts for
9
+ * sinking and lifting task list items.
10
+ */
11
+ export declare function getTaskListExtension(TaskList: Extension): any;
12
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1,15 @@
1
+ export { RichTextEditor } from './RichTextEditor';
2
+ export { RichTextEditorControl, RichTextEditorControlBase, createControl } from './RichTextEditorControl';
3
+ export { RichTextEditorToolbar } from './RichTextEditorToolbar';
4
+ export { RichTextEditorContent } from './RichTextEditorContent';
5
+ export { RichTextEditorControlsGroup } from './RichTextEditorControlsGroup';
6
+ export { RichTextEditorLinkControl } from './RichTextEditorLinkControl';
7
+ export { RichTextEditorColorControl } from './RichTextEditorColorControl';
8
+ export { RichTextEditorColorPickerControl } from './RichTextEditorColorPickerControl';
9
+ export { RichTextEditorSourceCodeControl } from './RichTextEditorSourceCodeControl';
10
+ export { RichTextEditorFontFamilyControl } from './RichTextEditorFontFamilyControl';
11
+ export { Link, getTaskListExtension } from './extensions';
12
+ export * from './controls';
13
+ export type { IRichTextEditorProps, IRichTextEditorLabels, IRichTextEditorToolbarProps, IRichTextEditorControlsGroupProps, IRichTextEditorControlProps, IRichTextEditorControlBaseProps, IRichTextEditorContentProps, IRichTextEditorLinkControlProps, IRichTextEditorColorControlProps, IRichTextEditorColorPickerControlProps, IRichTextEditorFontFamilyControlProps, ICreateControlProps, RichTextEditorVariant, } from './IRichTextEditorProps';
14
+ export type { IRichTextEditorContextValue } from './RichTextEditorContext';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { RichTextEditorVariant } from './IRichTextEditorProps';
2
+ export interface IRichTextEditorStyles {
3
+ root: string;
4
+ toolbar: string;
5
+ toolbarSticky: string;
6
+ controlsGroup: string;
7
+ control: string;
8
+ controlActive: string;
9
+ controlDisabled: string;
10
+ controlIcon: string;
11
+ content: string;
12
+ typography: string;
13
+ linkEditorDropdown: string;
14
+ linkEditor: string;
15
+ linkEditorInput: string;
16
+ linkEditorExternalControl: string;
17
+ linkEditorExternalControlActive: string;
18
+ linkEditorSave: string;
19
+ colorSwatch: string;
20
+ colorSwatchGrid: string;
21
+ colorPickerActions: string;
22
+ taskList: string;
23
+ fontFamilyList: string;
24
+ fontFamilyItem: string;
25
+ fontFamilyItemActive: string;
26
+ }
27
+ export declare const useRichTextEditorStyles: (variant?: RichTextEditorVariant) => IRichTextEditorStyles;
28
+ //# sourceMappingURL=useRichTextEditorStyles.d.ts.map
@@ -0,0 +1,102 @@
1
+ export interface Bone {
2
+ /** Left offset as % of root width */
3
+ x: number;
4
+ /** Top offset in px relative to root */
5
+ y: number;
6
+ /** Width as % of root width */
7
+ w: number;
8
+ /** Height in px */
9
+ h: number;
10
+ /** Border radius – px number, '50%' for circles, or CSS string */
11
+ r: number | string;
12
+ /** True if this is a container bone (rendered lighter) */
13
+ c?: boolean;
14
+ }
15
+ /** Compact bone: [x, y, w, h, r, c?] */
16
+ export type CompactBone = [number, number, number, number, number | string] | [number, number, number, number, number | string, boolean];
17
+ /** Either format – runtime normalises automatically */
18
+ export type AnyBone = Bone | CompactBone;
19
+ /** Skeleton layout result for a component at a specific width */
20
+ export interface SkeletonResult {
21
+ name: string;
22
+ viewportWidth: number;
23
+ width: number;
24
+ height: number;
25
+ bones: Bone[];
26
+ }
27
+ /** Responsive bones – keyed by min-width breakpoint */
28
+ export interface ResponsiveBones {
29
+ breakpoints: Record<number, SkeletonResult>;
30
+ }
31
+ /** Any registered bone format */
32
+ export type RegisteredBones = SkeletonResult | ResponsiveBones;
33
+ /** Animation style */
34
+ export type AnimationStyle = 'pulse' | 'shimmer' | 'solid' | boolean;
35
+ /** Snapshot configuration for DOM extraction */
36
+ export interface SnapshotConfig {
37
+ /** Extra leaf tags always treated as atomic bones */
38
+ leafTags?: string[];
39
+ /** Capture rounded-border containers (default true) */
40
+ captureRoundedBorders?: boolean;
41
+ /** Tags to exclude entirely */
42
+ excludeTags?: string[];
43
+ /** CSS selectors to exclude entirely */
44
+ excludeSelectors?: string[];
45
+ }
46
+ /** Global configuration */
47
+ export interface SkeletonLoaderConfig {
48
+ /** Bone fill color (light). Default: Fluent neutralBackground4 */
49
+ color?: string;
50
+ /** Bone fill color (dark mode) */
51
+ darkColor?: string;
52
+ /** Animation style (default: 'pulse') */
53
+ animate?: AnimationStyle;
54
+ /** Stagger delay between bones in ms (default: false, true = 80) */
55
+ stagger?: number | boolean;
56
+ /** Fade transition in ms when loading ends (default: false, true = 300) */
57
+ transition?: number | boolean;
58
+ /** CSS class applied to each bone */
59
+ boneClass?: string;
60
+ /** Shimmer highlight color (light) */
61
+ shimmerColor?: string;
62
+ /** Shimmer highlight color (dark) */
63
+ darkShimmerColor?: string;
64
+ /** Animation duration CSS string, e.g. '2s' */
65
+ speed?: string;
66
+ /** Shimmer gradient angle in degrees (default: 110) */
67
+ shimmerAngle?: number;
68
+ }
69
+ /** Props for <SkeletonLoader> */
70
+ export interface ISkeletonLoaderProps {
71
+ /** When true show skeleton; when false show children */
72
+ loading: boolean;
73
+ /** Your component */
74
+ children: React.ReactNode;
75
+ /** Name for registry lookup / CLI capture */
76
+ name?: string;
77
+ /** Pre-generated bones (single or responsive) */
78
+ initialBones?: SkeletonResult | ResponsiveBones;
79
+ /** Bone fill color (overrides config & Fluent token) */
80
+ color?: string;
81
+ /** Dark mode bone fill color */
82
+ darkColor?: string;
83
+ /** Animation style */
84
+ animate?: AnimationStyle;
85
+ /** Stagger delay (ms). true = 80ms */
86
+ stagger?: number | boolean;
87
+ /** Fade-out transition (ms). true = 300ms */
88
+ transition?: number | boolean;
89
+ /** CSS class for each bone element */
90
+ boneClass?: string;
91
+ /** Additional className for container */
92
+ className?: string;
93
+ /** Inline styles for container */
94
+ style?: React.CSSProperties;
95
+ /** Fallback when loading but no bones available */
96
+ fallback?: React.ReactNode;
97
+ /** Mock content for build-time capture */
98
+ fixture?: React.ReactNode;
99
+ /** Controls how the CLI extracts bones */
100
+ snapshotConfig?: SnapshotConfig;
101
+ }
102
+ //# sourceMappingURL=ISkeletonLoaderProps.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ISkeletonLoaderProps } from './ISkeletonLoaderProps';
3
+ export declare const SkeletonLoader: React.FC<ISkeletonLoaderProps>;
4
+ //# sourceMappingURL=SkeletonLoader.d.ts.map
@@ -0,0 +1,5 @@
1
+ export { SkeletonLoader } from './SkeletonLoader';
2
+ export { snapshotBones, useSkeletonExtract } from './useSkeletonExtract';
3
+ export { registerBones, configureSkeletonLoader, } from './useSkeletonShared';
4
+ export type { ISkeletonLoaderProps, SkeletonLoaderConfig, Bone, CompactBone, AnyBone, SkeletonResult, ResponsiveBones, AnimationStyle, SnapshotConfig, } from './ISkeletonLoaderProps';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { SkeletonResult, SnapshotConfig } from './ISkeletonLoaderProps';
2
+ export declare const snapshotBones: (el: Element, name?: string, config?: SnapshotConfig) => SkeletonResult;
3
+ export declare const useSkeletonExtract: (containerRef: React.RefObject<HTMLDivElement | null>, loading: boolean, activeBones: SkeletonResult | null, name?: string, snapshotConfig?: SnapshotConfig) => SkeletonResult | null;
4
+ //# sourceMappingURL=useSkeletonExtract.d.ts.map
@@ -0,0 +1,11 @@
1
+ export declare const pulseKf: string;
2
+ export declare const shimmerKf: string;
3
+ export declare const fadeInKf: string;
4
+ export declare const bonesContainerStyle: React.CSSProperties;
5
+ export declare const useSkeletonLoaderStyles: () => {
6
+ container: string;
7
+ overlay: string;
8
+ hiddenContent: string;
9
+ fallbackOverlay: string;
10
+ };
11
+ //# sourceMappingURL=useSkeletonLoaderStyles.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { AnyBone, Bone, RegisteredBones, SkeletonResult, SkeletonLoaderConfig } from './ISkeletonLoaderProps';
2
+ export declare const registerBones: (map: Record<string, RegisteredBones>) => void;
3
+ export declare const ensureBuildSnapshotHook: () => void;
4
+ export declare const configureSkeletonLoader: (config: SkeletonLoaderConfig) => void;
5
+ export declare const useSkeletonShared: () => {
6
+ SHIMMER: {
7
+ readonly angle: 110;
8
+ readonly start: 25;
9
+ readonly end: 75;
10
+ readonly speed: "1.8s";
11
+ };
12
+ PULSE: {
13
+ readonly speed: "1.5s";
14
+ };
15
+ DEFAULTS: {
16
+ readonly bone: "var(--colorNeutralStencil1)";
17
+ readonly shimmerHighlight: "var(--colorNeutralStencil2)";
18
+ };
19
+ getRegisteredBones: (name: string) => RegisteredBones | undefined;
20
+ isBuildMode: () => boolean;
21
+ normalizeBone: (b: AnyBone) => Bone;
22
+ resolveResponsive: (bones: RegisteredBones, width: number) => SkeletonResult | null;
23
+ getGlobalConfig: () => SkeletonLoaderConfig;
24
+ };
25
+ //# sourceMappingURL=useSkeletonShared.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ export interface ISpoilerProps {
3
+ /** Content that can be collapsed / expanded */
4
+ children: React.ReactNode;
5
+ /** Maximum visible height in px when collapsed @default 100 */
6
+ maxHeight?: number;
7
+ /** Label shown on the toggle button when content is collapsed */
8
+ showLabel: React.ReactNode;
9
+ /** Label shown on the toggle button when content is expanded */
10
+ hideLabel: React.ReactNode;
11
+ /** Initial expanded state (uncontrolled) @default false */
12
+ defaultExpanded?: boolean;
13
+ /** Controlled expanded state */
14
+ expanded?: boolean;
15
+ /** Called when expanded state changes */
16
+ onExpandedChange?: (expanded: boolean) => void;
17
+ /** Collapse/expand transition duration in ms @default 200 */
18
+ transitionDuration?: number;
19
+ /** Accessible label for the toggle when collapsed */
20
+ showAriaLabel?: string;
21
+ /** Accessible label for the toggle when expanded */
22
+ hideAriaLabel?: string;
23
+ /** Ref forwarded to the toggle link */
24
+ controlRef?: React.Ref<HTMLAnchorElement & HTMLButtonElement>;
25
+ /** Additional CSS class */
26
+ className?: string;
27
+ /** Inline style overrides */
28
+ style?: React.CSSProperties;
29
+ }
30
+ //# sourceMappingURL=ISpoilerProps.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ISpoilerProps } from './ISpoilerProps';
3
+ export declare const Spoiler: React.FC<ISpoilerProps>;
4
+ //# sourceMappingURL=Spoiler.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { Spoiler } from './Spoiler';
2
+ export type { ISpoilerProps } from './ISpoilerProps';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,13 @@
1
+ export interface ISpoilerStyleOptions {
2
+ maxHeight: number;
3
+ expanded: boolean;
4
+ contentHeight: number;
5
+ hasSpoiler: boolean;
6
+ transitionDuration: number;
7
+ }
8
+ export declare const useSpoilerStyles: (options: ISpoilerStyleOptions) => {
9
+ root: string;
10
+ content: string;
11
+ control: string;
12
+ };
13
+ //# sourceMappingURL=useSpoilerStyles.d.ts.map
@@ -0,0 +1,181 @@
1
+ import { createStore } from 'jotai';
2
+ import * as React from 'react';
3
+ /** Data for a single spotlight action */
4
+ export interface ISpotlightActionData {
5
+ /** Unique identifier for the action */
6
+ id: string;
7
+ /** Action label, used in default filter */
8
+ label?: string;
9
+ /** Action description, used in default filter */
10
+ description?: string;
11
+ /** Section displayed on the left side of the label (e.g. icon) */
12
+ leftSection?: React.ReactNode;
13
+ /** Section displayed on the right side of the label (e.g. hotkey badge) */
14
+ rightSection?: React.ReactNode;
15
+ /** Callback when the action is triggered */
16
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
17
+ /** Keywords for default filtering (not displayed) */
18
+ keywords?: string | string[];
19
+ /** Optional group this action belongs to */
20
+ group?: string;
21
+ /** Whether clicking this action closes the spotlight (overrides root prop) */
22
+ closeSpotlightOnTrigger?: boolean;
23
+ }
24
+ /** Data for a group of spotlight actions */
25
+ export interface ISpotlightActionGroupData {
26
+ /** Group label (displayed as section header) */
27
+ group: string;
28
+ /** Actions in this group */
29
+ actions: ISpotlightActionData[];
30
+ }
31
+ /** Union type for flat or grouped actions */
32
+ export type SpotlightActions = ISpotlightActionData | ISpotlightActionGroupData;
33
+ /** Custom filter function signature */
34
+ export type SpotlightFilterFunction = (query: string, actions: SpotlightActions[]) => SpotlightActions[];
35
+ /** Props for the SpotlightAction component */
36
+ export interface ISpotlightActionProps {
37
+ /** Action label */
38
+ label?: string;
39
+ /** Action description */
40
+ description?: string;
41
+ /** Section displayed on the left side (e.g. icon) */
42
+ leftSection?: React.ReactNode;
43
+ /** Section displayed on the right side (e.g. hotkey) */
44
+ rightSection?: React.ReactNode;
45
+ /** Custom children override default layout */
46
+ children?: React.ReactNode;
47
+ /** Whether to highlight the search query in the label @default false */
48
+ highlightQuery?: boolean;
49
+ /** Highlight color (CSS color) @default tokens.colorPaletteYellowBackground2 */
50
+ highlightColor?: string;
51
+ /** Whether this action closes the spotlight when triggered */
52
+ closeSpotlightOnTrigger?: boolean;
53
+ /** Keywords for default filtering */
54
+ keywords?: string | string[];
55
+ /** Click handler */
56
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
57
+ /** Additional className */
58
+ className?: string;
59
+ }
60
+ /** Props for the SpotlightActionsGroup component */
61
+ export interface ISpotlightActionsGroupProps {
62
+ /** Group label displayed as a section header */
63
+ label?: string;
64
+ /** SpotlightAction components */
65
+ children?: React.ReactNode;
66
+ /** Additional className */
67
+ className?: string;
68
+ }
69
+ /** Props for the SpotlightActionsList component */
70
+ export interface ISpotlightActionsListProps {
71
+ /** SpotlightAction or SpotlightActionsGroup components */
72
+ children?: React.ReactNode;
73
+ /** Additional className */
74
+ className?: string;
75
+ /** Custom id for the actions list */
76
+ id?: string;
77
+ }
78
+ /** Props for the SpotlightSearch component */
79
+ export interface ISpotlightSearchProps {
80
+ /** Placeholder text for the search input */
81
+ placeholder?: string;
82
+ /** Size of the search input @default 'large' */
83
+ size?: 'small' | 'medium' | 'large';
84
+ /** Keyboard event handler */
85
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
86
+ /** Change event handler */
87
+ onChange?: (value: string) => void;
88
+ /** Additional className */
89
+ className?: string;
90
+ }
91
+ /** Props for the SpotlightEmpty component */
92
+ export interface ISpotlightEmptyProps {
93
+ /** Content to display when no results found */
94
+ children?: React.ReactNode;
95
+ /** Additional className */
96
+ className?: string;
97
+ }
98
+ /** Props for the SpotlightFooter component */
99
+ export interface ISpotlightFooterProps {
100
+ /** Footer content */
101
+ children?: React.ReactNode;
102
+ /** Additional className */
103
+ className?: string;
104
+ }
105
+ /** Props for the SpotlightRoot component */
106
+ export interface ISpotlightRootProps {
107
+ /** Spotlight store (for multiple instances) */
108
+ store?: SpotlightStore;
109
+ /** Controlled search query */
110
+ query?: string;
111
+ /** Called when query changes */
112
+ onQueryChange?: (query: string) => void;
113
+ /** Whether to clear search when spotlight closes @default true */
114
+ clearQueryOnClose?: boolean;
115
+ /** Keyboard shortcut(s) to open spotlight @default 'mod+K' */
116
+ shortcut?: string | string[] | null;
117
+ /** Tags to ignore when shortcut is triggered @default ['input', 'textarea', 'select'] */
118
+ tagsToIgnore?: string[];
119
+ /** Whether the spotlight is disabled (not rendered) */
120
+ disabled?: boolean;
121
+ /** Called when spotlight opens */
122
+ onSpotlightOpen?: () => void;
123
+ /** Called when spotlight closes */
124
+ onSpotlightClose?: () => void;
125
+ /** Forces opened state (useful for testing) */
126
+ forceOpened?: boolean;
127
+ /** Whether action triggers close the spotlight @default true */
128
+ closeOnActionTrigger?: boolean;
129
+ /** Max width of the spotlight dialog @default 600 */
130
+ maxWidth?: number | string;
131
+ /** Vertical offset from top of viewport @default 80 */
132
+ yOffset?: number | string;
133
+ /** Max height of the actions list @default 400 */
134
+ maxHeight?: number | string;
135
+ /** Whether the actions list should be scrollable @default true */
136
+ scrollable?: boolean;
137
+ /** Content (search, actions, footer, etc.) */
138
+ children?: React.ReactNode;
139
+ /** Additional className for the dialog surface */
140
+ className?: string;
141
+ }
142
+ /** Props for the main composed Spotlight component */
143
+ export interface ISpotlightProps extends ISpotlightRootProps {
144
+ /** Props passed to the SpotlightSearch component */
145
+ searchProps?: ISpotlightSearchProps;
146
+ /** Actions data */
147
+ actions: SpotlightActions[];
148
+ /** Custom filter function @default defaultSpotlightFilter */
149
+ filter?: SpotlightFilterFunction;
150
+ /** Content displayed when no actions match the filter */
151
+ nothingFound?: React.ReactNode;
152
+ /** Whether to highlight search query in action labels @default false */
153
+ highlightQuery?: boolean;
154
+ /** Maximum number of actions to display @default Infinity */
155
+ limit?: number;
156
+ }
157
+ /** Internal spotlight state */
158
+ export interface ISpotlightState {
159
+ /** Whether the spotlight is open */
160
+ opened: boolean;
161
+ /** Index of the currently selected action */
162
+ selected: number;
163
+ /** ID of the actions list element (for DOM queries) */
164
+ listId: string;
165
+ /** Current search query */
166
+ query: string;
167
+ /** Set of registered action IDs */
168
+ registeredActions: Set<string>;
169
+ }
170
+ /** Jotai store instance for spotlight state management */
171
+ export type SpotlightStore = ReturnType<typeof createStore>;
172
+ /** Spotlight control actions (open, close, toggle) */
173
+ export interface SpotlightControlActions {
174
+ /** Open the spotlight */
175
+ open: () => void;
176
+ /** Close the spotlight */
177
+ close: () => void;
178
+ /** Toggle the spotlight */
179
+ toggle: () => void;
180
+ }
181
+ //# sourceMappingURL=ISpotlightProps.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { SpotlightRoot } from './SpotlightRoot';
2
+ import { SpotlightSearch } from './SpotlightSearch';
3
+ import { SpotlightAction } from './SpotlightAction';
4
+ import { SpotlightActionsGroup } from './SpotlightActionsGroup';
5
+ import { SpotlightActionsList } from './SpotlightActionsList';
6
+ import { SpotlightEmpty } from './SpotlightEmpty';
7
+ import { SpotlightFooter } from './SpotlightFooter';
8
+ import { ISpotlightProps } from './ISpotlightProps';
9
+ import * as React from 'react';
10
+ /**
11
+ * Spotlight — an overlay command center for your application.
12
+ *
13
+ * Provides a modal search interface with filterable actions, keyboard
14
+ * navigation, and grouped results. Activated via `mod+K` (customizable).
15
+ *
16
+
17
+ */
18
+ export declare const Spotlight: React.FC<ISpotlightProps> & {
19
+ Root: typeof SpotlightRoot;
20
+ Search: typeof SpotlightSearch;
21
+ Action: typeof SpotlightAction;
22
+ ActionsGroup: typeof SpotlightActionsGroup;
23
+ ActionsList: typeof SpotlightActionsList;
24
+ Empty: typeof SpotlightEmpty;
25
+ Footer: typeof SpotlightFooter;
26
+ };
27
+ //# sourceMappingURL=Spotlight.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightActionProps } from './ISpotlightProps';
2
+ import * as React from 'react';
3
+ /** A single action item in the Spotlight command palette */
4
+ export declare const SpotlightAction: React.NamedExoticComponent<ISpotlightActionProps>;
5
+ //# sourceMappingURL=SpotlightAction.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightActionsGroupProps } from './ISpotlightProps';
2
+ import * as React from 'react';
3
+ /** A labeled group of spotlight actions */
4
+ export declare const SpotlightActionsGroup: React.NamedExoticComponent<ISpotlightActionsGroupProps>;
5
+ //# sourceMappingURL=SpotlightActionsGroup.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightActionsListProps } from './ISpotlightProps';
2
+ import * as React from 'react';
3
+ /** Scrollable container for spotlight actions */
4
+ export declare const SpotlightActionsList: React.NamedExoticComponent<ISpotlightActionsListProps>;
5
+ //# sourceMappingURL=SpotlightActionsList.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightEmptyProps } from './ISpotlightProps';
2
+ import * as React from 'react';
3
+ /** Displayed when no actions match the current query */
4
+ export declare const SpotlightEmpty: React.NamedExoticComponent<ISpotlightEmptyProps>;
5
+ //# sourceMappingURL=SpotlightEmpty.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightFooterProps } from './ISpotlightProps';
2
+ import * as React from "react";
3
+ /** Optional footer section at the bottom of the Spotlight */
4
+ export declare const SpotlightFooter: React.NamedExoticComponent<ISpotlightFooterProps>;
5
+ //# sourceMappingURL=SpotlightFooter.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightRootProps } from './ISpotlightProps';
2
+ import * as React from 'react';
3
+ /** Root wrapper providing the Jotai Provider and Spotlight modal overlay */
4
+ export declare const SpotlightRoot: React.FC<ISpotlightRootProps>;
5
+ //# sourceMappingURL=SpotlightRoot.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { ISpotlightSearchProps } from './ISpotlightProps';
2
+ import * as React from 'react';
3
+ /** Search input for the Spotlight command palette */
4
+ export declare const SpotlightSearch: React.NamedExoticComponent<ISpotlightSearchProps>;
5
+ //# sourceMappingURL=SpotlightSearch.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { ISpotlightActionGroupData, SpotlightActions, SpotlightFilterFunction } from './ISpotlightProps';
2
+ declare const isActionsGroup: (item: SpotlightActions) => item is ISpotlightActionGroupData;
3
+ /** Default filter function: matches by label, description, and keywords with priority ordering */
4
+ export declare const defaultSpotlightFilter: SpotlightFilterFunction;
5
+ /** Check if an actions entry is a group */
6
+ export { isActionsGroup };
7
+ /** Limit the total number of actions displayed */
8
+ export declare const limitActions: (actions: SpotlightActions[], limit: number) => SpotlightActions[];
9
+ //# sourceMappingURL=defaultSpotlightFilter.d.ts.map
@@ -0,0 +1,12 @@
1
+ export { Spotlight } from './Spotlight';
2
+ export { SpotlightRoot } from './SpotlightRoot';
3
+ export { SpotlightSearch } from './SpotlightSearch';
4
+ export { SpotlightAction } from './SpotlightAction';
5
+ export { SpotlightActionsGroup } from './SpotlightActionsGroup';
6
+ export { SpotlightActionsList } from './SpotlightActionsList';
7
+ export { SpotlightEmpty } from './SpotlightEmpty';
8
+ export { SpotlightFooter } from './SpotlightFooter';
9
+ export { createSpotlightStore, createSpotlight, spotlightStore, spotlightActions, spotlight, openSpotlight, closeSpotlight, toggleSpotlight, useSpotlight, useSpotlightShortcut, openedAtom, selectedAtom, listIdAtom, queryAtom, registeredActionsAtom, closeOnActionTriggerAtom, onQueryChangeCallbackAtom, } from './useSpotlight';
10
+ export { defaultSpotlightFilter, isActionsGroup, limitActions } from './defaultSpotlightFilter';
11
+ export type { ISpotlightProps, ISpotlightRootProps, ISpotlightSearchProps, ISpotlightActionProps, ISpotlightActionsGroupProps, ISpotlightActionsListProps, ISpotlightEmptyProps, ISpotlightFooterProps, ISpotlightActionData, ISpotlightActionGroupData, SpotlightActions, SpotlightFilterFunction, ISpotlightState, SpotlightStore, SpotlightControlActions, } from './ISpotlightProps';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,59 @@
1
+ import { ISpotlightState, SpotlightStore, SpotlightControlActions } from './ISpotlightProps';
2
+ /** Atom: whether the spotlight is open */
3
+ export declare const openedAtom: import('jotai').PrimitiveAtom<boolean> & {
4
+ init: boolean;
5
+ };
6
+ /** Atom: index of the currently selected action */
7
+ export declare const selectedAtom: import('jotai').PrimitiveAtom<number> & {
8
+ init: number;
9
+ };
10
+ /** Atom: ID of the actions list element */
11
+ export declare const listIdAtom: import('jotai').PrimitiveAtom<string> & {
12
+ init: string;
13
+ };
14
+ /** Atom: current search query */
15
+ export declare const queryAtom: import('jotai').PrimitiveAtom<string> & {
16
+ init: string;
17
+ };
18
+ /** Atom: set of registered action IDs */
19
+ export declare const registeredActionsAtom: import('jotai').PrimitiveAtom<Set<string>> & {
20
+ init: Set<string>;
21
+ };
22
+ /** Atom: whether clicking an action closes the spotlight */
23
+ export declare const closeOnActionTriggerAtom: import('jotai').PrimitiveAtom<boolean> & {
24
+ init: boolean;
25
+ };
26
+ /** Atom: callback invoked when query changes (set by SpotlightRoot) */
27
+ export declare const onQueryChangeCallbackAtom: import('jotai').PrimitiveAtom<((query: string) => void) | undefined> & {
28
+ init: ((query: string) => void) | undefined;
29
+ };
30
+ /** Creates a new spotlight store (Jotai store instance) */
31
+ export declare function createSpotlightStore(): SpotlightStore;
32
+ /** Default singleton spotlight store */
33
+ export declare const spotlightStore: import('jotai/vanilla/internals').INTERNAL_Store;
34
+ export declare const spotlightActions: {
35
+ open(store: SpotlightStore): void;
36
+ close(store: SpotlightStore): void;
37
+ toggle(store: SpotlightStore): void;
38
+ setQuery(query: string, store: SpotlightStore): void;
39
+ setListId(id: string, store: SpotlightStore): void;
40
+ selectAction(index: number, store: SpotlightStore): number;
41
+ selectNextAction(store: SpotlightStore): number;
42
+ selectPreviousAction(store: SpotlightStore): number;
43
+ triggerSelectedAction(store: SpotlightStore): void;
44
+ clearState(options: {
45
+ clearQuery: boolean;
46
+ }, store: SpotlightStore): void;
47
+ };
48
+ /** Default spotlight control actions (for single-instance usage) */
49
+ export declare const spotlight: SpotlightControlActions;
50
+ export declare const openSpotlight: () => void;
51
+ export declare const closeSpotlight: () => void;
52
+ export declare const toggleSpotlight: () => void;
53
+ /** Create a new spotlight store + actions pair */
54
+ export declare function createSpotlight(): [SpotlightStore, SpotlightControlActions];
55
+ /** Hook to subscribe to spotlight state via Jotai atoms */
56
+ export declare function useSpotlight(store?: SpotlightStore): ISpotlightState;
57
+ /** Hook to attach keyboard shortcut listener */
58
+ export declare function useSpotlightShortcut(shortcut: string | string[] | null | undefined, store?: SpotlightStore, tagsToIgnore?: string[]): void;
59
+ //# sourceMappingURL=useSpotlight.d.ts.map
@@ -0,0 +1,17 @@
1
+ export declare const useSpotlightStyles: () => {
2
+ backdrop: string;
3
+ surface: string;
4
+ search: string;
5
+ actionsList: string;
6
+ action: string;
7
+ actionBody: string;
8
+ actionSectionLeft: string;
9
+ actionSectionRight: string;
10
+ actionDescription: string;
11
+ actionsGroup: string;
12
+ actionsGroupLabel: string;
13
+ empty: string;
14
+ footer: string;
15
+ highlight: string;
16
+ };
17
+ //# sourceMappingURL=useSpotlightStyles.d.ts.map