@quoreadmin/ui 1.6.6 → 1.6.8

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 (233) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index102.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index113.js +2 -2
  5. package/dist/index117.js +3 -3
  6. package/dist/index129.js +1 -1
  7. package/dist/index131.js +116 -59
  8. package/dist/index140.js +896 -0
  9. package/dist/{index143.js → index144.js} +2 -2
  10. package/dist/{index151.js → index152.js} +1 -1
  11. package/dist/{index157.js → index158.js} +2 -2
  12. package/dist/index161.js +111 -492
  13. package/dist/index162.js +471 -5498
  14. package/dist/index163.js +5511 -80
  15. package/dist/index164.js +86 -856
  16. package/dist/index165.js +844 -21
  17. package/dist/index166.js +23 -265
  18. package/dist/index167.js +256 -126
  19. package/dist/index168.js +146 -1195
  20. package/dist/index169.js +1139 -712
  21. package/dist/index170.js +704 -1240
  22. package/dist/index171.js +1280 -248
  23. package/dist/index172.js +266 -96
  24. package/dist/index173.js +106 -2
  25. package/dist/index174.js +2 -1376
  26. package/dist/index175.js +1378 -0
  27. package/dist/index177.js +12 -12
  28. package/dist/index178.js +10 -10
  29. package/dist/index179.js +12 -12
  30. package/dist/index180.js +14 -21
  31. package/dist/index181.js +23 -757
  32. package/dist/index182.js +759 -1100
  33. package/dist/index183.js +1117 -1234
  34. package/dist/index184.js +1205 -11248
  35. package/dist/index185.js +11277 -36
  36. package/dist/index186.js +36 -115
  37. package/dist/index190.js +29 -29
  38. package/dist/index191.js +2 -2
  39. package/dist/index192.js +2 -2
  40. package/dist/index193.js +1 -1
  41. package/dist/index195.js +2 -2
  42. package/dist/index197.js +14 -14
  43. package/dist/index198.js +1 -1
  44. package/dist/index199.js +1 -1
  45. package/dist/index20.js +4 -4
  46. package/dist/index200.js +3 -3
  47. package/dist/index201.js +3 -3
  48. package/dist/index202.js +84 -29
  49. package/dist/index203.js +400 -109
  50. package/dist/index204.js +22 -36
  51. package/dist/index205.js +33 -26
  52. package/dist/index206.js +111 -31
  53. package/dist/index207.js +36 -9
  54. package/dist/index208.js +26 -19
  55. package/dist/index209.js +36 -10
  56. package/dist/index210.js +9 -10
  57. package/dist/index211.js +18 -50
  58. package/dist/index212.js +10 -43
  59. package/dist/index213.js +10 -4
  60. package/dist/index214.js +48 -36
  61. package/dist/index215.js +43 -21
  62. package/dist/index216.js +3 -87
  63. package/dist/index217.js +35 -403
  64. package/dist/index218.js +21 -22
  65. package/dist/index219.js +122 -156
  66. package/dist/index220.js +35 -225
  67. package/dist/index221.js +80 -37
  68. package/dist/index222.js +20 -10
  69. package/dist/index223.js +19 -126
  70. package/dist/index224.js +16 -34
  71. package/dist/index225.js +20 -80
  72. package/dist/index226.js +9 -9
  73. package/dist/index227.js +160 -19
  74. package/dist/index228.js +11 -11
  75. package/dist/index229.js +15 -13
  76. package/dist/index230.js +198 -19
  77. package/dist/index231.js +49 -140
  78. package/dist/index232.js +34 -20
  79. package/dist/index233.js +39 -21
  80. package/dist/index234.js +21 -198
  81. package/dist/index235.js +21 -69
  82. package/dist/index236.js +20 -34
  83. package/dist/index237.js +823 -27
  84. package/dist/index238.js +701 -21
  85. package/dist/index239.js +176 -22
  86. package/dist/index240.js +15 -13
  87. package/dist/index241.js +20 -836
  88. package/dist/index242.js +19 -701
  89. package/dist/index243.js +3 -176
  90. package/dist/index244.js +186 -21
  91. package/dist/index245.js +132 -19
  92. package/dist/index246.js +1223 -20
  93. package/dist/index247.js +20 -3
  94. package/dist/index248.js +21 -186
  95. package/dist/index249.js +21 -132
  96. package/dist/index250.js +29 -1223
  97. package/dist/index251.js +12 -12
  98. package/dist/index252.js +13 -15
  99. package/dist/index253.js +2 -22
  100. package/dist/index254.js +2 -29
  101. package/dist/index255.js +3632 -20
  102. package/dist/index256.js +55 -20
  103. package/dist/index257.js +77 -2
  104. package/dist/index258.js +52 -2
  105. package/dist/index259.js +182 -3599
  106. package/dist/index260.js +8 -53
  107. package/dist/index261.js +40 -60
  108. package/dist/index262.js +44 -35
  109. package/dist/index263.js +32 -193
  110. package/dist/index264.js +74 -9
  111. package/dist/index265.js +704 -38
  112. package/dist/index266.js +22 -44
  113. package/dist/index267.js +46 -36
  114. package/dist/index268.js +10 -74
  115. package/dist/index269.js +680 -698
  116. package/dist/index270.js +818 -37
  117. package/dist/index271.js +160 -63
  118. package/dist/index272.js +227 -10
  119. package/dist/index273.js +36 -704
  120. package/dist/index274.js +9 -819
  121. package/dist/index275.js +1 -1
  122. package/dist/index278.js +1 -1
  123. package/dist/index279.js +2 -3
  124. package/dist/index280.js +77 -25
  125. package/dist/index281.js +3 -2
  126. package/dist/index282.js +25 -77
  127. package/dist/index284.js +1 -1
  128. package/dist/index285.js +1 -1
  129. package/dist/index286.js +1 -1
  130. package/dist/index289.js +1 -1
  131. package/dist/index290.js +1518 -79
  132. package/dist/index291.js +386 -22
  133. package/dist/index292.js +2698 -902
  134. package/dist/index293.js +85 -21
  135. package/dist/index294.js +3770 -20
  136. package/dist/index295.js +59 -19
  137. package/dist/index296.js +77 -67
  138. package/dist/index297.js +21 -18
  139. package/dist/index298.js +934 -18
  140. package/dist/index299.js +16 -16
  141. package/dist/index300.js +11 -13
  142. package/dist/index301.js +19 -62
  143. package/dist/index302.js +69 -1518
  144. package/dist/index303.js +19 -386
  145. package/dist/index304.js +19 -2731
  146. package/dist/index305.js +21 -85
  147. package/dist/index306.js +22 -3770
  148. package/dist/index307.js +63 -60
  149. package/dist/index309.js +2 -2
  150. package/dist/index310.js +4 -4
  151. package/dist/index311.js +2 -2
  152. package/dist/index329.js +36 -8
  153. package/dist/index330.js +8 -12
  154. package/dist/index331.js +12 -54
  155. package/dist/index332.js +52 -9
  156. package/dist/index333.js +11 -13
  157. package/dist/index334.js +9 -53
  158. package/dist/index335.js +55 -49
  159. package/dist/index336.js +49 -28
  160. package/dist/index337.js +31 -2
  161. package/dist/index338.js +2 -5
  162. package/dist/index339.js +5 -2
  163. package/dist/index340.js +2 -23
  164. package/dist/index341.js +21 -39
  165. package/dist/index342.js +41 -2
  166. package/dist/index343.js +2 -11
  167. package/dist/index344.js +11 -20
  168. package/dist/index345.js +18 -15
  169. package/dist/index346.js +16 -9
  170. package/dist/index347.js +9 -9
  171. package/dist/index348.js +10 -2
  172. package/dist/index349.js +2 -9
  173. package/dist/index350.js +9 -10
  174. package/dist/index351.js +10 -14
  175. package/dist/index352.js +14 -37
  176. package/dist/index353.js +1 -1
  177. package/dist/index354.js +1 -1
  178. package/dist/index355.js +2 -2
  179. package/dist/index369.js +100 -16
  180. package/dist/index370.js +90 -100
  181. package/dist/index371.js +17 -91
  182. package/dist/index39.js +44 -14
  183. package/dist/index40.js +1 -1
  184. package/dist/index41.js +1 -1
  185. package/dist/index42.js +1 -1
  186. package/dist/index43.js +348 -318
  187. package/dist/index44.js +1 -1
  188. package/dist/index45.js +1 -1
  189. package/dist/index46.js +1 -1
  190. package/dist/index47.js +6 -6
  191. package/dist/index48.js +2 -2
  192. package/dist/index49.js +1 -1
  193. package/dist/index50.js +1 -1
  194. package/dist/index51.js +1 -1
  195. package/dist/index52.js +1 -1
  196. package/dist/index54.js +2 -2
  197. package/dist/index56.js +1 -1
  198. package/dist/index58.js +5 -5
  199. package/dist/index59.js +1 -1
  200. package/dist/index71.js +2 -2
  201. package/dist/index75.js +1 -1
  202. package/dist/index80.js +1 -1
  203. package/dist/index85.js +1 -1
  204. package/dist/index87.js +3 -3
  205. package/dist/index89.js +2 -2
  206. package/dist/index95.js +2 -2
  207. package/dist/src/components/comment/comment.d.ts +32 -0
  208. package/dist/src/components/comment/comment.stories.d.ts +32 -0
  209. package/dist/src/components/comment-section/comment-section.d.ts +32 -0
  210. package/dist/src/components/comment-section/comment-section.stories.d.ts +32 -0
  211. package/dist/src/components/data-filter/data-filter.d.ts +32 -0
  212. package/dist/src/components/data-list/data-list.d.ts +32 -0
  213. package/dist/src/components/grid/grid.stories.d.ts +64 -0
  214. package/dist/src/components/popover/popover.d.ts +36 -0
  215. package/dist/src/components/popover/popover.stories.d.ts +128 -0
  216. package/dist/src/components/room-details-popover/room-details-popover.d.ts +197 -5
  217. package/dist/src/components/textarea/textarea.d.ts +1 -1
  218. package/dist/src/components/textarea/textarea.stories.d.ts +1 -1
  219. package/dist/src/views/lists.vue.d.ts +64 -0
  220. package/dist/src/views/tables.vue.d.ts +32 -0
  221. package/package.json +1 -1
  222. package/dist/index139.js +0 -855
  223. package/dist/index160.js +0 -116
  224. package/dist/index176.js +0 -20
  225. /package/dist/{index133.js → index134.js} +0 -0
  226. /package/dist/{index135.js → index136.js} +0 -0
  227. /package/dist/{index137.js → index138.js} +0 -0
  228. /package/dist/{index141.js → index142.js} +0 -0
  229. /package/dist/{index145.js → index146.js} +0 -0
  230. /package/dist/{index147.js → index148.js} +0 -0
  231. /package/dist/{index149.js → index150.js} +0 -0
  232. /package/dist/{index153.js → index154.js} +0 -0
  233. /package/dist/{index155.js → index156.js} +0 -0
package/dist/index307.js CHANGED
@@ -1,62 +1,65 @@
1
- import { keyName as u, base as c } from "./index371.js";
2
- import { Plugin as d } from "./index274.js";
3
- const p = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), y = typeof navigator < "u" && /Win/.test(navigator.platform);
4
- function m(e) {
5
- let r = e.split(/-(?!$)/), t = r[r.length - 1];
6
- t == "Space" && (t = " ");
7
- let i, f, o, a;
8
- for (let l = 0; l < r.length - 1; l++) {
9
- let s = r[l];
10
- if (/^(cmd|meta|m)$/i.test(s))
11
- a = !0;
12
- else if (/^a(lt)?$/i.test(s))
13
- i = !0;
14
- else if (/^(c|ctrl|control)$/i.test(s))
15
- f = !0;
16
- else if (/^s(hift)?$/i.test(s))
17
- o = !0;
18
- else if (/^mod$/i.test(s))
19
- p ? a = !0 : f = !0;
20
- else
21
- throw new Error("Unrecognized modifier name: " + s);
22
- }
23
- return i && (t = "Alt-" + t), f && (t = "Ctrl-" + t), a && (t = "Meta-" + t), o && (t = "Shift-" + t), t;
24
- }
25
- function h(e) {
26
- let r = /* @__PURE__ */ Object.create(null);
27
- for (let t in e)
28
- r[m(t)] = e[t];
29
- return r;
30
- }
31
- function n(e, r, t = !0) {
32
- return r.altKey && (e = "Alt-" + e), r.ctrlKey && (e = "Ctrl-" + e), r.metaKey && (e = "Meta-" + e), t && r.shiftKey && (e = "Shift-" + e), e;
33
- }
34
- function k(e) {
35
- return new d({ props: { handleKeyDown: K(e) } });
36
- }
37
- function K(e) {
38
- let r = h(e);
39
- return function(t, i) {
40
- let f = u(i), o, a = r[n(f, i)];
41
- if (a && a(t.state, t.dispatch, t))
42
- return !0;
43
- if (f.length == 1 && f != " ") {
44
- if (i.shiftKey) {
45
- let l = r[n(f, i, !1)];
46
- if (l && l(t.state, t.dispatch, t))
47
- return !0;
48
- }
49
- if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
50
- !(y && i.ctrlKey && i.altKey) && (o = c[i.keyCode]) && o != f) {
51
- let l = r[n(o, i)];
52
- if (l && l(t.state, t.dispatch, t))
53
- return !0;
54
- }
55
- }
56
- return !1;
57
- };
58
- }
1
+ import a from "./index277.js";
2
+ var l = {
3
+ root: function(e) {
4
+ var p = e.instance, n = e.props, o = e.state;
5
+ return ["p-dropdown p-component p-inputwrapper", {
6
+ "p-disabled": n.disabled,
7
+ "p-invalid": n.invalid,
8
+ "p-variant-filled": n.variant ? n.variant === "filled" : p.$primevue.config.inputStyle === "filled",
9
+ "p-dropdown-clearable": n.showClear,
10
+ "p-focus": o.focused,
11
+ "p-inputwrapper-filled": p.hasSelectedOption,
12
+ "p-inputwrapper-focus": o.focused || o.overlayVisible,
13
+ "p-overlay-open": o.overlayVisible
14
+ }];
15
+ },
16
+ input: function(e) {
17
+ var p, n = e.instance, o = e.props;
18
+ return ["p-dropdown-label p-inputtext", {
19
+ "p-placeholder": !o.editable && n.label === o.placeholder,
20
+ "p-dropdown-label-empty": !o.editable && !n.$slots.value && (n.label === "p-emptylabel" || ((p = n.label) === null || p === void 0 ? void 0 : p.length) === 0)
21
+ }];
22
+ },
23
+ clearIcon: "p-dropdown-clear-icon",
24
+ trigger: "p-dropdown-trigger",
25
+ loadingicon: "p-dropdown-trigger-icon",
26
+ dropdownIcon: "p-dropdown-trigger-icon",
27
+ panel: function(e) {
28
+ e.props;
29
+ var p = e.instance;
30
+ return ["p-dropdown-panel p-component", {
31
+ "p-ripple-disabled": p.$primevue.config.ripple === !1
32
+ }];
33
+ },
34
+ header: "p-dropdown-header",
35
+ filterContainer: "p-dropdown-filter-container",
36
+ filterInput: function(e) {
37
+ var p = e.props, n = e.instance;
38
+ return ["p-dropdown-filter p-inputtext p-component", {
39
+ "p-variant-filled": p.variant ? p.variant === "filled" : n.$primevue.config.inputStyle === "filled"
40
+ }];
41
+ },
42
+ filterIcon: "p-dropdown-filter-icon",
43
+ wrapper: "p-dropdown-items-wrapper",
44
+ list: "p-dropdown-items",
45
+ itemGroup: "p-dropdown-item-group",
46
+ itemGroupLabel: "p-dropdown-item-group-label",
47
+ item: function(e) {
48
+ var p = e.instance, n = e.props, o = e.state, t = e.option, r = e.focusedOption;
49
+ return ["p-dropdown-item", {
50
+ "p-highlight": p.isSelected(t) && n.highlightOnSelect,
51
+ "p-focus": o.focusedOptionIndex === r,
52
+ "p-disabled": p.isOptionDisabled(t)
53
+ }];
54
+ },
55
+ itemLabel: "p-dropdown-item-label",
56
+ checkIcon: "p-dropdown-check-icon",
57
+ blankIcon: "p-dropdown-blank-icon",
58
+ emptyMessage: "p-dropdown-empty-message"
59
+ }, s = a.extend({
60
+ name: "dropdown",
61
+ classes: l
62
+ });
59
63
  export {
60
- K as keydownHandler,
61
- k as keymap
64
+ s as default
62
65
  };
package/dist/index309.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Plugin as w } from "./index274.js";
2
- import { dropPoint as v } from "./index302.js";
1
+ import { Plugin as w } from "./index270.js";
2
+ import { dropPoint as v } from "./index290.js";
3
3
  function y(m = {}) {
4
4
  return new w({
5
5
  view(e) {
package/dist/index310.js CHANGED
@@ -1,7 +1,7 @@
1
- import { keydownHandler as v } from "./index307.js";
2
- import { Plugin as w, TextSelection as m, NodeSelection as x, Selection as u } from "./index274.js";
3
- import { Fragment as h, Slice as g } from "./index304.js";
4
- import { DecorationSet as S, Decoration as A } from "./index306.js";
1
+ import { keydownHandler as v } from "./index295.js";
2
+ import { Plugin as w, TextSelection as m, NodeSelection as x, Selection as u } from "./index270.js";
3
+ import { Fragment as h, Slice as g } from "./index292.js";
4
+ import { DecorationSet as S, Decoration as A } from "./index294.js";
5
5
  class i extends u {
6
6
  /**
7
7
  Create a gap cursor.
package/dist/index311.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import P from "./index372.js";
2
- import { Mapping as k } from "./index302.js";
3
- import { Plugin as H, PluginKey as O } from "./index274.js";
2
+ import { Mapping as k } from "./index290.js";
3
+ import { Plugin as H, PluginKey as O } from "./index270.js";
4
4
  const D = 500;
5
5
  class c {
6
6
  constructor(t, e) {
package/dist/index329.js CHANGED
@@ -1,11 +1,39 @@
1
- function f(e, n) {
2
- var o = {};
3
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
4
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
5
- for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
6
- n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
7
- return o;
1
+ import n from "./index277.js";
2
+ var e = `
3
+ .p-icon {
4
+ display: inline-block;
8
5
  }
6
+
7
+ .p-icon-spin {
8
+ -webkit-animation: p-icon-spin 2s infinite linear;
9
+ animation: p-icon-spin 2s infinite linear;
10
+ }
11
+
12
+ @-webkit-keyframes p-icon-spin {
13
+ 0% {
14
+ -webkit-transform: rotate(0deg);
15
+ transform: rotate(0deg);
16
+ }
17
+ 100% {
18
+ -webkit-transform: rotate(359deg);
19
+ transform: rotate(359deg);
20
+ }
21
+ }
22
+
23
+ @keyframes p-icon-spin {
24
+ 0% {
25
+ -webkit-transform: rotate(0deg);
26
+ transform: rotate(0deg);
27
+ }
28
+ 100% {
29
+ -webkit-transform: rotate(359deg);
30
+ transform: rotate(359deg);
31
+ }
32
+ }
33
+ `, i = n.extend({
34
+ name: "baseicon",
35
+ css: e
36
+ });
9
37
  export {
10
- f as __rest
38
+ i as default
11
39
  };
package/dist/index330.js CHANGED
@@ -1,15 +1,11 @@
1
- import { spring as a } from "./index334.js";
2
- import { keyframes as s } from "./index336.js";
3
- import { decay as i } from "./index333.js";
4
- const r = { keyframes: s, spring: a, decay: i };
5
- function p(t) {
6
- if (Array.isArray(t.to))
7
- return s;
8
- if (r[t.type])
9
- return r[t.type];
10
- const e = new Set(Object.keys(t));
11
- return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? s : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? a : s;
1
+ function f(e, n) {
2
+ var o = {};
3
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
4
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
5
+ for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
6
+ n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
7
+ return o;
12
8
  }
13
9
  export {
14
- p as detectAnimationFromOptions
10
+ f as __rest
15
11
  };
package/dist/index331.js CHANGED
@@ -1,57 +1,15 @@
1
- import { progress as c } from "./index338.js";
2
- import { mix as a } from "./index339.js";
3
- import { mixColor as x } from "./index340.js";
4
- import { mixComplex as g, mixArray as h, mixObject as y } from "./index341.js";
5
- import { clamp as p } from "./index337.js";
6
- import { pipe as b } from "./index342.js";
7
- import { invariant as l } from "./index343.js";
8
- import { color as d } from "./index210.js";
9
- const A = (r, e) => (i) => a(r, e, i);
10
- function u(r) {
11
- if (typeof r == "number")
12
- return A;
13
- if (typeof r == "string")
14
- return d.test(r) ? x : g;
15
- if (Array.isArray(r))
16
- return h;
17
- if (typeof r == "object")
18
- return y;
19
- }
20
- function I(r, e, i) {
21
- const t = [], f = i || u(r[0]), n = r.length - 1;
22
- for (let o = 0; o < n; o++) {
23
- let m = f(r[o], r[o + 1]);
24
- if (e) {
25
- const s = Array.isArray(e) ? e[o] : e;
26
- m = b(s, m);
27
- }
28
- t.push(m);
29
- }
30
- return t;
31
- }
32
- function M([r, e], [i]) {
33
- return (t) => i(c(r, e, t));
34
- }
35
- function F(r, e) {
36
- const i = r.length, t = i - 1;
37
- return (f) => {
38
- let n = 0, o = !1;
39
- if (f <= r[0] ? o = !0 : f >= r[t] && (n = t - 1, o = !0), !o) {
40
- let s = 1;
41
- for (; s < i && !(r[s] > f || s === t); s++)
42
- ;
43
- n = s - 1;
44
- }
45
- const m = c(r[n], r[n + 1], f);
46
- return e[n](m);
47
- };
48
- }
49
- function R(r, e, { clamp: i = !0, ease: t, mixer: f } = {}) {
50
- const n = r.length;
51
- l(n === e.length, "Both input and output ranges must be the same length"), l(!t || !Array.isArray(t) || t.length === n - 1, "Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."), r[0] > r[n - 1] && (r = [].concat(r), e = [].concat(e), r.reverse(), e.reverse());
52
- const o = I(e, t, f), m = n === 2 ? M(r, o) : F(r, o);
53
- return i ? (s) => m(p(r[0], r[n - 1], s)) : m;
1
+ import { spring as a } from "./index335.js";
2
+ import { keyframes as s } from "./index337.js";
3
+ import { decay as i } from "./index334.js";
4
+ const r = { keyframes: s, spring: a, decay: i };
5
+ function p(t) {
6
+ if (Array.isArray(t.to))
7
+ return s;
8
+ if (r[t.type])
9
+ return r[t.type];
10
+ const e = new Set(Object.keys(t));
11
+ return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? s : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? a : s;
54
12
  }
55
13
  export {
56
- R as interpolate
14
+ p as detectAnimationFromOptions
57
15
  };
package/dist/index332.js CHANGED
@@ -1,14 +1,57 @@
1
- function p(r, e, n = 0) {
2
- return r - e - n;
1
+ import { progress as c } from "./index339.js";
2
+ import { mix as a } from "./index340.js";
3
+ import { mixColor as x } from "./index341.js";
4
+ import { mixComplex as g, mixArray as h, mixObject as y } from "./index342.js";
5
+ import { clamp as p } from "./index338.js";
6
+ import { pipe as b } from "./index343.js";
7
+ import { invariant as l } from "./index344.js";
8
+ import { color as d } from "./index213.js";
9
+ const A = (r, e) => (i) => a(r, e, i);
10
+ function u(r) {
11
+ if (typeof r == "number")
12
+ return A;
13
+ if (typeof r == "string")
14
+ return d.test(r) ? x : g;
15
+ if (Array.isArray(r))
16
+ return h;
17
+ if (typeof r == "object")
18
+ return y;
3
19
  }
4
- function u(r, e, n = 0, t = !0) {
5
- return t ? p(e + -r, e, n) : e - (r - e) + n;
20
+ function I(r, e, i) {
21
+ const t = [], f = i || u(r[0]), n = r.length - 1;
22
+ for (let o = 0; o < n; o++) {
23
+ let m = f(r[o], r[o + 1]);
24
+ if (e) {
25
+ const s = Array.isArray(e) ? e[o] : e;
26
+ m = b(s, m);
27
+ }
28
+ t.push(m);
29
+ }
30
+ return t;
6
31
  }
7
- function c(r, e, n, t) {
8
- return t ? r >= e + n : r <= -n;
32
+ function M([r, e], [i]) {
33
+ return (t) => i(c(r, e, t));
34
+ }
35
+ function F(r, e) {
36
+ const i = r.length, t = i - 1;
37
+ return (f) => {
38
+ let n = 0, o = !1;
39
+ if (f <= r[0] ? o = !0 : f >= r[t] && (n = t - 1, o = !0), !o) {
40
+ let s = 1;
41
+ for (; s < i && !(r[s] > f || s === t); s++)
42
+ ;
43
+ n = s - 1;
44
+ }
45
+ const m = c(r[n], r[n + 1], f);
46
+ return e[n](m);
47
+ };
48
+ }
49
+ function R(r, e, { clamp: i = !0, ease: t, mixer: f } = {}) {
50
+ const n = r.length;
51
+ l(n === e.length, "Both input and output ranges must be the same length"), l(!t || !Array.isArray(t) || t.length === n - 1, "Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."), r[0] > r[n - 1] && (r = [].concat(r), e = [].concat(e), r.reverse(), e.reverse());
52
+ const o = I(e, t, f), m = n === 2 ? M(r, o) : F(r, o);
53
+ return i ? (s) => m(p(r[0], r[n - 1], s)) : m;
9
54
  }
10
55
  export {
11
- c as hasRepeatDelayElapsed,
12
- p as loopElapsed,
13
- u as reverseElapsed
56
+ R as interpolate
14
57
  };
package/dist/index333.js CHANGED
@@ -1,16 +1,14 @@
1
- function r({ velocity: o = 0, from: n = 0, power: i = 0.8, timeConstant: s = 350, restDelta: u = 0.5, modifyTarget: c }) {
2
- const e = { done: !1, value: n };
3
- let a = i * o;
4
- const d = n + a, t = c === void 0 ? d : c(d);
5
- return t !== d && (a = t - n), {
6
- next: (p) => {
7
- const l = -a * Math.exp(-p / s);
8
- return e.done = !(l > u || l < -u), e.value = e.done ? t : t + l, e;
9
- },
10
- flipTarget: () => {
11
- }
12
- };
1
+ function p(r, e, n = 0) {
2
+ return r - e - n;
3
+ }
4
+ function u(r, e, n = 0, t = !0) {
5
+ return t ? p(e + -r, e, n) : e - (r - e) + n;
6
+ }
7
+ function c(r, e, n, t) {
8
+ return t ? r >= e + n : r <= -n;
13
9
  }
14
10
  export {
15
- r as decay
11
+ c as hasRepeatDelayElapsed,
12
+ p as loopElapsed,
13
+ u as reverseElapsed
16
14
  };
package/dist/index334.js CHANGED
@@ -1,60 +1,16 @@
1
- import { __rest as O } from "./index329.js";
2
- import { findSpring as T, calcAngularFreq as j } from "./index335.js";
3
- const R = ["duration", "bounce"], V = ["stiffness", "damping", "mass"];
4
- function y(i, n) {
5
- return n.some((o) => i[o] !== void 0);
6
- }
7
- function A(i) {
8
- let n = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, i);
9
- if (!y(i, V) && y(i, R)) {
10
- const o = T(i);
11
- n = Object.assign(Object.assign(Object.assign({}, n), o), { velocity: 0, mass: 1 }), n.isResolvedFromDuration = !0;
12
- }
13
- return n;
14
- }
15
- function w(i) {
16
- var { from: n = 0, to: o = 1, restSpeed: q = 2, restDelta: f } = i, F = O(i, ["from", "to", "restSpeed", "restDelta"]);
17
- const p = { done: !1, value: n };
18
- let { stiffness: h, damping: D, mass: g, velocity: d, duration: S, isResolvedFromDuration: x } = A(F), u = b, m = b;
19
- function M() {
20
- const c = d ? -(d / 1e3) : 0, r = o - n, t = D / (2 * Math.sqrt(h * g)), s = Math.sqrt(h / g) / 1e3;
21
- if (f === void 0 && (f = Math.min(Math.abs(o - n) / 100, 0.4)), t < 1) {
22
- const e = j(s, t);
23
- u = (a) => {
24
- const l = Math.exp(-t * s * a);
25
- return o - l * ((c + t * s * r) / e * Math.sin(e * a) + r * Math.cos(e * a));
26
- }, m = (a) => {
27
- const l = Math.exp(-t * s * a);
28
- return t * s * l * (Math.sin(e * a) * (c + t * s * r) / e + r * Math.cos(e * a)) - l * (Math.cos(e * a) * (c + t * s * r) - e * r * Math.sin(e * a));
29
- };
30
- } else if (t === 1)
31
- u = (e) => o - Math.exp(-s * e) * (r + (c + s * r) * e);
32
- else {
33
- const e = s * Math.sqrt(t * t - 1);
34
- u = (a) => {
35
- const l = Math.exp(-t * s * a), v = Math.min(e * a, 300);
36
- return o - l * ((c + t * s * r) * Math.sinh(v) + e * r * Math.cosh(v)) / e;
37
- };
38
- }
39
- }
40
- return M(), {
41
- next: (c) => {
42
- const r = u(c);
43
- if (x)
44
- p.done = c >= S;
45
- else {
46
- const t = m(c) * 1e3, s = Math.abs(t) <= q, e = Math.abs(o - r) <= f;
47
- p.done = s && e;
48
- }
49
- return p.value = p.done ? o : r, p;
1
+ function r({ velocity: o = 0, from: n = 0, power: i = 0.8, timeConstant: s = 350, restDelta: u = 0.5, modifyTarget: c }) {
2
+ const e = { done: !1, value: n };
3
+ let a = i * o;
4
+ const d = n + a, t = c === void 0 ? d : c(d);
5
+ return t !== d && (a = t - n), {
6
+ next: (p) => {
7
+ const l = -a * Math.exp(-p / s);
8
+ return e.done = !(l > u || l < -u), e.value = e.done ? t : t + l, e;
50
9
  },
51
10
  flipTarget: () => {
52
- d = -d, [n, o] = [o, n], M();
53
11
  }
54
12
  };
55
13
  }
56
- w.needsInterpolation = (i, n) => typeof i == "string" || typeof n == "string";
57
- const b = (i) => 0;
58
14
  export {
59
- w as spring
15
+ r as decay
60
16
  };
package/dist/index335.js CHANGED
@@ -1,54 +1,60 @@
1
- import { warning as N } from "./index343.js";
2
- import { clamp as g } from "./index337.js";
3
- const M = 1e-3, S = 0.01, m = 10, A = 0.05, G = 1;
4
- function B({ duration: t = 800, bounce: p = 0.25, velocity: c = 0, mass: e = 1 }) {
5
- let a, f;
6
- N(t <= m * 1e3, "Spring duration must be 10 seconds or less");
7
- let s = 1 - p;
8
- s = g(A, G, s), t = g(S, m, t / 1e3), s < 1 ? (a = (n) => {
9
- const r = n * s, o = r * t, i = r - c, l = D(n, s), x = Math.exp(-o);
10
- return M - i / l * x;
11
- }, f = (n) => {
12
- const o = n * s * t, i = o * c + c, l = Math.pow(s, 2) * Math.pow(n, 2) * t, x = Math.exp(-o), b = D(Math.pow(n, 2), s);
13
- return (-a(n) + M > 0 ? -1 : 1) * ((i - l) * x) / b;
14
- }) : (a = (n) => {
15
- const r = Math.exp(-n * t), o = (n - c) * t + 1;
16
- return -M + r * o;
17
- }, f = (n) => {
18
- const r = Math.exp(-n * t), o = (c - n) * (t * t);
19
- return r * o;
20
- });
21
- const w = 5 / t, h = R(a, f, w);
22
- if (t = t * 1e3, isNaN(h))
23
- return {
24
- stiffness: 100,
25
- damping: 10,
26
- duration: t
27
- };
28
- {
29
- const n = Math.pow(h, 2) * e;
30
- return {
31
- stiffness: n,
32
- damping: s * 2 * Math.sqrt(e * n),
33
- duration: t
34
- };
35
- }
1
+ import { __rest as O } from "./index330.js";
2
+ import { findSpring as T, calcAngularFreq as j } from "./index336.js";
3
+ const R = ["duration", "bounce"], V = ["stiffness", "damping", "mass"];
4
+ function y(i, n) {
5
+ return n.some((o) => i[o] !== void 0);
36
6
  }
37
- const I = 12;
38
- function R(t, p, c) {
39
- let e = c;
40
- for (let a = 1; a < I; a++)
41
- e = e - t(e) / p(e);
42
- return e;
7
+ function A(i) {
8
+ let n = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, i);
9
+ if (!y(i, V) && y(i, R)) {
10
+ const o = T(i);
11
+ n = Object.assign(Object.assign(Object.assign({}, n), o), { velocity: 0, mass: 1 }), n.isResolvedFromDuration = !0;
12
+ }
13
+ return n;
43
14
  }
44
- function D(t, p) {
45
- return t * Math.sqrt(1 - p * p);
15
+ function w(i) {
16
+ var { from: n = 0, to: o = 1, restSpeed: q = 2, restDelta: f } = i, F = O(i, ["from", "to", "restSpeed", "restDelta"]);
17
+ const p = { done: !1, value: n };
18
+ let { stiffness: h, damping: D, mass: g, velocity: d, duration: S, isResolvedFromDuration: x } = A(F), u = b, m = b;
19
+ function M() {
20
+ const c = d ? -(d / 1e3) : 0, r = o - n, t = D / (2 * Math.sqrt(h * g)), s = Math.sqrt(h / g) / 1e3;
21
+ if (f === void 0 && (f = Math.min(Math.abs(o - n) / 100, 0.4)), t < 1) {
22
+ const e = j(s, t);
23
+ u = (a) => {
24
+ const l = Math.exp(-t * s * a);
25
+ return o - l * ((c + t * s * r) / e * Math.sin(e * a) + r * Math.cos(e * a));
26
+ }, m = (a) => {
27
+ const l = Math.exp(-t * s * a);
28
+ return t * s * l * (Math.sin(e * a) * (c + t * s * r) / e + r * Math.cos(e * a)) - l * (Math.cos(e * a) * (c + t * s * r) - e * r * Math.sin(e * a));
29
+ };
30
+ } else if (t === 1)
31
+ u = (e) => o - Math.exp(-s * e) * (r + (c + s * r) * e);
32
+ else {
33
+ const e = s * Math.sqrt(t * t - 1);
34
+ u = (a) => {
35
+ const l = Math.exp(-t * s * a), v = Math.min(e * a, 300);
36
+ return o - l * ((c + t * s * r) * Math.sinh(v) + e * r * Math.cosh(v)) / e;
37
+ };
38
+ }
39
+ }
40
+ return M(), {
41
+ next: (c) => {
42
+ const r = u(c);
43
+ if (x)
44
+ p.done = c >= S;
45
+ else {
46
+ const t = m(c) * 1e3, s = Math.abs(t) <= q, e = Math.abs(o - r) <= f;
47
+ p.done = s && e;
48
+ }
49
+ return p.value = p.done ? o : r, p;
50
+ },
51
+ flipTarget: () => {
52
+ d = -d, [n, o] = [o, n], M();
53
+ }
54
+ };
46
55
  }
56
+ w.needsInterpolation = (i, n) => typeof i == "string" || typeof n == "string";
57
+ const b = (i) => 0;
47
58
  export {
48
- D as calcAngularFreq,
49
- B as findSpring,
50
- G as maxDamping,
51
- m as maxDuration,
52
- A as minDamping,
53
- S as minDuration
59
+ w as spring
54
60
  };