@datawire-ai/busyfile-design-library 1.30.5 → 1.30.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 (101) hide show
  1. package/dist/index10.js +28 -25
  2. package/dist/index100.js +124 -13
  3. package/dist/index101.js +134 -14
  4. package/dist/index102.js +13 -7
  5. package/dist/index103.js +16 -50
  6. package/dist/index104.js +8 -650
  7. package/dist/index105.js +50 -14
  8. package/dist/index106.js +215 -222
  9. package/dist/index107.js +29 -219
  10. package/dist/index108.js +11 -30
  11. package/dist/index109.js +4 -11
  12. package/dist/index110.js +13 -4
  13. package/dist/index111.js +13 -12
  14. package/dist/index112.js +226 -3
  15. package/dist/index113.js +3 -46
  16. package/dist/index114.js +46 -7
  17. package/dist/index115.js +648 -12
  18. package/dist/index116.js +12 -179
  19. package/dist/index121.js +1 -1
  20. package/dist/index123.js +1 -1
  21. package/dist/index217.js +2 -2
  22. package/dist/index218.js +2 -2
  23. package/dist/index221.js +3 -3
  24. package/dist/index222.js +1 -1
  25. package/dist/index223.js +2 -2
  26. package/dist/index225.js +1 -1
  27. package/dist/index226.js +2 -2
  28. package/dist/index227.js +1 -1
  29. package/dist/index228.js +6 -6
  30. package/dist/index229.js +3 -3
  31. package/dist/index23.js +38 -32
  32. package/dist/index230.js +1 -1
  33. package/dist/index231.js +1 -1
  34. package/dist/index232.js +3 -3
  35. package/dist/index233.js +1 -1
  36. package/dist/index234.js +1 -1
  37. package/dist/index236.js +1 -1
  38. package/dist/index237.js +1 -1
  39. package/dist/index238.js +1 -1
  40. package/dist/index239.js +2 -2
  41. package/dist/index240.js +2 -2
  42. package/dist/index241.js +3 -3
  43. package/dist/index242.js +2 -2
  44. package/dist/index243.js +1 -1
  45. package/dist/index245.js +1 -1
  46. package/dist/index246.js +2 -2
  47. package/dist/index247.js +1 -1
  48. package/dist/index274.js +1 -1
  49. package/dist/index276.js +1 -1
  50. package/dist/index277.js +2 -2
  51. package/dist/index282.js +5 -6
  52. package/dist/index283.js +5 -15
  53. package/dist/index284.js +4 -29
  54. package/dist/index285.js +15 -12
  55. package/dist/index286.js +8 -5
  56. package/dist/index287.js +5 -5
  57. package/dist/index288.js +5 -4
  58. package/dist/index289.js +512 -15
  59. package/dist/index290.js +50 -9
  60. package/dist/index291.js +17 -5
  61. package/dist/index292.js +6 -4
  62. package/dist/index293.js +8 -512
  63. package/dist/index294.js +8 -50
  64. package/dist/index295.js +8 -17
  65. package/dist/index296.js +12 -6
  66. package/dist/index297.js +10 -8
  67. package/dist/index298.js +14 -7
  68. package/dist/index299.js +6 -8
  69. package/dist/index300.js +15 -12
  70. package/dist/index301.js +28 -10
  71. package/dist/index302.js +12 -14
  72. package/dist/index40.js +1 -1
  73. package/dist/index41.js +1 -1
  74. package/dist/index42.js +4 -4
  75. package/dist/index44.js +7 -7
  76. package/dist/index46.js +5 -5
  77. package/dist/index49.js +12 -12
  78. package/dist/index52.js +10 -10
  79. package/dist/index59.js +5 -5
  80. package/dist/index63.js +1 -1
  81. package/dist/index72.js +6 -3
  82. package/dist/index74.js +1 -1
  83. package/dist/index75.js +7 -7
  84. package/dist/index80.js +2 -2
  85. package/dist/index82.js +18 -18
  86. package/dist/index83.js +1 -1
  87. package/dist/index85.js +13 -13
  88. package/dist/index86.js +4 -4
  89. package/dist/index87.js +6 -6
  90. package/dist/index89.js +5 -25
  91. package/dist/index90.js +23 -64
  92. package/dist/index91.js +66 -5
  93. package/dist/index92.js +1 -1
  94. package/dist/index94.js +1 -1
  95. package/dist/index95.js +32 -68
  96. package/dist/index96.js +68 -32
  97. package/dist/index97.js +181 -10
  98. package/dist/index98.js +7 -125
  99. package/dist/index99.js +10 -135
  100. package/dist/style.css +1 -1
  101. package/package.json +1 -1
package/dist/index116.js CHANGED
@@ -1,184 +1,17 @@
1
- "use client";
2
- import * as c from "react";
3
- import { composeEventHandlers as p } from "./index91.js";
4
- import { createCollection as V } from "./index113.js";
5
- import { useComposedRefs as j } from "./index89.js";
6
- import { createContextScope as z } from "./index90.js";
7
- import { useId as q } from "./index97.js";
8
- import { Primitive as G } from "./index96.js";
9
- import { useCallbackRef as J } from "./index109.js";
10
- import { useControllableState as Q } from "./index92.js";
11
- import { useDirection as W } from "./index114.js";
12
- import { jsx as d } from "react/jsx-runtime";
13
- var y = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [D, N, Z] = V(I), [$, Fe] = z(
14
- I,
15
- [Z]
16
- ), [ee, oe] = $(I), O = c.forwardRef(
17
- (e, r) => /* @__PURE__ */ d(D.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(D.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(te, { ...e, ref: r }) }) })
18
- );
19
- O.displayName = I;
20
- var te = c.forwardRef((e, r) => {
21
- const {
22
- __scopeRovingFocusGroup: s,
23
- orientation: o,
24
- loop: T = !1,
25
- dir: w,
26
- currentTabStopId: v,
27
- defaultCurrentTabStopId: C,
28
- onCurrentTabStopIdChange: S,
29
- onEntryFocus: m,
30
- preventScrollOnEntryFocus: u = !1,
31
- ...b
32
- } = e, F = c.useRef(null), g = j(r, F), R = W(w), [E, t] = Q({
33
- prop: v,
34
- defaultProp: C ?? null,
35
- onChange: S,
36
- caller: I
37
- }), [i, h] = c.useState(!1), a = J(m), l = N(s), A = c.useRef(!1), [L, P] = c.useState(0);
38
- return c.useEffect(() => {
39
- const n = F.current;
40
- if (n)
41
- return n.addEventListener(y, a), () => n.removeEventListener(y, a);
42
- }, [a]), /* @__PURE__ */ d(
43
- ee,
44
- {
45
- scope: s,
46
- orientation: o,
47
- dir: R,
48
- loop: T,
49
- currentTabStopId: E,
50
- onItemFocus: c.useCallback(
51
- (n) => t(n),
52
- [t]
53
- ),
54
- onItemShiftTab: c.useCallback(() => h(!0), []),
55
- onFocusableItemAdd: c.useCallback(
56
- () => P((n) => n + 1),
57
- []
58
- ),
59
- onFocusableItemRemove: c.useCallback(
60
- () => P((n) => n - 1),
61
- []
62
- ),
63
- children: /* @__PURE__ */ d(
64
- G.div,
65
- {
66
- tabIndex: i || L === 0 ? -1 : 0,
67
- "data-orientation": o,
68
- ...b,
69
- ref: g,
70
- style: { outline: "none", ...e.style },
71
- onMouseDown: p(e.onMouseDown, () => {
72
- A.current = !0;
73
- }),
74
- onFocus: p(e.onFocus, (n) => {
75
- const U = !A.current;
76
- if (n.target === n.currentTarget && U && !i) {
77
- const x = new CustomEvent(y, X);
78
- if (n.currentTarget.dispatchEvent(x), !x.defaultPrevented) {
79
- const _ = l().filter((f) => f.focusable), B = _.find((f) => f.active), Y = _.find((f) => f.id === E), H = [B, Y, ..._].filter(
80
- Boolean
81
- ).map((f) => f.ref.current);
82
- k(H, u);
83
- }
84
- }
85
- A.current = !1;
86
- }),
87
- onBlur: p(e.onBlur, () => h(!1))
88
- }
89
- )
90
- }
91
- );
92
- }), K = "RovingFocusGroupItem", M = c.forwardRef(
93
- (e, r) => {
94
- const {
95
- __scopeRovingFocusGroup: s,
96
- focusable: o = !0,
97
- active: T = !1,
98
- tabStopId: w,
99
- children: v,
100
- ...C
101
- } = e, S = q(), m = w || S, u = oe(K, s), b = u.currentTabStopId === m, F = N(s), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = u;
102
- return c.useEffect(() => {
103
- if (o)
104
- return g(), () => R();
105
- }, [o, g, R]), /* @__PURE__ */ d(
106
- D.ItemSlot,
107
- {
108
- scope: s,
109
- id: m,
110
- focusable: o,
111
- active: T,
112
- children: /* @__PURE__ */ d(
113
- G.span,
114
- {
115
- tabIndex: b ? 0 : -1,
116
- "data-orientation": u.orientation,
117
- ...C,
118
- ref: r,
119
- onMouseDown: p(e.onMouseDown, (t) => {
120
- o ? u.onItemFocus(m) : t.preventDefault();
121
- }),
122
- onFocus: p(e.onFocus, () => u.onItemFocus(m)),
123
- onKeyDown: p(e.onKeyDown, (t) => {
124
- if (t.key === "Tab" && t.shiftKey) {
125
- u.onItemShiftTab();
126
- return;
127
- }
128
- if (t.target !== t.currentTarget) return;
129
- const i = ce(t, u.orientation, u.dir);
130
- if (i !== void 0) {
131
- if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
132
- t.preventDefault();
133
- let a = F().filter((l) => l.focusable).map((l) => l.ref.current);
134
- if (i === "last") a.reverse();
135
- else if (i === "prev" || i === "next") {
136
- i === "prev" && a.reverse();
137
- const l = a.indexOf(t.currentTarget);
138
- a = u.loop ? se(a, l + 1) : a.slice(l + 1);
139
- }
140
- setTimeout(() => k(a));
141
- }
142
- }),
143
- children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
144
- }
145
- )
146
- }
147
- );
148
- }
149
- );
150
- M.displayName = K;
151
- var re = {
152
- ArrowLeft: "prev",
153
- ArrowUp: "prev",
154
- ArrowRight: "next",
155
- ArrowDown: "next",
156
- PageUp: "first",
157
- Home: "first",
158
- PageDown: "last",
159
- End: "last"
160
- };
161
- function ne(e, r) {
162
- return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
163
- }
164
- function ce(e, r, s) {
165
- const o = ne(e.key, s);
166
- if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
167
- return re[o];
1
+ var m = 1, j = 0.9, k = 0.8, B = 0.17, v = 0.1, w = 0.999, D = 0.9999, G = 0.99, H = /[\\\/_+.#"@\[\(\{&]/, J = /[\\\/_+.#"@\[\(\{&]/g, K = /[\s-]/, A = /[\s-]/g;
2
+ function $(t, o, e, i, n, h, u) {
3
+ if (h === o.length) return n === t.length ? m : G;
4
+ var s = `${n},${h}`;
5
+ if (u[s] !== void 0) return u[s];
6
+ for (var d = i.charAt(h), a = e.indexOf(d, n), l = 0, r, g, c, p; a >= 0; ) r = $(t, o, e, i, a + 1, h + 1, u), r > l && (a === n ? r *= m : H.test(t.charAt(a - 1)) ? (r *= k, c = t.slice(n, a - 1).match(J), c && n > 0 && (r *= Math.pow(w, c.length))) : K.test(t.charAt(a - 1)) ? (r *= j, p = t.slice(n, a - 1).match(A), p && n > 0 && (r *= Math.pow(w, p.length))) : (r *= B, n > 0 && (r *= Math.pow(w, a - n))), t.charAt(a) !== o.charAt(h) && (r *= D)), (r < v && e.charAt(a - 1) === i.charAt(h + 1) || i.charAt(h + 1) === i.charAt(h) && e.charAt(a - 1) !== i.charAt(h)) && (g = $(t, o, e, i, a + 1, h + 2, u), g * v > r && (r = g * v)), r > l && (l = r), a = e.indexOf(d, a + 1);
7
+ return u[s] = l, l;
168
8
  }
169
- function k(e, r = !1) {
170
- const s = document.activeElement;
171
- for (const o of e)
172
- if (o === s || (o.focus({ preventScroll: r }), document.activeElement !== s)) return;
9
+ function x(t) {
10
+ return t.toLowerCase().replace(A, " ");
173
11
  }
174
- function se(e, r) {
175
- return e.map((s, o) => e[(r + o) % e.length]);
12
+ function M(t, o, e) {
13
+ return t = e && e.length > 0 ? `${t + " " + e.join(" ")}` : t, $(t, o, x(t), x(o), 0, 0, {});
176
14
  }
177
- var ge = O, Re = M;
178
15
  export {
179
- Re as Item,
180
- ge as Root,
181
- O as RovingFocusGroup,
182
- M as RovingFocusGroupItem,
183
- Fe as createRovingFocusGroupScope
16
+ M as a
184
17
  };
package/dist/index121.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as r from "react";
2
- import { useCallbackRef as s } from "./index109.js";
2
+ import { useCallbackRef as s } from "./index108.js";
3
3
  function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
4
  const t = s(n);
5
5
  r.useEffect(() => {
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import { Primitive as p } from "./index96.js";
2
+ import { Primitive as p } from "./index95.js";
3
3
  import { jsx as o } from "react/jsx-runtime";
4
4
  var v = "Arrow", e = n.forwardRef((r, i) => {
5
5
  const { children: t, width: a = 10, height: s = 5, ...m } = r;
package/dist/index217.js CHANGED
@@ -1,5 +1,5 @@
1
- import { constructFrom as f } from "./index286.js";
2
- import { toDate as c } from "./index287.js";
1
+ import { constructFrom as f } from "./index282.js";
2
+ import { toDate as c } from "./index283.js";
3
3
  function N(a, t, e) {
4
4
  const r = c(a, e == null ? void 0 : e.in);
5
5
  return isNaN(t) ? f(a, NaN) : (t && r.setDate(r.getDate() + t), r);
package/dist/index218.js CHANGED
@@ -1,5 +1,5 @@
1
- import { constructFrom as f } from "./index286.js";
2
- import { toDate as c } from "./index287.js";
1
+ import { constructFrom as f } from "./index282.js";
2
+ import { toDate as c } from "./index283.js";
3
3
  function M(r, n, o) {
4
4
  const t = c(r, o == null ? void 0 : o.in);
5
5
  if (isNaN(n)) return f(r, NaN);
package/dist/index221.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getTimezoneOffsetInMilliseconds as a } from "./index289.js";
2
- import { normalizeDates as c } from "./index290.js";
3
- import { millisecondsInDay as D } from "./index288.js";
1
+ import { getTimezoneOffsetInMilliseconds as a } from "./index285.js";
2
+ import { normalizeDates as c } from "./index286.js";
3
+ import { millisecondsInDay as D } from "./index284.js";
4
4
  import { startOfDay as m } from "./index243.js";
5
5
  function p(n, i, e) {
6
6
  const [f, l] = c(
package/dist/index222.js CHANGED
@@ -1,4 +1,4 @@
1
- import { normalizeDates as c } from "./index290.js";
1
+ import { normalizeDates as c } from "./index286.js";
2
2
  function D(a, n, e) {
3
3
  const [t, r] = c(
4
4
  e == null ? void 0 : e.in,
package/dist/index223.js CHANGED
@@ -1,5 +1,5 @@
1
- import { normalizeInterval as m } from "./index291.js";
2
- import { constructFrom as d } from "./index286.js";
1
+ import { normalizeInterval as m } from "./index287.js";
2
+ import { constructFrom as d } from "./index282.js";
3
3
  function f(o, r) {
4
4
  const { start: t, end: n } = m(r == null ? void 0 : r.in, o);
5
5
  let s = +t > +n;
package/dist/index225.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as n } from "./index287.js";
1
+ import { toDate as n } from "./index283.js";
2
2
  function l(r, e) {
3
3
  const t = n(r, e == null ? void 0 : e.in), a = t.getMonth();
4
4
  return t.setFullYear(t.getFullYear(), a + 1, 0), t.setHours(23, 59, 59, 999), t;
package/dist/index226.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultOptions as n } from "./index292.js";
2
- import { toDate as w } from "./index287.js";
1
+ import { getDefaultOptions as n } from "./index288.js";
2
+ import { toDate as w } from "./index283.js";
3
3
  function m(k, e) {
4
4
  var c, O, l, d;
5
5
  const a = n(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((d = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : d.weekStartsOn) ?? 0, t = w(k, e == null ? void 0 : e.in), f = t.getDay(), u = (f < r ? -7 : 0) + 6 - (f - r);
package/dist/index227.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as u } from "./index287.js";
1
+ import { toDate as u } from "./index283.js";
2
2
  function f(t, r) {
3
3
  const e = u(t, r == null ? void 0 : r.in), a = e.getFullYear();
4
4
  return e.setFullYear(a + 1, 0, 0), e.setHours(23, 59, 59, 999), e;
package/dist/index228.js CHANGED
@@ -1,9 +1,9 @@
1
- import { getDefaultOptions as v } from "./index292.js";
2
- import { formatters as D } from "./index293.js";
3
- import { longFormatters as C } from "./index294.js";
4
- import { isProtectedWeekYearToken as S, isProtectedDayOfYearToken as R, warnOrThrowProtectedError as W } from "./index295.js";
5
- import { isValid as x } from "./index296.js";
6
- import { toDate as P } from "./index287.js";
1
+ import { getDefaultOptions as v } from "./index288.js";
2
+ import { formatters as D } from "./index289.js";
3
+ import { longFormatters as C } from "./index290.js";
4
+ import { isProtectedWeekYearToken as S, isProtectedDayOfYearToken as R, warnOrThrowProtectedError as W } from "./index291.js";
5
+ import { isValid as x } from "./index292.js";
6
+ import { toDate as P } from "./index283.js";
7
7
  import { enUS as Y } from "./index180.js";
8
8
  const z = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, F = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, y = /^'([^]*?)'?$/, A = /''/g, L = /[a-zA-Z]/;
9
9
  function U(t, c, e) {
package/dist/index229.js CHANGED
@@ -1,7 +1,7 @@
1
- import { millisecondsInWeek as m } from "./index288.js";
1
+ import { millisecondsInWeek as m } from "./index284.js";
2
2
  import { startOfISOWeek as a } from "./index244.js";
3
- import { startOfISOWeekYear as o } from "./index299.js";
4
- import { toDate as d } from "./index287.js";
3
+ import { startOfISOWeekYear as o } from "./index295.js";
4
+ import { toDate as d } from "./index283.js";
5
5
  function k(t, e) {
6
6
  const r = d(t, e == null ? void 0 : e.in), f = +a(r) - +o(r);
7
7
  return Math.round(f / m) + 1;
package/dist/index23.js CHANGED
@@ -1,45 +1,51 @@
1
- import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
- import { cn as t } from "./index37.js";
3
- import { navigationVariants as m, logoSectionVariants as l } from "./index72.js";
4
- import d from "./index73.js";
5
- function u({ className: i, children: n, ...r }) {
6
- return /* @__PURE__ */ a("nav", { className: t(m(), i), ...r, children: n });
1
+ import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
+ import { cn as e } from "./index37.js";
3
+ import { navigationVariants as d, navigationStartVariants as v, navigationEndVariants as f } from "./index72.js";
4
+ import l from "./index73.js";
5
+ const N = "14.375rem", u = "4.5rem";
6
+ function x({ className: i, children: t, ...a }) {
7
+ return /* @__PURE__ */ n("nav", { className: e(d(), i), ...a, children: t });
7
8
  }
8
- function g({
9
+ function I({
9
10
  children: i,
10
- className: n,
11
- isCollapsed: r,
12
- onToggleCollapse: e,
13
- logo: o,
14
- logoAlt: s
11
+ className: t,
12
+ isCollapsed: a,
13
+ onToggleCollapse: c,
14
+ logo: r,
15
+ logoAlt: m
15
16
  }) {
16
- return /* @__PURE__ */ c("div", { className: t(l(), n), children: [
17
- /* @__PURE__ */ a("div", { className: "flex items-center", children: /* @__PURE__ */ a(
18
- "img",
17
+ const o = typeof r != "string";
18
+ return /* @__PURE__ */ s("div", { className: e(v(), t), children: [
19
+ /* @__PURE__ */ s(
20
+ "div",
19
21
  {
20
- src: o,
21
- alt: s,
22
- className: r ? "hidden" : "w-auto max-w-32 pr-10"
22
+ className: `flex items-center ${a ? "justify-center" : "justify-between"}`,
23
+ style: {
24
+ width: a ? u : N
25
+ },
26
+ children: [
27
+ /* @__PURE__ */ n("div", { className: `${a ? "hidden" : "pl-4 max-w-32 min-w-32"}`, children: o ? /* @__PURE__ */ n("div", { children: r }) : /* @__PURE__ */ n("img", { src: r, alt: m }) }),
28
+ /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
29
+ l,
30
+ {
31
+ className: "h-5 w-5 cursor-pointer",
32
+ onClick: c
33
+ }
34
+ ) })
35
+ ]
23
36
  }
24
- ) }),
25
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
26
- d,
27
- {
28
- className: "h-5 w-5 cursor-pointer",
29
- onClick: e
30
- }
31
- ) }),
37
+ ),
32
38
  i
33
39
  ] });
34
40
  }
35
- function x({
41
+ function S({
36
42
  children: i,
37
- className: n
43
+ className: t
38
44
  }) {
39
- return /* @__PURE__ */ a("div", { className: t("flex items-center gap-2", n), children: i });
45
+ return /* @__PURE__ */ n("div", { className: e(f(), t), children: i });
40
46
  }
41
47
  export {
42
- u as Navigation,
43
- x as NavigationEnd,
44
- g as NavigationStart
48
+ x as Navigation,
49
+ S as NavigationEnd,
50
+ I as NavigationStart
45
51
  };
package/dist/index230.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as r } from "./index287.js";
1
+ import { toDate as r } from "./index283.js";
2
2
  function f(e, t) {
3
3
  return r(e, t == null ? void 0 : t.in).getMonth();
4
4
  }
package/dist/index231.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as a } from "./index287.js";
1
+ import { toDate as a } from "./index283.js";
2
2
  function u(r, e) {
3
3
  return a(r, e == null ? void 0 : e.in).getFullYear();
4
4
  }
package/dist/index232.js CHANGED
@@ -1,7 +1,7 @@
1
- import { millisecondsInWeek as m } from "./index288.js";
1
+ import { millisecondsInWeek as m } from "./index284.js";
2
2
  import { startOfWeek as a } from "./index246.js";
3
- import { startOfWeekYear as d } from "./index301.js";
4
- import { toDate as c } from "./index287.js";
3
+ import { startOfWeekYear as d } from "./index297.js";
4
+ import { toDate as c } from "./index283.js";
5
5
  function l(t, e) {
6
6
  const r = c(t, e == null ? void 0 : e.in), f = +a(r, e) - +d(r, e);
7
7
  return Math.round(f / m) + 1;
package/dist/index233.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as t } from "./index287.js";
1
+ import { toDate as t } from "./index283.js";
2
2
  function f(r, e) {
3
3
  return +t(r) > +t(e);
4
4
  }
package/dist/index234.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as t } from "./index287.js";
1
+ import { toDate as t } from "./index283.js";
2
2
  function f(e, o) {
3
3
  return +t(e) < +t(o);
4
4
  }
package/dist/index236.js CHANGED
@@ -1,4 +1,4 @@
1
- import { normalizeDates as d } from "./index290.js";
1
+ import { normalizeDates as d } from "./index286.js";
2
2
  import { startOfDay as t } from "./index243.js";
3
3
  function D(e, r, a) {
4
4
  const [f, m] = d(
package/dist/index237.js CHANGED
@@ -1,4 +1,4 @@
1
- import { normalizeDates as n } from "./index290.js";
1
+ import { normalizeDates as n } from "./index286.js";
2
2
  function g(r, l, e) {
3
3
  const [t, a] = n(
4
4
  e == null ? void 0 : e.in,
package/dist/index238.js CHANGED
@@ -1,4 +1,4 @@
1
- import { normalizeDates as u } from "./index290.js";
1
+ import { normalizeDates as u } from "./index286.js";
2
2
  function f(a, r, e) {
3
3
  const [l, t] = u(
4
4
  e == null ? void 0 : e.in,
package/dist/index239.js CHANGED
@@ -1,5 +1,5 @@
1
- import { constructFrom as a } from "./index286.js";
2
- import { toDate as m } from "./index287.js";
1
+ import { constructFrom as a } from "./index282.js";
2
+ import { toDate as m } from "./index283.js";
3
3
  function n(l, e) {
4
4
  let t, r = e == null ? void 0 : e.in;
5
5
  return l.forEach((f) => {
package/dist/index240.js CHANGED
@@ -1,5 +1,5 @@
1
- import { constructFrom as l } from "./index286.js";
2
- import { toDate as n } from "./index287.js";
1
+ import { constructFrom as l } from "./index282.js";
2
+ import { toDate as n } from "./index283.js";
3
3
  function a(m, e) {
4
4
  let t, r = e == null ? void 0 : e.in;
5
5
  return m.forEach((f) => {
package/dist/index241.js CHANGED
@@ -1,6 +1,6 @@
1
- import { constructFrom as m } from "./index286.js";
2
- import { getDaysInMonth as u } from "./index298.js";
3
- import { toDate as M } from "./index287.js";
1
+ import { constructFrom as m } from "./index282.js";
2
+ import { getDaysInMonth as u } from "./index294.js";
3
+ import { toDate as M } from "./index283.js";
4
4
  function d(n, o, e) {
5
5
  const t = M(n, e == null ? void 0 : e.in), a = t.getFullYear(), s = t.getDate(), r = m(n, 0);
6
6
  r.setFullYear(a, o, 15), r.setHours(0, 0, 0, 0);
package/dist/index242.js CHANGED
@@ -1,5 +1,5 @@
1
- import { constructFrom as u } from "./index286.js";
2
- import { toDate as f } from "./index287.js";
1
+ import { constructFrom as u } from "./index282.js";
2
+ import { toDate as f } from "./index283.js";
3
3
  function N(e, a, r) {
4
4
  const t = f(e, r == null ? void 0 : r.in);
5
5
  return isNaN(+t) ? u(e, NaN) : (t.setFullYear(a), t);
package/dist/index243.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as e } from "./index287.js";
1
+ import { toDate as e } from "./index283.js";
2
2
  function u(a, t) {
3
3
  const r = e(a, t == null ? void 0 : t.in);
4
4
  return r.setHours(0, 0, 0, 0), r;
package/dist/index245.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as a } from "./index287.js";
1
+ import { toDate as a } from "./index283.js";
2
2
  function u(r, t) {
3
3
  const e = a(r, t == null ? void 0 : t.in);
4
4
  return e.setDate(1), e.setHours(0, 0, 0, 0), e;
package/dist/index246.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultOptions as s } from "./index292.js";
2
- import { toDate as w } from "./index287.js";
1
+ import { getDefaultOptions as s } from "./index288.js";
2
+ import { toDate as w } from "./index283.js";
3
3
  function m(u, e) {
4
4
  var c, O, l, k;
5
5
  const a = s(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((k = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : k.weekStartsOn) ?? 0, t = w(u, e == null ? void 0 : e.in), f = t.getDay(), d = (f < r ? 7 : 0) + f - r;
package/dist/index247.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toDate as a } from "./index287.js";
1
+ import { toDate as a } from "./index283.js";
2
2
  function l(t, r) {
3
3
  const e = a(t, r == null ? void 0 : r.in);
4
4
  return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
package/dist/index274.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildFormatLongFn as t } from "./index282.js";
1
+ import { buildFormatLongFn as t } from "./index299.js";
2
2
  const m = {
3
3
  full: "EEEE, MMMM do, y",
4
4
  long: "MMMM do, y",
package/dist/index276.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildLocalizeFn as e } from "./index283.js";
1
+ import { buildLocalizeFn as e } from "./index300.js";
2
2
  const a = {
3
3
  narrow: ["B", "A"],
4
4
  abbreviated: ["BC", "AD"],
package/dist/index277.js CHANGED
@@ -1,5 +1,5 @@
1
- import { buildMatchFn as a } from "./index284.js";
2
- import { buildMatchPatternFn as i } from "./index285.js";
1
+ import { buildMatchFn as a } from "./index301.js";
2
+ import { buildMatchPatternFn as i } from "./index302.js";
3
3
  const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
4
4
  narrow: /^(b|a)/i,
5
5
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
package/dist/index282.js CHANGED
@@ -1,9 +1,8 @@
1
- function r(t) {
2
- return (d = {}) => {
3
- const n = d.width ? String(d.width) : t.defaultWidth;
4
- return t.formats[n] || t.formats[t.defaultWidth];
5
- };
1
+ import { constructFromSymbol as o } from "./index284.js";
2
+ function c(r, n) {
3
+ return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
6
4
  }
7
5
  export {
8
- r as buildFormatLongFn
6
+ c as constructFrom,
7
+ c as default
9
8
  };
package/dist/index283.js CHANGED
@@ -1,18 +1,8 @@
1
- function h(e) {
2
- return (a, t) => {
3
- const c = t != null && t.context ? String(t.context) : "standalone";
4
- let l;
5
- if (c === "formatting" && e.formattingValues) {
6
- const d = e.defaultFormattingWidth || e.defaultWidth, u = t != null && t.width ? String(t.width) : d;
7
- l = e.formattingValues[u] || e.formattingValues[d];
8
- } else {
9
- const d = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
10
- l = e.values[u] || e.values[d];
11
- }
12
- const f = e.argumentCallback ? e.argumentCallback(a) : a;
13
- return l[f];
14
- };
1
+ import { constructFrom as r } from "./index282.js";
2
+ function e(t, o) {
3
+ return r(o || t, t);
15
4
  }
16
5
  export {
17
- h as buildLocalizeFn
6
+ e as default,
7
+ e as toDate
18
8
  };
package/dist/index284.js CHANGED
@@ -1,31 +1,6 @@
1
- function P(t) {
2
- return (n, e = {}) => {
3
- const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
4
- if (!i)
5
- return null;
6
- const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
7
- // [TODO] -- I challenge you to fix the type
8
- s(c, (u) => u.test(r))
9
- );
10
- let a;
11
- a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
12
- // [TODO] -- I challenge you to fix the type
13
- e.valueCallback(a)
14
- ) : a;
15
- const f = n.slice(r.length);
16
- return { value: a, rest: f };
17
- };
18
- }
19
- function s(t, n) {
20
- for (const e in t)
21
- if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
22
- return e;
23
- }
24
- function o(t, n) {
25
- for (let e = 0; e < t.length; e++)
26
- if (n(t[e]))
27
- return e;
28
- }
1
+ const o = 6048e5, c = 864e5, n = Symbol.for("constructDateFrom");
29
2
  export {
30
- P as buildMatchFn
3
+ n as constructFromSymbol,
4
+ c as millisecondsInDay,
5
+ o as millisecondsInWeek
31
6
  };