@sanity/ui 5.0.0-alpha.2 → 5.0.0-alpha.3
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/dist/index.d.ts +6 -0
- package/dist/index.js +28 -16
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/box/Box.tsx +6 -1
- package/src/components/flex/Flex.tsx +6 -1
- package/src/components/grid/Grid.tsx +6 -1
- package/src/version.ts +2 -2
package/package.json
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
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 (
|
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 = '
|
|
3
|
-
export const HASH = '
|
|
2
|
+
export const VERSION = '500alpha3'
|
|
3
|
+
export const HASH = 'cfa475'
|