@tap-payments/auth-jsconnect 2.4.90-test → 2.4.92-test

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.
@@ -24,8 +24,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import React, { memo } from 'react';
25
25
  import { Calendar, toDateObject } from 'react-multi-date-picker';
26
26
  import arabic from 'react-date-object/calendars/arabic';
27
- import arabic_ar from 'react-date-object/locales/arabic_ar';
28
- import arabic_en from 'react-date-object/locales/arabic_en';
29
27
  import Box from '@mui/material/Box';
30
28
  import { styled } from '@mui/material/styles';
31
29
  import Divider from '@mui/material/Divider';
@@ -36,6 +34,8 @@ import { getEighteenYearsAgo } from '../../utils';
36
34
  import { EndAdornmentExpanded } from '../../features/shared/EndAdornment';
37
35
  import Input from '../Input';
38
36
  import Text from '../Text';
37
+ import arabic_en from './arabicEn';
38
+ import arabic_ar from './arabicAr';
39
39
  import './style.css';
40
40
  var ContainerIcon = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
41
41
  var theme = _a.theme, disabled = _a.disabled;
@@ -0,0 +1,8 @@
1
+ declare const arabic_ar: {
2
+ name: string;
3
+ months: string[][];
4
+ weekDays: string[][];
5
+ digits: string[];
6
+ meridiems: string[][];
7
+ };
8
+ export default arabic_ar;
@@ -0,0 +1,32 @@
1
+ var arabic_ar = {
2
+ name: 'arabic_ar',
3
+ months: [
4
+ ['محرم', 'محرم'],
5
+ ['صفر', 'صفر'],
6
+ ['ربیع الاول', 'ربیع الاول'],
7
+ ['ربیع الثانی', 'ربیع الثانی'],
8
+ ['جمادی الاول', 'جمادی الاول'],
9
+ ['جمادی الثانی', 'جمادی الثانی'],
10
+ ['رجب', 'رجب'],
11
+ ['شعبان', 'شعبان'],
12
+ ['رمضان', 'رمضان'],
13
+ ['شوال', 'شوال'],
14
+ ['ذی القعده ', 'ذی القعده'],
15
+ ['ذی الحجه', 'ذی الحجه']
16
+ ],
17
+ weekDays: [
18
+ ['السّبت', 'سب'],
19
+ ['الأحد', 'اح'],
20
+ ['الإثنينِ', 'ثن'],
21
+ ['الثلاثاء', 'ثل'],
22
+ ['الأربعاء', 'ار'],
23
+ ['الخميس', 'خم'],
24
+ ['الجمعة', 'جم']
25
+ ],
26
+ digits: ['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'],
27
+ meridiems: [
28
+ ['قبل الظهر', 'ق.ظ'],
29
+ ['بعد الظهر', 'ب.ظ']
30
+ ]
31
+ };
32
+ export default arabic_ar;
@@ -0,0 +1,8 @@
1
+ declare const arabic_en: {
2
+ name: string;
3
+ months: string[][];
4
+ weekDays: string[][];
5
+ digits: string[];
6
+ meridiems: string[][];
7
+ };
8
+ export default arabic_en;
@@ -0,0 +1,32 @@
1
+ var arabic_en = {
2
+ name: 'arabic_en',
3
+ months: [
4
+ ['Muharram', 'Mu'],
5
+ ['Safar', 'Sa'],
6
+ ['Rabi`al-Awwal', 'RI'],
7
+ ['Rabi`ath-Thani', 'RII'],
8
+ ['Jumada l-Ula', 'JI'],
9
+ ['Jumada t-Tania', 'JII'],
10
+ ['Rajab', 'Ra'],
11
+ ['Sha`ban', 'Sh'],
12
+ ['Ramadan', 'Ra'],
13
+ ['Shawwal', 'Sh'],
14
+ ['Dhu l-Qa`da ', 'DhQ'],
15
+ ['Dhu l-Hijja', 'DhH']
16
+ ],
17
+ weekDays: [
18
+ ['as-sabt', 'Sab'],
19
+ ["al-'ahad", 'Aha'],
20
+ ["al-'ithnayn", 'Ith'],
21
+ ['ath-thalatha', 'Tha'],
22
+ ["al-'arb`a'", 'Arb'],
23
+ ['al-khamis', 'Kha'],
24
+ ['al-jum`a', 'Jum']
25
+ ],
26
+ digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
27
+ meridiems: [
28
+ ['AM', 'am'],
29
+ ['PM', 'pm']
30
+ ]
31
+ };
32
+ export default arabic_en;
@@ -88,7 +88,7 @@ export var MerchantValidationSchema = function (isNewBrand) {
88
88
  termAndConditionChecked: yup.boolean().isTrue('check_terms_cond').required('check_terms_cond'),
89
89
  salesChannels: yup
90
90
  .array()
91
- .min(1, 'choose_atleast_one_channel')
91
+ .min(1, ' ')
92
92
  .of(yup.object().shape({
93
93
  id: yup.string().required('choose_atleast_one_channel')
94
94
  }))
@@ -109,7 +109,7 @@ export var MerchantValidationSchema = function (isNewBrand) {
109
109
  return yup.object().shape({
110
110
  salesChannels: yup
111
111
  .array()
112
- .min(1, 'choose_atleast_one_channel')
112
+ .min(1, ' ')
113
113
  .of(yup.object().shape({
114
114
  id: yup.string().required('choose_atleast_one_channel')
115
115
  }))
@@ -51,6 +51,6 @@ var CustomCalender = function (_a) {
51
51
  }, onDatePicked: function () {
52
52
  onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false);
53
53
  setOpen(false);
54
- }, onDateChange: onDateChange, value: defaultValue }) })), _jsx(Collapse, __assign({ in: false }, { children: _jsx(SwitchBoxStyled, __assign({ onClick: onSwitchCalender }, { children: _jsxs(_Fragment, { children: [_jsx(Icon, { src: !isHijriCalender ? ICONS_NAMES.SWITCH_HIJRI_CALENDER : ICONS_NAMES.SWITCH_CALENDER }), !isHijriCalender ? t('switch_to_islamic_calendar') : t('switch_to_gregorian_calendar')] }) })) }))] }));
54
+ }, onDateChange: onDateChange, value: defaultValue }) })), _jsx(Collapse, __assign({ in: open }, { children: _jsx(SwitchBoxStyled, __assign({ onClick: onSwitchCalender }, { children: _jsxs(_Fragment, { children: [_jsx(Icon, { src: !isHijriCalender ? ICONS_NAMES.SWITCH_HIJRI_CALENDER : ICONS_NAMES.SWITCH_CALENDER }), !isHijriCalender ? t('switch_to_islamic_calendar') : t('switch_to_gregorian_calendar')] }) })) }))] }));
55
55
  };
56
56
  export default CustomCalender;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.4.90-test",
3
+ "version": "2.4.92-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",