@adaptavant/eds-core@1.52.0
Minor Changes
- 23a856c:
Calendar: Adds an optionaltodayprop that sets the date marked as today, which the today button and the initial month also use. Pass a date fixed on the server, ortzModifier, so server-rendered pages and the browser agree on today and avoid a hydration mismatch. Without it, today still comes from the current date. - 0773882:
RadioGroup,CheckboxGroup: Adds adefaultValueprop and makesvalueandonChangeoptional, so the groups can be left uncontrolled. PassdefaultValueto set the initial selection and the group keeps track of it from there, submitting the selected values with the form undername. PassingvaluewithonChangecontrols the group as before. - 12495d5:
Select: Deprecated, along withSelectProps. UseSelectMenuinstead.Selectkeeps working and will be removed in a future major release. Theno-deprecated-componentsrule in@adaptavant/eslint-plugin-edsnow warns onSelectandSelectProps.
Patch Changes
- c0c6d63:
AttachmentCard:filenow accepts any object with aname,sizeandtype, not only a browserFile, so attachments described by server or API data can render the card. Passing aFileworks as before. - 4e1d2c9:
Avatar: Fixes "Invalid DOM property" console errors from the status badge. The internalhasSymbolprop is no longer passed through to the<svg>, which affected everyAvatarwith astatus(including inConversationCard), and theonCallbadge now usesclipRule/fillRuleinstead ofclip-rule/fill-rule. Rendering is unchanged. - b6851f1:
CropModal: WhenzoomInButtonLabel/zoomOutButtonLabelare not provided, the zoom buttons are now labelled "Zoom in" and "Zoom out" instead of falling back to an icon'sdisplayName. This also fixes the zoom-out button in@adaptavant/crop-modal, which was labelled "AddOnIcon". - 1674d44:
useDebounceFunction: Returns the same function across renders and always calls the latestfn, even when an inline function is passed.useIsViewportBelowOrEqualand the other hooks built on it no longer remove and re-add theirresizelistener on every render. - 9a1bd9a:
getDayLabels: Can now be called from a React Server Component. It moved out of the'use client'DaySelectmodule into a plain utility module, so the server gets the function rather than a client reference. The import path is unchanged. - 6f8ea8d: Moves
postcss-clifromdependenciestodevDependencies, since it is only used by the package's own build scripts, so consumers no longer install it. The README Tailwind setup now shows the real API,createPreset(tokens)withtokensfrom an@adaptavant/eds-brandsbrand, instead of the non-existentcreateTailwindPreset({ brand }). - 1d8fa34:
SelectCardandAttachmentCardnow switch their mobile layout with CSS breakpoints instead of reading the viewport in JavaScript. The server HTML already has the right layout for a phone, so these components no longer render at desktop size first and then resize after hydration. Desktop styles are unchanged. If you override these components' layout classes on mobile, add themax-md:prefix to your overrides. - 5b65a41:
RichTextEditor: Marks therichTextEditor*feature factories as client modules so the build keeps them out of the shared chunk withMessage,MessageHeader,EmojiandSystemTagline. Apps that render those components in client components no longer load the editor engine. - 68be3a9:
SearchInput: Fixes the "A component is changing an uncontrolled input to be controlled" error when an uncontrolledSearchInputis typed into. Its internal value now starts fromvalue, thendefaultValue, then an empty string, so the native input stays controlled for its lifetime.defaultValueis now shown initially and cleared by the clear button andEscape. Controlled usage is unchanged. - c235ea8:
Snackbar: Uses camelCaseinsetInlineStart/insetInlineEndfor theoffsetstyle, which removes the "Unsupported style property inset-inline-start. Did you mean insetInlineStart?" console error. Placement and offsets are unchanged. - 46cabde:
TimeZonePicker: Builds the time zone list the first timeuseTimeZonePickerruns instead of when the module is imported, so pages that only import it no longer spend main-thread time on it at load. The list is cached and the picker behaves as before. - 0193391:
ButtonLink,Checkbox,Chip,ColorSwatch,ColorSwatches,IconButton,IconLink,Radio,RadioPrimitive,TextInputPrimitiveand theShareModalwidget: Adds the missing'use client'directive, so these components can be rendered from a React Server Component (for example a Next.js App Router page) instead of throwing because they call client hooks on the server. - Updated dependencies [c21522b]
- Updated dependencies [b6851f1]
- @adaptavant/eds-icons@1.17.1