@sanity/ui 2.0.10 → 2.0.11
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.mts +2777 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +129 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6852 -0
- package/dist/index.mjs.map +1 -0
- package/dist/theme.d.mts +1506 -0
- package/dist/theme.mjs +3348 -0
- package/dist/theme.mjs.map +1 -0
- package/package.json +37 -38
- package/src/core/components/autocomplete/autocomplete.styles.tsx +1 -1
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +1 -1
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
- package/src/core/components/dialog/dialog.tsx +1 -1
- package/src/core/components/hotkeys/hotkeys.tsx +1 -1
- package/src/core/components/menu/menu.tsx +1 -1
- package/src/core/components/menu/menuDivider.ts +1 -1
- package/src/core/components/skeleton/skeleton.tsx +1 -1
- package/src/core/components/skeleton/textSkeleton.tsx +1 -1
- package/src/core/components/tab/tab.tsx +1 -1
- package/src/core/components/tab/tabList.tsx +1 -1
- package/src/core/components/toast/toast.tsx +1 -1
- package/src/core/components/toast/toastProvider.tsx +1 -1
- package/src/core/components/tree/treeItem.tsx +1 -1
- package/src/core/primitives/_selectable/selectable.tsx +1 -1
- package/src/core/primitives/avatar/avatar.tsx +1 -1
- package/src/core/primitives/avatar/avatarCounter.tsx +1 -1
- package/src/core/primitives/avatar/avatarStack.tsx +1 -1
- package/src/core/primitives/badge/badge.tsx +1 -1
- package/src/core/primitives/box/box.tsx +1 -1
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
- package/src/core/primitives/button/button.tsx +1 -1
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
- package/src/core/primitives/card/card.tsx +1 -1
- package/src/core/primitives/checkbox/checkbox.tsx +1 -1
- package/src/core/primitives/code/code.tsx +1 -1
- package/src/core/primitives/container/container.tsx +1 -1
- package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
- package/src/core/primitives/flex/flex.tsx +1 -1
- package/src/core/primitives/grid/grid.tsx +1 -1
- package/src/core/primitives/heading/heading.tsx +1 -1
- package/src/core/primitives/inline/inline.tsx +1 -1
- package/src/core/primitives/kbd/kbd.tsx +1 -1
- package/src/core/primitives/label/label.tsx +1 -1
- package/src/core/primitives/popover/popoverCard.tsx +1 -1
- package/src/core/primitives/radio/radio.tsx +1 -1
- package/src/core/primitives/select/select.tsx +1 -1
- package/src/core/primitives/spinner/spinner.tsx +1 -1
- package/src/core/primitives/stack/stack.tsx +1 -1
- package/src/core/primitives/switch/switch.tsx +1 -1
- package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
- package/src/core/primitives/text/text.tsx +1 -1
- package/src/core/primitives/textArea/textArea.tsx +1 -1
- package/src/core/primitives/textInput/textInput.tsx +1 -1
- package/src/core/primitives/tooltip/tooltip.tsx +1 -1
- package/src/core/primitives/tooltip/tooltipCard.tsx +1 -1
- package/src/core/utils/arrow/arrow.tsx +1 -1
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
- package/src/core/utils/layer/layer.tsx +1 -1
- package/src/core/utils/srOnly/srOnly.tsx +1 -1
- package/src/core/utils/virtualList/virtualList.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/sanity-io/ui/issues"
|
|
15
15
|
},
|
|
16
|
+
"type": "commonjs",
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
19
|
"url": "git+https://github.com/sanity-io/ui.git"
|
|
@@ -22,18 +23,16 @@
|
|
|
22
23
|
"sideEffects": false,
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
|
-
"types": "./dist/index.d.ts",
|
|
26
26
|
"source": "./exports/index.ts",
|
|
27
|
-
"import": "./dist/index.
|
|
27
|
+
"import": "./dist/index.mjs",
|
|
28
28
|
"require": "./dist/index.js",
|
|
29
|
-
"default": "./dist/index.
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
30
|
},
|
|
31
31
|
"./theme": {
|
|
32
|
-
"types": "./dist/theme.d.ts",
|
|
33
32
|
"source": "./exports/theme.ts",
|
|
34
|
-
"import": "./dist/theme.
|
|
33
|
+
"import": "./dist/theme.mjs",
|
|
35
34
|
"require": "./dist/theme.js",
|
|
36
|
-
"default": "./dist/theme.
|
|
35
|
+
"default": "./dist/theme.js"
|
|
37
36
|
},
|
|
38
37
|
"./package.json": "./package.json"
|
|
39
38
|
},
|
|
@@ -115,45 +114,45 @@
|
|
|
115
114
|
"react-refractor": "^2.1.7"
|
|
116
115
|
},
|
|
117
116
|
"devDependencies": {
|
|
118
|
-
"@babel/core": "^7.24.
|
|
119
|
-
"@babel/preset-env": "^7.24.
|
|
120
|
-
"@babel/preset-react": "^7.
|
|
121
|
-
"@babel/preset-typescript": "^7.
|
|
122
|
-
"@commitlint/cli": "^19.1
|
|
117
|
+
"@babel/core": "^7.24.1",
|
|
118
|
+
"@babel/preset-env": "^7.24.1",
|
|
119
|
+
"@babel/preset-react": "^7.24.1",
|
|
120
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
121
|
+
"@commitlint/cli": "^19.2.1",
|
|
123
122
|
"@commitlint/config-conventional": "^19.1.0",
|
|
124
123
|
"@juggle/resize-observer": "^3.4.0",
|
|
125
|
-
"@sanity/pkg-utils": "^5.
|
|
124
|
+
"@sanity/pkg-utils": "^5.1.3",
|
|
126
125
|
"@sanity/semantic-release-preset": "^4.1.7",
|
|
127
126
|
"@sanity/ui-workshop": "^2.0.6",
|
|
128
|
-
"@storybook/addon-a11y": "^
|
|
129
|
-
"@storybook/addon-docs": "^
|
|
130
|
-
"@storybook/addon-essentials": "^
|
|
131
|
-
"@storybook/addon-interactions": "^
|
|
132
|
-
"@storybook/addon-links": "^
|
|
133
|
-
"@storybook/addon-storysource": "^
|
|
134
|
-
"@storybook/addon-themes": "^
|
|
135
|
-
"@storybook/blocks": "^
|
|
127
|
+
"@storybook/addon-a11y": "^8.0.2",
|
|
128
|
+
"@storybook/addon-docs": "^8.0.2",
|
|
129
|
+
"@storybook/addon-essentials": "^8.0.2",
|
|
130
|
+
"@storybook/addon-interactions": "^8.0.2",
|
|
131
|
+
"@storybook/addon-links": "^8.0.2",
|
|
132
|
+
"@storybook/addon-storysource": "^8.0.2",
|
|
133
|
+
"@storybook/addon-themes": "^8.0.2",
|
|
134
|
+
"@storybook/blocks": "^8.0.2",
|
|
136
135
|
"@storybook/jest": "^0.2.3",
|
|
137
|
-
"@storybook/manager-api": "^
|
|
138
|
-
"@storybook/react": "^
|
|
139
|
-
"@storybook/react-vite": "^
|
|
136
|
+
"@storybook/manager-api": "^8.0.2",
|
|
137
|
+
"@storybook/react": "^8.0.2",
|
|
138
|
+
"@storybook/react-vite": "^8.0.2",
|
|
140
139
|
"@storybook/testing-library": "^0.2.2",
|
|
141
|
-
"@storybook/theming": "^
|
|
140
|
+
"@storybook/theming": "^8.0.2",
|
|
142
141
|
"@testing-library/dom": "^9.3.4",
|
|
143
142
|
"@testing-library/jest-dom": "^5.17.0",
|
|
144
|
-
"@testing-library/react": "^14.2.
|
|
143
|
+
"@testing-library/react": "^14.2.2",
|
|
145
144
|
"@types/jest": "^29.5.12",
|
|
146
145
|
"@types/jest-axe": "^3.5.9",
|
|
147
146
|
"@types/node": "^20.5.9",
|
|
148
|
-
"@types/react": "^18.2.
|
|
149
|
-
"@types/react-dom": "^18.2.
|
|
147
|
+
"@types/react": "^18.2.67",
|
|
148
|
+
"@types/react-dom": "^18.2.22",
|
|
150
149
|
"@types/react-is": "^18.2.4",
|
|
151
150
|
"@types/refractor": "^3.4.1",
|
|
152
151
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
153
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
154
|
-
"@typescript-eslint/parser": "^7.
|
|
152
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
153
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
155
154
|
"commitizen": "^4.3.0",
|
|
156
|
-
"cypress": "^13.
|
|
155
|
+
"cypress": "^13.7.0",
|
|
157
156
|
"cypress-real-events": "^1.12.0",
|
|
158
157
|
"cz-conventional-changelog": "^3.3.0",
|
|
159
158
|
"eslint": "^8.57.0",
|
|
@@ -162,7 +161,7 @@
|
|
|
162
161
|
"eslint-plugin-import": "^2.29.1",
|
|
163
162
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
164
163
|
"eslint-plugin-prettier": "^5.1.3",
|
|
165
|
-
"eslint-plugin-react": "^7.34.
|
|
164
|
+
"eslint-plugin-react": "^7.34.1",
|
|
166
165
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
167
166
|
"eslint-plugin-storybook": "^0.8.0",
|
|
168
167
|
"http-server": "^14.1.1",
|
|
@@ -180,14 +179,14 @@
|
|
|
180
179
|
"react-is": "^18.2.0",
|
|
181
180
|
"refractor": "^4.8.1",
|
|
182
181
|
"rimraf": "^5.0.1",
|
|
183
|
-
"semantic-release": "^23.0.
|
|
182
|
+
"semantic-release": "^23.0.5",
|
|
184
183
|
"start-server-and-test": "^2.0.3",
|
|
185
|
-
"storybook": "^
|
|
184
|
+
"storybook": "^8.0.2",
|
|
186
185
|
"styled-components": "^6.1.8",
|
|
187
186
|
"tsconfig-paths": "^4.2.0",
|
|
188
|
-
"typescript": "
|
|
189
|
-
"vite": "^5.
|
|
190
|
-
"vite-tsconfig-paths": "^4.3.
|
|
187
|
+
"typescript": "5.4.2",
|
|
188
|
+
"vite": "^5.2.0",
|
|
189
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
191
190
|
},
|
|
192
191
|
"peerDependencies": {
|
|
193
192
|
"react": "^18",
|
|
@@ -195,7 +194,7 @@
|
|
|
195
194
|
"react-is": "^18",
|
|
196
195
|
"styled-components": "^5.2 || ^6"
|
|
197
196
|
},
|
|
198
|
-
"packageManager": "pnpm@8.15.
|
|
197
|
+
"packageManager": "pnpm@8.15.5",
|
|
199
198
|
"engines": {
|
|
200
199
|
"node": ">=14.0.0"
|
|
201
200
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {useCallback, useState} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {Box, Button, Card, Flex} from '../../../primitives'
|
|
4
4
|
import {BoundaryElementProvider, PortalProvider} from '../../../utils'
|
|
5
5
|
import {Menu, MenuButton, MenuItem} from '../../menu'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {CloseIcon} from '@sanity/icons'
|
|
2
2
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
3
3
|
import {forwardRef, useCallback, useEffect, useRef, useState} from 'react'
|
|
4
|
-
import styled from 'styled-components'
|
|
4
|
+
import {styled} from 'styled-components'
|
|
5
5
|
import {
|
|
6
6
|
containsOrEqualsElement,
|
|
7
7
|
focusFirstDescendant,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef, useCallback, useEffect, useMemo} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {useClickOutside, useForwardedRef, useGlobalKeyDown} from '../../hooks'
|
|
4
4
|
import {Box, Stack} from '../../primitives'
|
|
5
5
|
import {ResponsivePaddingProps} from '../../primitives/types'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef, useEffect, useState} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {useArrayProp} from '../../hooks'
|
|
4
4
|
import {Box} from '../../primitives'
|
|
5
5
|
import {BoxProps, ResponsiveRadiusProps} from '../../primitives'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {ThemeFontKey, getTheme_v2} from '@sanity/ui/theme'
|
|
2
2
|
import {forwardRef} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {useArrayProp} from '../../hooks'
|
|
5
5
|
import {ThemeProps, _responsive} from '../../styles'
|
|
6
6
|
import {Skeleton, SkeletonProps} from './skeleton'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef, useCallback, useEffect, useRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {useForwardedRef} from '../../hooks'
|
|
4
4
|
import {Button} from '../../primitives'
|
|
5
5
|
import {ButtonTone} from '../../types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {CloseIcon} from '@sanity/icons'
|
|
2
2
|
import {ThemeColorToneKey} from '@sanity/ui/theme'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY} from '../../constants'
|
|
5
5
|
import {Box, Button, Card, Flex, Stack, Text} from '../../primitives'
|
|
6
6
|
import type {ButtonTone} from '../../types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {AnimatePresence, motion, type Variants} from 'framer-motion'
|
|
2
2
|
import {useMemo, useRef, useState, startTransition, useEffect} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY} from '../../constants'
|
|
5
5
|
import {useMounted} from '../../hooks/useMounted'
|
|
6
6
|
import {usePrefersReducedMotion} from '../../hooks/usePrefersReducedMotion'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {ToggleArrowRightIcon} from '@sanity/icons'
|
|
2
2
|
import {ThemeFontWeightKey} from '@sanity/ui/theme'
|
|
3
3
|
import {createElement, memo, useCallback, useEffect, useId, useMemo, useRef} from 'react'
|
|
4
|
-
import styled from 'styled-components'
|
|
4
|
+
import {styled} from 'styled-components'
|
|
5
5
|
import {Box, BoxProps, Flex, Text} from '../../primitives'
|
|
6
6
|
import {
|
|
7
7
|
treeItemRootStyle,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
1
|
+
import {styled} from 'styled-components'
|
|
2
2
|
import {responsiveRadiusStyle, ResponsiveRadiusStyleProps} from '../../styles/radius'
|
|
3
3
|
import {Box} from '../box'
|
|
4
4
|
import {selectableBaseStyle, selectableColorStyle, SelectableStyleProps} from './style'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
|
|
2
2
|
import {forwardRef, useCallback, useEffect, useId, useMemo, useState} from 'react'
|
|
3
3
|
import ReactIs from 'react-is'
|
|
4
|
-
import styled from 'styled-components'
|
|
4
|
+
import {styled} from 'styled-components'
|
|
5
5
|
import {useArrayProp} from '../../hooks'
|
|
6
6
|
import {useTheme_v2} from '../../theme'
|
|
7
7
|
import {AvatarPosition, AvatarSize, AvatarStatus} from '../../types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {getTheme_v2} from '@sanity/ui/theme'
|
|
2
2
|
import {forwardRef, useMemo} from 'react'
|
|
3
|
-
import styled,
|
|
3
|
+
import {styled, css} from 'styled-components'
|
|
4
4
|
import {EMPTY_RECORD} from '../../constants'
|
|
5
5
|
import {useArrayProp} from '../../hooks'
|
|
6
6
|
import {rem, _responsive, ThemeProps} from '../../styles'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {getTheme_v2} from '@sanity/ui/theme'
|
|
2
2
|
import {cloneElement, forwardRef} from 'react'
|
|
3
|
-
import styled,
|
|
3
|
+
import {styled, css} from 'styled-components'
|
|
4
4
|
import {EMPTY_RECORD} from '../../constants'
|
|
5
5
|
import {useArrayProp} from '../../hooks'
|
|
6
6
|
import {rem, _responsive, ThemeProps} from '../../styles'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {useArrayProp} from '../../hooks'
|
|
4
4
|
import {responsiveRadiusStyle, ResponsiveRadiusStyleProps} from '../../styles/internal'
|
|
5
5
|
import {BadgeMode, BadgeTone} from '../../types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {createElement, forwardRef, isValidElement, useMemo} from 'react'
|
|
2
2
|
import {isValidElementType} from 'react-is'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {useArrayProp} from '../../hooks'
|
|
5
5
|
import {ThemeProps} from '../../styles'
|
|
6
6
|
import {responsiveRadiusStyle, ResponsiveRadiusStyleProps} from '../../styles/internal'
|
|
@@ -2,7 +2,7 @@ import {EditIcon, PublishIcon} from '@sanity/icons'
|
|
|
2
2
|
import {Box, Card, Container, Flex, Inline, Stack, Text, ThemeProps, useRootTheme} from '@sanity/ui'
|
|
3
3
|
import {ThemeColorStateToneKey, getTheme_v2} from '@sanity/ui/theme'
|
|
4
4
|
import {useBoolean} from '@sanity/ui-workshop'
|
|
5
|
-
import styled,
|
|
5
|
+
import {styled, css} from 'styled-components'
|
|
6
6
|
|
|
7
7
|
const TextWithTone = styled(Text)<{$tone: ThemeColorStateToneKey}>((
|
|
8
8
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
2
2
|
import {forwardRef} from 'react'
|
|
3
3
|
import {isValidElementType} from 'react-is'
|
|
4
|
-
import styled from 'styled-components'
|
|
4
|
+
import {styled} from 'styled-components'
|
|
5
5
|
import {useArrayProp} from '../../hooks'
|
|
6
6
|
import {
|
|
7
7
|
responsiveBorderStyle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {CheckmarkIcon, RemoveIcon} from '@sanity/icons'
|
|
2
2
|
import {forwardRef, useEffect} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {useForwardedRef, useCustomValidity} from '../../hooks'
|
|
5
5
|
import {checkboxBaseStyles, inputElementStyles} from './styles'
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import {forwardRef} from 'react'
|
|
3
3
|
import Refractor from 'react-refractor'
|
|
4
|
-
import styled from 'styled-components'
|
|
4
|
+
import {styled} from 'styled-components'
|
|
5
5
|
import {useArrayProp} from '../../hooks'
|
|
6
6
|
import {responsiveCodeFontStyle, ResponsiveFontStyleProps} from '../../styles/internal'
|
|
7
7
|
import {codeBaseStyle} from './styles'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Card, Code, Flex} from '@sanity/ui'
|
|
2
2
|
import {useSelect} from '@sanity/ui-workshop'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {WORKSHOP_FLEX_DIRECTION_OPTIONS} from '../../../__workshop__/constants'
|
|
5
5
|
|
|
6
6
|
const DebugCard = styled(Card)`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {useArrayProp} from '../../hooks'
|
|
4
4
|
import {responsiveGridStyle, ResponsiveGridStyleProps} from '../../styles/internal'
|
|
5
5
|
import {Box, BoxProps} from '../box'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef} from 'react'
|
|
2
|
-
import styled,
|
|
2
|
+
import {styled, css} from 'styled-components'
|
|
3
3
|
import {useArrayProp} from '../../hooks'
|
|
4
4
|
import {responsiveRadiusStyle, ResponsiveRadiusStyleProps} from '../../styles/internal'
|
|
5
5
|
import {Radius} from '../../types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {ThemeFontWeightKey} from '@sanity/ui/theme'
|
|
2
2
|
import {forwardRef} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {useArrayProp} from '../../hooks'
|
|
5
5
|
import {responsiveLabelFont, responsiveTextAlignStyle} from '../../styles/internal'
|
|
6
6
|
import {TextAlign} from '../../types'
|
|
@@ -2,7 +2,7 @@ import {Strategy} from '@floating-ui/react-dom'
|
|
|
2
2
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
3
3
|
import {MotionProps, motion} from 'framer-motion'
|
|
4
4
|
import React, {CSSProperties, forwardRef, memo, useMemo} from 'react'
|
|
5
|
-
import styled from 'styled-components'
|
|
5
|
+
import {styled} from 'styled-components'
|
|
6
6
|
import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY, POPOVER_MOTION_PROPS} from '../../constants'
|
|
7
7
|
import {BoxOverflow, CardTone, Placement, PopoverMargins, Radius} from '../../types'
|
|
8
8
|
import {Arrow, useLayer} from '../../utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {ChevronDownIcon} from '@sanity/icons'
|
|
2
2
|
import {forwardRef} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {useForwardedRef, useCustomValidity, useArrayProp} from '../../hooks'
|
|
5
5
|
import {Radius} from '../../types'
|
|
6
6
|
import {Box} from '../box'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {forwardRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {useArrayProp} from '../../hooks'
|
|
4
4
|
import {Box, BoxProps} from '../box'
|
|
5
5
|
import {stackBaseStyle, responsiveStackSpaceStyle, ResponsiveStackSpaceStyleProps} from './styles'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {Flex, Text, ThemeProps} from '@sanity/ui'
|
|
2
2
|
import {ThemeColorAvatarColorKey, ThemeColorSpotKey, getTheme_v2} from '@sanity/ui/theme'
|
|
3
3
|
import {useSelect} from '@sanity/ui-workshop'
|
|
4
|
-
import styled,
|
|
4
|
+
import {styled, css} from 'styled-components'
|
|
5
5
|
import {WORKSHOP_SPOT_COLOR_OPTIONS} from '../../../__workshop__/constants'
|
|
6
6
|
|
|
7
7
|
const ColoredText = styled(Text)<{$color?: ThemeColorSpotKey}>((
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {ThemeFontWeightKey} from '@sanity/ui/theme'
|
|
2
2
|
import {forwardRef} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
3
|
+
import {styled} from 'styled-components'
|
|
4
4
|
import {useForwardedRef, useCustomValidity, useArrayProp} from '../../hooks'
|
|
5
5
|
import {
|
|
6
6
|
responsiveInputPaddingStyle,
|
|
@@ -2,7 +2,7 @@ import {CloseIcon} from '@sanity/icons'
|
|
|
2
2
|
import {ThemeFontWeightKey} from '@sanity/ui/theme'
|
|
3
3
|
import {createElement, forwardRef, isValidElement, useCallback, useMemo} from 'react'
|
|
4
4
|
import {isValidElementType} from 'react-is'
|
|
5
|
-
import styled from 'styled-components'
|
|
5
|
+
import {styled} from 'styled-components'
|
|
6
6
|
import {EMPTY_RECORD} from '../../constants'
|
|
7
7
|
import {useArrayProp, useForwardedRef, useCustomValidity} from '../../hooks'
|
|
8
8
|
import {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ForwardedRef,
|
|
23
23
|
useId,
|
|
24
24
|
} from 'react'
|
|
25
|
-
import styled from 'styled-components'
|
|
25
|
+
import {styled} from 'styled-components'
|
|
26
26
|
import {useArrayProp, useForwardedRef, usePrefersReducedMotion} from '../../hooks'
|
|
27
27
|
import {useDelayedState} from '../../hooks/useDelayedState'
|
|
28
28
|
import {origin} from '../../middleware/origin'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
2
2
|
import {MotionProps, motion} from 'framer-motion'
|
|
3
3
|
import React, {CSSProperties, forwardRef, memo, useMemo} from 'react'
|
|
4
|
-
import styled from 'styled-components'
|
|
4
|
+
import {styled} from 'styled-components'
|
|
5
5
|
import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY, POPOVER_MOTION_PROPS} from '../../constants'
|
|
6
6
|
import {Placement, Radius} from '../../types'
|
|
7
7
|
import {Arrow} from '../../utils'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {ForwardedRef, HTMLProps, ReactElement, forwardRef} from 'react'
|
|
2
|
-
import styled,
|
|
2
|
+
import {styled, css} from 'styled-components'
|
|
3
3
|
import {useTheme_v2} from '../../theme'
|
|
4
4
|
import {Point, compileCommands, getRoundedCommands} from './cmds'
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {FocusEvent, forwardRef, useCallback, useEffect, useRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
2
|
+
import {styled} from 'styled-components'
|
|
3
3
|
import {EMPTY_RECORD} from '../../constants'
|
|
4
4
|
import {containsOrEqualsElement, isHTMLElement} from '../../helpers'
|
|
5
5
|
import {useForwardedRef} from '../../hooks'
|