@algorisys/zen-ui-solid 13.8.0 → 13.8.1

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 (198) hide show
  1. package/dist/components/form/checkbox/checkbox.d.ts.map +1 -1
  2. package/dist/components/form/radio/radio-group.d.ts.map +1 -1
  3. package/dist/components/form/slider/slider.d.ts.map +1 -1
  4. package/dist/components/form/switch/switch.d.ts.map +1 -1
  5. package/dist/index208.js +13 -13
  6. package/dist/index209.js +2 -2
  7. package/dist/index210.js +5 -5
  8. package/dist/index211.js +12 -12
  9. package/dist/index212.js +13 -13
  10. package/dist/index213.js +10 -10
  11. package/dist/index214.js +10 -10
  12. package/dist/index215.js +9 -9
  13. package/dist/index216.js +9 -9
  14. package/dist/index218.js +14 -14
  15. package/dist/index219.js +14 -14
  16. package/dist/index220.js +13 -13
  17. package/dist/index221.js +1 -1
  18. package/dist/index222.js +5 -5
  19. package/dist/index223.js +9 -9
  20. package/dist/index224.js +24 -24
  21. package/dist/index225.js +5 -5
  22. package/dist/index226.js +3 -3
  23. package/dist/index249.js +10 -10
  24. package/dist/index250.js +3 -3
  25. package/dist/index252.js +2 -2
  26. package/dist/index257.js +1 -1
  27. package/dist/index258.js +1 -1
  28. package/dist/index271.js +5 -5
  29. package/dist/index271.js.map +1 -1
  30. package/dist/index272.js +5 -3
  31. package/dist/index272.js.map +1 -1
  32. package/dist/index273.js +3 -17
  33. package/dist/index273.js.map +1 -1
  34. package/dist/index274.js +17 -16
  35. package/dist/index274.js.map +1 -1
  36. package/dist/index275.js +16 -3
  37. package/dist/index275.js.map +1 -1
  38. package/dist/index276.js +3 -3
  39. package/dist/index276.js.map +1 -1
  40. package/dist/index277.js +3 -26
  41. package/dist/index277.js.map +1 -1
  42. package/dist/index278.js +26 -11
  43. package/dist/index278.js.map +1 -1
  44. package/dist/index279.js +10 -7
  45. package/dist/index279.js.map +1 -1
  46. package/dist/index280.js +8 -49
  47. package/dist/index280.js.map +1 -1
  48. package/dist/index281.js +49 -13
  49. package/dist/index281.js.map +1 -1
  50. package/dist/index282.js +12 -6
  51. package/dist/index282.js.map +1 -1
  52. package/dist/index283.js +7 -4
  53. package/dist/index283.js.map +1 -1
  54. package/dist/index284.js +4 -5
  55. package/dist/index284.js.map +1 -1
  56. package/dist/index286.js +6 -260
  57. package/dist/index286.js.map +1 -1
  58. package/dist/index287.js +105 -64
  59. package/dist/index287.js.map +1 -1
  60. package/dist/index288.js +67 -19
  61. package/dist/index288.js.map +1 -1
  62. package/dist/index289.js +72 -3
  63. package/dist/index289.js.map +1 -1
  64. package/dist/index290.js +22 -15
  65. package/dist/index290.js.map +1 -1
  66. package/dist/index291.js +58 -7
  67. package/dist/index291.js.map +1 -1
  68. package/dist/index292.js +3 -384
  69. package/dist/index292.js.map +1 -1
  70. package/dist/index293.js +16 -35
  71. package/dist/index293.js.map +1 -1
  72. package/dist/index294.js +384 -6
  73. package/dist/index294.js.map +1 -1
  74. package/dist/index295.js +92 -19
  75. package/dist/index295.js.map +1 -1
  76. package/dist/index296.js +34 -391
  77. package/dist/index296.js.map +1 -1
  78. package/dist/index297.js +6 -118
  79. package/dist/index297.js.map +1 -1
  80. package/dist/index298.js +17 -48
  81. package/dist/index298.js.map +1 -1
  82. package/dist/index299.js +62 -16
  83. package/dist/index299.js.map +1 -1
  84. package/dist/index300.js +48 -58
  85. package/dist/index300.js.map +1 -1
  86. package/dist/index301.js +31 -62
  87. package/dist/index301.js.map +1 -1
  88. package/dist/index302.js +16 -20
  89. package/dist/index302.js.map +1 -1
  90. package/dist/index303.js +58 -56
  91. package/dist/index303.js.map +1 -1
  92. package/dist/index304.js +20 -10
  93. package/dist/index304.js.map +1 -1
  94. package/dist/index305.js +10 -117
  95. package/dist/index305.js.map +1 -1
  96. package/dist/index306.js +920 -20
  97. package/dist/index306.js.map +1 -1
  98. package/dist/index307.js +37 -19
  99. package/dist/index307.js.map +1 -1
  100. package/dist/index308.js +256 -18
  101. package/dist/index308.js.map +1 -1
  102. package/dist/index309.js +114 -71
  103. package/dist/index309.js.map +1 -1
  104. package/dist/index310.js +556 -891
  105. package/dist/index310.js.map +1 -1
  106. package/dist/index311.js +121 -36
  107. package/dist/index311.js.map +1 -1
  108. package/dist/index312.js +17 -114
  109. package/dist/index312.js.map +1 -1
  110. package/dist/index313.js +363 -560
  111. package/dist/index313.js.map +1 -1
  112. package/dist/index314.js +85 -118
  113. package/dist/index314.js.map +1 -1
  114. package/dist/index315.js +16 -112
  115. package/dist/index315.js.map +1 -1
  116. package/dist/index316.js +115 -67
  117. package/dist/index316.js.map +1 -1
  118. package/dist/index317.js +21 -16
  119. package/dist/index317.js.map +1 -1
  120. package/dist/index318.js +19 -91
  121. package/dist/index318.js.map +1 -1
  122. package/dist/index319.js +20 -87
  123. package/dist/index319.js.map +1 -1
  124. package/dist/index320.js +71 -16
  125. package/dist/index320.js.map +1 -1
  126. package/dist/index321.js +118 -32
  127. package/dist/index321.js.map +1 -1
  128. package/dist/index323.js +1 -1
  129. package/dist/index324.js +93 -63
  130. package/dist/index324.js.map +1 -1
  131. package/dist/index325.js +5 -116
  132. package/dist/index325.js.map +1 -1
  133. package/dist/index326.js +38 -7
  134. package/dist/index326.js.map +1 -1
  135. package/dist/index327.js +44 -7
  136. package/dist/index327.js.map +1 -1
  137. package/dist/index328.js +2 -13
  138. package/dist/index328.js.map +1 -1
  139. package/dist/index329.js +65 -7
  140. package/dist/index329.js.map +1 -1
  141. package/dist/index330.js +115 -3
  142. package/dist/index330.js.map +1 -1
  143. package/dist/index331.js +608 -3
  144. package/dist/index331.js.map +1 -1
  145. package/dist/index332.js +295 -4
  146. package/dist/index332.js.map +1 -1
  147. package/dist/index333.js +88 -5
  148. package/dist/index333.js.map +1 -1
  149. package/dist/index334.js +11 -95
  150. package/dist/index334.js.map +1 -1
  151. package/dist/index335.js +20 -5
  152. package/dist/index335.js.map +1 -1
  153. package/dist/index336.js +62 -38
  154. package/dist/index336.js.map +1 -1
  155. package/dist/index337.js +33 -43
  156. package/dist/index337.js.map +1 -1
  157. package/dist/index338.js +7 -2
  158. package/dist/index338.js.map +1 -1
  159. package/dist/index339.js +6 -608
  160. package/dist/index339.js.map +1 -1
  161. package/dist/index340.js +11 -294
  162. package/dist/index340.js.map +1 -1
  163. package/dist/index341.js +6 -88
  164. package/dist/index341.js.map +1 -1
  165. package/dist/index342.js +3 -10
  166. package/dist/index342.js.map +1 -1
  167. package/dist/index343.js +3 -19
  168. package/dist/index343.js.map +1 -1
  169. package/dist/index344.js +4 -61
  170. package/dist/index344.js.map +1 -1
  171. package/dist/index345.js +5 -33
  172. package/dist/index345.js.map +1 -1
  173. package/dist/index346.js +3 -466
  174. package/dist/index346.js.map +1 -1
  175. package/dist/index347.js +9 -125
  176. package/dist/index347.js.map +1 -1
  177. package/dist/index348.js +33 -134
  178. package/dist/index348.js.map +1 -1
  179. package/dist/index349.js +21 -3
  180. package/dist/index349.js.map +1 -1
  181. package/dist/index350.js +5 -5
  182. package/dist/index351.js +2 -2
  183. package/dist/index357.js +464 -8
  184. package/dist/index357.js.map +1 -1
  185. package/dist/index358.js +126 -33
  186. package/dist/index358.js.map +1 -1
  187. package/dist/index359.js +133 -20
  188. package/dist/index359.js.map +1 -1
  189. package/dist/index53.js +21 -15
  190. package/dist/index53.js.map +1 -1
  191. package/dist/index54.js +15 -9
  192. package/dist/index54.js.map +1 -1
  193. package/dist/index55.js +20 -14
  194. package/dist/index55.js.map +1 -1
  195. package/dist/index62.js +42 -22
  196. package/dist/index62.js.map +1 -1
  197. package/dist/server/index.js +50 -12
  198. package/package.json +1 -1
package/dist/index334.js CHANGED
@@ -1,98 +1,14 @@
1
- import { createStore as p, produce as d } from "solid-js/store";
2
- import { ActionType as a } from "./index335.js";
3
- const [T, r] = p({
4
- toasts: [],
5
- pausedAt: void 0
6
- }), D = () => {
7
- const { pausedAt: e, toasts: o } = T;
8
- if (e)
9
- return;
10
- const i = Date.now();
11
- return o.map((t) => {
12
- if (t.duration === 1 / 0)
13
- return;
14
- const s = (t.duration || 0) + t.pauseDuration - (i - t.createdAt);
15
- if (s <= 0) {
16
- t.visible && n({
17
- type: a.DISMISS_TOAST,
18
- toastId: t.id
19
- });
20
- return;
21
- }
22
- return setTimeout(() => {
23
- n({
24
- type: a.DISMISS_TOAST,
25
- toastId: t.id
26
- });
27
- }, s);
28
- });
29
- }, u = /* @__PURE__ */ new Map(), f = (e, o) => {
30
- if (u.has(e))
31
- return;
32
- const i = setTimeout(() => {
33
- u.delete(e), n({
34
- type: a.REMOVE_TOAST,
35
- toastId: e
36
- });
37
- }, o);
38
- u.set(e, i);
39
- }, A = (e) => {
40
- const o = u.get(e);
41
- u.delete(e), o && clearTimeout(o);
42
- }, n = (e) => {
43
- switch (e.type) {
44
- case a.ADD_TOAST:
45
- r("toasts", (t) => {
46
- const s = t;
47
- return [e.toast, ...s];
48
- });
49
- break;
50
- case a.DISMISS_TOAST:
51
- const { toastId: o } = e, i = T.toasts;
52
- if (o) {
53
- const t = i.find((s) => s.id === o);
54
- t && f(o, t.unmountDelay), r("toasts", (s) => s.id === o, d((s) => s.visible = !1));
55
- } else
56
- i.forEach((t) => {
57
- f(t.id, t.unmountDelay);
58
- }), r("toasts", (t) => t.id !== void 0, d((t) => t.visible = !1));
59
- break;
60
- case a.REMOVE_TOAST:
61
- if (!e.toastId) {
62
- r("toasts", []);
63
- break;
64
- }
65
- r("toasts", (t) => t.filter((S) => S.id !== e.toastId));
66
- break;
67
- case a.UPDATE_TOAST:
68
- e.toast.id && A(e.toast.id), r("toasts", (t) => t.id === e.toast.id, (t) => ({
69
- ...t,
70
- ...e.toast
71
- }));
72
- break;
73
- case a.UPSERT_TOAST:
74
- T.toasts.find((t) => t.id === e.toast.id) ? n({ type: a.UPDATE_TOAST, toast: e.toast }) : n({ type: a.ADD_TOAST, toast: e.toast });
75
- break;
76
- case a.START_PAUSE:
77
- r(d((t) => {
78
- t.pausedAt = Date.now(), t.toasts.forEach((s) => {
79
- s.paused = !0;
80
- });
81
- }));
82
- break;
83
- case a.END_PAUSE:
84
- const c = e.time - (T.pausedAt || 0);
85
- r(d((t) => {
86
- t.pausedAt = void 0, t.toasts.forEach((s) => {
87
- s.pauseDuration += c, s.paused = !1;
88
- });
89
- }));
90
- break;
91
- }
92
- };
1
+ var n = /* @__PURE__ */ new WeakMap();
2
+ function u(e) {
3
+ let t = n.get(e);
4
+ if (t != null)
5
+ return t;
6
+ t = 0;
7
+ for (const r of e)
8
+ r.type === "item" && t++;
9
+ return n.set(e, t), t;
10
+ }
93
11
  export {
94
- D as createTimers,
95
- n as dispatch,
96
- T as store
12
+ u as getItemCount
97
13
  };
98
14
  //# sourceMappingURL=index334.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index334.js","sources":["../../../node_modules/.bun/solid-toast@0.5.0+ee58d66d663bac7b/node_modules/solid-toast/dist/source/core/store.js"],"sourcesContent":["import { ActionType } from '../types';\nimport { createStore, produce as p } from 'solid-js/store';\nconst [store, setStore] = createStore({\n toasts: [],\n pausedAt: undefined,\n});\nexport const createTimers = () => {\n const { pausedAt, toasts } = store;\n if (pausedAt)\n return;\n const now = Date.now();\n const timers = toasts.map((toast) => {\n if (toast.duration === Infinity)\n return;\n const durationLeft = (toast.duration || 0) + toast.pauseDuration - (now - toast.createdAt);\n if (durationLeft <= 0) {\n if (toast.visible) {\n dispatch({\n type: ActionType.DISMISS_TOAST,\n toastId: toast.id,\n });\n }\n return;\n }\n return setTimeout(() => {\n dispatch({\n type: ActionType.DISMISS_TOAST,\n toastId: toast.id,\n });\n }, durationLeft);\n });\n return timers;\n};\nconst removalQueue = new Map();\nconst scheduleRemoval = (toastId, unmountDelay) => {\n if (removalQueue.has(toastId))\n return;\n const timeout = setTimeout(() => {\n removalQueue.delete(toastId);\n dispatch({\n type: ActionType.REMOVE_TOAST,\n toastId,\n });\n }, unmountDelay);\n removalQueue.set(toastId, timeout);\n};\nconst unscheduleRemoval = (toastId) => {\n const timeout = removalQueue.get(toastId);\n removalQueue.delete(toastId);\n if (timeout)\n clearTimeout(timeout);\n};\nexport const dispatch = (action) => {\n switch (action.type) {\n case ActionType.ADD_TOAST:\n setStore('toasts', (t) => {\n const toasts = t;\n return [action.toast, ...toasts];\n });\n break;\n case ActionType.DISMISS_TOAST:\n const { toastId } = action;\n const toasts = store.toasts;\n if (toastId) {\n const toastToRemove = toasts.find((t) => t.id === toastId);\n if (toastToRemove)\n scheduleRemoval(toastId, toastToRemove.unmountDelay);\n setStore('toasts', (t) => t.id === toastId, p((t) => (t.visible = false)));\n }\n else {\n toasts.forEach((t) => {\n scheduleRemoval(t.id, t.unmountDelay);\n });\n setStore('toasts', (t) => t.id !== undefined, p((t) => (t.visible = false)));\n }\n break;\n case ActionType.REMOVE_TOAST:\n if (!action.toastId) {\n setStore('toasts', []);\n break;\n }\n setStore('toasts', (t) => {\n const toasts = t;\n return toasts.filter((t) => t.id !== action.toastId);\n });\n break;\n case ActionType.UPDATE_TOAST:\n if (action.toast.id) {\n unscheduleRemoval(action.toast.id);\n }\n setStore('toasts', (t) => t.id === action.toast.id, (t) => {\n const toast = t;\n return {\n ...toast,\n ...action.toast,\n };\n });\n break;\n case ActionType.UPSERT_TOAST:\n store.toasts.find((t) => t.id === action.toast.id)\n ? dispatch({ type: ActionType.UPDATE_TOAST, toast: action.toast })\n : dispatch({ type: ActionType.ADD_TOAST, toast: action.toast });\n break;\n case ActionType.START_PAUSE:\n setStore(p((s) => {\n s.pausedAt = Date.now();\n s.toasts.forEach((t) => {\n t.paused = true;\n });\n }));\n break;\n case ActionType.END_PAUSE:\n const pauseInterval = action.time - (store.pausedAt || 0);\n setStore(p((s) => {\n s.pausedAt = undefined;\n s.toasts.forEach((t) => {\n t.pauseDuration += pauseInterval;\n t.paused = false;\n });\n }));\n break;\n }\n};\nexport { store };\n"],"names":["store","setStore","createStore","createTimers","pausedAt","toasts","now","toast","durationLeft","dispatch","ActionType","removalQueue","scheduleRemoval","toastId","unmountDelay","timeout","unscheduleRemoval","action","toastToRemove","t","p","s","p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,OAAOO,EAAO,OAAO;AAClE;AAAA,IACJ,KAAKP,EAAW;AACZ,MAAAT,EAASmB,EAAE,CAACC,MAAM;AACd,QAAAA,EAAE,WAAW,KAAK,IAAG,GACrBA,EAAE,OAAO,QAAQ,CAACF,MAAM;AACpB,UAAAA,EAAE,SAAS;AAAA,QACf,CAAC;AAAA,MACL,CAAC,CAAC;AACF;AAAA,IACJ,KAAKT,EAAW;AACZ,YAAMY,IAAgBL,EAAO,QAAQjB,EAAM,YAAY;AACvD,MAAAC,EAASmB,EAAE,CAACC,MAAM;AACd,QAAAA,EAAE,WAAW,QACbA,EAAE,OAAO,QAAQ,CAACF,MAAM;AACpB,UAAAA,EAAE,iBAAiBG,GACnBH,EAAE,SAAS;AAAA,QACf,CAAC;AAAA,MACL,CAAC,CAAC;AACF;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index334.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/FINWO3A5.jsx"],"sourcesContent":["// src/primitives/create-collection/get-item-count.ts\nvar cache = /* @__PURE__ */ new WeakMap();\nfunction getItemCount(collection) {\n let count = cache.get(collection);\n if (count != null) {\n return count;\n }\n count = 0;\n for (const item of collection) {\n if (item.type === \"item\") {\n count++;\n }\n }\n cache.set(collection, count);\n return count;\n}\n\nexport {\n getItemCount\n};\n"],"names":["cache","WeakMap","getItemCount","collection","count","get","item","type","set"],"mappings":"AACA,IAAIA,wBAA4BC,QAAAA;AAChC,SAASC,EAAaC,GAAY;AAChC,MAAIC,IAAQJ,EAAMK,IAAIF,CAAU;AAChC,MAAIC,KAAS;AACX,WAAOA;AAETA,EAAAA,IAAQ;AACR,aAAWE,KAAQH;AACjB,IAAIG,EAAKC,SAAS,UAChBH;AAGJJ,SAAAA,EAAMQ,IAAIL,GAAYC,CAAK,GACpBA;AACT;","x_google_ignoreList":[0]}
package/dist/index335.js CHANGED
@@ -1,8 +1,23 @@
1
- var T;
2
- (function(S) {
3
- S[S.ADD_TOAST = 0] = "ADD_TOAST", S[S.UPDATE_TOAST = 1] = "UPDATE_TOAST", S[S.UPSERT_TOAST = 2] = "UPSERT_TOAST", S[S.DISMISS_TOAST = 3] = "DISMISS_TOAST", S[S.REMOVE_TOAST = 4] = "REMOVE_TOAST", S[S.START_PAUSE = 5] = "START_PAUSE", S[S.END_PAUSE = 6] = "END_PAUSE";
4
- })(T || (T = {}));
1
+ import { useFormControlContext as l } from "./index320.js";
2
+ import { mergeDefaultProps as o } from "./index294.js";
3
+ import { createEffect as t, onCleanup as d } from "solid-js";
4
+ import { access as r } from "./index300.js";
5
+ var n = ["id", "aria-label", "aria-labelledby", "aria-describedby"];
6
+ function f(i) {
7
+ const a = l(), e = o({
8
+ id: a.generateId("field")
9
+ }, i);
10
+ return t(() => d(a.registerField(r(e.id)))), {
11
+ fieldProps: {
12
+ id: () => r(e.id),
13
+ ariaLabel: () => r(e["aria-label"]),
14
+ ariaLabelledBy: () => a.getAriaLabelledBy(r(e.id), r(e["aria-label"]), r(e["aria-labelledby"])),
15
+ ariaDescribedBy: () => a.getAriaDescribedBy(r(e["aria-describedby"]))
16
+ }
17
+ };
18
+ }
5
19
  export {
6
- T as ActionType
20
+ n as FORM_CONTROL_FIELD_PROP_NAMES,
21
+ f as createFormControlField
7
22
  };
8
23
  //# sourceMappingURL=index335.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index335.js","sources":["../../../node_modules/.bun/solid-toast@0.5.0+ee58d66d663bac7b/node_modules/solid-toast/dist/source/types/store.js"],"sourcesContent":["export var ActionType;\n(function (ActionType) {\n ActionType[ActionType[\"ADD_TOAST\"] = 0] = \"ADD_TOAST\";\n ActionType[ActionType[\"UPDATE_TOAST\"] = 1] = \"UPDATE_TOAST\";\n ActionType[ActionType[\"UPSERT_TOAST\"] = 2] = \"UPSERT_TOAST\";\n ActionType[ActionType[\"DISMISS_TOAST\"] = 3] = \"DISMISS_TOAST\";\n ActionType[ActionType[\"REMOVE_TOAST\"] = 4] = \"REMOVE_TOAST\";\n ActionType[ActionType[\"START_PAUSE\"] = 5] = \"START_PAUSE\";\n ActionType[ActionType[\"END_PAUSE\"] = 6] = \"END_PAUSE\";\n})(ActionType || (ActionType = {}));\n"],"names":["ActionType"],"mappings":"AAAU,IAACA;AAAA,CACV,SAAUA,GAAY;AACnB,EAAAA,EAAWA,EAAW,YAAe,CAAC,IAAI,aAC1CA,EAAWA,EAAW,eAAkB,CAAC,IAAI,gBAC7CA,EAAWA,EAAW,eAAkB,CAAC,IAAI,gBAC7CA,EAAWA,EAAW,gBAAmB,CAAC,IAAI,iBAC9CA,EAAWA,EAAW,eAAkB,CAAC,IAAI,gBAC7CA,EAAWA,EAAW,cAAiB,CAAC,IAAI,eAC5CA,EAAWA,EAAW,YAAe,CAAC,IAAI;AAC9C,GAAGA,MAAeA,IAAa,CAAA,EAAG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index335.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/NGHEENNE.jsx"],"sourcesContent":["import {\n useFormControlContext\n} from \"./XUUROM4M.jsx\";\n\n// src/form-control/create-form-control-field.tsx\nimport { access, mergeDefaultProps } from \"@kobalte/utils\";\nimport { createEffect, onCleanup } from \"solid-js\";\nvar FORM_CONTROL_FIELD_PROP_NAMES = [\n \"id\",\n \"aria-label\",\n \"aria-labelledby\",\n \"aria-describedby\"\n];\nfunction createFormControlField(props) {\n const context = useFormControlContext();\n const mergedProps = mergeDefaultProps(\n { id: context.generateId(\"field\") },\n props\n );\n createEffect(() => onCleanup(context.registerField(access(mergedProps.id))));\n return {\n fieldProps: {\n id: () => access(mergedProps.id),\n ariaLabel: () => access(mergedProps[\"aria-label\"]),\n ariaLabelledBy: () => context.getAriaLabelledBy(\n access(mergedProps.id),\n access(mergedProps[\"aria-label\"]),\n access(mergedProps[\"aria-labelledby\"])\n ),\n ariaDescribedBy: () => context.getAriaDescribedBy(access(mergedProps[\"aria-describedby\"]))\n }\n };\n}\n\nexport {\n FORM_CONTROL_FIELD_PROP_NAMES,\n createFormControlField\n};\n"],"names":["FORM_CONTROL_FIELD_PROP_NAMES","createFormControlField","props","context","useFormControlContext","mergedProps","mergeDefaultProps","id","generateId","createEffect","onCleanup","registerField","access","fieldProps","ariaLabel","ariaLabelledBy","getAriaLabelledBy","ariaDescribedBy","getAriaDescribedBy"],"mappings":";;;;AAOA,IAAIA,IAAgC,CAClC,MACA,cACA,mBACA,kBAAkB;AAEpB,SAASC,EAAuBC,GAAO;AACrC,QAAMC,IAAUC,EAAAA,GACVC,IAAcC,EAClB;AAAA,IAAEC,IAAIJ,EAAQK,WAAW,OAAO;AAAA,EAAA,GAChCN,CACF;AACAO,SAAAA,EAAa,MAAMC,EAAUP,EAAQQ,cAAcC,EAAOP,EAAYE,EAAE,CAAC,CAAC,CAAC,GACpE;AAAA,IACLM,YAAY;AAAA,MACVN,IAAIA,MAAMK,EAAOP,EAAYE,EAAE;AAAA,MAC/BO,WAAWA,MAAMF,EAAOP,EAAY,YAAY,CAAC;AAAA,MACjDU,gBAAgBA,MAAMZ,EAAQa,kBAC5BJ,EAAOP,EAAYE,EAAE,GACrBK,EAAOP,EAAY,YAAY,CAAC,GAChCO,EAAOP,EAAY,iBAAiB,CAAC,CACvC;AAAA,MACAY,iBAAiBA,MAAMd,EAAQe,mBAAmBN,EAAOP,EAAY,kBAAkB,CAAC,CAAC;AAAA,IAAA;AAAA,EAC3F;AAEJ;","x_google_ignoreList":[0]}
package/dist/index336.js CHANGED
@@ -1,41 +1,65 @@
1
- const n = {
2
- blank: 4e3,
3
- error: 4e3,
4
- success: 2e3,
5
- loading: 1 / 0,
6
- custom: 4e3
7
- }, o = {
8
- id: "",
9
- icon: "",
10
- unmountDelay: 500,
11
- duration: 3e3,
12
- ariaProps: {
13
- role: "status",
14
- "aria-live": "polite"
15
- },
16
- className: "",
17
- style: {},
18
- position: "top-right",
19
- iconTheme: {}
20
- }, e = {
21
- position: "top-right",
22
- toastOptions: o,
23
- gutter: 8,
24
- containerStyle: {},
25
- containerClassName: ""
26
- }, t = "16px", i = {
27
- position: "fixed",
28
- "z-index": 9999,
29
- top: t,
30
- bottom: t,
31
- left: t,
32
- right: t,
33
- "pointer-events": "none"
34
- };
1
+ import { createMemo as I, onCleanup as v, $TRACK as x, untrack as A, createRoot as m, createSignal as g } from "solid-js";
2
+ import { isServer as w } from "solid-js/web";
3
+ const k = /* @__PURE__ */ Symbol("fallback");
4
+ function y(c) {
5
+ for (const f of c)
6
+ f.dispose();
7
+ }
8
+ function K(c, f, i, d = {}) {
9
+ if (w) {
10
+ const t = c();
11
+ let l = [];
12
+ if (t && t.length)
13
+ for (let o = 0, u = t.length; o < u; o++)
14
+ l.push(i(() => t[o], () => o));
15
+ else d.fallback && (l = [d.fallback()]);
16
+ return () => l;
17
+ }
18
+ const n = /* @__PURE__ */ new Map();
19
+ return v(() => y(n.values())), () => {
20
+ const t = c() || [];
21
+ return t[x], A(() => {
22
+ if (!t.length)
23
+ return y(n.values()), n.clear(), d.fallback ? [m((s) => (n.set(k, { dispose: s }), d.fallback()))] : [];
24
+ const l = new Array(t.length), o = n.get(k);
25
+ if (!n.size || o) {
26
+ o?.dispose(), n.delete(k);
27
+ for (let e = 0; e < t.length; e++) {
28
+ const s = t[e], a = f(s, e);
29
+ b(l, s, e, a);
30
+ }
31
+ return l;
32
+ }
33
+ const u = new Set(n.keys());
34
+ for (let e = 0; e < t.length; e++) {
35
+ const s = t[e], a = f(s, e);
36
+ u.delete(a);
37
+ const r = n.get(a);
38
+ r ? (l[e] = r.mapped, r.setIndex?.(e), r.setItem(() => s)) : b(l, s, e, a);
39
+ }
40
+ for (const e of u)
41
+ n.get(e)?.dispose(), n.delete(e);
42
+ return l;
43
+ });
44
+ };
45
+ function b(t, l, o, u) {
46
+ m((e) => {
47
+ const [s, a] = g(l), r = { setItem: a, dispose: e };
48
+ if (i.length > 1) {
49
+ const [h, p] = g(o);
50
+ r.setIndex = p, r.mapped = i(s, h);
51
+ } else
52
+ r.mapped = i(s);
53
+ n.set(u, r), t[o] = r.mapped;
54
+ });
55
+ }
56
+ }
57
+ function R(c) {
58
+ const { by: f } = c;
59
+ return I(K(() => c.each, typeof f == "function" ? f : (i) => i[f], c.children, "fallback" in c ? { fallback: () => c.fallback } : void 0));
60
+ }
35
61
  export {
36
- i as defaultContainerStyle,
37
- n as defaultTimeouts,
38
- o as defaultToastOptions,
39
- e as defaultToasterOptions
62
+ R as Key,
63
+ K as keyArray
40
64
  };
41
65
  //# sourceMappingURL=index336.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index336.js","sources":["../../../node_modules/.bun/solid-toast@0.5.0+ee58d66d663bac7b/node_modules/solid-toast/dist/source/core/defaults.js"],"sourcesContent":["export const defaultTimeouts = {\n blank: 4000,\n error: 4000,\n success: 2000,\n loading: Infinity,\n custom: 4000,\n};\nexport const defaultToastOptions = {\n id: '',\n icon: '',\n unmountDelay: 500,\n duration: 3000,\n ariaProps: {\n role: 'status',\n 'aria-live': 'polite',\n },\n className: '',\n style: {},\n position: 'top-right',\n iconTheme: {},\n};\nexport const defaultToasterOptions = {\n position: 'top-right',\n toastOptions: defaultToastOptions,\n gutter: 8,\n containerStyle: {},\n containerClassName: '',\n};\nconst defaultContainerPadding = '16px';\nexport const defaultContainerStyle = {\n position: 'fixed',\n 'z-index': 9999,\n top: defaultContainerPadding,\n bottom: defaultContainerPadding,\n left: defaultContainerPadding,\n right: defaultContainerPadding,\n 'pointer-events': 'none',\n};\n"],"names":["defaultTimeouts","defaultToastOptions","defaultToasterOptions","defaultContainerPadding","defaultContainerStyle"],"mappings":"AAAY,MAACA,IAAkB;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AACZ,GACaC,IAAsB;AAAA,EAC/B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,cAAc;AAAA,EACd,UAAU;AAAA,EACV,WAAW;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,EACrB;AAAA,EACI,WAAW;AAAA,EACX,OAAO,CAAA;AAAA,EACP,UAAU;AAAA,EACV,WAAW,CAAA;AACf,GACaC,IAAwB;AAAA,EACjC,UAAU;AAAA,EACV,cAAcD;AAAA,EACd,QAAQ;AAAA,EACR,gBAAgB,CAAA;AAAA,EAChB,oBAAoB;AACxB,GACME,IAA0B,QACnBC,IAAwB;AAAA,EACjC,UAAU;AAAA,EACV,WAAW;AAAA,EACX,KAAKD;AAAA,EACL,QAAQA;AAAA,EACR,MAAMA;AAAA,EACN,OAAOA;AAAA,EACP,kBAAkB;AACtB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index336.js","sources":["../../../node_modules/.bun/@solid-primitives+keyed@1.5.3+ee58d66d663bac7b/node_modules/@solid-primitives/keyed/dist/index.js"],"sourcesContent":["import { createMemo, createRoot, createSignal, on, onCleanup, untrack, $TRACK, mapArray, } from \"solid-js\";\nimport { isServer } from \"solid-js/web\";\nconst FALLBACK = Symbol(\"fallback\");\nfunction dispose(list) {\n for (const o of list)\n o.dispose();\n}\n/**\n * Reactively maps an array by specified key with a callback function - underlying helper for the `<Key>` control flow.\n * @param list input list of values to map\n * @param keyFn key getter, items will be identified by it's value. changing the value is changing the item.\n * @param mapFn reactive function used to create mapped output item. Similar to `Array.prototype.map` but both item and index are signals, that could change over time.\n * @param options a fallback for when the input list is empty or missing\n * @returns mapped input array signal\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#keyArray\n */\nexport function keyArray(items, keyFn, mapFn, options = {}) {\n // SERVER NOOP\n if (isServer) {\n const itemsRef = items();\n let s = [];\n if (itemsRef && itemsRef.length) {\n for (let i = 0, len = itemsRef.length; i < len; i++)\n s.push(mapFn(() => itemsRef[i], () => i));\n }\n else if (options.fallback)\n s = [options.fallback()];\n return () => s;\n }\n const prev = new Map();\n onCleanup(() => dispose(prev.values()));\n return () => {\n const list = items() || [];\n list[$TRACK]; // top level store tracking\n return untrack(() => {\n // fast path for empty arrays\n if (!list.length) {\n dispose(prev.values());\n prev.clear();\n if (!options.fallback)\n return [];\n const fb = createRoot(dispose => {\n prev.set(FALLBACK, { dispose });\n return options.fallback();\n });\n return [fb];\n }\n const result = new Array(list.length);\n // fast path for new create or after fallback\n const fb = prev.get(FALLBACK);\n if (!prev.size || fb) {\n fb?.dispose();\n prev.delete(FALLBACK);\n for (let i = 0; i < list.length; i++) {\n const item = list[i];\n const key = keyFn(item, i);\n addNewItem(result, item, i, key);\n }\n return result;\n }\n const prevKeys = new Set(prev.keys());\n for (let i = 0; i < list.length; i++) {\n const item = list[i];\n const key = keyFn(item, i);\n prevKeys.delete(key);\n const lookup = prev.get(key);\n if (lookup) {\n result[i] = lookup.mapped;\n lookup.setIndex?.(i);\n lookup.setItem(() => item);\n }\n else\n addNewItem(result, item, i, key);\n }\n for (const key of prevKeys) {\n prev.get(key)?.dispose();\n prev.delete(key);\n }\n return result;\n });\n };\n function addNewItem(list, item, i, key) {\n createRoot(dispose => {\n const [getItem, setItem] = createSignal(item);\n const save = { setItem, dispose };\n if (mapFn.length > 1) {\n const [index, setIndex] = createSignal(i);\n save.setIndex = setIndex;\n save.mapped = mapFn(getItem, index);\n }\n else\n save.mapped = mapFn(getItem);\n prev.set(key, save);\n list[i] = save.mapped;\n });\n }\n}\n/**\n * creates a list of elements from the input `each` list\n *\n * it receives a map function as its child that receives a **list item signal** and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <Key each={items()} by={item => item.id} fallback={<div>No items</div>}>\n * {(item, index) => <div data-index={index()}>{item()}</div>}\n * </Key>\n * ```\n *\n * prop `by` can also be an object key:\n * ```tsx\n * <Key each={items()} by=\"id\">\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#Key\n */\nexport function Key(props) {\n const { by } = props;\n return createMemo(keyArray(() => props.each, typeof by === \"function\" ? by : (v) => v[by], props.children, \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\n/**\n * creates a list of elements from the entries of provided object\n *\n * @param props\n * @param props.of object to iterate entries of (`Object.entries(object)`)\n * @param props.children\n * a map render function that receives an object key, **value signal** and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <Entries of={object()} fallback={<div>No items</div>}>\n * {(key, value, index) => <div data-index={index()}>{key}: {value()}</div>}\n * </Entries>\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#Entries\n */\nexport function Entries(props) {\n // changes to this function may be applicable to similar functions - grep 4A29BECD-767A-4CC0-AEBB-3543D7B444C6\n const mapFn = props.children;\n return createMemo(mapArray(() => props.of && Object.keys(props.of), mapFn.length < 3\n ? key => mapFn(key, () => props.of[key])\n : (key, i) => mapFn(key, () => props.of[key], i), \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\n/**\n * Creates a list of elements from the entries of provided Map\n *\n * @param props\n * @param props.of map to iterate entries of (`myMap.entries()`)\n * @param props.children\n * a map render function that receives a Map key, **value signal** and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <MapEntries of={map()} fallback={<div>No items</div>}>\n * {(key, value, index) => <div data-index={index()}>{key}: {value()}</div>}\n * </MapEntries>\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#mapentries\n */\nexport function MapEntries(props) {\n // changes to this function may be applicable to similar functions - grep 4A29BECD-767A-4CC0-AEBB-3543D7B444C6\n const mapFn = props.children;\n return createMemo(mapArray(() => props.of && Array.from(props.of.keys()), mapFn.length < 3\n ? key => mapFn(key, () => props.of.get(key))\n : (key, i) => mapFn(key, () => props.of.get(key), i), \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\n/**\n * Creates a list of elements from the values of provided Set\n *\n * @param props\n * @param props.of set to iterate values of (`mySet.values()`)\n * @param props.children\n * a map render function that receives a Set value and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <SetValues of={set()} fallback={<div>No items</div>}>\n * {(value, index) => <div data-index={index()}>{value)}</div>}\n * </SetValues>\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#setvalues\n */\nexport function SetValues(props) {\n // changes to this function may be applicable to similar functions - grep 4A29BECD-767A-4CC0-AEBB-3543D7B444C6\n const mapFn = props.children;\n return createMemo(mapArray(() => props.of && Array.from(props.of.values()), mapFn.length < 2 ? value => mapFn(value) : mapFn, \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\nexport function Rerun(props) {\n const key = typeof props.on === \"function\" || Array.isArray(props.on) ? props.on : () => props.on;\n return createMemo(on(key, (a, b) => {\n const child = props.children;\n return typeof child === \"function\" && child.length > 0 ? child(a, b) : child;\n }));\n}\n"],"names":["FALLBACK","dispose","list","o","keyArray","items","keyFn","mapFn","options","isServer","itemsRef","s","i","len","prev","onCleanup","$TRACK","untrack","createRoot","result","fb","item","key","addNewItem","prevKeys","lookup","getItem","setItem","createSignal","save","index","setIndex","Key","props","by","createMemo","v"],"mappings":";;AAEA,MAAMA,IAAW,uBAAO,UAAU;AAClC,SAASC,EAAQC,GAAM;AACnB,aAAWC,KAAKD;AACZ,IAAAC,EAAE,QAAO;AACjB;AAUO,SAASC,EAASC,GAAOC,GAAOC,GAAOC,IAAU,CAAA,GAAI;AAExD,MAAIC,GAAU;AACV,UAAMC,IAAWL,EAAK;AACtB,QAAIM,IAAI,CAAA;AACR,QAAID,KAAYA,EAAS;AACrB,eAASE,IAAI,GAAGC,IAAMH,EAAS,QAAQE,IAAIC,GAAKD;AAC5C,QAAAD,EAAE,KAAKJ,EAAM,MAAMG,EAASE,CAAC,GAAG,MAAMA,CAAC,CAAC;AAAA,QAE3C,CAAIJ,EAAQ,aACbG,IAAI,CAACH,EAAQ,UAAU;AAC3B,WAAO,MAAMG;AAAA,EACjB;AACA,QAAMG,IAAO,oBAAI,IAAG;AACpB,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AOQ,CAAG;AAEnB,aAAOH;AAAA,IACX,CAAC;AAAA,EACL;AACA,WAASI,EAAWrB,GAAMmB,GAAMT,GAAGU,GAAK;AACpC,IAAAJ,EAAW,CAAAjB,MAAW;AAClB,YAAM,CAACyB,GAASC,CAAO,IAAIC,EAAaP,CAAI,GACtCQ,IAAO,EAAE,SAAAF,GAAS,SAAA1B,EAAO;AAC/B,UAAIM,EAAM,SAAS,GAAG;AAClB,cAAM,CAACuB,GAAOC,CAAQ,IAAIH,EAAahB,CAAC;AACxC,QAAAiB,EAAK,WAAWE,GAChBF,EAAK,SAAStB,EAAMmB,GAASI,CAAK;AAAA,MACtC;AAEI,QAAAD,EAAK,SAAStB,EAAMmB,CAAO;AAC/B,MAAAZ,EAAK,IAAIQ,GAAKO,CAAI,GAClB3B,EAAKU,CAAC,IAAIiB,EAAK;AAAA,IACnB,CAAC;AAAA,EACL;AACJ;AAkBO,SAASG,EAAIC,GAAO;AACvB,QAAM,EAAE,IAAAC,EAAE,IAAKD;AACf,SAAOE,EAAW/B,EAAS,MAAM6B,EAAM,MAAM,OAAOC,KAAO,aAAaA,IAAK,CAACE,MAAMA,EAAEF,CAAE,GAAGD,EAAM,UAAU,cAAcA,IAAQ,EAAE,UAAU,MAAMA,EAAM,aAAa,MAAS,CAAC;AACpL;","x_google_ignoreList":[0]}
package/dist/index337.js CHANGED
@@ -1,47 +1,37 @@
1
- import { setDefaultOpts as l, defaultOpts as g } from "./index225.js";
2
- import { store as p, dispatch as u } from "./index334.js";
3
- import { defaultToasterOptions as f } from "./index336.js";
4
- import { ActionType as d } from "./index335.js";
5
- const O = /* @__PURE__ */ (() => {
6
- let t = 0;
7
- return () => String(++t);
8
- })(), S = (t) => {
9
- l((e) => ({
10
- containerClassName: t.containerClassName ?? e.containerClassName,
11
- containerStyle: t.containerStyle ?? e.containerStyle,
12
- gutter: t.gutter ?? e.gutter,
13
- position: t.position ?? e.position,
14
- toastOptions: {
15
- ...t.toastOptions
16
- }
17
- }));
18
- }, b = (t, e) => {
19
- const s = t.includes("top") ? { top: 0, "margin-top": `${e}px` } : { bottom: 0, "margin-bottom": `${e}px` }, i = t.includes("center") ? { "justify-content": "center" } : t.includes("right") ? { "justify-content": "flex-end" } : {};
20
- return {
21
- left: 0,
22
- right: 0,
23
- display: "flex",
24
- position: "absolute",
25
- transition: "all 230ms cubic-bezier(.21,1.02,.73,1)",
26
- ...s,
27
- ...i
1
+ function o(e, n, t) {
2
+ const s = [...e];
3
+ return s[t] = n, s.sort((r, a) => r - a);
4
+ }
5
+ function i(e, n) {
6
+ if (e.length === 1) return 0;
7
+ const t = e.map((a) => Math.abs(a - n)), s = Math.min(...t), r = t.indexOf(s);
8
+ return n < e[r] ? r : t.lastIndexOf(s);
9
+ }
10
+ function c(e) {
11
+ return e.slice(0, -1).map((n, t) => e[t + 1] - n);
12
+ }
13
+ function l(e, n) {
14
+ if (n > 0) {
15
+ const t = c(e);
16
+ return Math.min(...t) >= n;
17
+ }
18
+ return !0;
19
+ }
20
+ function f(e, n) {
21
+ return (t) => {
22
+ if (e[0] === e[1] || n[0] === n[1]) return n[0];
23
+ const s = (n[1] - n[0]) / (e[1] - e[0]);
24
+ return n[0] + s * (t - e[0]);
28
25
  };
29
- }, C = (t, e) => {
30
- const n = t.getBoundingClientRect();
31
- n.height !== e.height && u({
32
- type: d.UPDATE_TOAST,
33
- toast: { id: e.id, height: n.height }
34
- });
35
- }, A = (t, e) => {
36
- const { toasts: n } = p, s = g().gutter || f.gutter || 8, i = n.filter((o) => (o.position || e) === e && o.height), c = i.findIndex((o) => o.id === t.id), a = i.filter((o, r) => r < c && o.visible).length;
37
- return i.slice(0, a).reduce((o, r) => o + s + (r.height || 0), 0);
38
- }, D = (t, e) => (t.position || e).includes("top") ? 1 : -1;
26
+ }
27
+ function u(e) {
28
+ e.preventDefault(), e.stopPropagation();
29
+ }
39
30
  export {
40
- O as generateID,
41
- b as getToastWrapperStyles,
42
- D as getToastYDirection,
43
- A as getWrapperYAxisOffset,
44
- S as mergeContainerOptions,
45
- C as updateToastHeight
31
+ i as getClosestValueIndex,
32
+ o as getNextSortedValues,
33
+ l as hasMinStepsBetweenValues,
34
+ f as linearScale,
35
+ u as stopEventDefaultAndPropagation
46
36
  };
47
37
  //# sourceMappingURL=index337.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index337.js","sources":["../../../node_modules/.bun/solid-toast@0.5.0+ee58d66d663bac7b/node_modules/solid-toast/dist/source/util/util.js"],"sourcesContent":["import { setDefaultOpts, defaultOpts, store, dispatch, defaultToasterOptions } from '../core';\nimport { ActionType } from '../types';\nexport const generateID = (() => {\n let count = 0;\n return () => String(++count);\n})();\nexport const mergeContainerOptions = (props) => {\n setDefaultOpts((s) => ({\n containerClassName: props.containerClassName ?? s.containerClassName,\n containerStyle: props.containerStyle ?? s.containerStyle,\n gutter: props.gutter ?? s.gutter,\n position: props.position ?? s.position,\n toastOptions: {\n ...props.toastOptions,\n },\n }));\n};\nexport const getToastWrapperStyles = (position, offset) => {\n const top = position.includes('top');\n const verticalStyle = top\n ? { top: 0, 'margin-top': `${offset}px` }\n : { bottom: 0, 'margin-bottom': `${offset}px` };\n const horizontalStyle = position.includes('center')\n ? { 'justify-content': 'center' }\n : position.includes('right')\n ? { 'justify-content': 'flex-end' }\n : {};\n return {\n left: 0,\n right: 0,\n display: 'flex',\n position: 'absolute',\n transition: `all 230ms cubic-bezier(.21,1.02,.73,1)`,\n ...verticalStyle,\n ...horizontalStyle,\n };\n};\nexport const updateToastHeight = (ref, toast) => {\n const boundingRect = ref.getBoundingClientRect();\n if (boundingRect.height !== toast.height) {\n dispatch({\n type: ActionType.UPDATE_TOAST,\n toast: { id: toast.id, height: boundingRect.height },\n });\n }\n};\nexport const getWrapperYAxisOffset = (toast, position) => {\n const { toasts } = store;\n const gutter = defaultOpts().gutter || defaultToasterOptions.gutter || 8;\n const relevantToasts = toasts.filter((t) => (t.position || position) === position && t.height);\n const toastIndex = relevantToasts.findIndex((t) => t.id === toast.id);\n const toastsBefore = relevantToasts.filter((toast, i) => i < toastIndex && toast.visible).length;\n const offset = relevantToasts.slice(0, toastsBefore).reduce((acc, t) => acc + gutter + (t.height || 0), 0);\n return offset;\n};\nexport const getToastYDirection = (toast, defaultPos) => {\n const position = toast.position || defaultPos;\n const top = position.includes('top');\n return top ? 1 : -1;\n};\n"],"names":["generateID","count","mergeContainerOptions","props","setDefaultOpts","s","getToastWrapperStyles","position","offset","verticalStyle","horizontalStyle","updateToastHeight","ref","toast","boundingRect","dispatch","ActionType","getWrapperYAxisOffset","toasts","store","gutter","defaultOpts","defaultToasterOptions","relevantToasts","t","toastIndex","toastsBefore","i","acc","getToastYDirection","defaultPos"],"mappings":";;;;AAEY,MAACA,IAAc,uBAAM;AAC7B,MAAIC,IAAQ;AACZ,SAAO,MAAM,OAAO,EAAEA,CAAK;AAC/B,GAAC,GACYC,IAAwB,CAACC,MAAU;AAC5C,EAAAC,EAAe,CAACC,OAAO;AAAA,IACnB,oBAAoBF,EAAM,sBAAsBE,EAAE;AAAA,IAClD,gBAAgBF,EAAM,kBAAkBE,EAAE;AAAA,IAC1C,QAAQF,EAAM,UAAUE,EAAE;AAAA,IAC1B,UAAUF,EAAM,YAAYE,EAAE;AAAA,IAC9B,cAAc;AAAA,MACV,GAAGF,EAAM;AAAA,IACrB;AAAA,EACA,EAAM;AACN,GACaG,IAAwB,CAACC,GAAUC,MAAW;AAEvD,QAAMC,IADMF,EAAS,SAAS,KAAK,IAE7B,EAAE,KAAK,GAAG,cAAc,GAAGC,CAAM,KAAI,IACrC,EAAE,QAAQ,GAAG,iBAAiB,GAAGA,CAAM,KAAI,GAC3CE,IAAkBH,EAAS,SAAS,QAAQ,IAC5C,EAAE,mBAAmB,SAAQ,IAC7BA,EAAS,SAAS,OAAO,IACrB,EAAE,mBAAmB,WAAU,IAC/B,CAAA;AACV,SAAO;AAAA,IACH,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAGE;AAAA,IACH,GAAGC;AAAA,EACX;AACA,GACaC,IAAoB,CAACC,GAAKC,MAAU;AAC7C,QAAMC,IAAeF,EAAI,sBAAqB;AAC9C,EAAIE,EAAa,WAAWD,EAAM,UAC9BE,EAAS;AAAA,IACL,MAAMC,EAAW;AAAA,IACjB,OAAO,EAAE,IAAIH,EAAM,IAAI,QAAQC,EAAa,OAAM;AAAA,EAC9D,CAAS;AAET,GACaG,IAAwB,CAACJ,GAAON,MAAa;AACtD,QAAM,EAAE,QAAAW,EAAM,IAAKC,GACbC,IAASC,EAAW,EAAG,UAAUC,EAAsB,UAAU,GACjEC,IAAiBL,EAAO,OAAO,CAACM,OAAOA,EAAE,YAAYjB,OAAcA,KAAYiB,EAAE,MAAM,GACvFC,IAAaF,EAAe,UAAU,CAACC,MAAMA,EAAE,OAAOX,EAAM,EAAE,GAC9Da,IAAeH,EAAe,OAAO,CAACV,GAAOc,MAAMA,IAAIF,KAAcZ,EAAM,OAAO,EAAE;AAE1F,SADeU,EAAe,MAAM,GAAGG,CAAY,EAAE,OAAO,CAACE,GAAKJ,MAAMI,IAAMR,KAAUI,EAAE,UAAU,IAAI,CAAC;AAE7G,GACaK,IAAqB,CAAChB,GAAOiB,OACrBjB,EAAM,YAAYiB,GACd,SAAS,KAAK,IACtB,IAAI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index337.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/GIRHAWVP.jsx"],"sourcesContent":["// src/slider/utils.ts\nfunction getNextSortedValues(prevValues, nextValue, atIndex) {\n const nextValues = [...prevValues];\n nextValues[atIndex] = nextValue;\n return nextValues.sort((a, b) => a - b);\n}\nfunction getClosestValueIndex(values, nextValue) {\n if (values.length === 1)\n return 0;\n const distances = values.map((value) => Math.abs(value - nextValue));\n const closestDistance = Math.min(...distances);\n const closestIndex = distances.indexOf(closestDistance);\n return nextValue < values[closestIndex] ? closestIndex : distances.lastIndexOf(closestDistance);\n}\nfunction getStepsBetweenValues(values) {\n return values.slice(0, -1).map((value, index) => values[index + 1] - value);\n}\nfunction hasMinStepsBetweenValues(values, minStepsBetweenValues) {\n if (minStepsBetweenValues > 0) {\n const stepsBetweenValues = getStepsBetweenValues(values);\n const actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);\n return actualMinStepsBetweenValues >= minStepsBetweenValues;\n }\n return true;\n}\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1])\n return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction stopEventDefaultAndPropagation(event) {\n event.preventDefault();\n event.stopPropagation();\n}\n\nexport {\n getNextSortedValues,\n getClosestValueIndex,\n hasMinStepsBetweenValues,\n linearScale,\n stopEventDefaultAndPropagation\n};\n"],"names":["getNextSortedValues","prevValues","nextValue","atIndex","nextValues","sort","a","b","getClosestValueIndex","values","length","distances","map","value","Math","abs","closestDistance","min","closestIndex","indexOf","lastIndexOf","getStepsBetweenValues","slice","index","hasMinStepsBetweenValues","minStepsBetweenValues","stepsBetweenValues","linearScale","input","output","ratio","stopEventDefaultAndPropagation","event","preventDefault","stopPropagation"],"mappings":"AACA,SAASA,EAAoBC,GAAYC,GAAWC,GAAS;AAC3D,QAAMC,IAAa,CAAC,GAAGH,CAAU;AACjCG,SAAAA,EAAWD,CAAO,IAAID,GACfE,EAAWC,KAAK,CAACC,GAAGC,MAAMD,IAAIC,CAAC;AACxC;AACA,SAASC,EAAqBC,GAAQP,GAAW;AAC/C,MAAIO,EAAOC,WAAW,EACpB,QAAO;AACT,QAAMC,IAAYF,EAAOG,IAAKC,CAAAA,MAAUC,KAAKC,IAAIF,IAAQX,CAAS,CAAC,GAC7Dc,IAAkBF,KAAKG,IAAI,GAAGN,CAAS,GACvCO,IAAeP,EAAUQ,QAAQH,CAAe;AACtD,SAAOd,IAAYO,EAAOS,CAAY,IAAIA,IAAeP,EAAUS,YAAYJ,CAAe;AAChG;AACA,SAASK,EAAsBZ,GAAQ;AACrC,SAAOA,EAAOa,MAAM,GAAG,EAAE,EAAEV,IAAI,CAACC,GAAOU,MAAUd,EAAOc,IAAQ,CAAC,IAAIV,CAAK;AAC5E;AACA,SAASW,EAAyBf,GAAQgB,GAAuB;AAC/D,MAAIA,IAAwB,GAAG;AAC7B,UAAMC,IAAqBL,EAAsBZ,CAAM;AAEvD,WADoCK,KAAKG,IAAI,GAAGS,CAAkB,KAC5BD;AAAAA,EACxC;AACA,SAAO;AACT;AACA,SAASE,EAAYC,GAAOC,GAAQ;AAClC,SAAQhB,CAAAA,MAAU;AAChB,QAAIe,EAAM,CAAC,MAAMA,EAAM,CAAC,KAAKC,EAAO,CAAC,MAAMA,EAAO,CAAC,EACjD,QAAOA,EAAO,CAAC;AACjB,UAAMC,KAASD,EAAO,CAAC,IAAIA,EAAO,CAAC,MAAMD,EAAM,CAAC,IAAIA,EAAM,CAAC;AAC3D,WAAOC,EAAO,CAAC,IAAIC,KAASjB,IAAQe,EAAM,CAAC;AAAA,EAC7C;AACF;AACA,SAASG,EAA+BC,GAAO;AAC7CA,EAAAA,EAAMC,eAAAA,GACND,EAAME,gBAAAA;AACR;","x_google_ignoreList":[0]}
package/dist/index338.js CHANGED
@@ -1,5 +1,10 @@
1
- const s = (e) => typeof e == "function", t = (e, o) => s(e) ? e(o) : e;
1
+ function r(e) {
2
+ return [
3
+ ...Object.values(e.internal.fields),
4
+ ...Object.values(e.internal.fieldArrays)
5
+ ];
6
+ }
2
7
  export {
3
- t as resolveValue
8
+ r as getFieldAndArrayStores
4
9
  };
5
10
  //# sourceMappingURL=index338.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index338.js","sources":["../../../node_modules/.bun/solid-toast@0.5.0+ee58d66d663bac7b/node_modules/solid-toast/dist/source/types/toast.js"],"sourcesContent":["const isFunction = (valOrFunction) => typeof valOrFunction === 'function';\nexport const resolveValue = (valOrFunction, arg) => isFunction(valOrFunction) ? valOrFunction(arg) : valOrFunction;\n"],"names":["isFunction","valOrFunction","resolveValue","arg"],"mappings":"AAAA,MAAMA,IAAa,CAACC,MAAkB,OAAOA,KAAkB,YAClDC,IAAe,CAACD,GAAeE,MAAQH,EAAWC,CAAa,IAAIA,EAAcE,CAAG,IAAIF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index338.js","sources":["../../../node_modules/.bun/@modular-forms+solid@0.25.1+ee58d66d663bac7b/node_modules/@modular-forms/solid/dist/source/utils/getFieldAndArrayStores.js"],"sourcesContent":["/**\n * Returns a tuple with all field and field array stores of a form.\n *\n * @param form The form of the stores.\n *\n * @returns The store tuple.\n */\nexport function getFieldAndArrayStores(form) {\n return [\n ...Object.values(form.internal.fields),\n ...Object.values(form.internal.fieldArrays),\n ];\n}\n"],"names":["getFieldAndArrayStores","form"],"mappings":"AAOO,SAASA,EAAuBC,GAAM;AACzC,SAAO;AAAA,IACH,GAAG,OAAO,OAAOA,EAAK,SAAS,MAAM;AAAA,IACrC,GAAG,OAAO,OAAOA,EAAK,SAAS,WAAW;AAAA,EAClD;AACA;","x_google_ignoreList":[0]}