@soroka282/migrant.ui-kit 0.0.58 → 0.0.60

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 (85) hide show
  1. package/dist/List-C2lwzHBV.js +69 -0
  2. package/dist/{index-C1kYPWnF.js → index-s9ZsrOK1.js} +1936 -1853
  3. package/dist/migrant.ui-kit.es.js +34 -32
  4. package/dist/migrant.ui-kit.umd.js +13 -13
  5. package/dist/src/components/UI-blocks/components/BlockElement/BlockElement.stories.d.ts +12 -0
  6. package/dist/src/components/UI-blocks/components/BlockElement/BlockElement.vue.d.ts +28 -0
  7. package/dist/src/components/{UI → UI-kit}/radioButton/UIRadioButton.vue.d.ts +2 -1
  8. package/dist/src/components/UI-kit/select/UISelect.stories.d.ts +8 -0
  9. package/dist/src/components/{UI → UI-kit}/select/UISelect.vue.d.ts +6 -0
  10. package/dist/src/components/UI-kit/select/components/List.stories.d.ts +6 -0
  11. package/dist/src/components/{UI → UI-kit}/select/components/List.vue.d.ts +6 -0
  12. package/dist/src/constants/ui-color.constant.d.ts +1 -0
  13. package/dist/src/index.d.ts +14 -13
  14. package/dist/src/types/UI/ui-color.type.d.ts +1 -0
  15. package/dist/src/types/UI/ui-select.type.d.ts +7 -1
  16. package/package.json +3 -2
  17. package/scripts/postinstall.js +28 -8
  18. package/src/App.vue +2 -2
  19. package/src/assets/scss/common/variables.scss +7 -0
  20. package/src/components/UI-blocks/components/BlockElement/BlockElement.stories.ts +163 -0
  21. package/src/components/UI-blocks/components/BlockElement/BlockElement.vue +118 -0
  22. package/src/components/{UI → UI-kit}/inputs/UIInput.vue +4 -3
  23. package/src/components/{UI → UI-kit}/modal/UIModal.stories.ts +3 -1
  24. package/src/components/{UI → UI-kit}/modal/UIModalContainer.vue +1 -1
  25. package/src/components/{UI → UI-kit}/radioButton/UIRadioButton.stories.ts +1 -1
  26. package/src/components/{UI → UI-kit}/radioButton/UIRadioButton.vue +11 -2
  27. package/src/components/UI-kit/select/UISelect.stories.ts +180 -0
  28. package/src/components/{UI → UI-kit}/select/UISelect.vue +26 -7
  29. package/src/components/UI-kit/select/components/List.stories.ts +76 -0
  30. package/src/components/UI-kit/select/components/List.vue +150 -0
  31. package/src/components/{UI → UI-kit}/toaster/UIToastNotification.stories.ts +1 -1
  32. package/src/components/modules/auth/components/AccountStep.vue +4 -4
  33. package/src/components/modules/auth/components/ConfirmationStep.vue +5 -5
  34. package/src/components/modules/auth/components/LinkMailStep.vue +6 -6
  35. package/src/components/modules/documents/ModuleDocuments.vue +1 -1
  36. package/src/components/modules/form/components/Field.vue +2 -2
  37. package/src/constants/ui-color.constant.ts +1 -0
  38. package/src/index.ts +14 -13
  39. package/src/types/UI/ui-color.type.ts +1 -0
  40. package/src/types/UI/ui-select.type.ts +12 -1
  41. package/dist/List-vMRTn91Z.js +0 -46
  42. package/dist/src/components/UI/select/UISelect.stories.d.ts +0 -18
  43. package/src/components/UI/select/UISelect.stories.ts +0 -112
  44. package/src/components/UI/select/components/List.vue +0 -107
  45. package/dist/src/components/{UI → UI-kit}/button/UIButton.stories.d.ts +0 -0
  46. package/dist/src/components/{UI → UI-kit}/button/UIButton.vue.d.ts +0 -0
  47. package/dist/src/components/{UI → UI-kit}/card/UICard.stories.d.ts +0 -0
  48. package/dist/src/components/{UI → UI-kit}/card/UICard.vue.d.ts +0 -0
  49. package/dist/src/components/{UI → UI-kit}/description/UIDescription.stories.d.ts +0 -0
  50. package/dist/src/components/{UI → UI-kit}/description/UIDescription.vue.d.ts +0 -0
  51. package/dist/src/components/{UI → UI-kit}/inputs/BaseMaskedInput.vue.d.ts +1 -1
  52. /package/dist/src/components/{UI → UI-kit}/inputs/UIInput.stories.d.ts +0 -0
  53. /package/dist/src/components/{UI → UI-kit}/inputs/UIInput.vue.d.ts +0 -0
  54. /package/dist/src/components/{UI → UI-kit}/loader/UILoader.stories.d.ts +0 -0
  55. /package/dist/src/components/{UI → UI-kit}/loader/UILoader.vue.d.ts +0 -0
  56. /package/dist/src/components/{UI → UI-kit}/modal/UIModal.stories.d.ts +0 -0
  57. /package/dist/src/components/{UI → UI-kit}/modal/UIModal.vue.d.ts +0 -0
  58. /package/dist/src/components/{UI → UI-kit}/modal/UIModalContainer.vue.d.ts +0 -0
  59. /package/dist/src/components/{UI → UI-kit}/radioButton/UIRadioButton.stories.d.ts +0 -0
  60. /package/dist/src/components/{UI → UI-kit}/svg-icon/UISvgIcon.stories.d.ts +0 -0
  61. /package/dist/src/components/{UI → UI-kit}/svg-icon/UISvgIcon.vue.d.ts +0 -0
  62. /package/dist/src/components/{UI → UI-kit}/swiper/UISwiper.stories.d.ts +0 -0
  63. /package/dist/src/components/{UI → UI-kit}/swiper/UISwiper.vue.d.ts +0 -0
  64. /package/dist/src/components/{UI → UI-kit}/title/UITitle.stories.d.ts +0 -0
  65. /package/dist/src/components/{UI → UI-kit}/title/UITitle.vue.d.ts +0 -0
  66. /package/dist/src/components/{UI → UI-kit}/toaster/UIToastNotification.stories.d.ts +0 -0
  67. /package/dist/src/components/{UI → UI-kit}/toaster/UIToaster.d.ts +0 -0
  68. /package/src/components/{UI → UI-kit}/button/UIButton.stories.ts +0 -0
  69. /package/src/components/{UI → UI-kit}/button/UIButton.vue +0 -0
  70. /package/src/components/{UI → UI-kit}/card/UICard.stories.ts +0 -0
  71. /package/src/components/{UI → UI-kit}/card/UICard.vue +0 -0
  72. /package/src/components/{UI → UI-kit}/description/UIDescription.stories.ts +0 -0
  73. /package/src/components/{UI → UI-kit}/description/UIDescription.vue +0 -0
  74. /package/src/components/{UI → UI-kit}/inputs/BaseMaskedInput.vue +0 -0
  75. /package/src/components/{UI → UI-kit}/inputs/UIInput.stories.ts +0 -0
  76. /package/src/components/{UI → UI-kit}/loader/UILoader.stories.ts +0 -0
  77. /package/src/components/{UI → UI-kit}/loader/UILoader.vue +0 -0
  78. /package/src/components/{UI → UI-kit}/modal/UIModal.vue +0 -0
  79. /package/src/components/{UI → UI-kit}/svg-icon/UISvgIcon.stories.ts +0 -0
  80. /package/src/components/{UI → UI-kit}/svg-icon/UISvgIcon.vue +0 -0
  81. /package/src/components/{UI → UI-kit}/swiper/UISwiper.stories.ts +0 -0
  82. /package/src/components/{UI → UI-kit}/swiper/UISwiper.vue +0 -0
  83. /package/src/components/{UI → UI-kit}/title/UITitle.stories.ts +0 -0
  84. /package/src/components/{UI → UI-kit}/title/UITitle.vue +0 -0
  85. /package/src/components/{UI → UI-kit}/toaster/UIToaster.ts +0 -0
@@ -0,0 +1,69 @@
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 = {
4
+ key: 0,
5
+ class: "search-wrapper"
6
+ }, z = ["onClick"], A = {
7
+ key: 0,
8
+ width: "20",
9
+ height: "20",
10
+ viewBox: "0 0 24 24",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg"
13
+ }, E = /* @__PURE__ */ w({
14
+ __name: "List",
15
+ props: {
16
+ showSearchInput: { type: Boolean, default: !0 },
17
+ placeholderSearchInput: { default: "Поиск..." },
18
+ options: {},
19
+ multiple: { type: Boolean, default: !1 },
20
+ selectedValues: { default: () => [] },
21
+ selectedColor: { default: "#7c3aed" }
22
+ },
23
+ emits: ["select", "close"],
24
+ setup(m, { emit: f }) {
25
+ const n = f, s = m, [v] = B(), u = i(""), o = i([...s.selectedValues]), h = y(() => {
26
+ if (!u.value) return s.options;
27
+ const e = u.value.toLowerCase();
28
+ return s.options.filter((l) => l.label.toLowerCase().includes(e));
29
+ }), c = (e) => o.value.some((l) => l.value === e.value), C = (e) => {
30
+ if (s.multiple) {
31
+ const l = o.value.findIndex((t) => t.value === e.value);
32
+ l === -1 ? o.value.push(e) : o.value.splice(l, 1), n("select", [...o.value]);
33
+ } else
34
+ n("select", e), n("close");
35
+ };
36
+ return (e, l) => (r(), a("div", x, [
37
+ e.showSearchInput ? (r(), a("div", U, [
38
+ _(N, {
39
+ modelValue: u.value,
40
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => u.value = t),
41
+ placeholder: e.placeholderSearchInput
42
+ }, null, 8, ["modelValue", "placeholder"])
43
+ ])) : d("", !0),
44
+ p("ul", {
45
+ ref_key: "list",
46
+ ref: v,
47
+ class: "options-list"
48
+ }, [
49
+ (r(!0), a(V, null, L(h.value, (t) => (r(), a("li", {
50
+ key: t.value,
51
+ class: k(["option-item", { "--selected": e.multiple && c(t) }]),
52
+ style: S(e.multiple && c(t) ? { color: s.selectedColor } : {}),
53
+ onClick: (M) => C(t)
54
+ }, [
55
+ I(g(t.label) + " ", 1),
56
+ e.multiple && c(t) ? (r(), a("svg", A, l[1] || (l[1] = [
57
+ p("path", {
58
+ d: "M10 20C4.47656 20 0 15.5234 0 10C0 4.47656 4.47656 0 10 0C15.5234 0 20 4.47656 20 10C20 15.5234 15.5234 20 10 20ZM14.6094 5.69141C14.1914 5.38672 13.6055 5.48047 13.3008 5.89844L8.63672 12.3125L6.60156 10.2773C6.23438 9.91016 5.64063 9.91016 5.27734 10.2773C4.91406 10.6445 4.91016 11.2383 5.27734 11.6016L8.08984 14.4141C8.28516 14.6094 8.55078 14.707 8.82422 14.6875C9.09766 14.668 9.34766 14.5273 9.50781 14.3047L14.8164 7C15.1211 6.58203 15.0273 5.99609 14.6094 5.69141Z",
59
+ fill: "currentColor"
60
+ }, null, -1)
61
+ ]))) : d("", !0)
62
+ ], 14, z))), 128))
63
+ ], 512)
64
+ ]));
65
+ }
66
+ }), D = /* @__PURE__ */ b(E, [["__scopeId", "data-v-80fb25e3"]]);
67
+ export {
68
+ D as default
69
+ };