1.0.385 • Published 12 months ago

main-components-ui v1.0.385

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Main Shared Ui components of Front-end

Logo

With the help of this package users can use some accepted (By "some" persons ;) ) component in their own projects

Install

  • Npm
  npm i main-components-ui 
  • Yarn
  yarn add main-components-ui 

Components

Header

App Screenshot

Usage
import { Header } from "main-components-ui";


<Header
	projectTitle={`"Солиқ қарзини ундиришни ташкил қилиш тузилмалари KPI" ахборот тизими`}
	logo={{
		onClick: () => {
			navigate("/");
		},
		img: logo
	}}
	language={{
	options: langOptions,
		onChange(val) {
			i18n.changeLanguage(val);
		}
	}}
	user={{
		name: user?.name.toLowerCase(),
		organizationName: user?.organizationName,
		role: ""
	}}
	search={{
		types: [
			{ label: t("СТИР"), value: 1 },
			{ label: t("ЖШШИР"), value: 2 },
			{ label: t("Инспектор"), value: 3 }
		],
		defaultType: 1,
		onSearch(val, type) {
			console.log(val, type);
		}
	}}
/>

Navbar

App Screenshot

Usage
import { Navbar } from "main-components-ui";

const links = [
		{
			id: 1,
			onClick: () => navigate(`/?${stringify({ saldoDate: queryParams?.saldoDate })}`),
			active: pathname === `/`,
			name: t("Асосий ойна")
		},
		{
			id: 2,
			active: pathname.includes("/info"),
			onClick: () => navigate(`//info/m0?${stringify({ saldoDate: queryParams?.saldoDate })}`),
			name: t("Маълумотлар")
		},
		{
			id: 3,
			active: pathname.includes("/efficiency"),
			onClick: () => navigate(`/efficiency/general?${stringify({ saldoDate: queryParams?.saldoDate })}`),
			name: t("Самарадорлик")
		},
		{
			id: 4,
			active: pathname?.includes("diagramma"),
			onClick: () => navigate(`/diagramma?showChart=true&isAll=true?${stringify({ saldoDate: queryParams?.saldoDate })}`),
			name: t("Динамика")
		}
	];

<Navbar links={links} />

Footer

App Screenshot

Usage
import { Footer } from "main-components-ui";

<Footer />

User List

App Screenshot

Usage
import {InspectorList} from "main-components-ui";

<InspectorList
	colHeight={0}
	onChange={(values) => {
		console.log(values);
	}}
	response={{
		isLoading: false,
		totalCount: 0,
		users: [
			{
				firstRowDetail: "Toshkent, Qibray",
				fullName: "Bekhzod Aliakbarov",
				rating: 100,
				id: 1,
				img: "",
				onClick() {
					console.log(1);
				},
				positionName: "Programmer"
			}
		],
		defaultPage: 0,
		defaultPageSize: 10
	}}
	topButtons={{
		list: []
	}}
	title={"Title"}
	tableScoreTitle={"Some secondary title"}
/>

Used By

This project is used by the following companies:

  • Солиқ қўмитаси

License

MIT

Tech Stack

Client: React, Ant, Design, Typescript, Scss, Rollup

1.0.385

12 months ago

1.0.384

1 year ago

1.0.383

1 year ago

1.0.382

1 year ago

1.0.381

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago