@okam/next-component 1.2.1 → 1.2.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 1.2.3 (2026-01-13)
2
+
3
+ ### 🚀 Features
4
+
5
+ - React 19 + Next.js 15 support ([#369](https://github.com/OKAMca/stack/pull/369))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated stack-ui to 1.43.0
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Marie-Maxime Tanguay @marie-maxime
14
+
15
+ ## 1.2.2 (2025-11-27)
16
+
17
+ ### 🧱 Updated Dependencies
18
+
19
+ - Updated stack-ui to 1.42.4
20
+
1
21
  ## 1.2.1 (2025-11-01)
2
22
 
3
23
  ### 🩹 Fixes
@@ -1,3 +1,4 @@
1
- import type TImgProps from './interface';
1
+ import { default as TImgProps } from './interface';
2
+
2
3
  declare const Img: (props: TImgProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Img;
@@ -1,5 +1,6 @@
1
- import type { TDefaultComponent } from '@okam/stack-ui';
2
- import type { ImageProps, StaticImageData } from 'next/image';
1
+ import { TDefaultComponent } from '../../../../stack-ui/src/index.ts';
2
+ import { ImageProps, StaticImageData } from 'next/image';
3
+
3
4
  type TImgProps = TDefaultComponent & Omit<ImageProps, 'src'> & {
4
5
  src: string | StaticImageData;
5
6
  };
@@ -1,3 +1,4 @@
1
- import type { TLinkProps } from './interface';
2
- declare const Link: import("react").ForwardRefExoticComponent<TLinkProps<import("@okam/stack-ui").TToken> & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
1
+ import { TLinkProps } from './interface';
2
+
3
+ declare const Link: import('react').ForwardRefExoticComponent<TLinkProps<import('../../../../stack-ui/src/index.ts').TToken> & import('react').RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
3
4
  export default Link;
@@ -1,4 +1,5 @@
1
- import type { TDefaultComponent, TToken } from '@okam/stack-ui';
2
- import type { TLink } from '../../hooks/useLink/interface';
1
+ import { TDefaultComponent, TToken } from '../../../../stack-ui/src/index.ts';
2
+ import { TLink } from '../../hooks/useLink/interface';
3
+
3
4
  export interface TLinkProps<T = TToken> extends Omit<TDefaultComponent<T>, keyof TLink>, TLink {
4
5
  }
@@ -1,5 +1,6 @@
1
- import type { LinkProps } from 'next/link';
2
- import type { TLink, TUseLinkReturn } from './interface';
1
+ import { LinkProps } from 'next/link';
2
+ import { TLink, TUseLinkReturn } from './interface';
3
+
3
4
  /**
4
5
  * Tries to get the locale, in order of priority:
5
6
  * 1. The locale prop. Still has priority even when set to `false`
@@ -1,5 +1,6 @@
1
- import type { LinkProps as NextLinkProps } from 'next/link';
2
- import type { ReadonlyURLSearchParams } from 'next/navigation';
1
+ import { LinkProps as NextLinkProps } from 'next/link';
2
+ import { ReadonlyURLSearchParams } from 'next/navigation';
3
+
3
4
  export interface TLink extends Omit<NextLinkProps, 'scroll' | 'as'> {
4
5
  /**
5
6
  * @default true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okam/next-component",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,11 +30,16 @@
30
30
  "url": "https://github.com/OKAMca/stack.git"
31
31
  },
32
32
  "dependencies": {
33
- "@okam/stack-ui": "1.42.3",
34
- "next": "^14.1.1",
35
- "react": "18.3.1",
33
+ "@okam/stack-ui": "1.43.0",
34
+ "next": "^15.0.0",
36
35
  "react-use": "17.5.1",
37
36
  "tailwind-variants": "^0.3.0",
38
37
  "react-aria": "^3.39.0"
38
+ },
39
+ "peerDependencies": {
40
+ "react": "^18.0.0 || ^19.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "react": "^19.0.0"
39
44
  }
40
45
  }
@@ -1,4 +1,4 @@
1
- declare const linkTheme: import("tailwind-variants").TVReturnType<{
1
+ declare const linkTheme: import('tailwind-variants').TVReturnType<{
2
2
  type: {
3
3
  button: string;
4
4
  menu: string;
@@ -20,7 +20,7 @@ declare const linkTheme: import("tailwind-variants").TVReturnType<{
20
20
  rounded: string;
21
21
  circular: string;
22
22
  };
23
- }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import("tailwind-variants/dist/config.js").TVConfig<{
23
+ }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import('tailwind-variants/dist/config.js').TVConfig<{
24
24
  type: {
25
25
  button: string;
26
26
  menu: string;
@@ -86,7 +86,7 @@ declare const linkTheme: import("tailwind-variants").TVReturnType<{
86
86
  rounded: string;
87
87
  circular: string;
88
88
  };
89
- }, undefined, import("tailwind-variants").TVReturnType<{
89
+ }, undefined, import('tailwind-variants').TVReturnType<{
90
90
  type: {
91
91
  button: string;
92
92
  menu: string;
@@ -108,7 +108,7 @@ declare const linkTheme: import("tailwind-variants").TVReturnType<{
108
108
  rounded: string;
109
109
  circular: string;
110
110
  };
111
- }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import("tailwind-variants/dist/config.js").TVConfig<{
111
+ }, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import('tailwind-variants/dist/config.js').TVConfig<{
112
112
  type: {
113
113
  button: string;
114
114
  menu: string;
package/theme/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const _default: import("react").MemoExoticComponent<({ children }: {
1
+ declare const _default: import('react').MemoExoticComponent<({ children }: {
2
2
  children: React.ReactNode;
3
3
  }) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;