qaema-ui 0.0.26 → 0.0.28
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.
- package/dist/_virtual/index.js +5 -5
- package/dist/_virtual/index2.js +4 -4
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +4 -4
- package/dist/assets/icons/RiyalIcon.d.ts +1 -1
- package/dist/components/AccordionCard.d.ts +1 -1
- package/dist/components/ActionInput.d.ts +2 -2
- package/dist/components/AddOnCardInput.d.ts +2 -2
- package/dist/components/Alert.d.ts +1 -1
- package/dist/components/AmountItem.d.ts +2 -2
- package/dist/components/Badge.d.ts +3 -3
- package/dist/components/Button.d.ts +3 -2
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/CardsList.d.ts +2 -2
- package/dist/components/Chart.d.ts +1 -1
- package/dist/components/ChartLegend/ChartLegend.d.ts +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +8 -7
- package/dist/components/ChartLegend/PieChartLegend.d.ts +1 -1
- package/dist/components/ChartLegend/styles.d.ts +5 -5
- package/dist/components/CollapsableCard.d.ts +1 -1
- package/dist/components/ConfigList.d.ts +1 -1
- package/dist/components/ConfirmationPopup.d.ts +1 -1
- package/dist/components/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/Divider.d.ts +2 -2
- package/dist/components/Draggable.d.ts +1 -1
- package/dist/components/DropDown.d.ts +1 -1
- package/dist/components/DropDownWithTable/DropDownWithTable.d.ts +1 -1
- package/dist/components/DropDownWithTable/DropDownWithTable.js +69 -64
- package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +2 -1
- package/dist/components/DropDownWithTable/Table/Table.d.ts +1 -1
- package/dist/components/DropDownWithTable/Table/Table.js +66 -66
- package/dist/components/DropDownWithTable/Table/Table.styles.d.ts +27 -27
- package/dist/components/DropDownWithTable/Table/components/CellComponents.d.ts +6 -6
- package/dist/components/DropDownWithTable/Table/components/CellComponents.js +82 -82
- package/dist/components/DropDownWithTable/Table/components/TableHead.d.ts +1 -1
- package/dist/components/FileDownloadCard.d.ts +1 -1
- package/dist/components/Filter.d.ts +14 -14
- package/dist/components/FilterActiveBar.d.ts +1 -1
- package/dist/components/Header.d.ts +3 -2
- package/dist/components/HelpCard.d.ts +2 -2
- package/dist/components/Hint.d.ts +2 -2
- package/dist/components/HorizontalChart.d.ts +2 -2
- package/dist/components/Image.d.ts +2 -2
- package/dist/components/InfoCard.d.ts +1 -1
- package/dist/components/InfoItem.d.ts +1 -1
- package/dist/components/InputField.d.ts +2 -2
- package/dist/components/Layout.d.ts +4 -3
- package/dist/components/Legend.d.ts +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/ListToolbar.d.ts +5 -5
- package/dist/components/MethodCard.d.ts +1 -1
- package/dist/components/Modal.d.ts +2 -2
- package/dist/components/ModalWithRequestCard.d.ts +2 -2
- package/dist/components/NavItem.d.ts +2 -2
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/NextActionBox.d.ts +1 -1
- package/dist/components/NextActionBox.js +104 -0
- package/dist/components/NumberInput.d.ts +1 -1
- package/dist/components/OTP.d.ts +1 -1
- package/dist/components/OptionCardGroup.d.ts +2 -2
- package/dist/components/OptionCardGroup.js +16 -15
- package/dist/components/Pagination.d.ts +1 -1
- package/dist/components/PasswordInputField.d.ts +2 -2
- package/dist/components/PaymentLinkDetails.d.ts +1 -1
- package/dist/components/PaymentTooltip.d.ts +2 -2
- package/dist/components/PhoneInputField.d.ts +2 -2
- package/dist/components/QuickActionItem.d.ts +2 -2
- package/dist/components/QuickStartCard.d.ts +4 -4
- package/dist/components/RadioInput.d.ts +1 -1
- package/dist/components/ReconciliationGroups.d.ts +1 -1
- package/dist/components/RequestCard.d.ts +7 -7
- package/dist/components/RequestSummaryCard.d.ts +6 -6
- package/dist/components/SectionHeader.d.ts +1 -1
- package/dist/components/SideMenuLinks.d.ts +1 -1
- package/dist/components/Sidemenu.d.ts +2 -2
- package/dist/components/Spinner.d.ts +1 -1
- package/dist/components/StatCard.d.ts +1 -1
- package/dist/components/StatIndicator.d.ts +1 -1
- package/dist/components/StatusFeedback.d.ts +2 -2
- package/dist/components/StepperProcess.d.ts +391 -571
- package/dist/components/SummaryCard.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.styles.d.ts +27 -27
- package/dist/components/Table/components/CellComponents.d.ts +6 -6
- package/dist/components/Table/components/TableHead.d.ts +1 -1
- package/dist/components/Tabs.d.ts +1 -1
- package/dist/components/TextArea.d.ts +1 -1
- package/dist/components/ThemeProvider.d.ts +2 -2
- package/dist/components/ToastNotification.d.ts +2 -2
- package/dist/components/Toggle.d.ts +2 -2
- package/dist/components/ToggleForm.d.ts +2 -2
- package/dist/components/Typography.d.ts +3 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/hooks/useFormikInput.d.ts +11 -11
- package/dist/hooks/useTypographyVariant.d.ts +1 -1
- package/dist/i18n/i18n.d.ts +3 -3
- package/dist/index.js +173 -171
- package/dist/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -1
- package/dist/node_modules/@restart/ui/esm/ImperativeTransition.js +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +4 -3
- package/dist/node_modules/d3-format/src/formatDecimal.js +4 -4
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +5 -5
- package/dist/node_modules/d3-format/src/locale.js +37 -37
- package/dist/node_modules/d3-shape/src/symbol/circle.js +3 -3
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -5
- package/dist/node_modules/d3-time-format/src/locale.js +14 -14
- package/dist/node_modules/date-fns/addDays.js +3 -2
- package/dist/node_modules/date-fns/addMonths.js +9 -8
- package/dist/node_modules/date-fns/constructFrom.js +2 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +3 -2
- package/dist/node_modules/date-fns/endOfMonth.js +4 -3
- package/dist/node_modules/date-fns/endOfWeek.js +5 -4
- package/dist/node_modules/date-fns/format.js +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +4 -3
- package/dist/node_modules/date-fns/getDaysInMonth.js +6 -5
- package/dist/node_modules/date-fns/getDefaultOptions.js +3 -2
- package/dist/node_modules/date-fns/getISODay.js +6 -5
- package/dist/node_modules/date-fns/getISOWeek.js +5 -4
- package/dist/node_modules/date-fns/getISOWeekYear.js +1 -0
- package/dist/node_modules/date-fns/getWeek.js +6 -5
- package/dist/node_modules/date-fns/getWeekYear.js +1 -0
- package/dist/node_modules/date-fns/getYear.js +3 -2
- package/dist/node_modules/date-fns/isAfter.js +3 -2
- package/dist/node_modules/date-fns/isBefore.js +4 -3
- package/dist/node_modules/date-fns/isDate.js +1 -0
- package/dist/node_modules/date-fns/isSameDay.js +9 -8
- package/dist/node_modules/date-fns/isSameMonth.js +6 -5
- package/dist/node_modules/date-fns/isValid.js +5 -4
- package/dist/node_modules/date-fns/locale/ar-SA.js +7 -6
- package/dist/node_modules/date-fns/locale/en-US.js +9 -8
- package/dist/node_modules/date-fns/parse.js +11 -10
- package/dist/node_modules/date-fns/setDay.js +7 -6
- package/dist/node_modules/date-fns/setISODay.js +4 -3
- package/dist/node_modules/date-fns/setISOWeek.js +5 -4
- package/dist/node_modules/date-fns/setMonth.js +6 -5
- package/dist/node_modules/date-fns/setWeek.js +4 -3
- package/dist/node_modules/date-fns/setYear.js +5 -4
- package/dist/node_modules/date-fns/startOfDay.js +5 -4
- package/dist/node_modules/date-fns/startOfISOWeek.js +3 -2
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +6 -5
- package/dist/node_modules/date-fns/startOfMonth.js +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +8 -7
- package/dist/node_modules/date-fns/startOfWeekYear.js +5 -4
- package/dist/node_modules/date-fns/startOfYear.js +1 -0
- package/dist/node_modules/date-fns/subMonths.js +4 -3
- package/dist/node_modules/date-fns/toDate.js +4 -3
- package/dist/node_modules/date-fns/transpose.js +3 -2
- package/dist/node_modules/fast-equals/dist/esm/index.js +298 -0
- package/dist/node_modules/react-bootstrap/esm/Alert.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertHeading.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Button.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/CloseButton.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Collapse.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Dropdown.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownDivider.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItemText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownMenu.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Fade.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Feedback.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FloatingLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Form.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FormCheck.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckInput.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormControl.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormFloating.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormRange.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormSelect.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Image.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Nav.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Navbar.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarBrand.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Offcanvas.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasTitle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasToggling.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Toast.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/divWithClassName.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/recharts/es6/component/Cursor.js +2 -2
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +2 -2
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +7 -7
- package/dist/node_modules/victory-vendor/es/d3-scale.js +40 -40
- package/dist/styles/Currency.styles.d.ts +1 -1
- package/dist/styles/Dropdown.styles.d.ts +30 -29
- package/dist/styles/Dropdown.styles.js +18 -11
- package/dist/styles/Input.styles.d.ts +1 -1
- package/dist/styles/Scrollbar.styles.d.ts +1 -1
- package/dist/styles/StatusFeedback.styles.d.ts +7 -7
- package/dist/theme/theme.d.ts +1 -1
- package/package.json +2 -3
- package/dist/i18n/locales/ar.json.d.ts +0 -55
- package/dist/i18n/locales/en.json.d.ts +0 -55
- package/dist/node_modules/fast-equals/dist/es/index.js +0 -324
- package/dist/node_modules/react-bootstrap/esm/Spinner.js +0 -26
- package/dist/theme/styled-components.d.ts +0 -5
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const FilterButton: import(
|
|
3
|
-
export declare const DropdownList: import(
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FilterButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
3
|
+
export declare const DropdownList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
5
|
}, never>> & string;
|
|
6
|
-
export declare const DropdownItem: import(
|
|
7
|
-
export declare const FieldOptions: import(
|
|
8
|
-
export declare const FilterIcon: import(
|
|
9
|
-
export declare const RadioLabel: import(
|
|
10
|
-
export declare const SearchInput: import(
|
|
11
|
-
export declare const RadioGroup: import(
|
|
12
|
-
export declare const FieldHeader: import(
|
|
13
|
-
export declare const DateInput: import(
|
|
6
|
+
export declare const DropdownItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const FieldOptions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const FilterIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
9
|
+
export declare const RadioLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
10
|
+
export declare const SearchInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
11
|
+
export declare const RadioGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const FieldHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
13
|
+
export declare const DateInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>, "ref"> & {
|
|
14
14
|
ref?: ((instance: HTMLInputElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
15
|
-
}, Omit<import(
|
|
15
|
+
}, Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>, "ref"> & {
|
|
16
16
|
ref?: ((instance: HTMLInputElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
17
17
|
}>, never>, never>> & string;
|
|
18
|
-
export declare const SelectInput: import(
|
|
19
|
-
export declare const ButtonGroup: import(
|
|
18
|
+
export declare const SelectInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never>> & string;
|
|
19
|
+
export declare const ButtonGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
20
20
|
export type FilterField = {
|
|
21
21
|
accessor: string;
|
|
22
22
|
header: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ReactNode
|
|
2
|
-
import
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { type NavItemType } from './NavItem';
|
|
3
4
|
export type HeaderProps = {
|
|
4
5
|
setOpen: (value: boolean) => void;
|
|
5
6
|
profileImg: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export type HelpCardProps = {
|
|
3
3
|
icon?: React.ReactNode;
|
|
4
4
|
title: string;
|
|
@@ -11,7 +11,7 @@ export type HelpCardProps = {
|
|
|
11
11
|
isLoading?: boolean;
|
|
12
12
|
className?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const HelpCardGroup: import(
|
|
14
|
+
export declare const HelpCardGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
15
|
min?: number;
|
|
16
16
|
gap?: number;
|
|
17
17
|
}>> & string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
type HorizontalChartData = {
|
|
3
3
|
name: string;
|
|
4
4
|
value: number;
|
|
@@ -7,6 +7,6 @@ type HorizontalChartData = {
|
|
|
7
7
|
export type HorizontalChartProps = {
|
|
8
8
|
data: Array<HorizontalChartData>;
|
|
9
9
|
};
|
|
10
|
-
export declare const LabelRow: import(
|
|
10
|
+
export declare const LabelRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
11
|
declare const HorizontalChart: React.FC<HorizontalChartProps>;
|
|
12
12
|
export default HorizontalChart;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type InputFieldProps = {
|
|
3
3
|
label?: string;
|
|
4
4
|
optional?: boolean;
|
|
@@ -23,6 +23,6 @@ export type InputFieldProps = {
|
|
|
23
23
|
name?: string;
|
|
24
24
|
isInteractive?: boolean;
|
|
25
25
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'>;
|
|
26
|
-
export declare const Optional: import(
|
|
26
|
+
export declare const Optional: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
27
27
|
declare const InputField: React.FC<InputFieldProps>;
|
|
28
28
|
export default InputField;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactNode
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { type HeaderProps } from './Header';
|
|
4
|
+
import { type SidemenuProps } from './Sidemenu';
|
|
4
5
|
export type LayoutProps = {
|
|
5
6
|
header: HeaderProps;
|
|
6
7
|
sideMenu: SidemenuProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
import { FilterProps } from './Filter';
|
|
4
|
-
import { FilterActiveBarProps } from './FilterActiveBar';
|
|
5
|
-
import { SearchBarProps } from './SearchBar';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ButtonProps } from './Button';
|
|
3
|
+
import type { FilterProps } from './Filter';
|
|
4
|
+
import { type FilterActiveBarProps } from './FilterActiveBar';
|
|
5
|
+
import { type SearchBarProps } from './SearchBar';
|
|
6
6
|
type ActionButton = ButtonProps & {
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ZIndexVariant } from '
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ZIndexVariant } from '@hooks/useZIndex';
|
|
3
3
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type ModalProps = {
|
|
5
5
|
title?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModalProps } from './Modal';
|
|
2
|
-
import { RequestCardProps } from './RequestCard';
|
|
1
|
+
import { type ModalProps } from './Modal';
|
|
2
|
+
import { type RequestCardProps } from './RequestCard';
|
|
3
3
|
export type ModalWithRequestCardProps = {
|
|
4
4
|
modalProps: ModalProps;
|
|
5
5
|
requestCardProps: RequestCardProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NavItemVariant } from '
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type NavItemVariant } from '@hooks/useNavItemVariant';
|
|
3
3
|
type NotificationVariant = 'bullet' | 'badge';
|
|
4
4
|
type NavItemComponentType = 'button' | 'link';
|
|
5
5
|
export type NavItemType = {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import i from "styled-components";
|
|
3
|
+
import { device as o } from "../constants/breakPoints.constant.js";
|
|
4
|
+
import p from "./Typography.js";
|
|
5
|
+
const s = i.div`
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
`, a = i.div`
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: 26rem;
|
|
12
|
+
padding: ${({ theme: t }) => t.spacing.m};
|
|
13
|
+
text-align: center;
|
|
14
|
+
background: transparent;
|
|
15
|
+
|
|
16
|
+
@media ${o.tablet} {
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
padding: ${({ theme: t }) => t.spacing.sm};
|
|
19
|
+
}
|
|
20
|
+
`, l = i.div`
|
|
21
|
+
font-family: ${({ theme: t }) => t.fonts.english};
|
|
22
|
+
font-weight: ${({ theme: t }) => t.typography.weights.semiBold};
|
|
23
|
+
font-size: ${({ theme: t }) => t.typography.sizes.s4};
|
|
24
|
+
line-height: ${({ theme: t }) => t.typography.lineHeights.s};
|
|
25
|
+
letter-spacing: -0.0025em;
|
|
26
|
+
text-align: center;
|
|
27
|
+
color: #000000;
|
|
28
|
+
margin-bottom: ${({ theme: t }) => t.spacing.m};
|
|
29
|
+
`, c = i.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
gap: ${({ theme: t }) => t.spacing.l};
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
|
|
35
|
+
@media ${o.tablet} {
|
|
36
|
+
gap: ${({ theme: t }) => t.spacing.m};
|
|
37
|
+
}
|
|
38
|
+
`, x = i.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
`, d = i.button`
|
|
43
|
+
width: 56px;
|
|
44
|
+
height: 56px;
|
|
45
|
+
min-height: 56px;
|
|
46
|
+
border-radius: 8px;
|
|
47
|
+
border: none;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
|
|
53
|
+
background: ${({ theme: t }) => t.colors.primary.purple.n100};
|
|
54
|
+
|
|
55
|
+
box-shadow:
|
|
56
|
+
0px 1px 2px 0px #0000000f,
|
|
57
|
+
0px 1px 3px 0px #0000001a;
|
|
58
|
+
|
|
59
|
+
transition: all 0.15s ease-in-out;
|
|
60
|
+
|
|
61
|
+
svg {
|
|
62
|
+
width: 20px;
|
|
63
|
+
height: 20px;
|
|
64
|
+
color: ${({ theme: t }) => t.colors.primary.purple.n450};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
background: ${({ theme: t }) => t.colors.primary.purple.n100};
|
|
69
|
+
box-shadow:
|
|
70
|
+
0px 2px 4px 0px #00000014,
|
|
71
|
+
0px 4px 8px 0px #0000001f;
|
|
72
|
+
transform: translateY(-2px);
|
|
73
|
+
}
|
|
74
|
+
`, g = i.div`
|
|
75
|
+
margin-top: 8px;
|
|
76
|
+
width: 56px;
|
|
77
|
+
min-height: 16px;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
`, h = i(p)`
|
|
82
|
+
font-family: ${({ theme: t }) => t.fonts.english};
|
|
83
|
+
font-weight: ${({ theme: t }) => t.typography.weights.semiBold};
|
|
84
|
+
font-size: ${({ theme: t }) => t.typography.sizes.s2};
|
|
85
|
+
line-height: ${({ theme: t }) => t.typography.lineHeights.xs};
|
|
86
|
+
letter-spacing: ${({ theme: t }) => t.typography.letterSpacings.normal};
|
|
87
|
+
text-align: center;
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
color: ${({ theme: t }) => t.colors.primary.purple.n450};
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
text-wrap :auto ;
|
|
92
|
+
`;
|
|
93
|
+
function $({ title: t, items: r }) {
|
|
94
|
+
return /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsxs(a, { children: [
|
|
95
|
+
/* @__PURE__ */ e.jsx(l, { children: t }),
|
|
96
|
+
/* @__PURE__ */ e.jsx(c, { children: r.map((n) => /* @__PURE__ */ e.jsxs(x, { children: [
|
|
97
|
+
/* @__PURE__ */ e.jsx(d, { onClick: n.onClick, disabled: n.disabled, type: "button", children: n.icon }),
|
|
98
|
+
/* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(h, { variant: "smText", children: n.label }) })
|
|
99
|
+
] }, n.id)) })
|
|
100
|
+
] }) });
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
$ as default
|
|
104
|
+
};
|
package/dist/components/OTP.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type OptionSelectCardProps = {
|
|
3
3
|
id: string | number;
|
|
4
4
|
title: string;
|
|
@@ -24,7 +24,7 @@ export type OptionSelectGroupProps = {
|
|
|
24
24
|
className?: string;
|
|
25
25
|
style?: React.CSSProperties;
|
|
26
26
|
};
|
|
27
|
-
export declare const OptionSelectGroupWrapper: import(
|
|
27
|
+
export declare const OptionSelectGroupWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
28
28
|
$rowGap: number;
|
|
29
29
|
$columnGap: number;
|
|
30
30
|
$columns: 1 | 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as s } from "../_virtual/jsx-runtime.js";
|
|
2
2
|
import { useMemo as k, createContext as G, useContext as R } from "react";
|
|
3
3
|
import c, { css as j } from "styled-components";
|
|
4
4
|
import z from "./RadioInput.js";
|
|
@@ -117,10 +117,10 @@ const v = G(null), S = () => R(v), I = c.button`
|
|
|
117
117
|
}) => {
|
|
118
118
|
const r = S(), u = h ?? e, y = r == null ? void 0 : r.value, $ = r && typeof y < "u", b = $ ? y === u : !!m, w = (r == null ? void 0 : r.name) ?? x ?? String(e), f = () => {
|
|
119
119
|
n || ($ && (r != null && r.onChange) ? r.onChange(u) : l == null || l(e));
|
|
120
|
-
}, C = (
|
|
121
|
-
n || (
|
|
120
|
+
}, C = (i) => {
|
|
121
|
+
n || (i.key === " " || i.key === "Enter") && (i.preventDefault(), f());
|
|
122
122
|
};
|
|
123
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ s.jsxs(
|
|
124
124
|
I,
|
|
125
125
|
{
|
|
126
126
|
className: d,
|
|
@@ -131,22 +131,22 @@ const v = G(null), S = () => R(v), I = c.button`
|
|
|
131
131
|
"aria-disabled": n || void 0,
|
|
132
132
|
tabIndex: n ? -1 : 0,
|
|
133
133
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
!!t && /* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ s.jsx(D, { children: a }),
|
|
135
|
+
/* @__PURE__ */ s.jsxs(N, { children: [
|
|
136
|
+
/* @__PURE__ */ s.jsx("h5", { className: "title", children: o }),
|
|
137
|
+
!!t && /* @__PURE__ */ s.jsx("p", { className: "desc", children: t })
|
|
138
138
|
] }),
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ s.jsxs(O, { onClick: (i) => i.stopPropagation(), children: [
|
|
140
140
|
p,
|
|
141
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ s.jsx(
|
|
142
142
|
z,
|
|
143
143
|
{
|
|
144
144
|
name: w,
|
|
145
145
|
label: "",
|
|
146
146
|
options: [{ label: "", value: String(u) }],
|
|
147
147
|
value: b ? String(u) : "",
|
|
148
|
-
onChange: (
|
|
149
|
-
|
|
148
|
+
onChange: (i) => {
|
|
149
|
+
i.preventDefault(), f();
|
|
150
150
|
},
|
|
151
151
|
disabled: n,
|
|
152
152
|
optional: !1
|
|
@@ -168,7 +168,7 @@ const v = G(null), S = () => R(v), I = c.button`
|
|
|
168
168
|
style: h
|
|
169
169
|
}) => {
|
|
170
170
|
const l = k(() => ({ name: n, value: a, onChange: p }), [n, a, p]), d = typeof a < "u";
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ s.jsx(v.Provider, { value: l, children: /* @__PURE__ */ s.jsx(
|
|
172
172
|
V,
|
|
173
173
|
{
|
|
174
174
|
className: x,
|
|
@@ -178,12 +178,13 @@ const v = G(null), S = () => R(v), I = c.button`
|
|
|
178
178
|
$columns: m,
|
|
179
179
|
role: d ? "radiogroup" : void 0,
|
|
180
180
|
"aria-label": d ? n : void 0,
|
|
181
|
-
children: e.map((g) => /* @__PURE__ */
|
|
181
|
+
children: e.map((g) => /* @__PURE__ */ s.jsx(E, { ...g }, g.id))
|
|
182
182
|
}
|
|
183
183
|
) });
|
|
184
184
|
};
|
|
185
185
|
export {
|
|
186
186
|
E as OptionSelectCard,
|
|
187
187
|
M as OptionSelectGroup,
|
|
188
|
-
V as OptionSelectGroupWrapper
|
|
188
|
+
V as OptionSelectGroupWrapper,
|
|
189
|
+
M as default
|
|
189
190
|
};
|
|
@@ -9,7 +9,7 @@ export type InputFieldProps = {
|
|
|
9
9
|
endIcon?: React.ReactNode;
|
|
10
10
|
dir?: 'rtl' | 'ltr';
|
|
11
11
|
};
|
|
12
|
-
export declare const EyeIcon: import(
|
|
13
|
-
export declare const VisibleEyeIcon: import(
|
|
12
|
+
export declare const EyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-icons/lib").IconBaseProps, never>> & string & Omit<import("react-icons/lib").IconType, keyof import("react").Component<any, {}, any>>;
|
|
13
|
+
export declare const VisibleEyeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-icons/lib").IconBaseProps, never>> & string & Omit<import("react-icons/lib").IconType, keyof import("react").Component<any, {}, any>>;
|
|
14
14
|
declare const PasswordInputField: React.FC<InputFieldProps>;
|
|
15
15
|
export default PasswordInputField;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PaymentLinkDetailsProps } from './PaymentLinkDetails';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaymentLinkDetailsProps } from './PaymentLinkDetails';
|
|
3
3
|
export type PaymentTooltipProps = {
|
|
4
4
|
title: React.ReactNode;
|
|
5
5
|
subtitle?: React.ReactNode;
|
|
@@ -46,10 +46,10 @@ type CountryCode = {
|
|
|
46
46
|
dialCode: string;
|
|
47
47
|
flag: string;
|
|
48
48
|
};
|
|
49
|
-
export declare const VerticalSeparator: import(
|
|
49
|
+
export declare const VerticalSeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
50
50
|
$error?: string;
|
|
51
51
|
}>> & string;
|
|
52
|
-
export declare const HelperTextWrapper: import(
|
|
52
|
+
export declare const HelperTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
53
53
|
error: string;
|
|
54
54
|
}>> & string;
|
|
55
55
|
declare const PhoneInputField: React.FC<PhoneInputFieldProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BadgeProps } from './Badge';
|
|
3
|
-
import { ButtonProps } from './Button';
|
|
4
|
-
import { LinkProps } from './Link';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BadgeProps } from './Badge';
|
|
3
|
+
import type { ButtonProps } from './Button';
|
|
4
|
+
import { type LinkProps } from './Link';
|
|
5
5
|
export type QuickStartCardProps = {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FeatureItem } from './RequestSummaryCard';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FeatureItem } from './RequestSummaryCard';
|
|
3
3
|
export type RequestCardVariant = 'hidden' | 'accepted' | 'rejected' | 'inProgress';
|
|
4
4
|
type ContentWrapperProps = {
|
|
5
5
|
image?: React.ReactNode;
|
|
@@ -32,13 +32,13 @@ export type RequestCardProps = {
|
|
|
32
32
|
inModal?: boolean;
|
|
33
33
|
background?: string;
|
|
34
34
|
};
|
|
35
|
-
export declare const ContentWrapper: import(
|
|
36
|
-
export declare const TrackingWrap: import(
|
|
37
|
-
export declare const TrackingHeader: import(
|
|
38
|
-
export declare const ProgressBar: import(
|
|
35
|
+
export declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentWrapperProps>> & string;
|
|
36
|
+
export declare const TrackingWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
|
+
export declare const TrackingHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
|
+
export declare const ProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
39
39
|
$color: string;
|
|
40
40
|
$value: number;
|
|
41
41
|
}>> & string;
|
|
42
|
-
export declare const StatusText: import(
|
|
42
|
+
export declare const StatusText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
43
43
|
declare const RequestCard: React.FC<RequestCardProps>;
|
|
44
44
|
export default RequestCard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ButtonVariant } from '
|
|
3
|
-
import { RequestCardVariant } from './RequestCard';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ButtonVariant } from '@hooks/useButtonVariant';
|
|
3
|
+
import { type RequestCardVariant } from './RequestCard';
|
|
4
4
|
type RequestState = 'accepted' | 'rejected';
|
|
5
5
|
export type FeatureVariant = 'default' | 'tag';
|
|
6
6
|
export type FeatureItem = {
|
|
@@ -31,9 +31,9 @@ export type RequestSummaryCardProps = {
|
|
|
31
31
|
trackingLabel?: string;
|
|
32
32
|
imgPadding?: string;
|
|
33
33
|
};
|
|
34
|
-
export declare const FeatureList: import(
|
|
35
|
-
export declare const FeatureRow: import(
|
|
36
|
-
export declare const Bullet: import(
|
|
34
|
+
export declare const FeatureList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
35
|
+
export declare const FeatureRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
36
|
+
export declare const Bullet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
37
37
|
$stroke?: boolean;
|
|
38
38
|
}>> & string;
|
|
39
39
|
declare const RequestSummaryCard: React.FC<RequestSummaryCardProps>;
|