Changelog
0.5.2
Patch Changes
-
Remove the
maxHeight,buttons,buttonsAlignment, andformprops fromModal. Consumers now compose a modal's content themselves by rendering it as children:66ec988- Instead of
buttons/buttonsAlignment, renderButtoncomponents inside the modal and lay them out as needed - Instead of
form, render a<form>element inside the modal, with the form's fields and buttons inside it - Instead of
maxHeight, wrap long content in an element with its ownmaxHeightandoverflowY: "auto". The modal now grows to fit its content, and its body no longer scrolls on its own
- Instead of
-
Add a
dismissibleprop to theModalcomponent. When set tofalse, the user can't dismiss the modal: pressingEscapeand clicking the backdrop are ignored, and the close button in the header is disabled. This is useful for critical flows, such as while a form is submitting. The modal can still be closed programmatically withclose().1577cd9 -
Renamed CSS tokens (Tailwind class names are unchanged):
0016e64- Color tokens now have a
--vesper-color-prefix (eg.--vesper-stone-500is now--vesper-color-stone-500, and--vesper-background-primaryis now--vesper-color-background-primary) --vesper-stroke-baseand--vesper-stroke-strongare replaced by--vesper-border-width-baseand--vesper-border-width-strongfor borders, and--vesper-outline-width-baseand--vesper-outline-width-strongfor outlines
- Color tokens now have a
-
Adjust
buttoncomponent styling to prevent layout shift when toggling between a disabled and non-disabled variante9b515f -
Fix bug where
switchwas not animating its background color correctly when flipped on0a504ea -
Update
Materialto acceptfalseandnullvalues for itsstateprop.2c3f125 -
Update
togglestyles to allow rendering it at arbitrary widths while having toggle occupy available space15cec00 -
Add a
Tablecomponent, available from@tenstorrent/vesper/table. It renders a styled native<table>element, and styles any<thead>,<tbody>,<tr>,<th>, and<td>elements placed inside it.1bf3f2b -
Widen the
titleprop type inAccordionfromstringtoReactNode226e7e6 -
Add alternate sets of semantic tokens for high contrast mode
a46041e -
Added
withVesper, atailwind-mergeplugin exported from@tenstorrent/vesper/tailwind-merge. Pass it toextendTailwindMerge(eg.extendTailwindMerge(withVesper)) to resolve conflicts between Vesper's Tailwind classes and Tailwind's own classes.tailwind-merge(^3.6.0) is an optional peer dependency, which you only need to install to usewithVesper.0016e64
0.5.1
Patch Changes
-
Removed the
copyOnHoverprop fromCodeBlock. On devices that support hover, the copy-to-clipboard button is now always hidden until the code block is hovered or the button receives keyboard focus.ed0452c -
Updated the following component styles to match updated designs in Figma:
Admonition,Button,Checkbox,Chip,Choicebox,Code,CodeBlock,Combobox,IconButton,RadioGroup,Select,Sheet,Snippet,StatusIndicator,Switch,Toast,Toggleed0452c -
Bug fix: clear pending copy-to-clipboard timeouts in
SnippetandCodeBlockwhen they unmount, and restart theCodeBlockcopy confirmation timeout when its copy button is clicked again.ed0452c -
Update CSS tokens:
ed0452c- Add a
--vesper-blurtoken, along with a matchingblur-vesperTailwind utility - Rename
--vesper-text-alpha-disabledto--vesper-text-inverse-disabled(and thetext-vesper-text-alpha-disabledTailwind utility totext-vesper-text-inverse-disabled) --vesper-background-inverse-primaryand--vesper-background-inverse-secondarynow resolve to opaque--vesper-stone-900and--vesper-stone-800colors instead of their alpha counterparts--vesper-shadow-{100,200,300,400}tokens now use a neutral black shadow color instead of a teal-tinted one
- Add a
-
Applied a backdrop blur (using the new
--vesper-blurtoken) to disabledButton,Checkbox,Chip,Switch, andTogglecomponents.ed0452c -
Added a
sizeprop toFormInputMessage, which accepts"sm"(default) or"lg". Small messages render with thelabel-xxstypography variant, and large messages render with thelabel-xstypography variant and increased padding.ed0452c -
Added hover states to
TextInput,TextArea,Checkbox, andRadioGroup.ed0452c -
Added
SliderHorizontalandStopicons.ed0452c -
Updated
SplitButton:ed0452c- Increase the default
menuWidthfrom200to280 - The
"subtle"variant now renders its buttons withtertiaryButtonstyles - The menu toggle button now has a fixed width for
mdandlgsizes, and the action button fills the remaining space
- Increase the default
-
Add a
ThemePersistenceScriptcomponent to thetheme-switchermodule. Render it once in the document's<head>to save the active theme tolocalStorageand apply the saved theme before the page is first painted. Themes are kept in sync across browser tabs, and thelocalStoragekey can be customized via thestorageKeyprop.ed0452c -
Updated
ThemeSwitcheranduseTheme:ed0452cThemeSwitcheranduseThemenow stay in sync with any change to thedata-vesper-themeattribute on the document root, not just changes made withuseTheme's setter function- The active theme is now styled based on the document root's
data-vesper-themeattribute, so the correct theme displays before hydration - Restyle
ThemeSwitcherwith a transparent background, a filled indicator for the active theme, and a hover state for its buttons
-
Added two new props to
Tooltip:ed0452cvariant: either"contrast"(default) or"danger", which determines the tooltip's color schemehideArrow: whentrue, hides the tooltip's arrow and removes the arrow's height from the distance between the tooltip and its trigger
-
Add new
Typographyvariants such that everycopy-*andlabel-*size now has a-monocounterpart. Also adjust the styling of existing variants:display-*variants now render with a lighter font weight andtightletter spacing, andlabel-xs/label-xs-boldnow render withnormalletter spacing.ed0452c
0.5.0
Minor Changes
- Update
theme-switchermodule to export a new hook,useTheme, which exposes the current theme and a setter function to consumers.00ca199
Patch Changes
- Widens the
messageprop inform-input-messageto acceptnullandfalsevalues.256a134
0.4.0
Minor Changes
- Convert
Menuto a polymorphic component. This allows consumers to compose dropdown menus easier with existing Vesper components likeButton,IconButton, andTextButtonvia theasprop.c24297b - Added a new prop to
TabItem,contentAsPanel, that allows consumers to control whether a tab panel'scontentrenders as the tab panel itself via prop forwarding. The behavior prior to this change was to always treat a tab'scontentas the panel itself.8c0b47b - Added a new prop to
Tooltip,wrapWithButton, that allows consumers to control whether a tooltip's trigger renders with a wrapping<button>element instead of receiving a tooltip's forwarded props. The behavior prior to this change was to always merge a tooltip's props with its trigger's props and omit the wrapping<button>element.3d90c86
Patch Changes
- Bug fix: adjust how polymorphic component props are inferred so that polymorphic components rendered as other polymorphic components don't lose their type-checking.
96d914e
0.3.1
Patch Changes
- Declare callback props (eg.
onValueChange,onOpenChange) as function properties instead of methods, so they are type-checked strictly (instead of bivariantly) against the handlers passed to them0b7702e - Bug fix: tighten CSS selector scoping across
accordion,sheet,badge,tag,button,admonition,tabs,chip, andtext-buttonso nested components do not inherit styles from parent components774ba29
0.3.0
Minor Changes
- Update
SplitButtondefault variant to be"subtle"instead of"contrast"a1ddb25 - Update
Admonitiondefault size to be"md"instead of"sm"a1ddb25 - Allow
Sheetcontent to be rendered inside of a<form>by exposing aformprop in the same way theModalcomponent does75fa75d
Patch Changes
- decrement minimum supported node version
041cc5d - Fix: Declare optional
childrenprop forBadgeandTag041cc5d - Bug fix: ensure
<Toasts />renders with max z-index so its content gets placed above everything else in its stacking context5207d64 - Update the default variant for
Codeto inherit its text color6f98fb5 - Update the styling of
admonition.tsxto match updated designs in Figmaa594d7d - Adjust styling in
badge,button, andtagcomponents to meet wcag2aa a11y requirementsec340f7 - Update
bg-vesper-dot-pattern-*tailwind utilities so the individual CSS properties they are composed of can be overridden by other tailwind utility classes6f98fb5 - Fix a bug where
<Tabs>was not correctly rendering the active tab whenvariant="secondary"df39ec0
0.2.0
Post-public-pre-internal-launch jitters settled.
This minor release ships with accessibility improvements, and contains our first breaking change (‼️), where we remove MaskedInput completely ahead of wider adoption (forgive us if you were among the 3 people who downloaded the last release and have already vibecoded your way to 1M MAU and series A funding!!).
Minor Changes
- Accessibility update:
text-area,text-input,combobox, andselectcomponents now render their inputs with a minimum font size of 16px on mobile screens.f3905b1 - Remove
masked-inputcomponent. Consumers who still need input masking behavior can install@maskito/{core,react}and use theuseMaskitohook instead. Refer to the maskito docs for more information.8db5345
Patch Changes
- Fix a bug where an uncontrolled
Togglewith adefaultValuewould clear itself on mountea824e5
0.1.1
Patch Changes
- Update
README.mdinstall instructions78f735b
0.1.0
Initial release
w love from Toronto, New York, and Santa Clara