Releases: NCIOCPL/react-app-shared
Releases · NCIOCPL/react-app-shared
v0.3.0
Minor Changes
-
#75
99b6960Thanks @adriancofie! - AddAutocomplete(NCIDS combobox) component and fix its packaging.- Search-box features: new
minChars/minCharsMessageprops (shows a "enter N or more characters" hint below the threshold), anonSubmitcallback plus a built-in search button (Enter submits when no option is highlighted; a highlighted option is selected first),highlightMatchto bold the matched substring in each option, and asearchButtonLabelfor localization. - Styling now ships: the component previously relied on a CSS-module (
Autocomplete.module.scss) that the rollup pipeline silently dropped — class names resolved toundefinedand no CSS was emitted to the bundled stylesheet. Styles are now plainnci-autocomplete*classes shipped via@nciocpl/react-components/styles.
- Search-box features: new
-
#75
d00f0ddThanks @adriancofie! - AddTextInput(NCIDS Text Input) component. Wraps a native<input>with USWDSusa-inputstyling and supports text, email, password, tel, url, number, and search input types. Forwards standard input props for use as a controlled or uncontrolled input.
v0.2.0
Minor Changes
-
#70
9c1438fAddDropdown(NCIDS Select) component. Wraps a native<select>with USWDS styling and forwards standard form props for use as a controlled or uncontrolled input. -
#70
6ce5456- 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 canimport '@nciocpl/react-components/styles'and servenode_modules/@nciocpl/ncids-css/uswds-imgat/img. README updated with Vite/Webpack recipes. - React peer dependency raised to
>=17.0.0. The build emitsreact/jsx-runtimeimports (modern JSX transform), which only exist on React ≥ 16.14 — and React 16 has been EOL since 2024. Setting the floor at 17 prevents crypticCan't resolve 'react/jsx-runtime'errors on outdated React installations. @nciocpl/ncids-csspeer dependency is now declared (>=3.0.0, optional) so the existingpeerDependenciesMeta.optionalentry has effect.
- Subpath exports (
All notable changes to this project will be documented in this file.
v0.1.0
@nciocpl/react-components@0.1.0
Added
- Initial release of @nciocpl/react-components shared component library
- Initial repository setup with folder structure and configuration
- Initial TypeScript, Rollup, Jest, ESLint, Prettier, and Storybook configuration
- Project documentation (README, LICENSE, CONTRIBUTING)