@iskra-ui/vue 0.1.0

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 (35) hide show
  1. package/LICENCE.md +79 -0
  2. package/dist/components/Alert.vue.d.ts +32 -0
  3. package/dist/components/Alert.vue.d.ts.map +1 -0
  4. package/dist/components/Badge.vue.d.ts +29 -0
  5. package/dist/components/Badge.vue.d.ts.map +1 -0
  6. package/dist/components/Button.vue.d.ts +43 -0
  7. package/dist/components/Button.vue.d.ts.map +1 -0
  8. package/dist/components/Card.vue.d.ts +29 -0
  9. package/dist/components/Card.vue.d.ts.map +1 -0
  10. package/dist/components/CardBody.vue.d.ts +14 -0
  11. package/dist/components/CardBody.vue.d.ts.map +1 -0
  12. package/dist/components/CardFooter.vue.d.ts +14 -0
  13. package/dist/components/CardFooter.vue.d.ts.map +1 -0
  14. package/dist/components/CardHeader.vue.d.ts +14 -0
  15. package/dist/components/CardHeader.vue.d.ts.map +1 -0
  16. package/dist/components/Icon.vue.d.ts +17 -0
  17. package/dist/components/Icon.vue.d.ts.map +1 -0
  18. package/dist/components/Spinner.vue.d.ts +16 -0
  19. package/dist/components/Spinner.vue.d.ts.map +1 -0
  20. package/dist/components/Switch.vue.d.ts +31 -0
  21. package/dist/components/Switch.vue.d.ts.map +1 -0
  22. package/dist/components/Tabs.vue.d.ts +33 -0
  23. package/dist/components/Tabs.vue.d.ts.map +1 -0
  24. package/dist/components/TextField.vue.d.ts +56 -0
  25. package/dist/components/TextField.vue.d.ts.map +1 -0
  26. package/dist/index.cjs +2 -0
  27. package/dist/index.cjs.map +1 -0
  28. package/dist/index.d.ts +14 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +574 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/utils/cx.d.ts +3 -0
  33. package/dist/utils/cx.d.ts.map +1 -0
  34. package/dist/vue.css +2 -0
  35. package/package.json +55 -0
package/dist/index.js ADDED
@@ -0,0 +1,574 @@
1
+ import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, ref as u, renderList as d, renderSlot as f, toDisplayString as p, unref as m, watch as h } from "vue";
2
+ //#region ../icons/dist/icons.js
3
+ var g = {
4
+ "chevron-down": "<polyline points=\"4,6 8,10 12,6\"/>",
5
+ "chevron-up": "<polyline points=\"4,10 8,6 12,10\"/>",
6
+ "chevron-left": "<polyline points=\"10,4 6,8 10,12\"/>",
7
+ "chevron-right": "<polyline points=\"6,4 10,8 6,12\"/>",
8
+ "chevrons-left": "<polyline points=\"7.5,4 3.5,8 7.5,12\"/><polyline points=\"12,4 8,8 12,12\"/>",
9
+ "chevrons-right": "<polyline points=\"8.5,4 12.5,8 8.5,12\"/><polyline points=\"4,4 8,8 4,12\"/>",
10
+ "arrow-up": "<line x1=\"8\" y1=\"13.5\" x2=\"8\" y2=\"3\"/><polyline points=\"4,7 8,3 12,7\"/>",
11
+ "arrow-down": "<line x1=\"8\" y1=\"2.5\" x2=\"8\" y2=\"13\"/><polyline points=\"4,9 8,13 12,9\"/>",
12
+ "arrow-left": "<line x1=\"13.5\" y1=\"8\" x2=\"3\" y2=\"8\"/><polyline points=\"7,4 3,8 7,12\"/>",
13
+ "arrow-right": "<line x1=\"2.5\" y1=\"8\" x2=\"13\" y2=\"8\"/><polyline points=\"9,4 13,8 9,12\"/>",
14
+ "arrow-up-right": "<line x1=\"4\" y1=\"12\" x2=\"12\" y2=\"4\"/><polyline points=\"5.5,4 12,4 12,10.5\"/>",
15
+ external: "<path d=\"M8.5 3H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7.5\"/><polyline points=\"9.5,2.5 13.5,2.5 13.5,6.5\"/><line x1=\"13.5\" y1=\"2.5\" x2=\"7.5\" y2=\"8.5\"/>",
16
+ menu: "<line x1=\"2.5\" y1=\"4.5\" x2=\"13.5\" y2=\"4.5\"/><line x1=\"2.5\" y1=\"8\" x2=\"13.5\" y2=\"8\"/><line x1=\"2.5\" y1=\"11.5\" x2=\"13.5\" y2=\"11.5\"/>",
17
+ more: "<circle cx=\"3.5\" cy=\"8\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8\" cy=\"8\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12.5\" cy=\"8\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\"/>",
18
+ "more-vertical": "<circle cx=\"8\" cy=\"3.5\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8\" cy=\"8\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8\" cy=\"12.5\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\"/>",
19
+ check: "<polyline points=\"3.5,8.5 6.5,11.5 12.5,4.5\"/>",
20
+ close: "<line x1=\"4\" y1=\"4\" x2=\"12\" y2=\"12\"/><line x1=\"12\" y1=\"4\" x2=\"4\" y2=\"12\"/>",
21
+ plus: "<line x1=\"8\" y1=\"3\" x2=\"8\" y2=\"13\"/><line x1=\"3\" y1=\"8\" x2=\"13\" y2=\"8\"/>",
22
+ minus: "<line x1=\"3\" y1=\"8\" x2=\"13\" y2=\"8\"/>",
23
+ "check-circle": "<circle cx=\"8\" cy=\"8\" r=\"6\"/><polyline points=\"5.3,8.2 7,10 10.7,5.8\"/>",
24
+ "x-circle": "<circle cx=\"8\" cy=\"8\" r=\"6\"/><line x1=\"5.7\" y1=\"5.7\" x2=\"10.3\" y2=\"10.3\"/><line x1=\"10.3\" y1=\"5.7\" x2=\"5.7\" y2=\"10.3\"/>",
25
+ "plus-circle": "<circle cx=\"8\" cy=\"8\" r=\"6\"/><line x1=\"8\" y1=\"5.3\" x2=\"8\" y2=\"10.7\"/><line x1=\"5.3\" y1=\"8\" x2=\"10.7\" y2=\"8\"/>",
26
+ "minus-circle": "<circle cx=\"8\" cy=\"8\" r=\"6\"/><line x1=\"5.3\" y1=\"8\" x2=\"10.7\" y2=\"8\"/>",
27
+ success: "<circle cx=\"8\" cy=\"8\" r=\"6\"/><polyline points=\"5.3,8.2 7,10 10.7,5.8\"/>",
28
+ warning: "<path d=\"M8 2.2 14.3 13.2a.6.6 0 0 1-.52.9H2.22a.6.6 0 0 1-.52-.9Z\"/><line x1=\"8\" y1=\"6.4\" x2=\"8\" y2=\"9.6\"/><circle cx=\"8\" cy=\"11.6\" r=\".55\" fill=\"currentColor\" stroke=\"none\"/>",
29
+ error: "<circle cx=\"8\" cy=\"8\" r=\"6\"/><line x1=\"5.7\" y1=\"5.7\" x2=\"10.3\" y2=\"10.3\"/><line x1=\"10.3\" y1=\"5.7\" x2=\"5.7\" y2=\"10.3\"/>",
30
+ info: "<circle cx=\"8\" cy=\"8\" r=\"6\"/><line x1=\"8\" y1=\"7.4\" x2=\"8\" y2=\"11\"/><circle cx=\"8\" cy=\"5\" r=\".55\" fill=\"currentColor\" stroke=\"none\"/>",
31
+ help: "<circle cx=\"8\" cy=\"8\" r=\"6\"/><path d=\"M6.2 6.3a1.85 1.85 0 0 1 3.6.6c0 1.25-1.8 1.55-1.8 2.7\"/><circle cx=\"8\" cy=\"11.5\" r=\".55\" fill=\"currentColor\" stroke=\"none\"/>",
32
+ search: "<circle cx=\"7\" cy=\"7\" r=\"4.5\"/><line x1=\"10.5\" y1=\"10.5\" x2=\"14.5\" y2=\"14.5\"/>",
33
+ filter: "<path d=\"M2.5 4h11l-4.2 5v3.8l-2.6-1.3V9z\"/>",
34
+ sliders: "<line x1=\"2.5\" y1=\"5\" x2=\"13.5\" y2=\"5\"/><line x1=\"2.5\" y1=\"11\" x2=\"13.5\" y2=\"11\"/><circle cx=\"6\" cy=\"5\" r=\"1.8\" fill=\"var(--bg,#0D1117)\"/><circle cx=\"10.5\" cy=\"11\" r=\"1.8\" fill=\"var(--bg,#0D1117)\"/>",
35
+ refresh: "<path d=\"M2.7 8a5.3 5.3 0 0 1 9-3.8l1.6 1.5\"/><polyline points=\"13.3,2.3 13.3,5.7 9.9,5.7\"/><path d=\"M13.3 8a5.3 5.3 0 0 1-9 3.8l-1.6-1.5\"/><polyline points=\"2.7,13.7 2.7,10.3 6.1,10.3\"/>",
36
+ sync: "<path d=\"M3.5 6.5A5 5 0 0 1 12.8 6\"/><polyline points=\"12.5,2.6 13,6 9.6,6.4\"/><path d=\"M12.5 9.5A5 5 0 0 1 3.2 10\"/><polyline points=\"3.5,13.4 3,10 6.4,9.6\"/>",
37
+ undo: "<polyline points=\"5.5,4 2.5,7 5.5,10\"/><path d=\"M2.5 7h6.5a3.5 3.5 0 0 1 0 7H6\"/>",
38
+ redo: "<polyline points=\"10.5,4 13.5,7 10.5,10\"/><path d=\"M13.5 7H7a3.5 3.5 0 0 0 0 7h3\"/>",
39
+ trash: "<polyline points=\"3,4.5 13,4.5\"/><path d=\"M5.5 4.5V3.2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1V4.5\"/><path d=\"M4.3 4.5 5 13a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.7-8.5\"/>",
40
+ edit: "<path d=\"M11 2.5 13.5 5 6 12.5 3 13.5 4 10.5Z\"/><line x1=\"9.5\" y1=\"4\" x2=\"12\" y2=\"6.5\"/>",
41
+ copy: "<rect x=\"5.5\" y=\"5.5\" width=\"8\" height=\"8\" rx=\"1.2\"/><path d=\"M3.5 10.5a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1\"/>",
42
+ save: "<path d=\"M3 2.5h8L13.5 5v8.5a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-10a1 1 0 0 1 1-1Z\"/><path d=\"M5 2.5v3h5v-3\"/><rect x=\"5\" y=\"8.5\" width=\"6\" height=\"4\"/>",
43
+ download: "<line x1=\"8\" y1=\"2.5\" x2=\"8\" y2=\"10\"/><polyline points=\"5,7 8,10 11,7\"/><path d=\"M3 11.5v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1\"/>",
44
+ upload: "<line x1=\"8\" y1=\"10.5\" x2=\"8\" y2=\"3\"/><polyline points=\"5,6 8,3 11,6\"/><path d=\"M3 11.5v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1\"/>",
45
+ share: "<circle cx=\"12\" cy=\"4\" r=\"2\"/><circle cx=\"4\" cy=\"8\" r=\"2\"/><circle cx=\"12\" cy=\"12\" r=\"2\"/><line x1=\"5.7\" y1=\"7\" x2=\"10.3\" y2=\"5\"/><line x1=\"5.7\" y1=\"9\" x2=\"10.3\" y2=\"11\"/>",
46
+ link: "<path d=\"M6.8 9.2a2.6 2.6 0 0 0 3.7 0l2.1-2.1a2.6 2.6 0 0 0-3.7-3.7l-1 1\"/><path d=\"M9.2 6.8a2.6 2.6 0 0 0-3.7 0L3.4 8.9a2.6 2.6 0 0 0 3.7 3.7l1-1\"/>",
47
+ clipboard: "<rect x=\"3.5\" y=\"3\" width=\"9\" height=\"11\" rx=\"1.2\"/><rect x=\"6\" y=\"1.8\" width=\"4\" height=\"2.4\" rx=\"0.7\"/>",
48
+ folder: "<path d=\"M2.5 4.5a1 1 0 0 1 1-1h2.6l1.2 1.4h4.7a1 1 0 0 1 1 1v6.1a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1Z\"/>",
49
+ file: "<path d=\"M4 2.5h5L12.5 6v7a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1Z\"/><polyline points=\"9,2.5 9,6 12.5,6\"/>",
50
+ "file-text": "<path d=\"M4 2.5h5L12.5 6v7a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1Z\"/><polyline points=\"9,2.5 9,6 12.5,6\"/><line x1=\"5.5\" y1=\"8.5\" x2=\"10\" y2=\"8.5\"/><line x1=\"5.5\" y1=\"11\" x2=\"10\" y2=\"11\"/>",
51
+ eye: "<path d=\"M1.5 8S3.5 3.5 8 3.5 14.5 8 14.5 8 12.5 12.5 8 12.5 1.5 8 1.5 8Z\"/><circle cx=\"8\" cy=\"8\" r=\"2\"/>",
52
+ "eye-off": "<path d=\"M3 3l10 10\"/><path d=\"M6.5 6.6A2 2 0 0 0 8 10a2 2 0 0 0 1.4-.6\"/><path d=\"M4.2 4.7C2.6 5.8 1.5 8 1.5 8s2 4.5 6.5 4.5c1 0 1.9-.2 2.7-.6\"/><path d=\"M7 3.6A6 6 0 0 1 8 3.5C12.5 3.5 14.5 8 14.5 8a12 12 0 0 1-1.7 2.3\"/>",
53
+ bell: "<path d=\"M8 2a4 4 0 0 1 4 4c0 3 1.2 4 1.2 4H2.8S4 9 4 6a4 4 0 0 1 4-4z\"/><path d=\"M6.4 12.5a1.7 1.7 0 0 0 3.2 0\"/>",
54
+ "bell-off": "<path d=\"M5 4.2A4 4 0 0 1 12 6c0 2.2.7 3.4 1 3.8M4.2 6.7C4.1 8.7 3 10 3 10h7.5\"/><path d=\"M6.4 12.5a1.7 1.7 0 0 0 3.2 0\"/><line x1=\"2.5\" y1=\"2.5\" x2=\"13.5\" y2=\"13.5\"/>",
55
+ lock: "<rect x=\"3.5\" y=\"7\" width=\"9\" height=\"6.5\" rx=\"1.2\"/><path d=\"M5.5 7V5.2a2.5 2.5 0 0 1 5 0V7\"/>",
56
+ unlock: "<rect x=\"3.5\" y=\"7\" width=\"9\" height=\"6.5\" rx=\"1.2\"/><path d=\"M5.5 7V5.2a2.5 2.5 0 0 1 4.8-.9\"/>",
57
+ shield: "<path d=\"M8 1.7 13 3.5v4.2c0 3.3-2.3 5.6-5 6.6-2.7-1-5-3.3-5-6.6V3.5Z\"/>",
58
+ "shield-check": "<path d=\"M8 1.7 13 3.5v4.2c0 3.3-2.3 5.6-5 6.6-2.7-1-5-3.3-5-6.6V3.5Z\"/><polyline points=\"5.7,7.8 7.3,9.4 10.4,5.9\"/>",
59
+ key: "<circle cx=\"5.5\" cy=\"10.5\" r=\"2.6\"/><line x1=\"7.4\" y1=\"8.6\" x2=\"13\" y2=\"3\"/><line x1=\"11\" y1=\"5\" x2=\"12.6\" y2=\"6.6\"/><line x1=\"9.4\" y1=\"6.6\" x2=\"11\" y2=\"8.2\"/>",
60
+ zap: "<polygon points=\"8.5,1.8 3.5,9 7.5,9 7,14.2 12.5,7 8.5,7\"/>",
61
+ activity: "<polyline points=\"1.5,8 5,8 7,3 9.5,13 11.5,8 14.5,8\"/>",
62
+ settings: "<circle cx=\"8\" cy=\"8\" r=\"2.3\"/><path d=\"M12.6 9.5a1 1 0 0 0 .2 1.1l.05.05a1.2 1.2 0 1 1-1.7 1.7l-.05-.05a1 1 0 0 0-1.1-.2 1 1 0 0 0-.6.9v.15a1.2 1.2 0 1 1-2.4 0v-.08a1 1 0 0 0-.66-.92 1 1 0 0 0-1.1.2l-.05.05a1.2 1.2 0 1 1-1.7-1.7l.05-.05a1 1 0 0 0 .2-1.1 1 1 0 0 0-.9-.6h-.15a1.2 1.2 0 1 1 0-2.4h.08a1 1 0 0 0 .92-.66 1 1 0 0 0-.2-1.1l-.05-.05a1.2 1.2 0 1 1 1.7-1.7l.05.05a1 1 0 0 0 1.1.2H7a1 1 0 0 0 .6-.9v-.15a1.2 1.2 0 1 1 2.4 0v.08a1 1 0 0 0 .6.92 1 1 0 0 0 1.1-.2l.05-.05a1.2 1.2 0 1 1 1.7 1.7l-.05.05a1 1 0 0 0-.2 1.1V7a1 1 0 0 0 .9.6h.15a1.2 1.2 0 1 1 0 2.4h-.08a1 1 0 0 0-.92.6Z\"/>",
63
+ user: "<circle cx=\"8\" cy=\"5.5\" r=\"2.8\"/><path d=\"M2.5 14c0-3 2.4-4.8 5.5-4.8s5.5 1.8 5.5 4.8\"/>",
64
+ users: "<circle cx=\"6\" cy=\"5.5\" r=\"2.4\"/><path d=\"M1.5 13.5c0-2.6 2-4.2 4.5-4.2s4.5 1.6 4.5 4.2\"/><path d=\"M11 3.4a2.4 2.4 0 0 1 0 4.6M14.5 13.5c0-2-1.1-3.4-2.8-4\"/>",
65
+ "user-plus": "<circle cx=\"6.5\" cy=\"5.5\" r=\"2.8\"/><path d=\"M1.5 14c0-3 2.2-4.8 5-4.8 1 0 1.9.2 2.6.6\"/><line x1=\"12.5\" y1=\"9.5\" x2=\"12.5\" y2=\"13.5\"/><line x1=\"10.5\" y1=\"11.5\" x2=\"14.5\" y2=\"11.5\"/>",
66
+ calendar: "<rect x=\"2.5\" y=\"3.5\" width=\"11\" height=\"10\" rx=\"1.2\"/><line x1=\"2.5\" y1=\"6.5\" x2=\"13.5\" y2=\"6.5\"/><line x1=\"5.5\" y1=\"2\" x2=\"5.5\" y2=\"4.5\"/><line x1=\"10.5\" y1=\"2\" x2=\"10.5\" y2=\"4.5\"/>",
67
+ clock: "<circle cx=\"8\" cy=\"8\" r=\"6\"/><polyline points=\"8,4.5 8,8 10.5,9.5\"/>",
68
+ history: "<path d=\"M2.7 8a5.3 5.3 0 1 0 1.6-3.8\"/><polyline points=\"2.4,2.5 2.4,5.7 5.6,5.7\"/><polyline points=\"8,5.2 8,8 10.4,9.4\"/>",
69
+ server: "<rect x=\"2.5\" y=\"3\" width=\"11\" height=\"4.2\" rx=\"1\"/><rect x=\"2.5\" y=\"8.8\" width=\"11\" height=\"4.2\" rx=\"1\"/><line x1=\"4.5\" y1=\"5.1\" x2=\"4.55\" y2=\"5.1\"/><line x1=\"4.5\" y1=\"10.9\" x2=\"4.55\" y2=\"10.9\"/>",
70
+ database: "<ellipse cx=\"8\" cy=\"4\" rx=\"5\" ry=\"2\"/><path d=\"M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4\"/><path d=\"M3 8c0 1.1 2.2 2 5 2s5-.9 5-2\"/>",
71
+ cloud: "<path d=\"M4.5 12.5a3 3 0 0 1-.3-6A4 4 0 0 1 12 7a2.8 2.8 0 0 1-.3 5.5Z\"/>",
72
+ cpu: "<rect x=\"4.5\" y=\"4.5\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"6.7\" y=\"6.7\" width=\"2.6\" height=\"2.6\"/><line x1=\"6.5\" y1=\"2.5\" x2=\"6.5\" y2=\"4.5\"/><line x1=\"9.5\" y1=\"2.5\" x2=\"9.5\" y2=\"4.5\"/><line x1=\"6.5\" y1=\"11.5\" x2=\"6.5\" y2=\"13.5\"/><line x1=\"9.5\" y1=\"11.5\" x2=\"9.5\" y2=\"13.5\"/><line x1=\"2.5\" y1=\"6.5\" x2=\"4.5\" y2=\"6.5\"/><line x1=\"2.5\" y1=\"9.5\" x2=\"4.5\" y2=\"9.5\"/><line x1=\"11.5\" y1=\"6.5\" x2=\"13.5\" y2=\"6.5\"/><line x1=\"11.5\" y1=\"9.5\" x2=\"13.5\" y2=\"9.5\"/>",
73
+ globe: "<circle cx=\"8\" cy=\"8\" r=\"6\"/><line x1=\"2\" y1=\"8\" x2=\"14\" y2=\"8\"/><path d=\"M8 2c1.8 1.6 2.8 3.8 2.8 6S9.8 12.4 8 14c-1.8-1.6-2.8-3.8-2.8-6S6.2 3.6 8 2Z\"/>",
74
+ wifi: "<path d=\"M2 6.2a9 9 0 0 1 12 0\"/><path d=\"M4.2 8.6a6 6 0 0 1 7.6 0\"/><path d=\"M6.4 11a3 3 0 0 1 3.2 0\"/><circle cx=\"8\" cy=\"13\" r=\".7\" fill=\"currentColor\" stroke=\"none\"/>",
75
+ terminal: "<rect x=\"2.5\" y=\"3\" width=\"11\" height=\"10\" rx=\"1.2\"/><polyline points=\"5,7 7,8.5 5,10\"/><line x1=\"8.5\" y1=\"10.5\" x2=\"11\" y2=\"10.5\"/>",
76
+ code: "<polyline points=\"6,5 2.5,8 6,11\"/><polyline points=\"10,5 13.5,8 10,11\"/>",
77
+ "git-branch": "<line x1=\"4.5\" y1=\"3\" x2=\"4.5\" y2=\"13\"/><circle cx=\"4.5\" cy=\"3\" r=\"1.7\"/><circle cx=\"4.5\" cy=\"13\" r=\"1.7\"/><circle cx=\"11.5\" cy=\"5\" r=\"1.7\"/><path d=\"M11.5 6.7v.8a3 3 0 0 1-3 3H4.5\"/>",
78
+ layers: "<polygon points=\"8,2 14,5 8,8 2,5\"/><polyline points=\"2,8 8,11 14,8\"/><polyline points=\"2,11 8,14 14,11\"/>",
79
+ grid: "<rect x=\"2.5\" y=\"2.5\" width=\"4.5\" height=\"4.5\" rx=\"1\"/><rect x=\"9\" y=\"2.5\" width=\"4.5\" height=\"4.5\" rx=\"1\"/><rect x=\"2.5\" y=\"9\" width=\"4.5\" height=\"4.5\" rx=\"1\"/><rect x=\"9\" y=\"9\" width=\"4.5\" height=\"4.5\" rx=\"1\"/>",
80
+ list: "<line x1=\"5.5\" y1=\"4\" x2=\"13.5\" y2=\"4\"/><line x1=\"5.5\" y1=\"8\" x2=\"13.5\" y2=\"8\"/><line x1=\"5.5\" y1=\"12\" x2=\"13.5\" y2=\"12\"/><circle cx=\"2.8\" cy=\"4\" r=\".8\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"2.8\" cy=\"8\" r=\".8\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"2.8\" cy=\"12\" r=\".8\" fill=\"currentColor\" stroke=\"none\"/>",
81
+ tag: "<path d=\"M2.6 7.4 7.4 2.6a1 1 0 0 1 .7-.3h4.1a1 1 0 0 1 1 1V7.4a1 1 0 0 1-.3.7l-4.8 4.8a1 1 0 0 1-1.4 0L2.6 8.8a1 1 0 0 1 0-1.4Z\"/><circle cx=\"10.2\" cy=\"5.8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/>",
82
+ bookmark: "<path d=\"M4 2.5h8a.5.5 0 0 1 .5.5v10.5L8 11l-4.5 2.5V3a.5.5 0 0 1 .5-.5Z\"/>",
83
+ star: "<polygon points=\"8,2 9.85,5.75 14,6.35 11,9.25 11.7,13.35 8,11.4 4.3,13.35 5,9.25 2,6.35 6.15,5.75\"/>",
84
+ pin: "<path d=\"M8 14s4.5-4 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 10 8 14 8 14Z\"/><circle cx=\"8\" cy=\"6.5\" r=\"1.7\"/>",
85
+ mail: "<rect x=\"2\" y=\"3.5\" width=\"12\" height=\"9\" rx=\"1.2\"/><polyline points=\"2.5,4.5 8,8.5 13.5,4.5\"/>",
86
+ message: "<path d=\"M2.5 4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H6l-3 2.5V11H3.5a1 1 0 0 1-1-1Z\"/>",
87
+ sun: "<circle cx=\"8\" cy=\"8\" r=\"3\"/><path d=\"M8 1v1.6M8 13.4V15M15 8h-1.6M2.6 8H1M12.95 3.05l-1.13 1.13M4.18 11.82l-1.13 1.13M12.95 12.95l-1.13-1.13M4.18 4.18 3.05 3.05\"/>",
88
+ moon: "<path d=\"M13 9.2A5.5 5.5 0 0 1 6.8 3 5.5 5.5 0 1 0 13 9.2Z\"/>",
89
+ power: "<line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"8\"/><path d=\"M5 4.2a5 5 0 1 0 6 0\"/>",
90
+ "log-out": "<path d=\"M6 13.5H3.5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1H6\"/><polyline points=\"10,11 13.5,8 10,5\"/><line x1=\"13.5\" y1=\"8\" x2=\"6\" y2=\"8\"/>",
91
+ "log-in": "<path d=\"M10 2.5h2.5a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H10\"/><polyline points=\"6,11 9.5,8 6,5\"/><line x1=\"9.5\" y1=\"8\" x2=\"2\" y2=\"8\"/>"
92
+ }, _ = [
93
+ "width",
94
+ "height",
95
+ "stroke-width",
96
+ "role",
97
+ "aria-hidden",
98
+ "aria-label",
99
+ "innerHTML"
100
+ ], v = /* @__PURE__ */ s({
101
+ __name: "Icon",
102
+ props: {
103
+ name: {},
104
+ size: { default: "1em" },
105
+ strokeWidth: { default: 1.5 },
106
+ title: {}
107
+ },
108
+ setup(e) {
109
+ let n = e, i = t(() => typeof n.size == "number" ? `${n.size}px` : n.size), a = t(() => (n.title ? `<title>${n.title}</title>` : "") + g[n.name]);
110
+ return (t, n) => (l(), r("svg", {
111
+ class: "iskra-icon",
112
+ width: i.value,
113
+ height: i.value,
114
+ viewBox: "0 0 16 16",
115
+ fill: "none",
116
+ stroke: "currentColor",
117
+ "stroke-width": e.strokeWidth,
118
+ "stroke-linecap": "round",
119
+ "stroke-linejoin": "round",
120
+ role: e.title ? "img" : void 0,
121
+ "aria-hidden": e.title ? void 0 : "true",
122
+ "aria-label": e.title || void 0,
123
+ style: {
124
+ display: "inline-block",
125
+ "flex-shrink": "0",
126
+ "vertical-align": "middle"
127
+ },
128
+ innerHTML: a.value
129
+ }, null, 8, _));
130
+ }
131
+ });
132
+ //#endregion
133
+ //#region src/utils/cx.ts
134
+ function y(...e) {
135
+ return e.filter(Boolean).join(" ");
136
+ }
137
+ //#endregion
138
+ //#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
139
+ var b = ["type", "disabled"], x = {
140
+ key: 0,
141
+ class: "ik-btn-spinner",
142
+ "aria-hidden": "true"
143
+ }, S = { class: "ik-btn-content" }, C = { key: 0 }, w = /* @__PURE__ */ s({
144
+ __name: "Button",
145
+ props: {
146
+ variant: { default: "primary" },
147
+ size: { default: "m" },
148
+ iconOnly: {
149
+ type: Boolean,
150
+ default: !1
151
+ },
152
+ loading: {
153
+ type: Boolean,
154
+ default: !1
155
+ },
156
+ fullWidth: {
157
+ type: Boolean,
158
+ default: !1
159
+ },
160
+ disabled: {
161
+ type: Boolean,
162
+ default: !1
163
+ },
164
+ type: { default: "button" }
165
+ },
166
+ setup(e) {
167
+ let a = e, o = t(() => y("ik-btn", `ik-btn-${a.variant}`, `ik-btn-${a.size}`, a.iconOnly && "ik-btn-io", a.fullWidth && "ik-btn-fw", a.loading && "ik-btn-loading"));
168
+ return (t, a) => (l(), r("button", {
169
+ type: e.type,
170
+ class: c(o.value),
171
+ disabled: e.disabled || e.loading
172
+ }, [e.loading ? (l(), r("span", x)) : n("", !0), i("span", S, [
173
+ f(t.$slots, "iconBefore"),
174
+ e.iconOnly ? f(t.$slots, "default", { key: 1 }) : (l(), r("span", C, [f(t.$slots, "default")])),
175
+ f(t.$slots, "iconAfter")
176
+ ])], 10, b));
177
+ }
178
+ }), T = {
179
+ key: 0,
180
+ class: "ik-bdg-dot",
181
+ "aria-hidden": "true"
182
+ }, E = /* @__PURE__ */ s({
183
+ __name: "Badge",
184
+ props: {
185
+ variant: { default: "neutral" },
186
+ size: { default: "m" },
187
+ dot: {
188
+ type: Boolean,
189
+ default: !1
190
+ }
191
+ },
192
+ setup(e) {
193
+ let i = e, a = t(() => y("ik-bdg", `ik-bdg-${i.size}`, `ik-bdg-${i.variant}`));
194
+ return (t, i) => (l(), r("span", { class: c(a.value) }, [
195
+ e.dot ? (l(), r("span", T)) : n("", !0),
196
+ f(t.$slots, "icon"),
197
+ f(t.$slots, "default")
198
+ ], 2));
199
+ }
200
+ }), D = {
201
+ role: "status",
202
+ "aria-live": "polite",
203
+ class: "ik-spinner-wrap"
204
+ }, O = { class: "ik-spinner-label" }, ee = /* @__PURE__ */ s({
205
+ __name: "Spinner",
206
+ props: {
207
+ size: { default: "m" },
208
+ label: { default: "Загрузка…" }
209
+ },
210
+ setup(e) {
211
+ let n = e, a = t(() => y("ik-spinner", `ik-spinner-${n.size}`));
212
+ return (t, n) => (l(), r("div", D, [i("span", {
213
+ class: c(a.value),
214
+ "aria-hidden": "true"
215
+ }, null, 2), i("span", O, p(e.label), 1)]));
216
+ }
217
+ }), k = 0;
218
+ function A(e = "ik") {
219
+ return k += 1, `${e}-${k}`;
220
+ }
221
+ //#endregion
222
+ //#region ../core/dist/keyboard.js
223
+ var j = {
224
+ Enter: "Enter",
225
+ Space: " ",
226
+ Escape: "Escape",
227
+ Tab: "Tab",
228
+ ArrowUp: "ArrowUp",
229
+ ArrowDown: "ArrowDown",
230
+ ArrowLeft: "ArrowLeft",
231
+ ArrowRight: "ArrowRight",
232
+ Home: "Home",
233
+ End: "End"
234
+ };
235
+ //#endregion
236
+ //#region ../core/dist/tabs.js
237
+ function M(e) {
238
+ return {
239
+ tab: (t) => `${e}-tab-${t}`,
240
+ panel: (t) => `${e}-panel-${t}`
241
+ };
242
+ }
243
+ function N(e) {
244
+ return e.find((e) => !e.disabled)?.value;
245
+ }
246
+ function P(e, t, n, r = "horizontal") {
247
+ let i = e.filter((e) => !e.disabled);
248
+ if (i.length === 0) return;
249
+ let a = r === "horizontal" ? j.ArrowRight : j.ArrowDown, o = r === "horizontal" ? j.ArrowLeft : j.ArrowUp, s = i.findIndex((e) => e.value === t), c = s === -1 ? 0 : s;
250
+ switch (n) {
251
+ case a: return i[(c + 1) % i.length].value;
252
+ case o: return i[(c - 1 + i.length) % i.length].value;
253
+ case j.Home: return i[0].value;
254
+ case j.End: return i[i.length - 1].value;
255
+ default: return;
256
+ }
257
+ }
258
+ //#endregion
259
+ //#region src/components/Switch.vue?vue&type=script&setup=true&lang.ts
260
+ var F = ["for"], I = [
261
+ "id",
262
+ "checked",
263
+ "disabled"
264
+ ], L = {
265
+ key: 0,
266
+ class: "ik-sw-textwrap"
267
+ }, R = {
268
+ key: 0,
269
+ class: "ik-sw-text"
270
+ }, z = {
271
+ key: 1,
272
+ class: "ik-sw-desc"
273
+ }, B = /* @__PURE__ */ s({
274
+ __name: "Switch",
275
+ props: {
276
+ modelValue: {
277
+ type: Boolean,
278
+ default: !1
279
+ },
280
+ size: { default: "m" },
281
+ label: {},
282
+ description: {},
283
+ disabled: {
284
+ type: Boolean,
285
+ default: !1
286
+ },
287
+ id: {}
288
+ },
289
+ emits: ["update:modelValue", "change"],
290
+ setup(e, { emit: a }) {
291
+ let o = e, s = a, u = t(() => o.id ?? A("ik-sw")), d = t(() => y("ik-sw", `ik-sw-${o.size}`, o.disabled && "is-disabled"));
292
+ function f(e) {
293
+ s("update:modelValue", e.target.checked), s("change", e);
294
+ }
295
+ return (t, a) => (l(), r("label", {
296
+ class: c(d.value),
297
+ for: u.value
298
+ }, [
299
+ i("input", {
300
+ id: u.value,
301
+ type: "checkbox",
302
+ role: "switch",
303
+ class: "ik-sw-input",
304
+ checked: e.modelValue,
305
+ disabled: e.disabled,
306
+ onChange: f
307
+ }, null, 40, I),
308
+ a[0] ||= i("span", {
309
+ class: "ik-sw-track",
310
+ "aria-hidden": "true"
311
+ }, [i("span", { class: "ik-sw-knob" })], -1),
312
+ e.label || e.description ? (l(), r("span", L, [e.label ? (l(), r("span", R, p(e.label), 1)) : n("", !0), e.description ? (l(), r("span", z, p(e.description), 1)) : n("", !0)])) : n("", !0)
313
+ ], 10, F));
314
+ }
315
+ }), V = ["role"], H = {
316
+ class: "ik-alert-ico",
317
+ "aria-hidden": "true"
318
+ }, U = { class: "ik-alert-body" }, W = {
319
+ key: 0,
320
+ class: "ik-alert-title"
321
+ }, G = ["aria-label"], K = {
322
+ info: "info",
323
+ success: "check-circle",
324
+ warning: "warning",
325
+ error: "x-circle"
326
+ }, q = /* @__PURE__ */ s({
327
+ __name: "Alert",
328
+ props: {
329
+ variant: { default: "info" },
330
+ title: {},
331
+ closable: {
332
+ type: Boolean,
333
+ default: !1
334
+ },
335
+ closeLabel: { default: "Закрыть" }
336
+ },
337
+ emits: ["close"],
338
+ setup(e, { emit: a }) {
339
+ let s = e, u = a, d = t(() => s.variant === "error" || s.variant === "warning" ? "alert" : "status"), m = t(() => y("ik-alert", `ik-alert-${s.variant}`)), h = t(() => K[s.variant]);
340
+ return (t, a) => (l(), r("div", {
341
+ class: c(m.value),
342
+ role: d.value
343
+ }, [
344
+ i("span", H, [f(t.$slots, "icon", {}, () => [o(v, {
345
+ name: h.value,
346
+ size: 16
347
+ }, null, 8, ["name"])])]),
348
+ i("div", U, [e.title ? (l(), r("div", W, p(e.title), 1)) : n("", !0), f(t.$slots, "default")]),
349
+ e.closable ? (l(), r("button", {
350
+ key: 0,
351
+ type: "button",
352
+ class: "ik-alert-close",
353
+ "aria-label": e.closeLabel,
354
+ onClick: a[0] ||= (e) => u("close")
355
+ }, [o(v, {
356
+ name: "close",
357
+ size: 14
358
+ })], 8, G)) : n("", !0)
359
+ ], 10, V));
360
+ }
361
+ }), J = ["tabindex"], te = /* @__PURE__ */ s({
362
+ __name: "Card",
363
+ props: {
364
+ padding: { default: "m" },
365
+ elevated: {
366
+ type: Boolean,
367
+ default: !1
368
+ },
369
+ interactive: {
370
+ type: Boolean,
371
+ default: !1
372
+ },
373
+ selected: {
374
+ type: Boolean,
375
+ default: !1
376
+ }
377
+ },
378
+ setup(e) {
379
+ let n = e, i = t(() => y("ik-card", `ik-card-pad-${n.padding}`, n.elevated && "ik-card-elevated", n.interactive && "ik-card-interactive", n.selected && "ik-card-selected"));
380
+ return (t, n) => (l(), r("div", {
381
+ class: c(i.value),
382
+ tabindex: e.interactive ? 0 : void 0
383
+ }, [f(t.$slots, "default")], 10, J));
384
+ }
385
+ }), Y = (e, t) => {
386
+ let n = e.__vccOpts || e;
387
+ for (let [e, r] of t) n[e] = r;
388
+ return n;
389
+ }, X = {}, Z = { class: "ik-card-header" };
390
+ function Q(e, t) {
391
+ return l(), r("div", Z, [f(e.$slots, "default")]);
392
+ }
393
+ var ne = /*#__PURE__*/ Y(X, [["render", Q]]), re = {}, ie = { class: "ik-card-body" };
394
+ function ae(e, t) {
395
+ return l(), r("div", ie, [f(e.$slots, "default")]);
396
+ }
397
+ var oe = /*#__PURE__*/ Y(re, [["render", ae]]), se = {}, ce = { class: "ik-card-footer" };
398
+ function le(e, t) {
399
+ return l(), r("div", ce, [f(e.$slots, "default")]);
400
+ }
401
+ var ue = /*#__PURE__*/ Y(se, [["render", le]]), de = { class: "ik-tf-wrap" }, fe = ["for"], pe = {
402
+ key: 0,
403
+ class: "ik-tf-req",
404
+ "aria-hidden": "true"
405
+ }, $ = {
406
+ key: 0,
407
+ class: "ik-tf-ico"
408
+ }, me = [
409
+ "id",
410
+ "type",
411
+ "value",
412
+ "disabled",
413
+ "placeholder",
414
+ "aria-invalid",
415
+ "aria-describedby"
416
+ ], he = ["aria-label"], ge = ["id"], _e = /* @__PURE__ */ s({
417
+ __name: "TextField",
418
+ props: {
419
+ modelValue: { default: "" },
420
+ size: { default: "m" },
421
+ label: {},
422
+ hint: {},
423
+ error: { type: [String, Boolean] },
424
+ required: {
425
+ type: Boolean,
426
+ default: !1
427
+ },
428
+ clearable: {
429
+ type: Boolean,
430
+ default: !1
431
+ },
432
+ disabled: {
433
+ type: Boolean,
434
+ default: !1
435
+ },
436
+ id: {},
437
+ placeholder: {},
438
+ type: { default: "text" },
439
+ clearLabel: { default: "Очистить" }
440
+ },
441
+ emits: ["update:modelValue", "clear"],
442
+ setup(e, { emit: o }) {
443
+ let s = e, d = o, h = u(), g = t(() => s.id ?? A("ik-tf")), _ = t(() => typeof s.error == "string" ? s.error : null), v = t(() => !!s.error), b = t(() => s.clearable && !s.disabled && (s.modelValue ?? "").length > 0), x = t(() => y("ik-tf-field", `ik-tf-${s.size}`, v.value && "is-error", s.disabled && "is-disabled")), S = t(() => _.value || s.hint ? `${g.value}-msg` : void 0);
444
+ function C(e) {
445
+ d("update:modelValue", e.target.value);
446
+ }
447
+ function w() {
448
+ d("update:modelValue", ""), d("clear"), h.value?.focus();
449
+ }
450
+ return (t, o) => (l(), r("div", de, [
451
+ e.label ? (l(), r("label", {
452
+ key: 0,
453
+ class: "ik-tf-label",
454
+ for: g.value
455
+ }, [a(p(e.label) + " ", 1), e.required ? (l(), r("span", pe, "*")) : n("", !0)], 8, fe)) : n("", !0),
456
+ i("div", { class: c(x.value) }, [
457
+ t.$slots.iconBefore ? (l(), r("span", $, [f(t.$slots, "iconBefore")])) : n("", !0),
458
+ i("input", {
459
+ id: g.value,
460
+ ref_key: "inputRef",
461
+ ref: h,
462
+ class: "ik-tf-input",
463
+ type: e.type,
464
+ value: e.modelValue,
465
+ disabled: e.disabled,
466
+ placeholder: e.placeholder,
467
+ "aria-invalid": v.value || void 0,
468
+ "aria-describedby": S.value,
469
+ onInput: C
470
+ }, null, 40, me),
471
+ b.value ? (l(), r("button", {
472
+ key: 1,
473
+ type: "button",
474
+ class: "ik-tf-clear",
475
+ "aria-label": e.clearLabel,
476
+ onClick: w
477
+ }, [...o[0] ||= [i("svg", {
478
+ width: "13",
479
+ height: "13",
480
+ viewBox: "0 0 16 16",
481
+ fill: "none",
482
+ stroke: "currentColor",
483
+ "stroke-width": "1.6",
484
+ "stroke-linecap": "round",
485
+ "aria-hidden": "true"
486
+ }, [i("line", {
487
+ x1: "4",
488
+ y1: "4",
489
+ x2: "12",
490
+ y2: "12"
491
+ }), i("line", {
492
+ x1: "12",
493
+ y1: "4",
494
+ x2: "4",
495
+ y2: "12"
496
+ })], -1)]], 8, he)) : n("", !0)
497
+ ], 2),
498
+ _.value || e.hint ? (l(), r("div", {
499
+ key: 1,
500
+ id: `${g.value}-msg`,
501
+ class: c(m(y)("ik-tf-msg", v.value && "is-error"))
502
+ }, p(_.value || e.hint), 11, ge)) : n("", !0)
503
+ ]));
504
+ }
505
+ }), ve = { class: "ik-tabs" }, ye = ["aria-label"], be = [
506
+ "id",
507
+ "aria-selected",
508
+ "aria-controls",
509
+ "tabindex",
510
+ "disabled",
511
+ "onClick",
512
+ "onKeydown"
513
+ ], xe = [
514
+ "id",
515
+ "aria-labelledby",
516
+ "hidden"
517
+ ], Se = /* @__PURE__ */ s({
518
+ __name: "Tabs",
519
+ props: {
520
+ items: {},
521
+ modelValue: {},
522
+ defaultValue: {},
523
+ ariaLabel: {}
524
+ },
525
+ emits: ["update:modelValue"],
526
+ setup(o, { emit: s }) {
527
+ let c = o, g = s, _ = M(A("ik-tabs")), v = u(c.modelValue ?? c.defaultValue ?? N(c.items));
528
+ h(() => c.modelValue, (e) => {
529
+ e != null && (v.value = e);
530
+ });
531
+ let y = t(() => c.modelValue ?? v.value), b = u({});
532
+ function x(e, t) {
533
+ b.value[e] = t;
534
+ }
535
+ function S(e) {
536
+ v.value = e, g("update:modelValue", e);
537
+ }
538
+ function C(e, t) {
539
+ let n = P(c.items, t, e.key);
540
+ n && (e.preventDefault(), S(n), b.value[n]?.focus());
541
+ }
542
+ return (t, s) => (l(), r("div", ve, [i("div", {
543
+ class: "ik-tabs-list",
544
+ role: "tablist",
545
+ "aria-label": o.ariaLabel
546
+ }, [(l(!0), r(e, null, d(o.items, (e) => (l(), r("button", {
547
+ key: e.value,
548
+ ref_for: !0,
549
+ ref: (t) => x(e.value, t),
550
+ type: "button",
551
+ role: "tab",
552
+ id: m(_).tab(e.value),
553
+ "aria-selected": e.value === y.value,
554
+ "aria-controls": m(_).panel(e.value),
555
+ tabindex: e.value === y.value ? 0 : -1,
556
+ disabled: e.disabled,
557
+ class: "ik-tabs-tab",
558
+ onClick: (t) => S(e.value),
559
+ onKeydown: (t) => C(t, e.value)
560
+ }, p(e.label), 41, be))), 128))], 8, ye), (l(!0), r(e, null, d(o.items, (e) => (l(), r("div", {
561
+ key: e.value,
562
+ role: "tabpanel",
563
+ id: m(_).panel(e.value),
564
+ "aria-labelledby": m(_).tab(e.value),
565
+ hidden: e.value !== y.value,
566
+ tabindex: 0,
567
+ class: "ik-tabs-panel"
568
+ }, [e.value === y.value ? f(t.$slots, e.value, { key: 0 }, () => [a(p(e.content), 1)]) : n("", !0)], 8, xe))), 128))]));
569
+ }
570
+ });
571
+ //#endregion
572
+ export { q as Alert, E as Badge, w as Button, te as Card, oe as CardBody, ue as CardFooter, ne as CardHeader, v as Icon, ee as Spinner, B as Switch, Se as Tabs, _e as TextField };
573
+
574
+ //# sourceMappingURL=index.js.map