@bbodek/hooks 0.0.16 → 0.0.17

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 (43) hide show
  1. package/README.md +6 -4
  2. package/dist/effects/index.d.ts +2 -0
  3. package/dist/effects/index.d.ts.map +1 -1
  4. package/dist/effects/useIsomorphicLayoutEffect/index.d.ts.map +1 -0
  5. package/dist/effects/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +1 -0
  6. package/dist/effects/useScrollLockEffect/index.d.ts +3 -0
  7. package/dist/effects/useScrollLockEffect/index.d.ts.map +1 -0
  8. package/dist/effects/useScrollLockEffect/types/index.d.ts +5 -0
  9. package/dist/effects/useScrollLockEffect/types/index.d.ts.map +1 -0
  10. package/dist/effects/useScrollLockEffect/useScrollLockEffect.d.ts +4 -0
  11. package/dist/effects/useScrollLockEffect/useScrollLockEffect.d.ts.map +1 -0
  12. package/dist/hooks/index.d.ts +2 -0
  13. package/dist/hooks/index.d.ts.map +1 -1
  14. package/dist/hooks/useClickOutSide/index.d.ts.map +1 -0
  15. package/dist/hooks/useClickOutSide/types/index.d.ts.map +1 -0
  16. package/dist/{useClickOutSide → hooks/useClickOutSide}/useClickOutSide.d.ts +1 -1
  17. package/dist/hooks/useClickOutSide/useClickOutSide.d.ts.map +1 -0
  18. package/dist/{useClickOutSide → hooks/useClickOutSide}/useClickOutSideEffect.d.ts +1 -1
  19. package/dist/hooks/useClickOutSide/useClickOutSideEffect.d.ts.map +1 -0
  20. package/dist/hooks/useForm/index.d.ts.map +1 -0
  21. package/dist/hooks/useForm/types/index.d.ts.map +1 -0
  22. package/dist/{useForm → hooks/useForm}/useForm.d.ts +1 -1
  23. package/dist/hooks/useForm/useForm.d.ts.map +1 -0
  24. package/dist/index.d.ts +0 -2
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.es.js +1 -171
  27. package/dist/index.es.js.map +1 -1
  28. package/package.json +9 -9
  29. package/dist/useClickOutSide/index.d.ts.map +0 -1
  30. package/dist/useClickOutSide/types/index.d.ts.map +0 -1
  31. package/dist/useClickOutSide/useClickOutSide.d.ts.map +0 -1
  32. package/dist/useClickOutSide/useClickOutSideEffect.d.ts.map +0 -1
  33. package/dist/useForm/index.d.ts.map +0 -1
  34. package/dist/useForm/types/index.d.ts.map +0 -1
  35. package/dist/useForm/useForm.d.ts.map +0 -1
  36. package/dist/useIsomorphicLayoutEffect/index.d.ts.map +0 -1
  37. package/dist/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +0 -1
  38. /package/dist/{useIsomorphicLayoutEffect → effects/useIsomorphicLayoutEffect}/index.d.ts +0 -0
  39. /package/dist/{useIsomorphicLayoutEffect → effects/useIsomorphicLayoutEffect}/useIsomorphicLayoutEffect.d.ts +0 -0
  40. /package/dist/{useClickOutSide → hooks/useClickOutSide}/index.d.ts +0 -0
  41. /package/dist/{useClickOutSide → hooks/useClickOutSide}/types/index.d.ts +0 -0
  42. /package/dist/{useForm → hooks/useForm}/index.d.ts +0 -0
  43. /package/dist/{useForm → hooks/useForm}/types/index.d.ts +0 -0
package/README.md CHANGED
@@ -35,8 +35,10 @@ useIsomorphicLayoutEffect(() => {
35
35
  Licensed under the [MIT license](https://github.com/thebbodek/dotoli/blob/main/LICENSE).
36
36
 
37
37
  <a href="https://bbodek.com/" target="_blank">
38
- <picture>
39
- <source media="(prefers-color-scheme: dark)" srcset="https://image.thebbodek.com/logo/logo-white.png"/>
40
- <img align="center" alt="BBODEK" width="100" hspace="16" src="https://image.thebbodek.com/logo/logo-color.png"/>
41
- </picture>
38
+ <p align="center">
39
+ <picture>
40
+ <source media="(prefers-color-scheme: dark)" srcset="https://image.thebbodek.com/logo/logo-white.png"/>
41
+ <img alt="BBODEK" width="100" hspace="16" src="https://image.thebbodek.com/logo/logo-color.png"/>
42
+ </picture>
43
+ </p>
42
44
  </a>
@@ -1,2 +1,4 @@
1
1
  export * from './useFirstRenderEffect';
2
+ export * from './useIsomorphicLayoutEffect';
3
+ export * from './useScrollLockEffect';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/effects/useIsomorphicLayoutEffect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../../src/effects/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD,QAAA,MAAM,yBAAyB,wBAC8B,CAAC;AAE9D,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export { default as useScrollLockEffect } from './useScrollLockEffect';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/effects/useScrollLockEffect/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface UseScrollLockEffectProps {
2
+ isLocked: boolean;
3
+ target?: string;
4
+ }
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/effects/useScrollLockEffect/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ import { UseScrollLockEffectProps } from '../../effects/useScrollLockEffect/types';
2
+ declare const useScrollLockEffect: ({ isLocked, target, }: UseScrollLockEffectProps) => void;
3
+ export default useScrollLockEffect;
4
+ //# sourceMappingURL=useScrollLockEffect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollLockEffect.d.ts","sourceRoot":"","sources":["../../../src/effects/useScrollLockEffect/useScrollLockEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,QAAA,MAAM,mBAAmB,GAAI,uBAG1B,wBAAwB,SAgB1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,4 +1,6 @@
1
+ export * from './useClickOutSide';
1
2
  export * from './useComposeEventHandler';
2
3
  export * from './useDropzone';
3
4
  export * from './useExecuteFunction';
5
+ export * from './useForm';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickOutSide/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useClickOutSide/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,SAAS,WAAW,CAC/D,SAAQ,oBAAoB;IAC5B,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;CAC1B"}
@@ -1,4 +1,4 @@
1
- import { UseClickOutsideProps } from '../useClickOutSide/types';
1
+ import { UseClickOutsideProps } from '../../hooks/useClickOutSide/types';
2
2
  declare const useClickOutside: <T extends HTMLElement>({ onClose, useClickOutsideEvent, }: UseClickOutsideProps) => {
3
3
  contentRef: import("react").RefObject<T | null>;
4
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClickOutSide.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickOutSide/useClickOutSide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,oCAG7C,oBAAoB;;CAUtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- import { UseClickOutSideEffectProps } from '../useClickOutSide/types';
1
+ import { UseClickOutSideEffectProps } from '../../hooks/useClickOutSide/types';
2
2
  declare const useClickOutSideEffect: <T extends HTMLElement>({ ref, onClose, useClickOutsideEvent, }: UseClickOutSideEffectProps<T>) => void;
3
3
  export default useClickOutSideEffect;
4
4
  //# sourceMappingURL=useClickOutSideEffect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClickOutSideEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickOutSide/useClickOutSideEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAE3E,QAAA,MAAM,qBAAqB,GAAI,CAAC,SAAS,WAAW,EAAE,yCAInD,0BAA0B,CAAC,CAAC,CAAC,SAoB/B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForm/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useForm/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEtD,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,aAAa,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,aAAa,CAAC;CACzC;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC;IACV,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,EAAE,CAAC,KAAK,EAAE,yBAAyB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAClE,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;CACpD"}
@@ -1,4 +1,4 @@
1
- import { Props, UseFormReturnType } from '../useForm/types';
1
+ import { Props, UseFormReturnType } from '../../hooks/useForm/types';
2
2
  declare const useForm: <T extends object>({ initialValues, validate, }: Props<T>) => UseFormReturnType<T>;
3
3
  export default useForm;
4
4
  //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForm/useForm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAiB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,QAAA,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,EAAE,8BAGhC,KAAK,CAAC,CAAC,CAAC,KAAG,iBAAiB,CAAC,CAAC,CA2ChC,CAAC;AAEF,eAAe,OAAO,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  export * from './effects';
2
2
  export * from './hooks';
3
- export * from './useClickOutSide';
4
- export * from './useForm';
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}