@nimbus-ds/typings 1.2.1 → 1.3.1

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
@@ -2,6 +2,19 @@
2
2
 
3
3
  This package is intended for internal use in creating components with polymorphic typing.
4
4
 
5
+ ## 2026-01-13 `1.3.1`
6
+
7
+ #### 🐛 Bug fixes
8
+
9
+ - Fixed `useRefObjectAsForwardedRef` hook to allow null values in the ref object. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
10
+ - Adds support for React 19. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
11
+
12
+ ## 2025-07-29 `1.3.0`
13
+
14
+ #### 🎉 New features
15
+
16
+ - Added `SVGElementProps` type to support SVG element props in gradient applications and icon components. ([#321](https://github.com/TiendaNube/nimbus-design-system/pull/321) by [@joacotornello](https://github.com/joacotornello))
17
+
5
18
  ## 2025-03-20 `1.2.1`
6
19
 
7
20
  #### 🐛 Bug fixes
package/dist/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This package is intended for internal use in creating components with polymorphic typing.
4
4
 
5
+ ## 2026-01-13 `1.3.1`
6
+
7
+ #### 🐛 Bug fixes
8
+
9
+ - Fixed `useRefObjectAsForwardedRef` hook to allow null values in the ref object. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
10
+ - Adds support for React 19. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
11
+
12
+ ## 2025-07-29 `1.3.0`
13
+
14
+ #### 🎉 New features
15
+
16
+ - Added `SVGElementProps` type to support SVG element props in gradient applications and icon components. ([#321](https://github.com/TiendaNube/nimbus-design-system/pull/321) by [@joacotornello](https://github.com/joacotornello))
17
+
5
18
  ## 2025-03-20 `1.2.1`
6
19
 
7
20
  #### 🐛 Bug fixes
package/dist/index.d.ts CHANGED
@@ -1,9 +1,19 @@
1
1
  // Generated by dts-bundle-generator v7.2.0
2
2
 
3
3
  import React from 'react';
4
- import { ForwardedRef, RefObject } from 'react';
4
+ import { ForwardedRef, ReactNode, RefObject } from 'react';
5
5
 
6
6
  export type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
7
+ /**
8
+ * Properties for SVG elements including common attributes and flexible extension.
9
+ * Used for typing SVG element props in gradient applications and icon components.
10
+ */
11
+ export type SVGElementProps = {
12
+ fill?: string;
13
+ stroke?: string;
14
+ children?: ReactNode;
15
+ [key: string]: unknown;
16
+ };
7
17
  /**
8
18
  * Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
9
19
  */
@@ -30,10 +40,10 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
30
40
  * so that events are typed when using JSX.IntrinsicElements.
31
41
  */
32
42
  <As = IntrinsicElementString>(props: As extends "" ? {
33
- as: keyof JSX.IntrinsicElements;
43
+ as: keyof React.JSX.IntrinsicElements;
34
44
  } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
35
45
  as: As;
36
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
46
+ }> : As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
37
47
  as: As;
38
48
  }> : never): React.ReactElement | null;
39
49
  }
@@ -44,6 +54,6 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
44
54
  *
45
55
  * **NOTE**: The `refObject` should be passed to the underlying element, NOT the `forwardedRef`.
46
56
  */
47
- export declare function useRefObjectAsForwardedRef<T>(forwardedRef: ForwardedRef<T>, refObject: RefObject<T>): void;
57
+ export declare function useRefObjectAsForwardedRef<T>(forwardedRef: ForwardedRef<T | null>, refObject: RefObject<T | null>): void;
48
58
 
49
59
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/typings",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -22,6 +22,6 @@
22
22
  "url": "https://github.com/TiendaNube/nimbus-design-system/issues"
23
23
  },
24
24
  "devDependencies": {
25
- "@nimbus-ds/webpack": "^1.5.0"
25
+ "@nimbus-ds/webpack": "^1.7.1"
26
26
  }
27
27
  }