@tsiky/components-r19 1.3.4 → 1.4.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 (47) hide show
  1. package/dist/{PeriodRange-BXSfe73g.js → PeriodRange-BpxD5xRJ.js} +103 -89
  2. package/dist/PeriodRange-NiT-19Z4.cjs +26 -0
  3. package/dist/chart.cjs.js +1 -1
  4. package/dist/chart.js +2 -2
  5. package/dist/components-r19.css +1 -1
  6. package/dist/index.cjs.js +1633 -1633
  7. package/dist/index.d.ts +4 -2
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +12846 -12535
  10. package/dist/src/components/BadgeList/BadgeList.d.ts +19 -0
  11. package/dist/src/components/BadgeList/BadgeList.d.ts.map +1 -0
  12. package/dist/src/components/BadgeList/index.d.ts +2 -0
  13. package/dist/src/components/BadgeList/index.d.ts.map +1 -0
  14. package/dist/src/components/CircularProgress/CircularProgress.d.ts +2 -0
  15. package/dist/src/components/CircularProgress/CircularProgress.d.ts.map +1 -1
  16. package/dist/src/components/Confirmationpopup/ConfirmationPopup.d.ts.map +1 -1
  17. package/dist/src/components/DashboardSummary/DashboardSummary.d.ts +25 -0
  18. package/dist/src/components/DashboardSummary/DashboardSummary.d.ts.map +1 -0
  19. package/dist/src/components/DashboardSummary/index.d.ts +2 -0
  20. package/dist/src/components/DashboardSummary/index.d.ts.map +1 -0
  21. package/dist/src/components/DayStatCard/DayStatCard.d.ts +2 -1
  22. package/dist/src/components/DayStatCard/DayStatCard.d.ts.map +1 -1
  23. package/dist/src/components/DropdownMenu/DropdownMenu.d.ts +19 -0
  24. package/dist/src/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  25. package/dist/src/components/DynamicInput/input/DateInput.d.ts +2 -0
  26. package/dist/src/components/DynamicInput/input/DateInput.d.ts.map +1 -1
  27. package/dist/src/components/DynamicTable/ColumnSorter.d.ts +1 -1
  28. package/dist/src/components/DynamicTable/ColumnSorter.d.ts.map +1 -1
  29. package/dist/src/components/DynamicTable/TableauDynamique.d.ts +3 -2
  30. package/dist/src/components/DynamicTable/TableauDynamique.d.ts.map +1 -1
  31. package/dist/src/components/Encours/Encours.d.ts +35 -0
  32. package/dist/src/components/Encours/Encours.d.ts.map +1 -0
  33. package/dist/src/components/Encours/index.d.ts +2 -0
  34. package/dist/src/components/Encours/index.d.ts.map +1 -0
  35. package/dist/src/components/ModuleSideBar/ModuleSideBar.d.ts.map +1 -1
  36. package/dist/src/components/PeriodRange/PeriodRange.d.ts +14 -2
  37. package/dist/src/components/PeriodRange/PeriodRange.d.ts.map +1 -1
  38. package/dist/src/components/PeriodRange/index.d.ts +3 -0
  39. package/dist/src/components/PeriodRange/index.d.ts.map +1 -0
  40. package/dist/src/components/TranslationKey/TranslationKey.d.ts.map +1 -1
  41. package/package.json +88 -88
  42. package/dist/PeriodRange-B53IzsZ7.cjs +0 -26
  43. package/dist/PeriodRange-B7crP6r3.js +0 -256
  44. package/dist/PeriodRange-Bk2LtI3D.cjs +0 -26
  45. package/dist/assets/index-C-LOvVBi.js +0 -986
  46. package/dist/assets/index-D8b4DHJx.css +0 -1
  47. package/dist/index.html +0 -14
@@ -1,18 +1,18 @@
1
- import { forwardRef as C, createElement as _, useState as w, useRef as W, useEffect as m } from "react";
2
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
1
+ import { forwardRef as W, createElement as v, useState as b, useRef as O, useEffect as m } from "react";
2
+ import { jsxs as d, jsx as o } from "react/jsx-runtime";
3
3
  /**
4
4
  * @license lucide-react v0.540.0 - ISC
5
5
  *
6
6
  * This source code is licensed under the ISC license.
7
7
  * See the LICENSE file in the root directory of this source tree.
8
8
  */
9
- const j = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), P = (e) => e.replace(
9
+ const M = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), x = (e) => e.replace(
10
10
  /^([A-Z])|[\s-_]+(\w)/g,
11
11
  (a, t, r) => r ? r.toUpperCase() : t.toLowerCase()
12
- ), y = (e) => {
13
- const a = P(e);
12
+ ), L = (e) => {
13
+ const a = x(e);
14
14
  return a.charAt(0).toUpperCase() + a.slice(1);
15
- }, N = (...e) => e.filter((a, t, r) => !!a && a.trim() !== "" && r.indexOf(a) === t).join(" ").trim(), I = (e) => {
15
+ }, k = (...e) => e.filter((a, t, r) => !!a && a.trim() !== "" && r.indexOf(a) === t).join(" ").trim(), R = (e) => {
16
16
  for (const a in e)
17
17
  if (a.startsWith("aria-") || a === "role" || a === "title")
18
18
  return !0;
@@ -23,7 +23,7 @@ const j = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), P = (e)
23
23
  * This source code is licensed under the ISC license.
24
24
  * See the LICENSE file in the root directory of this source tree.
25
25
  */
26
- var k = {
26
+ var S = {
27
27
  xmlns: "http://www.w3.org/2000/svg",
28
28
  width: 24,
29
29
  height: 24,
@@ -40,32 +40,32 @@ var k = {
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
42
  */
43
- const O = C(
43
+ const A = W(
44
44
  ({
45
45
  color: e = "currentColor",
46
46
  size: a = 24,
47
47
  strokeWidth: t = 2,
48
48
  absoluteStrokeWidth: r,
49
49
  className: l = "",
50
- children: i,
51
- iconNode: p,
52
- ...d
53
- }, u) => _(
50
+ children: c,
51
+ iconNode: g,
52
+ ...h
53
+ }, i) => v(
54
54
  "svg",
55
55
  {
56
- ref: u,
57
- ...k,
56
+ ref: i,
57
+ ...S,
58
58
  width: a,
59
59
  height: a,
60
60
  stroke: e,
61
61
  strokeWidth: r ? Number(t) * 24 / Number(a) : t,
62
- className: N("lucide", l),
63
- ...!i && !I(d) && { "aria-hidden": "true" },
64
- ...d
62
+ className: k("lucide", l),
63
+ ...!c && !R(h) && { "aria-hidden": "true" },
64
+ ...h
65
65
  },
66
66
  [
67
- ...p.map(([h, f]) => _(h, f)),
68
- ...Array.isArray(i) ? i : [i]
67
+ ...g.map(([p, u]) => v(p, u)),
68
+ ...Array.isArray(c) ? c : [c]
69
69
  ]
70
70
  )
71
71
  );
@@ -75,20 +75,20 @@ const O = C(
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
77
  */
78
- const M = (e, a) => {
79
- const t = C(
80
- ({ className: r, ...l }, i) => _(O, {
81
- ref: i,
78
+ const T = (e, a) => {
79
+ const t = W(
80
+ ({ className: r, ...l }, c) => v(A, {
81
+ ref: c,
82
82
  iconNode: a,
83
- className: N(
84
- `lucide-${j(y(e))}`,
83
+ className: k(
84
+ `lucide-${M(L(e))}`,
85
85
  `lucide-${e}`,
86
86
  r
87
87
  ),
88
88
  ...l
89
89
  })
90
90
  );
91
- return t.displayName = y(e), t;
91
+ return t.displayName = L(e), t;
92
92
  };
93
93
  /**
94
94
  * @license lucide-react v0.540.0 - ISC
@@ -96,19 +96,19 @@ const M = (e, a) => {
96
96
  * This source code is licensed under the ISC license.
97
97
  * See the LICENSE file in the root directory of this source tree.
98
98
  */
99
- const x = [
99
+ const E = [
100
100
  ["path", { d: "M12 2v20", key: "t6zp3m" }],
101
101
  ["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
102
102
  ["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
103
103
  ["path", { d: "M2 12h20", key: "9i4pu4" }],
104
104
  ["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
105
105
  ["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
106
- ], q = M("move", x);
107
- var J = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
108
- function Q(e) {
106
+ ], Y = T("move", E);
107
+ var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
108
+ function ae(e) {
109
109
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
110
110
  }
111
- function X(e) {
111
+ function te(e) {
112
112
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
113
113
  var a = e.default;
114
114
  if (typeof a == "function") {
@@ -132,45 +132,59 @@ function X(e) {
132
132
  });
133
133
  }), t;
134
134
  }
135
- const R = "_wrapper_urwzi_1", A = "_label_urwzi_27", S = "_labelText_urwzi_45", T = "_calendarIcon_urwzi_55", E = "_rangeRow_urwzi_65", F = "_dateWrap_urwzi_81", $ = "_innerLabel_urwzi_97", D = "_dateInput_urwzi_109", H = "_sepWrap_urwzi_137", V = "_separator_urwzi_151", B = "_samplingWrap_urwzi_163", U = "_samplingLabel_urwzi_181", Z = "_samplingSelect_urwzi_191", n = {
136
- wrapper: R,
137
- label: A,
138
- labelText: S,
139
- calendarIcon: T,
140
- rangeRow: E,
141
- dateWrap: F,
142
- innerLabel: $,
143
- dateInput: D,
144
- sepWrap: H,
145
- separator: V,
146
- samplingWrap: B,
147
- samplingLabel: U,
148
- samplingSelect: Z
135
+ const F = "_wrapper_1ogd3_1", $ = "_label_1ogd3_14", H = "_labelText_1ogd3_22", V = "_calendarIcon_1ogd3_26", z = "_rangeRow_1ogd3_31", B = "_dateWrap_1ogd3_39", D = "_innerLabel_1ogd3_47", U = "_dateInput_1ogd3_52", Z = "_sepWrap_1ogd3_65", G = "_separator_1ogd3_72", K = "_samplingWrap_1ogd3_77", q = "_samplingLabel_1ogd3_86", J = "_samplingSelect_1ogd3_90", n = {
136
+ wrapper: F,
137
+ label: $,
138
+ labelText: H,
139
+ calendarIcon: V,
140
+ rangeRow: z,
141
+ dateWrap: B,
142
+ innerLabel: D,
143
+ dateInput: U,
144
+ sepWrap: Z,
145
+ separator: G,
146
+ samplingWrap: K,
147
+ samplingLabel: q,
148
+ samplingSelect: J
149
149
  };
150
- function Y({
150
+ function re({
151
151
  start: e = "",
152
152
  end: a = "",
153
153
  onChange: t,
154
- sampling: r = "Par jour",
154
+ sampling: r = "day",
155
155
  onSamplingChange: l,
156
- className: i = ""
156
+ labels: c = {},
157
+ samplingOptions: g = {},
158
+ className: h = ""
157
159
  }) {
158
- const [p, d] = w(e), [u, h] = w(a), [f, b] = w(r), g = W(null);
159
- m(() => d(e), [e]), m(() => h(a), [a]), m(() => b(r), [r]), m(() => {
160
- function s(z) {
161
- const v = z.target;
162
- g.current && v && g.current.contains(v);
160
+ const i = {
161
+ period: "Période",
162
+ start: "Début",
163
+ end: "Fin",
164
+ sampling: "Échantillonnage",
165
+ ...c
166
+ }, p = {
167
+ hour: "Par heure",
168
+ day: "Par jour",
169
+ week: "Par semaine",
170
+ month: "Par mois",
171
+ ...g
172
+ }, [u, w] = b(e), [f, y] = b(a), [j, C] = b(r), _ = O(null);
173
+ m(() => w(e), [e]), m(() => y(a), [a]), m(() => C(r), [r]), m(() => {
174
+ function s(P) {
175
+ const N = P.target;
176
+ _.current && N && _.current.contains(N);
163
177
  }
164
178
  return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
165
179
  }, []), m(() => {
166
- t?.({ start: p, end: u });
167
- }, [p, u, t]);
168
- const L = (s) => {
169
- b(s), l?.(s);
180
+ t?.({ start: u, end: f });
181
+ }, [u, f, t]);
182
+ const I = (s) => {
183
+ C(s), l?.(s);
170
184
  };
171
- return /* @__PURE__ */ c("div", { className: `${n.wrapper} ${i}`, ref: g, children: [
172
- /* @__PURE__ */ c("label", { className: n.label, "aria-hidden": !0, children: [
173
- /* @__PURE__ */ c(
185
+ return /* @__PURE__ */ d("div", { className: `${n.wrapper} ${h}`, ref: _, children: [
186
+ /* @__PURE__ */ d("label", { className: n.label, "aria-hidden": !0, children: [
187
+ /* @__PURE__ */ d(
174
188
  "svg",
175
189
  {
176
190
  className: n.calendarIcon,
@@ -191,53 +205,53 @@ function Y({
191
205
  ]
192
206
  }
193
207
  ),
194
- /* @__PURE__ */ o("span", { className: n.labelText, children: "Période" })
208
+ /* @__PURE__ */ o("span", { className: n.labelText, children: i.period })
195
209
  ] }),
196
- /* @__PURE__ */ c("div", { className: n.rangeRow, children: [
197
- /* @__PURE__ */ c("div", { className: n.dateWrap, children: [
198
- /* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-from", children: "Début" }),
210
+ /* @__PURE__ */ d("div", { className: n.rangeRow, children: [
211
+ /* @__PURE__ */ d("div", { className: n.dateWrap, children: [
212
+ /* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-from", children: i.start }),
199
213
  /* @__PURE__ */ o(
200
214
  "input",
201
215
  {
202
216
  id: "period-from",
203
217
  className: n.dateInput,
204
218
  type: "date",
205
- value: p,
206
- onChange: (s) => d(s.target.value),
207
- "aria-label": "Date de début"
219
+ value: u,
220
+ onChange: (s) => w(s.target.value),
221
+ "aria-label": i.start
208
222
  }
209
223
  )
210
224
  ] }),
211
225
  /* @__PURE__ */ o("div", { className: n.sepWrap, "aria-hidden": !0, children: /* @__PURE__ */ o("span", { className: n.separator, children: "—" }) }),
212
- /* @__PURE__ */ c("div", { className: n.dateWrap, children: [
213
- /* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-to", children: "Fin" }),
226
+ /* @__PURE__ */ d("div", { className: n.dateWrap, children: [
227
+ /* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-to", children: i.end }),
214
228
  /* @__PURE__ */ o("div", { className: n.inputWithIcon, children: /* @__PURE__ */ o(
215
229
  "input",
216
230
  {
217
231
  id: "period-to",
218
232
  className: n.dateInput,
219
233
  type: "date",
220
- value: u,
221
- onChange: (s) => h(s.target.value),
222
- "aria-label": "Date de fin"
234
+ value: f,
235
+ onChange: (s) => y(s.target.value),
236
+ "aria-label": i.end
223
237
  }
224
238
  ) })
225
239
  ] }),
226
- /* @__PURE__ */ c("div", { className: n.samplingWrap, children: [
227
- /* @__PURE__ */ o("label", { className: n.samplingLabel, htmlFor: "period-sampling", children: "Échantillonnage" }),
228
- /* @__PURE__ */ c(
240
+ /* @__PURE__ */ d("div", { className: n.samplingWrap, children: [
241
+ /* @__PURE__ */ o("label", { className: n.samplingLabel, htmlFor: "period-sampling", children: i.sampling }),
242
+ /* @__PURE__ */ d(
229
243
  "select",
230
244
  {
231
245
  id: "period-sampling",
232
246
  className: n.samplingSelect,
233
- value: f,
234
- onChange: (s) => L(s.target.value),
235
- "aria-label": "Échantillonnage",
247
+ value: j,
248
+ onChange: (s) => I(s.target.value),
249
+ "aria-label": i.sampling,
236
250
  children: [
237
- /* @__PURE__ */ o("option", { children: "Par jour" }),
238
- /* @__PURE__ */ o("option", { children: "Par semaine" }),
239
- /* @__PURE__ */ o("option", { children: "Par mois" }),
240
- /* @__PURE__ */ o("option", { children: "Par heure" })
251
+ /* @__PURE__ */ o("option", { value: "hour", children: p.hour }),
252
+ /* @__PURE__ */ o("option", { value: "day", children: p.day }),
253
+ /* @__PURE__ */ o("option", { value: "week", children: p.week }),
254
+ /* @__PURE__ */ o("option", { value: "month", children: p.month })
241
255
  ]
242
256
  }
243
257
  )
@@ -246,11 +260,11 @@ function Y({
246
260
  ] });
247
261
  }
248
262
  export {
249
- O as I,
250
- q as M,
251
- Y as P,
252
- J as a,
253
- X as b,
254
- M as c,
255
- Q as g
263
+ A as I,
264
+ Y as M,
265
+ re as P,
266
+ ee as a,
267
+ te as b,
268
+ T as c,
269
+ ae as g
256
270
  };
@@ -0,0 +1,26 @@
1
+ "use strict";const s=require("react"),a=require("react/jsx-runtime");/**
2
+ * @license lucide-react v0.540.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const k=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),j=e=>{const t=I(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),P=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
+ * @license lucide-react v0.540.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var E={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
+ * @license lucide-react v0.540.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const x=s.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:d,iconNode:h,...m},i)=>s.createElement("svg",{ref:i,...E,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:y("lucide",l),...!d&&!P(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,u])=>s.createElement(p,u)),...Array.isArray(d)?d:[d]]));/**
17
+ * @license lucide-react v0.540.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const C=(e,t)=>{const r=s.forwardRef(({className:n,...l},d)=>s.createElement(x,{ref:d,iconNode:t,className:y(`lucide-${k(j(e))}`,`lucide-${e}`,n),...l}));return r.displayName=j(e),r};/**
22
+ * @license lucide-react v0.540.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const R=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],O=C("move",R);var S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}const F="_wrapper_1ogd3_1",T="_label_1ogd3_14",$="_labelText_1ogd3_22",H="_calendarIcon_1ogd3_26",D="_rangeRow_1ogd3_31",V="_dateWrap_1ogd3_39",z="_innerLabel_1ogd3_47",B="_dateInput_1ogd3_52",q="_sepWrap_1ogd3_65",G="_separator_1ogd3_72",U="_samplingWrap_1ogd3_77",Z="_samplingLabel_1ogd3_86",K="_samplingSelect_1ogd3_90",o={wrapper:F,label:T,labelText:$,calendarIcon:H,rangeRow:D,dateWrap:V,innerLabel:z,dateInput:B,sepWrap:q,separator:G,samplingWrap:U,samplingLabel:Z,samplingSelect:K};function J({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:l,labels:d={},samplingOptions:h={},className:m=""}){const i={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...d},p={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...h},[u,_]=s.useState(e),[g,b]=s.useState(t),[N,v]=s.useState(n),f=s.useRef(null);s.useEffect(()=>_(e),[e]),s.useEffect(()=>b(t),[t]),s.useEffect(()=>v(n),[n]),s.useEffect(()=>{function c(W){const w=W.target;f.current&&w&&f.current.contains(w)}return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.useEffect(()=>{r?.({start:u,end:g})},[u,g,r]);const L=c=>{v(c),l?.(c)};return a.jsxs("div",{className:`${o.wrapper} ${m}`,ref:f,children:[a.jsxs("label",{className:o.label,"aria-hidden":!0,children:[a.jsxs("svg",{className:o.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[a.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),a.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),a.jsx("span",{className:o.labelText,children:i.period})]}),a.jsxs("div",{className:o.rangeRow,children:[a.jsxs("div",{className:o.dateWrap,children:[a.jsx("label",{className:o.innerLabel,htmlFor:"period-from",children:i.start}),a.jsx("input",{id:"period-from",className:o.dateInput,type:"date",value:u,onChange:c=>_(c.target.value),"aria-label":i.start})]}),a.jsx("div",{className:o.sepWrap,"aria-hidden":!0,children:a.jsx("span",{className:o.separator,children:"—"})}),a.jsxs("div",{className:o.dateWrap,children:[a.jsx("label",{className:o.innerLabel,htmlFor:"period-to",children:i.end}),a.jsx("div",{className:o.inputWithIcon,children:a.jsx("input",{id:"period-to",className:o.dateInput,type:"date",value:g,onChange:c=>b(c.target.value),"aria-label":i.end})})]}),a.jsxs("div",{className:o.samplingWrap,children:[a.jsx("label",{className:o.samplingLabel,htmlFor:"period-sampling",children:i.sampling}),a.jsxs("select",{id:"period-sampling",className:o.samplingSelect,value:N,onChange:c=>L(c.target.value),"aria-label":i.sampling,children:[a.jsx("option",{value:"hour",children:p.hour}),a.jsx("option",{value:"day",children:p.day}),a.jsx("option",{value:"week",children:p.week}),a.jsx("option",{value:"month",children:p.month})]})]})]})]})}exports.Icon=x;exports.Move=O;exports.PeriodRange=J;exports.commonjsGlobal=S;exports.createLucideIcon=C;exports.getAugmentedNamespace=A;exports.getDefaultExportFromCjs=M;
package/dist/chart.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("react/jsx-runtime"),nt=require("react"),tt=require("./PeriodRange-B53IzsZ7.cjs");var Jt={};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("react/jsx-runtime"),nt=require("react"),tt=require("./PeriodRange-NiT-19Z4.cjs");var Jt={};/*!
2
2
  * ApexCharts v5.3.5
3
3
  * (c) 2018-2025 ApexCharts
4
4
  */function Ai(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,i=Array(e);t<e;t++)i[t]=o[t];return i}function Wa(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function q(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function ra(o,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,ja(i.key),i)}}function Z(o,e,t){return e&&ra(o.prototype,e),t&&ra(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function vt(o,e){var t=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Ni(o))||e){t&&(o=t);var i=0,a=function(){};return{s:a,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
package/dist/chart.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as ye, jsxs as Wi } from "react/jsx-runtime";
2
2
  import Fs, { useState as ra, useEffect as Na, useRef as Ds } from "react";
3
- import { b as _s, g as Ws, M as Vt } from "./PeriodRange-B7crP6r3.js";
4
- import { P as Pn } from "./PeriodRange-B7crP6r3.js";
3
+ import { b as _s, g as Ws, M as Vt } from "./PeriodRange-BpxD5xRJ.js";
4
+ import { P as Pn } from "./PeriodRange-BpxD5xRJ.js";
5
5
  var Kt = {};
6
6
  /*!
7
7
  * ApexCharts v5.3.5