@neo-ui-kit/react 1.4.0 → 1.4.2

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.0.tgz
68
+ npm install /path/to/adui/release/neo-ui-kit-react-1.4.2.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-пакет).
@@ -1098,7 +1098,16 @@ var isLoop = (animation) => {
1098
1098
  function scan(now, animations = pendingAnimations) {
1099
1099
  lastScan = now;
1100
1100
  needsScan = false;
1101
- for (const target of pendingTargets)
1101
+ const roots = new Set(pendingTargets);
1102
+ for (const target of pendingTargets) {
1103
+ for (let parent = target.parentElement; parent; parent = parent.parentElement) {
1104
+ if (pendingTargets.has(parent)) {
1105
+ roots.delete(target);
1106
+ break;
1107
+ }
1108
+ }
1109
+ }
1110
+ for (const target of roots)
1102
1111
  for (const animation of target.getAnimations?.({ subtree: true }) || []) pendingAnimations.add(animation);
1103
1112
  pendingTargets.clear();
1104
1113
  for (const animation of animations)
@@ -2,7 +2,7 @@ import {
2
2
  themes,
3
3
  useBorder,
4
4
  usePauseOffscreen
5
- } from "./chunk-6VPAU3TV.js";
5
+ } from "./chunk-2KAVZYBS.js";
6
6
  import {
7
7
  assignRef,
8
8
  clamp,
@@ -2679,12 +2679,16 @@ var RotaryKnob = (p) => {
2679
2679
  const padding = Math.ceil(parseFloat(getComputedStyle(root).fontSize) * 8);
2680
2680
  const extent = size + padding * 2;
2681
2681
  raster.width = raster.height = Math.ceil(extent * ratio);
2682
- Object.assign(raster.style, {
2683
- left: `${-padding}px`,
2684
- top: `${-padding}px`,
2685
- width: `${raster.width / ratio}px`,
2686
- height: `${raster.height / ratio}px`
2687
- });
2682
+ const viewport = raster.closest("svg");
2683
+ const frame = raster.parentElement;
2684
+ if (!viewport || !frame) return;
2685
+ viewport.setAttribute("viewBox", `0 0 ${size} ${size}`);
2686
+ for (const [name, value2] of Object.entries({
2687
+ x: -padding,
2688
+ y: -padding,
2689
+ width: raster.width / ratio,
2690
+ height: raster.height / ratio
2691
+ })) frame.setAttribute(name, String(value2));
2688
2692
  const turned = document.createElement("canvas");
2689
2693
  turned.width = turned.height = Math.ceil(size * ratio);
2690
2694
  const turning = turned.getContext("2d");
@@ -3426,7 +3430,7 @@ var RotaryKnob = (p) => {
3426
3430
  }
3427
3431
  ),
3428
3432
  /* @__PURE__ */ jsx29("span", { className: "knob__surface knob__rotor-frame", "aria-hidden": "true", children: /* @__PURE__ */ jsx29("canvas", { className: "knob__rotor", ref: rotorRef }) }),
3429
- /* @__PURE__ */ jsx29("canvas", { className: "knob__raster", ref: rasterRef, hidden: true, "aria-hidden": "true" }),
3433
+ /* @__PURE__ */ jsx29("svg", { className: "knob__raster", "aria-hidden": "true", children: /* @__PURE__ */ jsx29("foreignObject", { children: /* @__PURE__ */ jsx29("canvas", { ref: rasterRef, hidden: true }) }) }),
3430
3434
  /* @__PURE__ */ jsx29("span", { className: "knob__sheen", "aria-hidden": "true" }),
3431
3435
  /* @__PURE__ */ jsx29(
3432
3436
  "div",
@@ -114,6 +114,7 @@
114
114
  }
115
115
  /* Neon edge: the blade's own background is the edge, a glint runs along it. */
116
116
  .ad-tabs-blade {
117
+ overflow: clip;
117
118
  position: absolute;
118
119
  inset: 0;
119
120
  isolation: isolate;
@@ -78,8 +78,16 @@
78
78
  }
79
79
  .ad-rotary-knob .knob__raster {
80
80
  position: absolute;
81
+ inset: 0;
82
+ width: 100%;
83
+ height: 100%;
84
+ overflow: visible;
81
85
  pointer-events: none;
82
86
  }
87
+ .ad-rotary-knob .knob__raster canvas {
88
+ width: 100%;
89
+ height: 100%;
90
+ }
83
91
  .ad-rotary-knob[data-rasterized] .knob__surface {
84
92
  visibility: hidden;
85
93
  }
package/dist/core.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  useSmoothWheel,
12
12
  useTabShape,
13
13
  useTick
14
- } from "./chunks/chunk-6VPAU3TV.js";
14
+ } from "./chunks/chunk-2KAVZYBS.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-KAVSRD45.js";
8
- import "./chunks/chunk-6VPAU3TV.js";
7
+ } from "./chunks/chunk-HTCN7BHM.js";
8
+ import "./chunks/chunk-2KAVZYBS.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-KAVSRD45.js";
65
+ } from "./chunks/chunk-HTCN7BHM.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-6VPAU3TV.js";
82
+ } from "./chunks/chunk-2KAVZYBS.js";
83
83
  import {
84
84
  LocaleProvider,
85
85
  addMessages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo-ui-kit/react",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "NEO UI — React component library",
5
5
  "type": "module",
6
6
  "license": "MIT",