highsoft-ui 1.0.78 → 1.0.80

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,30 @@
1
+ import * as i from "react";
2
+ import { P as o } from "./index-CMU31gjG.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ var d = Object.freeze({
5
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
6
+ position: "absolute",
7
+ border: 0,
8
+ width: 1,
9
+ height: 1,
10
+ padding: 0,
11
+ margin: -1,
12
+ overflow: "hidden",
13
+ clip: "rect(0, 0, 0, 0)",
14
+ whiteSpace: "nowrap",
15
+ wordWrap: "normal"
16
+ }), l = "VisuallyHidden", e = i.forwardRef(
17
+ (r, a) => /* @__PURE__ */ t(
18
+ o.span,
19
+ {
20
+ ...r,
21
+ ref: a,
22
+ style: { ...d, ...r.style }
23
+ }
24
+ )
25
+ );
26
+ e.displayName = l;
27
+ var n = e;
28
+ export {
29
+ n as R
30
+ };
package/dist/main.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import { J as r, z as t, u as m } from "./utils-C7rfowvr.js";
2
2
  import { Button as p } from "./components/Button/index.js";
3
3
  import { Container as a } from "./components/Container/index.js";
4
- import { Footer as s } from "./components/Footer/index.js";
5
- import { GPTInput as i } from "./components/GPTInput/index.js";
6
- import { Header as N, SubHeader as P } from "./components/Header/index.js";
7
- import { Logo as h } from "./components/Logo/index.js";
4
+ import { Footer as u } from "./components/Footer/index.js";
5
+ import { GPTInput as s } from "./components/GPTInput/index.js";
6
+ import { Header as P, SubHeader as d } from "./components/Header/index.js";
7
+ import { Logo as N } from "./components/Logo/index.js";
8
8
  import { NewTag as H } from "./components/NewTag/index.js";
9
- import { N as c } from "./index-pnL-sAld.js";
9
+ import { Notification as c } from "./components/Notification/index.js";
10
10
  import { PrefPanel as v } from "./components/PrefPanel/index.js";
11
11
  export {
12
12
  p as Button,
13
13
  a as Container,
14
- s as Footer,
15
- i as GPTInput,
16
- N as Header,
17
- h as Logo,
14
+ u as Footer,
15
+ s as GPTInput,
16
+ P as Header,
17
+ N as Logo,
18
18
  H as NewTag,
19
19
  c as Notification,
20
20
  v as PrefPanel,
21
- P as SubHeader,
21
+ d as SubHeader,
22
22
  r as ThemeProvider,
23
23
  t as useNextTheme,
24
24
  m as useTheme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highsoft-ui",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "Highsoft UI",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -49,6 +49,7 @@
49
49
  "license": "ISC",
50
50
  "dependencies": {
51
51
  "@untitled-ui/icons-react": "^0.1.4",
52
+ "addsearch-js-client": "^1.2.1",
52
53
  "clsx": "^2.1.0",
53
54
  "highsoft-design-tokens": "^2.2.1",
54
55
  "modern-normalize": "^3.0.1",
@@ -1,68 +0,0 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import "react";
3
- import { _ as r } from "./extends-hS2Bh-Yp.js";
4
- import { c as l } from "./clsx-OuTLNxxd.js";
5
- import { Button as d } from "./components/Button/index.js";
6
- import { Container as h } from "./components/Container/index.js";
7
- var f = function(o) {
8
- return /* @__PURE__ */ t("svg", r({
9
- xmlns: "http://www.w3.org/2000/svg",
10
- width: 24,
11
- height: 24,
12
- fill: "none",
13
- viewBox: "0 0 24 24"
14
- }, o, {
15
- children: /* @__PURE__ */ t("path", {
16
- stroke: "currentColor",
17
- strokeLinecap: "round",
18
- strokeLinejoin: "round",
19
- strokeWidth: 2,
20
- d: "M18 6 6 18M6 6l12 12"
21
- })
22
- }));
23
- };
24
- const m = "MhRkRW_attention", R = "MhRkRW_close", p = "MhRkRW_container", u = "MhRkRW_danger", k = "MhRkRW_description", M = "MhRkRW_notification", _ = "MhRkRW_success", W = "MhRkRW_title", n = {
25
- attention: m,
26
- close: R,
27
- container: p,
28
- danger: u,
29
- default: "MhRkRW_default",
30
- description: k,
31
- notification: M,
32
- success: _,
33
- title: W
34
- };
35
- function j({
36
- children: e,
37
- variant: o = "default",
38
- description: i,
39
- closable: s = !0,
40
- onClose: c
41
- }) {
42
- return /* @__PURE__ */ t(
43
- "div",
44
- {
45
- className: l(n.notification, n[o]),
46
- "data-theme": "light",
47
- children: /* @__PURE__ */ a(h, { className: n.container, children: [
48
- /* @__PURE__ */ t("span", { className: n.title, children: e }),
49
- i && /* @__PURE__ */ t("span", { className: n.description, children: i }),
50
- s && /* @__PURE__ */ t(
51
- d,
52
- {
53
- variant: o === "default" ? "brand" : "transparent",
54
- size: 100,
55
- className: n.close,
56
- "aria-label": "Close notification",
57
- onClick: () => c?.(),
58
- children: /* @__PURE__ */ t(f, {})
59
- }
60
- )
61
- ] })
62
- }
63
- );
64
- }
65
- export {
66
- j as N,
67
- f as X
68
- };