@inspectorhub/field-ui 0.2.1 → 0.4.0
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/README.md +114 -21
- package/dist/{data-source-B_ogNIa3.d.ts → data-source-IaWUdrIc.d.ts} +53 -7
- package/dist/index.d.ts +86 -6
- package/dist/index.js +21358 -7
- package/dist/theme.css +12 -2
- package/package.json +6 -1
package/dist/theme.css
CHANGED
|
@@ -275,8 +275,8 @@ html[data-color-scheme="field"] {
|
|
|
275
275
|
text-transform: uppercase;
|
|
276
276
|
letter-spacing: 0.18em;
|
|
277
277
|
/* fg-3, not fg-4. This is a section LABEL — the sidebar's "Workspace" heading
|
|
278
|
-
— so it is text, and fg-4 is the decoration tier (chevrons, dividers
|
|
279
|
-
|
|
278
|
+
— so it is text, and fg-4 is the decoration tier (chevrons, dividers):
|
|
279
|
+
2.56:1 on a light card and 3.07:1 on a dark one. fg-3 is
|
|
280
280
|
4.76 / 5.71 / 12.02. The rule was invisible to `lint:contrast` because the
|
|
281
281
|
gate read Tailwind class strings only and this colour is set in CSS; that is
|
|
282
282
|
now covered by `cssTextRules`. */
|
|
@@ -320,6 +320,16 @@ html[data-color-scheme="field"] {
|
|
|
320
320
|
opacity: 0.55;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
+
/* An explicit placeholder colour. Without one the placeholder takes whatever the host's base layer or the WebView
|
|
324
|
+
decides, and on an Android WebView it was not visible at all. A placeholder is text the person has to read, so it
|
|
325
|
+
is the fg-3 text tier (4.76:1 on a light card), not fg-4: that is the decoration tier (2.56:1). opacity: 1 stops
|
|
326
|
+
a browser default from dimming the colour a second time. */
|
|
327
|
+
.ih-input::placeholder,
|
|
328
|
+
textarea::placeholder {
|
|
329
|
+
color: var(--ih-fg-3);
|
|
330
|
+
opacity: 1;
|
|
331
|
+
}
|
|
332
|
+
|
|
323
333
|
.ih-kbd {
|
|
324
334
|
display: inline-flex;
|
|
325
335
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inspectorhub/field-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The OpenInspection field inspection editor as an embeddable React package.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -41,5 +41,10 @@
|
|
|
41
41
|
"y-indexeddb": "^9.0.0",
|
|
42
42
|
"y-protocols": "^1.0.0",
|
|
43
43
|
"yjs": "^13.6.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependenciesMeta": {
|
|
46
|
+
"y-indexeddb": {
|
|
47
|
+
"optional": true
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|