@arthurzakharov/ui-kit 1.0.22 → 1.0.24

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.
@@ -1,5 +1,4 @@
1
1
  export interface InfoPanelProps {
2
2
  data: [string, string][];
3
- notVisibleAfter?: number;
4
3
  }
5
4
  export declare const InfoPanel: (props: InfoPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,17 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
- import { useWindowSize as f } from "usehooks-ts";
3
- import { Animation as I } from "../animation/animation.component.js";
4
- import '../../assets/info-panel-DQN2uPs8.css';const P = "_InfoPanel_1tthc_1", m = "_InfoPanelList_1tthc_27", r = "_InfoPanelItem_1tthc_41", _ = "_InfoPanelKey_1tthc_48", d = "_InfoPanelValue_1tthc_55", e = {
5
- InfoPanel: P,
6
- InfoPanelList: m,
7
- InfoPanelItem: r,
8
- InfoPanelKey: _,
9
- InfoPanelValue: d
10
- }, V = (l) => {
11
- const { data: o = [], notVisibleAfter: t = 1024 } = l, { width: s } = f({ initializeWithValue: !0, debounceDelay: 100 });
12
- return /* @__PURE__ */ n(I.FadeScale, { name: "info-panel", condition: s < t, children: /* @__PURE__ */ n("div", { className: e.InfoPanel, children: /* @__PURE__ */ n("ul", { className: e.InfoPanelList, children: o.map(([a, i]) => /* @__PURE__ */ c("li", { className: e.InfoPanelItem, children: [
13
- /* @__PURE__ */ n("span", { className: e.InfoPanelKey, children: a }),
14
- /* @__PURE__ */ n("span", { className: e.InfoPanelValue, dangerouslySetInnerHTML: { __html: i } })
15
- ] }, a)) }) }) });
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import '../../assets/info-panel-DQN2uPs8.css';const I = "_InfoPanel_1tthc_1", c = "_InfoPanelList_1tthc_27", f = "_InfoPanelItem_1tthc_41", P = "_InfoPanelKey_1tthc_48", _ = "_InfoPanelValue_1tthc_55", n = {
3
+ InfoPanel: I,
4
+ InfoPanelList: c,
5
+ InfoPanelItem: f,
6
+ InfoPanelKey: P,
7
+ InfoPanelValue: _
8
+ }, i = (l) => {
9
+ const { data: o = [] } = l;
10
+ return /* @__PURE__ */ e("div", { className: n.InfoPanel, children: /* @__PURE__ */ e("ul", { className: n.InfoPanelList, children: o.map(([a, t]) => /* @__PURE__ */ s("li", { className: n.InfoPanelItem, children: [
11
+ /* @__PURE__ */ e("span", { className: n.InfoPanelKey, children: a }),
12
+ /* @__PURE__ */ e("span", { className: n.InfoPanelValue, dangerouslySetInnerHTML: { __html: t } })
13
+ ] }, a)) }) });
16
14
  };
17
15
  export {
18
- V as InfoPanel
16
+ i as InfoPanel
19
17
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.22",
4
+ "version": "1.0.24",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",