@xola/ui-kit 2.0.0-86 → 2.0.0-87

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.
package/build/ui-kit.mjs CHANGED
@@ -6425,39 +6425,41 @@ const U = {
6425
6425
  }, M1 = ({
6426
6426
  ranges: e = ["day", "week", "month", "quarter", "year"],
6427
6427
  value: t,
6428
- onChange: o,
6429
- onSubmit: a
6428
+ showApply: o = !0,
6429
+ onChange: a,
6430
+ onSubmit: r
6430
6431
  }) => {
6431
- const r = (i) => {
6432
- const s = i.target.value, c = Kl[s]();
6433
- o(s, c);
6432
+ const i = (s) => {
6433
+ const c = s.target.value, u = Kl[c]();
6434
+ a(c, u);
6434
6435
  };
6435
6436
  return /* @__PURE__ */ n.createElement("div", {
6436
6437
  className: "flex space-x-2"
6437
6438
  }, /* @__PURE__ */ n.createElement(Et, {
6438
6439
  size: "medium",
6439
6440
  value: t,
6440
- onChange: r,
6441
+ onChange: i,
6441
6442
  className: "pr-8 leading-5"
6442
6443
  }, /* @__PURE__ */ n.createElement("option", {
6443
6444
  value: ""
6444
- }, "Relative Date Range"), e.map((i) => {
6445
- const s = Ql[i];
6445
+ }, "Relative Date Range"), e.map((s) => {
6446
+ const c = Ql[s];
6446
6447
  return /* @__PURE__ */ n.createElement("optgroup", {
6447
- key: i,
6448
- label: s.label
6449
- }, s.options.map((c) => /* @__PURE__ */ n.createElement("option", {
6450
- key: c.value,
6451
- value: c.value
6452
- }, c.label)));
6453
- })), /* @__PURE__ */ n.createElement(fe, {
6454
- onClick: a
6448
+ key: s,
6449
+ label: c.label
6450
+ }, c.options.map((u) => /* @__PURE__ */ n.createElement("option", {
6451
+ key: u.value,
6452
+ value: u.value
6453
+ }, u.label)));
6454
+ })), o && /* @__PURE__ */ n.createElement(fe, {
6455
+ onClick: r
6455
6456
  }, "Apply"));
6456
6457
  };
6457
6458
  M1.propTypes = {
6458
6459
  ranges: l.arrayOf(l.oneOf(["day", "week", "month", "quarter", "year"])),
6459
6460
  onChange: l.func.isRequired,
6460
6461
  onSubmit: l.func.isRequired,
6462
+ showApply: l.bool,
6461
6463
  value: l.string
6462
6464
  };
6463
6465
  const ft = {
@@ -11239,6 +11241,7 @@ export {
11239
11241
  Y2 as ReceptionBellIcon,
11240
11242
  J2 as ReceptionBellMoneyIcon,
11241
11243
  Z2 as RefreshIcon,
11244
+ M1 as RelativeDateRange,
11242
11245
  Y4 as RosterIcon,
11243
11246
  J4 as RoundedSquareIcon,
11244
11247
  U2 as RulerIcon,