@neo-ui-kit/react 1.4.2 → 1.4.4
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 +1 -1
- package/dist/components/artwork/Spectrum/styles.css +4 -0
- package/dist/index.js +7 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ import "@neo-ui-kit/react/styles.css";
|
|
|
65
65
|
To test repository changes before publishing, run `npm run package` from the repository root and install the resulting archive in a separate application:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
npm install /path/to/adui/release/neo-ui-kit-react-1.4.
|
|
68
|
+
npm install /path/to/adui/release/neo-ui-kit-react-1.4.4.tgz
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
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-пакет).
|
package/dist/index.js
CHANGED
|
@@ -5065,22 +5065,14 @@ function Segmented(p) {
|
|
|
5065
5065
|
}
|
|
5066
5066
|
function Bars(p) {
|
|
5067
5067
|
const ref = useRef24(null);
|
|
5068
|
-
const
|
|
5068
|
+
const bars = useRef24(null);
|
|
5069
5069
|
const id = useSvgId();
|
|
5070
5070
|
usePauseOffscreen(ref);
|
|
5071
5071
|
useDecoration(ref, (time) => {
|
|
5072
5072
|
if (!ref.current) return;
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
(
|
|
5076
|
-
);
|
|
5077
|
-
layers.current.forEach((rects, i) => {
|
|
5078
|
-
const height = barHeight(i, time);
|
|
5079
|
-
rects.forEach((rect) => {
|
|
5080
|
-
const grow = Number(rect.dataset.grow ?? 0);
|
|
5081
|
-
rect.setAttribute("y", (134 - height - grow).toFixed(2));
|
|
5082
|
-
rect.setAttribute("height", (height + grow).toFixed(2));
|
|
5083
|
-
});
|
|
5073
|
+
bars.current ??= Array.from(ref.current.querySelectorAll("[data-bar]"));
|
|
5074
|
+
bars.current.forEach((bar, i) => {
|
|
5075
|
+
bar.style.transform = `scaleY(${(barHeight(i, time) / 100).toFixed(4)})`;
|
|
5084
5076
|
});
|
|
5085
5077
|
});
|
|
5086
5078
|
return /* @__PURE__ */ jsxs34(
|
|
@@ -5112,18 +5104,17 @@ function Bars(p) {
|
|
|
5112
5104
|
HALO.map(([grow, halo]) => /* @__PURE__ */ jsx42(
|
|
5113
5105
|
"rect",
|
|
5114
5106
|
{
|
|
5115
|
-
"data-grow": grow,
|
|
5116
5107
|
x: x - grow,
|
|
5117
|
-
y:
|
|
5108
|
+
y: 34 - grow,
|
|
5118
5109
|
width: 2.8 + grow * 2,
|
|
5119
|
-
height:
|
|
5110
|
+
height: 100 + grow,
|
|
5120
5111
|
rx: 1.3 + grow,
|
|
5121
5112
|
fill: `url(#${id}-halo)`,
|
|
5122
5113
|
opacity: halo * opacity
|
|
5123
5114
|
},
|
|
5124
5115
|
grow
|
|
5125
5116
|
)),
|
|
5126
|
-
/* @__PURE__ */ jsx42("rect", { x, y: "
|
|
5117
|
+
/* @__PURE__ */ jsx42("rect", { x, y: "34", width: "2.8", height: "100", rx: "1.3", fill: `url(#${id}-bar)`, opacity })
|
|
5127
5118
|
] }, i);
|
|
5128
5119
|
})
|
|
5129
5120
|
]
|