@neo-ui-kit/react 1.4.0 → 1.4.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
@@ -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.1.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-пакет).
@@ -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/forms.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  defaultFieldRegistry,
5
5
  useForm,
6
6
  useFormContext
7
- } from "./chunks/chunk-KAVSRD45.js";
7
+ } from "./chunks/chunk-KYKVBAMI.js";
8
8
  import "./chunks/chunk-6VPAU3TV.js";
9
9
  import "./chunks/chunk-BJSFN52W.js";
10
10
  import "./chunks/chunk-FCOU3ODR.js";
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-KYKVBAMI.js";
66
66
  import {
67
67
  ThemeProvider,
68
68
  createNeonRenderer,
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.1",
4
4
  "description": "NEO UI — React component library",
5
5
  "type": "module",
6
6
  "license": "MIT",