Changelog
Changes to @ginga-ui/core and @ginga-ui/utils, listed by version. Both packages are always released with the same version.
v0.17.0
Breaking changes
- Packages are now ESM only. The CommonJS build failed to load CSS and did not work.
- The
reactandreact-dompeer dependencies now require 19 or later. Passrefas a regular prop. - State props were renamed from
isDisabledand similar todisabled/required/selected/readOnly/invalid/expanded/dismissable. - The
Modalbackdrop is now a separateModalOverlay. Style it withoverlayClassName, and setdismissableto close on an outside click. Drawerwithdismissable={false}now stays modal and ignores outside clicks and Esc.FormControlnow takeslabelinstead oftitle, and links the label to its field automatically.Headinglevelis now a number such as1instead of a string such as"h1".altis now required onImage.Tableselection keys are now each row'sid(or the value returned bygetRowKey) instead of the row index.CardDescriptionwas removed. Put any element insideCardHeaderinstead.generateThemenow returns{ type: "error", message }on failure. Retries and themaxRetriesoption were removed.- Removed the unused
generateColors/generateColorsMap/generateIntermediateColors.
Added
- Added
Tooltip,Menu,ComboBox,NumberField, andSearchField. - Every component accepts
render, so the root element can be rendered by another component such asnext/link. - Added
descriptionanderrorMessagetoSelect,SliderLabeltoSlider, andsize="lg"toSegmentedControl.
Changed
- Theme generation now validates the format and range of each generated value before writing CSS, and always corrects colors with too little contrast.
SegmentedControlnow fills the selected item with the accent color and slides the highlight when the selection changes.Tabsnow underline the selected tab with the accent color.Tablenow has an outer border and dividers between rows.- A
Cardrendered as a link now underlines its title and shows a focus ring. InputandSelectnow match the height ofButton, and form control borders are neutral gray.
Fixed
- Fixed focus escaping from
Popoverand its arrow appearing offset and too small. - Fixed
Tablethrowing whenshowHeader={false}was set orisRowHeaderwas omitted. - Fixed an error when passing a function as
className. - The
Toastclose button andTracestatus labels are now announced in the page language.
v0.16.0
Breaking changes
- Removed
QuestionnaireError. The next and submit buttons are now disabled until required questions are answered.
Added
- Added
Questionnaire,Trace, andSegmentedControl. - Added
filenameIcon/files[].iconto show an icon next toCodeBlockfile names. - Added
fullWidthtoTabsandemptyMessagetoTablefor the empty state.
Changed
- Refreshed the
CodeBlockdesign and turned the copy button into an icon. Accordionnow animates its height when opening and closing.- Buttons in
CardFooterare now right-aligned, andToastandSegmentedControluse a border instead of a shadow.
Fixed
- Fixed
CodeBlockcode wrapping under the copy button when there is no file name.
v0.15.0
Breaking changes
- Built-in icons were removed. Pass icons for
Accordion,Select,Alert,AlertDialog,Toast, andCodeBlockthrough props such asicon. - Class names for
List,Table, andSelectchanged toginga-list-item,ginga-table-row,ginga-select-label, and so on. AccordionTriggeris now wrapped in a heading element (h3by default).Popoverprops were narrowed down toplacement,offset,crossOffset,shouldFlip,showArrow, and a few others.
Added
- Added dark mode. It follows the OS setting and can be fixed with
<html data-theme="light">/"dark". A generated theme takes precedence over dark mode. ThemeClientacceptsapiKeyin its constructor. Environment variables are used when it is omitted.- Added the
ghostvariant,size(sm/md/lg), andstartIcon/endIcontoButton. - Added
filestoCodeBlockfor switching between files in tabs,stripedtoTable, and range selection toSlider. - Added derived tokens such as
--color-text,--color-surface,--radius-*, and--focus-ring-*tovariables.css, and exportedSelectItem.
Changed
- Redesigned every component. Focus rings and contrast meet WCAG 2.2 AA.
- Default
ThemeClientmodels are nowgpt-6-lunafor OpenAI,gemini-3.8-flashfor Google, andclaude-haiku-5-5for Anthropic. Drawerwithdismissable={false}no longer dims the page, so the page stays usable while it is open.- The page can scroll while a
Popoveris open, and the popover follows its trigger. - On narrow screens,
TabsandCodeBlockfile names scroll horizontally, andTableis wrapped in a scrollable container. - Generated theme CSS now includes a
color-schemethat matches the background brightness.
Fixed
- Fixed
Headingignoring its size, theSliderthumb being off center, andTablerow selection getting out of sync with its checkboxes.
v0.14.0
Added
- Added
AlertDialog,Drawer,Popover,Alert,Badge,Toast, andCodeBlock. - Added the status colors
--color-info/--color-success/--color-warning/--color-danger.
Changed
CardandAnchorwithvariant="button"now look consistent withCodeBlockandButton.
v0.13.3
Changed
@ginga-ui/coreand@ginga-ui/utilsare now always released with the same version.
Fixed
- Each component now loads its own CSS automatically, and the
"use client"directive is no longer lost in the Next.js App Router.
v0.12.2
Changed
- Replaced the build tooling. Imports work the same as before.
v0.12.1
Fixed
- Fixed the release process. There are no user-facing changes.
v0.12.0
Breaking changes
- Per-component packages such as
@ginga-ui/buttonwere merged into@ginga-ui/core. Import from@ginga-ui/coreinstead.
v0.11.0
Breaking changes
- Rebuilt theme generation on the Vercel AI SDK.
ThemeClientnow takes aprovider.
Added
- Launched the documentation site.
v0.10.3
Breaking changes
- Dropped CSS Modules in favor of fixed
ginga-*class names, so styles can be overridden from your own CSS.
v0.10.0
Added
ThemeClientnow supports Anthropic models and lets you choose the model.
v0.9.0
Breaking changes
- Packages moved to the
@ginga-uiscope and were split into one package per component.
v0.8.1
Breaking changes
- State props were unified as
isDisabled,isSelected,isRequired, and so on.
Added
- Added the
reversevariant toButtonand exportedListItem.
Fixed
Paragraphnow renders apelement.
v0.8.0
Added
- Added the MIT license.
Fixed
- Fixed the text color of
HeadingandParagraph.
v0.7.11
Breaking changes
- Removed
ContainerandFlex. UseBoxinstead.
Added
- Added
Box.
v0.7.10
Changed
- Revised the
Buttonprops.
Fixed
- Fixed the CSS file name.
v0.7.9
Added
- Added a CommonJS build and made components importable from
ginga-ui/core.
Fixed
- Fixed
ThemeClientfailing to import in Next.js.
v0.7.8
Fixed
- Fixed the build configuration.
v0.7.7
Added
- Added an option for server-side rendering.
v0.7.6
Added
- Added
List.
Fixed
- Fixed the peer dependencies.
v0.7.5
Fixed
- Fixed an error caused by React.
v0.7.4
Added
- Components can be imported from their own files.
v0.7.3
Changed
- Removed
React.forwardReffrom every component and adjusted the text color.
v0.7.2
Added
- Added
"use client"to every component so they can be used from Server Components.
Fixed
- Fixed a bug in
ButtonGroup.
v0.7.1
Added
- Added
Table.
Fixed
- Improved the contrast ratio check for generated themes.
v0.7.0
Added
- Added
DialogandSelect.
Changed
- Generated themes now keep a contrast ratio of at least 3.0.
v0.6.0
Breaking changes
- Theme generation is now called through the
ThemeClientclass.
Added
- Theme generation now supports Gemini.
v0.5.0
Added
- Themes are regenerated when the contrast ratio falls below 3.0, and OpenAI responses are validated.
- Published Storybook on Chromatic.
v0.4.2
Changed
- Each component now uses its own CSS variables.
Fixed
- Improved the accessibility of
Accordion.
v0.4.1
Added
- Added
ParagraphandImage, and revised the design of every component.
Fixed
- Fixed CSS variables not being set correctly.
v0.4.0
Added
- Added
ContainerandFlex, and theme generation accepts OpenAI client options.
v0.3.0
Added
- Color scales are now built from the generated primary and secondary colors, and every component was redesigned.
v0.2.2
Added
- Added
Slider,Accordion, andgenerateColorMapfor building color scales.
v0.2.0
Added
- Added
ButtonGroup.
v0.1.0
Added
- Added
Card,Link,FormControl,RadioGroup, andCheckboxGroup. - CSS variables can be generated with the OpenAI API.
v0.0.0
Added
- Initial release with
Button,Switch,Checkbox,Input, andHeading.