Closed vsjolander closed 1 month ago
None or empty changeset found. This PR will not result any new releases.
If you believe this is incorrect, please add a changeset by running npx changeset
, and then commiting the resulting changeset file.
You can also explicitly add an empty changeset by running:
npx changeset add --empty
This pull request includes significant changes to the build scripts and the addition of React wrappers for core components. The most important changes include the creation of a new build script for generating React components, the addition of a custom plugin for event names, and the creation of React wrappers for various core components.
Build Script Enhancements:
libs/core/build-scripts/make-react.cjs
: Added a new build script to generate React components from core components. This script clears the build directory, fetches component metadata, and creates React wrappers usingprettier
for formatting.libs/core/build-scripts/shared.cjs
: Added a helper functiongetAllComponents
to extract components from metadata.Custom Plugin:
libs/core/custom-elements-manifest.config.mjs
: Added a plugingreen-react-event-names
to generate React event names from custom elements manifest.Project Configuration:
libs/core/project.json
: Updated project configurations to include the newmake-react
target and refactored dependencies and outputs for various build targets.React Wrappers for Core Components:
These are not added to the public API yet as we should replace the existing components with these wrappers.
libs/react/src/core/backdrop/index.ts
: Added React wrapper forGdsBackdrop
.libs/react/src/core/badge/index.ts
: Added React wrapper forGdsBadge
.libs/react/src/core/button/index.ts
: Added React wrapper forGdsButton
.libs/react/src/core/calendar/index.ts
: Added React wrapper forGdsCalendar
.libs/react/src/core/card/index.ts
: Added React wrapper forGdsCard
.libs/react/src/core/coachmark/index.ts
: Added React wrapper forGdsCoachmark
.libs/react/src/core/container/index.ts
: Added React wrapper forGdsContainer
.libs/react/src/core/context-menu/index.ts
: Added React wrapper forGdsContextMenu
.libs/react/src/core/datepicker/index.ts
: Added React wrapper forGdsDatepicker
.libs/react/src/core/dropdown/index.ts
: Added React wrapper forGdsDropdown
.libs/react/src/core/fab/index.ts
: Added React wrapper forGdsFab
.libs/react/src/core/filter-chip/index.ts
: Added React wrapper forGdsFilterChip
.libs/react/src/core/filter-chips/index.ts
: Added React wrapper forGdsFilterChips
.libs/react/src/core/flex/index.ts
: Added React wrapper forGdsFlex
.libs/react/src/core/grid/index.ts
: Added React wrapper forGdsGrid
.