@koine/react 1.0.12 → 1.0.15

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type WithComponents, type Simplify } from "../helpers";
3
- export declare type OwnProps = React.ComponentProps<"details"> & {
3
+ export declare type OwnProps = React.ComponentPropsWithoutRef<"details"> & {
4
4
  open?: boolean;
5
5
  onChange?: () => any;
6
6
  summary: null | React.ReactNode;
@@ -16,7 +16,7 @@ export declare type OwnProps = React.ComponentProps<"details"> & {
16
16
  export declare type Components = {
17
17
  Root: {
18
18
  type: "details";
19
- props: React.PropsWithChildren<{}>;
19
+ props: {};
20
20
  };
21
21
  Summary: {
22
22
  type: "summary";
@@ -47,9 +47,7 @@ export declare type ComponentsProps = {
47
47
  export declare type Props = Simplify<WithComponents<OwnProps, Components>>;
48
48
  export declare type DetailsProps = Props;
49
49
  export declare type KoineDetailsProps = Props;
50
- export declare const Root: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "key" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement>> & {
51
- children?: import("react").ReactNode;
52
- }>;
50
+ export declare const Root: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "key" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement>>>;
53
51
  export declare const Summary: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof import("react").HTMLAttributes<HTMLElement>> & {
54
52
  $open: OwnProps["open"];
55
53
  } & Pick<OwnProps, "onChange"> & {
@@ -67,10 +65,8 @@ export declare const Content: import("react").ElementType<Omit<Pick<import("reac
67
65
  } & Pick<OwnProps, "onChange"> & {
68
66
  children?: import("react").ReactNode;
69
67
  }>;
70
- export declare const KoineDetails: ((props: Pick<Simplify<WithComponents<OwnProps, Components>>, "key" | "summary" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement> | "ariaExpand" | "ariaCollapse" | "recalc" | keyof Components> & import("react").RefAttributes<HTMLDivElement>) => import("react").FunctionComponentElement<any>) & {
71
- Root: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "key" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement>> & {
72
- children?: import("react").ReactNode;
73
- }>;
68
+ export declare const KoineDetails: ((props: Simplify<WithComponents<OwnProps, Components>> & import("react").RefAttributes<HTMLDetailsElement>) => import("react").FunctionComponentElement<any>) & {
69
+ Root: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "key" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement>>>;
74
70
  Summary: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof import("react").HTMLAttributes<HTMLElement>> & {
75
71
  $open: OwnProps["open"];
76
72
  } & Pick<OwnProps, "onChange"> & {
@@ -90,9 +86,7 @@ export declare const KoineDetails: ((props: Pick<Simplify<WithComponents<OwnProp
90
86
  }>;
91
87
  } & {
92
88
  defaultProps: {
93
- Root: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "key" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement>> & {
94
- children?: import("react").ReactNode;
95
- }>;
89
+ Root: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "key" | keyof import("react").DetailsHTMLAttributes<HTMLDetailsElement>>>;
96
90
  Summary: import("react").ElementType<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof import("react").HTMLAttributes<HTMLElement>> & {
97
91
  $open: OwnProps["open"];
98
92
  } & Pick<OwnProps, "onChange"> & {
@@ -8,7 +8,7 @@ export declare type UseToggleProps = Omit<FormControl, "value"> & {
8
8
  options?: Option[];
9
9
  };
10
10
  /**
11
- * This hook is meant to powere Checkboxes, Switches and checkbox-like Radios
11
+ * This hook is meant to power Checkboxes, Switches and checkbox-like Radios
12
12
  * components, it works in fact in two modes:
13
13
  *
14
14
  * 1: behaviour as standard checkbox
@@ -4,7 +4,7 @@ import { useCallback, useMemo } from "react";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { InputInvisible } from "../styles";
6
6
  /**
7
- * This hook is meant to powere Checkboxes, Switches and checkbox-like Radios
7
+ * This hook is meant to power Checkboxes, Switches and checkbox-like Radios
8
8
  * components, it works in fact in two modes:
9
9
  *
10
10
  * 1: behaviour as standard checkbox
@@ -11,5 +11,5 @@ declare type ElementRef = React.MutableRefObject<HTMLElement | undefined>;
11
11
  * - reused internal helper functions
12
12
  * - compacted object arguments in functions as plain argument list to improve compression
13
13
  */
14
- export declare const useScrollPosition: (effect: (currentPosition: Position, prevPosition: Position) => void, deps?: import("react").DependencyList, element?: ElementRef | undefined, useWindow?: boolean | undefined, wait?: number | undefined, boundingElement?: ElementRef | undefined) => void;
14
+ export declare const useScrollPosition: (effect: (currentPosition: Position, prevPosition: Position) => void, deps?: import("react").DependencyList, element?: ElementRef, useWindow?: boolean, wait?: number, boundingElement?: ElementRef) => void;
15
15
  export {};
@@ -7,7 +7,7 @@ var react_1 = require("react");
7
7
  var react_hook_form_1 = require("react-hook-form");
8
8
  var styles_1 = require("../styles");
9
9
  /**
10
- * This hook is meant to powere Checkboxes, Switches and checkbox-like Radios
10
+ * This hook is meant to power Checkboxes, Switches and checkbox-like Radios
11
11
  * components, it works in fact in two modes:
12
12
  *
13
13
  * 1: behaviour as standard checkbox
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@koine/react",
3
- "version": "1.0.12",
4
3
  "sideEffects": false,
5
4
  "main": "./node/index.js",
6
5
  "typings": "./index.d.ts",
7
6
  "dependencies": {
8
7
  "styled-components": "^5.3.5",
9
- "framer-motion": "^6.3.3",
8
+ "framer-motion": "^6.3.4",
10
9
  "react": "^16.8 || ^17 || ^18",
11
- "react-dom": "^16.8 || ^17 || ^18",
12
- "@mui/base": "^5.0.0-alpha.81",
10
+ "@mui/base": "^5.0.0-alpha.82",
11
+ "@koine/utils": "1.0.15",
13
12
  "react-icons": "^4.3.1",
14
13
  "date-fns": "^2.28.0",
15
14
  "react-swipeable": "^7.0.0",
16
15
  "@tiptap/react": "^2.0.0-beta.109",
17
- "@tiptap/starter-kit": "^2.0.0-beta.184",
16
+ "@tiptap/starter-kit": "^2.0.0-beta.185",
18
17
  "yup": "^0.32.11",
19
- "react-hook-form": "^7.31.1",
20
- "type-fest": "^2.12.2",
18
+ "react-hook-form": "^7.31.2",
19
+ "type-fest": "^2.13.0",
21
20
  "tslib": "^2.4.0"
22
21
  },
23
22
  "peerDependencies": {},
23
+ "version": "1.0.15",
24
24
  "module": "./index.js",
25
25
  "types": "./index.d.ts"
26
26
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const THEME_KEY = "theme";
3
3
  export declare const THEME_DEFAULT: ThemeVanillaValue;
4
- export declare const getInitialThemeFromRequest: (cookie?: string | undefined) => ThemeVanillaValue;
4
+ export declare const getInitialThemeFromRequest: (cookie?: string) => ThemeVanillaValue;
5
5
  export declare const getInitialThemeFromClient: () => ThemeVanillaValue;
6
6
  export declare type ThemeCookie = {
7
7
  [THEME_KEY]: ThemeVanillaValue;