kamotive_ui 1.0.0 → 1.1.0

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/dist/index.d.ts CHANGED
@@ -1,24 +1,46 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChangeEventHandler } from 'react';
3
+
1
4
  declare module 'kamotive_ui' {
2
- import * as React from 'react';
3
-
4
- // Типы для Button
5
- export interface ButtonProps {
6
- label: string;
7
- variant?: 'primary' | 'secondary' | 'danger';
8
- size?: 'small' | 'medium' | 'large';
9
- onClick?: () => void;
10
- backgroundColor?: string;
11
- primary?: boolean;
12
- }
13
-
14
- export const Button: React.FC<ButtonProps>;
15
-
16
- // Типы для Input
17
- export interface InputProps {
18
- value: string;
19
- onChange: (value: string) => void;
20
- placeholder?: string;
21
- }
22
-
23
- export const Input: React.FC<InputProps>;
24
- }
5
+ import * as React from 'react';
6
+
7
+ // Типы для Button
8
+ export interface ButtonProps {
9
+ // Текст кнопки
10
+ label?: string;
11
+ //Вид кнопки (заполненный/обводка/ссылка)
12
+ variant?: 'fill' | 'outline' | 'link';
13
+ //Размер кнопки
14
+ size?: 'sm' | 'md' | 'lg';
15
+ //Стиль кнопки(текст+иконка, текст, иконка)
16
+ style?: 'default' | 'text' | 'icon';
17
+ //Состояние кнопки
18
+ condition?: 'default' | 'error' | 'success' | 'warning' | 'info';
19
+ icon?: React.ReactNode;
20
+ disabled?: boolean;
21
+ onClick?: () => void;
22
+ }
23
+
24
+ export const Button: React.FC<ButtonProps>;
25
+
26
+ // Типы для Input
27
+ export interface InputProps {
28
+ id?: string;
29
+ className?: string;
30
+ value?: string;
31
+ label?: string;
32
+ placeholder?: string;
33
+ size?: 'sm' | 'md' | 'lg';
34
+ onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
35
+ icon?: ReactNode;
36
+ hasError?: boolean;
37
+ helperText?: ReactNode;
38
+ disabled?: boolean;
39
+ readOnly?: boolean;
40
+ isLeftLabel?: boolean;
41
+ multiline?: boolean;
42
+ resize?: boolean;
43
+ }
44
+
45
+ export const Input: React.FC<InputProps>;
46
+ }
package/dist/index.js CHANGED
@@ -1,3 +1,9 @@
1
+ /* eslint-disable no-empty */
2
+ /* eslint-disable @typescript-eslint/no-unused-vars */
3
+ /* eslint-disable no-prototype-builtins */
4
+ /* eslint-disable @typescript-eslint/no-require-imports */
5
+ /* eslint-disable no-undef */
6
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
1
7
  (function(T,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(T=typeof globalThis<"u"?globalThis:T||self,j(T.MyUILibrary={},T.React))})(this,function(T,j){"use strict";var M={exports:{}},I={};/**
2
8
  * @license React
3
9
  * react-jsx-runtime.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kamotive_ui",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -9,19 +9,22 @@
9
9
  "test": "echo \"Error: no test specified\" && exit 1",
10
10
  "build": "vite build ",
11
11
  "storybook": "storybook dev -p 6006 -c ./config/storybook",
12
- "build-storybook": "storybook build -c ./config/storybook"
12
+ "build-storybook": "storybook build -c ./config/storybook",
13
+ "lint": "eslint ."
13
14
  },
14
15
  "keywords": [],
15
16
  "author": "",
16
17
  "license": "ISC",
17
18
  "description": "Библиотека UI-компонентов для использования в приложении",
18
19
  "dependencies": {
20
+ "classnames": "^2.5.1",
19
21
  "clsx": "^2.1.1",
20
22
  "react": "^18.3.1",
21
23
  "react-dom": "^18.3.1"
22
24
  },
23
25
  "devDependencies": {
24
26
  "@chromatic-com/storybook": "^3.2.2",
27
+ "@eslint/js": "^9.16.0",
25
28
  "@storybook/addon-essentials": "^8.4.7",
26
29
  "@storybook/addon-interactions": "^8.4.7",
27
30
  "@storybook/addon-onboarding": "^8.4.7",
@@ -32,8 +35,13 @@
32
35
  "@types/react": "^18.3.12",
33
36
  "@types/react-dom": "^18.3.1",
34
37
  "@vitejs/plugin-react": "^4.3.4",
38
+ "eslint": "^9.16.0",
39
+ "eslint-plugin-react": "^7.37.2",
40
+ "globals": "^15.13.0",
41
+ "prettier": "^3.4.2",
35
42
  "storybook": "^8.4.7",
36
43
  "typescript": "^5.7.2",
44
+ "typescript-eslint": "^8.18.0",
37
45
  "vite": "^6.0.2",
38
46
  "vite-plugin-static-copy": "^2.2.0"
39
47
  }