hrm_ui_lib 2.5.1 → 2.5.3
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/assets/images/under-construction.svg +9 -0
- package/assets/styles/styles.css +71 -0
- package/assets/styles/styles.scss +1 -1
- package/components/UnderConstruction/UnderConstruction.d.ts +3 -0
- package/components/UnderConstruction/UnderConstruction.js +12 -0
- package/components/UnderConstruction/index.d.ts +1 -0
- package/components/UnderConstruction/index.js +1 -0
- package/components/UnderConstruction/localization.d.ts +4 -0
- package/components/UnderConstruction/localization.js +14 -0
- package/components/UnderConstruction/types.d.ts +12 -0
- package/components/UnderConstruction/types.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- /package/{Alert-CtY1YM0z.js → Alert-CPS0xpsv.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '../Text';
|
|
3
|
+
import { Image } from '../Image';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import noResultImage from '../../assets/images/under-construction.svg';
|
|
7
|
+
import { SELECT_TRANSLATIONS } from './localization';
|
|
8
|
+
export const UnderConstruction = (props) => {
|
|
9
|
+
const { size = 'large', mainMessage, paragraphMessage, className, illustration = noResultImage, language = 'en' } = props;
|
|
10
|
+
const localizations = SELECT_TRANSLATIONS[language];
|
|
11
|
+
return (_jsxs("div", { className: classNames(`under-construction ${size === 'large' ? 'under-construction--large' : 'under-construction--small'}`, className), children: [_jsx("div", { className: "under-construction__icon", children: _jsx(Image, { imagePath: illustration }) }), _jsxs("div", { className: "under-construction__content", children: [_jsx(Text, { size: size == 'large' ? 'large' : 'medium', weight: "bold", children: mainMessage !== null && mainMessage !== void 0 ? mainMessage : localizations.mainMessage }), _jsx(Text, { size: size == 'large' ? 'standard' : 'small', children: paragraphMessage !== null && paragraphMessage !== void 0 ? paragraphMessage : localizations.paragraphMessage })] })] }));
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UnderConstruction';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UnderConstruction';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const SELECT_TRANSLATIONS = {
|
|
2
|
+
en: {
|
|
3
|
+
mainMessage: 'We will be back soon',
|
|
4
|
+
paragraphMessage: 'We’re currently performing scheduled maintenance to make your experience even better. Please check back soon — we’ll be up and running shortly!'
|
|
5
|
+
},
|
|
6
|
+
ru: {
|
|
7
|
+
mainMessage: 'Скоро вернёмся',
|
|
8
|
+
paragraphMessage: 'В настоящее время мы проводим плановое техническое обслуживание, чтобы сделать ваш опыт ещё лучше. Пожалуйста, зайдите позже — скоро мы возобновим работу!'
|
|
9
|
+
},
|
|
10
|
+
hy: {
|
|
11
|
+
mainMessage: 'Շուտով կվերադառնանք',
|
|
12
|
+
paragraphMessage: 'Մենք աշխատում ենք ձեր փորձառությունը էլ ավելի բարելավելու համար։ Խնդրում ենք վերադառնալ ավելի ուշ, շուտով կլինենք հասանելի։'
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TUnderConstructionProps {
|
|
2
|
+
size?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
mainMessage?: string;
|
|
5
|
+
paragraphMessage?: string;
|
|
6
|
+
illustration?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
}
|
|
9
|
+
export type TUnderConstructionTranslations = {
|
|
10
|
+
mainMessage: string;
|
|
11
|
+
paragraphMessage: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from './components/Text';
|
|
|
45
45
|
export * from './components/Textarea';
|
|
46
46
|
export * from './components/Tooltip';
|
|
47
47
|
export * from './components/SVGIcons';
|
|
48
|
+
export * from './components/UnderConstruction';
|
|
48
49
|
export * from './helperComponents/OptionItem';
|
|
49
50
|
export { FormContext } from './context';
|
|
50
51
|
export { useFormProps } from './hooks';
|
package/index.js
CHANGED
|
@@ -45,6 +45,7 @@ export * from './components/Text';
|
|
|
45
45
|
export * from './components/Textarea';
|
|
46
46
|
export * from './components/Tooltip';
|
|
47
47
|
export * from './components/SVGIcons';
|
|
48
|
+
export * from './components/UnderConstruction';
|
|
48
49
|
export * from './helperComponents/OptionItem';
|
|
49
50
|
export { FormContext } from './context';
|
|
50
51
|
export { useFormProps } from './hooks';
|
package/package.json
CHANGED
|
File without changes
|