react-luminus-components 1.2.0 → 1.2.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 (32) hide show
  1. package/dist/.vite/manifest.json +43 -43
  2. package/dist/{DataKey-CCnWsp5R.cjs → DataKey-CBMsR50b.cjs} +1 -1
  3. package/dist/{DataKey-DEvxfpG4.js → DataKey-CBV-NBJf.js} +1 -1
  4. package/dist/{SimpleTooltip-D3yt_5sa.cjs → SimpleTooltip-D6DtiDiF.cjs} +1 -1
  5. package/dist/{SimpleTooltip-Bgsx47Y0.js → SimpleTooltip-DxazAlXp.js} +1 -1
  6. package/dist/{Typography-dPh0BYIU.js → Typography-CHfAgqP5.js} +1 -1
  7. package/dist/{Typography-CwxdFDrh.cjs → Typography-ni7LYA_5.cjs} +1 -1
  8. package/dist/{UserAvatarToggle-DgGJIRzY.js → UserAvatarToggle-B-BYsINz.js} +1802 -1788
  9. package/dist/UserAvatarToggle-cPWBMa9z.cjs +253 -0
  10. package/dist/components/Tabs/Tabs.d.ts +2 -2
  11. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +1 -1
  12. package/dist/contexts/prompt/PromptContext.d.ts +3 -0
  13. package/dist/contexts.cjs.js +1 -1
  14. package/dist/contexts.es.js +310 -297
  15. package/dist/hooks/usePrompt/usePrompt.d.ts +2 -1
  16. package/dist/hooks.cjs.js +1 -1
  17. package/dist/hooks.es.js +783 -655
  18. package/dist/layout.cjs.js +1 -1
  19. package/dist/layout.es.js +3 -3
  20. package/dist/main.cjs.js +1 -1
  21. package/dist/main.es.js +1626 -1621
  22. package/dist/models/index.d.ts +1 -0
  23. package/dist/models/types/PromptOptions.d.ts +6 -0
  24. package/dist/style.css +1 -1
  25. package/dist/useConfirm-BC-OkqG0.cjs +1 -0
  26. package/dist/useConfirm-CkSyQrSF.js +27 -0
  27. package/dist/utils.cjs.js +1 -1
  28. package/dist/utils.es.js +7 -7
  29. package/package.json +1 -1
  30. package/dist/UserAvatarToggle-D8sQZp-d.cjs +0 -250
  31. package/dist/useConfirm-Bm2_Ub3h.cjs +0 -1
  32. package/dist/useConfirm-ClKBi_ok.js +0 -27
@@ -1,27 +0,0 @@
1
- import { useContext as a, useCallback as C } from "react";
2
- import { P as u, C as p } from "./UserAvatarToggle-DgGJIRzY.js";
3
- const w = () => {
4
- const { isShown: e, text: s, showPrompt: r, hidePrompt: t, resolveRef: o } = a(u), i = C((n) => {
5
- t(), o.current(n);
6
- }, [t, o]), l = C(async (n) => (console.log(n), r(n), console.log("t"), new Promise((c) => {
7
- o.current = c;
8
- })), [o, r]);
9
- return { isShown: e, text: s, prompt: l, onFinish: i };
10
- };
11
- let m;
12
- const x = () => {
13
- const { show: e, text: s, showConfirm: r, hideConfirm: t } = a(p), o = () => {
14
- t();
15
- };
16
- return { confirm: async (c) => (r(c), new Promise((f) => {
17
- m = f;
18
- })), onConfirm: () => {
19
- o(), m(!0);
20
- }, onCancel: () => {
21
- o(), m(!1);
22
- }, show: e, text: s };
23
- };
24
- export {
25
- w as a,
26
- x as u
27
- };