@arthurzakharov/ui-kit 1.4.8 → 1.5.0

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.
@@ -0,0 +1 @@
1
+ ._InfoPanel_1xied_1{position:relative;padding:var(--rm-ui-padding-md) 0;background-color:var(--rm-ui-info-panel-bg);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._InfoPanel_1xied_1:before,._InfoPanel_1xied_1:after{content:"";display:block;position:absolute;top:0;z-index:1;height:100%;width:100vw;background-color:inherit}._InfoPanel_1xied_1:before{left:0}._InfoPanel_1xied_1:after{right:0}._List_1xied_30{position:relative;z-index:2;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Item_1xied_40{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-xxs)}._Key_1xied_48{color:var(--rm-ui-color-text-secondary)}._Value_1xied_52{color:var(--rm-ui-color-text-primary)}@media screen and (min-width:480px){._Item_1xied_40{justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}}
@@ -1,23 +1,23 @@
1
1
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
2
- import c from "clsx";
2
+ import d from "clsx";
3
3
  import { baseProps as n } from "../../utils/functions/functions.util.js";
4
- import '../../assets/info-panel-BAcoIlE-.css';const m = "_InfoPanel_h5syx_1", d = "_List_h5syx_30", _ = "_Item_h5syx_40", r = "_Key_h5syx_47", f = "_Value_h5syx_51", s = {
5
- InfoPanel: m,
6
- List: d,
4
+ import '../../assets/info-panel-kV7VEW8z.css';const c = "_InfoPanel_1xied_1", m = "_List_1xied_30", _ = "_Item_1xied_40", r = "_Key_1xied_48", f = "_Value_1xied_52", e = {
5
+ InfoPanel: c,
6
+ List: m,
7
7
  Item: _,
8
8
  Key: r,
9
9
  Value: f
10
- }, y = ({ data: l, ...e }) => /* @__PURE__ */ a(
10
+ }, u = ({ data: i, ...s }) => /* @__PURE__ */ a(
11
11
  "div",
12
12
  {
13
- "data-testid": n(e, "data-testid", "info-panel"),
14
- className: c(s.InfoPanel, n(e, "className")),
15
- children: /* @__PURE__ */ a("ul", { "data-testid": "info-panel-list", className: s.List, children: l.map(([t, i]) => /* @__PURE__ */ o("li", { className: s.Item, children: [
16
- /* @__PURE__ */ a("span", { "data-testid": "info-panel-key", className: s.Key, children: t }),
17
- /* @__PURE__ */ a("span", { "data-testid": "info-panel-value", className: s.Value, children: i })
13
+ "data-testid": n(s, "data-testid", "info-panel"),
14
+ className: d(e.InfoPanel, n(s, "className")),
15
+ children: /* @__PURE__ */ a("ul", { "data-testid": "info-panel-list", className: e.List, children: i.map(([t, l]) => /* @__PURE__ */ o("li", { className: e.Item, children: [
16
+ /* @__PURE__ */ a("span", { "data-testid": "info-panel-key", className: e.Key, children: t }),
17
+ /* @__PURE__ */ a("span", { "data-testid": "info-panel-value", className: e.Value, children: l })
18
18
  ] }, t)) })
19
19
  }
20
20
  );
21
21
  export {
22
- y as InfoPanel
22
+ u as InfoPanel
23
23
  };
@@ -2,12 +2,13 @@ function e(t) {
2
2
  return typeof t == "string";
3
3
  }
4
4
  function i(t) {
5
- return /<\/?[a-z][\s\S]*>/i.test(t);
5
+ const n = /<\/?[a-z][\s\S]*>/i, r = /&(?:[a-z][a-z0-9]+|#\d+|#x[\da-f]+);/i;
6
+ return n.test(t) || r.test(t);
6
7
  }
7
- function o(t) {
8
+ function s(t) {
8
9
  return e(t) && i(t);
9
10
  }
10
- const s = (t, n) => (r) => {
11
+ const o = (t, n) => (r) => {
11
12
  n?.prevent && r.preventDefault(), n?.stop && r.stopPropagation(), n?.blur && r.currentTarget.blur(), n?.withEvent ? t(r) : t();
12
13
  };
13
14
  function u(t, n, r) {
@@ -16,7 +17,7 @@ function u(t, n, r) {
16
17
  export {
17
18
  u as baseProps,
18
19
  i as containsHtml,
19
- o as isHtmlString,
20
+ s as isHtmlString,
20
21
  e as isString,
21
- s as withControl
22
+ o as withControl
22
23
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.4.8",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._InfoPanel_h5syx_1{position:relative;padding:var(--rm-ui-padding-md) 0;background-color:var(--rm-ui-info-panel-bg);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._InfoPanel_h5syx_1:before,._InfoPanel_h5syx_1:after{content:"";display:block;position:absolute;top:0;z-index:1;height:100%;width:100vw;background-color:inherit}._InfoPanel_h5syx_1:before{left:0}._InfoPanel_h5syx_1:after{right:0}._List_h5syx_30{position:relative;z-index:2;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Item_h5syx_40{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._Key_h5syx_47{color:var(--rm-ui-color-text-secondary)}._Value_h5syx_51{color:var(--rm-ui-color-text-primary)}@media screen and (min-width:480px){._Item_h5syx_40{justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}}