@sanity/ui 2.8.6 → 2.8.8

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 (70) hide show
  1. package/dist/index.d.mts +48 -0
  2. package/dist/index.d.ts +48 -0
  3. package/dist/index.esm.js +121 -32
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +121 -32
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +121 -32
  8. package/dist/index.mjs.map +1 -1
  9. package/package.json +2 -2
  10. package/src/core/components/autocomplete/autocomplete.tsx +2 -0
  11. package/src/core/components/breadcrumbs/breadcrumbs.tsx +1 -0
  12. package/src/core/components/dialog/dialog.tsx +3 -0
  13. package/src/core/components/dialog/dialogProvider.tsx +2 -0
  14. package/src/core/components/hotkeys/hotkeys.tsx +1 -0
  15. package/src/core/components/menu/menu.tsx +1 -0
  16. package/src/core/components/menu/menuButton.tsx +1 -0
  17. package/src/core/components/menu/menuDivider.ts +1 -0
  18. package/src/core/components/menu/menuGroup.tsx +2 -0
  19. package/src/core/components/menu/menuItem.tsx +1 -0
  20. package/src/core/components/skeleton/skeleton.tsx +1 -0
  21. package/src/core/components/skeleton/textSkeleton.tsx +4 -0
  22. package/src/core/components/tab/tab.tsx +1 -0
  23. package/src/core/components/tab/tabList.tsx +1 -0
  24. package/src/core/components/tab/tabPanel.tsx +1 -0
  25. package/src/core/components/toast/toast.tsx +2 -0
  26. package/src/core/components/toast/toastProvider.tsx +2 -0
  27. package/src/core/components/tree/tree.tsx +1 -2
  28. package/src/core/components/tree/treeItem.tsx +1 -0
  29. package/src/core/primitives/_selectable/selectable.tsx +1 -0
  30. package/src/core/primitives/avatar/avatar.tsx +1 -0
  31. package/src/core/primitives/avatar/avatarCounter.tsx +1 -0
  32. package/src/core/primitives/avatar/avatarStack.tsx +1 -0
  33. package/src/core/primitives/badge/badge.tsx +1 -0
  34. package/src/core/primitives/box/box.tsx +1 -0
  35. package/src/core/primitives/button/button.tsx +1 -0
  36. package/src/core/primitives/card/card.tsx +1 -0
  37. package/src/core/primitives/checkbox/checkbox.tsx +1 -0
  38. package/src/core/primitives/code/code.tsx +1 -0
  39. package/src/core/primitives/container/container.tsx +1 -0
  40. package/src/core/primitives/flex/flex.tsx +1 -0
  41. package/src/core/primitives/grid/grid.tsx +1 -0
  42. package/src/core/primitives/heading/heading.tsx +1 -0
  43. package/src/core/primitives/inline/inline.tsx +1 -0
  44. package/src/core/primitives/kbd/kbd.tsx +1 -0
  45. package/src/core/primitives/label/label.tsx +1 -0
  46. package/src/core/primitives/popover/popover.tsx +1 -2
  47. package/src/core/primitives/popover/popoverCard.tsx +1 -2
  48. package/src/core/primitives/radio/radio.tsx +1 -0
  49. package/src/core/primitives/select/select.tsx +1 -0
  50. package/src/core/primitives/spinner/spinner.tsx +1 -0
  51. package/src/core/primitives/stack/stack.tsx +1 -0
  52. package/src/core/primitives/switch/switch.tsx +1 -0
  53. package/src/core/primitives/text/text.tsx +1 -0
  54. package/src/core/primitives/textArea/textArea.tsx +1 -0
  55. package/src/core/primitives/textInput/textInput.tsx +1 -0
  56. package/src/core/primitives/tooltip/tooltip.tsx +1 -0
  57. package/src/core/primitives/tooltip/tooltipCard.tsx +1 -2
  58. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +2 -0
  59. package/src/core/theme/themeColorProvider.tsx +2 -0
  60. package/src/core/theme/themeProvider.tsx +2 -0
  61. package/src/core/utils/arrow/arrow.tsx +1 -0
  62. package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +2 -0
  63. package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +2 -0
  64. package/src/core/utils/elementQuery/elementQuery.tsx +1 -0
  65. package/src/core/utils/layer/layer.tsx +1 -0
  66. package/src/core/utils/layer/layerProvider.tsx +2 -0
  67. package/src/core/utils/portal/portal.ts +2 -0
  68. package/src/core/utils/portal/portalProvider.tsx +2 -0
  69. package/src/core/utils/srOnly/srOnly.tsx +1 -0
  70. package/src/core/utils/virtualList/virtualList.tsx +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "2.8.6",
3
+ "version": "2.8.8",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -107,7 +107,7 @@
107
107
  "dependencies": {
108
108
  "@floating-ui/react-dom": "^2.1.1",
109
109
  "@sanity/color": "^3.0.6",
110
- "@sanity/icons": "^3.3.0",
110
+ "@sanity/icons": "^3.3.1",
111
111
  "csstype": "^3.1.3",
112
112
  "framer-motion": "11.0.8",
113
113
  "react-refractor": "^2.2.0",
@@ -691,6 +691,8 @@ const InnerAutocomplete = forwardRef(function InnerAutocomplete<
691
691
  )
692
692
  })
693
693
 
694
+ InnerAutocomplete.displayName = 'ForwardRef(Autocomplete)'
695
+
694
696
  /**
695
697
  * The Autocomplete component is typically used for search components.
696
698
  * It consists of a text input for writing a query, and properties for rendering suggestions.
@@ -95,3 +95,4 @@ export const Breadcrumbs = forwardRef(function Breadcrumbs(
95
95
  </Root>
96
96
  )
97
97
  })
98
+ Breadcrumbs.displayName = 'ForwardRef(Breadcrumbs)'
@@ -276,6 +276,8 @@ const DialogCard = forwardRef(function DialogCard(
276
276
  )
277
277
  })
278
278
 
279
+ DialogCard.displayName = 'ForwardRef(DialogCard)'
280
+
279
281
  /**
280
282
  * The Dialog component.
281
283
  *
@@ -424,3 +426,4 @@ export const Dialog = forwardRef(function Dialog(
424
426
  </Portal>
425
427
  )
426
428
  })
429
+ Dialog.displayName = 'ForwardRef(Dialog)'
@@ -30,3 +30,5 @@ export function DialogProvider(props: DialogProviderProps): React.ReactElement {
30
30
 
31
31
  return <DialogContext.Provider value={contextValue}>{children}</DialogContext.Provider>
32
32
  }
33
+
34
+ DialogProvider.displayName = 'DialogProvider'
@@ -58,3 +58,4 @@ export const Hotkeys = forwardRef(function Hotkeys(
58
58
  </Root>
59
59
  )
60
60
  })
61
+ Hotkeys.displayName = 'ForwardRef(Hotkeys)'
@@ -169,3 +169,4 @@ export const Menu = forwardRef(function Menu(
169
169
  </MenuContext.Provider>
170
170
  )
171
171
  })
172
+ Menu.displayName = 'ForwardRef(Menu)'
@@ -286,3 +286,4 @@ export const MenuButton = forwardRef(function MenuButton(
286
286
  </Popover>
287
287
  )
288
288
  })
289
+ MenuButton.displayName = 'ForwardRef(MenuButton)'
@@ -9,3 +9,4 @@ export const MenuDivider = styled.hr`
9
9
  background: var(--card-hairline-soft-color);
10
10
  margin: 0;
11
11
  `
12
+ MenuDivider.displayName = 'MenuDivider'
@@ -198,3 +198,5 @@ export function MenuGroup(
198
198
  </Popover>
199
199
  )
200
200
  }
201
+
202
+ MenuGroup.displayName = 'MenuGroup'
@@ -175,3 +175,4 @@ export const MenuItem = forwardRef(function MenuItem(
175
175
  </Selectable>
176
176
  )
177
177
  })
178
+ MenuItem.displayName = 'ForwardRef(MenuItem)'
@@ -55,3 +55,4 @@ export const Skeleton = forwardRef(function Skeleton(
55
55
  />
56
56
  )
57
57
  })
58
+ Skeleton.displayName = 'ForwardRef(Skeleton)'
@@ -71,6 +71,7 @@ export const TextSkeleton = forwardRef(function TextSkeleton(
71
71
 
72
72
  return <Root {...restProps} $size={$size} ref={ref} $style="text" />
73
73
  })
74
+ TextSkeleton.displayName = 'ForwardRef(TextSkeleton)'
74
75
 
75
76
  /**
76
77
  * This API might change. DO NOT USE IN PRODUCTION.
@@ -86,6 +87,7 @@ export const LabelSkeleton = forwardRef(function TextSkeleton(
86
87
 
87
88
  return <Root {...restProps} $size={$size} ref={ref} $style="label" />
88
89
  })
90
+ LabelSkeleton.displayName = 'ForwardRef(LabelSkeleton)'
89
91
 
90
92
  /**
91
93
  * This API might change. DO NOT USE IN PRODUCTION.
@@ -101,6 +103,7 @@ export const HeadingSkeleton = forwardRef(function TextSkeleton(
101
103
 
102
104
  return <Root {...restProps} $size={$size} ref={ref} $style="heading" />
103
105
  })
106
+ HeadingSkeleton.displayName = 'ForwardRef(HeadingSkeleton)'
104
107
 
105
108
  /**
106
109
  * This API might change. DO NOT USE IN PRODUCTION.
@@ -116,3 +119,4 @@ export const CodeSkeleton = forwardRef(function TextSkeleton(
116
119
 
117
120
  return <Root {...restProps} $size={$size} ref={ref} $style="code" />
118
121
  })
122
+ CodeSkeleton.displayName = 'ForwardRef(CodeSkeleton)'
@@ -97,3 +97,4 @@ export const Tab = forwardRef(function Tab(
97
97
  />
98
98
  )
99
99
  })
100
+ Tab.displayName = 'ForwardRef(Tab)'
@@ -74,3 +74,4 @@ export const TabList = forwardRef(function TabList(
74
74
  </CustomInline>
75
75
  )
76
76
  })
77
+ TabList.displayName = 'ForwardRef(TabList)'
@@ -35,3 +35,4 @@ export const TabPanel = forwardRef(function TabPanel(
35
35
  </Box>
36
36
  )
37
37
  })
38
+ TabPanel.displayName = 'ForwardRef(TabPanel)'
@@ -103,3 +103,5 @@ export function Toast(
103
103
  </Root>
104
104
  )
105
105
  }
106
+
107
+ Toast.displayName = 'Toast'
@@ -189,3 +189,5 @@ export function ToastProvider(props: ToastProviderProps): React.ReactElement {
189
189
  </ToastContext.Provider>
190
190
  )
191
191
  }
192
+
193
+ ToastProvider.displayName = 'ToastProvider'
@@ -233,5 +233,4 @@ export const Tree = memo(
233
233
  )
234
234
  }),
235
235
  )
236
-
237
- Tree.displayName = 'Tree'
236
+ Tree.displayName = 'Memo(ForwardRef(Tree))'
@@ -201,3 +201,4 @@ export const TreeItem = memo(function TreeItem(
201
201
  </Root>
202
202
  )
203
203
  })
204
+ TreeItem.displayName = 'Memo(TreeItem)'
@@ -11,3 +11,4 @@ export const Selectable = styled(Box)<SelectableStyleProps & ResponsiveRadiusSty
11
11
  selectableBaseStyle,
12
12
  selectableColorStyle,
13
13
  )
14
+ Selectable.displayName = 'Selectable'
@@ -194,3 +194,4 @@ export const Avatar = forwardRef(function Avatar(
194
194
  </Root>
195
195
  )
196
196
  })
197
+ Avatar.displayName = 'ForwardRef(Avatar)'
@@ -90,3 +90,4 @@ export const AvatarCounter = forwardRef(function AvatarCounter(
90
90
  </Root>
91
91
  )
92
92
  })
93
+ AvatarCounter.displayName = 'ForwardRef(AvatarCounter)'
@@ -97,3 +97,4 @@ export const AvatarStack = forwardRef(function AvatarStack(
97
97
  </Root>
98
98
  )
99
99
  })
100
+ AvatarStack.displayName = 'ForwardRef(AvatarStack)'
@@ -58,3 +58,4 @@ export const Badge = forwardRef(function Badge(
58
58
  </Root>
59
59
  )
60
60
  })
61
+ Badge.displayName = 'ForwardRef(Badge)'
@@ -127,3 +127,4 @@ export const Box = forwardRef(function Box(
127
127
  </Root>
128
128
  )
129
129
  })
130
+ Box.displayName = 'ForwardRef(Box)'
@@ -178,3 +178,4 @@ export const Button = forwardRef(function Button(
178
178
  </Root>
179
179
  )
180
180
  })
181
+ Button.displayName = 'ForwardRef(Button)'
@@ -112,3 +112,4 @@ export const Card = forwardRef(function Card(
112
112
  </ThemeColorProvider>
113
113
  )
114
114
  })
115
+ Card.displayName = 'ForwardRef(Card)'
@@ -69,3 +69,4 @@ export const Checkbox = forwardRef(function Checkbox(
69
69
  </Root>
70
70
  )
71
71
  })
72
+ Checkbox.displayName = 'ForwardRef(Checkbox)'
@@ -37,3 +37,4 @@ export const Code = forwardRef(function Code(
37
37
  </Root>
38
38
  )
39
39
  })
40
+ Code.displayName = 'ForwardRef(Code)'
@@ -37,3 +37,4 @@ export const Container = forwardRef(function Container(
37
37
  />
38
38
  )
39
39
  })
40
+ Container.displayName = 'ForwardRef(Container)'
@@ -50,3 +50,4 @@ export const Flex = forwardRef(function Flex(
50
50
  />
51
51
  )
52
52
  })
53
+ Flex.displayName = 'ForwardRef(Flex)'
@@ -44,3 +44,4 @@ export const Grid = forwardRef(function Grid(
44
44
  </Root>
45
45
  )
46
46
  })
47
+ Grid.displayName = 'ForwardRef(Grid)'
@@ -83,3 +83,4 @@ export const Heading = forwardRef(function Heading(
83
83
  </Root>
84
84
  )
85
85
  })
86
+ Heading.displayName = 'ForwardRef(Heading)'
@@ -44,3 +44,4 @@ export const Inline = forwardRef(function Inline(
44
44
  </Root>
45
45
  )
46
46
  })
47
+ Inline.displayName = 'ForwardRef(Inline)'
@@ -57,3 +57,4 @@ export const KBD = forwardRef(function KBD(
57
57
  </Root>
58
58
  )
59
59
  })
60
+ KBD.displayName = 'ForwardRef(KBD)'
@@ -82,3 +82,4 @@ export const Label = forwardRef(function Label(
82
82
  </Root>
83
83
  )
84
84
  })
85
+ Label.displayName = 'ForwardRef(Label)'
@@ -454,5 +454,4 @@ export const Popover = memo(
454
454
  )
455
455
  }),
456
456
  )
457
-
458
- Popover.displayName = 'Popover'
457
+ Popover.displayName = 'Memo(ForwardRef(Popover))'
@@ -152,5 +152,4 @@ export const PopoverCard = memo(
152
152
  )
153
153
  }),
154
154
  )
155
-
156
- PopoverCard.displayName = 'PopoverCard'
155
+ PopoverCard.displayName = 'Memo(ForwardRef(PopoverCard))'
@@ -47,3 +47,4 @@ export const Radio = forwardRef(function Radio(
47
47
  </Root>
48
48
  )
49
49
  })
50
+ Radio.displayName = 'ForwardRef(Radio)'
@@ -83,3 +83,4 @@ export const Select = forwardRef(function Select(
83
83
  </Root>
84
84
  )
85
85
  })
86
+ Select.displayName = 'ForwardRef(Select)'
@@ -42,3 +42,4 @@ export const Spinner = forwardRef(function Spinner(
42
42
  </Root>
43
43
  )
44
44
  })
45
+ Spinner.displayName = 'ForwardRef(Spinner)'
@@ -36,3 +36,4 @@ export const Stack = forwardRef(function Stack(
36
36
  />
37
37
  )
38
38
  })
39
+ Stack.displayName = 'ForwardRef(Stack)'
@@ -64,3 +64,4 @@ export const Switch = forwardRef(function Switch(
64
64
  </Root>
65
65
  )
66
66
  })
67
+ Switch.displayName = 'ForwardRef(Switch)'
@@ -84,3 +84,4 @@ export const Text = forwardRef(function Text(
84
84
  </Root>
85
85
  )
86
86
  })
87
+ Text.displayName = 'ForwardRef(Text)'
@@ -115,3 +115,4 @@ export const TextArea = forwardRef(function TextArea(
115
115
  </Root>
116
116
  )
117
117
  })
118
+ TextArea.displayName = 'ForwardRef(TextArea)'
@@ -384,3 +384,4 @@ export const TextInput = forwardRef(function TextInput(
384
384
  </Root>
385
385
  )
386
386
  })
387
+ TextInput.displayName = 'ForwardRef(TextInput)'
@@ -429,6 +429,7 @@ export const Tooltip = forwardRef(function Tooltip(
429
429
  </>
430
430
  )
431
431
  })
432
+ Tooltip.displayName = 'ForwardRef(Tooltip)'
432
433
 
433
434
  /**
434
435
  * As `useEffectEvent` should never be passed to other components or hooks, this custom hook groups together the `useEffectEvent` and the `useEffect` hook using it.
@@ -106,5 +106,4 @@ export const TooltipCard = memo(
106
106
  )
107
107
  }),
108
108
  )
109
-
110
- TooltipCard.displayName = 'TooltipCard'
109
+ TooltipCard.displayName = 'Memo(ForwardRef(TooltipCard))'
@@ -53,3 +53,5 @@ export function TooltipDelayGroupProvider(
53
53
  <TooltipDelayGroupContext.Provider value={value}>{children}</TooltipDelayGroupContext.Provider>
54
54
  )
55
55
  }
56
+
57
+ TooltipDelayGroupProvider.displayName = 'TooltipDelayGroupProvider'
@@ -24,3 +24,5 @@ export function ThemeColorProvider(props: ThemeColorProviderProps): React.ReactE
24
24
  </ThemeProvider>
25
25
  )
26
26
  }
27
+
28
+ ThemeColorProvider.displayName = 'ThemeColorProvider'
@@ -59,3 +59,5 @@ export function ThemeProvider(props: ThemeProviderProps): React.ReactElement {
59
59
  </ThemeContext.Provider>
60
60
  )
61
61
  }
62
+
63
+ ThemeProvider.displayName = 'ThemeProvider'
@@ -119,3 +119,4 @@ export const Arrow = forwardRef(function Arrow(
119
119
  </Root>
120
120
  )
121
121
  })
122
+ Arrow.displayName = 'ForwardRef(Arrow)'
@@ -19,3 +19,5 @@ export function BoundaryElementProvider(props: BoundaryElementProviderProps): Re
19
19
 
20
20
  return <BoundaryElementContext.Provider value={value}>{children}</BoundaryElementContext.Provider>
21
21
  }
22
+
23
+ BoundaryElementProvider.displayName = 'BoundaryElementProvider'
@@ -16,3 +16,5 @@ export function ConditionalWrapper({
16
16
 
17
17
  return wrapper(children)
18
18
  }
19
+
20
+ ConditionalWrapper.displayName = 'ConditionalWrapper'
@@ -50,3 +50,4 @@ export const ElementQuery = forwardRef(function ElementQuery(
50
50
  </div>
51
51
  )
52
52
  })
53
+ ElementQuery.displayName = 'ForwardRef(ElementQuery)'
@@ -88,3 +88,4 @@ export const Layer = forwardRef(function Layer(
88
88
  </LayerProvider>
89
89
  )
90
90
  })
91
+ Layer.displayName = 'ForwardRef(Layer)'
@@ -105,3 +105,5 @@ export function LayerProvider(props: LayerProviderProps): React.ReactElement {
105
105
 
106
106
  return <LayerContext.Provider value={value}>{children}</LayerContext.Provider>
107
107
  }
108
+
109
+ LayerProvider.displayName = 'LayerProvider'
@@ -27,3 +27,5 @@ export function Portal(props: PortalProps): React.ReactPortal | null {
27
27
 
28
28
  return createPortal(children, portalElement)
29
29
  }
30
+
31
+ Portal.displayName = 'Portal'
@@ -42,6 +42,8 @@ export function PortalProvider(props: PortalProviderProps): React.ReactElement {
42
42
  return <PortalContext.Provider value={value}>{children}</PortalContext.Provider>
43
43
  }
44
44
 
45
+ PortalProvider.displayName = 'PortalProvider'
46
+
45
47
  const emptySubscribe = () => () => {}
46
48
 
47
49
  /**
@@ -33,3 +33,4 @@ export const SrOnly = forwardRef(function SrOnly(
33
33
  </Root>
34
34
  )
35
35
  })
36
+ SrOnly.displayName = 'ForwardRef(SrOnly)'
@@ -167,3 +167,4 @@ export const VirtualList = forwardRef(function VirtualList(
167
167
  </Root>
168
168
  )
169
169
  })
170
+ VirtualList.displayName = 'ForwardRef(VirtualList)'