@teamco/ischeduler-shadcn 2.0.10 → 2.0.12

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/dist/index.es.js CHANGED
@@ -7043,22 +7043,22 @@ var ed = (e) => {
7043
7043
  })]
7044
7044
  });
7045
7045
  }, td = (e) => {
7046
- let { disabled: t, value: n, startedAt: r, onChange: i } = e, { t: a } = y(), o = r ? M(r).add(1, "day") : M();
7046
+ let { disabled: t, value: n, startedAt: r, onChange: i } = e, { t: a } = y(), o = r ? M(r).add(1, "day") : M(), s = n?.toDate(), c = s && vn(s);
7047
7047
  return /* @__PURE__ */ F("div", {
7048
7048
  className: "flex flex-col gap-2",
7049
7049
  children: [/* @__PURE__ */ P(bt, { children: a("scheduler.duration.endDate") }), /* @__PURE__ */ F(Aa, { children: [/* @__PURE__ */ P(ja, {
7050
7050
  asChild: !0,
7051
7051
  children: /* @__PURE__ */ F(Oa, {
7052
7052
  variant: "outline",
7053
- className: V("w-full justify-start text-left font-normal", !n && "text-muted-foreground"),
7053
+ className: V("w-full justify-start text-left font-normal", !c && "text-muted-foreground"),
7054
7054
  disabled: t || !r,
7055
- children: [/* @__PURE__ */ P(Et, { className: "mr-2 h-4 w-4" }), n ? ur(n.toDate(), "PPP") : /* @__PURE__ */ P("span", { children: "Pick a date" })]
7055
+ children: [/* @__PURE__ */ P(Et, { className: "mr-2 h-4 w-4" }), c ? ur(s, "PPP") : /* @__PURE__ */ P("span", { children: "Pick a date" })]
7056
7056
  })
7057
7057
  }), /* @__PURE__ */ P(Ma, {
7058
7058
  className: "w-auto p-0",
7059
7059
  children: /* @__PURE__ */ P(ka, {
7060
7060
  mode: "single",
7061
- selected: n?.toDate(),
7061
+ selected: c ? s : void 0,
7062
7062
  onSelect: (e) => i?.(e ? M(e) : null),
7063
7063
  disabled: (e) => e < o.toDate(),
7064
7064
  initialFocus: !0
@@ -7079,11 +7079,11 @@ var ed = (e) => {
7079
7079
  })]
7080
7080
  });
7081
7081
  }, rd = (e) => {
7082
- let { t: n, loading: r } = y(), { value: o, onChange: s, disabled: u = !1, durationTypes: f = Object.keys(l), discountTypes: h = Object.keys(c), schedulerType: g } = e, _ = g === d.SALE ? a : i, [v, b] = j(() => _), x = o ?? v, [S, C] = j("0"), [w, T] = j(null);
7083
- D(() => {
7082
+ let { t: n, loading: r } = y(), { value: o, onChange: s, disabled: u = !1, durationTypes: f = Object.keys(l), discountTypes: h = Object.keys(c), schedulerType: g } = e, _ = k(() => g === d.SALE ? a : i, [g]), [v, b] = j(() => o ?? _), x = o ?? v, [S, C] = j("0"), [w, T] = j(null), [E, O] = j(o);
7083
+ o !== E && (b(o ?? _), O(o)), D(() => {
7084
7084
  x.range?.startedAt && p(M(x.range.startedAt), T), x.duration && m(x.duration, x, C, n);
7085
- }, [o, n]);
7086
- let E = (e, t) => {
7085
+ }, [x, n]);
7086
+ let A = (e, t) => {
7087
7087
  let n = e.split("."), r = (e, t, n) => {
7088
7088
  if (t.length === 1) return {
7089
7089
  ...e,
@@ -7108,7 +7108,7 @@ var ed = (e) => {
7108
7108
  className: "flex gap-2",
7109
7109
  children: [/* @__PURE__ */ F(Ht, {
7110
7110
  value: x.discount?.type || "",
7111
- onValueChange: (e) => E("discount.type", e),
7111
+ onValueChange: (e) => A("discount.type", e),
7112
7112
  disabled: u || r,
7113
7113
  children: [/* @__PURE__ */ P(Wt, {
7114
7114
  className: "w-[180px]",
@@ -7119,9 +7119,9 @@ var ed = (e) => {
7119
7119
  }, e)) })]
7120
7120
  }), /* @__PURE__ */ P(Qe, {
7121
7121
  type: "number",
7122
- value: x.discount?.value || "",
7122
+ value: x.discount?.value ?? "",
7123
7123
  disabled: u || r,
7124
- onChange: (e) => E("discount.value", parseInt(e.target.value, 10)),
7124
+ onChange: (e) => A("discount.value", parseInt(e.target.value, 10)),
7125
7125
  className: "flex-1"
7126
7126
  })]
7127
7127
  })]
@@ -7136,8 +7136,8 @@ var ed = (e) => {
7136
7136
  periodValue: x.duration?.period,
7137
7137
  durationTypes: f,
7138
7138
  required: !0,
7139
- onTypeChange: (e) => E("duration.type", e),
7140
- onValueChange: (e) => E("duration.period", e)
7139
+ onTypeChange: (e) => A("duration.type", e),
7140
+ onValueChange: (e) => A("duration.period", e)
7141
7141
  }), /* @__PURE__ */ F("div", {
7142
7142
  className: "flex flex-col gap-2",
7143
7143
  children: [/* @__PURE__ */ P(bt, { children: n("scheduler.startedAt") }), /* @__PURE__ */ F(Aa, { children: [/* @__PURE__ */ P(ja, {
@@ -7152,8 +7152,8 @@ var ed = (e) => {
7152
7152
  className: "w-auto p-0",
7153
7153
  children: /* @__PURE__ */ P(ka, {
7154
7154
  mode: "single",
7155
- selected: M(x.range?.startedAt).toDate(),
7156
- onSelect: (e) => E("range.startedAt", e ? M(e).toISOString() : null),
7155
+ selected: x.range?.startedAt ? M(x.range.startedAt).toDate() : void 0,
7156
+ onSelect: (e) => A("range.startedAt", e ? M(e).toISOString() : null),
7157
7157
  initialFocus: !0
7158
7158
  })
7159
7159
  })] })]
@@ -7161,28 +7161,28 @@ var ed = (e) => {
7161
7161
  }),
7162
7162
  x.duration?.type === "WEEK" && /* @__PURE__ */ P(Fa, {
7163
7163
  value: x.repeat?.weekly?.days,
7164
- onChange: (e) => E("repeat.weekly.days", e),
7164
+ onChange: (e) => A("repeat.weekly.days", e),
7165
7165
  disabled: u,
7166
7166
  setOccurs: C,
7167
7167
  scheduler: x
7168
7168
  }),
7169
7169
  x.duration?.type === "MONTH" && /* @__PURE__ */ P(as, {
7170
7170
  value: x.repeat?.monthly,
7171
- onChange: (e) => E("repeat.monthly", e),
7172
- onWeeklyChange: (e) => E("repeat.weekly.days", e),
7171
+ onChange: (e) => A("repeat.monthly", e),
7172
+ onWeeklyChange: (e) => A("repeat.weekly.days", e),
7173
7173
  disabled: u,
7174
7174
  setOccurs: C,
7175
7175
  scheduler: x
7176
7176
  }),
7177
7177
  x.duration?.type === "YEAR" && /* @__PURE__ */ P(ed, {
7178
7178
  value: x.repeat?.yearly,
7179
- onChange: (e) => E("repeat.yearly", e),
7179
+ onChange: (e) => A("repeat.yearly", e),
7180
7180
  disabled: u,
7181
7181
  setOccurs: C,
7182
7182
  scheduler: x,
7183
7183
  repeatMonthly: x.repeat?.monthly,
7184
- onMonthlyChange: (e) => E("repeat.monthly", e),
7185
- onWeeklyChange: (e) => E("repeat.weekly.days", e)
7184
+ onMonthlyChange: (e) => A("repeat.monthly", e),
7185
+ onWeeklyChange: (e) => A("repeat.weekly.days", e)
7186
7186
  }),
7187
7187
  /* @__PURE__ */ F("div", {
7188
7188
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
@@ -7190,7 +7190,7 @@ var ed = (e) => {
7190
7190
  className: "flex flex-col gap-2",
7191
7191
  children: [/* @__PURE__ */ P(bt, { children: n("scheduler.duration.end") }), /* @__PURE__ */ F(Ht, {
7192
7192
  value: x.range?.endReason?.type || "",
7193
- onValueChange: (e) => E("range.endReason.type", e),
7193
+ onValueChange: (e) => A("range.endReason.type", e),
7194
7194
  disabled: u,
7195
7195
  children: [/* @__PURE__ */ P(Wt, { children: /* @__PURE__ */ P(Ut, { placeholder: n("scheduler.duration.end") }) }), /* @__PURE__ */ P(qt, { children: [
7196
7196
  {
@@ -7215,11 +7215,11 @@ var ed = (e) => {
7215
7215
  children: [x.range?.endReason?.type === t[0] && /* @__PURE__ */ P(td, {
7216
7216
  value: M(x.range?.endReason?.expiredAt),
7217
7217
  startedAt: M(x.range?.startedAt),
7218
- onChange: (e) => E("range.endReason.expiredAt", e ? e.toISOString() : null),
7218
+ onChange: (e) => A("range.endReason.expiredAt", e ? e.toISOString() : null),
7219
7219
  disabled: u
7220
7220
  }), x.range?.endReason?.type === t[1] && /* @__PURE__ */ P(nd, {
7221
7221
  value: x.range?.endReason?.occurrences,
7222
- onChange: (e) => E("range.endReason.occurrences", e),
7222
+ onChange: (e) => A("range.endReason.occurrences", e),
7223
7223
  disabled: u
7224
7224
  })]
7225
7225
  })]
@@ -7347,20 +7347,20 @@ var Sd = (e) => {
7347
7347
  children: [r ? /* @__PURE__ */ P(Pt, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ P(Lt, { className: "h-4 w-4" }), u]
7348
7348
  });
7349
7349
  }, Cd = ({ schedulerType: e, disabled: t, onSuccess: n, setDirty: s, dirty: c, isCreating: l, setIsCreating: u, buttonProps: f }) => {
7350
- let { t: p, loading: m, permissions: h, onCreate: g } = y(), [_, v] = j(!1), b = k(() => e === d.SALE ? a : i, [e]), [x, S] = j(b);
7350
+ let { t: p, loading: m, permissions: h, onCreate: g, limit: _ = o } = y(), [v, b] = j(!1), x = k(() => e === d.SALE ? a : i, [e]), [S, C] = j(x);
7351
7351
  if (!h.canCreate) return null;
7352
- let C = (e) => {
7353
- e ? S(b) : s(!1), v(e);
7354
- }, w = async () => {
7352
+ let w = (e) => {
7353
+ e ? C(x) : s(!1), b(e);
7354
+ }, T = async () => {
7355
7355
  try {
7356
7356
  u(!0);
7357
7357
  let t = {
7358
7358
  id: `new-${Date.now()}`,
7359
- ...x,
7359
+ ...S,
7360
7360
  type: e,
7361
- [r]: e === d.SALE ? null : x?.[r]
7361
+ [r]: e === d.SALE ? null : S?.[r]
7362
7362
  };
7363
- g && await g(e, t), n?.(t), v(!1), s(!1);
7363
+ g && await g(e, t), n?.(t), b(!1), s(!1);
7364
7364
  } catch (e) {
7365
7365
  console.error("Failed to save scheduler:", e);
7366
7366
  } finally {
@@ -7368,8 +7368,8 @@ var Sd = (e) => {
7368
7368
  }
7369
7369
  };
7370
7370
  return /* @__PURE__ */ F(fd, {
7371
- open: _,
7372
- onOpenChange: C,
7371
+ open: v,
7372
+ onOpenChange: w,
7373
7373
  children: [/* @__PURE__ */ P(Xu, { children: /* @__PURE__ */ F(Zu, { children: [/* @__PURE__ */ P(Qu, {
7374
7374
  asChild: !0,
7375
7375
  children: /* @__PURE__ */ P(pd, {
@@ -7382,7 +7382,7 @@ var Sd = (e) => {
7382
7382
  children: p("scheduler")
7383
7383
  })
7384
7384
  })
7385
- }), t && /* @__PURE__ */ P($u, { children: /* @__PURE__ */ P("p", { children: p("scheduler.limited", { limit: o }) }) })] }) }), /* @__PURE__ */ F(_d, {
7385
+ }), t && /* @__PURE__ */ P($u, { children: /* @__PURE__ */ P("p", { children: p("scheduler.limited", { limit: _ }) }) })] }) }), /* @__PURE__ */ F(_d, {
7386
7386
  className: "w-full sm:max-w-[600px] overflow-y-auto",
7387
7387
  children: [/* @__PURE__ */ F(vd, {
7388
7388
  className: "flex flex-row items-center justify-between space-y-0 pb-4 border-b",
@@ -7394,21 +7394,21 @@ var Sd = (e) => {
7394
7394
  children: [/* @__PURE__ */ P(Oa, {
7395
7395
  variant: "ghost",
7396
7396
  size: "sm",
7397
- onClick: () => v(!1),
7397
+ onClick: () => b(!1),
7398
7398
  children: /* @__PURE__ */ P(Vt, { className: "h-4 w-4" })
7399
7399
  }), /* @__PURE__ */ P(Sd, {
7400
7400
  loading: m || l,
7401
7401
  disabled: t || !c,
7402
- onClick: w
7402
+ onClick: T
7403
7403
  })]
7404
7404
  })]
7405
7405
  }), /* @__PURE__ */ P("div", {
7406
7406
  className: "mt-6",
7407
7407
  children: /* @__PURE__ */ P(rd, {
7408
7408
  schedulerType: e,
7409
- value: x,
7409
+ value: S,
7410
7410
  onChange: (e) => {
7411
- S(e), s(!0);
7411
+ C(e), s(!0);
7412
7412
  },
7413
7413
  disabled: t
7414
7414
  })
@@ -9257,43 +9257,43 @@ var pg = (e) => {
9257
9257
  key: "actions",
9258
9258
  width: "100px"
9259
9259
  }), Sg = (e) => {
9260
- let { type: t, title: n, disabled: r, readOnlyFields: i = [], currency: a, onRefresh: s } = e, { schedulers: c, loading: l, disabled: u, t: d, permissions: f, onUpdate: p, onDelete: m } = y(), h = r ?? u, g = c[t] ?? [], [_, b] = j(/* @__PURE__ */ new Set()), [x, S] = j(!1), [C, w] = j(!1), [T, E] = j(!1), [D, O] = j(null), A = k(() => {
9261
- let e = g;
9262
- return _.size > 0 && (e = e.filter((e) => !e.id || !_.has(e.id))), yg(e);
9263
- }, [g, _]), M = A.length >= o, N = (e) => {
9264
- O(JSON.parse(JSON.stringify(e))), E(!0), S(!1);
9265
- }, I = async () => {
9266
- if (!(!D || !p)) try {
9267
- await p(t, D), E(!1), O(null), S(!1), s?.();
9260
+ let { type: t, title: n, disabled: r, readOnlyFields: i = [], currency: a, onRefresh: s } = e, { schedulers: c, loading: l, limit: u = o, disabled: d, t: f, permissions: p, onUpdate: m, onDelete: h } = y(), g = r ?? d, _ = c[t] ?? [], [b, x] = j(/* @__PURE__ */ new Set()), [S, C] = j(!1), [w, T] = j(!1), [E, D] = j(!1), [O, A] = j(null), M = k(() => {
9261
+ let e = _;
9262
+ return b.size > 0 && (e = e.filter((e) => !e.id || !b.has(e.id))), yg(e);
9263
+ }, [_, b]), N = M.length >= u, I = (e) => {
9264
+ A(JSON.parse(JSON.stringify(e))), D(!0), C(!1);
9265
+ }, ee = async () => {
9266
+ if (!(!O || !m)) try {
9267
+ await m(t, O), D(!1), A(null), C(!1), s?.();
9268
9268
  } catch (e) {
9269
9269
  console.error("Failed to update scheduler:", e);
9270
9270
  }
9271
- }, ee = async (e) => {
9271
+ }, L = async (e) => {
9272
9272
  if (e.id?.startsWith("new-")) {
9273
- b((t) => {
9273
+ x((t) => {
9274
9274
  let n = new Set(t);
9275
9275
  return e.id && n.add(e.id), n;
9276
9276
  });
9277
9277
  return;
9278
9278
  }
9279
- m && e.id && (await m(t, e.id), s?.());
9280
- }, { filteredColumns: L, columnsList: te, selectedColumns: R, setSelectedColumns: ne } = v(k(() => vg({
9281
- disabled: h,
9279
+ h && e.id && (await h(t, e.id), s?.());
9280
+ }, { filteredColumns: te, columnsList: R, selectedColumns: ne, setSelectedColumns: re } = v(k(() => vg({
9281
+ disabled: g,
9282
9282
  schedulerType: t,
9283
- entities: A,
9283
+ entities: M,
9284
9284
  currency: a,
9285
- t: d,
9286
- onEdit: f.canUpdate ? N : void 0,
9287
- onDelete: f.canDelete ? ee : void 0
9285
+ t: f,
9286
+ onEdit: p.canUpdate ? I : void 0,
9287
+ onDelete: p.canDelete ? L : void 0
9288
9288
  }), [
9289
- h,
9289
+ g,
9290
9290
  t,
9291
- A,
9291
+ M,
9292
9292
  a,
9293
- d,
9294
- f.canUpdate,
9295
- f.canDelete,
9296
- ee
9293
+ f,
9294
+ p.canUpdate,
9295
+ p.canDelete,
9296
+ L
9297
9297
  ]));
9298
9298
  return /* @__PURE__ */ F("div", {
9299
9299
  className: "w-full space-y-4",
@@ -9305,13 +9305,13 @@ var pg = (e) => {
9305
9305
  children: n
9306
9306
  }), /* @__PURE__ */ F("div", {
9307
9307
  className: "ml-auto flex items-center gap-2",
9308
- children: [f.canCreate && !M && /* @__PURE__ */ P(Cd, {
9309
- setDirty: S,
9310
- dirty: x,
9311
- isCreating: C,
9312
- setIsCreating: w,
9308
+ children: [p.canCreate && !N && /* @__PURE__ */ P(Cd, {
9309
+ setDirty: C,
9310
+ dirty: S,
9311
+ isCreating: w,
9312
+ setIsCreating: T,
9313
9313
  schedulerType: t,
9314
- disabled: h || l || M || C,
9314
+ disabled: g || l || N || w,
9315
9315
  onSuccess: () => s?.(),
9316
9316
  buttonProps: {
9317
9317
  variant: "outline",
@@ -9320,65 +9320,65 @@ var pg = (e) => {
9320
9320
  }), /* @__PURE__ */ P($h, {
9321
9321
  onRefresh: s,
9322
9322
  children: /* @__PURE__ */ P(Qh, {
9323
- columnsList: te,
9324
- selectedColumns: R,
9325
- onChange: ne
9323
+ columnsList: R,
9324
+ selectedColumns: ne,
9325
+ onChange: re
9326
9326
  })
9327
9327
  })]
9328
9328
  })]
9329
9329
  }),
9330
9330
  /* @__PURE__ */ P("div", {
9331
9331
  className: "rounded-md border",
9332
- children: /* @__PURE__ */ F(id, { children: [/* @__PURE__ */ P(ad, { children: /* @__PURE__ */ P(cd, { children: L.filter((e) => !e.hidden).map((e) => /* @__PURE__ */ P(ld, {
9332
+ children: /* @__PURE__ */ F(id, { children: [/* @__PURE__ */ P(ad, { children: /* @__PURE__ */ P(cd, { children: te.filter((e) => !e.hidden).map((e) => /* @__PURE__ */ P(ld, {
9333
9333
  className: e.className,
9334
9334
  children: e.label
9335
- }, e.id)) }) }), /* @__PURE__ */ F(od, { children: [A.map((e) => /* @__PURE__ */ P(cd, { children: L.filter((e) => !e.hidden).map((t) => {
9335
+ }, e.id)) }) }), /* @__PURE__ */ F(od, { children: [M.map((e) => /* @__PURE__ */ P(cd, { children: te.filter((e) => !e.hidden).map((t) => {
9336
9336
  let n = t.id.includes(".") ? t.id.split(".").reduce((e, t) => e?.[t], e) : e[t.id];
9337
9337
  return /* @__PURE__ */ P(ud, {
9338
9338
  className: t.className,
9339
9339
  children: t.format ? t.format(n, e) : n
9340
9340
  }, t.id);
9341
- }) }, e.key)), A.length === 0 && /* @__PURE__ */ P(cd, { children: /* @__PURE__ */ P(ud, {
9342
- colSpan: L.length,
9341
+ }) }, e.key)), M.length === 0 && /* @__PURE__ */ P(cd, { children: /* @__PURE__ */ P(ud, {
9342
+ colSpan: te.length,
9343
9343
  className: "h-24 text-center",
9344
- children: d("table.noData") || "No items found"
9344
+ children: f("table.noData") || "No items found"
9345
9345
  }) })] })] })
9346
9346
  }),
9347
9347
  /* @__PURE__ */ P(fd, {
9348
- open: T,
9349
- onOpenChange: (e) => !e && E(!1),
9348
+ open: E,
9349
+ onOpenChange: (e) => !e && D(!1),
9350
9350
  children: /* @__PURE__ */ F(_d, {
9351
9351
  className: "w-full sm:max-w-[600px] overflow-y-auto",
9352
9352
  children: [/* @__PURE__ */ F(vd, {
9353
9353
  className: "flex flex-row items-center justify-between space-y-0 pb-4 border-b",
9354
9354
  children: [/* @__PURE__ */ F("div", {
9355
9355
  className: "flex items-center gap-2",
9356
- children: [/* @__PURE__ */ P(Tt, { className: "h-5 w-5 text-primary" }), /* @__PURE__ */ P(bd, { children: n ?? d("scheduler") })]
9356
+ children: [/* @__PURE__ */ P(Tt, { className: "h-5 w-5 text-primary" }), /* @__PURE__ */ P(bd, { children: n ?? f("scheduler") })]
9357
9357
  }), /* @__PURE__ */ F("div", {
9358
9358
  className: "flex items-center gap-2",
9359
9359
  children: [/* @__PURE__ */ P(Oa, {
9360
9360
  variant: "ghost",
9361
9361
  size: "sm",
9362
9362
  onClick: () => {
9363
- E(!1), O(null);
9363
+ D(!1), A(null);
9364
9364
  },
9365
9365
  children: /* @__PURE__ */ P(Vt, { className: "h-4 w-4" })
9366
9366
  }), /* @__PURE__ */ P(Sd, {
9367
9367
  isEdit: !0,
9368
9368
  loading: l,
9369
- disabled: h || !x || C,
9370
- onClick: I
9369
+ disabled: g || !S || w,
9370
+ onClick: ee
9371
9371
  })]
9372
9372
  })]
9373
9373
  }), /* @__PURE__ */ P("div", {
9374
9374
  className: "mt-6",
9375
- children: T && D && /* @__PURE__ */ P(rd, {
9375
+ children: E && O && /* @__PURE__ */ P(rd, {
9376
9376
  schedulerType: t,
9377
- value: D,
9377
+ value: O,
9378
9378
  onChange: (e) => {
9379
- O(e), S(!0);
9379
+ A(e), C(!0);
9380
9380
  },
9381
- disabled: h,
9381
+ disabled: g,
9382
9382
  readOnlyFields: i
9383
9383
  })
9384
9384
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"Scheduler.d.ts","sourceRoot":"","sources":["Scheduler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAEL,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,UAAU,EAMX,MAAM,yBAAyB,CAAC;AAyBjC,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,aAAa,EAAE,gBAAgB,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,MAAM,OAAO,aAAa,CAAC,EAAE,CAAC;IAC/C,aAAa,CAAC,EAAE,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiO/C,CAAC"}
1
+ {"version":3,"file":"Scheduler.d.ts","sourceRoot":"","sources":["Scheduler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,EAEL,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,UAAU,EAMX,MAAM,yBAAyB,CAAC;AAyBjC,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,aAAa,EAAE,gBAAgB,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,MAAM,OAAO,aAAa,CAAC,EAAE,CAAC;IAC/C,aAAa,CAAC,EAAE,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwO/C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ButtonProps } from "./ui/button";
2
+ import { ButtonProps } from './ui/button';
3
3
  import { ESchedulerPrefix, IScheduler } from '@teamco/ischeduler-core';
4
4
  export declare type SchedulerDrawerButtonProps = {
5
5
  schedulerType: ESchedulerPrefix;
@@ -1 +1 @@
1
- {"version":3,"file":"SchedulerDrawerButton.d.ts","sourceRoot":"","sources":["SchedulerDrawerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAEL,WAAW,EACZ,MAAM,aAAa,CAAA;AAUpB,OAAO,EACL,gBAAgB,EAChB,UAAU,EAKX,MAAM,yBAAyB,CAAC;AAKjC,oBAAY,0BAA0B,GAAG;IACvC,aAAa,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAmHtE,CAAC"}
1
+ {"version":3,"file":"SchedulerDrawerButton.d.ts","sourceRoot":"","sources":["SchedulerDrawerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAU,WAAW,EAAE,MAAM,aAAa,CAAC;AAIlD,OAAO,EAEL,gBAAgB,EAChB,UAAU,EAKX,MAAM,yBAAyB,CAAC;AAKjC,oBAAY,0BAA0B,GAAG;IACvC,aAAa,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAmHtE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SchedulersList.d.ts","sourceRoot":"","sources":["SchedulersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAajD,OAAO,EAGL,gBAAgB,EAChB,SAAS,EAGV,MAAM,yBAAyB,CAAC;AAEjC,oBAAY,mBAAmB,GAAG;IAChC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2NxD,CAAC"}
1
+ {"version":3,"file":"SchedulersList.d.ts","sourceRoot":"","sources":["SchedulersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAajD,OAAO,EAGL,gBAAgB,EAChB,SAAS,EAGV,MAAM,yBAAyB,CAAC;AAEjC,oBAAY,mBAAmB,GAAG;IAChC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4NxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OnThisDayBehavior.d.ts","sourceRoot":"","sources":["OnThisDayBehavior.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AASrC,aAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmCvD,CAAC"}
1
+ {"version":3,"file":"OnThisDayBehavior.d.ts","sourceRoot":"","sources":["OnThisDayBehavior.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AASrC,aAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsCvD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamco/ischeduler-shadcn",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "iScheduler UI components for React + shadcn/ui (Radix UI + Tailwind)",
5
5
  "license": "MIT",
6
6
  "repository": {