@jirawatpyk/aura-react 4.5.0 → 4.5.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/README.md CHANGED
@@ -29,7 +29,7 @@ One HTML file, no install — the packages are on npmjs, so jsDelivr serves them
29
29
  ## Install
30
30
 
31
31
  ```bash
32
- npm i @jirawatpyk/aura-react @jirawatpyk/aura-tokens # react >= 18 is a peer; import from "@jirawatpyk/aura-react"
32
+ npm i @jirawatpyk/aura-react @jirawatpyk/aura-tokens # React 18 or 19; import from "@jirawatpyk/aura-react"
33
33
  # or under the short names the docs use (imports stay `@aura/...`):
34
34
  npm i @aura/react@npm:@jirawatpyk/aura-react @aura/tokens@npm:@jirawatpyk/aura-tokens
35
35
  ```
@@ -94,7 +94,7 @@ npm run test:pilots # builds the pilots + 4 brand themes, then 37 behaviour/ax
94
94
 
95
95
  ## Source
96
96
 
97
- `src/` is TypeScript (strict). Public prop types live in `src/types.ts` with their docs; each component imports its props from there and `forwardRef`s with them, so the published `dist/index.d.ts` is generated from the code and can't drift from it. Components still use `React.createElement` (`h`) — moving them to JSX is the next step.
97
+ `src/` is TypeScript (strict) and JSX, formatted with Prettier (`npm run format`). Public prop types live in `src/types.ts` with their docs; each component imports its props from there and `forwardRef`s with them, so the published `dist/index.d.ts` is generated from the code and can't drift from it. The build compiles JSX to `React.createElement` (classic runtime), so the `window.Aura` script needs only `window.React`.
98
98
 
99
99
  ## Pilots
100
100