qaema-ui 0.0.50 → 0.0.51

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.
@@ -6,6 +6,7 @@ export interface CalloutConfig {
6
6
  label: string;
7
7
  onClick: () => void;
8
8
  };
9
+ Icon?: React.ReactNode;
9
10
  }
10
11
  export type CalloutVariant = 'information' | 'error' | 'success' | 'warning';
11
12
  declare function CallOutBox({ callout }: {
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../_virtual/jsx-runtime.js";
2
2
  import i from "styled-components";
3
3
  import s from "./Typography.js";
4
- const t = i(s)`
4
+ const e = i(s)`
5
5
  font-family: ${({ theme: r }) => r.fonts.arabic};
6
6
  font-weight: ${({ theme: r }) => r.typography.weights.semiBold};
7
7
  font-size: 15px;
@@ -10,7 +10,7 @@ const t = i(s)`
10
10
  vertical-align: middle;
11
11
  color: ${({ theme: r }) => r.colors.grey.n650};
12
12
  display: inline-block;
13
- `, e = i.div`
13
+ `, t = i.div`
14
14
  margin-top: ${({ theme: r }) => r.spacing.m};
15
15
  padding: ${({ theme: r }) => r.spacing.sm};
16
16
  border-radius: ${({ theme: r }) => r.borderRadius.md};
@@ -72,16 +72,24 @@ const t = i(s)`
72
72
  &:hover {
73
73
  opacity: 0.9;
74
74
  }
75
+ `, p = i.div`
76
+ display: flex;
77
+ flex-direction: row;
78
+ align-items: center;
79
+ gap: ${({ theme: r }) => r.spacing.s};
75
80
  `;
76
- function y({ callout: r }) {
77
- return /* @__PURE__ */ n.jsxs(e, { $variant: r.variant ?? "warning", children: [
78
- /* @__PURE__ */ n.jsxs("div", { children: [
79
- /* @__PURE__ */ n.jsx(t, { variant: "span", weight: "semiBold", children: r.title }),
80
- r.description && /* @__PURE__ */ n.jsx(a, { variant: "caption", children: r.description })
81
+ function $({ callout: r }) {
82
+ return /* @__PURE__ */ n.jsxs(t, { $variant: r.variant ?? "warning", children: [
83
+ /* @__PURE__ */ n.jsxs(p, { children: [
84
+ (r == null ? void 0 : r.Icon) && /* @__PURE__ */ n.jsx("div", { children: r == null ? void 0 : r.Icon }),
85
+ /* @__PURE__ */ n.jsxs("div", { children: [
86
+ /* @__PURE__ */ n.jsx(e, { variant: "span", weight: "semiBold", children: r.title }),
87
+ r.description && /* @__PURE__ */ n.jsx(a, { variant: "caption", children: r.description })
88
+ ] })
81
89
  ] }),
82
90
  r.action && /* @__PURE__ */ n.jsx(c, { $variant: r.variant ?? "warning", onClick: r.action.onClick, children: r.action.label })
83
91
  ] });
84
92
  }
85
93
  export {
86
- y as default
94
+ $ as default
87
95
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qaema-ui",
3
3
  "private": false,
4
- "version": "0.0.50",
4
+ "version": "0.0.51",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"