@sanity/ui 1.0.0 → 1.0.1
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.esm.js +1 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +10 -8
- package/src/components/autocomplete/__workshop__/constrainedHeight.tsx +2 -2
- package/src/global.ts +6 -0
- package/src/primitives/textInput/textInput.tsx +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -24,24 +24,25 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "run-s clean build:pkg check:pkg",
|
|
26
26
|
"build:pkg": "pkg build --strict",
|
|
27
|
-
"build:workshop": "node scripts/build",
|
|
28
27
|
"check:pkg": "pkg --strict",
|
|
29
28
|
"check:types": "tsc",
|
|
30
29
|
"clean": "rimraf .workshop dist",
|
|
31
30
|
"commit": "cz",
|
|
31
|
+
"cypress:dev": "run-p dev cypress:open",
|
|
32
32
|
"cypress:open": "cypress open",
|
|
33
33
|
"cypress:run": "cypress run",
|
|
34
|
-
"dev": "
|
|
35
|
-
"dev:cypress": "run-p dev cypress:open",
|
|
34
|
+
"dev": "run-s workshop:dev",
|
|
36
35
|
"format": "prettier --write --cache --ignore-unknown .",
|
|
37
36
|
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx --quiet",
|
|
38
37
|
"prepare": "husky install",
|
|
39
38
|
"prepublishOnly": "pnpm build",
|
|
40
39
|
"release": "semantic-release",
|
|
41
|
-
"start:workshop": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? .workshop/dist",
|
|
42
40
|
"test": "jest",
|
|
43
|
-
"test:browser": "start-server-and-test 'run-s build:
|
|
44
|
-
"watch": "pkg watch --strict"
|
|
41
|
+
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
|
|
42
|
+
"watch": "pkg watch --strict",
|
|
43
|
+
"workshop:build": "node -r esbuild-register -r tsconfig-paths/register scripts/build",
|
|
44
|
+
"workshop:dev": "node -r esbuild-register -r tsconfig-paths/register scripts/dev",
|
|
45
|
+
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@floating-ui/react-dom": "^1.0.0",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"@juggle/resize-observer": "^3.4.0",
|
|
62
63
|
"@sanity/pkg-utils": "^1.18.0",
|
|
63
64
|
"@sanity/semantic-release-preset": "^2.0.2",
|
|
64
|
-
"@sanity/ui-workshop": "1.0.
|
|
65
|
+
"@sanity/ui-workshop": "^1.0.1",
|
|
65
66
|
"@testing-library/dom": "^8.19.0",
|
|
66
67
|
"@testing-library/jest-dom": "^5.16.5",
|
|
67
68
|
"@testing-library/react": "^13.4.0",
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"semantic-release": "^19.0.5",
|
|
106
107
|
"start-server-and-test": "^1.14.0",
|
|
107
108
|
"styled-components": "^5.3.6",
|
|
109
|
+
"tsconfig-paths": "^4.1.0",
|
|
108
110
|
"typescript": "^4.9.3"
|
|
109
111
|
},
|
|
110
112
|
"peerDependencies": {
|
|
@@ -95,7 +95,8 @@ function ConstrainedHeightExampleField({id, label}: {id: string; label: string})
|
|
|
95
95
|
constrainSize
|
|
96
96
|
matchReferenceWidth
|
|
97
97
|
open
|
|
98
|
-
|
|
98
|
+
overflow="auto"
|
|
99
|
+
placement="bottom-start"
|
|
99
100
|
radius={1}
|
|
100
101
|
ref={popoverRef}
|
|
101
102
|
referenceElement={inputElement}
|
|
@@ -118,7 +119,6 @@ function ConstrainedHeightExampleField({id, label}: {id: string; label: string})
|
|
|
118
119
|
openButton
|
|
119
120
|
options={options}
|
|
120
121
|
placeholder="Search"
|
|
121
|
-
// popover={{allowedAutoPlacements: ['bottom-start', 'top-start']}}
|
|
122
122
|
radius={1}
|
|
123
123
|
renderOption={renderOption}
|
|
124
124
|
renderPopover={renderPopover}
|
package/src/global.ts
ADDED