qaema-ui 0.0.50 → 0.0.52

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,7 +1,7 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as t } from "../node_modules/react-helmet-async/node_modules/react-fast-compare/index.js";
3
- var a = t();
4
- const m = /* @__PURE__ */ r(a);
2
+ import { __require as o } from "../node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/shallowequal/index.js";
3
- var a = o();
4
- const t = /* @__PURE__ */ r(a);
2
+ import { __require as t } from "../node_modules/react-helmet-async/node_modules/react-fast-compare/index.js";
3
+ var a = t();
4
+ const m = /* @__PURE__ */ r(a);
5
5
  export {
6
- t as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
2
+ import { __require as o } from "../node_modules/shallowequal/index.js";
3
+ var a = o();
4
+ const t = /* @__PURE__ */ r(a);
5
5
  export {
6
- s as default
6
+ t as default
7
7
  };
@@ -18,6 +18,7 @@ export type ButtonProps = {
18
18
  style?: React.CSSProperties;
19
19
  disableHoverEffect?: boolean;
20
20
  width?: string;
21
+ loadingLbl?: string;
21
22
  };
22
23
  declare const Button: React.FC<ButtonProps>;
23
24
  export default Button;
@@ -1,11 +1,11 @@
1
1
  import { j as u } from "../_virtual/jsx-runtime.js";
2
2
  import "react";
3
- import { useTranslation as x } from "react-i18next";
4
- import { FiMoreHorizontal as y } from "../node_modules/react-icons/fi/index.js";
3
+ import { useTranslation as y } from "react-i18next";
4
+ import { FiMoreHorizontal as j } from "../node_modules/react-icons/fi/index.js";
5
5
  import f, { css as e } from "styled-components";
6
- import j from "../hooks/useButtonVariant.js";
7
- import w from "../node_modules/react-bootstrap/esm/Button.js";
8
- const z = {
6
+ import w from "../hooks/useButtonVariant.js";
7
+ import z from "../node_modules/react-bootstrap/esm/Button.js";
8
+ const C = {
9
9
  xxs: e`
10
10
  min-height: 1.5rem;
11
11
  font-size: 0.55rem;
@@ -32,7 +32,7 @@ const z = {
32
32
  font-size: 1rem;
33
33
  min-width: 21.563rem;
34
34
  `
35
- }, C = (o, r) => {
35
+ }, a = (o, r) => {
36
36
  var l, d, n, c, s, i;
37
37
  return e`
38
38
  color: ${o.default.color};
@@ -63,9 +63,9 @@ const z = {
63
63
  background-color: #e2e4e8;
64
64
  }
65
65
  `;
66
- }, a = f(w)`
67
- ${({ $variantData: o, $disableHoverEffect: r }) => C(o, r)};
68
- ${({ size: o = "md" }) => z[o]};
66
+ }, B = f(z)`
67
+ ${({ $variantData: o, $disableHoverEffect: r }) => a(o, r)};
68
+ ${({ size: o = "md" }) => C[o]};
69
69
  font-weight: 600;
70
70
  font-family: ${({ theme: o }) => o.dir === "rtl" ? o.fonts.arabic : o.fonts.english};
71
71
  display: inline-flex;
@@ -76,11 +76,11 @@ const z = {
76
76
  padding: 0.75rem 1.25rem;
77
77
  cursor: pointer;
78
78
  width: ${({ width: o }) => o};
79
- `, B = f.div`
79
+ `, S = f.div`
80
80
  display: flex;
81
81
  align-items: flex-end;
82
82
  justify-content: center;
83
- `, M = ({
83
+ `, N = ({
84
84
  children: o,
85
85
  variant: r = "primary",
86
86
  size: l = "md",
@@ -94,14 +94,15 @@ const z = {
94
94
  isLoading: t = !1,
95
95
  style: g = {},
96
96
  disableHoverEffect: h = !1,
97
- width: p
97
+ width: p,
98
+ loadingLbl: $
98
99
  }) => {
99
- const $ = j(r), { t: k } = x();
100
+ const k = w(r), { t: x } = y();
100
101
  return /* @__PURE__ */ u.jsxs(
101
- a,
102
+ B,
102
103
  {
103
104
  variant: r,
104
- $variantData: $,
105
+ $variantData: k,
105
106
  size: l,
106
107
  type: d,
107
108
  disabled: n ?? t,
@@ -110,10 +111,10 @@ const z = {
110
111
  $disableHoverEffect: h,
111
112
  width: p,
112
113
  children: [
113
- t && /* @__PURE__ */ u.jsxs(B, { children: [
114
- k("LOADING"),
114
+ t && /* @__PURE__ */ u.jsxs(S, { children: [
115
+ $ ?? x("LOADING"),
115
116
  " ",
116
- /* @__PURE__ */ u.jsx(y, {})
117
+ /* @__PURE__ */ u.jsx(j, {})
117
118
  ] }),
118
119
  !m && !t && s,
119
120
  !m && !t && o,
@@ -124,5 +125,5 @@ const z = {
124
125
  );
125
126
  };
126
127
  export {
127
- M as default
128
+ N as default
128
129
  };
@@ -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
  };
@@ -1,4 +1,4 @@
1
- import o from "../../../_virtual/index4.js";
1
+ import o from "../../../_virtual/index2.js";
2
2
  import * as p from "react";
3
3
  import n from "../../../_virtual/index.js";
4
4
  import { j as i } from "../../../_virtual/jsx-runtime.js";
@@ -1,6 +1,6 @@
1
1
  import i from "../../../_virtual/index.js";
2
2
  import * as f from "react";
3
- import e from "../../../_virtual/index4.js";
3
+ import e from "../../../_virtual/index2.js";
4
4
  import { j as l } from "../../../_virtual/jsx-runtime.js";
5
5
  const c = {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import i from "../../../_virtual/index.js";
2
- import o from "../../../_virtual/index4.js";
2
+ import o from "../../../_virtual/index2.js";
3
3
  import * as s from "react";
4
4
  import f from "./FormCheck.js";
5
5
  import l from "./FormControl.js";
@@ -1,6 +1,6 @@
1
1
  import f from "../../../_virtual/index.js";
2
2
  import * as d from "react";
3
- import o from "../../../_virtual/index4.js";
3
+ import o from "../../../_virtual/index2.js";
4
4
  import { useBootstrapPrefix as u } from "./ThemeProvider.js";
5
5
  import { j as p } from "../../../_virtual/jsx-runtime.js";
6
6
  o.string, o.bool, o.bool, o.bool, o.bool;
@@ -2,9 +2,9 @@ var Q = Object.defineProperty;
2
2
  var X = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var h = (e, t, r) => X(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import y, { Component as R } from "react";
5
- import ee from "../../../_virtual/index2.js";
5
+ import ee from "../../../_virtual/index3.js";
6
6
  import F from "../../../_virtual/browser.js";
7
- import te from "../../../_virtual/index3.js";
7
+ import te from "../../../_virtual/index4.js";
8
8
  var Y = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Y || {}), $ = {
9
9
  link: { rel: ["amphtml", "canonical", "alternate"] },
10
10
  script: { type: ["application/ld+json"] },
@@ -1,5 +1,5 @@
1
1
  import x, { Children as w, cloneElement as z, PureComponent as F } from "react";
2
- import a from "../../../_virtual/index4.js";
2
+ import a from "../../../_virtual/index2.js";
3
3
  import { deepEqual as H } from "../../fast-equals/dist/esm/index.js";
4
4
  import L from "./AnimateManager.js";
5
5
  import { configEasing as V } from "./easing.js";
@@ -1,6 +1,6 @@
1
1
  import C from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
2
2
  import D from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
3
- import o from "../../../_virtual/index4.js";
3
+ import o from "../../../_virtual/index2.js";
4
4
  import v from "react";
5
5
  import b from "react-dom";
6
6
  import T from "./config.js";
@@ -1,4 +1,4 @@
1
- import e from "../../../../_virtual/index4.js";
1
+ import e from "../../../../_virtual/index2.js";
2
2
  var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
3
3
  enter: e.number,
4
4
  exit: e.number,
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.52",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"