laif-ds 0.1.5 → 0.1.7

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 (135) hide show
  1. package/dist/_virtual/_cloneBuffer.js +5 -0
  2. package/dist/_virtual/dayjs.min.js +8 -0
  3. package/dist/_virtual/dayjs.min2.js +5 -0
  4. package/dist/_virtual/debounce.js +8 -0
  5. package/dist/_virtual/index5.js +5 -2
  6. package/dist/_virtual/index6.js +5 -0
  7. package/dist/_virtual/index7.js +5 -0
  8. package/dist/_virtual/localizedFormat.js +8 -0
  9. package/dist/_virtual/localizedFormat2.js +5 -0
  10. package/dist/_virtual/omit.js +8 -0
  11. package/dist/components/ui/data-table.js +122 -0
  12. package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +36 -0
  13. package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +45 -0
  14. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +115 -0
  15. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +158 -0
  16. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +36 -0
  17. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +26 -0
  18. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRowContext.js +14 -0
  19. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +75 -0
  20. package/dist/components/ui/gantt/components/Chart/Chart.js +66 -0
  21. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +88 -0
  22. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +72 -0
  23. package/dist/components/ui/gantt/components/Controls/Controls.js +82 -0
  24. package/dist/components/ui/gantt/components/Gantt/Gantt.js +58 -0
  25. package/dist/components/ui/gantt/components/Gantt/GanttContext.js +35 -0
  26. package/dist/components/ui/gantt/constants/DimensionsSettings.js +89 -0
  27. package/dist/components/ui/gantt/constants/DragStepOptions.js +43 -0
  28. package/dist/components/ui/gantt/constants/GanttConsts.js +17 -0
  29. package/dist/components/ui/gantt/constants/colors.json.js +106 -0
  30. package/dist/components/ui/gantt/enums/DataRepeatTimes.js +5 -0
  31. package/dist/components/ui/gantt/enums/DragStepSizes.js +5 -0
  32. package/dist/components/ui/gantt/enums/DragTypes.js +5 -0
  33. package/dist/components/ui/gantt/enums/GanttDimensions.js +5 -0
  34. package/dist/components/ui/gantt/enums/GanttUnitOfTimes.js +5 -0
  35. package/dist/components/ui/gantt/hooks/useForwardRef.js +11 -0
  36. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +30 -0
  37. package/dist/components/ui/gantt/utils/getInitialScrollOffset.js +11 -0
  38. package/dist/components/ui/gantt/utils/getScaleDates.js +14 -0
  39. package/dist/components/ui/gantt/utils/getScaleItems.js +33 -0
  40. package/dist/components/ui/gantt/utils/getWholeWidth.js +7 -0
  41. package/dist/components/ui/gantt/utils/transformData.js +36 -0
  42. package/dist/components/ui/toaster.js +26 -0
  43. package/dist/dist/_virtual/jsx-runtime.js +6 -0
  44. package/dist/dist/_virtual/jsx-runtime2.js +5 -0
  45. package/dist/dist/_virtual/react-jsx-runtime.development.js +5 -0
  46. package/dist/dist/_virtual/react-jsx-runtime.production.js +5 -0
  47. package/dist/dist/components/ui/checkbox.js +32 -0
  48. package/dist/dist/components/ui/scroll-area.js +61 -0
  49. package/dist/dist/components/ui/table.js +87 -0
  50. package/dist/dist/lib/utils.js +9 -0
  51. package/dist/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  52. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  53. package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
  54. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  55. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  56. package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  57. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
  58. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  59. package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
  60. package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  61. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
  62. package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +33 -0
  63. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  64. package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
  65. package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  66. package/dist/dist/node_modules/clsx/dist/clsx.js +18 -0
  67. package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +41 -0
  68. package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +28 -0
  69. package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
  70. package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  71. package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +20 -0
  72. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
  73. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
  74. package/dist/dist/node_modules/react/jsx-runtime.js +11 -0
  75. package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2732 -0
  76. package/dist/index.d.ts +191 -1
  77. package/dist/index.js +303 -295
  78. package/dist/laif-ds.css +1 -0
  79. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -0
  80. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -0
  81. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -0
  82. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
  83. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +57 -0
  84. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +2150 -0
  85. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +27 -0
  86. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +184 -0
  87. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +103 -0
  88. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1896 -0
  89. package/dist/node_modules/classnames/index.js +43 -0
  90. package/dist/node_modules/dayjs/dayjs.min.js +283 -0
  91. package/dist/node_modules/dayjs/plugin/localizedFormat.js +30 -0
  92. package/dist/node_modules/lodash/_arrayEach.js +15 -0
  93. package/dist/node_modules/lodash/_assignValue.js +17 -0
  94. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  95. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  96. package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
  97. package/dist/node_modules/lodash/_baseClone.js +71 -0
  98. package/dist/node_modules/lodash/_baseCreate.js +24 -0
  99. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  100. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  101. package/dist/node_modules/lodash/_baseKeysIn.js +22 -0
  102. package/dist/node_modules/lodash/_baseUnset.js +18 -0
  103. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  104. package/dist/node_modules/lodash/_cloneBuffer.js +20 -0
  105. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  106. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  107. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  108. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  109. package/dist/node_modules/lodash/_copyArray.js +16 -0
  110. package/dist/node_modules/lodash/_copyObject.js +22 -0
  111. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  112. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  113. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  114. package/dist/node_modules/lodash/_flatRest.js +17 -0
  115. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  116. package/dist/node_modules/lodash/_getPrototype.js +12 -0
  117. package/dist/node_modules/lodash/_getSymbolsIn.js +19 -0
  118. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  119. package/dist/node_modules/lodash/_initCloneByTag.js +49 -0
  120. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  121. package/dist/node_modules/lodash/_nativeKeysIn.js +17 -0
  122. package/dist/node_modules/lodash/_parent.js +16 -0
  123. package/dist/node_modules/lodash/flatten.js +16 -0
  124. package/dist/node_modules/lodash/isMap.js +14 -0
  125. package/dist/node_modules/lodash/isPlainObject.js +23 -0
  126. package/dist/node_modules/lodash/isSet.js +14 -0
  127. package/dist/node_modules/lodash/keysIn.js +17 -0
  128. package/dist/node_modules/lodash/last.js +14 -0
  129. package/dist/node_modules/lodash/omit.js +30 -0
  130. package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +28 -0
  131. package/dist/node_modules/react-window/dist/index.esm.js +375 -0
  132. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  133. package/dist/styles.css +1 -1
  134. package/package.json +16 -7
  135. package/dist/components/ui/sonner.js +0 -23
@@ -0,0 +1,375 @@
1
+ "use client";
2
+ import re from "../../@babel/runtime/helpers/esm/extends.js";
3
+ import U from "../../@babel/runtime/helpers/esm/assertThisInitialized.js";
4
+ import ie from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
5
+ import D from "../../memoize-one/dist/memoize-one.esm.js";
6
+ import { createElement as k, PureComponent as ae } from "react";
7
+ var ne = typeof performance == "object" && typeof performance.now == "function", V = ne ? function() {
8
+ return performance.now();
9
+ } : function() {
10
+ return Date.now();
11
+ };
12
+ function q(l) {
13
+ cancelAnimationFrame(l.id);
14
+ }
15
+ function oe(l, t) {
16
+ var r = V();
17
+ function a() {
18
+ V() - r >= t ? l.call(null) : n.id = requestAnimationFrame(a);
19
+ }
20
+ var n = {
21
+ id: requestAnimationFrame(a)
22
+ };
23
+ return n;
24
+ }
25
+ var A = -1;
26
+ function H(l) {
27
+ if (l === void 0 && (l = !1), A === -1 || l) {
28
+ var t = document.createElement("div"), r = t.style;
29
+ r.width = "50px", r.height = "50px", r.overflow = "scroll", document.body.appendChild(t), A = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
30
+ }
31
+ return A;
32
+ }
33
+ var b = null;
34
+ function K(l) {
35
+ if (l === void 0 && (l = !1), b === null || l) {
36
+ var t = document.createElement("div"), r = t.style;
37
+ r.width = "50px", r.height = "50px", r.overflow = "scroll", r.direction = "rtl";
38
+ var a = document.createElement("div"), n = a.style;
39
+ return n.width = "100px", n.height = "100px", t.appendChild(a), document.body.appendChild(t), t.scrollLeft > 0 ? b = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? b = "negative" : b = "positive-ascending"), document.body.removeChild(t), b;
40
+ }
41
+ return b;
42
+ }
43
+ process.env.NODE_ENV;
44
+ var le = 150, se = function(t, r) {
45
+ return t;
46
+ }, N = null, R = null;
47
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (N = /* @__PURE__ */ new WeakSet(), R = /* @__PURE__ */ new WeakSet());
48
+ function ce(l) {
49
+ var t, r = l.getItemOffset, a = l.getEstimatedTotalSize, n = l.getItemSize, c = l.getOffsetForIndexAndAlignment, s = l.getStartIndexForOffset, h = l.getStopIndexForStartIndex, y = l.initInstanceProps, I = l.shouldResetStyleCacheOnItemSizeChange, g = l.validateProps;
50
+ return t = /* @__PURE__ */ function(w) {
51
+ ie(z, w);
52
+ function z(S) {
53
+ var e;
54
+ return e = w.call(this, S) || this, e._instanceProps = y(e.props, U(e)), e._outerRef = void 0, e._resetIsScrollingTimeoutId = null, e.state = {
55
+ instance: U(e),
56
+ isScrolling: !1,
57
+ scrollDirection: "forward",
58
+ scrollOffset: typeof e.props.initialScrollOffset == "number" ? e.props.initialScrollOffset : 0,
59
+ scrollUpdateWasRequested: !1
60
+ }, e._callOnItemsRendered = void 0, e._callOnItemsRendered = D(function(i, o, f, u) {
61
+ return e.props.onItemsRendered({
62
+ overscanStartIndex: i,
63
+ overscanStopIndex: o,
64
+ visibleStartIndex: f,
65
+ visibleStopIndex: u
66
+ });
67
+ }), e._callOnScroll = void 0, e._callOnScroll = D(function(i, o, f) {
68
+ return e.props.onScroll({
69
+ scrollDirection: i,
70
+ scrollOffset: o,
71
+ scrollUpdateWasRequested: f
72
+ });
73
+ }), e._getItemStyle = void 0, e._getItemStyle = function(i) {
74
+ var o = e.props, f = o.direction, u = o.itemSize, p = o.layout, d = e._getItemStyleCache(I && u, I && p, I && f), m;
75
+ if (d.hasOwnProperty(i))
76
+ m = d[i];
77
+ else {
78
+ var v = r(e.props, i, e._instanceProps), T = n(e.props, i, e._instanceProps), M = f === "horizontal" || p === "horizontal", C = f === "rtl", E = M ? v : 0;
79
+ d[i] = m = {
80
+ position: "absolute",
81
+ left: C ? void 0 : E,
82
+ right: C ? E : void 0,
83
+ top: M ? 0 : v,
84
+ height: M ? "100%" : T,
85
+ width: M ? T : "100%"
86
+ };
87
+ }
88
+ return m;
89
+ }, e._getItemStyleCache = void 0, e._getItemStyleCache = D(function(i, o, f) {
90
+ return {};
91
+ }), e._onScrollHorizontal = function(i) {
92
+ var o = i.currentTarget, f = o.clientWidth, u = o.scrollLeft, p = o.scrollWidth;
93
+ e.setState(function(d) {
94
+ if (d.scrollOffset === u)
95
+ return null;
96
+ var m = e.props.direction, v = u;
97
+ if (m === "rtl")
98
+ switch (K()) {
99
+ case "negative":
100
+ v = -u;
101
+ break;
102
+ case "positive-descending":
103
+ v = p - f - u;
104
+ break;
105
+ }
106
+ return v = Math.max(0, Math.min(v, p - f)), {
107
+ isScrolling: !0,
108
+ scrollDirection: d.scrollOffset < v ? "forward" : "backward",
109
+ scrollOffset: v,
110
+ scrollUpdateWasRequested: !1
111
+ };
112
+ }, e._resetIsScrollingDebounced);
113
+ }, e._onScrollVertical = function(i) {
114
+ var o = i.currentTarget, f = o.clientHeight, u = o.scrollHeight, p = o.scrollTop;
115
+ e.setState(function(d) {
116
+ if (d.scrollOffset === p)
117
+ return null;
118
+ var m = Math.max(0, Math.min(p, u - f));
119
+ return {
120
+ isScrolling: !0,
121
+ scrollDirection: d.scrollOffset < m ? "forward" : "backward",
122
+ scrollOffset: m,
123
+ scrollUpdateWasRequested: !1
124
+ };
125
+ }, e._resetIsScrollingDebounced);
126
+ }, e._outerRefSetter = function(i) {
127
+ var o = e.props.outerRef;
128
+ e._outerRef = i, typeof o == "function" ? o(i) : o != null && typeof o == "object" && o.hasOwnProperty("current") && (o.current = i);
129
+ }, e._resetIsScrollingDebounced = function() {
130
+ e._resetIsScrollingTimeoutId !== null && q(e._resetIsScrollingTimeoutId), e._resetIsScrollingTimeoutId = oe(e._resetIsScrolling, le);
131
+ }, e._resetIsScrolling = function() {
132
+ e._resetIsScrollingTimeoutId = null, e.setState({
133
+ isScrolling: !1
134
+ }, function() {
135
+ e._getItemStyleCache(-1, null);
136
+ });
137
+ }, e;
138
+ }
139
+ z.getDerivedStateFromProps = function(e, i) {
140
+ return de(e, i), g(e), null;
141
+ };
142
+ var _ = z.prototype;
143
+ return _.scrollTo = function(e) {
144
+ e = Math.max(0, e), this.setState(function(i) {
145
+ return i.scrollOffset === e ? null : {
146
+ scrollDirection: i.scrollOffset < e ? "forward" : "backward",
147
+ scrollOffset: e,
148
+ scrollUpdateWasRequested: !0
149
+ };
150
+ }, this._resetIsScrollingDebounced);
151
+ }, _.scrollToItem = function(e, i) {
152
+ i === void 0 && (i = "auto");
153
+ var o = this.props, f = o.itemCount, u = o.layout, p = this.state.scrollOffset;
154
+ e = Math.max(0, Math.min(e, f - 1));
155
+ var d = 0;
156
+ if (this._outerRef) {
157
+ var m = this._outerRef;
158
+ u === "vertical" ? d = m.scrollWidth > m.clientWidth ? H() : 0 : d = m.scrollHeight > m.clientHeight ? H() : 0;
159
+ }
160
+ this.scrollTo(c(this.props, e, i, p, this._instanceProps, d));
161
+ }, _.componentDidMount = function() {
162
+ var e = this.props, i = e.direction, o = e.initialScrollOffset, f = e.layout;
163
+ if (typeof o == "number" && this._outerRef != null) {
164
+ var u = this._outerRef;
165
+ i === "horizontal" || f === "horizontal" ? u.scrollLeft = o : u.scrollTop = o;
166
+ }
167
+ this._callPropsCallbacks();
168
+ }, _.componentDidUpdate = function() {
169
+ var e = this.props, i = e.direction, o = e.layout, f = this.state, u = f.scrollOffset, p = f.scrollUpdateWasRequested;
170
+ if (p && this._outerRef != null) {
171
+ var d = this._outerRef;
172
+ if (i === "horizontal" || o === "horizontal")
173
+ if (i === "rtl")
174
+ switch (K()) {
175
+ case "negative":
176
+ d.scrollLeft = -u;
177
+ break;
178
+ case "positive-ascending":
179
+ d.scrollLeft = u;
180
+ break;
181
+ default:
182
+ var m = d.clientWidth, v = d.scrollWidth;
183
+ d.scrollLeft = v - m - u;
184
+ break;
185
+ }
186
+ else
187
+ d.scrollLeft = u;
188
+ else
189
+ d.scrollTop = u;
190
+ }
191
+ this._callPropsCallbacks();
192
+ }, _.componentWillUnmount = function() {
193
+ this._resetIsScrollingTimeoutId !== null && q(this._resetIsScrollingTimeoutId);
194
+ }, _.render = function() {
195
+ var e = this.props, i = e.children, o = e.className, f = e.direction, u = e.height, p = e.innerRef, d = e.innerElementType, m = e.innerTagName, v = e.itemCount, T = e.itemData, M = e.itemKey, C = M === void 0 ? se : M, E = e.layout, G = e.outerElementType, Z = e.outerTagName, J = e.style, Q = e.useIsScrolling, X = e.width, P = this.state.isScrolling, W = f === "horizontal" || E === "horizontal", Y = W ? this._onScrollHorizontal : this._onScrollVertical, L = this._getRangeToRender(), ee = L[0], te = L[1], F = [];
196
+ if (v > 0)
197
+ for (var x = ee; x <= te; x++)
198
+ F.push(k(i, {
199
+ data: T,
200
+ key: C(x, T),
201
+ index: x,
202
+ isScrolling: Q ? P : void 0,
203
+ style: this._getItemStyle(x)
204
+ }));
205
+ var $ = a(this.props, this._instanceProps);
206
+ return k(G || Z || "div", {
207
+ className: o,
208
+ onScroll: Y,
209
+ ref: this._outerRefSetter,
210
+ style: re({
211
+ position: "relative",
212
+ height: u,
213
+ width: X,
214
+ overflow: "auto",
215
+ WebkitOverflowScrolling: "touch",
216
+ willChange: "transform",
217
+ direction: f
218
+ }, J)
219
+ }, k(d || m || "div", {
220
+ children: F,
221
+ ref: p,
222
+ style: {
223
+ height: W ? "100%" : $,
224
+ pointerEvents: P ? "none" : void 0,
225
+ width: W ? $ : "100%"
226
+ }
227
+ }));
228
+ }, _._callPropsCallbacks = function() {
229
+ if (typeof this.props.onItemsRendered == "function") {
230
+ var e = this.props.itemCount;
231
+ if (e > 0) {
232
+ var i = this._getRangeToRender(), o = i[0], f = i[1], u = i[2], p = i[3];
233
+ this._callOnItemsRendered(o, f, u, p);
234
+ }
235
+ }
236
+ if (typeof this.props.onScroll == "function") {
237
+ var d = this.state, m = d.scrollDirection, v = d.scrollOffset, T = d.scrollUpdateWasRequested;
238
+ this._callOnScroll(m, v, T);
239
+ }
240
+ }, _._getRangeToRender = function() {
241
+ var e = this.props, i = e.itemCount, o = e.overscanCount, f = this.state, u = f.isScrolling, p = f.scrollDirection, d = f.scrollOffset;
242
+ if (i === 0)
243
+ return [0, 0, 0, 0];
244
+ var m = s(this.props, d, this._instanceProps), v = h(this.props, m, d, this._instanceProps), T = !u || p === "backward" ? Math.max(1, o) : 1, M = !u || p === "forward" ? Math.max(1, o) : 1;
245
+ return [Math.max(0, m - T), Math.max(0, Math.min(i - 1, v + M)), m, v];
246
+ }, z;
247
+ }(ae), t.defaultProps = {
248
+ direction: "ltr",
249
+ itemData: void 0,
250
+ layout: "vertical",
251
+ overscanCount: 2,
252
+ useIsScrolling: !1
253
+ }, t;
254
+ }
255
+ var de = function(t, r) {
256
+ var a = t.children, n = t.direction, c = t.height, s = t.layout, h = t.innerTagName, y = t.outerTagName, I = t.width, g = r.instance;
257
+ if (process.env.NODE_ENV !== "production") {
258
+ (h != null || y != null) && R && !R.has(g) && (R.add(g), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
259
+ var w = n === "horizontal" || s === "horizontal";
260
+ switch (n) {
261
+ case "horizontal":
262
+ case "vertical":
263
+ N && !N.has(g) && (N.add(g), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
264
+ break;
265
+ case "ltr":
266
+ case "rtl":
267
+ break;
268
+ default:
269
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + n + '" was specified.'));
270
+ }
271
+ switch (s) {
272
+ case "horizontal":
273
+ case "vertical":
274
+ break;
275
+ default:
276
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + s + '" was specified.'));
277
+ }
278
+ if (a == null)
279
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
280
+ if (w && typeof I != "number")
281
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (I === null ? "null" : typeof I) + '" was specified.'));
282
+ if (!w && typeof c != "number")
283
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (c === null ? "null" : typeof c) + '" was specified.'));
284
+ }
285
+ }, fe = 50, O = function(t, r, a) {
286
+ var n = t, c = n.itemSize, s = a.itemMetadataMap, h = a.lastMeasuredIndex;
287
+ if (r > h) {
288
+ var y = 0;
289
+ if (h >= 0) {
290
+ var I = s[h];
291
+ y = I.offset + I.size;
292
+ }
293
+ for (var g = h + 1; g <= r; g++) {
294
+ var w = c(g);
295
+ s[g] = {
296
+ offset: y,
297
+ size: w
298
+ }, y += w;
299
+ }
300
+ a.lastMeasuredIndex = r;
301
+ }
302
+ return s[r];
303
+ }, ue = function(t, r, a) {
304
+ var n = r.itemMetadataMap, c = r.lastMeasuredIndex, s = c > 0 ? n[c].offset : 0;
305
+ return s >= a ? j(t, r, c, 0, a) : he(t, r, Math.max(0, c), a);
306
+ }, j = function(t, r, a, n, c) {
307
+ for (; n <= a; ) {
308
+ var s = n + Math.floor((a - n) / 2), h = O(t, s, r).offset;
309
+ if (h === c)
310
+ return s;
311
+ h < c ? n = s + 1 : h > c && (a = s - 1);
312
+ }
313
+ return n > 0 ? n - 1 : 0;
314
+ }, he = function(t, r, a, n) {
315
+ for (var c = t.itemCount, s = 1; a < c && O(t, a, r).offset < n; )
316
+ a += s, s *= 2;
317
+ return j(t, r, Math.min(a, c - 1), Math.floor(a / 2), n);
318
+ }, B = function(t, r) {
319
+ var a = t.itemCount, n = r.itemMetadataMap, c = r.estimatedItemSize, s = r.lastMeasuredIndex, h = 0;
320
+ if (s >= a && (s = a - 1), s >= 0) {
321
+ var y = n[s];
322
+ h = y.offset + y.size;
323
+ }
324
+ var I = a - s - 1, g = I * c;
325
+ return h + g;
326
+ }, Se = /* @__PURE__ */ ce({
327
+ getItemOffset: function(t, r, a) {
328
+ return O(t, r, a).offset;
329
+ },
330
+ getItemSize: function(t, r, a) {
331
+ return a.itemMetadataMap[r].size;
332
+ },
333
+ getEstimatedTotalSize: B,
334
+ getOffsetForIndexAndAlignment: function(t, r, a, n, c, s) {
335
+ var h = t.direction, y = t.height, I = t.layout, g = t.width, w = h === "horizontal" || I === "horizontal", z = w ? g : y, _ = O(t, r, c), S = B(t, c), e = Math.max(0, Math.min(S - z, _.offset)), i = Math.max(0, _.offset - z + _.size + s);
336
+ switch (a === "smart" && (n >= i - z && n <= e + z ? a = "auto" : a = "center"), a) {
337
+ case "start":
338
+ return e;
339
+ case "end":
340
+ return i;
341
+ case "center":
342
+ return Math.round(i + (e - i) / 2);
343
+ case "auto":
344
+ default:
345
+ return n >= i && n <= e ? n : n < i ? i : e;
346
+ }
347
+ },
348
+ getStartIndexForOffset: function(t, r, a) {
349
+ return ue(t, a, r);
350
+ },
351
+ getStopIndexForStartIndex: function(t, r, a, n) {
352
+ for (var c = t.direction, s = t.height, h = t.itemCount, y = t.layout, I = t.width, g = c === "horizontal" || y === "horizontal", w = g ? I : s, z = O(t, r, n), _ = a + w, S = z.offset + z.size, e = r; e < h - 1 && S < _; )
353
+ e++, S += O(t, e, n).size;
354
+ return e;
355
+ },
356
+ initInstanceProps: function(t, r) {
357
+ var a = t, n = a.estimatedItemSize, c = {
358
+ itemMetadataMap: {},
359
+ estimatedItemSize: n || fe,
360
+ lastMeasuredIndex: -1
361
+ };
362
+ return r.resetAfterIndex = function(s, h) {
363
+ h === void 0 && (h = !0), c.lastMeasuredIndex = Math.min(c.lastMeasuredIndex, s - 1), r._getItemStyleCache(-1), h && r.forceUpdate();
364
+ }, c;
365
+ },
366
+ shouldResetStyleCacheOnItemSizeChange: !1,
367
+ validateProps: function(t) {
368
+ var r = t.itemSize;
369
+ if (process.env.NODE_ENV !== "production" && typeof r != "function")
370
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
371
+ }
372
+ });
373
+ export {
374
+ Se as VariableSizeList
375
+ };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __exports as r } from "../../../_virtual/index5.js";
2
+ import { __exports as r } from "../../../_virtual/index6.js";
3
3
  import { __require as c } from "../../inline-style-parser/index.js";
4
4
  var f;
5
5
  function j() {