@c2n/feather-icons 0.0.10 → 0.0.12

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 (2) hide show
  1. package/package.json +2 -2
  2. package/react.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c2n/feather-icons",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": true,
@@ -81,5 +81,5 @@
81
81
  "prettier": "3.9.6"
82
82
  },
83
83
  "customElements": "custom-elements.json",
84
- "gitHead": "8d57710b3345fcb01cdb4cb15d2d43ba8bf21642"
84
+ "gitHead": "43e38b42ac221ffeef99a773c42dd3356961d26a"
85
85
  }
package/react.d.ts CHANGED
@@ -6,6 +6,10 @@
6
6
  //
7
7
  // Register the elements at module scope before React renders, or React writes an object prop as an
8
8
  // attribute and it stringifies.
9
+ //
10
+ // On a server-rendered page (Next.js, React Router SSR) write a camelCase property by its kebab-case attribute
11
+ // name ('row-key', not rowKey): the server emits props verbatim, HTML lowercases them, and hydration does not
12
+ // set properties. Those names are listed next to the properties below.
9
13
 
10
14
  import type { DetailedHTMLProps, HTMLAttributes } from 'react'
11
15
  import type {
@@ -300,6 +304,8 @@ import type {
300
304
 
301
305
  /** Standard React host-element attributes plus the element's own public properties. */
302
306
  type C2Props<T> = DetailedHTMLProps<HTMLAttributes<T>, T> & Partial<Omit<T, keyof HTMLElement>>
307
+ /** What React writes to a custom element's attribute: true becomes the empty string, false removes it. */
308
+ type Attribute = string | number | boolean
303
309
 
304
310
  declare module 'react' {
305
311
  namespace JSX {