@sanity/ui 5.0.0-alpha.13 → 5.0.0-alpha.15

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.13",
3
+ "version": "5.0.0-alpha.15",
4
4
  "description": "Sanity UI Library",
5
5
  "keywords": [
6
6
  "components",
@@ -48,7 +48,7 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@sanity-labs/design-tokens": "0.0.2-alpha.5",
51
+ "@sanity-labs/design-tokens": "0.0.2-alpha.7",
52
52
  "@sanity/icons": "^5.2.1",
53
53
  "clsx": "^2.1.1",
54
54
  "comment-json": "^5.0.0",
@@ -1,3 +1,4 @@
1
+ import {flexParentProps, type FlexParentProps} from '../../props/flexParent'
1
2
  import {type GapProps, gapProps} from '../../props/gap'
2
3
  import {type GridParentProps, gridParentProps} from '../../props/gridParent'
3
4
  import {type LayoutProps, layoutProps} from '../../props/layout'
@@ -7,7 +8,11 @@ import type {Responsive} from '../../types/Responsive'
7
8
 
8
9
  /** @public */
9
10
  export interface GridProps<T extends React.ElementType = 'div'>
10
- extends GridParentProps, GapProps, LayoutProps {
11
+ extends
12
+ Pick<FlexParentProps, 'alignItems' | 'justifyContent'>,
13
+ GridParentProps,
14
+ GapProps,
15
+ LayoutProps {
11
16
  /**
12
17
  * HTML element or component to render.
13
18
  */
@@ -27,6 +32,8 @@ export const gridProps: Record<string, PropDef> = {
27
32
  className: 'display',
28
33
  values: DISPLAY_GRID,
29
34
  },
35
+ alignItems: flexParentProps['alignItems'] as PropDef,
36
+ justifyContent: flexParentProps['justifyContent'] as PropDef,
30
37
  ...gridParentProps,
31
38
  ...gapProps,
32
39
  ...layoutProps,
@@ -17,6 +17,7 @@ export function Icon({icon, size = 2, ...props}: IconProps) {
17
17
  const svgProps = {
18
18
  'className': clsx(
19
19
  iconClassName,
20
+ 'sui-display-block',
20
21
  className,
21
22
  iconElement ? iconElement.props.className : undefined,
22
23
  ),
@@ -32,10 +32,6 @@
32
32
  .sui-text-heading3 { --trim: -7px; }
33
33
  .sui-text-heading4 { --trim: -8px; }
34
34
  .sui-text-heading5 { --trim: -10px; }
35
- .sui-text-heading6 { --trim: -13px; }
36
- .sui-text-heading7 { --trim: -16px; }
37
- .sui-text-heading8 { --trim: -22px; }
38
- .sui-text-heading9 { --trim: -30px; }
39
35
 
40
36
  .sui-text-code0 { --trim: -4px; }
41
37
  .sui-text-code1 { --trim: -5px; }
@@ -17,10 +17,6 @@
17
17
  .sui-text-heading3 { font: var(--heading-3); }
18
18
  .sui-text-heading4 { font: var(--heading-4); }
19
19
  .sui-text-heading5 { font: var(--heading-5); }
20
- .sui-text-heading6 { font: var(--heading-6); }
21
- .sui-text-heading7 { font: var(--heading-7); }
22
- .sui-text-heading8 { font: var(--heading-8); }
23
- .sui-text-heading9 { font: var(--heading-9); }
24
20
 
25
21
  .sui-text-eyebrow0 { font: var(--label-0); }
26
22
  .sui-text-eyebrow1 { font: var(--label-1); }
@@ -1,6 +1,6 @@
1
1
  export const HEADING_TAG = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const
2
2
  export type HeadingTag = (typeof HEADING_TAG)[number]
3
3
 
4
- export const HEADING_SIZE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const
4
+ export const HEADING_SIZE = [0, 1, 2, 3, 4, 5] as const
5
5
  /** @public */
6
6
  export type HeadingSize = (typeof HEADING_SIZE)[number]
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 = '500alpha13'
3
- export const HASH = '0ef1ec'
2
+ export const VERSION = '500alpha15'
3
+ export const HASH = '29dcdf'