Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/dropdown-component.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/fix-package-exports-and-styles.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.2.0

### Minor Changes

- [#70](https://github.com/NCIOCPL/react-app-shared/pull/70) [`9c1438f`](https://github.com/NCIOCPL/react-app-shared/commit/9c1438fc9a277d503be2df16504a4e6363626f01) Thanks [@adriancofie](https://github.com/adriancofie)! - Add `Dropdown` (NCIDS Select) component. Wraps a native `<select>` with USWDS styling and forwards standard form props for use as a controlled or uncontrolled input.

- [#70](https://github.com/NCIOCPL/react-app-shared/pull/70) [`6ce5456`](https://github.com/NCIOCPL/react-app-shared/commit/6ce5456e642e2b6b50792f9e3d91d781947841ce) Thanks [@adriancofie](https://github.com/adriancofie)! - Fix package distribution issues surfaced during downstream integration:

- **Subpath exports** (`@nciocpl/react-components/core`, `@nciocpl/react-components/ncids`): rollup now uses multi-entry input so the documented subpath bundles (and matching type declarations) are actually emitted.
- **Bundled stylesheet** (`@nciocpl/react-components/styles`): the export now resolves to a real compiled CSS file (USWDS global, `usa-pagination`, `usa-icon`, `usa-collection`). Consumers that don't already compile NCIDS SCSS can `import '@nciocpl/react-components/styles'` and serve `node_modules/@nciocpl/ncids-css/uswds-img` at `/img`. README updated with Vite/Webpack recipes.
- **React peer dependency** raised to `>=17.0.0`. The build emits `react/jsx-runtime` imports (modern JSX transform), which only exist on React ≥ 16.14 — and React 16 has been EOL since 2024. Setting the floor at 17 prevents cryptic `Can't resolve 'react/jsx-runtime'` errors on outdated React installations.
- **`@nciocpl/ncids-css` peer dependency** is now declared (`>=3.0.0`, optional) so the existing `peerDependenciesMeta.optional` entry has effect.

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nciocpl/react-components",
"version": "0.1.0",
"version": "0.2.0",
"description": "Shared React component library for NCI applications",
"type": "module",
"main": "dist/cjs/index.js",
Expand Down
Loading