@sanity/ui 3.0.0-static.12 → 3.0.0-static.13
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/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +13 -1
- package/dist/_visual-editing.d.ts +13 -1
- package/dist/cli.js +1 -1
- package/dist/css.js +1 -1
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +1 -1
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +27 -5
- package/dist/index.d.ts +27 -5
- package/package.json +1 -1
- package/src/css/utils/srOnly/srOnly.ts +2 -1
- package/src/ui/primitives/label/label.tsx +13 -1
- package/src/ui/primitives/text/text.tsx +13 -1
- package/src/ui/utils/virtualList/virtualList.tsx +1 -3
package/dist/index.d.mts
CHANGED
|
@@ -1561,7 +1561,19 @@ export declare namespace Label {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
1563
|
/** @public */
|
|
1564
|
-
export declare type LabelElementType =
|
|
1564
|
+
export declare type LabelElementType =
|
|
1565
|
+
| 'div'
|
|
1566
|
+
| 'h1'
|
|
1567
|
+
| 'h2'
|
|
1568
|
+
| 'h3'
|
|
1569
|
+
| 'h4'
|
|
1570
|
+
| 'h5'
|
|
1571
|
+
| 'h6'
|
|
1572
|
+
| 'label'
|
|
1573
|
+
| 'li'
|
|
1574
|
+
| 'p'
|
|
1575
|
+
| 'span'
|
|
1576
|
+
| ComponentType
|
|
1565
1577
|
|
|
1566
1578
|
/** @public */
|
|
1567
1579
|
export declare type LabelOwnProps = LabelStyleProps & TextOverflowStyleProps
|
|
@@ -2609,7 +2621,19 @@ export declare type TextAreaProps<E extends TextAreaElementType = TextAreaElemen
|
|
|
2609
2621
|
>
|
|
2610
2622
|
|
|
2611
2623
|
/** @public */
|
|
2612
|
-
export declare type TextElementType =
|
|
2624
|
+
export declare type TextElementType =
|
|
2625
|
+
| 'div'
|
|
2626
|
+
| 'h1'
|
|
2627
|
+
| 'h2'
|
|
2628
|
+
| 'h3'
|
|
2629
|
+
| 'h4'
|
|
2630
|
+
| 'h5'
|
|
2631
|
+
| 'h6'
|
|
2632
|
+
| 'label'
|
|
2633
|
+
| 'li'
|
|
2634
|
+
| 'p'
|
|
2635
|
+
| 'span'
|
|
2636
|
+
| ComponentType
|
|
2613
2637
|
|
|
2614
2638
|
/**
|
|
2615
2639
|
* Single line text input.
|
|
@@ -3303,9 +3327,7 @@ export declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue |
|
|
|
3303
3327
|
*/
|
|
3304
3328
|
export declare function useTree(): TreeContextValue
|
|
3305
3329
|
|
|
3306
|
-
/**
|
|
3307
|
-
* @beta
|
|
3308
|
-
*/
|
|
3330
|
+
/** @beta */
|
|
3309
3331
|
export declare function VirtualList<
|
|
3310
3332
|
E extends VirtualListElementType = typeof DEFAULT_VIRTUAL_LIST_ELEMENT,
|
|
3311
3333
|
>(props: VirtualListProps<E>): JSX.Element
|
package/dist/index.d.ts
CHANGED
|
@@ -1561,7 +1561,19 @@ export declare namespace Label {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
1563
|
/** @public */
|
|
1564
|
-
export declare type LabelElementType =
|
|
1564
|
+
export declare type LabelElementType =
|
|
1565
|
+
| 'div'
|
|
1566
|
+
| 'h1'
|
|
1567
|
+
| 'h2'
|
|
1568
|
+
| 'h3'
|
|
1569
|
+
| 'h4'
|
|
1570
|
+
| 'h5'
|
|
1571
|
+
| 'h6'
|
|
1572
|
+
| 'label'
|
|
1573
|
+
| 'li'
|
|
1574
|
+
| 'p'
|
|
1575
|
+
| 'span'
|
|
1576
|
+
| ComponentType
|
|
1565
1577
|
|
|
1566
1578
|
/** @public */
|
|
1567
1579
|
export declare type LabelOwnProps = LabelStyleProps & TextOverflowStyleProps
|
|
@@ -2609,7 +2621,19 @@ export declare type TextAreaProps<E extends TextAreaElementType = TextAreaElemen
|
|
|
2609
2621
|
>
|
|
2610
2622
|
|
|
2611
2623
|
/** @public */
|
|
2612
|
-
export declare type TextElementType =
|
|
2624
|
+
export declare type TextElementType =
|
|
2625
|
+
| 'div'
|
|
2626
|
+
| 'h1'
|
|
2627
|
+
| 'h2'
|
|
2628
|
+
| 'h3'
|
|
2629
|
+
| 'h4'
|
|
2630
|
+
| 'h5'
|
|
2631
|
+
| 'h6'
|
|
2632
|
+
| 'label'
|
|
2633
|
+
| 'li'
|
|
2634
|
+
| 'p'
|
|
2635
|
+
| 'span'
|
|
2636
|
+
| ComponentType
|
|
2613
2637
|
|
|
2614
2638
|
/**
|
|
2615
2639
|
* Single line text input.
|
|
@@ -3303,9 +3327,7 @@ export declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue |
|
|
|
3303
3327
|
*/
|
|
3304
3328
|
export declare function useTree(): TreeContextValue
|
|
3305
3329
|
|
|
3306
|
-
/**
|
|
3307
|
-
* @beta
|
|
3308
|
-
*/
|
|
3330
|
+
/** @beta */
|
|
3309
3331
|
export declare function VirtualList<
|
|
3310
3332
|
E extends VirtualListElementType = typeof DEFAULT_VIRTUAL_LIST_ELEMENT,
|
|
3311
3333
|
>(props: VirtualListProps<E>): JSX.Element
|
package/package.json
CHANGED
|
@@ -15,7 +15,19 @@ export const DEFAULT_LABEL_ELEMENT = 'div'
|
|
|
15
15
|
export type LabelOwnProps = LabelStyleProps & TextOverflowStyleProps
|
|
16
16
|
|
|
17
17
|
/** @public */
|
|
18
|
-
export type LabelElementType =
|
|
18
|
+
export type LabelElementType =
|
|
19
|
+
| 'div'
|
|
20
|
+
| 'h1'
|
|
21
|
+
| 'h2'
|
|
22
|
+
| 'h3'
|
|
23
|
+
| 'h4'
|
|
24
|
+
| 'h5'
|
|
25
|
+
| 'h6'
|
|
26
|
+
| 'label'
|
|
27
|
+
| 'li'
|
|
28
|
+
| 'p'
|
|
29
|
+
| 'span'
|
|
30
|
+
| ComponentType
|
|
19
31
|
|
|
20
32
|
/** @public */
|
|
21
33
|
export type LabelProps<E extends LabelElementType = LabelElementType> = Props<LabelOwnProps, E>
|
|
@@ -15,7 +15,19 @@ export const DEFAULT_TEXT_ELEMENT = 'div'
|
|
|
15
15
|
export type TextOwnProps = TextStyleProps & TextOverflowStyleProps
|
|
16
16
|
|
|
17
17
|
/** @public */
|
|
18
|
-
export type TextElementType =
|
|
18
|
+
export type TextElementType =
|
|
19
|
+
| 'div'
|
|
20
|
+
| 'h1'
|
|
21
|
+
| 'h2'
|
|
22
|
+
| 'h3'
|
|
23
|
+
| 'h4'
|
|
24
|
+
| 'h5'
|
|
25
|
+
| 'h6'
|
|
26
|
+
| 'label'
|
|
27
|
+
| 'li'
|
|
28
|
+
| 'p'
|
|
29
|
+
| 'span'
|
|
30
|
+
| ComponentType
|
|
19
31
|
|
|
20
32
|
/** @public */
|
|
21
33
|
export type TextProps<E extends TextElementType = TextElementType> = Props<TextOwnProps, E>
|
|
@@ -46,9 +46,7 @@ export type VirtualListProps<E extends VirtualListElementType = VirtualListEleme
|
|
|
46
46
|
E
|
|
47
47
|
>
|
|
48
48
|
|
|
49
|
-
/**
|
|
50
|
-
* @beta
|
|
51
|
-
*/
|
|
49
|
+
/** @beta */
|
|
52
50
|
export function VirtualList<E extends VirtualListElementType = typeof DEFAULT_VIRTUAL_LIST_ELEMENT>(
|
|
53
51
|
props: VirtualListProps<E>,
|
|
54
52
|
) {
|