qaema-ui 0.0.27 → 0.0.29

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.
Files changed (170) hide show
  1. package/dist/_virtual/index2.js +4 -4
  2. package/dist/_virtual/index3.js +4 -4
  3. package/dist/_virtual/index4.js +4 -4
  4. package/dist/assets/icons/RiyalIcon.d.ts +1 -1
  5. package/dist/components/AccordionCard.d.ts +1 -1
  6. package/dist/components/ActionInput.d.ts +2 -2
  7. package/dist/components/AddOnCardInput.d.ts +2 -2
  8. package/dist/components/Alert.d.ts +1 -1
  9. package/dist/components/AmountItem.d.ts +2 -2
  10. package/dist/components/Badge.d.ts +3 -3
  11. package/dist/components/Button.d.ts +3 -2
  12. package/dist/components/Card.d.ts +1 -1
  13. package/dist/components/CardsList.d.ts +2 -2
  14. package/dist/components/Chart.d.ts +1 -1
  15. package/dist/components/ChartLegend/ChartLegend.d.ts +2 -2
  16. package/dist/components/ChartLegend/ChartLegend.js +8 -7
  17. package/dist/components/ChartLegend/PieChartLegend.d.ts +1 -1
  18. package/dist/components/ChartLegend/styles.d.ts +5 -5
  19. package/dist/components/CollapsableCard.d.ts +1 -1
  20. package/dist/components/ConfigList.d.ts +1 -1
  21. package/dist/components/ConfirmationPopup.d.ts +1 -1
  22. package/dist/components/DatePicker.d.ts +1 -1
  23. package/dist/components/DatePicker.js +1 -1
  24. package/dist/components/Divider.d.ts +2 -2
  25. package/dist/components/Draggable.d.ts +1 -1
  26. package/dist/components/DropDown.d.ts +1 -1
  27. package/dist/components/DropDownWithTable/DropDownWithTable.d.ts +1 -1
  28. package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +1 -1
  29. package/dist/components/DropDownWithTable/Table/Table.d.ts +1 -1
  30. package/dist/components/DropDownWithTable/Table/Table.js +66 -66
  31. package/dist/components/DropDownWithTable/Table/Table.styles.d.ts +27 -27
  32. package/dist/components/DropDownWithTable/Table/components/CellComponents.d.ts +6 -6
  33. package/dist/components/DropDownWithTable/Table/components/CellComponents.js +82 -82
  34. package/dist/components/DropDownWithTable/Table/components/TableHead.d.ts +1 -1
  35. package/dist/components/FileDownloadCard.d.ts +1 -1
  36. package/dist/components/Filter.d.ts +14 -14
  37. package/dist/components/FilterActiveBar.d.ts +1 -1
  38. package/dist/components/Header.d.ts +3 -2
  39. package/dist/components/HelpCard.d.ts +2 -2
  40. package/dist/components/Hint.d.ts +2 -2
  41. package/dist/components/HorizontalChart.d.ts +2 -2
  42. package/dist/components/Image.d.ts +2 -2
  43. package/dist/components/InfoCard.d.ts +1 -1
  44. package/dist/components/InfoItem.d.ts +1 -1
  45. package/dist/components/InputField.d.ts +2 -2
  46. package/dist/components/Layout.d.ts +4 -3
  47. package/dist/components/Legend.d.ts +1 -1
  48. package/dist/components/Link.d.ts +1 -1
  49. package/dist/components/ListToolbar.d.ts +5 -5
  50. package/dist/components/MethodCard.d.ts +1 -1
  51. package/dist/components/Modal.d.ts +2 -2
  52. package/dist/components/ModalWithRequestCard.d.ts +2 -2
  53. package/dist/components/NavItem.d.ts +2 -2
  54. package/dist/components/NavigationPanel.d.ts +2 -2
  55. package/dist/components/NextActionBox.d.ts +1 -1
  56. package/dist/components/NextActionBox.js +104 -0
  57. package/dist/components/NumberInput.d.ts +1 -1
  58. package/dist/components/OTP.d.ts +1 -1
  59. package/dist/components/OptionCardGroup.d.ts +2 -2
  60. package/dist/components/OptionCardGroup.js +16 -15
  61. package/dist/components/Pagination.d.ts +1 -1
  62. package/dist/components/PasswordInputField.d.ts +2 -2
  63. package/dist/components/PaymentLinkDetails.d.ts +1 -1
  64. package/dist/components/PaymentTooltip.d.ts +2 -2
  65. package/dist/components/PhoneInputField.d.ts +2 -2
  66. package/dist/components/QuickActionItem.d.ts +2 -2
  67. package/dist/components/QuickStartCard.d.ts +4 -4
  68. package/dist/components/RadioInput.d.ts +1 -1
  69. package/dist/components/ReconciliationGroups.d.ts +1 -1
  70. package/dist/components/RequestCard.d.ts +7 -7
  71. package/dist/components/RequestSummaryCard.d.ts +6 -6
  72. package/dist/components/SectionHeader.d.ts +1 -1
  73. package/dist/components/SideMenuLinks.d.ts +1 -1
  74. package/dist/components/Sidemenu.d.ts +2 -2
  75. package/dist/components/Spinner.d.ts +1 -1
  76. package/dist/components/StatCard.d.ts +1 -1
  77. package/dist/components/StatIndicator.d.ts +1 -1
  78. package/dist/components/StatusFeedback.d.ts +2 -2
  79. package/dist/components/StepperProcess.d.ts +391 -571
  80. package/dist/components/SummaryCard.d.ts +1 -1
  81. package/dist/components/Table/Table.d.ts +1 -1
  82. package/dist/components/Table/Table.styles.d.ts +27 -27
  83. package/dist/components/Table/components/CellComponents.d.ts +6 -6
  84. package/dist/components/Table/components/TableHead.d.ts +1 -1
  85. package/dist/components/Tabs.d.ts +1 -1
  86. package/dist/components/TextArea.d.ts +1 -1
  87. package/dist/components/ThemeProvider.d.ts +2 -2
  88. package/dist/components/ToastNotification.d.ts +2 -2
  89. package/dist/components/Toggle.d.ts +2 -2
  90. package/dist/components/ToggleForm.d.ts +2 -2
  91. package/dist/components/Typography.d.ts +3 -3
  92. package/dist/components/index.d.ts +1 -1
  93. package/dist/hooks/useFormikInput.d.ts +11 -11
  94. package/dist/hooks/useTypographyVariant.d.ts +1 -1
  95. package/dist/i18n/i18n.d.ts +3 -3
  96. package/dist/index.js +173 -171
  97. package/dist/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -1
  98. package/dist/node_modules/@restart/ui/esm/ImperativeTransition.js +1 -0
  99. package/dist/node_modules/d3-format/src/defaultLocale.js +4 -3
  100. package/dist/node_modules/d3-format/src/formatDecimal.js +4 -4
  101. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +5 -5
  102. package/dist/node_modules/d3-format/src/locale.js +37 -37
  103. package/dist/node_modules/d3-shape/src/symbol/circle.js +3 -3
  104. package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -5
  105. package/dist/node_modules/d3-time-format/src/locale.js +14 -14
  106. package/dist/node_modules/date-fns/addDays.js +3 -2
  107. package/dist/node_modules/date-fns/addMonths.js +9 -8
  108. package/dist/node_modules/date-fns/constructFrom.js +2 -1
  109. package/dist/node_modules/date-fns/differenceInCalendarDays.js +3 -2
  110. package/dist/node_modules/date-fns/endOfMonth.js +4 -3
  111. package/dist/node_modules/date-fns/endOfWeek.js +5 -4
  112. package/dist/node_modules/date-fns/format.js +1 -0
  113. package/dist/node_modules/date-fns/getDayOfYear.js +4 -3
  114. package/dist/node_modules/date-fns/getDaysInMonth.js +6 -5
  115. package/dist/node_modules/date-fns/getDefaultOptions.js +3 -2
  116. package/dist/node_modules/date-fns/getISODay.js +6 -5
  117. package/dist/node_modules/date-fns/getISOWeek.js +5 -4
  118. package/dist/node_modules/date-fns/getISOWeekYear.js +1 -0
  119. package/dist/node_modules/date-fns/getWeek.js +6 -5
  120. package/dist/node_modules/date-fns/getWeekYear.js +1 -0
  121. package/dist/node_modules/date-fns/getYear.js +3 -2
  122. package/dist/node_modules/date-fns/isAfter.js +3 -2
  123. package/dist/node_modules/date-fns/isBefore.js +4 -3
  124. package/dist/node_modules/date-fns/isDate.js +1 -0
  125. package/dist/node_modules/date-fns/isSameDay.js +9 -8
  126. package/dist/node_modules/date-fns/isSameMonth.js +6 -5
  127. package/dist/node_modules/date-fns/isValid.js +5 -4
  128. package/dist/node_modules/date-fns/locale/ar-SA.js +7 -6
  129. package/dist/node_modules/date-fns/locale/en-US.js +9 -8
  130. package/dist/node_modules/date-fns/parse.js +11 -10
  131. package/dist/node_modules/date-fns/setDay.js +7 -6
  132. package/dist/node_modules/date-fns/setISODay.js +4 -3
  133. package/dist/node_modules/date-fns/setISOWeek.js +5 -4
  134. package/dist/node_modules/date-fns/setMonth.js +6 -5
  135. package/dist/node_modules/date-fns/setWeek.js +4 -3
  136. package/dist/node_modules/date-fns/setYear.js +5 -4
  137. package/dist/node_modules/date-fns/startOfDay.js +5 -4
  138. package/dist/node_modules/date-fns/startOfISOWeek.js +3 -2
  139. package/dist/node_modules/date-fns/startOfISOWeekYear.js +6 -5
  140. package/dist/node_modules/date-fns/startOfMonth.js +1 -0
  141. package/dist/node_modules/date-fns/startOfWeek.js +8 -7
  142. package/dist/node_modules/date-fns/startOfWeekYear.js +5 -4
  143. package/dist/node_modules/date-fns/startOfYear.js +1 -0
  144. package/dist/node_modules/date-fns/subMonths.js +4 -3
  145. package/dist/node_modules/date-fns/toDate.js +4 -3
  146. package/dist/node_modules/date-fns/transpose.js +3 -2
  147. package/dist/node_modules/fast-equals/dist/esm/index.js +298 -0
  148. package/dist/node_modules/react-bootstrap/esm/CloseButton.js +1 -1
  149. package/dist/node_modules/react-bootstrap/esm/Feedback.js +1 -1
  150. package/dist/node_modules/react-bootstrap/esm/Form.js +1 -1
  151. package/dist/node_modules/react-bootstrap/esm/Image.js +1 -1
  152. package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
  153. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  154. package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
  155. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  156. package/dist/node_modules/recharts/es6/component/Cursor.js +2 -2
  157. package/dist/node_modules/recharts/es6/util/ChartUtils.js +2 -2
  158. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +7 -7
  159. package/dist/node_modules/victory-vendor/es/d3-scale.js +40 -40
  160. package/dist/styles/Currency.styles.d.ts +1 -1
  161. package/dist/styles/Dropdown.styles.d.ts +30 -30
  162. package/dist/styles/Input.styles.d.ts +1 -1
  163. package/dist/styles/Scrollbar.styles.d.ts +1 -1
  164. package/dist/styles/StatusFeedback.styles.d.ts +7 -7
  165. package/dist/theme/theme.d.ts +1 -1
  166. package/package.json +2 -3
  167. package/dist/i18n/locales/ar.json.d.ts +0 -55
  168. package/dist/i18n/locales/en.json.d.ts +0 -55
  169. package/dist/node_modules/fast-equals/dist/es/index.js +0 -324
  170. package/dist/theme/styled-components.d.ts +0 -5
@@ -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 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
- s 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 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/shallowequal/index.js";
3
+ var a = o();
4
+ const t = /* @__PURE__ */ r(a);
5
5
  export {
6
- m as default
6
+ t 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 o } from "../node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
5
5
  export {
6
- t as default
6
+ s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type SaudiRiyalIconProps = React.SVGProps<SVGSVGElement> & {
3
3
  color?: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface Transaction {
3
3
  id: string;
4
4
  amount: number;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { ButtonProps } from './Button';
1
+ import React from 'react';
2
+ import type { ButtonProps } from './Button';
3
3
  export type ActionInputProps = {
4
4
  initialExpanded?: boolean;
5
5
  onApply?: (code: string) => void;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { AddOnCardProps } from './AddOnCard';
1
+ import type React from 'react';
2
+ import { type AddOnCardProps } from './AddOnCard';
3
3
  type AddOnCardInputOption = {
4
4
  data: AddOnCardProps;
5
5
  value: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type AlertType = 'information' | 'error' | 'success' | 'warning' | 'default';
3
3
  type AlertProps = {
4
4
  alertType?: AlertType;
@@ -1,5 +1,5 @@
1
- import { AmountCellData, CellType } from './Table/Table.types';
2
- import { TypographyProps } from './Typography';
1
+ import type { AmountCellData, CellType } from './Table/Table.types';
2
+ import { type TypographyProps } from './Typography';
3
3
  type AmountItemProps = {
4
4
  data: AmountCellData;
5
5
  type?: CellType;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
2
- import { BadgeVariant } from '../hooks/useBadgeVariant';
3
- import { FontWeight } from '../theme/theme';
1
+ import type { ReactNode } from 'react';
2
+ import { type BadgeVariant } from '@hooks/useBadgeVariant';
3
+ import type { FontWeight } from '@theme/theme';
4
4
  export type BadgeProps = {
5
5
  bgColor?: string;
6
6
  color?: string;
@@ -1,5 +1,6 @@
1
- import { default as React, ReactNode } from 'react';
2
- import { ButtonVariant } from '../hooks/useButtonVariant';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import { type ButtonVariant } from '@hooks/useButtonVariant';
3
4
  type ButtonSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
4
5
  type ButtonType = 'button' | 'submit' | 'reset';
5
6
  export type ButtonProps = {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type CardProps = {
3
3
  children?: React.ReactNode;
4
4
  className?: string;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { ButtonVariant } from 'react-bootstrap/esm/types';
1
+ import React from 'react';
2
+ import type { ButtonVariant } from 'react-bootstrap/esm/types';
3
3
  type cardListItem = {
4
4
  primaryButtonTitle: string;
5
5
  primaryButtonOnClick?: (item: cardListItem) => void;
@@ -1,4 +1,4 @@
1
- import { default as React, ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
  type ChartType = 'area' | 'line' | 'bar' | 'pie';
3
3
  type ChartDataType = {
4
4
  [key: string]: string | number | undefined;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { LegendItem } from '../Chart';
1
+ import React from 'react';
2
+ import type { LegendItem } from '@components/Chart';
3
3
  interface ChartLegendProps {
4
4
  yColor: string;
5
5
  yyColor?: string;
@@ -1,27 +1,28 @@
1
1
  import { j as e } from "../../_virtual/jsx-runtime.js";
2
2
  import "react";
3
- import { useTheme as d } from "styled-components";
3
+ import { useTheme as c } from "styled-components";
4
4
  import h from "../../assets/svg/Riyal.svg.js";
5
5
  import g from "../Image.js";
6
6
  import i from "../Typography.js";
7
7
  import { StyledLegendContainer as p, LegendRow as x, LegendName as j, LegendValue as u } from "./styles.js";
8
- const C = ({ yColor: o, yyColor: m, legendItems: n }) => {
9
- const s = d();
8
+ const C = ({ yColor: s, yyColor: m, legendItems: n }) => {
9
+ const o = c();
10
10
  if (n && n.length)
11
11
  return /* @__PURE__ */ e.jsx(p, { children: n.map((r, t) => {
12
- const l = r.showRiyal ?? !0, a = r.value, c = r.color ?? (t === 1 ? m ?? o : o);
12
+ const l = r.showRiyal ?? !0, a = r.value, d = r.color ?? (t === 1 ? m ?? s : s);
13
13
  return /* @__PURE__ */ e.jsxs(x, { children: [
14
14
  /* @__PURE__ */ e.jsxs(j, { children: [
15
- /* @__PURE__ */ e.jsx("span", { className: "legend-dot", style: { background: c } }),
15
+ /* @__PURE__ */ e.jsx("span", { className: "legend-dot", style: { background: d } }),
16
16
  /* @__PURE__ */ e.jsx(i, { variant: "mdText", weight: "semiBold", children: r.name })
17
17
  ] }),
18
18
  /* @__PURE__ */ e.jsx(u, { children: a && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
19
- l && /* @__PURE__ */ e.jsx(g, { src: h, style: { verticalAlign: "middle" }, width: s.spacing.sm, height: s.spacing.sm }),
19
+ l && /* @__PURE__ */ e.jsx(g, { src: h, style: { verticalAlign: "middle" }, width: o.spacing.sm, height: o.spacing.sm }),
20
20
  /* @__PURE__ */ e.jsx(i, { variant: "mdText", children: a })
21
21
  ] }) })
22
22
  ] }, `${r.name}-${t}`);
23
23
  }) });
24
24
  };
25
25
  export {
26
- C as ChartLegend
26
+ C as ChartLegend,
27
+ C as default
27
28
  };
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type PieChartLegendItem = {
3
3
  name: string;
4
4
  value: number;
@@ -1,5 +1,5 @@
1
- export declare const StyledLegendContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- export declare const PieLegendContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const LegendRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- export declare const LegendName: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
5
- export declare const LegendValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
1
+ export declare const StyledLegendContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const PieLegendContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const LegendRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const LegendName: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
5
+ export declare const LegendValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type CollapsableCardProps = {
3
3
  initialExpanded?: boolean;
4
4
  title?: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type ConfigStatus = 'active' | 'inactive' | string;
3
3
  export type ConfigItem = {
4
4
  id: string | number;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type ConfirmationPopupProps = {
3
3
  variant?: string;
4
4
  item: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface DatePickerProps {
3
3
  value: Date | null;
4
4
  onChange: (date: Date | null) => void;
@@ -4,7 +4,7 @@ import { useTranslation as te } from "react-i18next";
4
4
  import { FaRegCalendarAlt as oe, FaAngleDown as ne, FaAngleLeft as se } from "../node_modules/react-icons/fa/index.js";
5
5
  import i, { useTheme as ie } from "styled-components";
6
6
  import ae from "./Hint.js";
7
- import { format as b } from "../node_modules/date-fns/format.js";
7
+ import { formatDate as b } from "../node_modules/date-fns/format.js";
8
8
  import { parse as le } from "../node_modules/date-fns/parse.js";
9
9
  import { isBefore as L } from "../node_modules/date-fns/isBefore.js";
10
10
  import { isAfter as z } from "../node_modules/date-fns/isAfter.js";
@@ -1,7 +1,7 @@
1
1
  export type DividerProps = {
2
2
  marginVertical?: string;
3
3
  };
4
- declare const Divider: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
- ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
4
+ declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
6
  }>, DividerProps>, DividerProps>> & string;
7
7
  export default Divider;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type UploadState = 'idle-drag' | 'hover-drag' | 'pressed-drag';
3
3
  export type DraggableFile = File & {
4
4
  data?: string;
@@ -1,4 +1,4 @@
1
- import { StringOrNumberRecord } from 'types/objects.types';
1
+ import type { StringOrNumberRecord } from 'types/objects.types';
2
2
  export type DropDownOptionValue = StringOrNumberRecord | string | number;
3
3
  export type DropDownOption = {
4
4
  label: string;
@@ -1,3 +1,3 @@
1
- import { DropDownWithTableProps } from './DropDownWithTable.types';
1
+ import type { DropDownWithTableProps } from './DropDownWithTable.types';
2
2
  declare const DropDownWithTable: <T extends Record<string, unknown>>(props: DropDownWithTableProps<T>) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DropDownWithTable;
@@ -1,4 +1,4 @@
1
- import { TableColumn } from './Table/Table.types';
1
+ import type { TableColumn } from './Table/Table.types';
2
2
  export interface DropDownWithTableProps<T extends Record<string, unknown>> {
3
3
  label?: string;
4
4
  options: T[];
@@ -1,3 +1,3 @@
1
- import { TableProps } from './Table.types';
1
+ import type { TableProps } from './Table.types';
2
2
  declare function Table<T extends Record<string, unknown>>({ columns, data, keyField, selectable, onRowSelect, rowActions, stickyHeader, loading, emptyStateMessage, pagination, onRowClick, rowClassName, isRowDisabled, breakpoint, alignHeader, isTableHeadVisible, isRowSelected: externalIsRowSelected, }: Readonly<TableProps<T>>): import("react/jsx-runtime").JSX.Element;
3
3
  export default Table;
@@ -1,25 +1,25 @@
1
1
  import { j as t } from "../../../_virtual/jsx-runtime.js";
2
- import { useState as v, useEffect as L, useMemo as N } from "react";
3
- import { useTranslation as Q } from "react-i18next";
4
- import U from "../../Spinner.js";
5
- import X from "../../Pagination.js";
6
- import Y from "../../Typography.js";
7
- import O, { CheckboxCell as Z } from "./components/CellComponents.js";
2
+ import { useState as v, useEffect as L, useMemo as Q } from "react";
3
+ import { useTranslation as U } from "react-i18next";
4
+ import X from "../../Spinner.js";
5
+ import Y from "../../Pagination.js";
6
+ import Z from "../../Typography.js";
7
+ import O, { CheckboxCell as H } from "./components/CellComponents.js";
8
8
  import z from "./components/TableHead.js";
9
- import { TableContainer as H, LoadingOverlay as D, TablesWrapper as k, DataScrollBox as F, StyledTable as R, TableBody as W, EmptyState as w, TableRow as y, TableCellContainer as b, ActionsTable as ee, TableFooter as te } from "./Table.styles.js";
10
- function me({
9
+ import { TableContainer as D, LoadingOverlay as k, TablesWrapper as F, DataScrollBox as R, StyledTable as w, TableBody as W, EmptyState as ee, TableRow as y, TableCellContainer as b, ActionsTable as te, TableFooter as ne } from "./Table.styles.js";
10
+ function xe({
11
11
  columns: T,
12
- data: i,
13
- keyField: r,
14
- selectable: u = !1,
12
+ data: n,
13
+ keyField: l,
14
+ selectable: j = !1,
15
15
  onRowSelect: m,
16
16
  rowActions: x,
17
17
  stickyHeader: $ = !1,
18
18
  loading: f = !1,
19
19
  emptyStateMessage: I,
20
- pagination: n,
21
- onRowClick: a,
22
- rowClassName: j,
20
+ pagination: s,
21
+ onRowClick: u,
22
+ rowClassName: p,
23
23
  isRowDisabled: d,
24
24
  breakpoint: _ = "md",
25
25
  alignHeader: C = "start",
@@ -27,7 +27,7 @@ function me({
27
27
  isTableHeadVisible: K = !1,
28
28
  isRowSelected: S
29
29
  }) {
30
- const [h, p] = v([]), [B, g] = v(_), [M, A] = v(null), { t: V } = Q();
30
+ const [h, g] = v([]), [B, P] = v(_), [M, A] = v(null), { t: N } = U();
31
31
  L(() => {
32
32
  const e = () => {
33
33
  A(null);
@@ -37,63 +37,63 @@ function me({
37
37
  };
38
38
  }, []), L(() => {
39
39
  const e = () => {
40
- const l = window.innerWidth;
41
- l < 576 ? g("sm") : l < 992 ? g("md") : g("lg");
40
+ const i = window.innerWidth;
41
+ i < 576 ? P("sm") : i < 992 ? P("md") : P("lg");
42
42
  };
43
43
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
44
44
  }, []);
45
- const P = N(() => T.filter((e) => typeof e.hidden == "function" ? !e.hidden(B) : !e.hidden), [T, B]), q = () => {
46
- h.length === i.length ? p([]) : p([...i]), m && m(h.length === i.length ? [] : [...i]);
45
+ const a = Q(() => T.filter((e) => typeof e.hidden == "function" ? !e.hidden(B) : !e.hidden), [T, B]), V = () => {
46
+ h.length === n.length ? g([]) : g([...n]), m && m(h.length === n.length ? [] : [...n]);
47
+ }, q = (e) => {
48
+ const i = h.filter((r) => e[l] === r[l]);
49
+ return i && i.length > 0;
47
50
  }, G = (e) => {
48
- const l = h.filter((s) => e[r] === s[r]);
49
- return l && l.length > 0;
50
- }, J = (e) => {
51
- const l = h.some((o) => o[r] === e[r]);
52
- let s;
53
- l ? s = h.filter((o) => o[r] !== e[r]) : s = [...h, e], p(s), m && m(s);
51
+ const i = h.some((o) => o[l] === e[l]);
52
+ let r;
53
+ i ? r = h.filter((o) => o[l] !== e[l]) : r = [...h, e], g(r), m && m(r);
54
54
  };
55
- return /* @__PURE__ */ t.jsxs(H, { children: [
56
- f && /* @__PURE__ */ t.jsx(D, { children: /* @__PURE__ */ t.jsx(U, { size: "3rem" }) }),
57
- /* @__PURE__ */ t.jsxs(k, { children: [
58
- /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsxs(R, { children: [
55
+ return /* @__PURE__ */ t.jsxs(D, { children: [
56
+ f && /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(X, { size: "3rem" }) }),
57
+ /* @__PURE__ */ t.jsxs(F, { children: [
58
+ /* @__PURE__ */ t.jsx(R, { children: /* @__PURE__ */ t.jsxs(w, { children: [
59
59
  K && /* @__PURE__ */ t.jsx(
60
60
  z,
61
61
  {
62
- data: i,
63
- handleSelectAll: q,
62
+ data: n,
63
+ handleSelectAll: V,
64
64
  selectedRows: h,
65
- visibleColumns: P,
65
+ visibleColumns: a,
66
66
  alignHeader: C,
67
67
  rowActions: void 0,
68
68
  stickyHeader: $,
69
- selectable: u,
69
+ selectable: j,
70
70
  loading: f
71
71
  }
72
72
  ),
73
- /* @__PURE__ */ t.jsx(W, { children: i.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (u ? 1 : 0) + P.length, children: /* @__PURE__ */ t.jsx(w, { children: /* @__PURE__ */ t.jsx(Y, { variant: "mdText", children: I ?? V("NO_DATA_AVAILABLE") }) }) }) }) : i.map((e, l) => {
74
- const s = (d == null ? void 0 : d(e)) ?? !1, o = S ? S(e) : h.some((c) => c[r] === e[r]), E = e[r];
73
+ /* @__PURE__ */ t.jsx(W, { children: n.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (j ? 1 : 0) + a.length, children: /* @__PURE__ */ t.jsx(ee, { children: /* @__PURE__ */ t.jsx(Z, { variant: "mdText", children: I ?? N("NO_DATA_AVAILABLE") }) }) }) }) : n == null ? void 0 : n.map((e, i) => {
74
+ const r = (d == null ? void 0 : d(e)) ?? !1, o = S ? S(e) : h.some((c) => c[l] === e[l]), E = e[l], J = (p == null ? void 0 : p(e, i)) ?? "";
75
75
  return /* @__PURE__ */ t.jsxs(
76
76
  y,
77
77
  {
78
78
  $selected: o,
79
- $disabled: s,
80
- $clickable: !!a && !s,
81
- onClick: () => !s && (a == null ? void 0 : a(e)),
82
- className: (j == null ? void 0 : j(e, l)) ?? "",
79
+ $disabled: r,
80
+ $clickable: !!u && !r,
81
+ onClick: () => !r && (u == null ? void 0 : u(e)),
82
+ className: J,
83
83
  children: [
84
- u && /* @__PURE__ */ t.jsx(b, { $align: "center", $isFirstColumn: !0, children: /* @__PURE__ */ t.jsx(
85
- Z,
84
+ j && /* @__PURE__ */ t.jsx(b, { $align: "center", $isFirstColumn: !0, children: /* @__PURE__ */ t.jsx(
85
+ H,
86
86
  {
87
87
  checkBoxOptions: {
88
- checked: G(e),
88
+ checked: q(e),
89
89
  $variant: "primary",
90
- $disabled: s,
90
+ $disabled: r,
91
91
  $size: "sm",
92
- onChange: () => !s && J(e)
92
+ onChange: () => !r && G(e)
93
93
  }
94
94
  }
95
95
  ) }),
96
- P.map((c) => /* @__PURE__ */ t.jsx(b, { $align: c.align, children: /* @__PURE__ */ t.jsx(
96
+ a.map((c) => /* @__PURE__ */ t.jsx(b, { $align: c.align, children: /* @__PURE__ */ t.jsx(
97
97
  O,
98
98
  {
99
99
  column: c,
@@ -111,11 +111,11 @@ function me({
111
111
  );
112
112
  }) })
113
113
  ] }) }),
114
- x && x.length > 0 && /* @__PURE__ */ t.jsxs(ee, { children: [
114
+ x && x.length > 0 && /* @__PURE__ */ t.jsxs(te, { children: [
115
115
  /* @__PURE__ */ t.jsx(
116
116
  z,
117
117
  {
118
- data: i,
118
+ data: n,
119
119
  handleSelectAll: () => {
120
120
  },
121
121
  selectedRows: h,
@@ -127,43 +127,43 @@ function me({
127
127
  loading: f
128
128
  }
129
129
  ),
130
- /* @__PURE__ */ t.jsx(W, { children: i.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : i.map((e) => {
131
- const l = (d == null ? void 0 : d(e)) ?? !1;
132
- return /* @__PURE__ */ t.jsx(y, { $disabled: l, children: /* @__PURE__ */ t.jsx(b, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
130
+ /* @__PURE__ */ t.jsx(W, { children: n.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : n == null ? void 0 : n.map((e) => {
131
+ const i = (d == null ? void 0 : d(e)) ?? !1;
132
+ return /* @__PURE__ */ t.jsx(y, { $disabled: i, children: /* @__PURE__ */ t.jsx(b, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
133
133
  O,
134
134
  {
135
135
  row: e,
136
136
  type: "icon",
137
137
  iconOptions: {
138
- keyField: r,
138
+ keyField: l,
139
139
  rowActions: x,
140
140
  activeDropdown: M,
141
141
  setActiveDropdown: A
142
142
  }
143
143
  }
144
- ) }) }, `action-${e[r]}`);
144
+ ) }) }, `action-${e[l]}`);
145
145
  }) })
146
146
  ] })
147
147
  ] }),
148
- n && n.enabled && /* @__PURE__ */ t.jsx(te, { children: /* @__PURE__ */ t.jsx(
149
- X,
148
+ s && s.enabled && /* @__PURE__ */ t.jsx(ne, { children: /* @__PURE__ */ t.jsx(
149
+ Y,
150
150
  {
151
- currentPage: n.currentPage,
152
- totalPages: n.totalPages,
153
- onChange: n.onPageChange,
151
+ currentPage: s.currentPage,
152
+ totalPages: s.totalPages,
153
+ onChange: s.onPageChange,
154
154
  disabled: f,
155
- hidePrevButton: n.hidePrevButton,
156
- hideNextButton: n.hideNextButton,
157
- siblingCount: n.siblingCount,
158
- boundaryCount: n.boundaryCount,
159
- itemsPerPage: n.pageSize,
160
- totalItems: n.totalItems,
161
- itemsPerPageOptions: n.itemsPerPageOptions,
162
- onItemsPerPageChange: n.onItemsPerPageChange
155
+ hidePrevButton: s.hidePrevButton,
156
+ hideNextButton: s.hideNextButton,
157
+ siblingCount: s.siblingCount,
158
+ boundaryCount: s.boundaryCount,
159
+ itemsPerPage: s.pageSize,
160
+ totalItems: s.totalItems,
161
+ itemsPerPageOptions: s.itemsPerPageOptions,
162
+ onItemsPerPageChange: s.onItemsPerPageChange
163
163
  }
164
164
  ) })
165
165
  ] });
166
166
  }
167
167
  export {
168
- me as default
168
+ xe as default
169
169
  };