@neo-ui-kit/react 1.4.3 → 1.4.5

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
@@ -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.3.tgz
68
+ npm install /path/to/adui/release/neo-ui-kit-react-1.4.5.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-пакет).
@@ -2,7 +2,7 @@ import {
2
2
  themes,
3
3
  useBorder,
4
4
  usePauseOffscreen
5
- } from "./chunk-2KAVZYBS.js";
5
+ } from "./chunk-P5SNVRBZ.js";
6
6
  import {
7
7
  assignRef,
8
8
  clamp,
@@ -1403,6 +1403,7 @@ U.roundedPath = (w, h, corners) => {
1403
1403
  const length = segments.reduce((total, segment) => total + segment.length, 0);
1404
1404
  return {
1405
1405
  d,
1406
+ length,
1406
1407
  point(fraction) {
1407
1408
  let distance = fraction * length;
1408
1409
  for (const segment of segments) {
@@ -1535,7 +1536,7 @@ U.attachBorder = (element, { shell = false, round = false, scope, defer = false
1535
1536
  node.style.maskImage = mask;
1536
1537
  node.style.webkitMaskImage = mask;
1537
1538
  }
1538
- item.length = path.getTotalLength();
1539
+ item.length = item.contour.length;
1539
1540
  radius = round ? 28 : Math.min(260, Math.max(42, item.length * 0.153));
1540
1541
  for (const light of lights) {
1541
1542
  light.radius = radius;
@@ -11,7 +11,7 @@
11
11
  max-width: 12rem;
12
12
  aspect-ratio: 163 / 140;
13
13
  }
14
- .ad-spectrum[data-variant="bars"] rect {
14
+ .ad-spectrum[data-variant="bars"] [data-bar] {
15
15
  transform-origin: 0 134px;
16
16
  will-change: transform;
17
17
  }
package/dist/core.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  useSmoothWheel,
12
12
  useTabShape,
13
13
  useTick
14
- } from "./chunks/chunk-2KAVZYBS.js";
14
+ } from "./chunks/chunk-P5SNVRBZ.js";
15
15
  import {
16
16
  LocaleProvider,
17
17
  addMessages,
package/dist/forms.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  defaultFieldRegistry,
5
5
  useForm,
6
6
  useFormContext
7
- } from "./chunks/chunk-HTCN7BHM.js";
8
- import "./chunks/chunk-2KAVZYBS.js";
7
+ } from "./chunks/chunk-4XHHN4GR.js";
8
+ import "./chunks/chunk-P5SNVRBZ.js";
9
9
  import "./chunks/chunk-BJSFN52W.js";
10
10
  import "./chunks/chunk-FCOU3ODR.js";
11
11
  export {
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  useSvgId,
63
63
  variantMaterial,
64
64
  vectorElement
65
- } from "./chunks/chunk-HTCN7BHM.js";
65
+ } from "./chunks/chunk-4XHHN4GR.js";
66
66
  import {
67
67
  ThemeProvider,
68
68
  createNeonRenderer,
@@ -79,7 +79,7 @@ import {
79
79
  useTabShape,
80
80
  useThemePalette,
81
81
  useTick
82
- } from "./chunks/chunk-2KAVZYBS.js";
82
+ } from "./chunks/chunk-P5SNVRBZ.js";
83
83
  import {
84
84
  LocaleProvider,
85
85
  addMessages,
@@ -5065,21 +5065,14 @@ function Segmented(p) {
5065
5065
  }
5066
5066
  function Bars(p) {
5067
5067
  const ref = useRef24(null);
5068
- const layers = useRef24(null);
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
- layers.current ??= Array.from(
5074
- ref.current.querySelectorAll("[data-bar]"),
5075
- (bar) => Array.from(bar.querySelectorAll("rect"))
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.style.transform = `scaleY(${((height + grow) / 100).toFixed(4)})`;
5082
- });
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)})`;
5083
5076
  });
5084
5077
  });
5085
5078
  return /* @__PURE__ */ jsxs34(
@@ -5111,11 +5104,10 @@ function Bars(p) {
5111
5104
  HALO.map(([grow, halo]) => /* @__PURE__ */ jsx42(
5112
5105
  "rect",
5113
5106
  {
5114
- "data-grow": grow,
5115
5107
  x: x - grow,
5116
- y: "34",
5108
+ y: 34 - grow,
5117
5109
  width: 2.8 + grow * 2,
5118
- height: "100",
5110
+ height: 100 + grow,
5119
5111
  rx: 1.3 + grow,
5120
5112
  fill: `url(#${id}-halo)`,
5121
5113
  opacity: halo * opacity
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo-ui-kit/react",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "NEO UI — React component library",
5
5
  "type": "module",
6
6
  "license": "MIT",