@brighterly/ui-kit 0.1.1 → 0.1.6
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.
- package/README.md +24 -87
- package/dist/ui-kit.es.js +471 -297
- package/package.json +17 -16
package/README.md
CHANGED
|
@@ -1,93 +1,30 @@
|
|
|
1
1
|
# ui-kit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
* [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
* [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
3
|
+
**to enable prepush guard**
|
|
4
|
+
run:
|
|
5
|
+
```shell
|
|
6
|
+
chmod +x _tools/git/pre-push
|
|
7
|
+
ln -s ../../_tools/git/pre-push .git/hooks/pre-push
|
|
16
8
|
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://gitlab.com/brighterly/libs/ui-kit.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Integrate with your tools
|
|
24
|
-
|
|
25
|
-
* [Set up project integrations](https://gitlab.com/brighterly/libs/ui-kit/-/settings/integrations)
|
|
26
|
-
|
|
27
|
-
## Collaborate with your team
|
|
28
|
-
|
|
29
|
-
* [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
-
* [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
-
* [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
-
* [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
-
* [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
|
|
34
|
-
|
|
35
|
-
## Test and Deploy
|
|
36
|
-
|
|
37
|
-
Use the built-in continuous integration in GitLab.
|
|
38
|
-
|
|
39
|
-
* [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
|
|
40
|
-
* [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
-
* [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
-
* [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
-
* [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
# Editing this README
|
|
48
9
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
## Name
|
|
56
|
-
Choose a self-explaining name for your project.
|
|
57
|
-
|
|
58
|
-
## Description
|
|
59
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
60
|
-
|
|
61
|
-
## Badges
|
|
62
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
63
|
-
|
|
64
|
-
## Visuals
|
|
65
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
66
|
-
|
|
67
|
-
## Installation
|
|
68
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
69
|
-
|
|
70
|
-
## Usage
|
|
71
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
72
|
-
|
|
73
|
-
## Support
|
|
74
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
75
|
-
|
|
76
|
-
## Roadmap
|
|
77
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
78
|
-
|
|
79
|
-
## Contributing
|
|
80
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
81
|
-
|
|
82
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
83
|
-
|
|
84
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
85
|
-
|
|
86
|
-
## Authors and acknowledgment
|
|
87
|
-
Show your appreciation to those who have contributed to the project.
|
|
10
|
+
**to download deps:**
|
|
11
|
+
run:
|
|
12
|
+
```bash
|
|
13
|
+
set -a; source .env; set +a
|
|
14
|
+
pnpm i
|
|
15
|
+
```
|
|
88
16
|
|
|
89
|
-
|
|
90
|
-
|
|
17
|
+
**to login in npm to enable version patch**
|
|
18
|
+
```bash
|
|
19
|
+
npm login # and then ENTER to login within browser
|
|
20
|
+
npm whoami # to check is everything correct, should log "brighterly"
|
|
21
|
+
```
|
|
91
22
|
|
|
92
|
-
|
|
93
|
-
|
|
23
|
+
**to trigger auto-publish with ci**
|
|
24
|
+
to update package version patch|minor|major - (developer must decide what the version should be)
|
|
25
|
+
run:
|
|
26
|
+
**with empty stage changes (any changes that was made can be freely pushed to the repo ci triggers only on tag with v@.@.@ prefix)**
|
|
27
|
+
```bash
|
|
28
|
+
pnpm version patch -m "release: v%s message for the changes"
|
|
29
|
+
git push --follow-tags
|
|
30
|
+
```
|
package/dist/ui-kit.es.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { faSquare as
|
|
3
|
-
import { faSquareCheck as
|
|
4
|
-
import { FontAwesomeIcon as
|
|
5
|
-
|
|
6
|
-
const W = /* @__PURE__ */ d({
|
|
1
|
+
import { defineComponent as f, openBlock as a, createBlock as B, resolveDynamicComponent as U, withCtx as y, renderSlot as k, computed as M, createElementBlock as u, normalizeClass as d, createVNode as p, unref as _, createElementVNode as g, withModifiers as G, createCommentVNode as h, watch as V, toRef as Y, readonly as Z, customRef as ee, ref as te, getCurrentScope as ne, onScopeDispose as oe, toValue as C, shallowRef as H, withDirectives as le, toDisplayString as T, createTextVNode as ce } from "vue";
|
|
2
|
+
import { faSquare as ae, faCircle as ie } from "@fortawesome/pro-regular-svg-icons";
|
|
3
|
+
import { faSquareCheck as se, faXmark as de, faEllipsisVertical as ue, faScrubber as re } from "@fortawesome/pro-solid-svg-icons";
|
|
4
|
+
import { FontAwesomeIcon as I } from "@fortawesome/vue-fontawesome";
|
|
5
|
+
const fe = /* @__PURE__ */ f({
|
|
7
6
|
name: "IconContainer",
|
|
8
7
|
__name: "IconContainer",
|
|
9
8
|
props: {
|
|
10
9
|
is: { default: "span" }
|
|
11
10
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (
|
|
14
|
-
default:
|
|
15
|
-
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (t, o) => (a(), B(U(e.is), { class: "icon-container" }, {
|
|
13
|
+
default: y(() => [
|
|
14
|
+
k(t.$slots, "default", {}, void 0, !0)
|
|
16
15
|
]),
|
|
17
16
|
_: 3
|
|
18
17
|
}));
|
|
19
18
|
}
|
|
20
|
-
}),
|
|
21
|
-
const
|
|
22
|
-
for (const [
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
},
|
|
19
|
+
}), m = (e, t) => {
|
|
20
|
+
const o = e.__vccOpts || e;
|
|
21
|
+
for (const [l, n] of t)
|
|
22
|
+
o[l] = n;
|
|
23
|
+
return o;
|
|
24
|
+
}, $ = /* @__PURE__ */ m(fe, [["__scopeId", "data-v-41c12e6f"]]), me = ["disabled"], be = /* @__PURE__ */ f({
|
|
26
25
|
name: "BtnCheckbox",
|
|
27
26
|
__name: "ButtonCheckbox",
|
|
28
27
|
props: {
|
|
@@ -30,54 +29,54 @@ const W = /* @__PURE__ */ d({
|
|
|
30
29
|
disabled: { type: Boolean, default: !1 }
|
|
31
30
|
},
|
|
32
31
|
emits: ["click"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
return (
|
|
38
|
-
class:
|
|
39
|
-
disabled:
|
|
40
|
-
onClick:
|
|
32
|
+
setup(e, { emit: t }) {
|
|
33
|
+
const o = e, l = t, n = () => {
|
|
34
|
+
o.disabled || l("click");
|
|
35
|
+
}, c = M(() => o.checked ? se : ae);
|
|
36
|
+
return (s, x) => (a(), u("button", {
|
|
37
|
+
class: d(["btn-checkbox", { checked: e.checked, disabled: e.disabled }]),
|
|
38
|
+
disabled: e.disabled,
|
|
39
|
+
onClick: n
|
|
41
40
|
}, [
|
|
42
|
-
|
|
43
|
-
default:
|
|
44
|
-
|
|
41
|
+
p($, { class: "medium" }, {
|
|
42
|
+
default: y(() => [
|
|
43
|
+
p(_(I), { icon: c.value }, null, 8, ["icon"])
|
|
45
44
|
]),
|
|
46
45
|
_: 1
|
|
47
46
|
})
|
|
48
|
-
], 10,
|
|
47
|
+
], 10, me));
|
|
49
48
|
}
|
|
50
|
-
}),
|
|
49
|
+
}), ht = /* @__PURE__ */ m(be, [["__scopeId", "data-v-df7a5c10"]]), ke = ["disabled"], he = /* @__PURE__ */ f({
|
|
51
50
|
name: "BtnClose",
|
|
52
51
|
__name: "ButtonClose",
|
|
53
52
|
props: {
|
|
54
|
-
icon: { default: () =>
|
|
53
|
+
icon: { default: () => de },
|
|
55
54
|
disabled: { type: Boolean, default: !1 },
|
|
56
55
|
color: { default: "gray" },
|
|
57
56
|
size: { default: "medium" }
|
|
58
57
|
},
|
|
59
58
|
emits: ["click"],
|
|
60
|
-
setup(
|
|
61
|
-
const
|
|
62
|
-
|
|
59
|
+
setup(e, { emit: t }) {
|
|
60
|
+
const o = t, l = () => {
|
|
61
|
+
o("click");
|
|
63
62
|
};
|
|
64
|
-
return (
|
|
63
|
+
return (n, c) => (a(), u("button", {
|
|
65
64
|
type: "button",
|
|
66
|
-
class:
|
|
67
|
-
disabled:
|
|
68
|
-
onClick:
|
|
65
|
+
class: d(["ui-btn-close", e.color, e.size]),
|
|
66
|
+
disabled: e.disabled,
|
|
67
|
+
onClick: l
|
|
69
68
|
}, [
|
|
70
|
-
|
|
71
|
-
class:
|
|
69
|
+
p($, {
|
|
70
|
+
class: d([`ui-btn-close__container container-${e.size}`])
|
|
72
71
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
72
|
+
default: y(() => [
|
|
73
|
+
p(_(I), { icon: e.icon }, null, 8, ["icon"])
|
|
75
74
|
]),
|
|
76
75
|
_: 1
|
|
77
76
|
}, 8, ["class"])
|
|
78
|
-
], 10,
|
|
77
|
+
], 10, ke));
|
|
79
78
|
}
|
|
80
|
-
}),
|
|
79
|
+
}), yt = /* @__PURE__ */ m(he, [["__scopeId", "data-v-e98c30ca"]]), ye = { class: "tooltip__box" }, pe = ["innerHTML"], ve = /* @__PURE__ */ f({
|
|
81
80
|
name: "TooltipDefault",
|
|
82
81
|
__name: "TooltipDefault",
|
|
83
82
|
props: {
|
|
@@ -85,20 +84,20 @@ const W = /* @__PURE__ */ d({
|
|
|
85
84
|
size: { default: "default" },
|
|
86
85
|
placement: { default: "left" }
|
|
87
86
|
},
|
|
88
|
-
setup(
|
|
89
|
-
return (
|
|
90
|
-
class:
|
|
87
|
+
setup(e) {
|
|
88
|
+
return (t, o) => (a(), u("div", {
|
|
89
|
+
class: d(["tooltip", e.size, e.placement])
|
|
91
90
|
}, [
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
g("div", ye, [
|
|
92
|
+
e.text ? (a(), u("span", {
|
|
94
93
|
key: 0,
|
|
95
94
|
class: "tooltip__text",
|
|
96
|
-
innerHTML:
|
|
97
|
-
}, null, 8,
|
|
95
|
+
innerHTML: e.text
|
|
96
|
+
}, null, 8, pe)) : k(t.$slots, "default", { key: 1 }, void 0, !0)
|
|
98
97
|
])
|
|
99
98
|
], 2));
|
|
100
99
|
}
|
|
101
|
-
}),
|
|
100
|
+
}), O = /* @__PURE__ */ m(ve, [["__scopeId", "data-v-ca5d60f0"]]), $e = ["data-qa", "disabled"], Be = /* @__PURE__ */ f({
|
|
102
101
|
name: "BtnIcon",
|
|
103
102
|
__name: "ButtonIcon",
|
|
104
103
|
props: {
|
|
@@ -110,35 +109,210 @@ const W = /* @__PURE__ */ d({
|
|
|
110
109
|
dataQa: { default: null }
|
|
111
110
|
},
|
|
112
111
|
emits: ["click", "click:close"],
|
|
113
|
-
setup(
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
112
|
+
setup(e, { emit: t }) {
|
|
113
|
+
const o = t, l = () => {
|
|
114
|
+
o("click");
|
|
115
|
+
}, n = (c) => {
|
|
116
|
+
o("click:close", c);
|
|
118
117
|
};
|
|
119
|
-
return (
|
|
118
|
+
return (c, s) => (a(), u("button", {
|
|
120
119
|
type: "button",
|
|
121
|
-
class:
|
|
122
|
-
"data-qa":
|
|
123
|
-
disabled:
|
|
120
|
+
class: d(["ui-btn-icon", e.color, e.size, { tooltip: e.tooltip }]),
|
|
121
|
+
"data-qa": e.dataQa,
|
|
122
|
+
disabled: e.disabled,
|
|
124
123
|
onClick: [
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
l,
|
|
125
|
+
G(n, ["stop"])
|
|
127
126
|
]
|
|
128
127
|
}, [
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
|
|
128
|
+
p($, { is: "span" }, {
|
|
129
|
+
default: y(() => [
|
|
130
|
+
p(_(I), { icon: e.icon }, null, 8, ["icon"])
|
|
132
131
|
]),
|
|
133
132
|
_: 1
|
|
134
133
|
}),
|
|
135
|
-
|
|
134
|
+
e.tooltip ? (a(), B(O, {
|
|
136
135
|
key: 0,
|
|
137
|
-
text:
|
|
138
|
-
}, null, 8, ["text"])) :
|
|
139
|
-
], 10,
|
|
136
|
+
text: e.tooltip
|
|
137
|
+
}, null, 8, ["text"])) : h("", !0)
|
|
138
|
+
], 10, $e));
|
|
140
139
|
}
|
|
141
|
-
}),
|
|
140
|
+
}), pt = /* @__PURE__ */ m(Be, [["__scopeId", "data-v-11788724"]]);
|
|
141
|
+
function _e(e, t) {
|
|
142
|
+
return ne() ? (oe(e, t), !0) : !1;
|
|
143
|
+
}
|
|
144
|
+
const Ce = typeof window < "u" && typeof document < "u";
|
|
145
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
146
|
+
const xe = Object.prototype.toString, Te = (e) => xe.call(e) === "[object Object]", z = () => {
|
|
147
|
+
};
|
|
148
|
+
function Ie(...e) {
|
|
149
|
+
if (e.length !== 1) return Y(...e);
|
|
150
|
+
const t = e[0];
|
|
151
|
+
return typeof t == "function" ? Z(ee(() => ({
|
|
152
|
+
get: t,
|
|
153
|
+
set: z
|
|
154
|
+
}))) : te(t);
|
|
155
|
+
}
|
|
156
|
+
function q(e) {
|
|
157
|
+
return Array.isArray(e) ? e : [e];
|
|
158
|
+
}
|
|
159
|
+
function ge(e, t, o) {
|
|
160
|
+
return V(e, t, {
|
|
161
|
+
...o,
|
|
162
|
+
immediate: !0
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
const X = Ce ? window : void 0;
|
|
166
|
+
function R(e) {
|
|
167
|
+
var t;
|
|
168
|
+
const o = C(e);
|
|
169
|
+
return (t = o?.$el) !== null && t !== void 0 ? t : o;
|
|
170
|
+
}
|
|
171
|
+
function D(...e) {
|
|
172
|
+
const t = (l, n, c, s) => (l.addEventListener(n, c, s), () => l.removeEventListener(n, c, s)), o = M(() => {
|
|
173
|
+
const l = q(C(e[0])).filter((n) => n != null);
|
|
174
|
+
return l.every((n) => typeof n != "string") ? l : void 0;
|
|
175
|
+
});
|
|
176
|
+
return ge(() => {
|
|
177
|
+
var l, n;
|
|
178
|
+
return [
|
|
179
|
+
(l = (n = o.value) === null || n === void 0 ? void 0 : n.map((c) => R(c))) !== null && l !== void 0 ? l : [X].filter((c) => c != null),
|
|
180
|
+
q(C(o.value ? e[1] : e[0])),
|
|
181
|
+
q(_(o.value ? e[2] : e[1])),
|
|
182
|
+
C(o.value ? e[3] : e[2])
|
|
183
|
+
];
|
|
184
|
+
}, ([l, n, c, s], x, b) => {
|
|
185
|
+
if (!l?.length || !n?.length || !c?.length) return;
|
|
186
|
+
const E = Te(s) ? { ...s } : s, W = l.flatMap((S) => n.flatMap((L) => c.map((w) => t(S, L, w, E))));
|
|
187
|
+
b(() => {
|
|
188
|
+
W.forEach((S) => S());
|
|
189
|
+
});
|
|
190
|
+
}, { flush: "post" });
|
|
191
|
+
}
|
|
192
|
+
function K(e, t, o = {}) {
|
|
193
|
+
const { window: l = X, ignore: n = [], capture: c = !0, detectIframe: s = !1, controls: x = !1 } = o;
|
|
194
|
+
if (!l) return x ? {
|
|
195
|
+
stop: z,
|
|
196
|
+
cancel: z,
|
|
197
|
+
trigger: z
|
|
198
|
+
} : z;
|
|
199
|
+
let b = !0;
|
|
200
|
+
const E = (i) => C(n).some((r) => {
|
|
201
|
+
if (typeof r == "string") return Array.from(l.document.querySelectorAll(r)).some((v) => v === i.target || i.composedPath().includes(v));
|
|
202
|
+
{
|
|
203
|
+
const v = R(r);
|
|
204
|
+
return v && (i.target === v || i.composedPath().includes(v));
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
function W(i) {
|
|
208
|
+
const r = C(i);
|
|
209
|
+
return r && r.$.subTree.shapeFlag === 16;
|
|
210
|
+
}
|
|
211
|
+
function S(i, r) {
|
|
212
|
+
const v = C(i), P = v.$.subTree && v.$.subTree.children;
|
|
213
|
+
return P == null || !Array.isArray(P) ? !1 : P.some((F) => F.el === r.target || r.composedPath().includes(F.el));
|
|
214
|
+
}
|
|
215
|
+
const L = (i) => {
|
|
216
|
+
const r = R(e);
|
|
217
|
+
if (i.target != null && !(!(r instanceof Element) && W(e) && S(e, i)) && !(!r || r === i.target || i.composedPath().includes(r))) {
|
|
218
|
+
if ("detail" in i && i.detail === 0 && (b = !E(i)), !b) {
|
|
219
|
+
b = !0;
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
t(i);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
let w = !1;
|
|
226
|
+
const J = [
|
|
227
|
+
D(l, "click", (i) => {
|
|
228
|
+
w || (w = !0, setTimeout(() => {
|
|
229
|
+
w = !1;
|
|
230
|
+
}, 0), L(i));
|
|
231
|
+
}, {
|
|
232
|
+
passive: !0,
|
|
233
|
+
capture: c
|
|
234
|
+
}),
|
|
235
|
+
D(l, "pointerdown", (i) => {
|
|
236
|
+
const r = R(e);
|
|
237
|
+
b = !E(i) && !!(r && !i.composedPath().includes(r));
|
|
238
|
+
}, { passive: !0 }),
|
|
239
|
+
s && D(l, "blur", (i) => {
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
var r;
|
|
242
|
+
const v = R(e);
|
|
243
|
+
((r = l.document.activeElement) === null || r === void 0 ? void 0 : r.tagName) === "IFRAME" && !v?.contains(l.document.activeElement) && t(i);
|
|
244
|
+
}, 0);
|
|
245
|
+
}, { passive: !0 })
|
|
246
|
+
].filter(Boolean), N = () => J.forEach((i) => i());
|
|
247
|
+
return x ? {
|
|
248
|
+
stop: N,
|
|
249
|
+
cancel: () => {
|
|
250
|
+
b = !1;
|
|
251
|
+
},
|
|
252
|
+
trigger: (i) => {
|
|
253
|
+
b = !0, L(i), b = !1;
|
|
254
|
+
}
|
|
255
|
+
} : N;
|
|
256
|
+
}
|
|
257
|
+
function j(e) {
|
|
258
|
+
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
259
|
+
}
|
|
260
|
+
const A = /* @__PURE__ */ new WeakMap();
|
|
261
|
+
function Se(e, t = !1) {
|
|
262
|
+
const o = H(t);
|
|
263
|
+
let l = "";
|
|
264
|
+
V(Ie(e), (s) => {
|
|
265
|
+
const x = j(C(s));
|
|
266
|
+
if (x) {
|
|
267
|
+
const b = x;
|
|
268
|
+
if (A.get(b) || A.set(b, b.style.overflow), b.style.overflow !== "hidden" && (l = b.style.overflow), b.style.overflow === "hidden") return o.value = !0;
|
|
269
|
+
if (o.value) return b.style.overflow = "hidden";
|
|
270
|
+
}
|
|
271
|
+
}, { immediate: !0 });
|
|
272
|
+
const n = () => {
|
|
273
|
+
const s = j(C(e));
|
|
274
|
+
!s || o.value || (s.style.overflow = "hidden", o.value = !0);
|
|
275
|
+
}, c = () => {
|
|
276
|
+
const s = j(C(e));
|
|
277
|
+
!s || !o.value || (s.style.overflow = l, A.delete(s), o.value = !1);
|
|
278
|
+
};
|
|
279
|
+
return _e(c), M({
|
|
280
|
+
get() {
|
|
281
|
+
return o.value;
|
|
282
|
+
},
|
|
283
|
+
set(s) {
|
|
284
|
+
s ? n() : c();
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
const Q = /* @__PURE__ */ new WeakMap(), we = {
|
|
289
|
+
mounted(e, t) {
|
|
290
|
+
const o = !t.modifiers.bubble;
|
|
291
|
+
let l;
|
|
292
|
+
if (typeof t.value == "function") l = K(e, t.value, { capture: o });
|
|
293
|
+
else {
|
|
294
|
+
const [n, c] = t.value;
|
|
295
|
+
l = K(e, n, Object.assign({ capture: o }, c));
|
|
296
|
+
}
|
|
297
|
+
Q.set(e, l);
|
|
298
|
+
},
|
|
299
|
+
unmounted(e) {
|
|
300
|
+
const t = Q.get(e);
|
|
301
|
+
t && typeof t == "function" ? t() : t?.stop(), Q.delete(e);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
function ze() {
|
|
305
|
+
let e = !1;
|
|
306
|
+
const t = H(!1);
|
|
307
|
+
return (o, l) => {
|
|
308
|
+
if (t.value = l.value, e) return;
|
|
309
|
+
e = !0;
|
|
310
|
+
const n = Se(o, l.value);
|
|
311
|
+
V(t, (c) => n.value = c);
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
ze();
|
|
315
|
+
const Re = ["disabled"], Ee = /* @__PURE__ */ f({
|
|
142
316
|
name: "BtnKebab",
|
|
143
317
|
__name: "ButtonKebab",
|
|
144
318
|
props: {
|
|
@@ -146,32 +320,32 @@ const W = /* @__PURE__ */ d({
|
|
|
146
320
|
disabled: { type: Boolean }
|
|
147
321
|
},
|
|
148
322
|
emits: ["click", "click:outside"],
|
|
149
|
-
setup(
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
|
|
323
|
+
setup(e, { emit: t }) {
|
|
324
|
+
const o = t, l = () => {
|
|
325
|
+
o("click");
|
|
326
|
+
}, n = () => {
|
|
327
|
+
o("click:outside");
|
|
154
328
|
};
|
|
155
|
-
return (
|
|
156
|
-
class:
|
|
329
|
+
return (c, s) => le((a(), u("button", {
|
|
330
|
+
class: d(["btn-kebab", e.size]),
|
|
157
331
|
type: "button",
|
|
158
|
-
disabled:
|
|
159
|
-
onClick:
|
|
332
|
+
disabled: e.disabled,
|
|
333
|
+
onClick: l
|
|
160
334
|
}, [
|
|
161
|
-
|
|
162
|
-
default:
|
|
163
|
-
|
|
335
|
+
p($, null, {
|
|
336
|
+
default: y(() => [
|
|
337
|
+
p(_(I), { icon: _(ue) }, null, 8, ["icon"])
|
|
164
338
|
]),
|
|
165
339
|
_: 1
|
|
166
340
|
})
|
|
167
|
-
], 10,
|
|
168
|
-
[
|
|
341
|
+
], 10, Re)), [
|
|
342
|
+
[_(we), n]
|
|
169
343
|
]);
|
|
170
344
|
}
|
|
171
|
-
}),
|
|
345
|
+
}), vt = /* @__PURE__ */ m(Ee, [["__scopeId", "data-v-d98b1fcd"]]), Le = ["data-qa", "disabled"], Me = {
|
|
172
346
|
key: 2,
|
|
173
347
|
class: "ui-btn-primary__text"
|
|
174
|
-
},
|
|
348
|
+
}, Oe = /* @__PURE__ */ f({
|
|
175
349
|
name: "BtnPrimary",
|
|
176
350
|
__name: "ButtonPrimary",
|
|
177
351
|
props: {
|
|
@@ -184,45 +358,45 @@ const W = /* @__PURE__ */ d({
|
|
|
184
358
|
dataQa: { default: null }
|
|
185
359
|
},
|
|
186
360
|
emits: ["click"],
|
|
187
|
-
setup(
|
|
188
|
-
const
|
|
189
|
-
|
|
361
|
+
setup(e, { emit: t }) {
|
|
362
|
+
const o = t, l = () => {
|
|
363
|
+
o("click");
|
|
190
364
|
};
|
|
191
|
-
return (
|
|
365
|
+
return (n, c) => (a(), u("button", {
|
|
192
366
|
type: "button",
|
|
193
|
-
class:
|
|
194
|
-
"data-qa":
|
|
195
|
-
disabled:
|
|
196
|
-
onClick:
|
|
367
|
+
class: d(["ui-btn-primary", e.color, e.size, e.elementWidth, { tooltip: e.tooltip }]),
|
|
368
|
+
"data-qa": e.dataQa,
|
|
369
|
+
disabled: e.disabled,
|
|
370
|
+
onClick: l
|
|
197
371
|
}, [
|
|
198
|
-
|
|
372
|
+
n.$slots.iconLeft ? (a(), B($, {
|
|
199
373
|
key: 0,
|
|
200
|
-
class:
|
|
374
|
+
class: d([e.size])
|
|
201
375
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
|
|
376
|
+
default: y(() => [
|
|
377
|
+
k(n.$slots, "iconLeft", {}, void 0, !0)
|
|
204
378
|
]),
|
|
205
379
|
_: 3
|
|
206
|
-
}, 8, ["class"])) :
|
|
207
|
-
|
|
208
|
-
|
|
380
|
+
}, 8, ["class"])) : h("", !0),
|
|
381
|
+
n.$slots.content ? k(n.$slots, "content", { key: 1 }, void 0, !0) : (a(), u("span", Me, T(e.text), 1)),
|
|
382
|
+
n.$slots.iconRight ? (a(), B($, {
|
|
209
383
|
key: 3,
|
|
210
|
-
class:
|
|
384
|
+
class: d([`container-${e.size}`])
|
|
211
385
|
}, {
|
|
212
|
-
default:
|
|
213
|
-
|
|
386
|
+
default: y(() => [
|
|
387
|
+
k(n.$slots, "iconRight", {}, void 0, !0)
|
|
214
388
|
]),
|
|
215
389
|
_: 3
|
|
216
|
-
}, 8, ["class"])) :
|
|
217
|
-
|
|
390
|
+
}, 8, ["class"])) : h("", !0),
|
|
391
|
+
e.tooltip ? (a(), B(O, {
|
|
218
392
|
key: 4,
|
|
219
393
|
class: "tooltip-default",
|
|
220
|
-
text:
|
|
394
|
+
text: e.tooltip,
|
|
221
395
|
size: "small"
|
|
222
|
-
}, null, 8, ["text"])) :
|
|
223
|
-
], 10,
|
|
396
|
+
}, null, 8, ["text"])) : h("", !0)
|
|
397
|
+
], 10, Le));
|
|
224
398
|
}
|
|
225
|
-
}),
|
|
399
|
+
}), $t = /* @__PURE__ */ m(Oe, [["__scopeId", "data-v-706d9910"]]), We = ["disabled"], Pe = /* @__PURE__ */ f({
|
|
226
400
|
name: "BtnRadio",
|
|
227
401
|
__name: "ButtonRadio",
|
|
228
402
|
props: {
|
|
@@ -230,24 +404,24 @@ const W = /* @__PURE__ */ d({
|
|
|
230
404
|
disabled: { type: Boolean, default: !1 }
|
|
231
405
|
},
|
|
232
406
|
emits: ["click"],
|
|
233
|
-
setup(
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
return (
|
|
238
|
-
class:
|
|
239
|
-
disabled:
|
|
240
|
-
onClick:
|
|
407
|
+
setup(e, { emit: t }) {
|
|
408
|
+
const o = e, l = t, n = () => {
|
|
409
|
+
o.disabled || l("click");
|
|
410
|
+
}, c = M(() => o.checked ? re : ie);
|
|
411
|
+
return (s, x) => (a(), u("button", {
|
|
412
|
+
class: d(["btn-radio", { checked: e.checked, disabled: e.disabled }]),
|
|
413
|
+
disabled: e.disabled,
|
|
414
|
+
onClick: n
|
|
241
415
|
}, [
|
|
242
|
-
|
|
243
|
-
default:
|
|
244
|
-
|
|
416
|
+
p($, { class: "medium" }, {
|
|
417
|
+
default: y(() => [
|
|
418
|
+
p(_(I), { icon: c.value }, null, 8, ["icon"])
|
|
245
419
|
]),
|
|
246
420
|
_: 1
|
|
247
421
|
})
|
|
248
|
-
], 10,
|
|
422
|
+
], 10, We));
|
|
249
423
|
}
|
|
250
|
-
}),
|
|
424
|
+
}), Bt = /* @__PURE__ */ m(Pe, [["__scopeId", "data-v-23c610f4"]]), qe = ["disabled"], De = { class: "ui-btn-secondary__text" }, je = /* @__PURE__ */ f({
|
|
251
425
|
name: "BtnSecondary",
|
|
252
426
|
__name: "ButtonSecondary",
|
|
253
427
|
props: {
|
|
@@ -259,39 +433,39 @@ const W = /* @__PURE__ */ d({
|
|
|
259
433
|
color: { default: "blue" }
|
|
260
434
|
},
|
|
261
435
|
emits: ["click"],
|
|
262
|
-
setup(
|
|
263
|
-
const
|
|
264
|
-
|
|
436
|
+
setup(e, { emit: t }) {
|
|
437
|
+
const o = t, l = () => {
|
|
438
|
+
o("click");
|
|
265
439
|
};
|
|
266
|
-
return (
|
|
440
|
+
return (n, c) => (a(), u("button", {
|
|
267
441
|
type: "button",
|
|
268
|
-
class:
|
|
269
|
-
disabled:
|
|
270
|
-
onClick:
|
|
442
|
+
class: d(["ui-btn-secondary", e.size, e.elementWidth, e.color, { disabled: e.disabled }, { selected: e.selected }]),
|
|
443
|
+
disabled: e.disabled,
|
|
444
|
+
onClick: l
|
|
271
445
|
}, [
|
|
272
|
-
|
|
446
|
+
n.$slots.iconLeft ? (a(), B($, {
|
|
273
447
|
key: 0,
|
|
274
|
-
class:
|
|
448
|
+
class: d([`container-${e.size}`])
|
|
275
449
|
}, {
|
|
276
|
-
default:
|
|
277
|
-
|
|
450
|
+
default: y(() => [
|
|
451
|
+
k(n.$slots, "iconLeft", {}, void 0, !0)
|
|
278
452
|
]),
|
|
279
453
|
_: 3
|
|
280
|
-
}, 8, ["class"])) :
|
|
281
|
-
|
|
282
|
-
|
|
454
|
+
}, 8, ["class"])) : h("", !0),
|
|
455
|
+
g("span", De, T(e.text), 1),
|
|
456
|
+
n.$slots.iconRight ? (a(), B($, {
|
|
283
457
|
key: 1,
|
|
284
|
-
class:
|
|
458
|
+
class: d([`container-${e.size}`])
|
|
285
459
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
|
|
460
|
+
default: y(() => [
|
|
461
|
+
k(n.$slots, "iconRight", {}, void 0, !0)
|
|
288
462
|
]),
|
|
289
463
|
_: 3
|
|
290
|
-
}, 8, ["class"])) :
|
|
291
|
-
|
|
292
|
-
], 10,
|
|
464
|
+
}, 8, ["class"])) : h("", !0),
|
|
465
|
+
k(n.$slots, "tooltip", {}, void 0, !0)
|
|
466
|
+
], 10, qe));
|
|
293
467
|
}
|
|
294
|
-
}),
|
|
468
|
+
}), _t = /* @__PURE__ */ m(je, [["__scopeId", "data-v-5945e6cf"]]), Ae = ["disabled"], Qe = /* @__PURE__ */ f({
|
|
295
469
|
name: "BtnSecondaryIcon",
|
|
296
470
|
__name: "ButtonSecondaryIcon",
|
|
297
471
|
props: {
|
|
@@ -300,25 +474,25 @@ const W = /* @__PURE__ */ d({
|
|
|
300
474
|
color: { default: "gray" }
|
|
301
475
|
},
|
|
302
476
|
emits: ["click"],
|
|
303
|
-
setup(
|
|
304
|
-
const
|
|
305
|
-
|
|
477
|
+
setup(e, { emit: t }) {
|
|
478
|
+
const o = t, l = () => {
|
|
479
|
+
o("click");
|
|
306
480
|
};
|
|
307
|
-
return (
|
|
481
|
+
return (n, c) => (a(), u("button", {
|
|
308
482
|
type: "button",
|
|
309
|
-
class:
|
|
310
|
-
disabled:
|
|
311
|
-
onClick:
|
|
483
|
+
class: d(["ui-btn-secondary-icon", e.color]),
|
|
484
|
+
disabled: e.disabled,
|
|
485
|
+
onClick: l
|
|
312
486
|
}, [
|
|
313
|
-
|
|
314
|
-
default:
|
|
315
|
-
|
|
487
|
+
p($, { is: "span" }, {
|
|
488
|
+
default: y(() => [
|
|
489
|
+
p(_(I), { icon: e.icon }, null, 8, ["icon"])
|
|
316
490
|
]),
|
|
317
491
|
_: 1
|
|
318
492
|
})
|
|
319
|
-
], 10,
|
|
493
|
+
], 10, Ae));
|
|
320
494
|
}
|
|
321
|
-
}),
|
|
495
|
+
}), Ct = /* @__PURE__ */ m(Qe, [["__scopeId", "data-v-5daf6b95"]]), Ve = ["disabled"], Ne = { class: "btn-simple__text" }, Fe = /* @__PURE__ */ f({
|
|
322
496
|
name: "BtnSimple",
|
|
323
497
|
__name: "ButtonSimple",
|
|
324
498
|
props: {
|
|
@@ -326,28 +500,28 @@ const W = /* @__PURE__ */ d({
|
|
|
326
500
|
disabled: { type: Boolean, default: !1 }
|
|
327
501
|
},
|
|
328
502
|
emits: ["click"],
|
|
329
|
-
setup(
|
|
330
|
-
const
|
|
331
|
-
|
|
503
|
+
setup(e, { emit: t }) {
|
|
504
|
+
const o = t, l = () => {
|
|
505
|
+
o("click");
|
|
332
506
|
};
|
|
333
|
-
return (
|
|
507
|
+
return (n, c) => (a(), u("button", {
|
|
334
508
|
type: "button",
|
|
335
|
-
class:
|
|
336
|
-
disabled:
|
|
337
|
-
onClick:
|
|
509
|
+
class: d(["btn-simple"]),
|
|
510
|
+
disabled: e.disabled,
|
|
511
|
+
onClick: l
|
|
338
512
|
}, [
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
], 8,
|
|
513
|
+
n.$slots.leftIcon ? k(n.$slots, "leftIcon", { key: 0 }, void 0, !0) : h("", !0),
|
|
514
|
+
g("span", Ne, T(e.text), 1),
|
|
515
|
+
n.$slots.rightIcon ? k(n.$slots, "rightIcon", { key: 1 }, void 0, !0) : h("", !0)
|
|
516
|
+
], 8, Ve));
|
|
343
517
|
}
|
|
344
|
-
}),
|
|
518
|
+
}), xt = /* @__PURE__ */ m(Fe, [["__scopeId", "data-v-0429e610"]]), Ke = ["disabled"], Ge = {
|
|
345
519
|
key: 0,
|
|
346
520
|
class: "btn-switcher__emoji"
|
|
347
|
-
},
|
|
521
|
+
}, He = {
|
|
348
522
|
key: 1,
|
|
349
523
|
class: "btn-switcher__label"
|
|
350
|
-
},
|
|
524
|
+
}, Xe = /* @__PURE__ */ f({
|
|
351
525
|
name: "BtnSwitcher",
|
|
352
526
|
__name: "ButtonSwitcher",
|
|
353
527
|
props: {
|
|
@@ -359,35 +533,35 @@ const W = /* @__PURE__ */ d({
|
|
|
359
533
|
disabled: { type: Boolean, default: !1 }
|
|
360
534
|
},
|
|
361
535
|
emits: ["click"],
|
|
362
|
-
setup(
|
|
363
|
-
const
|
|
364
|
-
|
|
536
|
+
setup(e, { emit: t }) {
|
|
537
|
+
const o = t, l = () => {
|
|
538
|
+
o("click");
|
|
365
539
|
};
|
|
366
|
-
return (
|
|
367
|
-
class:
|
|
540
|
+
return (n, c) => (a(), u("div", {
|
|
541
|
+
class: d(["content-switcher", { selected: e.selected, disabled: e.disabled }])
|
|
368
542
|
}, [
|
|
369
|
-
|
|
543
|
+
g("button", {
|
|
370
544
|
type: "button",
|
|
371
|
-
class:
|
|
372
|
-
disabled:
|
|
373
|
-
onClick:
|
|
545
|
+
class: d(["btn-switcher", { selected: e.selected }]),
|
|
546
|
+
disabled: e.disabled,
|
|
547
|
+
onClick: l
|
|
374
548
|
}, [
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
], 10,
|
|
379
|
-
|
|
549
|
+
e.emoji ? (a(), u("span", Ge, T(e.emoji), 1)) : h("", !0),
|
|
550
|
+
ce(" " + T(e.text) + " ", 1),
|
|
551
|
+
e.label ? (a(), u("span", He, T(e.label), 1)) : h("", !0)
|
|
552
|
+
], 10, Ke),
|
|
553
|
+
e.tooltip ? (a(), B(O, {
|
|
380
554
|
key: 0,
|
|
381
|
-
text:
|
|
555
|
+
text: e.tooltip,
|
|
382
556
|
placement: "center",
|
|
383
557
|
size: "small"
|
|
384
|
-
}, null, 8, ["text"])) :
|
|
558
|
+
}, null, 8, ["text"])) : h("", !0)
|
|
385
559
|
], 2));
|
|
386
560
|
}
|
|
387
|
-
}),
|
|
561
|
+
}), Tt = /* @__PURE__ */ m(Xe, [["__scopeId", "data-v-b59270a4"]]), Je = ["disabled"], Ue = {
|
|
388
562
|
key: 1,
|
|
389
563
|
class: "ui-btn-text__text"
|
|
390
|
-
},
|
|
564
|
+
}, Ye = /* @__PURE__ */ f({
|
|
391
565
|
name: "BtnText",
|
|
392
566
|
__name: "ButtonText",
|
|
393
567
|
props: {
|
|
@@ -398,38 +572,38 @@ const W = /* @__PURE__ */ d({
|
|
|
398
572
|
elementWidth: { default: "auto" }
|
|
399
573
|
},
|
|
400
574
|
emits: ["click"],
|
|
401
|
-
setup(
|
|
402
|
-
const
|
|
403
|
-
|
|
575
|
+
setup(e, { emit: t }) {
|
|
576
|
+
const o = t, l = () => {
|
|
577
|
+
o("click");
|
|
404
578
|
};
|
|
405
|
-
return (
|
|
579
|
+
return (n, c) => (a(), u("button", {
|
|
406
580
|
type: "button",
|
|
407
|
-
class:
|
|
408
|
-
disabled:
|
|
409
|
-
onClick:
|
|
581
|
+
class: d(["ui-btn-text", e.color, e.size, e.elementWidth]),
|
|
582
|
+
disabled: e.disabled,
|
|
583
|
+
onClick: l
|
|
410
584
|
}, [
|
|
411
|
-
|
|
585
|
+
n.$slots.iconLeft ? (a(), B($, {
|
|
412
586
|
key: 0,
|
|
413
|
-
class:
|
|
587
|
+
class: d([`container-${e.size}`])
|
|
414
588
|
}, {
|
|
415
|
-
default:
|
|
416
|
-
|
|
589
|
+
default: y(() => [
|
|
590
|
+
k(n.$slots, "iconLeft", {}, void 0, !0)
|
|
417
591
|
]),
|
|
418
592
|
_: 3
|
|
419
|
-
}, 8, ["class"])) :
|
|
420
|
-
|
|
421
|
-
|
|
593
|
+
}, 8, ["class"])) : h("", !0),
|
|
594
|
+
e.text ? (a(), u("span", Ue, T(e.text), 1)) : h("", !0),
|
|
595
|
+
n.$slots.iconRight ? (a(), B($, {
|
|
422
596
|
key: 2,
|
|
423
|
-
class:
|
|
597
|
+
class: d([`container-${e.size}`])
|
|
424
598
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
|
|
599
|
+
default: y(() => [
|
|
600
|
+
k(n.$slots, "iconRight", {}, void 0, !0)
|
|
427
601
|
]),
|
|
428
602
|
_: 3
|
|
429
|
-
}, 8, ["class"])) :
|
|
430
|
-
], 10,
|
|
603
|
+
}, 8, ["class"])) : h("", !0)
|
|
604
|
+
], 10, Je));
|
|
431
605
|
}
|
|
432
|
-
}),
|
|
606
|
+
}), It = /* @__PURE__ */ m(Ye, [["__scopeId", "data-v-8f62a933"]]), Ze = ["disabled"], et = /* @__PURE__ */ f({
|
|
433
607
|
name: "BtnToggle",
|
|
434
608
|
__name: "ButtonToggle",
|
|
435
609
|
props: {
|
|
@@ -437,19 +611,19 @@ const W = /* @__PURE__ */ d({
|
|
|
437
611
|
disabled: { type: Boolean, default: !1 }
|
|
438
612
|
},
|
|
439
613
|
emits: ["click"],
|
|
440
|
-
setup(
|
|
441
|
-
const
|
|
442
|
-
|
|
614
|
+
setup(e, { emit: t }) {
|
|
615
|
+
const o = e, l = t, n = () => {
|
|
616
|
+
o.disabled || l("click");
|
|
443
617
|
};
|
|
444
|
-
return (
|
|
445
|
-
class:
|
|
446
|
-
disabled:
|
|
447
|
-
onClick:
|
|
448
|
-
}, [...
|
|
449
|
-
|
|
450
|
-
])], 10,
|
|
618
|
+
return (c, s) => (a(), u("button", {
|
|
619
|
+
class: d(["btn-toggle", { checked: e.checked, disabled: e.disabled }]),
|
|
620
|
+
disabled: e.disabled,
|
|
621
|
+
onClick: n
|
|
622
|
+
}, [...s[0] || (s[0] = [
|
|
623
|
+
g("span", { class: "btn-toggle__circle" }, null, -1)
|
|
624
|
+
])], 10, Ze));
|
|
451
625
|
}
|
|
452
|
-
}),
|
|
626
|
+
}), gt = /* @__PURE__ */ m(et, [["__scopeId", "data-v-ee7f505b"]]), tt = ["data-qa", "disabled"], nt = { class: "ui-btn-transparent-icon__wrap" }, ot = /* @__PURE__ */ f({
|
|
453
627
|
name: "BtnTransparentIcon",
|
|
454
628
|
__name: "ButtonTransparentIcon",
|
|
455
629
|
props: {
|
|
@@ -459,37 +633,37 @@ const W = /* @__PURE__ */ d({
|
|
|
459
633
|
dataQa: { default: null }
|
|
460
634
|
},
|
|
461
635
|
emits: ["click", "click:close"],
|
|
462
|
-
setup(
|
|
463
|
-
const
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
|
|
636
|
+
setup(e, { emit: t }) {
|
|
637
|
+
const o = t, l = () => {
|
|
638
|
+
o("click");
|
|
639
|
+
}, n = (c) => {
|
|
640
|
+
o("click:close", c);
|
|
467
641
|
};
|
|
468
|
-
return (
|
|
642
|
+
return (c, s) => (a(), u("button", {
|
|
469
643
|
type: "button",
|
|
470
|
-
class:
|
|
471
|
-
"data-qa":
|
|
472
|
-
disabled:
|
|
644
|
+
class: d(["ui-btn-transparent-icon", { tooltip: e.tooltip }]),
|
|
645
|
+
"data-qa": e.dataQa,
|
|
646
|
+
disabled: e.disabled,
|
|
473
647
|
onClick: [
|
|
474
|
-
|
|
475
|
-
|
|
648
|
+
l,
|
|
649
|
+
G(n, ["stop"])
|
|
476
650
|
]
|
|
477
651
|
}, [
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
default:
|
|
481
|
-
|
|
652
|
+
g("span", nt, [
|
|
653
|
+
p($, { is: "span" }, {
|
|
654
|
+
default: y(() => [
|
|
655
|
+
p(_(I), { icon: e.icon }, null, 8, ["icon"])
|
|
482
656
|
]),
|
|
483
657
|
_: 1
|
|
484
658
|
})
|
|
485
659
|
]),
|
|
486
|
-
|
|
660
|
+
e.tooltip ? (a(), B(O, {
|
|
487
661
|
key: 0,
|
|
488
|
-
text:
|
|
489
|
-
}, null, 8, ["text"])) :
|
|
490
|
-
], 10,
|
|
662
|
+
text: e.tooltip
|
|
663
|
+
}, null, 8, ["text"])) : h("", !0)
|
|
664
|
+
], 10, tt));
|
|
491
665
|
}
|
|
492
|
-
}),
|
|
666
|
+
}), St = /* @__PURE__ */ m(ot, [["__scopeId", "data-v-19c5f518"]]), lt = ["disabled"], ct = /* @__PURE__ */ f({
|
|
493
667
|
name: "BtnTextQuaternary",
|
|
494
668
|
__name: "ButtonTextQuaternary",
|
|
495
669
|
props: {
|
|
@@ -498,40 +672,40 @@ const W = /* @__PURE__ */ d({
|
|
|
498
672
|
color: { default: "default" }
|
|
499
673
|
},
|
|
500
674
|
emits: ["click"],
|
|
501
|
-
setup(
|
|
502
|
-
const
|
|
503
|
-
|
|
675
|
+
setup(e, { emit: t }) {
|
|
676
|
+
const o = t, l = () => {
|
|
677
|
+
o("click");
|
|
504
678
|
};
|
|
505
|
-
return (
|
|
679
|
+
return (n, c) => (a(), u("button", {
|
|
506
680
|
type: "button",
|
|
507
|
-
class:
|
|
508
|
-
disabled:
|
|
509
|
-
onClick:
|
|
681
|
+
class: d(["p-text-quaternary", { underline: e.underline }, e.color]),
|
|
682
|
+
disabled: e.disabled,
|
|
683
|
+
onClick: l
|
|
510
684
|
}, [
|
|
511
|
-
|
|
512
|
-
], 10,
|
|
685
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
686
|
+
], 10, lt));
|
|
513
687
|
}
|
|
514
|
-
}),
|
|
688
|
+
}), wt = /* @__PURE__ */ m(ct, [["__scopeId", "data-v-789ddcd5"]]), at = ["disabled"], it = /* @__PURE__ */ f({
|
|
515
689
|
name: "BtnTextSecondary",
|
|
516
690
|
__name: "ButtonTextSecondary",
|
|
517
691
|
props: {
|
|
518
692
|
disabled: { type: Boolean, default: !1 }
|
|
519
693
|
},
|
|
520
694
|
emits: ["click"],
|
|
521
|
-
setup(
|
|
522
|
-
const
|
|
523
|
-
|
|
695
|
+
setup(e, { emit: t }) {
|
|
696
|
+
const o = t, l = () => {
|
|
697
|
+
o("click");
|
|
524
698
|
};
|
|
525
|
-
return (
|
|
699
|
+
return (n, c) => (a(), u("button", {
|
|
526
700
|
type: "button",
|
|
527
701
|
class: "p-text-secondary",
|
|
528
|
-
disabled:
|
|
529
|
-
onClick:
|
|
702
|
+
disabled: e.disabled,
|
|
703
|
+
onClick: l
|
|
530
704
|
}, [
|
|
531
|
-
|
|
532
|
-
], 8,
|
|
705
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
706
|
+
], 8, at));
|
|
533
707
|
}
|
|
534
|
-
}),
|
|
708
|
+
}), zt = /* @__PURE__ */ m(it, [["__scopeId", "data-v-fbbc4516"]]), st = ["disabled"], dt = /* @__PURE__ */ f({
|
|
535
709
|
name: "BtnTextTertiary",
|
|
536
710
|
__name: "ButtonTextTertiary",
|
|
537
711
|
props: {
|
|
@@ -540,20 +714,20 @@ const W = /* @__PURE__ */ d({
|
|
|
540
714
|
color: { default: "default" }
|
|
541
715
|
},
|
|
542
716
|
emits: ["click"],
|
|
543
|
-
setup(
|
|
544
|
-
const
|
|
545
|
-
|
|
717
|
+
setup(e, { emit: t }) {
|
|
718
|
+
const o = t, l = () => {
|
|
719
|
+
o("click");
|
|
546
720
|
};
|
|
547
|
-
return (
|
|
721
|
+
return (n, c) => (a(), u("button", {
|
|
548
722
|
type: "button",
|
|
549
|
-
class:
|
|
550
|
-
disabled:
|
|
551
|
-
onClick:
|
|
723
|
+
class: d(["p-text-tertiary", { underline: e.underline }, e.color]),
|
|
724
|
+
disabled: e.disabled,
|
|
725
|
+
onClick: l
|
|
552
726
|
}, [
|
|
553
|
-
|
|
554
|
-
], 10,
|
|
727
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
728
|
+
], 10, st));
|
|
555
729
|
}
|
|
556
|
-
}),
|
|
730
|
+
}), Rt = /* @__PURE__ */ m(dt, [["__scopeId", "data-v-377f6ccc"]]), ut = ["disabled"], rt = /* @__PURE__ */ f({
|
|
557
731
|
name: "BtnTextTertiary",
|
|
558
732
|
__name: "ButtonTextTertiaryMedium",
|
|
559
733
|
props: {
|
|
@@ -562,38 +736,38 @@ const W = /* @__PURE__ */ d({
|
|
|
562
736
|
color: { default: "default" }
|
|
563
737
|
},
|
|
564
738
|
emits: ["click"],
|
|
565
|
-
setup(
|
|
566
|
-
const
|
|
567
|
-
|
|
739
|
+
setup(e, { emit: t }) {
|
|
740
|
+
const o = t, l = () => {
|
|
741
|
+
o("click");
|
|
568
742
|
};
|
|
569
|
-
return (
|
|
743
|
+
return (n, c) => (a(), u("button", {
|
|
570
744
|
type: "button",
|
|
571
|
-
class:
|
|
572
|
-
disabled:
|
|
573
|
-
onClick:
|
|
745
|
+
class: d(["p-text-tertiary-medium", { underline: e.underline }, e.color]),
|
|
746
|
+
disabled: e.disabled,
|
|
747
|
+
onClick: l
|
|
574
748
|
}, [
|
|
575
|
-
|
|
576
|
-
], 10,
|
|
749
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
750
|
+
], 10, ut));
|
|
577
751
|
}
|
|
578
|
-
}),
|
|
752
|
+
}), Et = /* @__PURE__ */ m(rt, [["__scopeId", "data-v-19ac5089"]]);
|
|
579
753
|
export {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
754
|
+
ht as ButtonCheckbox,
|
|
755
|
+
yt as ButtonClose,
|
|
756
|
+
pt as ButtonIcon,
|
|
757
|
+
vt as ButtonKebab,
|
|
758
|
+
$t as ButtonPrimary,
|
|
759
|
+
Bt as ButtonRadio,
|
|
760
|
+
_t as ButtonSecondary,
|
|
761
|
+
Ct as ButtonSecondaryIcon,
|
|
762
|
+
xt as ButtonSimple,
|
|
763
|
+
Tt as ButtonSwitcher,
|
|
764
|
+
It as ButtonText,
|
|
765
|
+
wt as ButtonTextQuaternary,
|
|
766
|
+
zt as ButtonTextSecondary,
|
|
767
|
+
Rt as ButtonTextTertiary,
|
|
768
|
+
Et as ButtonTextTertiaryMedium,
|
|
769
|
+
gt as ButtonToggle,
|
|
770
|
+
St as ButtonTransparentIcon,
|
|
771
|
+
$ as IconContainer,
|
|
772
|
+
O as TooltipDefault
|
|
599
773
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brighterly/ui-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Official Brighterly ui-kit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://gitlab.com/brighterly/libs/ui-kit#readme",
|
|
@@ -28,31 +28,32 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build && vue-tsc --noEmit"
|
|
30
30
|
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"peerDependencies": {
|
|
33
|
-
"vue": "^3.5.0",
|
|
34
|
-
"@vueuse/core": "^14.1.0",
|
|
31
|
+
"dependencies": {
|
|
35
32
|
"@vueuse/components": "^14.1.0",
|
|
33
|
+
"@vueuse/core": "^14.1.0"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
36
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
37
|
-
"@fortawesome/vue-fontawesome": "^3.1.3",
|
|
38
37
|
"@fortawesome/pro-regular-svg-icons": "^6.7.2",
|
|
39
|
-
"@fortawesome/pro-solid-svg-icons": "^6.7.2"
|
|
38
|
+
"@fortawesome/pro-solid-svg-icons": "^6.7.2",
|
|
39
|
+
"@fortawesome/vue-fontawesome": "^3.1.3",
|
|
40
|
+
"vue": "^3.5.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"vue": "^3.5.0",
|
|
43
|
-
"@vueuse/core": "^14.1.0",
|
|
44
|
-
"@vueuse/components": "^14.1.0",
|
|
45
43
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
44
|
+
"@fortawesome/pro-regular-svg-icons": "^6.7.2",
|
|
45
|
+
"@fortawesome/pro-solid-svg-icons": "^6.7.2",
|
|
46
46
|
"@fortawesome/vue-fontawesome": "^3.1.3",
|
|
47
|
-
"@
|
|
48
|
-
"@fortawesome/pro-solid-svg-icons": "^7.1.0",
|
|
49
|
-
"vite": "^7.3.1",
|
|
47
|
+
"@types/node": "^25.0.10",
|
|
50
48
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
49
|
+
"@vueuse/components": "^14.1.0",
|
|
50
|
+
"@vueuse/core": "^14.1.0",
|
|
53
51
|
"sass-embedded": "^1.97.3",
|
|
52
|
+
"typescript": "~5.9.3",
|
|
53
|
+
"vite": "^7.3.1",
|
|
54
54
|
"vite-plugin-dts": "^4.5.4",
|
|
55
|
-
"
|
|
55
|
+
"vue": "^3.5.0",
|
|
56
|
+
"vue-tsc": "^3.2.2"
|
|
56
57
|
},
|
|
57
58
|
"sideEffects": [
|
|
58
59
|
"**/*.css"
|