@redneckz/wildless-cms-uni-blocks 0.14.790 → 0.14.792
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/bundle/bundle.umd.js +7 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/dist/components/Header/HeaderSecondaryMenuButton.js +3 -2
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +2 -1
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/lib/components/Header/HeaderSecondaryMenuButton.js +3 -2
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +2 -1
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/mobile/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +3 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +2 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +3 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +2 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -0
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +8 -0
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +2 -0
- package/package.json +1 -1
- package/src/components/Header/HeaderChatBotButton.tsx +1 -0
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +8 -0
- package/src/retail/adaptors/getPersonalInfoData.tsx +2 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -7702,7 +7702,7 @@
|
|
|
7702
7702
|
};
|
|
7703
7703
|
|
|
7704
7704
|
const getPersonalInfoData = (formData) => {
|
|
7705
|
-
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
7705
|
+
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, addressMatch, } = formData;
|
|
7706
7706
|
return {
|
|
7707
7707
|
birthDate: formatDate(limitedBirthday, true),
|
|
7708
7708
|
midname: middleName,
|
|
@@ -7716,6 +7716,7 @@
|
|
|
7716
7716
|
dulSubdivisionCode,
|
|
7717
7717
|
educationLevelCd: education,
|
|
7718
7718
|
registrationDate: formatDate(participantDateRegistration, true),
|
|
7719
|
+
homeMatchFlg: addressMatch,
|
|
7719
7720
|
houseTypeCd: housing,
|
|
7720
7721
|
participantContacts: getParticipantContacts$1({
|
|
7721
7722
|
phone: formatPhone(phone),
|
|
@@ -9726,15 +9727,16 @@
|
|
|
9726
9727
|
default: 'w-6 h-6',
|
|
9727
9728
|
large: 'w-12 h-12',
|
|
9728
9729
|
};
|
|
9729
|
-
const HeaderSecondaryMenuButton = JSX(({ className, isRounded, buttonSize = 'default', isGrayBg = false, disabled, ariaLabel = 'Меню второго уровня', image, data, onClick, version, isLoading, }) => {
|
|
9730
|
+
const HeaderSecondaryMenuButton = JSX(({ className, isRounded, buttonSize = 'default', isGrayBg = false, disabled, ariaLabel = 'Меню второго уровня', image, data, onClick, version, isLoading, dataTestId = '', }) => {
|
|
9730
9731
|
const grayBg = isGrayBg && !isRounded ? 'bg-main-divider' : '';
|
|
9731
9732
|
const bgColor = version === 'transparent' ? 'backdrop-opacity-30 bg-white/30' : grayBg;
|
|
9732
9733
|
return (jsx("button", { className: style('group/btn border-0 flex shrink-0 items-center', isGrayBg ? 'p-s rounded-full' : 'p-0 bg-inherit', bgColor, isRounded
|
|
9733
9734
|
? 'w-8 h-8 text-secondary-light hover:text-secondary-hove'
|
|
9734
|
-
: `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`, 'group-data-transparent:text-white', className), type: "button", disabled: disabled, "aria-label": ariaLabel, onClick: onClick, ...getAspectsAttributes(data), children: isLoading ? (jsx("div", { className: "w-full h-full rounded-full border-4 border-r-transparent animate-spin text-primary-main" })) : (jsx(Img, { image: image, className: style('h-full', {
|
|
9735
|
+
: `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`, 'group-data-transparent:text-white', className), type: "button", disabled: disabled, "aria-label": ariaLabel, onClick: onClick, ...getDataTestIdAttribute(dataTestId), ...getAspectsAttributes(data), children: isLoading ? (jsx("div", { className: "w-full h-full rounded-full border-4 border-r-transparent animate-spin text-primary-main" })) : (jsx(Img, { image: image, className: style('h-full', {
|
|
9735
9736
|
'bg-main-divider/20 rounded-full': isRounded,
|
|
9736
9737
|
}), imageClassName: "group-hover/btn:text-primary-hover group-hover/btn:invert-0" })) }));
|
|
9737
9738
|
});
|
|
9739
|
+
const getDataTestIdAttribute = (dataTestId) => dataTestId ? { 'data-test-id': dataTestId } : null;
|
|
9738
9740
|
|
|
9739
9741
|
const CHAT_NAMESPACE = 'chatbot';
|
|
9740
9742
|
const CHAT_BUTTON_EXTERNAL_NAME = 'text-page__btn-chat';
|
|
@@ -9796,7 +9798,7 @@
|
|
|
9796
9798
|
|
|
9797
9799
|
const HeaderChatBotButton = JSX(({ chat = 'personal', iconVersion, className, ariaLabel = 'Чат', version }) => {
|
|
9798
9800
|
const { load, isLoading } = useChatBot(chat);
|
|
9799
|
-
return (jsx(HeaderSecondaryMenuButton, { className: className, image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: ariaLabel, onClick: load, buttonSize: "large", isGrayBg: true, version: version, isLoading: isLoading }));
|
|
9801
|
+
return (jsx(HeaderSecondaryMenuButton, { className: className, image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: ariaLabel, onClick: load, buttonSize: "large", isGrayBg: true, version: version, isLoading: isLoading, dataTestId: "chat icon" }));
|
|
9800
9802
|
});
|
|
9801
9803
|
|
|
9802
9804
|
const HeaderItem = JSX(({ className = '', active, dataItemName, children, data, ...rest }) => {
|
|
@@ -11264,7 +11266,7 @@
|
|
|
11264
11266
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11265
11267
|
});
|
|
11266
11268
|
|
|
11267
|
-
const packageVersion = "0.14.
|
|
11269
|
+
const packageVersion = "0.14.791";
|
|
11268
11270
|
|
|
11269
11271
|
exports.Blocks = Blocks;
|
|
11270
11272
|
exports.ContentPage = ContentPage;
|