tvuikit 0.1.2 → 0.2.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/README.md CHANGED
@@ -1,30 +1,36 @@
1
- # React + TypeScript + Vite
1
+ # tvuikit
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ - UI кит от The Void!
4
4
 
5
- Currently, two official plugins are available:
5
+ ## Разработчик
6
6
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7
+ - [The Void Community](https://github.com/The-Void-Community)
8
+ - ([FOCKUSTY](https://github.com/FOCKUSTY))
9
9
 
10
- ## Expanding the ESLint configuration
10
+ ## Репозиторий
11
11
 
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
12
+ - [tvuikit](https://github.com/The-Void-Community/tvuikit)
13
13
 
14
- - Configure the top-level `parserOptions` property like this:
14
+ ### У нас есть
15
15
 
16
- ```js
17
- export default {
18
- // other rules...
19
- parserOptions: {
20
- ecmaVersion: "latest",
21
- sourceType: "module",
22
- project: ["./tsconfig.json", "./tsconfig.node.json"],
23
- tsconfigRootDir: __dirname,
24
- },
25
- };
26
- ```
16
+ - `Active` — Аналог `Activity` из React, но более удобный
17
+ - `Background` — idk зачем, но пусть будет :)
18
+ - `Button` — Очень крутая кнопка!
19
+ - `Checkbox`, `Radio` и `Switch`
20
+ - `Input` и `Textarea`
21
+ - `Wrapper` — Это для storybook больше, но вдруг пригодится
22
+ - `Modal` — Удобное модальное окно, наверное, надо тестить
27
23
 
28
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
24
+ #### Используем
25
+
26
+ - [Tailwind CSS](https://tailwindcss.com)
27
+ - [Vite](https://vite.dev)
28
+ - [React](https://react.dev)
29
+ - [Storybook](https://storybook.js.org)
30
+ - [Eslint](https://eslint.org)
31
+ - [Prettier](https://prettier.io)
32
+
33
+ #### Вдохновение
34
+
35
+ - [HeroUI](https://www.heroui.com)
36
+ - [MaterialUI](https://mui.com)
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
-
3
2
  type DivProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
4
3
  export type CheckbuttonProps = {
5
4
  inputName?: string;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'react';
2
-
3
2
  export type CheckmarkProps = {
4
3
  size: number | string;
5
4
  ref: Ref<SVGSVGElement | null>;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'react';
2
-
3
2
  export type RoundProps = {
4
3
  size: number | string;
5
4
  ref: Ref<SVGSVGElement | null>;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export type AcitveProps = {
4
3
  actived: boolean;
5
4
  children: ReactNode;
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
-
3
2
  export type BackgroundProps = {
4
3
  imageVar: string;
5
4
  } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,6 +1,5 @@
1
1
  import { ButtonHTMLAttributes, DetailedHTMLProps, ReactNode } from 'react';
2
2
  import { BUTTONS } from '../../variables/colors';
3
-
4
3
  export type ButtonProps = {
5
4
  children: ReactNode;
6
5
  variant?: keyof typeof BUTTONS;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { BUTTONS } from '../../variables/colors';
3
-
4
3
  export type PageProps = {
5
4
  buttonChildren: ReactNode;
6
5
  buttonType: keyof typeof BUTTONS;
@@ -1,5 +1,4 @@
1
1
  import { CheckbuttonProps } from '../../assets/checkbutton';
2
-
3
2
  export type CheckboxProps = Omit<CheckbuttonProps, "type">;
4
3
  export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Checkbox;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,9 +1,9 @@
1
- export * from './button';
1
+ export * from './active';
2
2
  export * from './background';
3
+ export * from './button';
4
+ export * from './checkbox';
3
5
  export * from './input';
4
- export * from './wrapper';
5
6
  export * from './modal';
6
- export * from './active';
7
- export * from './checkbox';
8
7
  export * from './switch';
8
+ export * from './wrapper';
9
9
  export * as Guildline from './guideline';
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
-
3
2
  export type InputProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
4
3
  export declare const Input: ({ className, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Input;
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, TextareaHTMLAttributes } from 'react';
2
-
3
2
  export type TextareaProps = DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
4
3
  export declare const Textarea: ({ className, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Textarea;
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes, Key } from 'react';
2
-
3
2
  export type ModalProps = {
4
3
  container: Element | DocumentFragment;
5
4
  portalKey?: Key | null;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,5 +1,4 @@
1
1
  import { CheckbuttonProps } from '../../assets/checkbutton';
2
-
3
2
  export type RadioProps = Omit<CheckbuttonProps, "type">;
4
3
  export declare const Radio: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Radio;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Page } from './story';
3
-
4
3
  declare const meta: Meta<typeof Page>;
5
4
  type Story = StoryObj<typeof Page>;
6
5
  export declare const Default: Story;
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
-
3
2
  export type RadiocheckboxProps = {
4
3
  inputName?: string;
5
4
  inputId?: string;
@@ -1,5 +1,4 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
-
3
2
  export type WrapperProps = {
4
3
  flexDirection?: "col" | "row";
5
4
  } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
@@ -1 +1,2 @@
1
1
  export * from './index'
2
+ export {}