@sanity/ui 5.0.0-alpha.7 → 5.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/install.js +2 -1
  3. package/dist/index.d.ts +248 -79
  4. package/dist/index.js +5 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/styles.css +1 -1
  7. package/package.json +2 -2
  8. package/src/cli/install.ts +2 -1
  9. package/src/components/box/box.props.ts +7 -2
  10. package/src/components/button/button.props.ts +27 -9
  11. package/src/components/card/card.props.ts +6 -2
  12. package/src/components/checkbox/Checkbox.tsx +2 -1
  13. package/src/components/checkbox/checkbox.props.ts +11 -3
  14. package/src/components/code/code.props.ts +10 -3
  15. package/src/components/container/container.props.ts +6 -2
  16. package/src/components/dialog/Dialog.tsx +1 -1
  17. package/src/components/dialog/dialog.props.ts +13 -4
  18. package/src/components/eyebrow/eyebrow.props.ts +6 -2
  19. package/src/components/flex/flex.props.ts +6 -2
  20. package/src/components/grid/grid.props.ts +6 -2
  21. package/src/components/h-stack/hStack.props.ts +3 -1
  22. package/src/components/heading/heading.props.ts +8 -2
  23. package/src/components/icon/icon.props.ts +6 -2
  24. package/src/components/icon-button/iconButton.props.ts +7 -2
  25. package/src/components/indicator/indicator.props.ts +6 -2
  26. package/src/components/indicator-stack/indicatorStack.props.ts +3 -1
  27. package/src/components/inline/inline.props.ts +6 -2
  28. package/src/components/label/label.props.ts +7 -1
  29. package/src/components/link/link.props.ts +4 -4
  30. package/src/components/list/list.props.ts +27 -9
  31. package/src/components/popover/popover.props.ts +14 -4
  32. package/src/components/press-area/pressArea.props.ts +3 -1
  33. package/src/components/radio/radio.props.ts +7 -2
  34. package/src/components/skip-to-content/skipToContent.props.ts +9 -3
  35. package/src/components/spinner/Spinner.tsx +1 -1
  36. package/src/components/spinner/spinner.props.ts +3 -0
  37. package/src/components/switch/switch.props.ts +7 -2
  38. package/src/components/text/text.props.ts +6 -2
  39. package/src/components/tooltip/tooltip.props.ts +12 -4
  40. package/src/components/tooltip-group/tooltipGroup.props.ts +3 -1
  41. package/src/components/v-stack/vStack.props.ts +3 -1
  42. package/src/components/visually-hidden/visuallyHidden.props.ts +6 -2
  43. package/src/version.ts +2 -2
@@ -3,7 +3,9 @@ import {type PropDef} from '../../types/PropDef'
3
3
 
4
4
  /** @public */
5
5
  export interface VStackProps<T extends React.ElementType = 'div'> extends Pick<GapProps, 'gap'> {
6
- /** Element to render */
6
+ /**
7
+ * HTML element or component to render.
8
+ */
7
9
  as?: T
8
10
  }
9
11
 
@@ -2,9 +2,13 @@ import {type PropDef} from '../../types/PropDef'
2
2
 
3
3
  /** @public */
4
4
  export interface VisuallyHiddenProps<T extends React.ElementType = 'span'> {
5
- /** Element to render */
5
+ /**
6
+ * HTML element to render.
7
+ */
6
8
  as?: T
7
- /** If true, element is visible on :focus-visible */
9
+ /**
10
+ * If true, the element becomes visible on `:focus-visible`.
11
+ */
8
12
  visibleOnFocus?: boolean
9
13
  }
10
14
 
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is generated by scripts/write-version.js. Do not edit.
2
- export const VERSION = '500alpha7'
3
- export const HASH = '47d232'
2
+ export const VERSION = '500alpha8'
3
+ export const HASH = 'ff7a34'