@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,94 @@
1
+ import u from "../Dropdown/DropdownList.js";
2
+ import D from "../Dropdown/DropdownItem.js";
3
+ import h from "../Icon.js";
4
+ import T from "../../helpers/getHrefFromID.js";
5
+ import { resolveComponent as d, createElementBlock as a, openBlock as i, createVNode as c, withCtx as n, Fragment as k, renderList as x, createBlock as y, normalizeClass as l, createTextVNode as b, toDisplayString as m, createElementVNode as v } from "vue";
6
+ import { _ as I } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const g = {
8
+ name: "IbTabDropdown",
9
+ props: {
10
+ tabs: {
11
+ rype: Object,
12
+ default: {}
13
+ },
14
+ selectedTab: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ selectedTabByDropdown: "",
22
+ isDisabledDropdown: this.setDisabledTab()
23
+ };
24
+ },
25
+ methods: {
26
+ createHref(e) {
27
+ return T(e);
28
+ },
29
+ selectTab(e) {
30
+ this.selectedTabByDropdown = e, this.$emit("select-tab", e);
31
+ },
32
+ setDisabledTab() {
33
+ return this.tabs.tabs.every((e) => e.disabled);
34
+ }
35
+ },
36
+ computed: {
37
+ isActive() {
38
+ for (let e of this.tabs.tabs)
39
+ if (e.id === this.selectedTab)
40
+ return !0;
41
+ return !1;
42
+ }
43
+ },
44
+ components: {
45
+ IbDropdownList: u,
46
+ IbDropdownItem: D,
47
+ IbIcon: h
48
+ }
49
+ }, B = { class: "wrapper-tab-link dropdown-tab" }, C = ["tabindex"];
50
+ function H(e, N, o, V, r, s) {
51
+ const p = d("ib-icon"), _ = d("ib-dropdown-item"), f = d("ib-dropdown-list");
52
+ return i(), a("div", B, [
53
+ c(f, {
54
+ disabled: r.isDisabledDropdown,
55
+ "close-on-click": !0
56
+ }, {
57
+ trigger: n(() => [
58
+ v("span", {
59
+ class: l(["tab-link", {
60
+ active: r.selectedTabByDropdown === o.selectedTab || s.isActive,
61
+ disabled: r.isDisabledDropdown
62
+ }]),
63
+ tabindex: r.isDisabledDropdown ? -1 : 0
64
+ }, [
65
+ b(m(o.tabs.name) + " ", 1),
66
+ c(p, { name: "chevron-down" })
67
+ ], 10, C)
68
+ ]),
69
+ body: n(() => [
70
+ (i(!0), a(k, null, x(o.tabs.tabs, (t, w) => (i(), y(_, {
71
+ key: w,
72
+ checked: t.id === o.selectedTab,
73
+ href: s.createHref(t.id),
74
+ tabindex: t.disabled ? -1 : 0,
75
+ class: l([{
76
+ disabled: t.disabled
77
+ }, "dropdown-tab-item"]),
78
+ target: "_self",
79
+ onClick: (A) => s.selectTab(t.id)
80
+ }, {
81
+ default: n(() => [
82
+ b(m(t.title), 1)
83
+ ]),
84
+ _: 2
85
+ }, 1032, ["checked", "href", "tabindex", "class", "onClick"]))), 128))
86
+ ]),
87
+ _: 1
88
+ }, 8, ["disabled"])
89
+ ]);
90
+ }
91
+ const O = /* @__PURE__ */ I(g, [["render", H]]);
92
+ export {
93
+ O as default
94
+ };
@@ -0,0 +1,128 @@
1
+ import _ from "../Icon.js";
2
+ import T from "./TabDropdown.js";
3
+ import I from "../../helpers/getHrefFromID.js";
4
+ import { resolveComponent as d, createElementBlock as n, openBlock as o, createElementVNode as b, Fragment as f, renderList as k, createBlock as i, resolveDynamicComponent as y, mergeProps as v, withCtx as g, createCommentVNode as p, createTextVNode as w, toDisplayString as x, renderSlot as H } from "vue";
5
+ import { _ as C } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const S = {
7
+ name: "IbTabs",
8
+ props: {
9
+ showTitle: {
10
+ type: Boolean,
11
+ default: !0
12
+ },
13
+ selectedTabId: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ setHref: {
18
+ type: Boolean,
19
+ default: !1
20
+ }
21
+ },
22
+ data() {
23
+ return {
24
+ tabs: [],
25
+ selectedTab: this.selectTabId
26
+ };
27
+ },
28
+ watch: {
29
+ selectedTabId(t) {
30
+ this.selectTab(t);
31
+ }
32
+ },
33
+ created() {
34
+ const t = [];
35
+ this.$slots.default().forEach((e) => e.type === Symbol.for("v-fgt") ? t.push(...e.children) : t.push(e)), t.forEach((e) => {
36
+ if (!e.props.name)
37
+ this.tabs.push(e.props);
38
+ else {
39
+ const a = this.tabs.findIndex(
40
+ (r) => r.name === e.props.name
41
+ );
42
+ if (a !== -1)
43
+ this.tabs[a].tabs.push(e.props);
44
+ else {
45
+ const r = { name: e.props.name, tabs: [e.props] };
46
+ this.tabs.push(r);
47
+ }
48
+ }
49
+ });
50
+ for (let e of this.tabs)
51
+ if (!e.disabled)
52
+ if (e.tabs) {
53
+ for (let a of e.tabs)
54
+ if (!a.disabled) {
55
+ this.selectTab(a.id);
56
+ return;
57
+ }
58
+ } else {
59
+ this.selectTab(e.id);
60
+ return;
61
+ }
62
+ },
63
+ methods: {
64
+ createHref(t) {
65
+ return I(t);
66
+ },
67
+ selectTab(t) {
68
+ this.$emit("changeTab", t), this.selectedTab = t;
69
+ }
70
+ },
71
+ components: {
72
+ IbTabDropdown: T,
73
+ IbIcon: _
74
+ },
75
+ emits: ["changeTab"]
76
+ }, B = { class: "tabs" }, E = { class: "tabs-list" }, D = {
77
+ key: 0,
78
+ class: "wrapper-tab-link"
79
+ }, N = {
80
+ class: "tabs-content",
81
+ ref: "tabHandler"
82
+ };
83
+ function V(t, e, a, r, l, c) {
84
+ const m = d("ib-icon"), h = d("ib-tab-dropdown");
85
+ return o(), n("div", B, [
86
+ b("ul", E, [
87
+ (o(!0), n(f, null, k(l.tabs, (s, u) => (o(), n("li", {
88
+ class: "tab-item",
89
+ key: u
90
+ }, [
91
+ s.name ? (o(), i(h, {
92
+ key: 1,
93
+ "selected-tab": l.selectedTab,
94
+ tabs: s,
95
+ onSelectTab: c.selectTab
96
+ }, null, 8, ["selected-tab", "tabs", "onSelectTab"])) : (o(), n("div", D, [
97
+ (o(), i(y(a.setHref ? "a" : "div"), v(a.setHref ? { href: c.createHref(s.id), target: "_self" } : {}, {
98
+ class: ["tab-link", {
99
+ active: l.selectedTab === s.id,
100
+ disabled: s.disabled
101
+ }],
102
+ tabindex: s.disabled ? -1 : 0,
103
+ onClick: (F) => c.selectTab(s.id)
104
+ }), {
105
+ default: g(() => [
106
+ s.icon ? (o(), i(m, {
107
+ key: 0,
108
+ class: "tab-icon",
109
+ name: s.icon
110
+ }, null, 8, ["name"])) : p("", !0),
111
+ a.showTitle ? (o(), n(f, { key: 1 }, [
112
+ w(x(s.title), 1)
113
+ ], 64)) : p("", !0)
114
+ ]),
115
+ _: 2
116
+ }, 1040, ["class", "tabindex", "onClick"]))
117
+ ]))
118
+ ]))), 128))
119
+ ]),
120
+ b("div", N, [
121
+ H(t.$slots, "default", {}, void 0, !0)
122
+ ], 512)
123
+ ]);
124
+ }
125
+ const A = /* @__PURE__ */ C(S, [["render", V], ["__scopeId", "data-v-8512ce8a"]]);
126
+ export {
127
+ A as default
128
+ };
@@ -0,0 +1,61 @@
1
+ import { tagPillSTatuses as t } from "./constants.js";
2
+ import a from "../Icon.js";
3
+ import { resolveComponent as c, createElementBlock as l, openBlock as o, normalizeClass as i, createBlock as u, createCommentVNode as m, createElementVNode as d, renderSlot as p } from "vue";
4
+ import { _ as f } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const _ = {
6
+ props: {
7
+ status: {
8
+ type: String,
9
+ default: t.neutral,
10
+ validator: (e) => Object.keys(t).includes(e)
11
+ },
12
+ icon: {
13
+ type: String,
14
+ default: ""
15
+ },
16
+ showIcon: {
17
+ type: Boolean,
18
+ default: !1
19
+ }
20
+ },
21
+ computed: {
22
+ classes() {
23
+ const e = ["ib-tag-pill"];
24
+ return e.push(`ib-tag-pill-${this.status}`), e;
25
+ },
26
+ iconName() {
27
+ if (this.icon) return this.icon;
28
+ switch (this.status) {
29
+ case t.success:
30
+ return "checkmark-outline";
31
+ case t.neutral:
32
+ return "time-outline";
33
+ case t.info:
34
+ return "information-circle-outline";
35
+ case t.error:
36
+ return "close-outline";
37
+ default:
38
+ return "";
39
+ }
40
+ }
41
+ },
42
+ components: { IbIcon: a }
43
+ };
44
+ function h(e, b, s, g, k, n) {
45
+ const r = c("ib-icon");
46
+ return o(), l("div", {
47
+ class: i(n.classes)
48
+ }, [
49
+ s.showIcon && n.iconName.length ? (o(), u(r, {
50
+ key: 0,
51
+ name: n.iconName
52
+ }, null, 8, ["name"])) : m("", !0),
53
+ d("span", null, [
54
+ p(e.$slots, "default", {}, void 0, !0)
55
+ ])
56
+ ], 2);
57
+ }
58
+ const B = /* @__PURE__ */ f(_, [["render", h], ["__scopeId", "data-v-ab3c0159"]]);
59
+ export {
60
+ B as default
61
+ };
@@ -0,0 +1,12 @@
1
+ const e = {
2
+ success: "success",
3
+ neutral: "neutral",
4
+ info: "info",
5
+ error: "error",
6
+ new: "new",
7
+ favorite: "favorite",
8
+ pending: "pending"
9
+ };
10
+ export {
11
+ e as tagPillSTatuses
12
+ };
@@ -0,0 +1,91 @@
1
+ import { toggleTipPosition as d } from "./constants.js";
2
+ import u from "../IconButton/IconButton.js";
3
+ import h from "../Icon.js";
4
+ import { resolveComponent as i, createBlock as m, openBlock as _, Transition as f, withCtx as s, withDirectives as b, createElementVNode as e, normalizeClass as g, createVNode as n, toDisplayString as v, withModifiers as S, renderSlot as l, vShow as C } from "vue";
5
+ import { _ as I } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const O = {
7
+ name: "IbTooltip",
8
+ props: {
9
+ position: {
10
+ type: String,
11
+ default: d.topCenter
12
+ },
13
+ title: {
14
+ type: String
15
+ },
16
+ isOpen: {
17
+ type: Boolean,
18
+ default: !1
19
+ }
20
+ },
21
+ mounted() {
22
+ this.$nextTick(() => {
23
+ this.parentNode = this.$el.parentNode, getComputedStyle(this.parentNode).position !== "absolute" && (this.parentNode.style.position = "relative");
24
+ });
25
+ },
26
+ data() {
27
+ return {
28
+ isOpenedState: this.isOpen
29
+ };
30
+ },
31
+ methods: {
32
+ open() {
33
+ this.isOpenedState = !0, this.$emit("open");
34
+ },
35
+ close() {
36
+ this.isOpenedState = !1, this.$emit("close");
37
+ }
38
+ },
39
+ computed: {
40
+ classes() {
41
+ const t = ["ib-toggle-tip"];
42
+ return t.push(`ib-${this.position}`), t;
43
+ }
44
+ },
45
+ watch: {
46
+ isOpen(t) {
47
+ t ? this.open() : this.close();
48
+ }
49
+ },
50
+ components: {
51
+ IbIconButton: u,
52
+ IbIcon: h
53
+ }
54
+ }, $ = { class: "ib-toggle-tip-head" }, k = { class: "ib-toggle-tip-content" }, y = { class: "ib-toggle-tip-button-set" };
55
+ function N(t, T, p, w, c, o) {
56
+ const a = i("ib-icon"), r = i("ib-icon-button");
57
+ return _(), m(f, null, {
58
+ default: s(() => [
59
+ b(e("div", {
60
+ class: g(o.classes)
61
+ }, [
62
+ e("div", $, [
63
+ e("p", null, v(p.title), 1),
64
+ n(r, {
65
+ class: "close-button",
66
+ kind: "ghost",
67
+ onClick: S(o.close, ["prevent"])
68
+ }, {
69
+ default: s(() => [
70
+ n(a, { name: "close-outline" })
71
+ ]),
72
+ _: 1
73
+ }, 8, ["onClick"])
74
+ ]),
75
+ e("div", k, [
76
+ l(t.$slots, "default", {}, void 0, !0)
77
+ ]),
78
+ e("div", y, [
79
+ l(t.$slots, "buttons", {}, void 0, !0)
80
+ ])
81
+ ], 2), [
82
+ [C, c.isOpenedState]
83
+ ])
84
+ ]),
85
+ _: 3
86
+ });
87
+ }
88
+ const E = /* @__PURE__ */ I(O, [["render", N], ["__scopeId", "data-v-16d5a7bd"]]);
89
+ export {
90
+ E as default
91
+ };
@@ -0,0 +1,17 @@
1
+ const t = {
2
+ topLeft: "top-left",
3
+ topCenter: "top-center",
4
+ topRight: "top-right",
5
+ rightTop: "right-top",
6
+ rightCenter: "right-center",
7
+ rightBottom: "right-bottom",
8
+ bottomLeft: "bottom-left",
9
+ bottomCenter: "bottom-center",
10
+ bottomRight: "bottom-right",
11
+ leftTop: "left-top",
12
+ leftCenter: "left-center",
13
+ leftBottom: "left-bottom"
14
+ };
15
+ export {
16
+ t as toggleTipPosition
17
+ };
@@ -0,0 +1,46 @@
1
+ import a from "../Popover/Popover.js";
2
+ import { resolveComponent as n, createBlock as c, openBlock as o, normalizeClass as r, withCtx as p, createElementBlock as m, createCommentVNode as _, createElementVNode as d, toDisplayString as i } from "vue";
3
+ import { _ as b } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const f = {
5
+ name: "IbTooltip",
6
+ props: {
7
+ position: {
8
+ type: String
9
+ },
10
+ title: {
11
+ type: String
12
+ },
13
+ text: {
14
+ type: String
15
+ },
16
+ alwaysVisible: {
17
+ type: Boolean,
18
+ default: !1
19
+ }
20
+ },
21
+ computed: {
22
+ classList() {
23
+ const e = ["ib-tooltip"];
24
+ return this.title && e.push("ib-tooltip-large"), e;
25
+ }
26
+ },
27
+ components: { IbPopover: a }
28
+ }, u = { key: 0 };
29
+ function y(e, v, t, x, g, s) {
30
+ const l = n("ib-popover");
31
+ return o(), c(l, {
32
+ position: t.position,
33
+ "always-visible": t.alwaysVisible,
34
+ class: r(s.classList)
35
+ }, {
36
+ default: p(() => [
37
+ t.title ? (o(), m("b", u, i(t.title), 1)) : _("", !0),
38
+ d("p", null, i(t.text), 1)
39
+ ]),
40
+ _: 1
41
+ }, 8, ["position", "always-visible", "class"]);
42
+ }
43
+ const B = /* @__PURE__ */ b(f, [["render", y], ["__scopeId", "data-v-996c106d"]]);
44
+ export {
45
+ B as default
46
+ };