mayak-common-library 0.0.1

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/.eslintrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "next/core-web-vitals"
3
+ }
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/next-common-library-2.0.iml" filepath="$PROJECT_DIR$/.idea/next-common-library-2.0.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
@@ -0,0 +1,4 @@
1
+ <svg width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1 7.5L7.5 1" stroke="#343434" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M7.5 7.5L1 1" stroke="#343434" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="13" height="7" viewBox="0 0 13 7" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 6.25L6.5 0.75L1 6.25" stroke="#343434" stroke-linecap="round"/>
3
+ </svg>
package/dist/index.css ADDED
@@ -0,0 +1,35 @@
1
+ /* src/components/Select/styles.css */
2
+ @keyframes fade-In {
3
+ 0% {
4
+ opacity: 0;
5
+ transform: translateY(2rem);
6
+ }
7
+ 100% {
8
+ opacity: 1;
9
+ transform: translateY(0);
10
+ }
11
+ }
12
+ @keyframes fadeOut {
13
+ 0% {
14
+ opacity: 1;
15
+ transform: translateY(0);
16
+ }
17
+ 100% {
18
+ opacity: 0;
19
+ transform: translateY(2rem);
20
+ }
21
+ }
22
+ .menu {
23
+ transition: unset !important;
24
+ ul {
25
+ padding: 5px;
26
+ }
27
+ }
28
+ .menu--close {
29
+ animation: fadeOut 0.4s;
30
+ }
31
+ .menu--open {
32
+ animation: fade-In 0.5s;
33
+ }
34
+
35
+ /* src/components/AppBar/styles.css */
@@ -0,0 +1,112 @@
1
+ import * as react from 'react';
2
+ import react__default, { FC, PropsWithChildren, ReactElement } from 'react';
3
+ import { ButtonProps } from '@mui/material/Button';
4
+ import { IconButtonProps } from '@mui/material/IconButton/IconButton';
5
+ import { SelectProps } from '@mui/material/Select/Select';
6
+ import { ChipProps } from '@mui/material';
7
+ import { BadgeProps } from '@mui/material/Badge/Badge';
8
+ import { AvatarProps } from '@mui/material/Avatar/Avatar';
9
+ import { TypographyOwnProps } from '@mui/material/Typography';
10
+ import { RadioProps } from '@mui/material/Radio';
11
+ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
12
+ import { RadioGroupProps } from '@mui/material/RadioGroup';
13
+ import { SwitchProps } from '@mui/material/Switch/Switch';
14
+ import { SliderProps } from '@mui/material/Slider/Slider';
15
+ import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
16
+ import { InputProps } from '@mui/material/Input';
17
+ import { PatternFormatProps } from 'react-number-format/types/types';
18
+
19
+ declare function Greet(props: {
20
+ name: string;
21
+ }): react.JSX.Element;
22
+
23
+ interface CustomButtonProps extends ButtonProps, PropsWithChildren {
24
+ bolt?: boolean;
25
+ border?: boolean;
26
+ base?: boolean;
27
+ small?: boolean;
28
+ large?: boolean;
29
+ }
30
+ declare const Button: FC<CustomButtonProps>;
31
+
32
+ interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
33
+ }
34
+ declare const IconButton: FC<CustomIconButtonProps>;
35
+
36
+ declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
37
+
38
+ interface SelectProProps {
39
+ placeholder?: string;
40
+ childTitle?: string;
41
+ colorBorder?: boolean;
42
+ clickComponent?: ReactElement;
43
+ fullContainerWidth?: boolean;
44
+ overButton?: boolean;
45
+ small?: boolean;
46
+ }
47
+ declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
48
+
49
+ interface CustomChipProps {
50
+ view: "black" | "line" | "white" | "silver";
51
+ }
52
+ declare const CustomChip: FC<ChipProps & CustomChipProps>;
53
+
54
+ declare const CustomBadge: (props: BadgeProps) => react.JSX.Element;
55
+
56
+ declare const CustomAvatar: (props: AvatarProps) => react.JSX.Element;
57
+
58
+ declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
59
+
60
+ interface CustomRadioProps {
61
+ labelProps?: FormControlLabelProps;
62
+ radioProps?: RadioProps;
63
+ label?: string;
64
+ value?: string;
65
+ }
66
+ declare const CustomRadio: react__default.FC<CustomRadioProps>;
67
+
68
+ declare const CustomRadioGroup: react__default.FC<RadioGroupProps & PropsWithChildren>;
69
+
70
+ interface CustomSwitchProps {
71
+ beforeText?: string;
72
+ afterText?: string;
73
+ }
74
+ declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
75
+
76
+ declare const CustomSlider: FC<SliderProps>;
77
+
78
+ declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
79
+
80
+ interface CustomInputProps {
81
+ type?: "number" | "string";
82
+ adornmentText?: string;
83
+ }
84
+ declare const CustomInput: React.FC<CustomInputProps & InputProps>;
85
+
86
+ interface PhoneInputProps {
87
+ onChange: (event: {
88
+ target: {
89
+ name: string;
90
+ value: string;
91
+ };
92
+ }) => void;
93
+ name: string;
94
+ }
95
+ declare const PhoneInput: react.ForwardRefExoticComponent<PhoneInputProps & react.RefAttributes<PatternFormatProps>>;
96
+
97
+ interface FromToInputProps {
98
+ label?: string;
99
+ }
100
+ declare const FromToInput: FC<FromToInputProps>;
101
+
102
+ declare const Providers: FC<PropsWithChildren>;
103
+
104
+ interface AppBarProps {
105
+ links: {
106
+ href: string;
107
+ title: string;
108
+ }[];
109
+ }
110
+ declare const AppBar: FC<AppBarProps>;
111
+
112
+ export { AppBar, CustomAvatar as Avatar, CustomBadge as Badge, Button, CustomChip as Chip, FromToInput, Greet, IconButton, CustomInput as Input, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, Text };
@@ -0,0 +1,112 @@
1
+ import * as react from 'react';
2
+ import react__default, { FC, PropsWithChildren, ReactElement } from 'react';
3
+ import { ButtonProps } from '@mui/material/Button';
4
+ import { IconButtonProps } from '@mui/material/IconButton/IconButton';
5
+ import { SelectProps } from '@mui/material/Select/Select';
6
+ import { ChipProps } from '@mui/material';
7
+ import { BadgeProps } from '@mui/material/Badge/Badge';
8
+ import { AvatarProps } from '@mui/material/Avatar/Avatar';
9
+ import { TypographyOwnProps } from '@mui/material/Typography';
10
+ import { RadioProps } from '@mui/material/Radio';
11
+ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
12
+ import { RadioGroupProps } from '@mui/material/RadioGroup';
13
+ import { SwitchProps } from '@mui/material/Switch/Switch';
14
+ import { SliderProps } from '@mui/material/Slider/Slider';
15
+ import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
16
+ import { InputProps } from '@mui/material/Input';
17
+ import { PatternFormatProps } from 'react-number-format/types/types';
18
+
19
+ declare function Greet(props: {
20
+ name: string;
21
+ }): react.JSX.Element;
22
+
23
+ interface CustomButtonProps extends ButtonProps, PropsWithChildren {
24
+ bolt?: boolean;
25
+ border?: boolean;
26
+ base?: boolean;
27
+ small?: boolean;
28
+ large?: boolean;
29
+ }
30
+ declare const Button: FC<CustomButtonProps>;
31
+
32
+ interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
33
+ }
34
+ declare const IconButton: FC<CustomIconButtonProps>;
35
+
36
+ declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
37
+
38
+ interface SelectProProps {
39
+ placeholder?: string;
40
+ childTitle?: string;
41
+ colorBorder?: boolean;
42
+ clickComponent?: ReactElement;
43
+ fullContainerWidth?: boolean;
44
+ overButton?: boolean;
45
+ small?: boolean;
46
+ }
47
+ declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
48
+
49
+ interface CustomChipProps {
50
+ view: "black" | "line" | "white" | "silver";
51
+ }
52
+ declare const CustomChip: FC<ChipProps & CustomChipProps>;
53
+
54
+ declare const CustomBadge: (props: BadgeProps) => react.JSX.Element;
55
+
56
+ declare const CustomAvatar: (props: AvatarProps) => react.JSX.Element;
57
+
58
+ declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
59
+
60
+ interface CustomRadioProps {
61
+ labelProps?: FormControlLabelProps;
62
+ radioProps?: RadioProps;
63
+ label?: string;
64
+ value?: string;
65
+ }
66
+ declare const CustomRadio: react__default.FC<CustomRadioProps>;
67
+
68
+ declare const CustomRadioGroup: react__default.FC<RadioGroupProps & PropsWithChildren>;
69
+
70
+ interface CustomSwitchProps {
71
+ beforeText?: string;
72
+ afterText?: string;
73
+ }
74
+ declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
75
+
76
+ declare const CustomSlider: FC<SliderProps>;
77
+
78
+ declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
79
+
80
+ interface CustomInputProps {
81
+ type?: "number" | "string";
82
+ adornmentText?: string;
83
+ }
84
+ declare const CustomInput: React.FC<CustomInputProps & InputProps>;
85
+
86
+ interface PhoneInputProps {
87
+ onChange: (event: {
88
+ target: {
89
+ name: string;
90
+ value: string;
91
+ };
92
+ }) => void;
93
+ name: string;
94
+ }
95
+ declare const PhoneInput: react.ForwardRefExoticComponent<PhoneInputProps & react.RefAttributes<PatternFormatProps>>;
96
+
97
+ interface FromToInputProps {
98
+ label?: string;
99
+ }
100
+ declare const FromToInput: FC<FromToInputProps>;
101
+
102
+ declare const Providers: FC<PropsWithChildren>;
103
+
104
+ interface AppBarProps {
105
+ links: {
106
+ href: string;
107
+ title: string;
108
+ }[];
109
+ }
110
+ declare const AppBar: FC<AppBarProps>;
111
+
112
+ export { AppBar, CustomAvatar as Avatar, CustomBadge as Badge, Button, CustomChip as Chip, FromToInput, Greet, IconButton, CustomInput as Input, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, Text };