Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corel local packages #7618

Draft
wants to merge 2 commits into
base: corel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const config = {
'sortOrder',
'status',
'group',
'textWeight',
],
},
},
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"@sanity/prettier-config": "^1.0.2",
"@sanity/test": "0.0.1-alpha.1",
"@sanity/tsdoc": "1.0.105",
"@sanity/ui": "^2.8.9",
"@sanity/ui": "file:registry/sanity-ui-2.8.9.tgz",
"@sanity/uuid": "^3.0.2",
"@types/glob": "^7.2.0",
"@types/lodash": "^4.17.7",
Expand Down Expand Up @@ -186,6 +186,8 @@
"overrides": {
"@npmcli/arborist": "^7.5.4",
"@sanity/client": "bundle-perspective",
"@sanity/icons": "file:registry/sanity-icons-3.4.0.tgz",
"@sanity/ui": "file:registry/sanity-ui-2.8.9.tgz",
"@sanity/ui@2": "$@sanity/ui",
"@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser": "$@typescript-eslint/parser"
Expand Down
3 changes: 2 additions & 1 deletion packages/sanity/src/core/components/StatusButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const StatusButton = forwardRef(function StatusButton(
...restProps
} = props
const theme = useTheme()
const toneColor = tone && theme.sanity.color.solid[tone]
const toneToUse = tone === 'prospect' || tone === 'explore' ? 'default' : tone
const toneColor = toneToUse && theme.sanity.color.solid[toneToUse]
const dotStyle = useMemo(() => ({backgroundColor: toneColor?.enabled.bg}), [toneColor])
const disabled = Boolean(disabledProp)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export const Overlay = styled(Flex)<{
$tone: Exclude<CardTone, 'inherit'>
}>(({$tone}) => {
const colorScheme = useColorSchemeValue()
const textColor = studioTheme.color[colorScheme][$tone].card.enabled.fg
const backgroundColor = rgba(studioTheme.color[colorScheme][$tone].card.enabled.bg, 0.8)
const toneToUse = $tone === 'prospect' || $tone === 'explore' ? 'default' : $tone
const textColor = studioTheme.color[colorScheme][toneToUse].card.enabled.fg
const backgroundColor = rgba(studioTheme.color[colorScheme][toneToUse].card.enabled.bg, 0.8)

return css`
position: absolute;
Expand Down
188 changes: 88 additions & 100 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Binary file added registry/sanity-icons-3.4.0.tgz
Binary file not shown.
Binary file added registry/sanity-ui-2.8.9.tgz
Binary file not shown.
Loading