xtreme-ui 0.0.55 → 0.0.56

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 +1 @@
1
- {"version":3,"file":"SiderModal.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/SiderModal/SiderModal.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,6GA2CrB,CAAC"}
1
+ {"version":3,"file":"SiderModal.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/SiderModal/SiderModal.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,6GA6CrB,CAAC"}
@@ -1,50 +1,51 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as a } from "react/jsx-runtime";
3
- import { forwardRef as f } from "react";
4
- import r from "clsx";
5
- import { Button as c } from "../../base/Button/Button.js";
6
- import { Icon as y } from "../../base/Icon/Icon.js";
2
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
3
+ import { forwardRef as y } from "react";
4
+ import c from "clsx";
5
+ import { Button as l } from "../../base/Button/Button.js";
6
+ import { Icon as h } from "../../base/Icon/Icon.js";
7
+ import { useXData as u } from "../../context/useContext.js";
7
8
  import e from "./siderModal.module.scss.js";
8
- const h = f((m, d) => {
9
+ const x = y((d, m) => {
9
10
  const {
10
11
  className: t,
11
12
  children: n,
12
13
  title: N,
13
14
  icon: i,
14
- primaryButtonProps: s = {},
15
- secondaryButtonProps: o = {}
16
- } = m, p = r(
15
+ primaryButtonProps: o = {},
16
+ secondaryButtonProps: a = {}
17
+ } = d, { setSiderMode: p } = u(), f = c(
17
18
  e.siderModal,
18
19
  t
19
20
  );
20
- return /* @__PURE__ */ l(
21
+ return /* @__PURE__ */ r(
21
22
  "div",
22
23
  {
23
- ref: d,
24
- className: p,
24
+ ref: m,
25
+ className: f,
25
26
  role: "dialog",
26
27
  children: [
27
- /* @__PURE__ */ l("div", { className: e.header, children: [
28
- /* @__PURE__ */ a(c, { className: e.back, icon: "f053" }),
29
- i && /* @__PURE__ */ a(y, { className: e.icon, code: i, type: "duotone" }),
30
- /* @__PURE__ */ a("p", { className: e.title, children: N })
28
+ /* @__PURE__ */ r("div", { className: e.header, children: [
29
+ /* @__PURE__ */ s(l, { className: e.back, icon: "f053", onClick: () => p("closed") }),
30
+ i && /* @__PURE__ */ s(h, { className: e.icon, code: i, type: "duotone" }),
31
+ /* @__PURE__ */ s("p", { className: e.title, children: N })
31
32
  ] }),
32
- /* @__PURE__ */ a("div", { className: e.body, children: n }),
33
- /* @__PURE__ */ l("div", { className: e.footer, children: [
34
- /* @__PURE__ */ a(
35
- c,
33
+ /* @__PURE__ */ s("div", { className: e.body, children: n }),
34
+ /* @__PURE__ */ r("div", { className: e.footer, children: [
35
+ /* @__PURE__ */ s(
36
+ l,
36
37
  {
37
38
  type: "primary",
38
- ...s,
39
- className: r(e.primaryButton, s == null ? void 0 : s.className)
39
+ ...o,
40
+ className: c(e.primaryButton, o == null ? void 0 : o.className)
40
41
  }
41
42
  ),
42
- /* @__PURE__ */ a(
43
- c,
43
+ /* @__PURE__ */ s(
44
+ l,
44
45
  {
45
46
  type: "secondary",
46
- ...o,
47
- className: r(e.secondaryButton, o == null ? void 0 : o.className)
47
+ ...a,
48
+ className: c(e.secondaryButton, a == null ? void 0 : a.className)
48
49
  }
49
50
  )
50
51
  ] })
@@ -52,7 +53,7 @@ const h = f((m, d) => {
52
53
  }
53
54
  );
54
55
  });
55
- h.displayName = "SiderModal";
56
+ x.displayName = "SiderModal";
56
57
  export {
57
- h as SiderModal
58
+ x as SiderModal
58
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtreme-ui",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "type": "module",
5
5
  "description": "Collection of reusable components that can be used in web projects",
6
6
  "main": "dist/index.js",