@profitliga/ui 2.0.2 → 2.0.4

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 (121) hide show
  1. package/dist/components/AlertDialog/AlertDialogAction.vue.js +2 -3
  2. package/dist/components/AlertDialog/AlertDialogCancel.vue.js +8 -9
  3. package/dist/components/AlertDialog/AlertDialogTrigger.vue.js +7 -8
  4. package/dist/components/Button/Button.css +1 -1
  5. package/dist/components/Button/Button.vue.js +5 -52
  6. package/dist/components/Button/Button.vue2.js +52 -3
  7. package/dist/components/Calendar/CalendarNext.vue.js +3 -4
  8. package/dist/components/Calendar/CalendarPrev.vue.js +7 -8
  9. package/dist/components/ConfirmDialog/ConfirmDialog.vue2.js +11 -12
  10. package/dist/components/DatePicker/DatePickerNext.vue.js +1 -2
  11. package/dist/components/DatePicker/DatePickerPrev.vue.js +7 -8
  12. package/dist/components/DateRangePicker/DateRangePickerNext.vue.js +6 -7
  13. package/dist/components/DateRangePicker/DateRangePickerPrev.vue.js +7 -8
  14. package/dist/components/RangeCalendar/RangeCalendarNext.vue.js +3 -4
  15. package/dist/components/RangeCalendar/RangeCalendarPrev.vue.js +3 -4
  16. package/dist/components/Schedule/Schedule.vue2.js +38 -39
  17. package/dist/components/index.js +391 -392
  18. package/dist/components/v2/AlertDialog/AlertDialog.css +1 -1
  19. package/dist/components/v2/AlertDialog/AlertDialog.types.d.ts +2 -2
  20. package/dist/components/v2/AlertDialog/AlertDialog.vue.d.ts +2 -2
  21. package/dist/components/v2/AlertDialog/AlertDialog.vue.js +2 -2
  22. package/dist/components/v2/AlertDialog/AlertDialog.vue2.js +29 -29
  23. package/dist/components/v2/Checkbox/Checkbox.css +1 -1
  24. package/dist/components/v2/Checkbox/Checkbox.types.d.ts +11 -0
  25. package/dist/components/v2/Checkbox/Checkbox.vue.d.ts +2 -0
  26. package/dist/components/v2/Checkbox/Checkbox.vue.js +2 -2
  27. package/dist/components/v2/Checkbox/Checkbox.vue2.js +61 -49
  28. package/dist/components/v2/Combobox/Combobox.css +1 -1
  29. package/dist/components/v2/Combobox/Combobox.types.d.ts +28 -2
  30. package/dist/components/v2/Combobox/Combobox.vue.d.ts +3 -2
  31. package/dist/components/v2/Combobox/Combobox.vue.js +1 -1
  32. package/dist/components/v2/Combobox/Combobox.vue2.js +305 -251
  33. package/dist/components/v2/ConfirmDialog/ConfirmDialog.types.d.ts +2 -2
  34. package/dist/components/v2/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -2
  35. package/dist/components/v2/ConfirmDialog/ConfirmDialog.vue.js +6 -6
  36. package/dist/components/v2/DatePicker/DatePicker.css +1 -1
  37. package/dist/components/v2/DatePicker/DatePicker.types.d.ts +2 -2
  38. package/dist/components/v2/DatePicker/DatePicker.vue.d.ts +2 -2
  39. package/dist/components/v2/DatePicker/DatePicker.vue.js +2 -2
  40. package/dist/components/v2/DatePicker/DatePicker.vue2.js +54 -54
  41. package/dist/components/v2/Divider/Divider.css +1 -1
  42. package/dist/components/v2/Divider/Divider.types.d.ts +8 -0
  43. package/dist/components/v2/Divider/Divider.vue.js +2 -2
  44. package/dist/components/v2/DropdownMenu/DropdownMenu.types.d.ts +2 -2
  45. package/dist/components/v2/DropdownMenu/DropdownMenu.vue.d.ts +2 -2
  46. package/dist/components/v2/DropdownMenu/DropdownMenu.vue2.js +6 -6
  47. package/dist/components/v2/FileUpload/FileUpload.css +1 -1
  48. package/dist/components/v2/FileUpload/FileUpload.vue.js +2 -2
  49. package/dist/components/v2/FileUpload/FileUpload.vue2.js +16 -16
  50. package/dist/components/v2/FormField/FormField.css +1 -0
  51. package/dist/components/v2/FormField/FormField.types.d.ts +48 -0
  52. package/dist/components/v2/FormField/FormField.vue.d.ts +25 -0
  53. package/dist/components/v2/FormField/FormField.vue.js +8 -0
  54. package/dist/components/v2/FormField/FormField.vue2.js +54 -0
  55. package/dist/components/v2/FormField/index.d.ts +3 -0
  56. package/dist/components/v2/Image/Image.css +1 -0
  57. package/dist/components/v2/Image/Image.types.d.ts +26 -0
  58. package/dist/components/v2/Image/Image.vue.d.ts +16 -0
  59. package/dist/components/v2/Image/Image.vue.js +8 -0
  60. package/dist/components/v2/Image/Image.vue2.js +91 -0
  61. package/dist/components/v2/Image/ImageList.css +1 -0
  62. package/dist/components/v2/Image/ImageList.types.d.ts +28 -0
  63. package/dist/components/v2/Image/ImageList.vue.d.ts +15 -0
  64. package/dist/components/v2/Image/ImageList.vue.js +8 -0
  65. package/dist/components/v2/Image/ImageList.vue2.js +38 -0
  66. package/dist/components/v2/Image/index.d.ts +5 -0
  67. package/dist/components/v2/Input/Input.css +1 -1
  68. package/dist/components/v2/Input/Input.vue.js +2 -2
  69. package/dist/components/v2/Input/Input.vue2.js +113 -107
  70. package/dist/components/v2/InputNumber/InputNumber.css +1 -1
  71. package/dist/components/v2/InputNumber/InputNumber.vue.js +2 -2
  72. package/dist/components/v2/InputNumber/InputNumber.vue2.js +22 -21
  73. package/dist/components/v2/InputSelect/InputSelect.types.d.ts +2 -2
  74. package/dist/components/v2/InputSelect/InputSelect.vue.d.ts +2 -2
  75. package/dist/components/v2/InputSelect/InputSelect.vue.js +14 -14
  76. package/dist/components/v2/InputSelect/InputSelectChip.css +1 -1
  77. package/dist/components/v2/InputSelect/InputSelectChip.vue.d.ts +3 -3
  78. package/dist/components/v2/InputSelect/InputSelectChip.vue.js +2 -2
  79. package/dist/components/v2/InputSelect/InputSelectChip.vue2.js +17 -17
  80. package/dist/components/v2/Popover/Popover.css +1 -1
  81. package/dist/components/v2/Popover/Popover.types.d.ts +2 -2
  82. package/dist/components/v2/Popover/Popover.vue.d.ts +2 -2
  83. package/dist/components/v2/Popover/Popover.vue.js +2 -2
  84. package/dist/components/v2/Popover/Popover.vue2.js +24 -24
  85. package/dist/components/v2/Radio/Radio.css +1 -1
  86. package/dist/components/v2/Radio/Radio.vue.d.ts +4 -0
  87. package/dist/components/v2/Radio/Radio.vue.js +1 -1
  88. package/dist/components/v2/Radio/Radio.vue2.js +57 -49
  89. package/dist/components/v2/Schedule/Schedule.css +1 -1
  90. package/dist/components/v2/Schedule/Schedule.types.d.ts +2 -2
  91. package/dist/components/v2/Schedule/Schedule.vue.d.ts +2 -2
  92. package/dist/components/v2/Schedule/Schedule.vue.js +3 -3
  93. package/dist/components/v2/Schedule/Schedule.vue2.js +55 -55
  94. package/dist/components/v2/Select/Select.css +1 -1
  95. package/dist/components/v2/Select/Select.types.d.ts +8 -2
  96. package/dist/components/v2/Select/Select.vue.js +3 -3
  97. package/dist/components/v2/Select/Select.vue2.js +143 -127
  98. package/dist/components/v2/Toast/Toast.types.d.ts +2 -2
  99. package/dist/components/v2/Toast/Toaster.css +1 -1
  100. package/dist/components/v2/Toast/Toaster.vue.d.ts +2 -2
  101. package/dist/components/v2/Toast/Toaster.vue.js +1 -1
  102. package/dist/components/v2/Toast/Toaster.vue2.js +17 -17
  103. package/dist/components/v2/Tooltip/Tooltip.css +1 -1
  104. package/dist/components/v2/Tooltip/Tooltip.types.d.ts +2 -2
  105. package/dist/components/v2/Tooltip/Tooltip.vue.d.ts +2 -2
  106. package/dist/components/v2/Tooltip/Tooltip.vue.js +1 -1
  107. package/dist/components/v2/Tooltip/Tooltip.vue2.js +39 -38
  108. package/dist/components/v2/Tooltip/TooltipContent.css +1 -1
  109. package/dist/components/v2/Tooltip/TooltipContent.vue.d.ts +2 -2
  110. package/dist/components/v2/Tooltip/TooltipContent.vue.js +2 -2
  111. package/dist/components/v2/Tooltip/TooltipContent.vue2.js +20 -20
  112. package/dist/components/v2/Tooltip/vTooltip.directive.js +40 -41
  113. package/dist/components/v2/index.d.ts +2 -0
  114. package/dist/components/v2/index.js +82 -76
  115. package/dist/components/v2/shared/isHtmlElement.util.d.ts +15 -0
  116. package/dist/components/v2/shared/isHtmlElement.util.js +10 -0
  117. package/dist/components/v2/shared/useIsMobile.util.d.ts +13 -0
  118. package/dist/components/v2/shared/useIsMobile.util.js +8 -0
  119. package/dist/components/v2/shared/useTriggerAria.util.js +4 -3
  120. package/dist/types/global.types.d.ts +10 -0
  121. package/package.json +3 -1
@@ -1,13 +1,13 @@
1
- import { defineComponent as Q, useModel as W, useSlots as Y, useId as Z, useTemplateRef as _, ref as ee, computed as o, openBlock as i, createElementBlock as u, mergeProps as r, unref as d, renderSlot as y, createTextVNode as E, toDisplayString as g, createCommentVNode as f, createElementVNode as le, withDirectives as N, vModelText as te, withKeys as ae, vModelDynamic as oe, createVNode as ie, createBlock as P, mergeModels as R } from "vue";
2
- import { X as de, EyeOff as ue, Eye as re } from "@lucide/vue";
3
- import { useTestId as se } from "../shared/useTestId.util.js";
4
- const ne = ["for"], fe = ["id", "name", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-label", "aria-invalid", "aria-describedby"], ve = ["id", "type", "name", "placeholder", "disabled", "readonly", "required", "maxlength", "autocomplete", "inputmode", "aria-label", "aria-invalid", "aria-describedby"], pe = ["aria-label"], ce = ["aria-label", "aria-pressed", "disabled"], be = {
1
+ import { defineComponent as Z, useModel as _, useSlots as ee, useAttrs as le, computed as a, useId as te, useTemplateRef as ae, ref as oe, openBlock as i, createElementBlock as d, mergeProps as u, unref as s, renderSlot as m, createTextVNode as N, toDisplayString as g, createCommentVNode as f, createElementVNode as ie, withDirectives as P, vModelText as se, withKeys as de, vModelDynamic as ue, createVNode as re, createBlock as R, mergeModels as z } from "vue";
2
+ import { X as ne, EyeOff as fe, Eye as ve } from "@lucide/vue";
3
+ import { useTestId as ce } from "../shared/useTestId.util.js";
4
+ const pe = ["for"], be = ["id", "name", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-label", "aria-invalid", "aria-describedby"], ye = ["id", "type", "name", "placeholder", "disabled", "readonly", "required", "maxlength", "autocomplete", "inputmode", "aria-label", "aria-invalid", "aria-describedby"], me = ["aria-label"], he = ["aria-label", "aria-pressed", "disabled"], ge = {
5
5
  key: 1,
6
6
  class: "input-field__footer"
7
- }, me = ["id"], ke = /* @__PURE__ */ Q({
7
+ }, ke = ["id"], Ce = /* @__PURE__ */ Z({
8
8
  inheritAttrs: !1,
9
9
  __name: "Input",
10
- props: /* @__PURE__ */ R({
10
+ props: /* @__PURE__ */ z({
11
11
  type: { default: "default" },
12
12
  size: { default: "default" },
13
13
  nativeType: { default: "text" },
@@ -32,165 +32,171 @@ const ne = ["for"], fe = ["id", "name", "rows", "placeholder", "disabled", "read
32
32
  modelValue: { default: "" },
33
33
  modelModifiers: {}
34
34
  }),
35
- emits: /* @__PURE__ */ R(["input", "change", "focus", "blur", "enter", "clear"], ["update:modelValue"]),
36
- setup(t, { expose: z, emit: D }) {
37
- const e = t, s = D, c = W(t, "modelValue"), m = Y(), n = se(() => e.testId), B = Z(), v = _(
35
+ emits: /* @__PURE__ */ z(["input", "change", "focus", "blur", "enter", "clear"], ["update:modelValue"]),
36
+ setup(o, { expose: D, emit: F }) {
37
+ const e = o, r = F, c = _(o, "modelValue"), y = ee(), n = ce(() => e.testId), k = le(), K = a(() => ({
38
+ class: k.class,
39
+ style: k.style
40
+ })), C = a(() => {
41
+ const { class: b, style: l, ...t } = k;
42
+ return t;
43
+ }), V = te(), v = ae(
38
44
  "fieldRef"
39
- ), b = ee(!1), k = o(() => e.id ?? `${B}-field`), C = o(() => `${B}-support`), x = o(() => e.type === "password"), V = o(() => e.type === "limit"), h = o(() => e.error), $ = o(() => h.value ? e.errorMessage ?? e.supportText : e.supportText), q = o(() => c.value?.length ?? 0), F = o(() => x.value ? b.value ? "text" : "password" : e.nativeType), T = o(() => !!(e.label || m.label)), A = o(() => !!m.prefix), K = o(() => !!m["control-start"]), I = o(() => T.value ? e.ariaLabel : e.ariaLabel ?? e.placeholder), L = o(
40
- () => e.type === "clearable" && q.value > 0 && !e.disabled && !e.readonly
41
- ), U = o(
42
- () => !!m.suffix || x.value || L.value
43
- ), M = o(() => e.maxlength === void 0 ? !1 : e.showCount ?? V.value), w = o(
44
- () => !!($.value || m.support)
45
- ), O = o(() => w.value || M.value), S = o(
46
- () => w.value ? C.value : void 0
47
- ), X = o(() => "Очистить поле"), j = o(
48
- () => b.value ? "Скрыть пароль" : "Показать пароль"
49
- ), G = o(() => [
45
+ ), p = oe(!1), x = a(() => e.id ?? `${V}-field`), q = a(() => `${V}-support`), w = a(() => e.type === "password"), T = a(() => e.type === "limit"), h = a(() => e.error), I = a(() => h.value ? e.errorMessage ?? e.supportText : e.supportText), L = a(() => c.value?.length ?? 0), U = a(() => w.value ? p.value ? "text" : "password" : e.nativeType), $ = a(() => !!(e.label || y.label)), O = a(() => !!y.prefix), X = a(() => !!y["control-start"]), M = a(() => $.value ? e.ariaLabel : e.ariaLabel ?? e.placeholder), S = a(
46
+ () => e.type === "clearable" && L.value > 0 && !e.disabled && !e.readonly
47
+ ), j = a(
48
+ () => !!y.suffix || w.value || S.value
49
+ ), A = a(() => e.maxlength === void 0 ? !1 : e.showCount ?? T.value), B = a(
50
+ () => !!(I.value || y.support)
51
+ ), G = a(() => B.value || A.value), E = a(
52
+ () => B.value ? q.value : void 0
53
+ ), H = a(() => "Очистить поле"), J = a(
54
+ () => p.value ? "Скрыть пароль" : "Показать пароль"
55
+ ), Q = a(() => [
50
56
  "input-field",
51
57
  `input-field--size-${e.size}`,
52
58
  `input-field--type-${e.type}`,
53
59
  {
54
- "input-field--with-control-start": K.value,
60
+ "input-field--with-control-start": X.value,
55
61
  "input-field--error": h.value,
56
62
  "input-field--disabled": e.disabled,
57
63
  "input-field--readonly": e.readonly
58
64
  }
59
- ]), H = () => {
60
- e.disabled || e.readonly || (c.value = "", s("clear"), v.value?.focus());
61
- }, J = () => {
62
- e.disabled || (b.value = !b.value);
65
+ ]), W = () => {
66
+ e.disabled || e.readonly || (c.value = "", r("clear"), v.value?.focus());
67
+ }, Y = () => {
68
+ e.disabled || (p.value = !p.value);
63
69
  };
64
- return z({
70
+ return D({
65
71
  el: v,
66
72
  focus: () => v.value?.focus(),
67
73
  blur: () => v.value?.blur(),
68
74
  select: () => v.value?.select()
69
- }), (p, l) => (i(), u("div", r({ class: G.value }, d(n)("root")), [
70
- T.value ? (i(), u("label", r({
75
+ }), (b, l) => (i(), d("div", u({ class: Q.value }, { ...K.value, ...s(n)("root") }), [
76
+ $.value ? (i(), d("label", u({
71
77
  key: 0,
72
78
  class: "input-field__label",
73
- for: k.value
74
- }, d(n)("label")), [
75
- y(p.$slots, "label", {}, () => [
76
- E(g(t.label), 1)
79
+ for: x.value
80
+ }, s(n)("label")), [
81
+ m(b.$slots, "label", {}, () => [
82
+ N(g(o.label), 1)
77
83
  ], !0),
78
- t.required ? (i(), u("span", r({
84
+ o.required ? (i(), d("span", u({
79
85
  key: 0,
80
86
  class: "input-field__required",
81
87
  "aria-hidden": "true"
82
- }, d(n)("required")), "*", 16)) : f("", !0)
83
- ], 16, ne)) : f("", !0),
84
- le("div", r({ class: "input-field__control" }, d(n)("control")), [
85
- y(p.$slots, "control-start", {}, void 0, !0),
86
- A.value ? (i(), u("span", r({
88
+ }, s(n)("required")), "*", 16)) : f("", !0)
89
+ ], 16, pe)) : f("", !0),
90
+ ie("div", u({ class: "input-field__control" }, s(n)("control")), [
91
+ m(b.$slots, "control-start", {}, void 0, !0),
92
+ O.value ? (i(), d("span", u({
87
93
  key: 0,
88
94
  class: "input-field__icon input-field__icon--left",
89
95
  "aria-hidden": "true"
90
- }, d(n)("prefix")), [
91
- y(p.$slots, "prefix", {}, void 0, !0)
96
+ }, s(n)("prefix")), [
97
+ m(b.$slots, "prefix", {}, void 0, !0)
92
98
  ], 16)) : f("", !0),
93
- V.value ? N((i(), u("textarea", r({
99
+ T.value ? P((i(), d("textarea", u({
94
100
  key: 1,
95
- id: k.value,
101
+ id: x.value,
96
102
  ref_key: "fieldRef",
97
103
  ref: v,
98
- "onUpdate:modelValue": l[0] || (l[0] = (a) => c.value = a),
104
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => c.value = t),
99
105
  class: "input-field__field input-field__field--multiline",
100
- name: t.name,
101
- rows: t.rows,
102
- placeholder: t.placeholder,
103
- disabled: t.disabled,
104
- readonly: t.readonly,
105
- required: t.required,
106
- maxlength: t.maxlength,
107
- "aria-label": I.value,
106
+ name: o.name,
107
+ rows: o.rows,
108
+ placeholder: o.placeholder,
109
+ disabled: o.disabled,
110
+ readonly: o.readonly,
111
+ required: o.required,
112
+ maxlength: o.maxlength,
113
+ "aria-label": M.value,
108
114
  "aria-invalid": h.value || void 0,
109
- "aria-describedby": S.value
110
- }, p.$attrs, {
111
- onInput: l[1] || (l[1] = (a) => s("input", a)),
112
- onChange: l[2] || (l[2] = (a) => s("change", a)),
113
- onFocus: l[3] || (l[3] = (a) => s("focus", a)),
114
- onBlur: l[4] || (l[4] = (a) => s("blur", a))
115
- }), null, 16, fe)), [
116
- [te, c.value]
117
- ]) : N((i(), u("input", r({
115
+ "aria-describedby": E.value
116
+ }, C.value, {
117
+ onInput: l[1] || (l[1] = (t) => r("input", t)),
118
+ onChange: l[2] || (l[2] = (t) => r("change", t)),
119
+ onFocus: l[3] || (l[3] = (t) => r("focus", t)),
120
+ onBlur: l[4] || (l[4] = (t) => r("blur", t))
121
+ }), null, 16, be)), [
122
+ [se, c.value]
123
+ ]) : P((i(), d("input", u({
118
124
  key: 2,
119
- id: k.value,
125
+ id: x.value,
120
126
  ref_key: "fieldRef",
121
127
  ref: v,
122
- "onUpdate:modelValue": l[5] || (l[5] = (a) => c.value = a),
128
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => c.value = t),
123
129
  class: "input-field__field",
124
- type: F.value,
125
- name: t.name,
126
- placeholder: t.placeholder,
127
- disabled: t.disabled,
128
- readonly: t.readonly,
129
- required: t.required,
130
- maxlength: t.maxlength,
131
- autocomplete: t.autocomplete,
132
- inputmode: t.inputmode,
133
- "aria-label": I.value,
130
+ type: U.value,
131
+ name: o.name,
132
+ placeholder: o.placeholder,
133
+ disabled: o.disabled,
134
+ readonly: o.readonly,
135
+ required: o.required,
136
+ maxlength: o.maxlength,
137
+ autocomplete: o.autocomplete,
138
+ inputmode: o.inputmode,
139
+ "aria-label": M.value,
134
140
  "aria-invalid": h.value || void 0,
135
- "aria-describedby": S.value
136
- }, p.$attrs, {
137
- onInput: l[6] || (l[6] = (a) => s("input", a)),
138
- onChange: l[7] || (l[7] = (a) => s("change", a)),
139
- onFocus: l[8] || (l[8] = (a) => s("focus", a)),
140
- onBlur: l[9] || (l[9] = (a) => s("blur", a)),
141
- onKeydown: l[10] || (l[10] = ae((a) => s("enter", a), ["enter"]))
142
- }), null, 16, ve)), [
143
- [oe, c.value]
141
+ "aria-describedby": E.value
142
+ }, C.value, {
143
+ onInput: l[6] || (l[6] = (t) => r("input", t)),
144
+ onChange: l[7] || (l[7] = (t) => r("change", t)),
145
+ onFocus: l[8] || (l[8] = (t) => r("focus", t)),
146
+ onBlur: l[9] || (l[9] = (t) => r("blur", t)),
147
+ onKeydown: l[10] || (l[10] = de((t) => r("enter", t), ["enter"]))
148
+ }), null, 16, ye)), [
149
+ [ue, c.value]
144
150
  ]),
145
- U.value ? (i(), u("span", r({
151
+ j.value ? (i(), d("span", u({
146
152
  key: 3,
147
153
  class: "input-field__icon input-field__icon--right"
148
- }, d(n)("suffix")), [
149
- y(p.$slots, "suffix", {}, void 0, !0),
150
- L.value ? (i(), u("button", r({
154
+ }, s(n)("suffix")), [
155
+ m(b.$slots, "suffix", {}, void 0, !0),
156
+ S.value ? (i(), d("button", u({
151
157
  key: 0,
152
158
  type: "button",
153
159
  class: "input-field__action",
154
- "aria-label": X.value
155
- }, d(n)("clear"), { onClick: H }), [
156
- ie(d(de), { "stroke-width": 2 })
157
- ], 16, pe)) : f("", !0),
158
- x.value ? (i(), u("button", r({
160
+ "aria-label": H.value
161
+ }, s(n)("clear"), { onClick: W }), [
162
+ re(s(ne), { "stroke-width": 2 })
163
+ ], 16, me)) : f("", !0),
164
+ w.value ? (i(), d("button", u({
159
165
  key: 1,
160
166
  type: "button",
161
167
  class: "input-field__action",
162
- "aria-label": j.value,
163
- "aria-pressed": b.value,
164
- disabled: t.disabled
165
- }, d(n)("password-toggle"), { onClick: J }), [
166
- b.value ? (i(), P(d(ue), {
168
+ "aria-label": J.value,
169
+ "aria-pressed": p.value,
170
+ disabled: o.disabled
171
+ }, s(n)("password-toggle"), { onClick: Y }), [
172
+ p.value ? (i(), R(s(fe), {
167
173
  key: 0,
168
174
  "stroke-width": 2
169
- })) : (i(), P(d(re), {
175
+ })) : (i(), R(s(ve), {
170
176
  key: 1,
171
177
  "stroke-width": 2
172
178
  }))
173
- ], 16, ce)) : f("", !0)
179
+ ], 16, he)) : f("", !0)
174
180
  ], 16)) : f("", !0)
175
181
  ], 16),
176
- O.value ? (i(), u("div", be, [
177
- w.value ? (i(), u("p", r({
182
+ G.value ? (i(), d("div", ge, [
183
+ B.value ? (i(), d("p", u({
178
184
  key: 0,
179
- id: C.value,
185
+ id: q.value,
180
186
  class: "input-field__support"
181
- }, d(n)("support")), [
182
- y(p.$slots, "support", {}, () => [
183
- E(g($.value), 1)
187
+ }, s(n)("support")), [
188
+ m(b.$slots, "support", {}, () => [
189
+ N(g(I.value), 1)
184
190
  ], !0)
185
- ], 16, me)) : f("", !0),
186
- M.value ? (i(), u("p", r({
191
+ ], 16, ke)) : f("", !0),
192
+ A.value ? (i(), d("p", u({
187
193
  key: 1,
188
194
  class: "input-field__counter"
189
- }, d(n)("counter")), g(q.value) + " / " + g(t.maxlength), 17)) : f("", !0)
195
+ }, s(n)("counter")), g(L.value) + " / " + g(o.maxlength), 17)) : f("", !0)
190
196
  ])) : f("", !0)
191
197
  ], 16));
192
198
  }
193
199
  });
194
200
  export {
195
- ke as default
201
+ Ce as default
196
202
  };
@@ -1 +1 @@
1
- .number-field[data-v-6e5e2c7b]{--step-height:2.25rem;--step-radius:.5rem;--step-padding-x:.75rem;--step-gap:.5rem;--step-icon-size:1rem;--step-font-size:.875rem;--step-line-height:1.25rem;--step-value-width:1.75rem;--step-border-color:var(--theme-neutral-border-default);--step-icon-color:var(--theme-secondary-500);--step-text-color:var(--theme-neutral-text-title);width:max-content;height:var(--step-height);justify-content:center;align-items:center;gap:var(--step-gap);padding:0 var(--step-padding-x);background-color:var(--theme-neutral-0);border:.0625rem solid var(--step-border-color);border-radius:var(--step-radius);transition:border-color var(--animation-duration-fast) ease;display:flex}.number-field[data-v-6e5e2c7b]:not(.number-field--disabled):hover{--step-border-color:var(--theme-primary-300)}.number-field[data-v-6e5e2c7b]:not(.number-field--disabled):focus-within{--step-border-color:var(--theme-primary-500)}.number-field__button[data-v-6e5e2c7b]{cursor:pointer;color:var(--step-icon-color);transition:color var(--animation-duration-fast) ease;background-color:#0000;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex}.number-field__button[data-v-6e5e2c7b] svg{width:var(--step-icon-size);height:var(--step-icon-size)}.number-field__button[data-v-6e5e2c7b]:hover:not(:disabled){color:var(--theme-secondary-600)}.number-field__button[data-v-6e5e2c7b]:disabled{color:var(--theme-neutral-icon-disabled);cursor:not-allowed}.number-field__button[data-v-6e5e2c7b]:focus-visible{outline:.125rem solid var(--theme-primary-500);outline-offset:.125rem;border-radius:.25rem}.number-field__value[data-v-6e5e2c7b]{width:var(--step-value-width);font-family:inherit;font-weight:400;font-size:var(--step-font-size);line-height:var(--step-line-height);text-align:center;color:var(--step-text-color);background-color:#0000;border:none;outline:none;flex-shrink:0}@media (max-width:1009.98px){.number-field__value[data-v-6e5e2c7b]{font-size:1rem}}.number-field__value[data-v-6e5e2c7b]::placeholder{color:var(--theme-neutral-550)}.number-field__value[data-v-6e5e2c7b]:disabled{cursor:not-allowed;-webkit-text-fill-color:var(--step-text-color);opacity:1}.number-field--small[data-v-6e5e2c7b]{--step-height:1.5rem;--step-padding-x:.5rem;--step-icon-size:.75rem;--step-font-size:.75rem;--step-line-height:1rem;--step-value-width:1.5rem}.number-field--medium[data-v-6e5e2c7b]{--step-height:2.5rem;--step-padding-x:1rem;--step-icon-size:1.125rem;--step-font-size:1rem;--step-line-height:1.5rem;--step-value-width:2rem}.number-field--large[data-v-6e5e2c7b]{--step-height:2.75rem;--step-radius:.75rem;--step-padding-x:1rem;--step-icon-size:1.25rem;--step-font-size:1rem;--step-line-height:1.5rem;--step-value-width:2rem}.number-field--error[data-v-6e5e2c7b]{--step-border-color:var(--theme-error-500)}.number-field--disabled[data-v-6e5e2c7b]{--step-border-color:var(--theme-neutral-border-disabled);--step-icon-color:var(--theme-neutral-icon-disabled);--step-text-color:var(--theme-neutral-400);cursor:not-allowed}
1
+ .number-field[data-v-5a2b652b]{--step-height:2.25rem;--step-radius:.5rem;--step-padding-x:.75rem;--step-gap:.5rem;--step-icon-size:1rem;--step-font-size:.875rem;--step-line-height:1.25rem;--step-value-width:1.75rem;--step-border-color:var(--theme-neutral-border-default);--step-icon-color:var(--theme-secondary-500);--step-text-color:var(--theme-neutral-text-title);width:max-content;height:var(--step-height);justify-content:center;align-items:center;gap:var(--step-gap);padding:0 var(--step-padding-x);background-color:var(--theme-neutral-0);border:.0625rem solid var(--step-border-color);border-radius:var(--step-radius);transition:border-color var(--animation-duration-fast) ease;display:flex}.number-field[data-v-5a2b652b]:not(.number-field--disabled):hover{--step-border-color:var(--theme-primary-300)}.number-field[data-v-5a2b652b]:not(.number-field--disabled):focus-within{--step-border-color:var(--theme-primary-500)}.number-field__button[data-v-5a2b652b]{cursor:pointer;color:var(--step-icon-color);transition:color var(--animation-duration-fast) ease;background-color:#0000;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex}.number-field__button[data-v-5a2b652b] svg{width:var(--step-icon-size);height:var(--step-icon-size)}.number-field__button[data-v-5a2b652b]:hover:not(:disabled){color:var(--theme-secondary-600)}.number-field__button[data-v-5a2b652b]:disabled{color:var(--theme-neutral-icon-disabled);cursor:not-allowed}.number-field__button[data-v-5a2b652b]:focus-visible{outline:.125rem solid var(--theme-primary-500);outline-offset:.125rem;border-radius:.25rem}.number-field__value[data-v-5a2b652b]{width:var(--step-value-width);font-family:inherit;font-weight:400;font-size:var(--step-font-size);line-height:var(--step-line-height);text-align:center;color:var(--step-text-color);background-color:#0000;border:none;outline:none;flex-shrink:0}@media (max-width:1009.98px){.number-field__value[data-v-5a2b652b]{font-size:1rem}}.number-field__value[data-v-5a2b652b]::placeholder{color:var(--theme-neutral-550)}.number-field__value[data-v-5a2b652b]:disabled{cursor:not-allowed;-webkit-text-fill-color:var(--step-text-color);opacity:1}.number-field--small[data-v-5a2b652b]{--step-height:1.5rem;--step-padding-x:.5rem;--step-icon-size:.75rem;--step-font-size:.75rem;--step-line-height:1rem;--step-value-width:1.5rem}.number-field--medium[data-v-5a2b652b]{--step-height:2.5rem;--step-padding-x:1rem;--step-icon-size:1.125rem;--step-font-size:1rem;--step-line-height:1.5rem;--step-value-width:2rem}.number-field--large[data-v-5a2b652b]{--step-height:2.75rem;--step-radius:.75rem;--step-padding-x:1rem;--step-icon-size:1.25rem;--step-font-size:1rem;--step-line-height:1.5rem;--step-value-width:2rem}.number-field--error[data-v-5a2b652b]{--step-border-color:var(--theme-error-500)}.number-field--disabled[data-v-5a2b652b]{--step-border-color:var(--theme-neutral-border-disabled);--step-icon-color:var(--theme-neutral-icon-disabled);--step-text-color:var(--theme-neutral-400);cursor:not-allowed}
@@ -2,7 +2,7 @@ import './InputNumber.css';
2
2
  import o from "./InputNumber.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6e5e2c7b"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a2b652b"]]);
6
6
  export {
7
- p as default
7
+ a as default
8
8
  };
@@ -1,8 +1,9 @@
1
1
  import { defineComponent as _, useModel as ee, useId as te, useTemplateRef as F, computed as r, ref as le, watch as ae, openBlock as S, createBlock as ne, unref as d, createElementBlock as re, mergeProps as b, createElementVNode as N, createVNode as C, mergeModels as P, nextTick as oe } from "vue";
2
2
  import { Minus as ie, Plus as ue } from "@lucide/vue";
3
3
  import de from "../Input/Input.vue.js";
4
- import { useTestId as se } from "../shared/useTestId.util.js";
5
- const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder", "disabled", "readonly", "required", "aria-label", "aria-invalid"], fe = ["disabled", "aria-label"], ge = /* @__PURE__ */ _({
4
+ import { isHtmlInputElement as se } from "../shared/isHtmlElement.util.js";
5
+ import { useTestId as ce } from "../shared/useTestId.util.js";
6
+ const me = ["disabled", "aria-label"], fe = ["id", "value", "name", "placeholder", "disabled", "readonly", "required", "aria-label", "aria-invalid"], ve = ["disabled", "aria-label"], Ie = /* @__PURE__ */ _({
6
7
  inheritAttrs: !1,
7
8
  __name: "InputNumber",
8
9
  props: /* @__PURE__ */ P({
@@ -30,7 +31,7 @@ const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder
30
31
  }),
31
32
  emits: /* @__PURE__ */ P(["change", "increment", "decrement", "focus", "blur"], ["update:modelValue"]),
32
33
  setup(a, { expose: U, emit: Y }) {
33
- const l = a, u = Y, s = ee(a, "modelValue"), p = se(() => l.testId), j = te(), x = F("inputRef"), k = F("stepperRef"), V = r(() => l.variant === "input"), G = r(() => l.id ?? `${j}-number`), H = r(() => l.size === "small" ? "small" : l.size === "large" ? "large" : "default"), y = r(() => l.precision ?? 0), K = r(() => y.value > 0), O = r(() => l.min === void 0 || l.min < 0), M = r(() => l.step ?? 1), W = r(() => "Уменьшить"), J = r(() => "Увеличить"), Q = r(
34
+ const l = a, u = Y, s = ee(a, "modelValue"), p = ce(() => l.testId), j = te(), x = F("inputRef"), k = F("stepperRef"), V = r(() => l.variant === "input"), G = r(() => l.id ?? `${j}-number`), H = r(() => l.size === "small" ? "small" : l.size === "large" ? "large" : "default"), y = r(() => l.precision ?? 0), K = r(() => y.value > 0), O = r(() => l.min === void 0 || l.min < 0), z = r(() => l.step ?? 1), W = r(() => "Уменьшить"), J = r(() => "Увеличить"), Q = r(
34
35
  () => l.ariaLabel ?? l.label ?? "Значение"
35
36
  ), f = (e) => e === null || Number.isNaN(e) ? "" : l.precision === void 0 ? String(e) : e.toFixed(y.value), g = (e) => {
36
37
  if (e === "" || e === "-" || e === "." || e === "-.") return null;
@@ -45,16 +46,16 @@ const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder
45
46
  } else
46
47
  i = i.replace(/\./g, "");
47
48
  return n ? `-${i}` : i;
48
- }, z = (e) => {
49
+ }, M = (e) => {
49
50
  const t = l.min ?? Number.NEGATIVE_INFINITY, n = l.max ?? Number.POSITIVE_INFINITY;
50
51
  return Math.min(n, Math.max(t, e));
51
- }, T = (e) => {
52
+ }, B = (e) => {
52
53
  const t = 10 ** (l.precision ?? 10);
53
54
  return Math.round(e * t) / t;
54
55
  }, o = le(f(s.value)), c = r(() => {
55
56
  if (!V.value) return k.value;
56
57
  const e = x.value?.el;
57
- return e instanceof HTMLInputElement ? e : null;
58
+ return se(e) ? e : null;
58
59
  }), v = async (e) => {
59
60
  await oe();
60
61
  const t = c.value;
@@ -65,21 +66,21 @@ const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder
65
66
  t.setSelectionRange(m, m);
66
67
  }, h = (e) => {
67
68
  e !== s.value && (s.value = e, u("change", e));
68
- }, B = (e) => {
69
+ }, T = (e) => {
69
70
  const t = e.target, n = X(t.value);
70
71
  o.value = n, v(n), h(g(n));
71
72
  }, R = (e) => {
72
- const t = g(o.value), n = t === null ? null : T(z(t));
73
+ const t = g(o.value), n = t === null ? null : B(M(t));
73
74
  h(n), o.value = f(n), v(o.value), u("blur", e);
74
75
  }, I = r(() => s.value ?? l.min ?? 0), q = r(() => l.disabled || l.readonly ? !1 : l.min === void 0 || I.value > l.min), w = r(() => l.disabled || l.readonly ? !1 : l.max === void 0 || I.value < l.max), E = (e) => {
75
- const t = T(z(I.value + e));
76
+ const t = B(M(I.value + e));
76
77
  return h(t), o.value = f(t), v(o.value), t;
77
- }, L = () => {
78
- w.value && u("increment", E(M.value));
79
78
  }, A = () => {
80
- q.value && u("decrement", E(-M.value));
79
+ w.value && u("increment", E(z.value));
80
+ }, L = () => {
81
+ q.value && u("decrement", E(-z.value));
81
82
  }, $ = (e) => {
82
- e.key !== "ArrowUp" && e.key !== "ArrowDown" || (e.preventDefault(), e.key === "ArrowUp" ? L() : A());
83
+ e.key !== "ArrowUp" && e.key !== "ArrowDown" || (e.preventDefault(), e.key === "ArrowUp" ? A() : L());
83
84
  }, Z = r(() => [
84
85
  "number-field",
85
86
  `number-field--${l.size}`,
@@ -117,7 +118,7 @@ const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder
117
118
  "test-id": a.testId,
118
119
  inputmode: "decimal",
119
120
  autocomplete: "off",
120
- onInput: B,
121
+ onInput: T,
121
122
  onBlur: R,
122
123
  onFocus: t[0] || (t[0] = (n) => u("focus", n)),
123
124
  onKeydown: $
@@ -130,9 +131,9 @@ const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder
130
131
  class: "number-field__button",
131
132
  disabled: !q.value,
132
133
  "aria-label": W.value
133
- }, d(p)("decrement"), { onClick: A }), [
134
+ }, d(p)("decrement"), { onClick: L }), [
134
135
  C(d(ie), { "stroke-width": 2 })
135
- ], 16, ce),
136
+ ], 16, me),
136
137
  N("input", b({
137
138
  id: G.value,
138
139
  ref_key: "stepperRef",
@@ -150,22 +151,22 @@ const ce = ["disabled", "aria-label"], me = ["id", "value", "name", "placeholder
150
151
  "aria-label": Q.value,
151
152
  "aria-invalid": a.error || void 0
152
153
  }, e.$attrs, {
153
- onInput: B,
154
+ onInput: T,
154
155
  onBlur: R,
155
156
  onFocus: t[1] || (t[1] = (n) => u("focus", n)),
156
157
  onKeydown: $
157
- }), null, 16, me),
158
+ }), null, 16, fe),
158
159
  N("button", b({
159
160
  type: "button",
160
161
  class: "number-field__button",
161
162
  disabled: !w.value,
162
163
  "aria-label": J.value
163
- }, d(p)("increment"), { onClick: L }), [
164
+ }, d(p)("increment"), { onClick: A }), [
164
165
  C(d(ue), { "stroke-width": 2 })
165
- ], 16, fe)
166
+ ], 16, ve)
166
167
  ], 16));
167
168
  }
168
169
  });
169
170
  export {
170
- ge as default
171
+ Ie as default
171
172
  };
@@ -1,4 +1,4 @@
1
- import { TBreakpoints } from '../../../types/global.types';
1
+ import { TBreakpointMobile } from '../../../types/global.types';
2
2
  import { InputProps } from '../Input';
3
3
  /** Пункт выпадающего списка чипа-селекта. */
4
4
  export interface InputSelectOption {
@@ -34,5 +34,5 @@ export interface InputSelectProps extends Omit<InputProps, 'type'> {
34
34
  */
35
35
  dropdownWidth?: number;
36
36
  /** Точка перелома, ниже которой список открывается шторкой снизу */
37
- breakpointMobile?: TBreakpoints;
37
+ breakpointMobile?: TBreakpointMobile;
38
38
  }
@@ -2,7 +2,7 @@ import { InputSelectOption, InputSelectProps } from './InputSelect.types';
2
2
  import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ShallowRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
3
3
  import { InputType, InputSize, InputNativeType, InputMode, InputProps } from '..';
4
4
  import { OnCleanup } from '@vue/reactivity';
5
- import { TBreakpoints } from '../../../types/global.types';
5
+ import { TBreakpointMobile } from '../../../types/global.types';
6
6
  type __VLS_Props = InputSelectProps;
7
7
  type __VLS_PublicProps = {
8
8
  modelValue?: string;
@@ -207,7 +207,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
207
207
  error: boolean;
208
208
  readonly: boolean;
209
209
  name: string;
210
- breakpointMobile: TBreakpoints;
210
+ breakpointMobile: TBreakpointMobile;
211
211
  rows: number;
212
212
  errorMessage: string;
213
213
  maxlength: number;
@@ -1,7 +1,7 @@
1
- import { defineComponent as $, useModel as p, useTemplateRef as M, computed as n, openBlock as h, createBlock as B, unref as L, mergeProps as P, createSlots as W, withCtx as a, createVNode as g, renderSlot as i, mergeModels as m } from "vue";
2
- import { useElementSize as C } from "@vueuse/core";
3
- import I from "../Input/Input.vue.js";
4
- import S from "./InputSelectChip.vue.js";
1
+ import { defineComponent as $, useModel as p, useTemplateRef as B, computed as s, openBlock as M, createBlock as h, unref as L, mergeProps as g, createSlots as P, withCtx as a, createVNode as S, renderSlot as i, mergeModels as m } from "vue";
2
+ import { useElementSize as W } from "@vueuse/core";
3
+ import C from "../Input/Input.vue.js";
4
+ import I from "./InputSelectChip.vue.js";
5
5
  const R = 234, F = /* @__PURE__ */ $({
6
6
  inheritAttrs: !1,
7
7
  __name: "InputSelect",
@@ -10,7 +10,7 @@ const R = 234, F = /* @__PURE__ */ $({
10
10
  selectPlaceholder: { default: "Label" },
11
11
  selectLabel: { default: void 0 },
12
12
  dropdownWidth: { default: void 0 },
13
- breakpointMobile: { default: "sm" },
13
+ breakpointMobile: { type: [String, Boolean], default: "sm" },
14
14
  size: { default: "default" },
15
15
  nativeType: { default: "text" },
16
16
  label: { default: void 0 },
@@ -40,11 +40,11 @@ const R = 234, F = /* @__PURE__ */ $({
40
40
  }),
41
41
  emits: /* @__PURE__ */ m(["input", "change", "focus", "blur", "enter", "clear", "select"], ["update:modelValue", "update:selected"]),
42
42
  setup(o, { emit: b }) {
43
- const s = o, d = b, u = p(o, "modelValue"), r = p(o, "selected"), f = M("inputRef"), v = n(() => f.value?.$el), { width: c } = C(v), y = n(
44
- () => s.dropdownWidth ?? (Math.round(c.value) || R)
45
- ), k = n(
46
- () => s.selectLabel ?? s.selectPlaceholder
47
- ), V = n(() => {
43
+ const n = o, d = b, u = p(o, "modelValue"), r = p(o, "selected"), f = B("inputRef"), v = s(() => f.value?.$el), { width: c } = W(v), y = s(
44
+ () => n.dropdownWidth ?? (Math.round(c.value) || R)
45
+ ), k = s(
46
+ () => n.selectLabel ?? n.selectPlaceholder
47
+ ), V = s(() => {
48
48
  const {
49
49
  options: t,
50
50
  selectPlaceholder: e,
@@ -52,10 +52,10 @@ const R = 234, F = /* @__PURE__ */ $({
52
52
  dropdownWidth: T,
53
53
  breakpointMobile: x,
54
54
  ...w
55
- } = s;
55
+ } = n;
56
56
  return w;
57
57
  });
58
- return (t, e) => (h(), B(L(I), P({
58
+ return (t, e) => (M(), h(L(C), g({
59
59
  ref_key: "inputRef",
60
60
  ref: f,
61
61
  modelValue: u.value,
@@ -68,9 +68,9 @@ const R = 234, F = /* @__PURE__ */ $({
68
68
  onBlur: e[6] || (e[6] = (l) => d("blur", l)),
69
69
  onEnter: e[7] || (e[7] = (l) => d("enter", l)),
70
70
  onClear: e[8] || (e[8] = (l) => d("clear"))
71
- }), W({
71
+ }), P({
72
72
  "control-start": a(() => [
73
- g(S, {
73
+ S(I, {
74
74
  modelValue: r.value,
75
75
  "onUpdate:modelValue": e[0] || (e[0] = (l) => r.value = l),
76
76
  options: o.options,
@@ -1 +1 @@
1
- .input-chip[data-v-7ffc00f6]{flex-shrink:0;align-self:stretch;display:flex}.input-chip[data-v-7ffc00f6] .popover-trigger{align-items:stretch;display:flex}.input-chip__button[data-v-7ffc00f6]{padding:.5rem var(--field-chip-padding-x);font:inherit;font-weight:500;font-size:var(--field-chip-font-size);white-space:nowrap;color:var(--theme-primary-600);background-color:var(--theme-primary-75);cursor:pointer;transition:color var(--animation-duration-fast) ease, background-color var(--animation-duration-fast) ease;border:none;border-radius:.5rem;justify-content:center;align-items:center;gap:.25rem;line-height:1rem;display:flex}.input-chip__button[data-v-7ffc00f6]:hover:not(:disabled){background-color:var(--theme-primary-200)}.input-chip__button[data-v-7ffc00f6]:focus-visible{outline:.125rem solid var(--theme-primary-500);outline-offset:-.125rem}.input-chip__button[data-v-7ffc00f6]:disabled{cursor:not-allowed;color:var(--theme-neutral-300);background-color:var(--theme-neutral-surface-disabled)}.input-chip__label[data-v-7ffc00f6]{text-overflow:ellipsis;overflow:hidden}.input-chip__arrow[data-v-7ffc00f6]{width:var(--field-chip-icon-size);height:var(--field-chip-icon-size);flex-shrink:0}.input-chip-list[data-v-7ffc00f6]{outline:none;flex-direction:column;gap:.5rem;padding:.5rem;display:flex}.input-chip-list__option[data-v-7ffc00f6]{width:100%;min-height:2rem;font:inherit;text-align:left;color:var(--theme-neutral-text-title);cursor:pointer;transition:background-color var(--animation-duration-fast) ease;background-color:#0000;border:none;border-radius:.5rem;align-items:center;gap:.5rem;padding:.25rem .5rem;font-size:.875rem;font-weight:400;line-height:1.25rem;display:flex}.input-chip-list__option[data-v-7ffc00f6]:hover:not(.input-chip-list__option--disabled),.input-chip-list__option--active[data-v-7ffc00f6]{background-color:var(--theme-secondary-50)}.input-chip-list__option--disabled[data-v-7ffc00f6]{cursor:not-allowed;opacity:.5}.input-chip-list__label[data-v-7ffc00f6]{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}
1
+ .input-chip[data-v-6f0af893]{flex-shrink:0;align-self:stretch;display:flex}.input-chip[data-v-6f0af893] .popover-trigger{align-items:stretch;display:flex}.input-chip__button[data-v-6f0af893]{padding:.5rem var(--field-chip-padding-x);font:inherit;font-weight:500;font-size:var(--field-chip-font-size);white-space:nowrap;color:var(--theme-primary-600);background-color:var(--theme-primary-75);cursor:pointer;transition:color var(--animation-duration-fast) ease, background-color var(--animation-duration-fast) ease;border:none;border-radius:.5rem;justify-content:center;align-items:center;gap:.25rem;line-height:1rem;display:flex}.input-chip__button[data-v-6f0af893]:hover:not(:disabled){background-color:var(--theme-primary-200)}.input-chip__button[data-v-6f0af893]:focus-visible{outline:.125rem solid var(--theme-primary-500);outline-offset:-.125rem}.input-chip__button[data-v-6f0af893]:disabled{cursor:not-allowed;color:var(--theme-neutral-300);background-color:var(--theme-neutral-surface-disabled)}.input-chip__label[data-v-6f0af893]{text-overflow:ellipsis;overflow:hidden}.input-chip__arrow[data-v-6f0af893]{width:var(--field-chip-icon-size);height:var(--field-chip-icon-size);flex-shrink:0}.input-chip-list[data-v-6f0af893]{outline:none;flex-direction:column;gap:.5rem;padding:.5rem;display:flex}.input-chip-list__option[data-v-6f0af893]{width:100%;min-height:2rem;font:inherit;text-align:left;color:var(--theme-neutral-text-title);cursor:pointer;transition:background-color var(--animation-duration-fast) ease;background-color:#0000;border:none;border-radius:.5rem;align-items:center;gap:.5rem;padding:.25rem .5rem;font-size:.875rem;font-weight:400;line-height:1.25rem;display:flex}.input-chip-list__option[data-v-6f0af893]:hover:not(.input-chip-list__option--disabled),.input-chip-list__option--active[data-v-6f0af893]{background-color:var(--theme-secondary-50)}.input-chip-list__option--disabled[data-v-6f0af893]{cursor:not-allowed;opacity:.5}.input-chip-list__label[data-v-6f0af893]{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}
@@ -1,4 +1,4 @@
1
- import { TBreakpoints } from '../../../types/global.types';
1
+ import { TBreakpointMobile } from '../../../types/global.types';
2
2
  import { InputSelectOption } from './InputSelect.types';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  interface Props {
@@ -10,7 +10,7 @@ interface Props {
10
10
  /** Доступное имя чипа и списка */
11
11
  label: string;
12
12
  disabled?: boolean;
13
- breakpointMobile?: TBreakpoints;
13
+ breakpointMobile?: TBreakpointMobile;
14
14
  testId?: string;
15
15
  }
16
16
  type __VLS_Props = Props;
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
25
25
  onSelect?: ((option: InputSelectOption) => any) | undefined;
26
26
  }>, {
27
27
  disabled: boolean;
28
- breakpointMobile: TBreakpoints;
28
+ breakpointMobile: TBreakpointMobile;
29
29
  testId: string;
30
30
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
31
31
  listRef: HTMLDivElement;
@@ -2,7 +2,7 @@ import './InputSelectChip.css';
2
2
  import t from "./InputSelectChip.vue2.js";
3
3
  /* empty css */
4
4
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7ffc00f6"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6f0af893"]]);
6
6
  export {
7
- c as default
7
+ a as default
8
8
  };