@sanity/ui 5.0.0-alpha.2 → 5.0.0-alpha.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "Sanity UI Library",
5
5
  "keywords": [
6
6
  "components",
@@ -10,9 +10,14 @@ const boxClassName = suffixClassName('sui-Box')
10
10
  /** @public */
11
11
  export function Box<T extends ElementType = 'div'>({
12
12
  display = 'block',
13
+ minHeight = '0',
14
+ minWidth = '0',
13
15
  ...props
14
16
  }: BoxProps<T> & Omit<ComponentPropsWithRef<T>, keyof BoxProps<T>>) {
15
- const {as, children, className, style, ...rest} = getProps({display, ...props}, boxProps)
17
+ const {as, children, className, style, ...rest} = getProps(
18
+ {display, minHeight, minWidth, ...props},
19
+ boxProps,
20
+ )
16
21
  const Component = as || 'div'
17
22
 
18
23
  return (
@@ -10,9 +10,14 @@ const flexClassName = suffixClassName('sui-Flex')
10
10
  /** @public */
11
11
  export function Flex<T extends ElementType = 'div'>({
12
12
  display = 'flex',
13
+ minHeight = '0',
14
+ minWidth = '0',
13
15
  ...props
14
16
  }: FlexProps<T> & Omit<ComponentPropsWithRef<T>, keyof FlexProps<T>>) {
15
- const {as, children, className, style, ...rest} = getProps({display, ...props}, flexProps)
17
+ const {as, children, className, style, ...rest} = getProps(
18
+ {display, minHeight, minWidth, ...props},
19
+ flexProps,
20
+ )
16
21
  const Component = as || 'div'
17
22
 
18
23
  return (
@@ -10,9 +10,14 @@ const gridClassName = suffixClassName('sui-Grid')
10
10
  /** @public */
11
11
  export function Grid<T extends ElementType = 'div'>({
12
12
  display = 'grid',
13
+ minHeight = '0',
14
+ minWidth = '0',
13
15
  ...props
14
16
  }: GridProps<T> & Omit<ComponentPropsWithRef<T>, keyof GridProps<T>>) {
15
- const {as, children, className, style, ...rest} = getProps({display, ...props}, gridProps)
17
+ const {as, children, className, style, ...rest} = getProps(
18
+ {display, minHeight, minWidth, ...props},
19
+ gridProps,
20
+ )
16
21
  const Component = as || 'div'
17
22
 
18
23
  return (
@@ -1,10 +1,10 @@
1
1
  @breakpoints {
2
- .sui-display-block { display: block; }
3
- .sui-display-inline-block { display: inline-block; }
4
- .sui-display-inline { display: inline; }
5
- .sui-display-flex { display: flex; }
6
- .sui-display-inline-flex { display: inline-flex; }
7
- .sui-display-grid { display: grid; }
8
- .sui-display-inline-grid { display: inline-grid; }
9
- .sui-display-none { display: none; }
2
+ .sui-display-block:not([hidden]) { display: block; }
3
+ .sui-display-inline-block:not([hidden]) { display: inline-block; }
4
+ .sui-display-inline:not([hidden]) { display: inline; }
5
+ .sui-display-flex:not([hidden]) { display: flex; }
6
+ .sui-display-inline-flex:not([hidden]) { display: inline-flex; }
7
+ .sui-display-grid:not([hidden]) { display: grid; }
8
+ .sui-display-inline-grid:not([hidden]) { display: inline-grid; }
9
+ .sui-display-none:not([hidden]) { display: none; }
10
10
  }
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 = '500alpha2'
3
- export const HASH = 'eaf84d'
2
+ export const VERSION = '500alpha4'
3
+ export const HASH = 'fc8b40'