Changelog

0.5.2

Patch Changes

  • Remove the maxHeight, buttons, buttonsAlignment, and form props from Modal. Consumers now compose a modal's content themselves by rendering it as children: 66ec988

    • Instead of buttons/buttonsAlignment, render Button components 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 own maxHeight and overflowY: "auto". The modal now grows to fit its content, and its body no longer scrolls on its own
  • Add a dismissible prop to the Modal component. When set to false, the user can't dismiss the modal: pressing Escape and 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 with close(). 1577cd9

  • Renamed CSS tokens (Tailwind class names are unchanged): 0016e64

    • Color tokens now have a --vesper-color- prefix (eg. --vesper-stone-500 is now --vesper-color-stone-500, and --vesper-background-primary is now --vesper-color-background-primary)
    • --vesper-stroke-base and --vesper-stroke-strong are replaced by --vesper-border-width-base and --vesper-border-width-strong for borders, and --vesper-outline-width-base and --vesper-outline-width-strong for outlines
  • Adjust button component styling to prevent layout shift when toggling between a disabled and non-disabled variant e9b515f

  • Fix bug where switch was not animating its background color correctly when flipped on 0a504ea

  • Update Material to accept false and null values for its state prop. 2c3f125

  • Update toggle styles to allow rendering it at arbitrary widths while having toggle occupy available space 15cec00

  • Add a Table component, 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 title prop type in Accordion from string to ReactNode 226e7e6

  • Add alternate sets of semantic tokens for high contrast mode a46041e

  • Added withVesper, a tailwind-merge plugin exported from @tenstorrent/vesper/tailwind-merge. Pass it to extendTailwindMerge (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 use withVesper. 0016e64

0.5.1

Patch Changes

  • Removed the copyOnHover prop from CodeBlock. 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, Toggle ed0452c

  • Bug fix: clear pending copy-to-clipboard timeouts in Snippet and CodeBlock when they unmount, and restart the CodeBlock copy confirmation timeout when its copy button is clicked again. ed0452c

  • Update CSS tokens: ed0452c

    • Add a --vesper-blur token, along with a matching blur-vesper Tailwind utility
    • Rename --vesper-text-alpha-disabled to --vesper-text-inverse-disabled (and the text-vesper-text-alpha-disabled Tailwind utility to text-vesper-text-inverse-disabled)
    • --vesper-background-inverse-primary and --vesper-background-inverse-secondary now resolve to opaque --vesper-stone-900 and --vesper-stone-800 colors 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
  • Applied a backdrop blur (using the new --vesper-blur token) to disabled Button, Checkbox, Chip, Switch, and Toggle components. ed0452c

  • Added a size prop to FormInputMessage, which accepts "sm" (default) or "lg". Small messages render with the label-xxs typography variant, and large messages render with the label-xs typography variant and increased padding. ed0452c

  • Added hover states to TextInput, TextArea, Checkbox, and RadioGroup. ed0452c

  • Added SliderHorizontal and Stop icons. ed0452c

  • Updated SplitButton: ed0452c

    • Increase the default menuWidth from 200 to 280
    • The "subtle" variant now renders its buttons with tertiary Button styles
    • The menu toggle button now has a fixed width for md and lg sizes, and the action button fills the remaining space
  • Add a ThemePersistenceScript component to the theme-switcher module. Render it once in the document's <head> to save the active theme to localStorage and apply the saved theme before the page is first painted. Themes are kept in sync across browser tabs, and the localStorage key can be customized via the storageKey prop. ed0452c

  • Updated ThemeSwitcher and useTheme: ed0452c

    • ThemeSwitcher and useTheme now stay in sync with any change to the data-vesper-theme attribute on the document root, not just changes made with useTheme's setter function
    • The active theme is now styled based on the document root's data-vesper-theme attribute, so the correct theme displays before hydration
    • Restyle ThemeSwitcher with a transparent background, a filled indicator for the active theme, and a hover state for its buttons
  • Added two new props to Tooltip: ed0452c

    • variant: either "contrast" (default) or "danger", which determines the tooltip's color scheme
    • hideArrow: when true, hides the tooltip's arrow and removes the arrow's height from the distance between the tooltip and its trigger
  • Add new Typography variants such that every copy-* and label-* size now has a -mono counterpart. Also adjust the styling of existing variants: display-* variants now render with a lighter font weight and tight letter spacing, and label-xs/label-xs-bold now render with normal letter spacing. ed0452c

0.5.0

Minor Changes

  • Update theme-switcher module to export a new hook, useTheme, which exposes the current theme and a setter function to consumers. 00ca199

Patch Changes

  • Widens the message prop in form-input-message to accept null and false values. 256a134

0.4.0

Minor Changes

  • Convert Menu to a polymorphic component. This allows consumers to compose dropdown menus easier with existing Vesper components like Button, IconButton, and TextButton via the as prop. c24297b
  • Added a new prop to TabItem, contentAsPanel, that allows consumers to control whether a tab panel's content renders as the tab panel itself via prop forwarding. The behavior prior to this change was to always treat a tab's content as 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 them 0b7702e
  • Bug fix: tighten CSS selector scoping across accordion, sheet, badge, tag, button, admonition, tabs, chip, and text-button so nested components do not inherit styles from parent components 774ba29

0.3.0

Minor Changes

  • Update SplitButton default variant to be "subtle" instead of "contrast" a1ddb25
  • Update Admonition default size to be "md" instead of "sm" a1ddb25
  • Allow Sheet content to be rendered inside of a <form> by exposing a form prop in the same way the Modal component does 75fa75d

Patch Changes

  • decrement minimum supported node version 041cc5d
  • Fix: Declare optional children prop for Badge and Tag 041cc5d
  • Bug fix: ensure <Toasts /> renders with max z-index so its content gets placed above everything else in its stacking context 5207d64
  • Update the default variant for Code to inherit its text color 6f98fb5
  • Update the styling of admonition.tsx to match updated designs in Figma a594d7d
  • Adjust styling in badge, button, and tag components to meet wcag2aa a11y requirements ec340f7
  • Update bg-vesper-dot-pattern-* tailwind utilities so the individual CSS properties they are composed of can be overridden by other tailwind utility classes 6f98fb5
  • Fix a bug where <Tabs> was not correctly rendering the active tab when variant="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, and select components now render their inputs with a minimum font size of 16px on mobile screens. f3905b1
  • Remove masked-input component. Consumers who still need input masking behavior can install @maskito/{core,react} and use the useMaskito hook instead. Refer to the maskito docs for more information. 8db5345

Patch Changes

  • Fix a bug where an uncontrolled Toggle with a defaultValue would clear itself on mount ea824e5

0.1.1

Patch Changes

  • Update README.md install instructions 78f735b

0.1.0

Initial release

Simon Mackenzie Neesh

w love from Toronto, New York, and Santa Clara