@sanity/ui 1.7.8 → 1.7.9

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 (2) hide show
  1. package/dist/index.d.ts +19 -19
  2. package/package.json +3 -4
package/dist/index.d.ts CHANGED
@@ -33,7 +33,6 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
33
33
  HTMLProps<HTMLInputElement>,
34
34
  | 'value'
35
35
  | 'ref'
36
- | 'type'
37
36
  | 'id'
38
37
  | 'spellCheck'
39
38
  | 'role'
@@ -49,6 +48,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
49
48
  | 'onSelect'
50
49
  | 'as'
51
50
  | 'autoComplete'
51
+ | 'type'
52
52
  > & {
53
53
  ref?: Ref<HTMLInputElement> | undefined
54
54
  },
@@ -372,7 +372,7 @@ export declare interface BoundaryElementProviderProps {
372
372
  * @public
373
373
  */
374
374
  export declare const Box: ForwardRefExoticComponent<
375
- Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
375
+ Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
376
376
  RefAttributes<HTMLDivElement>
377
377
  >
378
378
 
@@ -419,7 +419,7 @@ export declare type BoxSizing = 'content' | 'border'
419
419
  */
420
420
  export declare const Breadcrumbs: ForwardRefExoticComponent<
421
421
  BreadcrumbsProps &
422
- Omit<HTMLProps<HTMLOListElement>, 'ref' | 'type' | 'as'> &
422
+ Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
423
423
  RefAttributes<HTMLOListElement>
424
424
  >
425
425
 
@@ -481,7 +481,7 @@ export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution'
481
481
  * @public
482
482
  */
483
483
  export declare const Card: ForwardRefExoticComponent<
484
- Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
484
+ Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
485
485
  RefAttributes<HTMLDivElement>
486
486
  >
487
487
 
@@ -526,7 +526,7 @@ export declare type CardTone = ThemeColorToneKey | 'inherit'
526
526
  * @public
527
527
  */
528
528
  export declare const Checkbox: ForwardRefExoticComponent<
529
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
529
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
530
530
  RefAttributes<HTMLInputElement>
531
531
  >
532
532
 
@@ -566,7 +566,7 @@ export declare interface CodeProps {
566
566
  */
567
567
  export declare const CodeSkeleton: ForwardRefExoticComponent<
568
568
  Omit<
569
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
569
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'as' | 'height'>,
570
570
  'ref'
571
571
  > &
572
572
  RefAttributes<HTMLDivElement>
@@ -584,7 +584,7 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
584
584
  * @public
585
585
  */
586
586
  export declare const Container: ForwardRefExoticComponent<
587
- Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
587
+ Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'as' | 'height'>, 'ref'> &
588
588
  RefAttributes<HTMLDivElement>
589
589
  >
590
590
 
@@ -847,7 +847,7 @@ export declare function _getResponsiveSpace(
847
847
  * @public
848
848
  */
849
849
  export declare const Grid: ForwardRefExoticComponent<
850
- Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
850
+ Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
851
851
  RefAttributes<HTMLDivElement>
852
852
  >
853
853
 
@@ -938,7 +938,7 @@ export declare interface HeadingProps {
938
938
  */
939
939
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
940
940
  Omit<
941
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
941
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'as' | 'height'>,
942
942
  'ref'
943
943
  > &
944
944
  RefAttributes<HTMLDivElement>
@@ -1097,7 +1097,7 @@ export declare interface LabelProps {
1097
1097
  */
1098
1098
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1099
1099
  Omit<
1100
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
1100
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'as' | 'height'>,
1101
1101
  'ref'
1102
1102
  > &
1103
1103
  RefAttributes<HTMLDivElement>
@@ -1172,7 +1172,7 @@ export declare interface _MediaStore {
1172
1172
  * @public
1173
1173
  */
1174
1174
  export declare const Menu: ForwardRefExoticComponent<
1175
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1175
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'tabIndex' | 'role' | 'as' | 'height'>, 'ref'> &
1176
1176
  RefAttributes<HTMLDivElement>
1177
1177
  >
1178
1178
 
@@ -1257,7 +1257,7 @@ export declare interface MenuGroupProps {
1257
1257
  */
1258
1258
  export declare const MenuItem: ForwardRefExoticComponent<
1259
1259
  MenuItemProps &
1260
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'height' | 'tabIndex' | 'as'> &
1260
+ Omit<HTMLProps<HTMLDivElement>, 'selected' | 'ref' | 'tabIndex' | 'as' | 'height'> &
1261
1261
  RefAttributes<HTMLDivElement>
1262
1262
  >
1263
1263
 
@@ -1442,7 +1442,7 @@ export declare interface PortalProviderProps {
1442
1442
  * @public
1443
1443
  */
1444
1444
  export declare const Radio: ForwardRefExoticComponent<
1445
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
1445
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
1446
1446
  RefAttributes<HTMLInputElement>
1447
1447
  >
1448
1448
 
@@ -1820,7 +1820,7 @@ export declare interface Styles {
1820
1820
  * @public
1821
1821
  */
1822
1822
  export declare const Switch: ForwardRefExoticComponent<
1823
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
1823
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
1824
1824
  RefAttributes<HTMLInputElement>
1825
1825
  >
1826
1826
 
@@ -1836,7 +1836,7 @@ export declare interface SwitchProps {
1836
1836
  */
1837
1837
  export declare const Tab: ForwardRefExoticComponent<
1838
1838
  Omit<
1839
- TabProps & Omit<HTMLProps<HTMLButtonElement>, 'label' | 'type' | 'id' | 'aria-controls' | 'as'>,
1839
+ TabProps & Omit<HTMLProps<HTMLButtonElement>, 'label' | 'id' | 'aria-controls' | 'as' | 'type'>,
1840
1840
  'ref'
1841
1841
  > &
1842
1842
  RefAttributes<HTMLButtonElement>
@@ -1846,7 +1846,7 @@ export declare const Tab: ForwardRefExoticComponent<
1846
1846
  * @public
1847
1847
  */
1848
1848
  export declare const TabList: ForwardRefExoticComponent<
1849
- Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
1849
+ Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
1850
1850
  RefAttributes<unknown>
1851
1851
  >
1852
1852
 
@@ -1934,7 +1934,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
1934
1934
  * @public
1935
1935
  */
1936
1936
  export declare const TextInput: ForwardRefExoticComponent<
1937
- Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
1937
+ Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
1938
1938
  RefAttributes<HTMLInputElement>
1939
1939
  >
1940
1940
 
@@ -2011,7 +2011,7 @@ export declare interface TextProps {
2011
2011
  */
2012
2012
  export declare const TextSkeleton: ForwardRefExoticComponent<
2013
2013
  Omit<
2014
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'height' | 'as'>,
2014
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'size' | 'as' | 'height'>,
2015
2015
  'ref'
2016
2016
  > &
2017
2017
  RefAttributes<HTMLDivElement>
@@ -2679,7 +2679,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2679
2679
  export declare const Tree: MemoExoticComponent<
2680
2680
  ForwardRefExoticComponent<
2681
2681
  TreeProps &
2682
- Omit<HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'height' | 'role' | 'as' | 'align'> &
2682
+ Omit<HTMLProps<HTMLDivElement>, 'ref' | 'wrap' | 'role' | 'as' | 'height' | 'align'> &
2683
2683
  RefAttributes<HTMLDivElement>
2684
2684
  >
2685
2685
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "sideEffects": false,
5
5
  "types": "./dist/index.d.ts",
6
6
  "source": "./src/index.ts",
@@ -76,7 +76,6 @@
76
76
  "@types/react-dom": "^18.2.7",
77
77
  "@types/react-is": "^18.2.1",
78
78
  "@types/refractor": "^3.0.2",
79
- "@types/styled-components": "^5.1.26",
80
79
  "@types/testing-library__jest-dom": "^5.14.9",
81
80
  "@typescript-eslint/eslint-plugin": "^6.3.0",
82
81
  "@typescript-eslint/parser": "^6.3.0",
@@ -108,7 +107,7 @@
108
107
  "rimraf": "^5.0.1",
109
108
  "semantic-release": "^21.0.7",
110
109
  "start-server-and-test": "^2.0.0",
111
- "styled-components": "^5.3.11",
110
+ "styled-components": "^6.0.7",
112
111
  "tsconfig-paths": "^4.2.0",
113
112
  "typescript": "^5.1.6"
114
113
  },
@@ -116,7 +115,7 @@
116
115
  "react": "^18",
117
116
  "react-dom": "^18",
118
117
  "react-is": "^18",
119
- "styled-components": "^5.2"
118
+ "styled-components": "^5.2 || ^6"
120
119
  },
121
120
  "engines": {
122
121
  "node": ">=14.0.0"