Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/ui

Package Overview
Dependencies
Maintainers
62
Versions
433
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/ui - npm Package Compare versions

Comparing version 2.8.10 to 2.8.11-canary.0

112

dist/_chunks-cjs/getTheme_v2.js

@@ -5,19 +5,41 @@ "use strict";

avatar: {
sizes: [
{ distance: -4, size: 19 },
{ distance: -4, size: 25 },
{ distance: -8, size: 33 },
{ distance: -12, size: 49 }
],
focusRing: { offset: 1, width: 1 }
sizes: [{
distance: -4,
size: 19
}, {
distance: -4,
size: 25
}, {
distance: -8,
size: 33
}, {
distance: -12,
size: 49
}],
focusRing: {
offset: 1,
width: 1
}
},
button: {
textWeight: "medium",
border: { width: 1 },
focusRing: { offset: -1, width: 1 }
border: {
width: 1
},
focusRing: {
offset: -1,
width: 1
}
},
card: {
border: { width: 1 },
focusRing: { offset: -1, width: 1 },
shadow: { outline: 0.5 }
border: {
width: 1
},
focusRing: {
offset: -1,
width: 1
},
shadow: {
outline: 0.5
}
},

@@ -27,15 +49,34 @@ container: [320, 640, 960, 1280, 1600, 1920],

layer: {
dialog: { zOffset: 600 },
popover: { zOffset: 400 },
tooltip: { zOffset: 200 }
dialog: {
zOffset: 600
},
popover: {
zOffset: 400
},
tooltip: {
zOffset: 200
}
},
radius: [0, 1, 3, 6, 9, 12, 21],
shadow: [
null,
{ umbra: [0, 0, 0, 0], penumbra: [0, 0, 0, 0], ambient: [0, 0, 0, 0] },
{ umbra: [0, 3, 5, -2], penumbra: [0, 6, 10, 0], ambient: [0, 1, 18, 1] },
{ umbra: [0, 7, 8, -4], penumbra: [0, 12, 17, 2], ambient: [0, 5, 22, 4] },
{ umbra: [0, 9, 11, -5], penumbra: [0, 18, 28, 2], ambient: [0, 7, 34, 6] },
{ umbra: [0, 11, 15, -7], penumbra: [0, 24, 38, 3], ambient: [0, 9, 46, 8] }
],
shadow: [null, {
umbra: [0, 0, 0, 0],
penumbra: [0, 0, 0, 0],
ambient: [0, 0, 0, 0]
}, {
umbra: [0, 3, 5, -2],
penumbra: [0, 6, 10, 0],
ambient: [0, 1, 18, 1]
}, {
umbra: [0, 7, 8, -4],
penumbra: [0, 12, 17, 2],
ambient: [0, 5, 22, 4]
}, {
umbra: [0, 9, 11, -5],
penumbra: [0, 18, 28, 2],
ambient: [0, 7, 34, 6]
}, {
umbra: [0, 11, 15, -7],
penumbra: [0, 24, 38, 3],
ambient: [0, 9, 46, 8]
}],
space: [0, 4, 8, 12, 20, 32, 52, 84, 136, 220],

@@ -48,3 +89,6 @@ input: {

size: 17,
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
},

@@ -54,3 +98,6 @@ radio: {

markSize: 9,
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
},

@@ -63,9 +110,18 @@ switch: {

transitionTimingFunction: "ease-out",
focusRing: { offset: 1, width: 1 }
focusRing: {
offset: 1,
width: 1
}
},
select: {
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
},
text: {
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
}

@@ -72,0 +128,0 @@ },

const defaultThemeConfig = {
_version: 2,
avatar: {
sizes: [
{ distance: -4, size: 19 },
{ distance: -4, size: 25 },
{ distance: -8, size: 33 },
{ distance: -12, size: 49 }
],
focusRing: { offset: 1, width: 1 }
sizes: [{
distance: -4,
size: 19
}, {
distance: -4,
size: 25
}, {
distance: -8,
size: 33
}, {
distance: -12,
size: 49
}],
focusRing: {
offset: 1,
width: 1
}
},
button: {
textWeight: "medium",
border: { width: 1 },
focusRing: { offset: -1, width: 1 }
border: {
width: 1
},
focusRing: {
offset: -1,
width: 1
}
},
card: {
border: { width: 1 },
focusRing: { offset: -1, width: 1 },
shadow: { outline: 0.5 }
border: {
width: 1
},
focusRing: {
offset: -1,
width: 1
},
shadow: {
outline: 0.5
}
},

@@ -25,15 +47,34 @@ container: [320, 640, 960, 1280, 1600, 1920],

layer: {
dialog: { zOffset: 600 },
popover: { zOffset: 400 },
tooltip: { zOffset: 200 }
dialog: {
zOffset: 600
},
popover: {
zOffset: 400
},
tooltip: {
zOffset: 200
}
},
radius: [0, 1, 3, 6, 9, 12, 21],
shadow: [
null,
{ umbra: [0, 0, 0, 0], penumbra: [0, 0, 0, 0], ambient: [0, 0, 0, 0] },
{ umbra: [0, 3, 5, -2], penumbra: [0, 6, 10, 0], ambient: [0, 1, 18, 1] },
{ umbra: [0, 7, 8, -4], penumbra: [0, 12, 17, 2], ambient: [0, 5, 22, 4] },
{ umbra: [0, 9, 11, -5], penumbra: [0, 18, 28, 2], ambient: [0, 7, 34, 6] },
{ umbra: [0, 11, 15, -7], penumbra: [0, 24, 38, 3], ambient: [0, 9, 46, 8] }
],
shadow: [null, {
umbra: [0, 0, 0, 0],
penumbra: [0, 0, 0, 0],
ambient: [0, 0, 0, 0]
}, {
umbra: [0, 3, 5, -2],
penumbra: [0, 6, 10, 0],
ambient: [0, 1, 18, 1]
}, {
umbra: [0, 7, 8, -4],
penumbra: [0, 12, 17, 2],
ambient: [0, 5, 22, 4]
}, {
umbra: [0, 9, 11, -5],
penumbra: [0, 18, 28, 2],
ambient: [0, 7, 34, 6]
}, {
umbra: [0, 11, 15, -7],
penumbra: [0, 24, 38, 3],
ambient: [0, 9, 46, 8]
}],
space: [0, 4, 8, 12, 20, 32, 52, 84, 136, 220],

@@ -46,3 +87,6 @@ input: {

size: 17,
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
},

@@ -52,3 +96,6 @@ radio: {

markSize: 9,
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
},

@@ -61,9 +108,18 @@ switch: {

transitionTimingFunction: "ease-out",
focusRing: { offset: 1, width: 1 }
focusRing: {
offset: 1,
width: 1
}
},
select: {
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
},
text: {
focusRing: { offset: -1, width: 1 }
focusRing: {
offset: -1,
width: 1
}
}

@@ -70,0 +126,0 @@ },

{
"name": "@sanity/ui",
"version": "2.8.10",
"version": "2.8.11-canary.0",
"keywords": [

@@ -54,28 +54,2 @@ "sanity",

],
"scripts": {
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
"clean": "rimraf .workshop dist",
"commit": "cz",
"cypress:dev": "run-p dev cypress:open",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"dev": "run-p storybook:dev workshop:dev",
"figma:pkg:build": "cd figma && pnpm build",
"format": "prettier --write --cache --ignore-unknown .",
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
"pkg:build": "pkg build --strict",
"pkg:check": "pkg --strict",
"prepare": "husky install",
"prepack": "pnpm build",
"release": "semantic-release",
"storybook:build": "storybook build",
"storybook:dev": "storybook dev -p 6006",
"test": "jest",
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
"ts:check": "tsc",
"watch": "pkg watch --strict",
"workshop:build": "workshop build",
"workshop:dev": "workshop dev",
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
},
"commitlint": {

@@ -114,2 +88,3 @@ "extends": [

"framer-motion": "11.0.8",
"react-compiler-runtime": "19.0.0-beta-6fc168f-20241025",
"react-refractor": "^2.2.0",

@@ -126,3 +101,3 @@ "use-effect-event": "^1.0.2"

"@juggle/resize-observer": "^3.4.0",
"@sanity/pkg-utils": "^6.10.9",
"@sanity/pkg-utils": "^6.11.6",
"@sanity/prettier-config": "^1.0.2",

@@ -158,2 +133,3 @@ "@sanity/semantic-release-preset": "^5.0.0",

"@typescript-eslint/parser": "^7.18.0",
"babel-plugin-react-compiler": "beta",
"commitizen": "^4.3.0",

@@ -170,3 +146,3 @@ "cypress": "^13.13.2",

"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-compiler": "0.0.0-experimental-a97cca1-20240529",
"eslint-plugin-react-compiler": "beta",
"eslint-plugin-react-hooks": "^4.6.2",

@@ -203,3 +179,2 @@ "eslint-plugin-storybook": "^0.8.0",

},
"packageManager": "pnpm@9.7.0",
"engines": {

@@ -211,10 +186,29 @@ "node": ">=14.0.0"

},
"pnpm": {
"overrides": {
"conventional-changelog-conventionalcommits": ">= 8.0.0"
}
},
"esm.sh": {
"bundle": false
},
"scripts": {
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
"clean": "rimraf .workshop dist",
"commit": "cz",
"cypress:dev": "run-p dev cypress:open",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"dev": "run-p storybook:dev workshop:dev",
"figma:pkg:build": "cd figma && pnpm build",
"format": "prettier --write --cache --ignore-unknown .",
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
"pkg:build": "pkg build --strict",
"pkg:check": "pkg --strict",
"release": "semantic-release",
"storybook:build": "storybook build",
"storybook:dev": "storybook dev -p 6006",
"test": "jest",
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
"ts:check": "tsc",
"watch": "pkg watch --strict",
"workshop:build": "workshop build",
"workshop:dev": "workshop dev",
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc