@devalok/shilp-sutra-karm 0.1.0 → 0.2.0

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 (64) hide show
  1. package/dist/admin/break/break-admin.d.ts.map +1 -1
  2. package/dist/admin/break/break-admin.js +205 -179
  3. package/dist/admin/break/delete-break.d.ts +2 -4
  4. package/dist/admin/break/delete-break.d.ts.map +1 -1
  5. package/dist/admin/break/delete-break.js +20 -19
  6. package/dist/admin/break/edit-break-balance.d.ts +2 -4
  7. package/dist/admin/break/edit-break-balance.d.ts.map +1 -1
  8. package/dist/admin/break/edit-break-balance.js +20 -19
  9. package/dist/admin/break/edit-break.d.ts +2 -4
  10. package/dist/admin/break/edit-break.d.ts.map +1 -1
  11. package/dist/admin/break/edit-break.js +114 -147
  12. package/dist/admin/break/header.d.ts.map +1 -1
  13. package/dist/admin/break/header.js +52 -50
  14. package/dist/admin/break/leave-request.d.ts +4 -6
  15. package/dist/admin/break/leave-request.d.ts.map +1 -1
  16. package/dist/admin/break/leave-request.js +57 -58
  17. package/dist/admin/dashboard/admin-dashboard.js +2 -2
  18. package/dist/admin/dashboard/associate-detail.d.ts.map +1 -1
  19. package/dist/admin/dashboard/associate-detail.js +46 -57
  20. package/dist/admin/dashboard/attendance-overview.d.ts.map +1 -1
  21. package/dist/admin/dashboard/attendance-overview.js +2 -4
  22. package/dist/admin/dashboard/break-request.d.ts.map +1 -1
  23. package/dist/admin/dashboard/break-request.js +31 -30
  24. package/dist/admin/dashboard/calendar.js +1 -1
  25. package/dist/admin/dashboard/correction-list.d.ts.map +1 -1
  26. package/dist/admin/dashboard/correction-list.js +49 -47
  27. package/dist/admin/dashboard/dashboard-header.d.ts.map +1 -1
  28. package/dist/admin/dashboard/dashboard-header.js +7 -6
  29. package/dist/admin/dashboard/dashboard-skeleton.d.ts.map +1 -1
  30. package/dist/admin/dashboard/dashboard-skeleton.js +11 -13
  31. package/dist/admin/dashboard/leave-requests.d.ts.map +1 -1
  32. package/dist/admin/dashboard/leave-requests.js +78 -75
  33. package/dist/admin/index.d.ts +1 -1
  34. package/dist/admin/index.d.ts.map +1 -1
  35. package/dist/admin/index.js +8 -8
  36. package/dist/admin/utils/render-adjustment-type.d.ts +1 -1
  37. package/dist/admin/utils/render-adjustment-type.d.ts.map +1 -1
  38. package/dist/admin/utils/render-adjustment-type.js +1 -1
  39. package/dist/board/task-card.js +1 -1
  40. package/dist/chat/markdown-components.d.ts +30 -0
  41. package/dist/chat/markdown-components.d.ts.map +1 -0
  42. package/dist/chat/markdown-components.js +16 -0
  43. package/dist/chat/message-list.d.ts.map +1 -1
  44. package/dist/chat/message-list.js +37 -47
  45. package/dist/chat/streaming-text.d.ts.map +1 -1
  46. package/dist/chat/streaming-text.js +10 -23
  47. package/dist/client/client-portal-header.js +5 -5
  48. package/dist/client/project-card.d.ts.map +1 -1
  49. package/dist/dashboard/attendance-cta.d.ts +1 -1
  50. package/dist/dashboard/attendance-cta.d.ts.map +1 -1
  51. package/dist/dashboard/attendance-cta.js +25 -38
  52. package/dist/dashboard/daily-brief.d.ts +1 -1
  53. package/dist/dashboard/daily-brief.d.ts.map +1 -1
  54. package/dist/dashboard/daily-brief.js +2 -1
  55. package/dist/dashboard/index.d.ts +2 -2
  56. package/dist/dashboard/index.d.ts.map +1 -1
  57. package/dist/dashboard/index.js +4 -4
  58. package/dist/index.js +11 -11
  59. package/dist/page-skeletons.d.ts.map +1 -1
  60. package/dist/tasks/review-tab.js +3 -3
  61. package/dist/tasks/task-detail-panel.d.ts +1 -4
  62. package/dist/tasks/task-detail-panel.d.ts.map +1 -1
  63. package/dist/tasks/task-detail-panel.js +96 -96
  64. package/package.json +3 -2
@@ -1,33 +1,34 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { useState as g, useRef as Z, useEffect as A } from "react";
3
- import { useToast as _ } from "@devalok/shilp-sutra/ui";
4
- import { Dialog as $, DialogTrigger as v, DialogContent as L, DialogHeader as tt, DialogDescription as et } from "@devalok/shilp-sutra/ui";
1
+ import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
+ import * as X from "react";
3
+ import { useState as g, useRef as Z, useEffect as j } from "react";
4
+ import { IconPencil as $, IconArrowRight as v, IconChevronLeft as L, IconChevronRight as tt, IconChevronDown as et } from "@tabler/icons-react";
5
+ import { useToast as rt } from "@devalok/shilp-sutra/ui";
6
+ import { Dialog as at, DialogTrigger as st, DialogContent as nt, DialogHeader as dt, DialogDescription as it } from "@devalok/shilp-sutra/ui";
5
7
  import { Button as q } from "@devalok/shilp-sutra/ui";
6
- import { DeleteBreak as rt } from "./delete-break.js";
7
- import { removeAllEmojis as at } from "../utils/emoji-utils.js";
8
+ import { DeleteBreak as ot } from "./delete-break.js";
9
+ import { removeAllEmojis as lt } from "../utils/emoji-utils.js";
8
10
  import { cn as f } from "@devalok/shilp-sutra/ui";
9
- import { isBreakDay as Y, checkDateOverlap as B, isDateAfter as nt, isDateSameOrAfter as st, isDateInRange as it } from "../utils/date-range-utils.js";
11
+ import { isBreakDay as Y, checkDateOverlap as B, isDateAfter as ct, isDateSameOrAfter as ut, isDateInRange as mt } from "../utils/date-range-utils.js";
10
12
  import { isSameDay as S } from "../utils/date-utils.js";
11
- import { useBreakDatePicker as dt } from "./use-break-date-picker.js";
12
- import { format as D, endOfMonth as ot, getDay as J, subDays as lt, getDaysInMonth as ct, addDays as ut } from "date-fns";
13
- import { IconPencil as mt, IconArrowRight as ft, IconChevronDown as Dt } from "@tabler/icons-react";
14
- function pt({
13
+ import { useBreakDatePicker as ft } from "./use-break-date-picker.js";
14
+ import { format as D, endOfMonth as Dt, getDay as J, subDays as pt, getDaysInMonth as xt, addDays as ht } from "date-fns";
15
+ const bt = X.forwardRef(function({
15
16
  selectedLeave: r,
16
17
  existingBreaks: p,
17
18
  onFetchMonthBreaks: y,
18
- onSave: k,
19
- onDelete: W
20
- }) {
19
+ onSave: C,
20
+ onDelete: V
21
+ }, yt) {
21
22
  var T;
22
- const [w, C] = g(!1), [x, M] = g(
23
+ const [w, k] = g(!1), [x, M] = g(
23
24
  p || []
24
- ), [V, I] = g(!1), [i, u] = g({
25
+ ), [F, I] = g(!1), [d, u] = g({
25
26
  status: (r == null ? void 0 : r.status) || "",
26
27
  comment: (r == null ? void 0 : r.adminComment) || "",
27
28
  startDate: (r == null ? void 0 : r.startDate) || "",
28
29
  endDate: (r == null ? void 0 : r.endDate) || ""
29
- }), e = dt(), P = Z(null), { toast: m } = _();
30
- A(() => {
30
+ }), e = ft(), P = Z(null), { toast: m } = rt();
31
+ j(() => {
31
32
  if (r) {
32
33
  const t = (a) => a ? D(new Date(a), "yyyy-MM-dd") : "";
33
34
  u({
@@ -37,7 +38,7 @@ function pt({
37
38
  endDate: t(r == null ? void 0 : r.endDate)
38
39
  }), e.setSelectedStartDate(t(r == null ? void 0 : r.startDate)), e.setSelectedEndDate(t(r == null ? void 0 : r.endDate));
39
40
  }
40
- }, [r]), A(() => {
41
+ }, [r]), j(() => {
41
42
  if (p) {
42
43
  M(p);
43
44
  return;
@@ -54,28 +55,28 @@ function pt({
54
55
  console.error("Error fetching breaks:", t);
55
56
  });
56
57
  }, [e.currentMonth, e.currentYear, p, y]);
57
- const F = (t) => {
58
+ const U = (t) => {
58
59
  const { name: a, value: o } = t.target;
59
- u((d) => ({
60
- ...d,
60
+ u((i) => ({
61
+ ...i,
61
62
  [a]: o
62
63
  }));
63
64
  }, h = (t) => {
64
65
  u((a) => ({
65
66
  ...a,
66
67
  status: t
67
- })), C(!1);
68
+ })), k(!1);
68
69
  }, R = (t) => {
69
- if (e.setActiveDate(t), t === "start" && i.startDate) {
70
- const a = new Date(i.startDate);
70
+ if (e.setActiveDate(t), t === "start" && d.startDate) {
71
+ const a = new Date(d.startDate);
71
72
  e.setCurrentMonth(a.getMonth()), e.setCurrentYear(a.getFullYear());
72
- } else if (t === "end" && i.endDate) {
73
- const a = new Date(i.endDate);
73
+ } else if (t === "end" && d.endDate) {
74
+ const a = new Date(d.endDate);
74
75
  e.setCurrentMonth(a.getMonth()), e.setCurrentYear(a.getFullYear());
75
76
  }
76
77
  e.setShowCalendar(!0);
77
- }, U = async (t) => {
78
- if (t.preventDefault(), i.status === "PENDING") {
78
+ }, W = async (t) => {
79
+ if (t.preventDefault(), d.status === "PENDING") {
79
80
  m({
80
81
  title: "Action Required",
81
82
  description: "Please update the status",
@@ -85,13 +86,13 @@ function pt({
85
86
  }
86
87
  I(!0);
87
88
  try {
88
- k && k({
89
+ C && C({
89
90
  requestId: r.id,
90
91
  userId: r.userId,
91
- status: i.status,
92
- adminComment: i.comment,
93
- startDate: new Date(i.startDate).toISOString(),
94
- endDate: new Date(i.endDate).toISOString(),
92
+ status: d.status,
93
+ adminComment: d.comment,
94
+ startDate: new Date(d.startDate).toISOString(),
95
+ endDate: new Date(d.endDate).toISOString(),
95
96
  isEditing: !0
96
97
  }), m({
97
98
  description: "Break request updated successfully",
@@ -124,18 +125,18 @@ function pt({
124
125
  text: "Redacted",
125
126
  className: "bg-error-surface text-text-error"
126
127
  }
127
- }, { text: o, className: d } = a[t] || a.REJECTED;
128
- return /* @__PURE__ */ n(
128
+ }, { text: o, className: i } = a[t] || a.REJECTED;
129
+ return /* @__PURE__ */ s(
129
130
  "div",
130
131
  {
131
- className: f("text-ds-sm w-fit rounded-ds-2xl px-ds-02b py-ds-02 capitalize", d),
132
+ className: f("text-ds-sm w-fit rounded-ds-2xl px-ds-02b py-ds-02 capitalize", i),
132
133
  children: o
133
134
  }
134
135
  );
135
136
  }, O = (t) => t ? D(new Date(t), "EEEE, MMMM d") : "", G = (t, a) => {
136
- const o = [], d = new Date(a, t, 1), j = ot(d), K = J(d), Q = 6 - J(j), N = /* @__PURE__ */ new Date();
137
+ const o = [], i = new Date(a, t, 1), A = Dt(i), K = J(i), _ = 6 - J(A), N = /* @__PURE__ */ new Date();
137
138
  for (let l = K - 1; l >= 0; l--) {
138
- const c = lt(d, l + 1);
139
+ const c = pt(i, l + 1);
139
140
  o.push({
140
141
  date: c.getDate(),
141
142
  fullDate: D(c, "yyyy-MM-dd"),
@@ -144,8 +145,8 @@ function pt({
144
145
  isWeekend: !1
145
146
  });
146
147
  }
147
- const X = ct(d);
148
- for (let l = 1; l <= X; l++) {
148
+ const Q = xt(i);
149
+ for (let l = 1; l <= Q; l++) {
149
150
  const c = new Date(a, t, l);
150
151
  o.push({
151
152
  date: l,
@@ -155,8 +156,8 @@ function pt({
155
156
  isWeekend: !1
156
157
  });
157
158
  }
158
- for (let l = 1; l <= Q; l++) {
159
- const c = ut(j, l);
159
+ for (let l = 1; l <= _; l++) {
160
+ const c = ht(A, l);
160
161
  o.push({
161
162
  date: c.getDate(),
162
163
  fullDate: D(c, "yyyy-MM-dd"),
@@ -186,11 +187,11 @@ function pt({
186
187
  });
187
188
  return;
188
189
  }
189
- e.setSelectedStartDate(a), u((d) => ({
190
- ...d,
190
+ e.setSelectedStartDate(a), u((i) => ({
191
+ ...i,
191
192
  startDate: a
192
- })), e.selectedEndDate && nt(a, e.selectedEndDate) && (e.setSelectedEndDate(a), u((d) => ({
193
- ...d,
193
+ })), e.selectedEndDate && ct(a, e.selectedEndDate) && (e.setSelectedEndDate(a), u((i) => ({
194
+ ...i,
194
195
  endDate: a
195
196
  })));
196
197
  } else if (e.activeDate === "end") {
@@ -203,50 +204,50 @@ function pt({
203
204
  });
204
205
  return;
205
206
  }
206
- e.selectedStartDate && st(a, e.selectedStartDate) ? (e.setSelectedEndDate(a), u((d) => ({
207
- ...d,
207
+ e.selectedStartDate && ut(a, e.selectedStartDate) ? (e.setSelectedEndDate(a), u((i) => ({
208
+ ...i,
208
209
  endDate: a
209
- }))) : e.selectedStartDate || (e.setSelectedStartDate(a), e.setSelectedEndDate(a), u((d) => ({
210
- ...d,
210
+ }))) : e.selectedStartDate || (e.setSelectedStartDate(a), e.setSelectedEndDate(a), u((i) => ({
211
+ ...i,
211
212
  startDate: a,
212
213
  endDate: a
213
214
  })));
214
215
  }
215
216
  e.setShowCalendar(!1);
216
217
  }
217
- }, b = (t) => !e.selectedStartDate || !e.selectedEndDate ? !!(e.showCalendar && (e.activeDate === "start" && i.startDate === t || e.activeDate === "end" && i.endDate === t)) : it(t, e.selectedStartDate, e.selectedEndDate), H = G(e.currentMonth, e.currentYear);
218
- return /* @__PURE__ */ s($, { children: [
219
- /* @__PURE__ */ n(v, { asChild: !0, children: /* @__PURE__ */ s(
218
+ }, b = (t) => !e.selectedStartDate || !e.selectedEndDate ? !!(e.showCalendar && (e.activeDate === "start" && d.startDate === t || e.activeDate === "end" && d.endDate === t)) : mt(t, e.selectedStartDate, e.selectedEndDate), H = G(e.currentMonth, e.currentYear);
219
+ return /* @__PURE__ */ n(at, { children: [
220
+ /* @__PURE__ */ s(st, { asChild: !0, children: /* @__PURE__ */ n(
220
221
  q,
221
222
  {
222
223
  variant: "secondary",
223
224
  className: "text-ds-base border-border bg-layer-01 px-ds-05 py-ds-04 pr-ds-06 text-text-secondary shadow-02",
224
225
  children: [
225
- /* @__PURE__ */ n(mt, {}),
226
- /* @__PURE__ */ n("span", { children: "Edit" })
226
+ /* @__PURE__ */ s($, {}),
227
+ /* @__PURE__ */ s("span", { children: "Edit" })
227
228
  ]
228
229
  }
229
230
  ) }),
230
- /* @__PURE__ */ n(L, { className: "w-[440px] p-ds-06 max-md:w-[90%] max-md:rounded-ds-lg", children: /* @__PURE__ */ n(tt, { children: /* @__PURE__ */ n(et, { children: /* @__PURE__ */ s("div", { className: "flex w-full flex-col items-center gap-ds-05", children: [
231
- /* @__PURE__ */ s("p", { className: "text-ds-md w-full text-left text-text-tertiary", children: [
231
+ /* @__PURE__ */ s(nt, { className: "w-[440px] p-ds-06 max-md:w-[90%] max-md:rounded-ds-lg", children: /* @__PURE__ */ s(dt, { children: /* @__PURE__ */ s(it, { children: /* @__PURE__ */ n("div", { className: "flex w-full flex-col items-center gap-ds-05", children: [
232
+ /* @__PURE__ */ n("p", { className: "text-ds-md w-full text-left text-text-tertiary", children: [
232
233
  "Edit break details of",
233
234
  " ",
234
- /* @__PURE__ */ n("span", { className: "font-semibold text-interactive", children: (T = r == null ? void 0 : r.user) == null ? void 0 : T.name })
235
+ /* @__PURE__ */ s("span", { className: "font-semibold text-interactive", children: (T = r == null ? void 0 : r.user) == null ? void 0 : T.name })
235
236
  ] }),
236
- /* @__PURE__ */ s(
237
+ /* @__PURE__ */ n(
237
238
  "form",
238
239
  {
239
240
  ref: P,
240
- onSubmit: U,
241
+ onSubmit: W,
241
242
  id: "updateleaveform",
242
243
  className: "flex w-full flex-col gap-ds-05",
243
244
  children: [
244
- /* @__PURE__ */ s("div", { className: "flex w-full flex-col gap-ds-02 rounded-ds-lg border border-border-subtle px-ds-05 pb-ds-03 pt-ds-04", children: [
245
- /* @__PURE__ */ n("h2", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "Reason" }),
246
- /* @__PURE__ */ n("p", { className: "text-ds-md text-text-primary", children: at(r == null ? void 0 : r.reason) })
245
+ /* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-ds-02 rounded-ds-lg border border-border-subtle px-ds-05 pb-ds-03 pt-ds-04", children: [
246
+ /* @__PURE__ */ s("h2", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "Reason" }),
247
+ /* @__PURE__ */ s("p", { className: "text-ds-md text-text-primary", children: lt(r == null ? void 0 : r.reason) })
247
248
  ] }),
248
- /* @__PURE__ */ s("div", { className: "flex w-full items-center justify-center gap-ds-02", children: [
249
- /* @__PURE__ */ n(
249
+ /* @__PURE__ */ n("div", { className: "flex w-full items-center justify-center gap-ds-02", children: [
250
+ /* @__PURE__ */ s(
250
251
  "button",
251
252
  {
252
253
  type: "button",
@@ -255,11 +256,11 @@ function pt({
255
256
  "text-ds-md flex w-full items-center justify-center gap-ds-03 rounded-ds-full border bg-layer-02 px-ds-03 py-ds-03 text-text-secondary max-md:text-ds-sm",
256
257
  e.showCalendar && e.activeDate === "start" ? "border-border-strong" : "border-border"
257
258
  ),
258
- children: O(i.startDate)
259
+ children: O(d.startDate)
259
260
  }
260
261
  ),
261
- /* @__PURE__ */ n("div", { className: "flex h-ico-sm w-ico-sm items-center", children: /* @__PURE__ */ n(ft, { className: "h-ico-sm w-ico-sm text-icon-secondary" }) }),
262
- /* @__PURE__ */ n(
262
+ /* @__PURE__ */ s("div", { className: "flex h-ico-sm w-ico-sm items-center", children: /* @__PURE__ */ s(v, { className: "h-ico-sm w-ico-sm text-icon-secondary" }) }),
263
+ /* @__PURE__ */ s(
263
264
  "button",
264
265
  {
265
266
  type: "button",
@@ -268,39 +269,22 @@ function pt({
268
269
  "text-ds-md flex w-full items-center justify-center gap-ds-03 rounded-ds-full border bg-layer-02 px-ds-03 py-ds-03 text-text-secondary max-md:text-ds-sm",
269
270
  e.showCalendar && e.activeDate === "end" ? "border-border-strong" : "border-border"
270
271
  ),
271
- children: O(i.endDate)
272
+ children: O(d.endDate)
272
273
  }
273
274
  )
274
275
  ] }),
275
- e.showCalendar && /* @__PURE__ */ s("div", { className: "", children: [
276
- /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
277
- /* @__PURE__ */ n(
276
+ e.showCalendar && /* @__PURE__ */ n("div", { className: "", children: [
277
+ /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
278
+ /* @__PURE__ */ s(
278
279
  "button",
279
280
  {
280
281
  type: "button",
281
282
  className: "rounded-ds-full p-ds-03 hover:bg-field-hover",
282
283
  onClick: () => e.navigateMonth("prev"),
283
- children: /* @__PURE__ */ n(
284
- "svg",
285
- {
286
- className: "h-ico-md w-ico-md",
287
- fill: "none",
288
- viewBox: "0 0 24 24",
289
- stroke: "currentColor",
290
- children: /* @__PURE__ */ n(
291
- "path",
292
- {
293
- strokeLinecap: "round",
294
- strokeLinejoin: "round",
295
- strokeWidth: 2,
296
- d: "M15 19l-7-7 7-7"
297
- }
298
- )
299
- }
300
- )
284
+ children: /* @__PURE__ */ s(L, { className: "h-ico-md w-ico-md" })
301
285
  }
302
286
  ),
303
- /* @__PURE__ */ s("div", { className: "text-ds-md font-semibold uppercase", children: [
287
+ /* @__PURE__ */ n("div", { className: "text-ds-md font-semibold uppercase", children: [
304
288
  new Date(e.currentYear, e.currentMonth).toLocaleString(
305
289
  "default",
306
290
  {
@@ -310,38 +294,21 @@ function pt({
310
294
  " ",
311
295
  e.currentYear
312
296
  ] }),
313
- /* @__PURE__ */ n(
297
+ /* @__PURE__ */ s(
314
298
  "button",
315
299
  {
316
300
  type: "button",
317
301
  className: "rounded-ds-full p-ds-03 hover:bg-field-hover",
318
302
  onClick: () => e.navigateMonth("next"),
319
- children: /* @__PURE__ */ n(
320
- "svg",
321
- {
322
- className: "h-ico-md w-ico-md",
323
- fill: "none",
324
- viewBox: "0 0 24 24",
325
- stroke: "currentColor",
326
- children: /* @__PURE__ */ n(
327
- "path",
328
- {
329
- strokeLinecap: "round",
330
- strokeLinejoin: "round",
331
- strokeWidth: 2,
332
- d: "M9 5l7 7-7 7"
333
- }
334
- )
335
- }
336
- )
303
+ children: /* @__PURE__ */ s(tt, { className: "h-ico-md w-ico-md" })
337
304
  }
338
305
  )
339
306
  ] }),
340
- /* @__PURE__ */ s("div", { className: "calendar grid w-full grid-cols-7 items-center gap-0 overflow-hidden", children: [
307
+ /* @__PURE__ */ n("div", { className: "calendar grid w-full grid-cols-7 items-center gap-0 overflow-hidden", children: [
341
308
  ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map(
342
- (t) => /* @__PURE__ */ n("div", { className: "pb-ds-03 pt-ds-05 text-center", children: /* @__PURE__ */ n("span", { className: "text-ds-sm font-semibold uppercase tracking-wider text-text-tertiary", children: t }) }, t)
309
+ (t) => /* @__PURE__ */ s("div", { className: "pb-ds-03 pt-ds-05 text-center", children: /* @__PURE__ */ s("span", { className: "text-ds-sm font-semibold uppercase tracking-wider text-text-tertiary", children: t }) }, t)
343
310
  ),
344
- H.map((t, a) => /* @__PURE__ */ n(
311
+ H.map((t, a) => /* @__PURE__ */ s(
345
312
  "button",
346
313
  {
347
314
  type: "button",
@@ -350,21 +317,21 @@ function pt({
350
317
  className: f(
351
318
  "flex cursor-pointer flex-col items-center pb-0 pt-0 text-center",
352
319
  b(t.fullDate) && t.fullDate !== e.selectedStartDate && t.fullDate !== e.selectedEndDate && "bg-layer-accent-subtle",
353
- t.isPadding && "opacity-50",
320
+ t.isPadding && "opacity-[0.5]",
354
321
  t.fullDate === e.selectedStartDate && b(t.fullDate) && "start-date mini",
355
322
  t.fullDate === e.selectedEndDate && b(t.fullDate) && "end-date mini",
356
323
  b(t.fullDate) && t.fullDate !== e.selectedStartDate && t.fullDate !== e.selectedEndDate && "in-range-date",
357
324
  e.selectedStartDate === e.selectedEndDate && "same-date"
358
325
  ),
359
326
  onClick: () => z(t),
360
- children: /* @__PURE__ */ n(
327
+ children: /* @__PURE__ */ s(
361
328
  "div",
362
329
  {
363
330
  className: f(
364
331
  "mx-ds-02 my-ds-02",
365
- t.isPadding && "opacity-50"
332
+ t.isPadding && "opacity-[0.5]"
366
333
  ),
367
- children: /* @__PURE__ */ n(
334
+ children: /* @__PURE__ */ s(
368
335
  "span",
369
336
  {
370
337
  className: f(
@@ -382,14 +349,14 @@ function pt({
382
349
  ))
383
350
  ] })
384
351
  ] }),
385
- /* @__PURE__ */ s("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-border px-ds-05 py-ds-04", children: [
386
- /* @__PURE__ */ n("p", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "No of Days" }),
387
- /* @__PURE__ */ n("p", { className: "text-ds-xl font-semibold text-text-primary", children: r.numberOfDays })
352
+ /* @__PURE__ */ n("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-border px-ds-05 py-ds-04", children: [
353
+ /* @__PURE__ */ s("p", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "No of Days" }),
354
+ /* @__PURE__ */ s("p", { className: "text-ds-xl font-semibold text-text-primary", children: r.numberOfDays })
388
355
  ] }),
389
- /* @__PURE__ */ s("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-border px-ds-05 py-ds-04", children: [
390
- /* @__PURE__ */ n("p", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "Status" }),
391
- /* @__PURE__ */ s("div", { className: "relative flex items-center gap-ds-02", children: [
392
- /* @__PURE__ */ s(
356
+ /* @__PURE__ */ n("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-border px-ds-05 py-ds-04", children: [
357
+ /* @__PURE__ */ s("p", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "Status" }),
358
+ /* @__PURE__ */ n("div", { className: "relative flex items-center gap-ds-02", children: [
359
+ /* @__PURE__ */ n(
393
360
  "button",
394
361
  {
395
362
  type: "button",
@@ -397,21 +364,21 @@ function pt({
397
364
  "aria-label": "Change status",
398
365
  "aria-haspopup": "listbox",
399
366
  "aria-expanded": w,
400
- onClick: () => C(!w),
367
+ onClick: () => k(!w),
401
368
  children: [
402
- E(i.status),
403
- /* @__PURE__ */ n(Dt, {})
369
+ E(d.status),
370
+ /* @__PURE__ */ s(et, {})
404
371
  ]
405
372
  }
406
373
  ),
407
- w && /* @__PURE__ */ s("div", { className: "text-ds-base absolute left-[10px] top-[25px] z-raised flex flex-col overflow-hidden rounded-ds-md border border-border bg-layer-01 shadow-02", role: "listbox", children: [
408
- /* @__PURE__ */ n(
374
+ w && /* @__PURE__ */ n("div", { className: "text-ds-base absolute left-[10px] top-[25px] z-raised flex flex-col overflow-hidden rounded-ds-md border border-border bg-layer-01 shadow-02", role: "listbox", children: [
375
+ /* @__PURE__ */ s(
409
376
  "div",
410
377
  {
411
378
  className: "cursor-pointer border-b border-b-border bg-layer-01 px-ds-04 py-ds-03 text-left",
412
379
  role: "option",
413
380
  tabIndex: 0,
414
- "aria-selected": i.status === "APPROVED",
381
+ "aria-selected": d.status === "APPROVED",
415
382
  onClick: () => h("APPROVED"),
416
383
  onKeyDown: (t) => {
417
384
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), h("APPROVED"));
@@ -419,13 +386,13 @@ function pt({
419
386
  children: E("APPROVED")
420
387
  }
421
388
  ),
422
- /* @__PURE__ */ n(
389
+ /* @__PURE__ */ s(
423
390
  "div",
424
391
  {
425
392
  className: "cursor-pointer bg-layer-01 px-ds-04 py-ds-03 text-left",
426
393
  role: "option",
427
394
  tabIndex: 0,
428
- "aria-selected": i.status === "REJECTED",
395
+ "aria-selected": d.status === "REJECTED",
429
396
  onClick: () => h("REJECTED"),
430
397
  onKeyDown: (t) => {
431
398
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), h("REJECTED"));
@@ -436,35 +403,35 @@ function pt({
436
403
  ] })
437
404
  ] })
438
405
  ] }),
439
- /* @__PURE__ */ s("div", { className: "flex w-full flex-col gap-ds-02 rounded-ds-lg border border-border-subtle px-ds-05 pb-ds-03 pt-ds-04", children: [
440
- /* @__PURE__ */ n("h2", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "Comment" }),
441
- /* @__PURE__ */ n(
406
+ /* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-ds-02 rounded-ds-lg border border-border-subtle px-ds-05 pb-ds-03 pt-ds-04", children: [
407
+ /* @__PURE__ */ s("h2", { className: "text-ds-xs font-semibold uppercase tracking-wider text-text-placeholder", children: "Comment" }),
408
+ /* @__PURE__ */ s(
442
409
  "input",
443
410
  {
444
411
  type: "text",
445
412
  name: "comment",
446
413
  className: "text-ds-md text-text-primary outline-none",
447
414
  placeholder: "Enjoy your break, TC",
448
- value: i.comment,
449
- onChange: F
415
+ value: d.comment,
416
+ onChange: U
450
417
  }
451
418
  )
452
419
  ] }),
453
- /* @__PURE__ */ s("div", { className: "flex w-full justify-between", children: [
454
- /* @__PURE__ */ n("div", { className: "flex h-ds-md w-ds-md items-center justify-center", children: /* @__PURE__ */ n(
455
- rt,
420
+ /* @__PURE__ */ n("div", { className: "flex w-full justify-between", children: [
421
+ /* @__PURE__ */ s("div", { className: "flex h-ds-md w-ds-md items-center justify-center", children: /* @__PURE__ */ s(
422
+ ot,
456
423
  {
457
424
  id: r.id,
458
425
  userId: r.userId,
459
- onDelete: W
426
+ onDelete: V
460
427
  }
461
428
  ) }),
462
- /* @__PURE__ */ n(
429
+ /* @__PURE__ */ s(
463
430
  q,
464
431
  {
465
432
  className: "w-fit",
466
433
  variant: "secondary",
467
- disabled: V,
434
+ disabled: F,
468
435
  onClick: () => {
469
436
  var t;
470
437
  return (t = P.current) == null ? void 0 : t.requestSubmit();
@@ -478,8 +445,8 @@ function pt({
478
445
  )
479
446
  ] }) }) }) })
480
447
  ] });
481
- }
482
- pt.displayName = "EditBreak";
448
+ });
449
+ bt.displayName = "EditBreak";
483
450
  export {
484
- pt as EditBreak
451
+ bt as EditBreak
485
452
  };
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/admin/break/header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAqBzC,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAA;IACnC,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,iBAAiB,CAAA;IAC1B,cAAc,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACpD,YAAY,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACrE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,KAAK,EAAE,SAAS,EAAE,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,8FAqP5B,CAAA"}
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/admin/break/header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAqBzC,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAA;IACnC,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,iBAAiB,CAAA;IAC1B,cAAc,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACpD,YAAY,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACrE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,KAAK,EAAE,SAAS,EAAE,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,8FAuP5B,CAAA"}