Releases: jaydenseric/device-agnostic-ui
Releases · jaydenseric/device-agnostic-ui
Version 5.1.1
Patch
- Removed peer dependencies from the
ignore
field of.size-limit.json
, as they are ignored by default. - Removed the CSS
align-self: stretch
rule from theLinkCard
component.
Version 5.1.0
Minor
- The color scheme can now be set for specific elements using a
data-daui-color-scheme
attribute with alight
ordark
value. This is useful for implementing a global color scheme switch, or to force a legible scheme when UI is overlaying an element known to always be light or dark. - The
Heading
component has new props:level
sets the heading element used, e.g.h1
.size
sets the CSSfont-size
via a global theme CSS variable, e.g.--daui-h1-font-size
.
Patch
- Updated dev dependencies.
- Loosened the semver range for the
@babel/runtime
dependency, to avoid duplication innode_modules
in projects using the oldest supported Next.js version. - Reduced the opacity of shadows in dark mode.
Version 5.0.2
Patch
- Updated dev dependencies.
- Increased the bundle size limit from 7 KB to 8 KB.
Textbox
componenttype
prop types now also allowdate
,datetime-local
,email
,month
,password
,search
,tel
,time
,url
andweek
values.
Version 5.0.1
Patch
- Updated dependencies.
- Updated
stylesSyntaxHighlightingPrism
styles:- Only set the base color on
code
elements (and relevant descendant tokens, as before). - Syntax highlight CSS at-rules.
- Only set the base color on
Version 5.0.0
Major
- The
Heading
component’sh1
element no longer has a default CSSfont-size
rule. AllHeading
uses should have an inline style (orclassName
) that sets afont-size
; using one of the new CSS variables (see below) or a custom value.
Minor
- Added new CSS variables for global control of heading font sizes, used by the
Heading
andHtml
components:--daui-h1-font-size
--daui-h2-font-size
--daui-h3-font-size
--daui-h4-font-size
--daui-h5-font-size
--daui-h6-font-size
Html
component childrenh3
,h4
,h5
, andh6
elements are now styled with specificfont-size
rules via the new CSS variables.
Patch
- Changelog typo fix.
Version 4.0.0
Major
Picture
component changes:- An
img
element must now be manually declared via thechildren
prop. - It can now accept a
dangerouslySetInnerHTML
prop. - The
alt
,src
, andround
props have been deprecated. - The
width
prop no longer sets a CSS pixelwidth
value on thepicture
element.
- An
Minor
- Support
img
elements in theHtml
component, by ensuring they are responsive withmax-width: 100%
andheight: auto
styles.
Patch
- Updated dev dependencies.
- Tidied
Toggle
component CSS whitespace. - Set the
Picture
component static and dynamic styles via separatestyle
tags for efficiency. - Reordered
Html
component styles so that thestylesHtml
CSS comes last, indicating higher specificity.
Version 3.0.1
Patch
- Updated the
--daui-sans-serif
and-daui-emoji
CSS variable font stacks defined instylesGlobalTheme
, for cross-device consistency. They are now similar to the GitHub font stacks. - Changelog typo fix.
Version 3.0.0
Major
- Updated the minimum supported Node.js version from v8.5 to v8.10, to match ESLint’s level of support.
- Renamed several CSS variables, so that prefixes match the capitalization of the component name:
--daui-nav-
→--daui-Nav-
--daui-scroll-
→--daui-Scroll-
--daui-pre-
→--daui-Pre-
- New font size approach:
Blockquote
,List
, andPara
components now inherit font size.Heading
,Select
andTextbox
components now use%
instead ofrem
for font size units.
Minor
- Added a new
splitWordBreaks
utility function andWordBreaks
component, for rendering text with aesthetically pleasing word break opportunities. - Added a new
--daui-spacing
CSS variable, for global control of spacing between elements that are intended to visually align. - Added a new
Margin
component that wraps children in adiv
element, with a margin set via the--daui-spacing
CSS variable. - Added a new optional
active
prop for theLinkText
component, for displaying active state.
Patch
- Updated dev dependencies.
- Updated the package
homepage
field. - The
Button
component’sbutton
element’s styles now inheritsfont-variant
. - Added
scrollbar-width: thin
styles toNav
andPre
components. - Updated
LinkNav
andNav
component styles:- The content of links now vertically aligns to the bottom.
- More compact spacing to fit more links into a narrow viewport.
Nav
horizontal inner spacing uses the--daui-spacing
CSS variable, and no longer has extra spacing on the right.
- Updated the
Scroll
component to use a singlediv
element and removed themax-width: 100%
style. - Reordered
Fieldset
component style rules for consistency with other components.
Version 2.0.1
Patch
- Ensure the
Picture
component maintains aspect ratio when an inline style width is applied. Also, CSScalc
is used instead of JS math so precision matches the browser’s capability, and for better inspectability.
Version 2.0.0
Major
- The
Html
component no longer renders a string value for thechildren
prop withdangerouslySetInnerHTML
. Instead, use thedangerouslySetInnerHTML
prop directly.
Minor
- Added the
stylesSyntaxHighlightingPrism
named export, for styling syntax highlighting HTML produced by Prism. - Added the
propTypeChildren
named export, for use in componentpropTypes
to specify a prop (usually, but not necessarilychildren
) should have a React node type, and if.isRequired
is chained, must be populated unless thedangerouslySetInnerHTML
prop is populated. Blockquote
,Button
,Code
,Html
,LinkCard
,LinkNav
,LinkText
,List
,Nav
,Para
,Pre
,Select
, andTable
components can now accept adangerouslySetInnerHTML
prop.- Additional
Nav
component props are now applied to the underlyingnav
element.
Patch
- Updated dependencies.
- Reorganized the files in
src/styles
so that filenames match their named export. - Alphabetically sort exports in index files.
- Fixed setting a
className
prop onLinkCard
andLinkNav
components from interfering with theactive
class. - The
children
prop of theNav
andTable
components is now marked as required inpropTypes
. - In many components, use the new
propTypeChildren
API. - In many components, use
classNameProp
fromclass-name-prop
for creating aclassName
prop value for multiple classes. - Improved the readme with deviceagnosticui.com links, an expanded intro with a list of features, better setup instructions, and a new “API” section.