md-components-mdigial-azamat 0.0.51 → 0.0.54

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.
Files changed (27) hide show
  1. package/README.md +100 -29
  2. package/dist/AllComponents.js +2 -2
  3. package/dist/Banner/Banner.js +1 -1
  4. package/dist/CardImageList/CardImageList.js +1 -1
  5. package/dist/CardInfoTable/index.js +1 -1
  6. package/dist/Cards/ContentCard/ContentCard.js +1 -1
  7. package/dist/Cards/WarningCard/WarningCard.js +1 -1
  8. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  9. package/dist/DownloadFile/components/DownloadFileBright/index.js +1 -1
  10. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  11. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  12. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  13. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1 -1
  14. package/dist/Header/components/HeaderCard/HeaderCard.js +1 -1
  15. package/dist/InfoBanner/index.js +1 -1
  16. package/dist/InstructionList/InstructionList.js +1 -1
  17. package/dist/IntroBanner/IntroBanner.js +1 -1
  18. package/dist/MainBanner/MainBanner.js +1 -1
  19. package/dist/PreviewList/PreviewList.js +1 -1
  20. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +1 -1
  21. package/dist/RenderAllComponents/const.js +1 -1
  22. package/dist/StandartTable/components/CardWarning/index.js +1 -1
  23. package/dist/Stepper/Stepper.js +1 -1
  24. package/dist/VideoMainBanner/VideoMainBanner.js +1 -1
  25. package/dist/{data.mock-61df66ed.js → data.mock-8d89834d.js} +10 -14
  26. package/dist/{index-10605794.js → index-1211cb6b.js} +14 -14
  27. package/package.json +1 -1
package/README.md CHANGED
@@ -1,57 +1,128 @@
1
- <img width="500" alt="ViteReactComponentLibrary" src="https://github.com/receter/my-component-library/assets/2504695/dbb53036-d228-477b-8cf8-f61cd6130776">
2
1
 
3
- # A simple (demo) react component library
4
2
 
5
- This repository was published together with an article on [how to create a react component library](https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-4lma) using Vite's library mode.
3
+ npm version patch
4
+ npm run build
5
+ npm publish
6
6
 
7
- Here is another repo that consumes this libarary: https://github.com/receter/my-component-library-consumer
8
7
 
9
- The demo library on npm: https://www.npmjs.com/package/@receter/my-component-library
8
+ # MBank UI Component Library
10
9
 
11
- ## Installation
10
+ Библиотека компонентов для MBank - современная UI библиотека на React + TypeScript + Vite.
12
11
 
13
- You can install it with npm (don't expect much fanciness):
12
+ ## 📦 Установка
14
13
 
15
14
  ```bash
16
- npm i @receter/my-component-library
15
+ npm install md-components-mdigial-azamat
17
16
  ```
18
17
 
19
- ## Usage
18
+ ## 🚀 Использование
20
19
 
21
20
  ```javascript
22
- import { Button, Input, Label } from '@receter/my-component-library'
21
+ import { Banner, MainBanner, Header, Footer } from 'md-components-mdigial-azamat'
23
22
  ```
24
23
 
25
- See this file for an example on using this library: https://github.com/receter/my-component-library-consumer/blob/main/src/App.tsx
24
+ ## 📚 Документация
26
25
 
27
- ## React + TypeScript + Vite
26
+ Полная документация по всем компонентам и их пропсам доступна в файле [COMPONENTS.md](./COMPONENTS.md).
28
27
 
29
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
28
+ ### Категории компонентов
30
29
 
31
- Currently, two official plugins are available:
30
+ Библиотека содержит **45+ компонентов**, разделенных на 12 категорий:
32
31
 
33
- - [@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
34
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
32
+ - **Хедеры** - верхняя навигационная часть страницы
33
+ - **Баннеры** - информационные и рекламные блоки (9 компонентов)
34
+ - **Футеры** - нижняя часть страницы
35
+ - **Карточки** - интерактивные карточки с информацией (10 компонентов)
36
+ - **FAQ** - компоненты для часто задаваемых вопросов
37
+ - **Списки** - компоненты для отображения списков элементов (6 компонентов)
38
+ - **Видео** - компоненты для воспроизведения видео (3 компонента)
39
+ - **Таблицы** - компоненты для табличных данных (2 компонента)
40
+ - **Навигация** - компоненты для навигации
41
+ - **Шаги** - компоненты для многошаговых процессов
42
+ - **Загрузка файлов** - компоненты для скачивания файлов (5 компонентов)
43
+ - **Отступы** - компоненты для создания отступов
35
44
 
36
- ### Expanding the ESLint configuration
45
+ ## 🛠 Разработка
37
46
 
38
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
47
+ ### Технологии
39
48
 
40
- - Configure the top-level `parserOptions` property like this:
49
+ - **React 18** - UI библиотека
50
+ - **TypeScript** - типизация
51
+ - **Vite** - сборщик и dev-сервер
52
+ - **Tailwind CSS** - стилизация
53
+ - **ESLint + Prettier** - линтинг и форматирование
54
+
55
+ ### Доступные команды
56
+
57
+ ```bash
58
+ # Запуск dev-сервера
59
+ npm run dev
60
+
61
+ # Сборка библиотеки
62
+ npm run build
63
+
64
+ # Линтинг кода
65
+ npm run lint
66
+
67
+ # Форматирование кода
68
+ npm run prettier
69
+
70
+ # Предпросмотр сборки
71
+ npm run preview
72
+ ```
73
+
74
+ ### Структура проекта
41
75
 
42
- ```js
43
- parserOptions: {
44
- ecmaVersion: 'latest',
45
- sourceType: 'module',
46
- project: ['./tsconfig.json', './tsconfig.node.json'],
47
- tsconfigRootDir: __dirname,
48
- },
76
+ ```
77
+ src/
78
+ ├── components/ # Компоненты библиотеки
79
+ │ ├── Banner/ # Компонент баннера
80
+ │ ├── MainBanner/ # Главный баннер
81
+ │ ├── Header/ # Хедер
82
+ ├── Footer/ # Футер
83
+ │ └── ... # Другие компоненты
84
+ ├── shared/ # Общие утилиты и типы
85
+ │ ├── ui/ # UI компоненты
86
+ │ ├── types/ # TypeScript типы
87
+ │ └── utils/ # Утилиты
88
+ └── ...
49
89
  ```
50
90
 
51
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
52
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
53
- - 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
91
+ ## 📝 Публикация пакета
54
92
 
93
+ ```bash
94
+ # Обновление версии (patch/minor/major)
55
95
  npm version patch
96
+
97
+ # Сборка проекта
56
98
  npm run build
99
+
100
+ # Публикация в npm registry
57
101
  npm publish
102
+ ```
103
+
104
+ **Важно:** Убедитесь, что вы авторизованы в npm и имеете права на публикацию пакета:
105
+ ```bash
106
+ npm login
107
+ ```
108
+
109
+ ## 🔧 Конфигурация ESLint
110
+
111
+ Для продакшн приложений рекомендуется расширить конфигурацию ESLint:
112
+
113
+ ```js
114
+ parserOptions: {
115
+ ecmaVersion: 'latest',
116
+ sourceType: 'module',
117
+ project: ['./tsconfig.json', './tsconfig.node.json'],
118
+ tsconfigRootDir: __dirname,
119
+ }
120
+ ```
121
+
122
+ ## 📄 Лицензия
123
+
124
+ Проект разработан для MBank.
125
+
126
+ ## 👤 Автор
127
+
128
+ **Azamat Raimbekov**
@@ -1,4 +1,4 @@
1
- import { M as o, B as t, C as n, S as r, a as e, V as a, b as i, c as p, d as m, e as s, f as d, P as l, g as c, W as D, F as L, D as f, h as C, i as B, j as F, I as y, k, l as w, A as I, m as S, T as _, n as g, E as M, o as P, p as V, q as u, r as T, s as b, t as A } from "./data.mock-61df66ed.js";
1
+ import { M as o, B as t, C as n, S as r, a as e, V as a, b as i, c as p, d as m, e as s, f as d, P as l, g as c, W as D, F as L, D as f, h as C, i as B, j as F, I as y, k, l as w, A as I, m as S, T as _, n as g, E as M, o as P, p as V, q as u, r as T, s as b, t as A } from "./data.mock-8d89834d.js";
2
2
  import H from "./AnimatedSwiper/index.js";
3
3
  import { Banner as h } from "./Banner/Banner.js";
4
4
  import { CardIconList as q } from "./CardIconList/CardIconList.js";
@@ -44,7 +44,7 @@ import { DownloadFileMini as Do } from "./DownloadFile/components/DownloadFileMi
44
44
  import "./Faq/components/Collapse/Collapse.js";
45
45
  import "react/jsx-runtime";
46
46
  import "react";
47
- import "./index-10605794.js";
47
+ import "./index-1211cb6b.js";
48
48
  import "./const-53dff524.js";
49
49
  import "./InstructionList/components/InstructionCard/InstructionCard.js";
50
50
  import "./PreviewList/components/PreviewCard/PreviewCard.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
2
  import { FieldTypes as x } from "../Types/FiledTypes.js";
3
- import { B as b } from "../index-10605794.js";
3
+ import { B as b } from "../index-1211cb6b.js";
4
4
  import { B as N, c as _ } from "../const-53dff524.js";
5
5
  import { C as y } from "../ComponentContainer-cdb2528c.js";
6
6
  import { I as g } from "../index-2265d593.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
2
  import { CardImage as n } from "../Cards/CardImage/CardImage.js";
3
3
  import { CardImageVariant as o } from "../Cards/CardImage/types.js";
4
4
  import { FieldTypes as t } from "../Types/FiledTypes.js";
5
- import { B as c } from "../index-10605794.js";
5
+ import { B as c } from "../index-1211cb6b.js";
6
6
  import { B as d } from "../const-53dff524.js";
7
7
  import { C as f } from "../ComponentContainer-cdb2528c.js";
8
8
  import { c as m } from "../cn-6a4bf187.js";
@@ -3,7 +3,7 @@ import { forwardRef as g } from "react";
3
3
  import { FieldTypes as i } from "../Types/FiledTypes.js";
4
4
  import { C as h } from "../ComponentContainer-cdb2528c.js";
5
5
  import { c as p } from "../cn-6a4bf187.js";
6
- import { B as y } from "../index-10605794.js";
6
+ import { B as y } from "../index-1211cb6b.js";
7
7
  import { b as w, a as u } from "../const-53dff524.js";
8
8
  import { I as _ } from "../index-2265d593.js";
9
9
  const d = {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
2
  import { HtmlContent as o } from "../../HtmlContent/HtmlContent.js";
3
- import { B as t } from "../../index-10605794.js";
3
+ import { B as t } from "../../index-1211cb6b.js";
4
4
  import { c as s } from "../../const-53dff524.js";
5
5
  import { I as d } from "../../index-2265d593.js";
6
6
  const x = [
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
2
  import { warningCardVariant as p, WarningCardVariant as e, WarningCardVariantKey as m } from "./model.js";
3
3
  import { I as x } from "../../Icon-70ea6cb8.js";
4
4
  import { B as f } from "../../const-53dff524.js";
5
- import { B as g } from "../../index-10605794.js";
5
+ import { B as g } from "../../index-1211cb6b.js";
6
6
  import { C } from "../../ComponentContainer-cdb2528c.js";
7
7
  import { c as h } from "../../cn-6a4bf187.js";
8
8
  const u = [
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { I as o } from "../../../Icon-70ea6cb8.js";
3
3
  import { p as t } from "../../../palette-6c943596.js";
4
- import { B as n } from "../../../index-10605794.js";
4
+ import { B as n } from "../../../index-1211cb6b.js";
5
5
  import { C as s } from "../../../ComponentContainer-cdb2528c.js";
6
6
  const c = ["title", "text", "link"], m = ({
7
7
  title: a,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { B as b } from "../../../index-10605794.js";
2
+ import { B as b } from "../../../index-1211cb6b.js";
3
3
  import { C as r } from "../../../ComponentContainer-cdb2528c.js";
4
4
  import { I as n } from "../../../index-2265d593.js";
5
5
  import { c } from "../../../cn-6a4bf187.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { DataTypesEnum as s, FieldTypes as o } from "../../../Types/FiledTypes.js";
3
3
  import { I as r } from "../../../Icon-70ea6cb8.js";
4
4
  import { p as n } from "../../../palette-6c943596.js";
5
- import { B as i } from "../../../index-10605794.js";
5
+ import { B as i } from "../../../index-1211cb6b.js";
6
6
  import { b as p } from "../../../const-53dff524.js";
7
7
  import { C as c } from "../../../ComponentContainer-cdb2528c.js";
8
8
  const d = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { I as n } from "../../../Icon-70ea6cb8.js";
3
3
  import { p as e } from "../../../palette-6c943596.js";
4
- import { B as s } from "../../../index-10605794.js";
4
+ import { B as s } from "../../../index-1211cb6b.js";
5
5
  import { b as c } from "../../../const-53dff524.js";
6
6
  import { C as i } from "../../../ComponentContainer-cdb2528c.js";
7
7
  const p = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r("div", { className: "grid grid-cols-2 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((o) => /* @__PURE__ */ a(
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as e } from "react/jsx-runtime";
2
2
  import { DataTypesEnum as s, FieldTypes as r } from "../../../Types/FiledTypes.js";
3
3
  import { I as n } from "../../../Icon-70ea6cb8.js";
4
4
  import { p } from "../../../palette-6c943596.js";
5
- import { B as i } from "../../../index-10605794.js";
5
+ import { B as i } from "../../../index-1211cb6b.js";
6
6
  import { b as t } from "../../../const-53dff524.js";
7
7
  import { C as d } from "../../../ComponentContainer-cdb2528c.js";
8
8
  const b = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as ie, jsxs as De } from "react/jsx-runtime";
2
2
  import M, { useState as wt } from "react";
3
- import { B as $e } from "../../../index-10605794.js";
3
+ import { B as $e } from "../../../index-1211cb6b.js";
4
4
  import { a as je, b as Ke } from "../../../const-53dff524.js";
5
5
  var ce = (e) => e.type === "checkbox", re = (e) => e instanceof Date, B = (e) => e == null;
6
6
  const lt = (e) => typeof e == "object";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
- import { B as r } from "../../../index-10605794.js";
2
+ import { B as r } from "../../../index-1211cb6b.js";
3
3
  import { b as o, a as i } from "../../../const-53dff524.js";
4
4
  import { I as t } from "../../../index-2265d593.js";
5
5
  const p = ({ data: e }) => e ? /* @__PURE__ */ l(
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as t } from "react/jsx-runtime";
2
2
  import { c as l, a as x } from "../cn-6a4bf187.js";
3
3
  import { FieldTypes as n } from "../Types/FiledTypes.js";
4
- import { B as m } from "../index-10605794.js";
4
+ import { B as m } from "../index-1211cb6b.js";
5
5
  import { I as s } from "../index-2265d593.js";
6
6
  import { u as p } from "../useScreenSize-c1b64c02.js";
7
7
  const c = {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { B as a } from "../index-10605794.js";
2
+ import { B as a } from "../index-1211cb6b.js";
3
3
  import { c as i } from "../const-53dff524.js";
4
4
  import { C as p } from "../ComponentContainer-cdb2528c.js";
5
5
  import { InstructionCardData as m, InstructionCard as l } from "./components/InstructionCard/InstructionCard.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { B as b } from "../index-10605794.js";
2
+ import { B as b } from "../index-1211cb6b.js";
3
3
  import { C as c } from "../ComponentContainer-cdb2528c.js";
4
4
  import { I as e } from "../index-2265d593.js";
5
5
  import { u as d } from "../useScreenSize-c1b64c02.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
- import { B as f } from "../index-10605794.js";
2
+ import { B as f } from "../index-1211cb6b.js";
3
3
  import { c as d } from "../const-53dff524.js";
4
4
  import { C as b } from "../ComponentContainer-cdb2528c.js";
5
5
  import { I as t } from "../index-2265d593.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { B as c } from "../index-10605794.js";
2
+ import { B as c } from "../index-1211cb6b.js";
3
3
  import { c as d } from "../const-53dff524.js";
4
4
  import { C as l } from "../ComponentContainer-cdb2528c.js";
5
5
  import { PreviewCardData as x, PreviewCard as t } from "./components/PreviewCard/PreviewCard.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { FieldTypes as a } from "../../../Types/FiledTypes.js";
3
3
  import { B as o } from "../../../const-53dff524.js";
4
- import { B as d } from "../../../index-10605794.js";
4
+ import { B as d } from "../../../index-1211cb6b.js";
5
5
  import { I as c } from "../../../index-2265d593.js";
6
6
  const m = ["title", "subtitle", "image", "button", "id"], v = {
7
7
  title: a.TITLE,
@@ -1,4 +1,4 @@
1
- import { M as a, B as t, u as s, C as n, S as D, a as r, V as e, b as i, c as o, d, P as l, e as C, f as B, g as L, W as m, v as w, w as p, F as I, h as g, D as F, i as S, j as c, I as M, x as P, k as f, l as u, A as V, m as T, T as W, n as b, E as x, o as h, p as k, q, r as v, s as y, t as A } from "../data.mock-61df66ed.js";
1
+ import { M as a, B as t, u as s, C as n, S as D, a as r, V as e, b as i, c as o, d, P as l, e as C, f as B, g as L, W as m, v as w, w as p, F as I, h as g, D as F, i as S, j as c, I as M, x as P, k as f, l as u, A as V, m as T, T as W, n as b, E as x, o as h, p as k, q, r as v, s as y, t as A } from "../data.mock-8d89834d.js";
2
2
  const j = [
3
3
  a,
4
4
  t,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
2
  import { a as r } from "../../../cn-6a4bf187.js";
3
3
  import { HtmlContent as c } from "../../../HtmlContent/HtmlContent.js";
4
- import { B as x } from "../../../index-10605794.js";
4
+ import { B as x } from "../../../index-1211cb6b.js";
5
5
  import { b as p, a as t } from "../../../const-53dff524.js";
6
6
  import { I as f } from "../../../index-2265d593.js";
7
7
  const B = ({
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { FieldTypes as t } from "../Types/FiledTypes.js";
3
- import { B as c } from "../index-10605794.js";
3
+ import { B as c } from "../index-1211cb6b.js";
4
4
  import { B as x } from "../const-53dff524.js";
5
5
  import { C as d } from "../ComponentContainer-cdb2528c.js";
6
6
  import { I as f } from "../index-2265d593.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import { a as t, c as u } from "../cn-6a4bf187.js";
3
3
  import { FieldTypes as m } from "../Types/FiledTypes.js";
4
- import { B as y } from "../index-10605794.js";
4
+ import { B as y } from "../index-1211cb6b.js";
5
5
  import { C as g } from "../ComponentContainer-cdb2528c.js";
6
6
  import { I as w } from "../index-2265d593.js";
7
7
  const v = {
@@ -84,13 +84,11 @@ const n = {
84
84
  id: "4",
85
85
  component_props: {
86
86
  title: "Stepper",
87
- button: [
88
- {
89
- text: "button",
90
- link: "#",
91
- variant: e.Primary
92
- }
93
- ],
87
+ button: {
88
+ title: "Кнопка",
89
+ link: "#",
90
+ variant: e.Primary
91
+ },
94
92
  data: [
95
93
  {
96
94
  title: "Выберите",
@@ -170,13 +168,11 @@ const n = {
170
168
  <li>Description line</li>
171
169
  </ul>
172
170
  `,
173
- button: [
174
- {
175
- title: "button",
176
- link: "#",
177
- variant: e.Primary
178
- }
179
- ]
171
+ button: {
172
+ title: "button",
173
+ link: "#",
174
+ variant: e.Primary
175
+ }
180
176
  },
181
177
  {
182
178
  title: "Content Card2",
@@ -4,14 +4,14 @@ import { c as m } from "./cn-6a4bf187.js";
4
4
  import { a as t, b as e } from "./const-53dff524.js";
5
5
  const y = h(
6
6
  ({
7
- children: o,
8
- size: s = t.XL,
9
- variant: d = e.Primary,
7
+ children: a,
8
+ size: d = t.XL,
9
+ variant: n = e.Primary,
10
10
  loading: i = !1,
11
- iconRight: a,
12
- iconLeft: l,
13
- className: n,
14
- title: p,
11
+ iconRight: l,
12
+ iconLeft: o,
13
+ className: p,
14
+ title: s,
15
15
  ...b
16
16
  }, x) => {
17
17
  const g = {
@@ -27,21 +27,21 @@ const y = h(
27
27
  [e.Brand]: "bg-greenLight text-white hover:bg-green disabled:bg-lightGray5 disabled:cursor-not-allowed",
28
28
  [e.Grey]: "bg-greyLight text-blackBG"
29
29
  };
30
- return /* @__PURE__ */ c(
30
+ return !a || !s ? null : /* @__PURE__ */ c(
31
31
  "button",
32
32
  {
33
33
  className: m(
34
34
  "flex items-center justify-center gap-2 border-none font-i font-medium cursor-pointer w-fit ",
35
- g[s],
36
- u[d],
37
- n
35
+ g[d],
36
+ u[n],
37
+ p
38
38
  ),
39
39
  ref: x,
40
40
  ...b,
41
41
  children: [
42
- i ? /* @__PURE__ */ r("span", { className: "flex justify-center items-center w-[22px] h-[22px] p-[2px] bg-transparent rounded-full border-2 border-[#0e0f11] border-t-transparent animate-spin" }) : l && /* @__PURE__ */ r("span", { className: "flex items-center", children: l }),
43
- p || o,
44
- a && /* @__PURE__ */ r("span", { className: "flex items-center", children: a })
42
+ i ? /* @__PURE__ */ r("span", { className: "flex justify-center items-center w-[22px] h-[22px] p-[2px] bg-transparent rounded-full border-2 border-[#0e0f11] border-t-transparent animate-spin" }) : o && /* @__PURE__ */ r("span", { className: "flex items-center", children: o }),
43
+ s || a,
44
+ l && /* @__PURE__ */ r("span", { className: "flex items-center", children: l })
45
45
  ]
46
46
  }
47
47
  );
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "md-components-mdigial-azamat",
3
3
  "author": "Azamat Raimbekov",
4
4
  "private": false,
5
- "version": "0.0.51",
5
+ "version": "0.0.54",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",