@c2n/phosphor-icons 0.0.11 → 0.0.13
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/custom-elements.json +1 -0
- package/package.json +3 -2
- package/react.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c2n/phosphor-icons",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": true,
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|
|
32
32
|
"types",
|
|
33
|
+
"custom-elements.json",
|
|
33
34
|
"react.d.ts",
|
|
34
35
|
"react.js",
|
|
35
36
|
"vue.d.ts",
|
|
@@ -81,5 +82,5 @@
|
|
|
81
82
|
"prettier": "3.9.6"
|
|
82
83
|
},
|
|
83
84
|
"customElements": "custom-elements.json",
|
|
84
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "aa19b641f64fbc54c36b7649a8171d7a686abbdd"
|
|
85
86
|
}
|
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 {
|
|
@@ -1525,6 +1529,8 @@ import type {
|
|
|
1525
1529
|
|
|
1526
1530
|
/** Standard React host-element attributes plus the element's own public properties. */
|
|
1527
1531
|
type C2Props<T> = DetailedHTMLProps<HTMLAttributes<T>, T> & Partial<Omit<T, keyof HTMLElement>>
|
|
1532
|
+
/** What React writes to a custom element's attribute: true becomes the empty string, false removes it. */
|
|
1533
|
+
type Attribute = string | number | boolean
|
|
1528
1534
|
|
|
1529
1535
|
declare module 'react' {
|
|
1530
1536
|
namespace JSX {
|