tttb 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.

Potentially problematic release.


This version of tttb might be problematic. Click here for more details.

Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +38 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/components.js +36 -0
  5. package/dist/directives.js +16 -0
  6. package/dist/hooks.js +1 -0
  7. package/dist/icons/brands.js +554 -0
  8. package/dist/icons/regular.js +278 -0
  9. package/dist/icons/solid.js +1989 -0
  10. package/dist/index.js +84 -0
  11. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +393 -0
  12. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +399 -0
  13. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  14. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
  15. package/dist/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +130 -0
  16. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +3074 -0
  17. package/dist/node_modules/@fortawesome/free-brands-svg-icons/index.js +3156 -0
  18. package/dist/node_modules/@fortawesome/free-regular-svg-icons/index.js +1228 -0
  19. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +9602 -0
  20. package/dist/node_modules/@fortawesome/vue-fontawesome/index.es.js +487 -0
  21. package/dist/node_modules/gsap/CSSPlugin.js +424 -0
  22. package/dist/node_modules/gsap/gsap-core.js +1645 -0
  23. package/dist/node_modules/gsap/index.js +13 -0
  24. package/dist/src/components/Button/index.js +6 -0
  25. package/dist/src/components/Button/index.vue.js +74 -0
  26. package/dist/src/components/Checkbox/index.js +6 -0
  27. package/dist/src/components/Checkbox/index.vue.js +43 -0
  28. package/dist/src/components/Dialog/DialogItem.vue.js +80 -0
  29. package/dist/src/components/Dialog/DialogPrompt.vue.js +60 -0
  30. package/dist/src/components/Dialog/index.js +6 -0
  31. package/dist/src/components/Dialog/index.vue.js +77 -0
  32. package/dist/src/components/Icon/index.js +6 -0
  33. package/dist/src/components/Icon/index.vue.js +17 -0
  34. package/dist/src/components/Icon/props.js +31 -0
  35. package/dist/src/components/Loading/index.js +6 -0
  36. package/dist/src/components/Loading/index.vue.js +45 -0
  37. package/dist/src/components/Message/index.js +6 -0
  38. package/dist/src/components/Message/index.vue.js +86 -0
  39. package/dist/src/components/Modal/index.js +6 -0
  40. package/dist/src/components/Modal/index.vue.js +53 -0
  41. package/dist/src/components/Nav/index.js +6 -0
  42. package/dist/src/components/Nav/index.vue.js +87 -0
  43. package/dist/src/components/Pagination/index.js +6 -0
  44. package/dist/src/components/Pagination/index.vue.js +165 -0
  45. package/dist/src/components/Popconfirm/index.js +6 -0
  46. package/dist/src/components/Popconfirm/index.vue.js +118 -0
  47. package/dist/src/components/Popover/index.js +6 -0
  48. package/dist/src/components/Popover/index.vue.js +34 -0
  49. package/dist/src/components/Switch/index.js +6 -0
  50. package/dist/src/components/Switch/index.vue.js +80 -0
  51. package/dist/src/components/Table/index.js +6 -0
  52. package/dist/src/components/Table/index.vue.js +42 -0
  53. package/dist/src/components/Timer/index.js +6 -0
  54. package/dist/src/components/Timer/index.vue.js +30 -0
  55. package/dist/src/components/Tooltip/TooltipContent.vue.js +25 -0
  56. package/dist/src/components/Tooltip/TooltipItem.vue.js +51 -0
  57. package/dist/src/components/Tooltip/TooltipLayer.vue.js +41 -0
  58. package/dist/src/components/Tooltip/constants.js +19 -0
  59. package/dist/src/components/Tooltip/index.js +6 -0
  60. package/dist/src/components/Tooltip/index.vue.js +49 -0
  61. package/dist/src/components/Tooltip/manager.js +102 -0
  62. package/dist/src/components/Tooltip/props.js +28 -0
  63. package/dist/src/components/Tooltip/useTooltip.js +38 -0
  64. package/dist/src/components/Warn/index.js +6 -0
  65. package/dist/src/components/Warn/index.vue.js +24 -0
  66. package/dist/src/components/Watermark/index.js +6 -0
  67. package/dist/src/components/Watermark/index.vue.js +69 -0
  68. package/dist/src/components/Watermark/useWatermarkBg.js +11 -0
  69. package/dist/src/components/helpers.js +21 -0
  70. package/dist/src/directives/vDelayIn.js +86 -0
  71. package/dist/src/directives/vLazy.js +63 -0
  72. package/dist/src/directives/vLoading.js +47 -0
  73. package/dist/src/directives/vRipple.js +78 -0
  74. package/dist/src/directives/vSlideIn.js +39 -0
  75. package/dist/src/directives/vTextJump.js +33 -0
  76. package/dist/src/directives/vTooltip.js +38 -0
  77. package/dist/src/utils/dialog.js +41 -0
  78. package/dist/src/utils/localStorage.js +25 -0
  79. package/dist/src/utils/msg.js +21 -0
  80. package/dist/src/utils/tools.js +70 -0
  81. package/dist/tttb.css +1 -0
  82. package/dist/utils.js +22 -0
  83. package/package.json +59 -0
@@ -0,0 +1,130 @@
1
+ import { arrow as j, computePosition as A } from "../../dom/dist/floating-ui.dom.js";
2
+ import { autoUpdate as W, flip as X, offset as Y, platform as Z, shift as ee } from "../../dom/dist/floating-ui.dom.js";
3
+ import { isNode as B, getNodeName as F } from "../../utils/dist/floating-ui.utils.dom.js";
4
+ import { getOverflowAncestors as te } from "../../utils/dist/floating-ui.utils.dom.js";
5
+ import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function V(e) {
10
+ if (z(e)) {
11
+ const l = e.$el;
12
+ return B(l) && F(l) === "#comment" ? null : l;
13
+ }
14
+ return e;
15
+ }
16
+ function i(e) {
17
+ return typeof e == "function" ? e() : q(e);
18
+ }
19
+ function K(e) {
20
+ return {
21
+ name: "arrow",
22
+ options: e,
23
+ fn(l) {
24
+ const t = V(i(e.element));
25
+ return t == null ? {} : j({
26
+ element: t,
27
+ padding: e.padding
28
+ }).fn(l);
29
+ }
30
+ };
31
+ }
32
+ function M(e) {
33
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
+ }
35
+ function C(e, l) {
36
+ const t = M(e);
37
+ return Math.round(l * t) / t;
38
+ }
39
+ function L(e, l, t) {
40
+ t === void 0 && (t = {});
41
+ const D = t.whileElementsMounted, s = r(() => {
42
+ var n;
43
+ return (n = i(t.open)) != null ? n : !0;
44
+ }), O = r(() => i(t.middleware)), p = r(() => {
45
+ var n;
46
+ return (n = i(t.placement)) != null ? n : "bottom";
47
+ }), w = r(() => {
48
+ var n;
49
+ return (n = i(t.strategy)) != null ? n : "absolute";
50
+ }), S = r(() => {
51
+ var n;
52
+ return (n = i(t.transform)) != null ? n : !0;
53
+ }), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
54
+ const n = {
55
+ position: m.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const a = C(u.value, y.value), b = C(u.value, h.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + a + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: m.value,
70
+ left: a + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let d;
75
+ function v() {
76
+ if (f.value == null || u.value == null)
77
+ return;
78
+ const n = s.value;
79
+ A(f.value, u.value, {
80
+ middleware: O.value,
81
+ placement: p.value,
82
+ strategy: w.value
83
+ }).then((a) => {
84
+ y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
85
+ });
86
+ }
87
+ function R() {
88
+ typeof d == "function" && (d(), d = void 0);
89
+ }
90
+ function N() {
91
+ if (R(), D === void 0) {
92
+ v();
93
+ return;
94
+ }
95
+ if (f.value != null && u.value != null) {
96
+ d = D(f.value, u.value, v);
97
+ return;
98
+ }
99
+ }
100
+ function $() {
101
+ s.value || (g.value = !1);
102
+ }
103
+ return x([O, p, w, s], v, {
104
+ flush: "sync"
105
+ }), x([f, u], N, {
106
+ flush: "sync"
107
+ }), x(s, $, {
108
+ flush: "sync"
109
+ }), U() && k(R), {
110
+ x: o(y),
111
+ y: o(h),
112
+ strategy: o(m),
113
+ placement: o(P),
114
+ middlewareData: o(E),
115
+ isPositioned: o(g),
116
+ floatingStyles: _,
117
+ update: v
118
+ };
119
+ }
120
+ export {
121
+ K as arrow,
122
+ W as autoUpdate,
123
+ A as computePosition,
124
+ X as flip,
125
+ te as getOverflowAncestors,
126
+ Y as offset,
127
+ Z as platform,
128
+ ee as shift,
129
+ L as useFloating
130
+ };