qaema-ui 0.0.24 → 0.0.26

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,84 @@
1
+ import { j as t } from "../_virtual/jsx-runtime.js";
2
+ import o from "styled-components";
3
+ import { device as n } from "../constants/breakPoints.constant.js";
4
+ import p from "../assets/icons/RiyalIcon.js";
5
+ const g = o.div`
6
+ width: 100%;
7
+ `, c = o.div`
8
+ font-family: ${({ theme: e }) => e.fonts.english};
9
+ font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
10
+ font-size: ${({ theme: e }) => e.typography.sizes.s7};
11
+ line-height: ${({ theme: e }) => e.typography.lineHeights.l};
12
+ letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.normal};
13
+ color: ${({ theme: e }) => e.colors.grey.n800};
14
+ margin-bottom: ${({ theme: e }) => e.spacing.m};
15
+ `, h = o.div`
16
+ display: flex;
17
+ align-items: flex-start;
18
+ gap: ${({ theme: e }) => e.spacing.xl};
19
+ flex-wrap: wrap;
20
+
21
+ @media ${n.tablet} {
22
+ gap: ${({ theme: e }) => e.spacing.l};
23
+ }
24
+ `, y = o.div`
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: ${({ theme: e }) => e.spacing.xs};
28
+ min-width: 10.5rem;
29
+
30
+ @media ${n.tablet} {
31
+ min-width: 9.5rem;
32
+ }
33
+ `, m = o.div`
34
+ font-family: ${({ theme: e }) => e.fonts.english};
35
+ font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
36
+ font-size: ${({ theme: e }) => e.typography.sizes.s4};
37
+ line-height: ${({ theme: e }) => e.typography.lineHeights.s};
38
+ letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.balancedNarrow};
39
+ color: ${({ theme: e }) => e.colors.grey.n650};
40
+ `, d = o.div`
41
+ display: flex;
42
+ align-items: baseline;
43
+ gap: ${({ theme: e }) => e.spacing.xxs};
44
+ direction: ltr;
45
+ `, $ = o.span`
46
+ font-family: ${({ theme: e }) => e.fonts.arabic};
47
+ font-weight: ${({ theme: e }) => e.typography.weights.bold};
48
+ font-size: ${({ theme: e }) => e.typography.sizes.s10};
49
+ line-height: ${({ theme: e }) => e.typography.lineHeights.xl};
50
+ letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.balancedNarrow};
51
+ text-align: center;
52
+ color: ${({ theme: e, $color: s }) => s || e.colors.grey.n400};
53
+ `, f = o.span`
54
+ font-family: ${({ theme: e }) => e.fonts.english};
55
+ font-weight: ${({ theme: e }) => e.typography.weights.regular};
56
+ font-size: ${({ theme: e }) => e.typography.sizes.s2};
57
+ line-height: ${({ theme: e }) => e.typography.lineHeights.xs};
58
+ letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.normal};
59
+ color: ${({ theme: e, $color: s }) => s || e.colors.grey.n400};
60
+ `;
61
+ function b({
62
+ title: e,
63
+ items: s,
64
+ showCurrencyIcon: r = !0,
65
+ currencyIconWidth: l = "18px"
66
+ }) {
67
+ return /* @__PURE__ */ t.jsxs(g, { children: [
68
+ /* @__PURE__ */ t.jsx(c, { children: e }),
69
+ /* @__PURE__ */ t.jsx(h, { children: s.map((i, a) => /* @__PURE__ */ t.jsxs(y, { children: [
70
+ /* @__PURE__ */ t.jsx(m, { children: i.title }),
71
+ /* @__PURE__ */ t.jsxs(d, { children: [
72
+ r && /* @__PURE__ */ t.jsx(p, { width: l, height: "20", color: i.color }),
73
+ /* @__PURE__ */ t.jsx($, { $color: i.color, children: i.amount }),
74
+ i.decimal ? /* @__PURE__ */ t.jsxs(f, { $color: i.color, children: [
75
+ ".",
76
+ i.decimal
77
+ ] }) : null
78
+ ] })
79
+ ] }, `${i.title}-${a}`)) })
80
+ ] });
81
+ }
82
+ export {
83
+ b as default
84
+ };
@@ -141,3 +141,9 @@ export { default as PaymentTooltip } from './PaymentTooltip';
141
141
  export type { PaymentTooltipProps } from './PaymentTooltip';
142
142
  export { default as ModalWithRequestCard } from './ModalWithRequestCard';
143
143
  export type { ModalWithRequestCardProps } from './ModalWithRequestCard';
144
+ export { default as DropDownWithTable } from './DropDownWithTable/DropDownWithTable';
145
+ export type { DropDownWithTableProps } from './DropDownWithTable/DropDownWithTable.types';
146
+ export { default as TotalsSummary } from './TotalsSummary';
147
+ export type { TotalsSummaryProps, TotalsSummaryItem } from './TotalsSummary';
148
+ export { default } from './NextActionBox';
149
+ export type { NextActionBoxProps, NextActionItem } from './NextActionBox';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { default as o } from "./components/AccordionCard.js";
1
+ import { default as r } from "./components/AccordionCard.js";
2
2
  import { default as t } from "./components/ActionInput.js";
3
3
  import { default as d } from "./components/AddOnCard.js";
4
4
  import { default as u } from "./components/AddOnCardInput.js";
@@ -8,82 +8,84 @@ import { default as n } from "./components/Badge.js";
8
8
  import { default as c } from "./components/BulletItem.js";
9
9
  import { default as I } from "./components/Button.js";
10
10
  import { Card as k } from "./components/Card.js";
11
- import { default as h } from "./components/CardsList.js";
11
+ import { default as T } from "./components/CardsList.js";
12
12
  import { default as b } from "./components/Chart.js";
13
- import { default as L } from "./components/Checkbox.js";
13
+ import { default as D } from "./components/Checkbox.js";
14
14
  import { default as y } from "./components/CollapsableCard.js";
15
- import { default as D } from "./components/ConfigList.js";
15
+ import { default as B } from "./components/ConfigList.js";
16
16
  import { default as R } from "./components/ConfirmationPopup.js";
17
17
  import { default as w } from "./components/DatePicker.js";
18
18
  import { default as M } from "./components/Divider.js";
19
19
  import { default as O } from "./components/Draggable.js";
20
20
  import { default as Q } from "./components/DropDown.js";
21
- import { default as V } from "./components/FileDownloadCard.js";
22
- import { default as Z } from "./components/Header.js";
23
- import { default as E, HelpCardGroup as J } from "./components/HelpCard.js";
24
- import { default as U } from "./components/Hint.js";
25
- import { default as Y } from "./components/HorizontalChart.js";
26
- import { default as $ } from "./components/Image.js";
27
- import { default as re } from "./components/InfoCard.js";
28
- import { default as ae } from "./components/InfoItem.js";
29
- import { default as fe } from "./components/InputField.js";
30
- import { default as pe } from "./components/Layout.js";
31
- import { default as le } from "./components/Legend.js";
32
- import { default as se } from "./components/Link.js";
33
- import { default as ie } from "./components/ListToolbar.js";
34
- import { MethodCard as Ce } from "./components/MethodCard.js";
35
- import { default as ge } from "./components/Modal.js";
36
- import { default as Pe } from "./components/ModalWithRequestCard.js";
37
- import { default as Se } from "./components/NavItem.js";
38
- import { default as Te } from "./components/NavigationPanel.js";
39
- import { default as Ae } from "./components/NumberInput.js";
21
+ import { default as z } from "./components/DropDownWithTable/DropDownWithTable.js";
22
+ import { default as Z } from "./components/FileDownloadCard.js";
23
+ import { default as E } from "./components/Header.js";
24
+ import { default as K, HelpCardGroup as U } from "./components/HelpCard.js";
25
+ import { default as Y } from "./components/Hint.js";
26
+ import { default as $ } from "./components/HorizontalChart.js";
27
+ import { default as oe } from "./components/Image.js";
28
+ import { default as ae } from "./components/InfoCard.js";
29
+ import { default as fe } from "./components/InfoItem.js";
30
+ import { default as pe } from "./components/InputField.js";
31
+ import { default as le } from "./components/Layout.js";
32
+ import { default as se } from "./components/Legend.js";
33
+ import { default as ie } from "./components/Link.js";
34
+ import { default as Ce } from "./components/ListToolbar.js";
35
+ import { MethodCard as ge } from "./components/MethodCard.js";
36
+ import { default as Pe } from "./components/Modal.js";
37
+ import { default as Se } from "./components/ModalWithRequestCard.js";
38
+ import { default as he } from "./components/NavItem.js";
39
+ import { default as Ae } from "./components/NavigationPanel.js";
40
+ import { default as Le } from "./components/NumberInput.js";
40
41
  import { default as He } from "./components/OTP.js";
41
- import { default as Be } from "./components/PackageCard.js";
42
- import { default as Fe } from "./components/PageHeader.js";
43
- import { default as ve } from "./components/Pagination.js";
44
- import { default as Ge } from "./components/PasswordInputField.js";
45
- import { default as Ne } from "./components/PaymentLinkDetails.js";
46
- import { default as qe } from "./components/PaymentTooltip.js";
47
- import { default as ze } from "./components/PhoneInputField.js";
48
- import { default as We } from "./components/PriceAmount.js";
49
- import { default as je } from "./components/ProgressBar.js";
50
- import { default as Je } from "./components/QuickActionItem.js";
51
- import { default as Ue } from "./components/QuickStartCard.js";
52
- import { default as Ye } from "./components/Radio.js";
53
- import { default as $e } from "./components/RadioInput.js";
54
- import { default as rr } from "./components/ReconciliationGroups.js";
55
- import { default as ar } from "./components/RequestCard.js";
56
- import { default as fr } from "./components/RequestSummaryCard.js";
57
- import { default as pr } from "./components/SearchBar.js";
58
- import { default as lr } from "./components/SectionHeader.js";
59
- import { default as sr } from "./components/SideMenuLinks.js";
60
- import { default as ir } from "./components/Spinner.js";
61
- import { default as Cr } from "./components/StatCard.js";
62
- import { default as gr } from "./components/StatIndicator.js";
63
- import { default as Pr } from "./components/StatusFeedback.js";
64
- import { default as Sr } from "./components/Stepper.js";
65
- import { default as Tr } from "./components/StepperProcess.js";
66
- import { default as Ar } from "./components/SummaryCard.js";
67
- import { default as Hr } from "./components/Table/Table.js";
68
- import { default as Br } from "./components/Tabs.js";
69
- import { default as Fr } from "./components/TextArea.js";
70
- import { default as vr } from "./components/ThemeProvider.js";
71
- import { default as Gr } from "./components/ToastNotification.js";
72
- import { default as Nr } from "./components/Toggle.js";
73
- import { default as qr } from "./components/ToggleForm.js";
74
- import { default as zr } from "./components/ToggleHeader.js";
75
- import { default as Wr } from "./components/Typography.js";
76
- import { default as jr } from "./components/ViewItem.js";
77
- import { default as Jr } from "./hooks/useBreakpointCheck.js";
78
- import { default as Ur } from "./hooks/useFormikInput.js";
79
- import { default as Yr } from "./hooks/useZIndex.js";
80
- import { OptionSelectGroup as $r } from "./components/OptionCardGroup.js";
81
- import { breakPoints as ro, device as oo } from "./constants/breakPoints.constant.js";
82
- import { darkColors as to, lightColors as fo } from "./theme/colors.js";
83
- import { defaultTheme as uo } from "./theme/theme.js";
84
- import { setQaemaCoreLanguage as mo } from "./i18n/i18n.js";
42
+ import { default as Fe } from "./components/PackageCard.js";
43
+ import { default as ve } from "./components/PageHeader.js";
44
+ import { default as Ge } from "./components/Pagination.js";
45
+ import { default as Ne } from "./components/PasswordInputField.js";
46
+ import { default as qe } from "./components/PaymentLinkDetails.js";
47
+ import { default as We } from "./components/PaymentTooltip.js";
48
+ import { default as Ve } from "./components/PhoneInputField.js";
49
+ import { default as je } from "./components/PriceAmount.js";
50
+ import { default as Je } from "./components/ProgressBar.js";
51
+ import { default as Ue } from "./components/QuickActionItem.js";
52
+ import { default as Ye } from "./components/QuickStartCard.js";
53
+ import { default as $e } from "./components/Radio.js";
54
+ import { default as oo } from "./components/RadioInput.js";
55
+ import { default as ao } from "./components/ReconciliationGroups.js";
56
+ import { default as fo } from "./components/RequestCard.js";
57
+ import { default as uo } from "./components/RequestSummaryCard.js";
58
+ import { default as mo } from "./components/SearchBar.js";
59
+ import { default as xo } from "./components/SectionHeader.js";
60
+ import { default as no } from "./components/SideMenuLinks.js";
61
+ import { default as co } from "./components/Spinner.js";
62
+ import { default as Io } from "./components/StatCard.js";
63
+ import { default as ko } from "./components/StatIndicator.js";
64
+ import { default as To } from "./components/StatusFeedback.js";
65
+ import { default as bo } from "./components/Stepper.js";
66
+ import { default as Do } from "./components/StepperProcess.js";
67
+ import { default as yo } from "./components/SummaryCard.js";
68
+ import { default as Bo } from "./components/Table/Table.js";
69
+ import { default as Ro } from "./components/Tabs.js";
70
+ import { default as wo } from "./components/TextArea.js";
71
+ import { default as Mo } from "./components/ThemeProvider.js";
72
+ import { default as Oo } from "./components/ToastNotification.js";
73
+ import { default as Qo } from "./components/Toggle.js";
74
+ import { default as zo } from "./components/ToggleForm.js";
75
+ import { default as Zo } from "./components/ToggleHeader.js";
76
+ import { default as Eo } from "./components/TotalsSummary.js";
77
+ import { default as Ko } from "./components/Typography.js";
78
+ import { default as Xo } from "./components/ViewItem.js";
79
+ import { default as _o } from "./hooks/useBreakpointCheck.js";
80
+ import { default as er } from "./hooks/useFormikInput.js";
81
+ import { default as rr } from "./hooks/useZIndex.js";
82
+ import { OptionSelectGroup as tr } from "./components/OptionCardGroup.js";
83
+ import { breakPoints as dr, device as pr } from "./constants/breakPoints.constant.js";
84
+ import { darkColors as lr, lightColors as mr } from "./theme/colors.js";
85
+ import { defaultTheme as xr } from "./theme/theme.js";
86
+ import { setQaemaCoreLanguage as nr } from "./i18n/i18n.js";
85
87
  export {
86
- o as AccordionCard,
88
+ r as AccordionCard,
87
89
  t as ActionInput,
88
90
  d as AddOnCard,
89
91
  u as AddOnCardInput,
@@ -93,81 +95,83 @@ export {
93
95
  c as BulletItem,
94
96
  I as Button,
95
97
  k as Card,
96
- h as CardsList,
98
+ T as CardsList,
97
99
  b as Chart,
98
- L as Checkbox,
100
+ D as Checkbox,
99
101
  y as CollapsableCard,
100
- D as ConfigList,
102
+ B as ConfigList,
101
103
  R as ConfirmationPopup,
102
104
  w as DatePicker,
103
105
  M as Divider,
104
106
  O as Draggable,
105
107
  Q as DropDown,
106
- V as FileDownloadCard,
107
- Z as Header,
108
- E as HelpCard,
109
- J as HelpCardGroup,
110
- U as Hint,
111
- Y as HorizontalChart,
112
- $ as Image,
113
- re as InfoCard,
114
- ae as InfoItem,
115
- fe as InputField,
116
- pe as Layout,
117
- le as Legend,
118
- se as Link,
119
- ie as ListToolbar,
120
- Ce as MethodCard,
121
- ge as Modal,
122
- Pe as ModalWithRequestCard,
123
- Se as NavItem,
124
- Te as NavigationPanel,
125
- Ae as NumberInput,
126
- $r as OptionSelectGroup,
108
+ z as DropDownWithTable,
109
+ Z as FileDownloadCard,
110
+ E as Header,
111
+ K as HelpCard,
112
+ U as HelpCardGroup,
113
+ Y as Hint,
114
+ $ as HorizontalChart,
115
+ oe as Image,
116
+ ae as InfoCard,
117
+ fe as InfoItem,
118
+ pe as InputField,
119
+ le as Layout,
120
+ se as Legend,
121
+ ie as Link,
122
+ Ce as ListToolbar,
123
+ ge as MethodCard,
124
+ Pe as Modal,
125
+ Se as ModalWithRequestCard,
126
+ he as NavItem,
127
+ Ae as NavigationPanel,
128
+ Le as NumberInput,
129
+ tr as OptionSelectGroup,
127
130
  He as OtpInput,
128
- Be as PackageCard,
129
- Fe as PageHeader,
130
- ve as Pagination,
131
- Ge as PasswordInputField,
132
- Ne as PaymentLinkDetails,
133
- qe as PaymentTooltip,
134
- ze as PhoneInputField,
135
- We as PriceAmount,
136
- je as ProgressBar,
137
- Je as QuickActionItem,
138
- Ue as QuickStartCard,
139
- Ye as RadioButton,
140
- $e as RadioInput,
141
- rr as ReconciliationGroups,
142
- ar as RequestCard,
143
- fr as RequestSummaryCard,
144
- pr as SearchBar,
145
- lr as SectionHeader,
146
- sr as SideMenuLinks,
147
- ir as Spinner,
148
- Cr as StatCardGroup,
149
- gr as StatIndicator,
150
- Pr as StatusFeedback,
151
- Sr as Stepper,
152
- Tr as StepperProcess,
153
- Ar as SummaryCard,
154
- Hr as Table,
155
- Br as Tabs,
156
- Fr as TextArea,
157
- vr as ThemeProvider,
158
- Gr as ToastNotification,
159
- Nr as Toggle,
160
- qr as ToggleForm,
161
- zr as ToggleHeader,
162
- Wr as Typography,
163
- jr as ViewItem,
164
- ro as breakPoints,
165
- to as darkColors,
166
- uo as defaultTheme,
167
- oo as device,
168
- fo as lightColors,
169
- mo as setQaemaCoreLanguage,
170
- Jr as useBreakpointCheck,
171
- Ur as useFormikInput,
172
- Yr as useZIndex
131
+ Fe as PackageCard,
132
+ ve as PageHeader,
133
+ Ge as Pagination,
134
+ Ne as PasswordInputField,
135
+ qe as PaymentLinkDetails,
136
+ We as PaymentTooltip,
137
+ Ve as PhoneInputField,
138
+ je as PriceAmount,
139
+ Je as ProgressBar,
140
+ Ue as QuickActionItem,
141
+ Ye as QuickStartCard,
142
+ $e as RadioButton,
143
+ oo as RadioInput,
144
+ ao as ReconciliationGroups,
145
+ fo as RequestCard,
146
+ uo as RequestSummaryCard,
147
+ mo as SearchBar,
148
+ xo as SectionHeader,
149
+ no as SideMenuLinks,
150
+ co as Spinner,
151
+ Io as StatCardGroup,
152
+ ko as StatIndicator,
153
+ To as StatusFeedback,
154
+ bo as Stepper,
155
+ Do as StepperProcess,
156
+ yo as SummaryCard,
157
+ Bo as Table,
158
+ Ro as Tabs,
159
+ wo as TextArea,
160
+ Mo as ThemeProvider,
161
+ Oo as ToastNotification,
162
+ Qo as Toggle,
163
+ zo as ToggleForm,
164
+ Zo as ToggleHeader,
165
+ Eo as TotalsSummary,
166
+ Ko as Typography,
167
+ Xo as ViewItem,
168
+ dr as breakPoints,
169
+ lr as darkColors,
170
+ xr as defaultTheme,
171
+ pr as device,
172
+ mr as lightColors,
173
+ nr as setQaemaCoreLanguage,
174
+ _o as useBreakpointCheck,
175
+ er as useFormikInput,
176
+ rr as useZIndex
173
177
  };
@@ -0,0 +1,26 @@
1
+ import i from "../../../_virtual/index.js";
2
+ import * as f from "react";
3
+ import { useBootstrapPrefix as c } from "./ThemeProvider.js";
4
+ import { j as d } from "../../../_virtual/jsx-runtime.js";
5
+ const x = /* @__PURE__ */ f.forwardRef(({
6
+ bsPrefix: r,
7
+ variant: e,
8
+ animation: t = "border",
9
+ size: o,
10
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
11
+ as: a = "div",
12
+ className: m,
13
+ ...p
14
+ }, n) => {
15
+ r = c(r, "spinner");
16
+ const s = `${r}-${t}`;
17
+ return /* @__PURE__ */ d.jsx(a, {
18
+ ref: n,
19
+ ...p,
20
+ className: i(m, s, o && `${s}-${o}`, e && `text-${e}`)
21
+ });
22
+ });
23
+ x.displayName = "Spinner";
24
+ export {
25
+ x as default
26
+ };
@@ -1,7 +1,7 @@
1
1
  import r, { css as n } from "styled-components";
2
2
  import { Scrollbar as i } from "./Scrollbar.styles.js";
3
- import t from "../node_modules/react-bootstrap/esm/Dropdown.js";
4
- import s from "../node_modules/react-bootstrap/esm/DropdownToggle.js";
3
+ import s from "../node_modules/react-bootstrap/esm/Dropdown.js";
4
+ import t from "../node_modules/react-bootstrap/esm/DropdownToggle.js";
5
5
  import a from "../node_modules/react-bootstrap/esm/DropdownMenu.js";
6
6
  import l from "../node_modules/react-bootstrap/esm/DropdownItem.js";
7
7
  const x = r.div`
@@ -47,11 +47,11 @@ const x = r.div`
47
47
  color: ${({ theme: o }) => o.colors.state.error.n450};
48
48
  }
49
49
  }
50
- `, w = r(t)`
50
+ `, w = r(s)`
51
51
  width: 100%;
52
52
  max-height: 3.5rem;
53
53
  min-width: 5rem !important;
54
- `, f = r(s)`
54
+ `, f = r(t)`
55
55
  width: 100%;
56
56
  box-shadow: ${({ $valid: o }) => o ? "0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);" : "none"};
57
57
  padding: 0px;
@@ -125,7 +125,7 @@ const x = r.div`
125
125
  `, v = r(a)`
126
126
  min-width: 19rem !important;
127
127
  max-height: 29rem;
128
- position: absolute !important;
128
+ position: absolute;
129
129
  inset: 0px auto auto 0px;
130
130
  width: ${({ $menuWidth: o }) => `${o}rem`};
131
131
  display: flex;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qaema-ui",
3
3
  "private": false,
4
- "version": "0.0.24",
4
+ "version": "0.0.26",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"