@avakhula/ui 0.1.22 → 0.1.23

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 (114) hide show
  1. package/dist/App.js +23 -0
  2. package/dist/EventEmmiter.js +33 -0
  3. package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +8 -0
  4. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  5. package/dist/chunks/floating-ui.dom-D8OVFdyL.js +861 -0
  6. package/dist/chunks/vue-quill.esm-bundler-FvTqp_xR.js +9070 -0
  7. package/dist/components/Accordion/Accordion.js +81 -0
  8. package/dist/components/Alert/Alert.js +121 -0
  9. package/dist/components/Alert/constants.js +10 -0
  10. package/dist/components/Avatar/Avatar.js +75 -0
  11. package/dist/components/Avatar/constants.js +12 -0
  12. package/dist/components/Badge/Badge.js +29 -0
  13. package/dist/components/Breadcrumbs/Breadcrumbs.js +117 -0
  14. package/dist/components/Button/Button.js +140 -0
  15. package/dist/components/Button/constants.js +11 -0
  16. package/dist/components/ButtonGroup/ButtonGroup.js +14 -0
  17. package/dist/components/Chips/Chips.js +65 -0
  18. package/dist/components/Dropdown/Dropdown.js +228 -0
  19. package/dist/components/Dropdown/DropdownDivider.js +10 -0
  20. package/dist/components/Dropdown/DropdownItem.js +50 -0
  21. package/dist/components/Dropdown/DropdownList.js +104 -0
  22. package/dist/components/Dropdown/constants.js +12 -0
  23. package/dist/components/Form/CharactersCount.js +33 -0
  24. package/dist/components/Form/Checkbox/Checkbox.js +171 -0
  25. package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +81 -0
  26. package/dist/components/Form/DatePicker/DatePicker.js +1782 -0
  27. package/dist/components/Form/DatePicker/Icons/chevron-back.js +8 -0
  28. package/dist/components/Form/DatePicker/Icons/chevron-forward.js +8 -0
  29. package/dist/components/Form/FormGroup/FormGroup.js +30 -0
  30. package/dist/components/Form/FormGroup/FormGroupSet.js +44 -0
  31. package/dist/components/Form/Input/Input.js +375 -0
  32. package/dist/components/Form/Input/constants.js +9 -0
  33. package/dist/components/Form/Label/Label.js +87 -0
  34. package/dist/components/Form/PhoneInput/PhoneInput.js +3811 -0
  35. package/dist/components/Form/Radio/Radio.js +91 -0
  36. package/dist/components/Form/TextEditor/TextEditor.js +422 -0
  37. package/dist/components/Form/TextEditor/Toolbar.js +291 -0
  38. package/dist/components/Form/TextEditor/icons/toolbarIcons.js +109 -0
  39. package/dist/components/Form/TextEditor/plugins/alphabetList.js +31 -0
  40. package/dist/components/Form/TextEditor/plugins/imageBlot.js +16 -0
  41. package/dist/components/Form/TextEditor/setupTextEditor.js +27 -0
  42. package/dist/components/Form/Textarea/Textarea.js +121 -0
  43. package/dist/components/Form/Toggle/Toggle.js +134 -0
  44. package/dist/components/Icon.js +37 -0
  45. package/dist/components/IconButton/IconButton.js +93 -0
  46. package/dist/components/IconButton/constants.js +15 -0
  47. package/dist/components/List.js +66 -0
  48. package/dist/components/Modal/Modal.js +198 -0
  49. package/dist/components/Modal/constants.js +9 -0
  50. package/dist/components/Pagination/LimitSelector.js +73 -0
  51. package/dist/components/Pagination/Pagination.js +226 -0
  52. package/dist/components/Panel/Panel.js +107 -0
  53. package/dist/components/Popover/Popover.js +105 -0
  54. package/dist/components/Popover/constants.js +17 -0
  55. package/dist/components/ProgressBar/ProgressBar.js +63 -0
  56. package/dist/components/ProgressBar/constants.js +10 -0
  57. package/dist/components/Sorting/Sorting.js +182 -0
  58. package/dist/components/Sorting/constants.js +12 -0
  59. package/dist/components/SplitButton/SplitButton.js +145 -0
  60. package/dist/components/SplitButton/SplitButtonItem.js +34 -0
  61. package/dist/components/SplitButton/constants.js +7 -0
  62. package/dist/components/StatusIndicator/StatusIndicator.js +29 -0
  63. package/dist/components/StatusIndicator/constants.js +13 -0
  64. package/dist/components/StatusIndicator/icons.js +44 -0
  65. package/dist/components/Table/Cells/Cell.js +39 -0
  66. package/dist/components/Table/Cells/CheckboxCell.js +37 -0
  67. package/dist/components/Table/Row.js +14 -0
  68. package/dist/components/Table/Table.js +24 -0
  69. package/dist/components/Tabs/Tab.js +47 -0
  70. package/dist/components/Tabs/TabDropdown.js +94 -0
  71. package/dist/components/Tabs/Tabs.js +128 -0
  72. package/dist/components/TagPill/TagPill.js +61 -0
  73. package/dist/components/TagPill/constants.js +12 -0
  74. package/dist/components/ToggleTip/ToggleTip.js +91 -0
  75. package/dist/components/ToggleTip/constants.js +17 -0
  76. package/dist/components/Tooltip/Tooltip.js +46 -0
  77. package/dist/components/TreeSelect/Option.js +302 -0
  78. package/dist/components/TreeSelect/Select.js +1871 -0
  79. package/dist/components/TreeSelect/mixins/InfinityLoaderMixin.js +32 -0
  80. package/dist/constants/events.js +5 -0
  81. package/dist/constants/keyCodes.js +12 -0
  82. package/dist/directives/outside/outside.js +37 -0
  83. package/dist/directives/tooltip/TooltipController.js +116 -0
  84. package/dist/directives/tooltip/textOverflowTooltip.js +23 -0
  85. package/dist/directives/tooltip/tooltip.js +48 -0
  86. package/dist/helpers/debounce.js +14 -0
  87. package/dist/helpers/generateUID.js +6 -0
  88. package/dist/helpers/getHrefFromID.js +6 -0
  89. package/dist/helpers/multiLineOverflows.js +6 -0
  90. package/dist/helpers/removeEvents.js +8 -0
  91. package/dist/helpers/stripHtml.js +6 -0
  92. package/dist/index.css +1 -1
  93. package/dist/index.js +103 -22665
  94. package/dist/main.js +10 -0
  95. package/dist/mixins/expandAnimation.js +24 -0
  96. package/package.json +7 -4
  97. package/src/components/Form/Textarea/Textarea.vue +8 -4
  98. package/.babelrc.json +0 -14
  99. package/.eslintrc.cjs +0 -22
  100. package/.nvmrc +0 -1
  101. package/.prettierrc.json +0 -1
  102. package/.storybook/intelliboardTheme.js +0 -10
  103. package/.storybook/main.js +0 -25
  104. package/.storybook/manager.js +0 -7
  105. package/.storybook/preview-head.html +0 -12
  106. package/.storybook/preview.js +0 -25
  107. package/.storybook/scss-loader.scss +0 -6
  108. package/.storybook/withSource.js +0 -97
  109. package/dist/index.umd.cjs +0 -238
  110. package/index.html +0 -21
  111. package/static/Logo.svg +0 -25
  112. package/static/docks/button.pdf +0 -147566
  113. package/static/favicon.ico +0 -0
  114. package/vite.config.js +0 -47
@@ -0,0 +1,8 @@
1
+ const o = `
2
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M10.25 3.5L5.75 8L10.25 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
5
+ `;
6
+ export {
7
+ o as default
8
+ };
@@ -0,0 +1,8 @@
1
+ const o = `
2
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M5.75 3.5L10.25 8L5.75 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
5
+ `;
6
+ export {
7
+ o as default
8
+ };
@@ -0,0 +1,30 @@
1
+ import { createElementBlock as t, openBlock as o, normalizeClass as s, renderSlot as a, createCommentVNode as n, toDisplayString as p } from "vue";
2
+ import { _ as l } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const d = {
4
+ name: "IbInputGroup",
5
+ props: {
6
+ supportText: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: !1
13
+ }
14
+ }
15
+ }, u = {
16
+ key: 0,
17
+ class: "support-text"
18
+ };
19
+ function c(r, i, e, f, m, _) {
20
+ return o(), t("div", {
21
+ class: s(["ib-form-group", { disabled: e.disabled }])
22
+ }, [
23
+ a(r.$slots, "default"),
24
+ e.supportText.length ? (o(), t("p", u, p(e.supportText), 1)) : n("", !0)
25
+ ], 2);
26
+ }
27
+ const g = /* @__PURE__ */ l(d, [["render", c]]);
28
+ export {
29
+ g as default
30
+ };
@@ -0,0 +1,44 @@
1
+ import a from "../../Alert/Alert.js";
2
+ import { resolveComponent as c, createElementBlock as t, openBlock as r, normalizeClass as l, withDirectives as i, createElementVNode as p, createCommentVNode as m, createVNode as d, withCtx as u, createTextVNode as _, toDisplayString as o, vShow as f, renderSlot as g } from "vue";
3
+ import { _ as h } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const x = {
5
+ props: {
6
+ errorMessage: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ supportText: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ components: {
16
+ IbAlert: a
17
+ }
18
+ }, S = { class: "group-set-content" }, v = {
19
+ key: 0,
20
+ class: "support-text"
21
+ };
22
+ function b(s, y, e, C, M, N) {
23
+ const n = c("ib-alert");
24
+ return r(), t("div", {
25
+ class: l(["ib-form-group-set", { "has-error": e.errorMessage.length }])
26
+ }, [
27
+ i(d(n, { class: "error-message" }, {
28
+ default: u(() => [
29
+ _(o(e.errorMessage), 1)
30
+ ]),
31
+ _: 1
32
+ }, 512), [
33
+ [f, e.errorMessage.length]
34
+ ]),
35
+ p("div", S, [
36
+ g(s.$slots, "default")
37
+ ]),
38
+ e.supportText.length ? (r(), t("p", v, o(e.supportText), 1)) : m("", !0)
39
+ ], 2);
40
+ }
41
+ const w = /* @__PURE__ */ h(x, [["render", b]]);
42
+ export {
43
+ w as default
44
+ };
@@ -0,0 +1,375 @@
1
+ import B from "../../Alert/Alert.js";
2
+ import S from "../../IconButton/IconButton.js";
3
+ import k from "../../Icon.js";
4
+ import I from "../../Dropdown/Dropdown.js";
5
+ import { inputTypeOptions as b } from "./constants.js";
6
+ import x from "../../../helpers/generateUID.js";
7
+ import P from "../../../helpers/removeEvents.js";
8
+ import { TooltipDirective as M } from "../../../directives/tooltip/tooltip.js";
9
+ import { horizontalPosition as C, verticalPosition as N } from "../../Dropdown/constants.js";
10
+ import { resolveComponent as f, resolveDirective as D, createElementBlock as V, openBlock as s, createBlock as l, createCommentVNode as r, createElementVNode as g, withCtx as n, createTextVNode as E, toDisplayString as F, normalizeClass as K, withDirectives as d, mergeProps as T, vModelDynamic as z, withKeys as y, createVNode as c, vShow as p, withModifiers as A, renderSlot as H } from "vue";
11
+ import { _ as O } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const U = {
13
+ name: "IbInput",
14
+ props: {
15
+ type: {
16
+ type: String,
17
+ default: b.text,
18
+ validator: (t) => Object.keys(b).includes(t)
19
+ },
20
+ disabled: {
21
+ type: Boolean,
22
+ required: !1,
23
+ default: !1
24
+ },
25
+ error: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ errorMessage: {
30
+ type: String,
31
+ default: ""
32
+ },
33
+ id: {
34
+ type: [String],
35
+ default() {
36
+ return x();
37
+ }
38
+ },
39
+ debounce: {
40
+ type: [Number, String]
41
+ },
42
+ showIcon: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ showClearButton: {
47
+ type: Boolean,
48
+ default: !0
49
+ },
50
+ clearButtonMessage: {
51
+ type: String,
52
+ default: ""
53
+ },
54
+ settingsButtonMessage: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ showPasswordMessage: {
59
+ type: String,
60
+ default: ""
61
+ },
62
+ hidePasswordMessage: {
63
+ type: String,
64
+ default: ""
65
+ },
66
+ value: {
67
+ type: [String, Number],
68
+ default: ""
69
+ },
70
+ modelValue: {
71
+ type: [String, Number]
72
+ },
73
+ settingsVerticalPosition: {
74
+ type: String,
75
+ default: N.bottom
76
+ },
77
+ settingsHorizontalPosition: {
78
+ type: String,
79
+ default: C.right
80
+ },
81
+ readonly: {
82
+ type: Boolean,
83
+ default: !1
84
+ },
85
+ autocomplete: {
86
+ type: String
87
+ },
88
+ isSuccess: {
89
+ type: Boolean,
90
+ default: !1
91
+ },
92
+ hideNumberActions: {
93
+ type: Boolean,
94
+ default: !1
95
+ },
96
+ decrementButtonMessage: {
97
+ type: String,
98
+ default: "Decrement"
99
+ },
100
+ incrementButtonMessage: {
101
+ type: String,
102
+ default: "Increment"
103
+ },
104
+ step: {
105
+ type: Number,
106
+ default: 1
107
+ },
108
+ min: {
109
+ type: Number,
110
+ default: 0
111
+ },
112
+ max: {
113
+ type: Number,
114
+ default: 1 / 0
115
+ },
116
+ toFixed: {
117
+ type: Number,
118
+ default: 0
119
+ }
120
+ },
121
+ data() {
122
+ return {
123
+ actualValue: this.modelValue || this.value,
124
+ showPassword: !1
125
+ };
126
+ },
127
+ mounted() {
128
+ setTimeout(() => {
129
+ this.$globalEvents.$emit(`label:disabled:${this.id}`, this.disabled);
130
+ }, 10);
131
+ },
132
+ methods: {
133
+ toggleShowPassword() {
134
+ this.showPassword = !this.showPassword;
135
+ },
136
+ clearInput() {
137
+ this.actualValue = "", this.$emit("update:modelValue", this.actualValue), this.$emit("input", this.actualValue), this.$emit("clear");
138
+ },
139
+ onBlur() {
140
+ this.$emit("blur", this.actualValue);
141
+ },
142
+ onFocus() {
143
+ this.$emit("focus", this.actualValue);
144
+ },
145
+ onInput() {
146
+ this.debounce ? this.delayedInput(this.actualValue) : (this.$emit("update:modelValue", this.actualValue), this.$emit("input", this.actualValue));
147
+ },
148
+ decrement() {
149
+ this.actualValue > this.min && (this.actualValue = (+this.actualValue - +this.step).toFixed(this.toFixed)), this.$emit("update:modelValue", this.actualValue), this.$emit("input", this.actualValue), this.$emit("blur", this.actualValue);
150
+ },
151
+ increment() {
152
+ this.actualValue < this.max && (this.actualValue = (+this.actualValue + +this.step).toFixed(this.toFixed)), this.$emit("update:modelValue", this.actualValue), this.$emit("input", this.actualValue), this.$emit("blur", this.actualValue);
153
+ },
154
+ delayedInput(t) {
155
+ this.timer && (clearTimeout(this.timer), this.timer = null), this.timer = setTimeout(() => {
156
+ this.$emit("update:modelValue", t), this.$emit("input", t);
157
+ }, this.debounce);
158
+ },
159
+ focus() {
160
+ this.$refs.field.focus();
161
+ }
162
+ },
163
+ computed: {
164
+ hasSettings() {
165
+ return !!this.$slots.settings;
166
+ },
167
+ hasValue() {
168
+ var t;
169
+ return (t = this.actualValue) == null ? void 0 : t.toString().length;
170
+ },
171
+ classes() {
172
+ const t = ["ib-input"];
173
+ return this.hasErrorState && t.push("ib-error"), this.showIcon && t.push("ib-input-has-icon"), t;
174
+ },
175
+ attrs() {
176
+ let t = P({ ...this.$attrs }, ["onInput", "onBlur"]);
177
+ return t.type = this.type === b.password ? b.password && this.showPassword ? "text" : "password" : this.type, t;
178
+ },
179
+ hasErrorState() {
180
+ return this.error || this.errorMessage.length;
181
+ }
182
+ },
183
+ watch: {
184
+ value(t) {
185
+ this.actualValue = t;
186
+ },
187
+ modelValue(t) {
188
+ this.actualValue = t;
189
+ },
190
+ disabled(t) {
191
+ this.$globalEvents.$emit(`label:disabled:${this.id}`, t);
192
+ }
193
+ },
194
+ emits: [
195
+ "input",
196
+ "blur",
197
+ "focus",
198
+ "clear",
199
+ "update:modelValue",
200
+ "label:disabled:undefined"
201
+ ],
202
+ components: {
203
+ IbAlert: B,
204
+ IbIconButton: S,
205
+ IbIcon: k,
206
+ IbDropdown: I
207
+ },
208
+ directives: {
209
+ Tooltip: M
210
+ },
211
+ inheritAttrs: !1
212
+ }, j = ["aria-invalid", "readonly", "disabled", "id", "autocomplete", "min", "max", "step"], q = {
213
+ key: 3,
214
+ class: "number-button-group"
215
+ }, L = { class: "divider" }, G = { class: "settings-wrapper" };
216
+ function J(t, i, e, Q, h, a) {
217
+ const v = f("ib-alert"), u = f("ib-icon"), m = f("ib-icon-button"), _ = f("ib-dropdown"), w = D("tooltip");
218
+ return s(), V("div", null, [
219
+ e.errorMessage ? (s(), l(v, { key: 0 }, {
220
+ default: n(() => [
221
+ E(F(e.errorMessage), 1)
222
+ ]),
223
+ _: 1
224
+ })) : r("", !0),
225
+ g("div", {
226
+ class: K(["ib-input-wrapper", {
227
+ "has-settings": a.hasSettings,
228
+ success: e.isSuccess,
229
+ "numbers-type": e.type === "number" && !e.hideNumberActions
230
+ }])
231
+ }, [
232
+ e.showIcon ? (s(), l(u, {
233
+ key: 0,
234
+ class: "icon-search",
235
+ name: "search-outline"
236
+ })) : r("", !0),
237
+ d(g("input", T(a.attrs, {
238
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => h.actualValue = o),
239
+ ref: "field",
240
+ "aria-invalid": !!a.hasErrorState,
241
+ readonly: e.readonly,
242
+ disabled: e.disabled,
243
+ id: e.id,
244
+ autocomplete: e.autocomplete,
245
+ class: a.classes,
246
+ min: e.min,
247
+ max: e.max,
248
+ step: e.step,
249
+ onInput: i[1] || (i[1] = (o) => a.onInput(o)),
250
+ onBlur: i[2] || (i[2] = (o) => a.onBlur(o)),
251
+ onFocus: i[3] || (i[3] = (o) => a.onFocus(o))
252
+ }), null, 16, j), [
253
+ [
254
+ z,
255
+ h.actualValue,
256
+ void 0,
257
+ { trim: !0 }
258
+ ]
259
+ ]),
260
+ e.type !== "password" && e.showClearButton ? d((s(), l(m, {
261
+ key: 1,
262
+ kind: "ghost",
263
+ class: "button-clear",
264
+ disabled: e.readonly || e.disabled,
265
+ "help-text": e.clearButtonMessage,
266
+ "prevent-default": "",
267
+ type: "button",
268
+ onClick: a.clearInput,
269
+ onKeypress: y(a.clearInput, ["enter"])
270
+ }, {
271
+ default: n(() => [
272
+ c(u, { name: "close-outline" })
273
+ ]),
274
+ _: 1
275
+ }, 8, ["disabled", "help-text", "onClick", "onKeypress"])), [
276
+ [p, a.hasValue]
277
+ ]) : r("", !0),
278
+ e.isSuccess ? (s(), l(u, {
279
+ key: 2,
280
+ class: "succes-checkmark",
281
+ name: "checkmark-circle"
282
+ })) : r("", !0),
283
+ e.type === "number" && !e.hideNumberActions ? (s(), V("div", q, [
284
+ d(g("div", L, null, 512), [
285
+ [p, a.hasValue]
286
+ ]),
287
+ d((s(), l(m, {
288
+ kind: "ghost",
289
+ class: "button-decrement",
290
+ disabled: e.readonly || e.disabled,
291
+ "prevent-default": "",
292
+ type: "button",
293
+ "aria-label": "Decrement value",
294
+ onBlur: a.onBlur,
295
+ onClick: a.decrement,
296
+ onKeypress: y(a.decrement, ["enter"])
297
+ }, {
298
+ default: n(() => [
299
+ c(u, { name: "remove-outline" })
300
+ ]),
301
+ _: 1
302
+ }, 8, ["disabled", "onBlur", "onClick", "onKeypress"])), [
303
+ [w, e.decrementButtonMessage]
304
+ ]),
305
+ d((s(), l(m, {
306
+ kind: "ghost",
307
+ class: "button-increment",
308
+ disabled: e.readonly || e.disabled,
309
+ "prevent-default": "",
310
+ type: "button",
311
+ "aria-label": "Increment value",
312
+ onBlur: a.onBlur,
313
+ onClick: a.increment,
314
+ onKeypress: y(a.increment, ["enter"])
315
+ }, {
316
+ default: n(() => [
317
+ c(u, { name: "add-outline" })
318
+ ]),
319
+ _: 1
320
+ }, 8, ["disabled", "onBlur", "onClick", "onKeypress"])), [
321
+ [w, e.incrementButtonMessage]
322
+ ])
323
+ ])) : r("", !0),
324
+ e.type === "password" ? d((s(), l(m, {
325
+ key: 4,
326
+ kind: "ghost",
327
+ class: "toggle-password",
328
+ "prevent-default": "",
329
+ type: "button",
330
+ disabled: e.disabled,
331
+ "help-text": h.showPassword ? e.hidePasswordMessage : e.showPasswordMessage,
332
+ onClick: A(a.toggleShowPassword, ["prevent"])
333
+ }, {
334
+ default: n(() => [
335
+ c(u, {
336
+ name: h.showPassword ? "eye-off-outline" : "eye-outline"
337
+ }, null, 8, ["name"])
338
+ ]),
339
+ _: 1
340
+ }, 8, ["disabled", "help-text", "onClick"])), [
341
+ [p, a.hasValue]
342
+ ]) : r("", !0),
343
+ a.hasSettings ? (s(), l(_, {
344
+ key: 5,
345
+ class: "settings-dropdown-wrapper",
346
+ horizontal: e.settingsHorizontalPosition,
347
+ vertical: e.settingsVerticalPosition
348
+ }, {
349
+ trigger: n(() => [
350
+ c(m, {
351
+ "prevent-default": "",
352
+ "help-text": e.settingsButtonMessage,
353
+ class: "options-trigger",
354
+ kind: "ghost"
355
+ }, {
356
+ default: n(() => [
357
+ c(u, { name: "options" })
358
+ ]),
359
+ _: 1
360
+ }, 8, ["help-text"])
361
+ ]),
362
+ body: n(() => [
363
+ g("div", G, [
364
+ H(t.$slots, "settings", {}, void 0, !0)
365
+ ])
366
+ ]),
367
+ _: 3
368
+ }, 8, ["horizontal", "vertical"])) : r("", !0)
369
+ ], 2)
370
+ ]);
371
+ }
372
+ const le = /* @__PURE__ */ O(U, [["render", J], ["__scopeId", "data-v-c59dbdf5"]]);
373
+ export {
374
+ le as default
375
+ };
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ text: "text",
3
+ password: "password",
4
+ email: "email",
5
+ number: "number"
6
+ };
7
+ export {
8
+ e as inputTypeOptions
9
+ };
@@ -0,0 +1,87 @@
1
+ import d from "../../IconButton/IconButton.js";
2
+ import f from "../../Icon.js";
3
+ import { TooltipDirective as b } from "../../../directives/tooltip/tooltip.js";
4
+ import { resolveComponent as i, resolveDirective as u, createElementBlock as n, openBlock as o, normalizeClass as m, createCommentVNode as s, renderSlot as _, withDirectives as p, createBlock as h, withCtx as x, createVNode as v } from "vue";
5
+ import { _ as y } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const g = {
7
+ name: "IbLabel",
8
+ props: {
9
+ for: {
10
+ type: String
11
+ },
12
+ required: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ infoText: {
17
+ type: [String, Object],
18
+ default: ""
19
+ },
20
+ tooltipPosition: {
21
+ type: String
22
+ },
23
+ disabled: {
24
+ type: Boolean,
25
+ default: !1
26
+ }
27
+ },
28
+ mounted() {
29
+ this.$globalEvents.$on(`label:disabled:${this.for}`, (e) => {
30
+ this.idDisabled = e;
31
+ });
32
+ },
33
+ data() {
34
+ return {
35
+ idDisabled: this.disabled
36
+ };
37
+ },
38
+ watch: {
39
+ disabled(e) {
40
+ this.idDisabled = e;
41
+ }
42
+ },
43
+ computed: {
44
+ classes() {
45
+ const e = ["ib-label"];
46
+ return this.infoText.length && e.push("has-info-text"), this.idDisabled && e.push("label-disabled"), e;
47
+ }
48
+ },
49
+ components: {
50
+ IbIconButton: d,
51
+ IbIcon: f
52
+ },
53
+ directives: {
54
+ Tooltip: b
55
+ }
56
+ }, k = ["for"], D = {
57
+ key: 0,
58
+ class: "required"
59
+ };
60
+ function I(e, T, t, B, C, l) {
61
+ const a = i("ib-icon"), r = i("ib-icon-button"), c = u("tooltip");
62
+ return o(), n("label", {
63
+ class: m(l.classes),
64
+ for: t.for
65
+ }, [
66
+ t.required ? (o(), n("span", D, "* ")) : s("", !0),
67
+ _(e.$slots, "default", {}, void 0, !0),
68
+ t.infoText.length || Object.keys(t.infoText).length ? p((o(), h(r, {
69
+ key: 1,
70
+ size: "xs",
71
+ class: "info-button",
72
+ kind: "ghost",
73
+ type: "button"
74
+ }, {
75
+ default: x(() => [
76
+ v(a, { name: "information-circle-outline" })
77
+ ]),
78
+ _: 1
79
+ })), [
80
+ [c, t.infoText, t.tooltipPosition]
81
+ ]) : s("", !0)
82
+ ], 10, k);
83
+ }
84
+ const z = /* @__PURE__ */ y(g, [["render", I], ["__scopeId", "data-v-d09af73c"]]);
85
+ export {
86
+ z as default
87
+ };