@soroka282/migrant.ui-kit 0.0.60 → 0.0.61

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 (137) hide show
  1. package/README.md +147 -147
  2. package/dist/{List-C2lwzHBV.js → List-Dz_7rPpH.js} +5 -5
  3. package/dist/{index-s9ZsrOK1.js → index-BRs_fKKO.js} +1946 -1852
  4. package/dist/migrant.ui-kit.es.js +45 -41
  5. package/dist/migrant.ui-kit.umd.js +13 -13
  6. package/dist/src/components/UI-kit/button/UIButton.stories.d.ts +4 -0
  7. package/dist/src/components/UI-kit/button/UIButton.vue.d.ts +1 -0
  8. package/dist/src/components/UI-kit/checkbox/UICheckBox.stories.d.ts +10 -0
  9. package/dist/src/components/UI-kit/checkbox/UICheckBox.vue.d.ts +26 -0
  10. package/dist/src/components/UI-kit/radioButton/UIRadioButton.stories.d.ts +4 -0
  11. package/dist/src/components/UI-kit/radioButton/UIRadioButton.vue.d.ts +7 -13
  12. package/dist/src/index.d.ts +1 -0
  13. package/dist/src/types/UI/ui-button.type.d.ts +6 -0
  14. package/dist/src/types/UI/ui-checkbox.type.d.ts +9 -0
  15. package/dist/src/types/UI/ui-radio-button.type.d.ts +18 -0
  16. package/dist/src/types/global.d.ts +13 -13
  17. package/dist/src/types/index.d.ts +2 -0
  18. package/package.json +118 -118
  19. package/scripts/postinstall.js +55 -55
  20. package/scripts/verify-commit.js +35 -35
  21. package/src/App.vue +7 -7
  22. package/src/assets/scss/common/swiper.scss +19 -19
  23. package/src/assets/scss/common/variables.scss +24 -24
  24. package/src/assets/scss/index.scss +8 -8
  25. package/src/assets/scss/mixins/flex.minix.scss +6 -6
  26. package/src/assets/scss/mixins/identation.mixin.scss +20 -20
  27. package/src/assets/scss/mixins/index.mixin.scss +2 -2
  28. package/src/assets/scss/mixins/typograph.mixin.scss +4 -4
  29. package/src/components/UI-blocks/components/BlockElement/BlockElement.stories.ts +163 -163
  30. package/src/components/UI-blocks/components/BlockElement/BlockElement.vue +118 -118
  31. package/src/components/UI-kit/button/UIButton.stories.ts +137 -60
  32. package/src/components/UI-kit/button/UIButton.vue +129 -121
  33. package/src/components/UI-kit/card/UICard.stories.ts +57 -57
  34. package/src/components/UI-kit/card/UICard.vue +52 -52
  35. package/src/components/UI-kit/checkbox/UICheckBox.stories.ts +197 -0
  36. package/src/components/UI-kit/checkbox/UICheckBox.vue +89 -0
  37. package/src/components/UI-kit/description/UIDescription.stories.ts +37 -37
  38. package/src/components/UI-kit/description/UIDescription.vue +34 -34
  39. package/src/components/UI-kit/inputs/BaseMaskedInput.vue +100 -100
  40. package/src/components/UI-kit/inputs/UIInput.stories.ts +92 -92
  41. package/src/components/UI-kit/inputs/UIInput.vue +203 -203
  42. package/src/components/UI-kit/loader/UILoader.stories.ts +31 -31
  43. package/src/components/UI-kit/loader/UILoader.vue +69 -69
  44. package/src/components/UI-kit/modal/UIModal.stories.ts +41 -41
  45. package/src/components/UI-kit/modal/UIModal.vue +307 -307
  46. package/src/components/UI-kit/modal/UIModalContainer.vue +20 -20
  47. package/src/components/UI-kit/radioButton/UIRadioButton.stories.ts +187 -45
  48. package/src/components/UI-kit/radioButton/UIRadioButton.vue +61 -53
  49. package/src/components/UI-kit/select/UISelect.stories.ts +180 -180
  50. package/src/components/UI-kit/select/UISelect.vue +182 -182
  51. package/src/components/UI-kit/select/components/List.stories.ts +76 -76
  52. package/src/components/UI-kit/select/components/List.vue +150 -150
  53. package/src/components/UI-kit/svg-icon/UISvgIcon.stories.ts +34 -34
  54. package/src/components/UI-kit/svg-icon/UISvgIcon.vue +21 -21
  55. package/src/components/UI-kit/swiper/UISwiper.stories.ts +33 -33
  56. package/src/components/UI-kit/swiper/UISwiper.vue +47 -47
  57. package/src/components/UI-kit/title/UITitle.stories.ts +35 -35
  58. package/src/components/UI-kit/title/UITitle.vue +37 -37
  59. package/src/components/UI-kit/toaster/UIToastNotification.stories.ts +146 -146
  60. package/src/components/UI-kit/toaster/UIToaster.ts +57 -57
  61. package/src/components/icons/email.svg +10 -10
  62. package/src/components/icons/person.svg +4 -4
  63. package/src/components/modules/auth/assets/styles/index.scss +3 -3
  64. package/src/components/modules/auth/assets/styles/seven-zero-two-themes.scss +96 -96
  65. package/src/components/modules/auth/assets/styles/student-themes.scss +176 -176
  66. package/src/components/modules/auth/auth-test/AuthTest.vue +63 -63
  67. package/src/components/modules/auth/auth-test/AuthTestWrapper.vue +43 -43
  68. package/src/components/modules/auth/components/AccountStep.vue +158 -158
  69. package/src/components/modules/auth/components/ConfirmationStep.vue +163 -163
  70. package/src/components/modules/auth/components/LinkMailStep.vue +199 -199
  71. package/src/components/modules/auth/composables/useMailRedirect.ts +49 -49
  72. package/src/components/modules/auth/config/themes-module-auth.config.ts +94 -94
  73. package/src/components/modules/auth/constants/EStep.enum.ts +5 -5
  74. package/src/components/modules/auth/constants/default-locale-auth-module.ts +21 -21
  75. package/src/components/modules/auth/constants/validation/validate-email.ts +17 -17
  76. package/src/components/modules/auth/index.ts +2 -2
  77. package/src/components/modules/auth/store/authModuleStore.ts +44 -44
  78. package/src/components/modules/auth/types/auth-ui-schema.type.ts +36 -36
  79. package/src/components/modules/auth/types/step.types.ts +1 -1
  80. package/src/components/modules/documents/ModuleDocuments.vue +88 -88
  81. package/src/components/modules/documents/components/composables/useDefaultFields.ts +302 -302
  82. package/src/components/modules/documents/components/composables/useDocumentImage.ts +39 -39
  83. package/src/components/modules/documents/components/constants/default-locale-document-module.ts +57 -57
  84. package/src/components/modules/documents/components/constants/validation/common.validation.ts +42 -42
  85. package/src/components/modules/documents/components/constants/validation/driver-license.validation.ts +25 -25
  86. package/src/components/modules/documents/components/constants/validation/inn.validation.ts +15 -15
  87. package/src/components/modules/documents/components/constants/validation/license-plate.validation.ts +37 -37
  88. package/src/components/modules/documents/components/constants/validation/passport.validation.ts +48 -48
  89. package/src/components/modules/documents/components/constants/validation.ts +5 -5
  90. package/src/components/modules/documents/components/index.ts +5 -5
  91. package/src/components/modules/documents/config/themes-module-document.config.ts +24 -24
  92. package/src/components/modules/documents/index.ts +2 -2
  93. package/src/components/modules/documents/store/module-document.store.ts +5 -5
  94. package/src/components/modules/documents/type/DocumentsType.ts +30 -30
  95. package/src/components/modules/documents/type/document-ui-schema.type.ts +10 -10
  96. package/src/components/modules/documents/type/index.ts +2 -2
  97. package/src/components/modules/form/ModuleForm.vue +44 -44
  98. package/src/components/modules/form/ModulesForm.stories.ts +188 -188
  99. package/src/components/modules/form/components/Field.vue +136 -136
  100. package/src/components/modules/form/types/inputType.ts +26 -26
  101. package/src/composables/index.ts +2 -2
  102. package/src/composables/useIframeHandlers.ts +52 -52
  103. package/src/composables/useRequestHandler.ts +49 -49
  104. package/src/configs/i18n.config.ts +8 -8
  105. package/src/configs/index.ts +1 -1
  106. package/src/constants/default-locale.ts +30 -30
  107. package/src/constants/index.ts +2 -2
  108. package/src/constants/ui-color.constant.ts +25 -25
  109. package/src/index.ts +31 -30
  110. package/src/main.ts +22 -22
  111. package/src/plugins/formatter.ts +136 -136
  112. package/src/plugins/index.ts +3 -3
  113. package/src/plugins/plural-endings.ts +19 -19
  114. package/src/plugins/ui-kit-install.ts +36 -36
  115. package/src/store/config-module.store.ts +66 -66
  116. package/src/store/index.ts +3 -3
  117. package/src/store/language.store.ts +28 -28
  118. package/src/store/modal.store.ts +101 -101
  119. package/src/types/UI/ui-button.type.ts +31 -23
  120. package/src/types/UI/ui-checkbox.type.ts +18 -0
  121. package/src/types/UI/ui-color.type.ts +28 -28
  122. package/src/types/UI/ui-input.type.ts +65 -65
  123. package/src/types/UI/ui-modal.type.ts +7 -7
  124. package/src/types/UI/ui-radio-button.type.ts +19 -0
  125. package/src/types/UI/ui-select.type.ts +27 -27
  126. package/src/types/UI/ui-size.type.ts +7 -7
  127. package/src/types/common.type.ts +2 -2
  128. package/src/types/global.d.ts +13 -13
  129. package/src/types/index.ts +11 -9
  130. package/src/types/language.type.ts +7 -7
  131. package/src/types/plugin.type.ts +6 -6
  132. package/src/types/project-name.type.ts +5 -5
  133. package/src/utils/buildYupChain.util.ts +12 -12
  134. package/src/utils/debounce.util.ts +7 -7
  135. package/src/utils/getGlobalLocale.util.ts +5 -5
  136. package/src/utils/index.ts +4 -4
  137. package/src/utils/scrollToElement.util.ts +9 -9
package/README.md CHANGED
@@ -1,147 +1,147 @@
1
- # 📖 Migrant UI Kit
2
-
3
- Библиотека переиспользуемых компонентов для проектов Migrant. Построена на [Vue 3](https://vuejs.org/) с поддержкой TypeScript и scoped-стилей.
4
-
5
- ## 📦 Установка и использование библиотеки
6
-
7
- ```bash
8
- npm install @soroka282/migrant.ui-kit
9
- ```
10
- или
11
- ```bash
12
- yarn add @soroka282/migrant.ui-kit
13
- ```
14
-
15
- ### 🛠️ Использование компонентов
16
-
17
- ```
18
- <script setup lang="ts">
19
- import {
20
- UIButton,
21
- UIColor,
22
- UIColorName,
23
- UISize,
24
- } from '@soroka282/migrant.ui-kit';
25
- </script>
26
-
27
- <template>
28
- <UIButton
29
- is-box-shadow
30
- :size="UISize.S"
31
- :color="UIColor[UIColorName.White]"
32
- :bg-color="UIColor[UIColorName.PurpleMain]"
33
- >
34
- Кнопка
35
- </UIButton>
36
- </template>
37
- ```
38
-
39
- ### ⚙️ TypeScript автодополнение
40
-
41
- Убедитесь, что `tsconfig.json` содержит:
42
-
43
- ```json
44
- {
45
- "compilerOptions": {
46
- "moduleResolution": "bundler",
47
- "paths": {
48
- "@soroka282/migrant.ui-kit": ["node_modules/@soroka282/migrant.ui-kit"]
49
- }
50
- }
51
- }
52
- ```
53
-
54
- ## 💻 Разработка
55
-
56
- #### Установка зависимостей
57
- ```bash
58
- npm i
59
- ```
60
- Проверить, что установился .husky и commit-msg (.husky/commit-msg) имеет:
61
- ```
62
- node scripts/verify-commit.js
63
- ```
64
-
65
- #### Запуск локального проекта:
66
- ```bash
67
- npm run dev
68
- ```
69
-
70
- #### Запуск локального сторибука
71
- ```bash
72
- npm run storybook
73
- ```
74
-
75
- ## 🧪 Коммиты
76
-
77
- Формат коммитов:
78
- ```
79
- <номер задачи>/<тип>(<scope>): <описание>
80
- ```
81
-
82
- Если задача в трекере отсутствует:
83
- ```
84
- <тип>(<scope>): <описание>
85
- ```
86
-
87
- #### Типы коммитов:
88
-
89
- - `feat` — добавление нового функционала
90
- - `fix` — исправление ошибок
91
- - `docs` — изменение документации
92
- - `build` — сборка и настройка инфраструктуры (vite, tsconfig и т.п.)
93
-
94
- #### Примеры:
95
-
96
- ```
97
- EVOLVE-1/feat(useIframeHandler): добавлен новый composable метод
98
- EVOLVE-2/fix(UIInput): обработка событий при потере фокуса
99
- EVOLVE-3/build(vite.config): релиз библиотеки
100
-
101
- feat(useIframeHandler): добавлен новый composable метод
102
- build(vite.config): релиз библиотеки
103
- ```
104
-
105
- ## 🛠️ Сборка библиотеки
106
-
107
- Билд библиотеки:
108
- ```bash
109
- npm run build
110
- ```
111
-
112
- Генерация .d.ts:
113
- ```bash
114
- npm run ts
115
- ```
116
-
117
- ### Публикация пакета в npm
118
-
119
- - Поднять version в package.json
120
- - Опубликовать:
121
- ```bash
122
- npm run publish:npm
123
- ```
124
-
125
- ## 📖 Storybook
126
-
127
- Сборка:
128
- ```bash
129
- npm run build:storybook
130
- ```
131
-
132
- ## 🥉 Используемые зависимости
133
-
134
- - [Vue 3](https://vuejs.org/) — основной фреймворк
135
- - [Pinia](https://pinia.vuejs.org/) — управление состоянием
136
- - [Maska](https://beholdr.github.io/maska/) — маски ввода
137
- - [Swiper](https://swiperjs.com/) — свайпер/карусель
138
- - [Vue-toastification](https://vue-toastification.maronato.dev/) — уведомления (тосты)
139
-
140
- ## 🎨 Глобальные стили (optional)
141
-
142
- В `main.ts`:
143
-
144
- ```ts
145
- import '@soroka282/migrant.ui-kit/dist/style.css';
146
- ```
147
-
1
+ # 📖 Migrant UI Kit
2
+
3
+ Библиотека переиспользуемых компонентов для проектов Migrant. Построена на [Vue 3](https://vuejs.org/) с поддержкой TypeScript и scoped-стилей.
4
+
5
+ ## 📦 Установка и использование библиотеки
6
+
7
+ ```bash
8
+ npm install @soroka282/migrant.ui-kit
9
+ ```
10
+ или
11
+ ```bash
12
+ yarn add @soroka282/migrant.ui-kit
13
+ ```
14
+
15
+ ### 🛠️ Использование компонентов
16
+
17
+ ```
18
+ <script setup lang="ts">
19
+ import {
20
+ UIButton,
21
+ UIColor,
22
+ UIColorName,
23
+ UISize,
24
+ } from '@soroka282/migrant.ui-kit';
25
+ </script>
26
+
27
+ <template>
28
+ <UIButton
29
+ is-box-shadow
30
+ :size="UISize.S"
31
+ :color="UIColor[UIColorName.White]"
32
+ :bg-color="UIColor[UIColorName.PurpleMain]"
33
+ >
34
+ Кнопка
35
+ </UIButton>
36
+ </template>
37
+ ```
38
+
39
+ ### ⚙️ TypeScript автодополнение
40
+
41
+ Убедитесь, что `tsconfig.json` содержит:
42
+
43
+ ```json
44
+ {
45
+ "compilerOptions": {
46
+ "moduleResolution": "bundler",
47
+ "paths": {
48
+ "@soroka282/migrant.ui-kit": ["node_modules/@soroka282/migrant.ui-kit"]
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ ## 💻 Разработка
55
+
56
+ #### Установка зависимостей
57
+ ```bash
58
+ npm i
59
+ ```
60
+ Проверить, что установился .husky и commit-msg (.husky/commit-msg) имеет:
61
+ ```
62
+ node scripts/verify-commit.js
63
+ ```
64
+
65
+ #### Запуск локального проекта:
66
+ ```bash
67
+ npm run dev
68
+ ```
69
+
70
+ #### Запуск локального сторибука
71
+ ```bash
72
+ npm run storybook
73
+ ```
74
+
75
+ ## 🧪 Коммиты
76
+
77
+ Формат коммитов:
78
+ ```
79
+ <номер задачи>/<тип>(<scope>): <описание>
80
+ ```
81
+
82
+ Если задача в трекере отсутствует:
83
+ ```
84
+ <тип>(<scope>): <описание>
85
+ ```
86
+
87
+ #### Типы коммитов:
88
+
89
+ - `feat` — добавление нового функционала
90
+ - `fix` — исправление ошибок
91
+ - `docs` — изменение документации
92
+ - `build` — сборка и настройка инфраструктуры (vite, tsconfig и т.п.)
93
+
94
+ #### Примеры:
95
+
96
+ ```
97
+ EVOLVE-1/feat(useIframeHandler): добавлен новый composable метод
98
+ EVOLVE-2/fix(UIInput): обработка событий при потере фокуса
99
+ EVOLVE-3/build(vite.config): релиз библиотеки
100
+
101
+ feat(useIframeHandler): добавлен новый composable метод
102
+ build(vite.config): релиз библиотеки
103
+ ```
104
+
105
+ ## 🛠️ Сборка библиотеки
106
+
107
+ Билд библиотеки:
108
+ ```bash
109
+ npm run build
110
+ ```
111
+
112
+ Генерация .d.ts:
113
+ ```bash
114
+ npm run ts
115
+ ```
116
+
117
+ ### Публикация пакета в npm
118
+
119
+ - Поднять version в package.json
120
+ - Опубликовать:
121
+ ```bash
122
+ npm run publish:npm
123
+ ```
124
+
125
+ ## 📖 Storybook
126
+
127
+ Сборка:
128
+ ```bash
129
+ npm run build:storybook
130
+ ```
131
+
132
+ ## 🥉 Используемые зависимости
133
+
134
+ - [Vue 3](https://vuejs.org/) — основной фреймворк
135
+ - [Pinia](https://pinia.vuejs.org/) — управление состоянием
136
+ - [Maska](https://beholdr.github.io/maska/) — маски ввода
137
+ - [Swiper](https://swiperjs.com/) — свайпер/карусель
138
+ - [Vue-toastification](https://vue-toastification.maronato.dev/) — уведомления (тосты)
139
+
140
+ ## 🎨 Глобальные стили (optional)
141
+
142
+ В `main.ts`:
143
+
144
+ ```ts
145
+ import '@soroka282/migrant.ui-kit/dist/style.css';
146
+ ```
147
+
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as i, computed as y, createElementBlock as a, openBlock as r, createCommentVNode as d, createElementVNode as p, createVNode as _, Fragment as V, renderList as L, normalizeStyle as S, normalizeClass as k, createTextVNode as I, toDisplayString as g } from "vue";
2
- import { u as B, U as N, _ as b } from "./index-s9ZsrOK1.js";
3
- const x = { class: "select-list" }, U = {
2
+ import { u as B, U as N, _ as x } from "./index-BRs_fKKO.js";
3
+ const U = { class: "select-list" }, b = {
4
4
  key: 0,
5
5
  class: "search-wrapper"
6
6
  }, z = ["onClick"], A = {
@@ -33,8 +33,8 @@ const x = { class: "select-list" }, U = {
33
33
  } else
34
34
  n("select", e), n("close");
35
35
  };
36
- return (e, l) => (r(), a("div", x, [
37
- e.showSearchInput ? (r(), a("div", U, [
36
+ return (e, l) => (r(), a("div", U, [
37
+ e.showSearchInput ? (r(), a("div", b, [
38
38
  _(N, {
39
39
  modelValue: u.value,
40
40
  "onUpdate:modelValue": l[0] || (l[0] = (t) => u.value = t),
@@ -63,7 +63,7 @@ const x = { class: "select-list" }, U = {
63
63
  ], 512)
64
64
  ]));
65
65
  }
66
- }), D = /* @__PURE__ */ b(E, [["__scopeId", "data-v-80fb25e3"]]);
66
+ }), D = /* @__PURE__ */ x(E, [["__scopeId", "data-v-e3caa257"]]);
67
67
  export {
68
68
  D as default
69
69
  };