@koobiq/react-components 0.26.0 → 0.27.0

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,2 +1,4 @@
1
- import type { ContextValue } from '@koobiq/react-primitives';
2
- export declare const AccordionSummaryContext: import("react").Context<ContextValue<import("@react-types/button").AriaButtonProps<"button">, HTMLButtonElement>>;
1
+ import type { ContextValue, AriaButtonProps } from '@koobiq/react-primitives';
2
+ type AccordionSummaryContextValue = ContextValue<AriaButtonProps<'button'>, HTMLButtonElement>;
3
+ export declare const AccordionSummaryContext: import("react").Context<AccordionSummaryContextValue>;
4
+ export {};
@@ -1,7 +1,5 @@
1
1
  import { createContext } from "react";
2
- const AccordionSummaryContext = createContext(
3
- null
4
- );
2
+ const AccordionSummaryContext = createContext(null);
5
3
  export {
6
4
  AccordionSummaryContext
7
5
  };
@@ -5,9 +5,10 @@ import { useBoolean, useDOMRef, mergeProps, clsx, useElementSize, useEventListen
5
5
  import { useDialog, Provider, ButtonContext, DEFAULT_SLOT } from "@koobiq/react-primitives";
6
6
  import { utilClasses } from "../../styles/utility.js";
7
7
  import s from "./Dialog.module.css.js";
8
- import { DialogBodyContext, DialogBody } from "./components/DialogBody.js";
8
+ import { DialogBodyContext } from "./components/DialogBodyContext.js";
9
9
  import { DialogCloseButton } from "./components/DialogCloseButton.js";
10
10
  import { DialogHeader } from "./components/DialoglHeader.js";
11
+ import { DialogBody } from "./components/DialogBody.js";
11
12
  import { DialogFooter } from "./components/DialogFooter.js";
12
13
  const DialogComponent = forwardRef(
13
14
  ({ onClose, children, slotProps, hideCloseButton, ...other }, ref) => {
@@ -1,6 +1,5 @@
1
1
  import type { ReactNode, ComponentRef } from 'react';
2
2
  import type { ExtendableComponentPropsWithRef } from '@koobiq/react-core';
3
- import type { ContextValue } from '@koobiq/react-primitives';
4
3
  export type DialogBodyRef = ComponentRef<'div'>;
5
4
  export type DialogBodyProps = ExtendableComponentPropsWithRef<{
6
5
  /** Additional CSS-classes. */
@@ -10,5 +9,4 @@ export type DialogBodyProps = ExtendableComponentPropsWithRef<{
10
9
  /** Unique identifier for testing purposes. */
11
10
  'data-testid'?: string;
12
11
  }, 'div'>;
13
- export declare const DialogBodyContext: import("react").Context<ContextValue<DialogBodyProps, HTMLDivElement>>;
14
12
  export declare const DialogBody: import("react").ForwardRefExoticComponent<Omit<DialogBodyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { createContext, forwardRef } from "react";
3
+ import { forwardRef } from "react";
4
4
  import { clsx } from "@koobiq/react-core";
5
5
  import { useContextProps } from "@koobiq/react-primitives";
6
6
  import { utilClasses } from "../../../styles/utility.js";
7
7
  import s from "../Dialog.module.css.js";
8
- const DialogBodyContext = createContext(null);
8
+ import { DialogBodyContext } from "./DialogBodyContext.js";
9
9
  const DialogBody = forwardRef(
10
10
  ({ children, className, ...other }, ref) => {
11
11
  const [, ctxRef] = useContextProps({}, ref, DialogBodyContext);
@@ -26,6 +26,5 @@ const DialogBody = forwardRef(
26
26
  );
27
27
  DialogBody.displayName = "DialogBody";
28
28
  export {
29
- DialogBody,
30
- DialogBodyContext
29
+ DialogBody
31
30
  };
@@ -0,0 +1,3 @@
1
+ import type { ContextValue } from '@koobiq/react-primitives';
2
+ import type { DialogBodyProps } from './DialogBody';
3
+ export declare const DialogBodyContext: import("react").Context<ContextValue<DialogBodyProps, HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import { createContext } from "react";
2
+ const DialogBodyContext = createContext(null);
3
+ export {
4
+ DialogBodyContext
5
+ };
@@ -2,3 +2,4 @@ export * from './DialoglHeader';
2
2
  export * from './DialogBody';
3
3
  export * from './DialogFooter';
4
4
  export * from './DialogCloseButton';
5
+ export * from './DialogBodyContext';
@@ -1,5 +1,5 @@
1
1
  import type { FormFieldProps, FormFieldLabelProps, FormFieldInputProps, FormFieldErrorProps, FormFieldCaptionProps, FormFieldControlGroupProps } from '../FormField';
2
- export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@koobiq/react-primitives").AriaSearchFieldProps, "description" | "validationState">, "caption" | "style" | "className" | `data-${string}` | "startAddon" | "endAddon" | "variant" | "slotProps" | "labelPlacement" | "labelAlign" | "fullWidth" | "isLabelHidden"> & {
2
+ export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-types/searchfield").AriaSearchFieldProps, "description" | "validationState">, "caption" | "style" | "className" | `data-${string}` | "startAddon" | "endAddon" | "variant" | "slotProps" | "labelPlacement" | "labelAlign" | "fullWidth" | "isLabelHidden"> & {
3
3
  className?: string;
4
4
  style?: import("react").CSSProperties;
5
5
  isLabelHidden?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koobiq/react-components",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@koobiq/design-tokens": "^3.15.0",
28
+ "@koobiq/design-tokens": "^3.15.2",
29
29
  "@types/react-transition-group": "^4.4.12",
30
30
  "react-transition-group": "^4.4.5",
31
- "@koobiq/logger": "0.26.0",
32
- "@koobiq/react-core": "0.26.0",
33
- "@koobiq/react-icons": "0.26.0",
34
- "@koobiq/react-primitives": "0.26.0"
31
+ "@koobiq/logger": "0.27.0",
32
+ "@koobiq/react-icons": "0.27.0",
33
+ "@koobiq/react-core": "0.27.0",
34
+ "@koobiq/react-primitives": "0.27.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@koobiq/design-tokens": "^3.15.0",
37
+ "@koobiq/design-tokens": "^3.15.2",
38
38
  "react": "18.x || 19.x",
39
39
  "react-dom": "18.x || 19.x"
40
40
  },