@neo-ui-kit/react 1.2.0 → 1.2.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/README.md
CHANGED
|
@@ -25,7 +25,7 @@ import "@neo-ui-kit/react/styles.css";
|
|
|
25
25
|
To test repository changes before publishing, run `npm run package` from the repository root and install the resulting archive in a separate application:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
npm install /path/to/adui/release/neo-ui-kit-react-1.2.
|
|
28
|
+
npm install /path/to/adui/release/neo-ui-kit-react-1.2.1.tgz
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Maintainers publish new versions from `Pro100Dimka/adui` using the `release.yml` GitHub Actions workflow, a matching `v<version>` tag, and the `npm-publication` environment. npm trusts its OIDC identity; no `NPM_TOKEN` is required. The workflow checks the project and packed consumer before publishing the tested archive. Published `1.0.0` cannot be overwritten: code and README changes in npm require a new package version. See the [repository release instructions](https://github.com/Pro100Dimka/adui#npm-пакет).
|
|
@@ -182,6 +182,10 @@ import { ThemeProvider, useMotion } from "@neo-ui-kit/react/core";
|
|
|
182
182
|
|
|
183
183
|
Canvas-rendered volume knob. Drag near the edge to rotate, drag from the center to move linearly, click the outer scale to jump. Wheel and arrow keys change the value, Shift gives a fine step, PageUp/PageDown change by 10, Home/End set 0/100, Escape cancels a drag, double-click resets. `onValueChange` fires while adjusting, `onValueCommit` after the gesture. `readOnly` turns it into a gauge.
|
|
184
184
|
|
|
185
|
+
## 1.2.1 release notes
|
|
186
|
+
|
|
187
|
+
- A person's photo in the host `Avatar` (and `FilePicker variant="avatar"`) keeps its own colours in every theme: only the seal's rings, crown and label take the theme's hue. Before, the whole seal was hue-rotated, the face with it, so a photo looked right only in the ruby theme.
|
|
188
|
+
|
|
185
189
|
## 1.2.0 release notes
|
|
186
190
|
|
|
187
191
|
- `QuantumBackground` takes `threeUrl`, the base address of a three.js 0.182 copy (the folder with `build/` and `examples/jsm/`), so the scene can work offline and without a third-party CDN. A relative address keeps the scene's import map — and its CSP hash — the same wherever the app runs. The default stays `quantumBackgroundThreeUrl` (unpkg).
|
|
@@ -154,11 +154,15 @@ var toLayers = (seal) => {
|
|
|
154
154
|
const layers2 = [];
|
|
155
155
|
const paint = (node) => {
|
|
156
156
|
const top = layers2[layers2.length - 1];
|
|
157
|
-
if (top && top.spin === void 0) top.nodes.push(node);
|
|
157
|
+
if (top && top.spin === void 0 && !top.photo) top.nodes.push(node);
|
|
158
158
|
else layers2.push({ nodes: [node] });
|
|
159
159
|
};
|
|
160
160
|
for (const child of seal.children ?? []) {
|
|
161
161
|
if (typeof child === "string") continue;
|
|
162
|
+
if (child.props?.className === "host-emblem__photo") {
|
|
163
|
+
layers2.push({ nodes: [child], photo: true });
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
162
166
|
if (isOrbit(child)) {
|
|
163
167
|
layers2.push({ nodes: [still(child)], spin: spinOf(child) });
|
|
164
168
|
continue;
|
|
@@ -187,6 +191,7 @@ function HostSeal({ photo, name }) {
|
|
|
187
191
|
...root,
|
|
188
192
|
key: i,
|
|
189
193
|
"data-host-spin": layer.spin,
|
|
194
|
+
"data-host-photo": layer.photo ? "" : void 0,
|
|
190
195
|
style: layer.spin === void 0 ? void 0 : {
|
|
191
196
|
animationDuration: `${1 / Math.abs(layer.spin)}s`,
|
|
192
197
|
animationDirection: layer.spin < 0 ? "reverse" : "normal"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
transform: rotate(180deg);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/* Vector artwork is drawn in ruby; it turns to the theme hue. */
|
|
77
|
-
:is(.ad-illustration, .ad-brand-mark, .ad-host-seal) svg {
|
|
76
|
+
/* Vector artwork is drawn in ruby; it turns to the theme hue. A person's photo keeps its colours. */
|
|
77
|
+
:is(.ad-illustration, .ad-brand-mark, .ad-host-seal) svg:not([data-host-photo]) {
|
|
78
78
|
filter: hue-rotate(var(--ad-hue-shift, 0deg));
|
|
79
79
|
}
|
package/dist/forms.js
CHANGED
package/dist/index.js
CHANGED