@devalok/shilp-sutra-karm 0.7.0 → 0.8.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.
- package/dist/admin/break/break-admin-skeleton.js +1 -1
- package/dist/admin/break/break-admin.js +2 -2
- package/dist/admin/break/break-balance.js +1 -1
- package/dist/admin/break/breaks.js +2 -2
- package/dist/admin/break/delete-break.js +4 -4
- package/dist/admin/break/edit-break-balance.js +4 -4
- package/dist/admin/break/edit-break.js +4 -4
- package/dist/admin/break/header.js +3 -3
- package/dist/admin/break/leave-request.js +5 -5
- package/dist/admin/dashboard/admin-dashboard.js +1 -1
- package/dist/admin/dashboard/associate-detail.js +4 -4
- package/dist/admin/dashboard/attendance-overview.js +2 -2
- package/dist/admin/dashboard/break-request.js +4 -4
- package/dist/admin/dashboard/calendar.js +3 -3
- package/dist/admin/dashboard/correction-list.js +3 -3
- package/dist/admin/dashboard/dashboard-header.js +5 -5
- package/dist/admin/dashboard/dashboard-skeleton.js +8 -8
- package/dist/admin/dashboard/leave-requests.js +3 -3
- package/dist/admin/dashboard/render-date.js +1 -1
- package/dist/admin/types.d.ts +6 -6
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/board/board-column.d.ts.map +1 -1
- package/dist/board/board-column.js +18 -16
- package/dist/board/kanban-board.d.ts.map +1 -1
- package/dist/board/kanban-board.js +118 -119
- package/dist/board/task-card.d.ts.map +1 -1
- package/dist/board/task-card.js +113 -115
- package/dist/chat/chat-input.d.ts.map +1 -1
- package/dist/chat/chat-input.js +2 -1
- package/dist/chat/chat-panel.js +2 -2
- package/dist/chat/conversation-list.js +1 -1
- package/dist/chat/markdown-components.d.ts +4 -0
- package/dist/chat/markdown-components.d.ts.map +1 -1
- package/dist/chat/markdown-components.js +30 -12
- package/dist/chat/message-list.d.ts.map +1 -1
- package/dist/chat/message-list.js +29 -30
- package/dist/chat/streaming-text.js +9 -9
- package/dist/client/client-portal-header.js +2 -2
- package/dist/client/project-card.js +3 -3
- package/dist/dashboard/daily-brief.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -82
- package/dist/page-skeletons.js +2 -2
- package/dist/tasks/activity-tab.js +2 -2
- package/dist/tasks/conversation-tab.d.ts +2 -0
- package/dist/tasks/conversation-tab.d.ts.map +1 -1
- package/dist/tasks/conversation-tab.js +68 -57
- package/dist/tasks/files-tab.js +25 -25
- package/dist/tasks/review-tab.js +6 -6
- package/dist/tasks/subtasks-tab.js +4 -4
- package/dist/tasks/task-detail-panel.js +4 -4
- package/dist/tasks/task-properties.d.ts.map +1 -1
- package/dist/tasks/task-properties.js +66 -59
- package/dist/utils/use-composed-ref.d.ts +3 -0
- package/dist/utils/use-composed-ref.d.ts.map +1 -0
- package/dist/utils/use-composed-ref.js +12 -0
- package/package.json +73 -69
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import { Skeleton as s } from "@devalok/shilp-sutra/ui";
|
|
4
|
+
import { Skeleton as s } from "@devalok/shilp-sutra/ui/skeleton";
|
|
5
5
|
const m = r.forwardRef(
|
|
6
6
|
function(c, l) {
|
|
7
7
|
return /* @__PURE__ */ d("div", { ref: l, className: "z-base h-fit w-full max-w-layout-body overflow-hidden border-[1px] border-border-subtle bg-field sm:rounded-ds-lg", children: [
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs as d, Fragment as q, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as B from "react";
|
|
4
4
|
import { useState as N, useMemo as re, useCallback as F, createContext as ie, useContext as ce } from "react";
|
|
5
|
-
import { cn as p } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { useToast as le } from "@devalok/shilp-sutra/hooks";
|
|
5
|
+
import { cn as p } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
6
|
+
import { useToast as le } from "@devalok/shilp-sutra/hooks/use-toast";
|
|
7
7
|
import { BreakBalance as de } from "./break-balance.js";
|
|
8
8
|
import { LeaveRequest as me } from "./leave-request.js";
|
|
9
9
|
import { Breaks as ue } from "./breaks.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as p from "react";
|
|
4
|
-
import { Avatar as o, AvatarImage as f, AvatarFallback as u } from "@devalok/shilp-sutra/ui";
|
|
4
|
+
import { Avatar as o, AvatarImage as f, AvatarFallback as u } from "@devalok/shilp-sutra/ui/avatar";
|
|
5
5
|
const h = p.forwardRef(
|
|
6
6
|
function({
|
|
7
7
|
breakBalanceData: m,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
3
3
|
import * as g from "react";
|
|
4
|
-
import { Popover as D, PopoverTrigger as j, PopoverContent as T } from "@devalok/shilp-sutra/ui";
|
|
4
|
+
import { Popover as D, PopoverTrigger as j, PopoverContent as T } from "@devalok/shilp-sutra/ui/popover";
|
|
5
5
|
import { Tooltip as S, TooltipTrigger as A, TooltipContent as B } from "@devalok/shilp-sutra/ui";
|
|
6
6
|
import { EditBreak as C } from "./edit-break.js";
|
|
7
7
|
import { formatOptionalDate as p } from "../utils/date-utils.js";
|
|
8
8
|
import { renderStatus as E } from "../utils/render-status.js";
|
|
9
|
-
import { IconButton as R } from "@devalok/shilp-sutra/ui";
|
|
9
|
+
import { IconButton as R } from "@devalok/shilp-sutra/ui/icon-button";
|
|
10
10
|
import { isSameDay as M } from "date-fns";
|
|
11
11
|
import { IconDotsVertical as O } from "@tabler/icons-react";
|
|
12
12
|
const P = g.forwardRef(
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { useState as c, useRef as p } from "react";
|
|
5
|
-
import { useToast as x } from "@devalok/shilp-sutra/hooks";
|
|
6
|
-
import { Dialog as h, DialogTrigger as g, DialogContent as b } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { Button as D } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { IconButton as k } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { useToast as x } from "@devalok/shilp-sutra/hooks/use-toast";
|
|
6
|
+
import { Dialog as h, DialogTrigger as g, DialogContent as b } from "@devalok/shilp-sutra/ui/dialog";
|
|
7
|
+
import { Button as D } from "@devalok/shilp-sutra/ui/button";
|
|
8
|
+
import { IconButton as k } from "@devalok/shilp-sutra/ui/icon-button";
|
|
9
9
|
import { IconTrash as w } from "@tabler/icons-react";
|
|
10
10
|
const y = u.forwardRef(function({ id: B, userId: v, onDelete: l }, I) {
|
|
11
11
|
const [d, s] = c(!1), { toast: a } = x(), [m, o] = c(!1), i = p(null);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as y from "react";
|
|
4
4
|
import { useState as o, useRef as w, useEffect as g } from "react";
|
|
5
|
-
import { useToast as N } from "@devalok/shilp-sutra/hooks";
|
|
6
|
-
import { Dialog as k, DialogTrigger as D, DialogContent as B, DialogHeader as C, DialogDescription as E } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { Button as p } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { NumberInput as j } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { useToast as N } from "@devalok/shilp-sutra/hooks/use-toast";
|
|
6
|
+
import { Dialog as k, DialogTrigger as D, DialogContent as B, DialogHeader as C, DialogDescription as E } from "@devalok/shilp-sutra/ui/dialog";
|
|
7
|
+
import { Button as p } from "@devalok/shilp-sutra/ui/button";
|
|
8
|
+
import { NumberInput as j } from "@devalok/shilp-sutra/ui/number-input";
|
|
9
9
|
import { IconPencil as F } from "@tabler/icons-react";
|
|
10
10
|
const I = y.forwardRef(function({
|
|
11
11
|
selectedLeave: r,
|
|
@@ -3,12 +3,12 @@ import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
|
3
3
|
import * as X from "react";
|
|
4
4
|
import { useState as g, useRef as Z, useEffect as j } from "react";
|
|
5
5
|
import { IconPencil as $, IconArrowRight as v, IconChevronLeft as L, IconChevronRight as tt, IconChevronDown as et } from "@tabler/icons-react";
|
|
6
|
-
import { useToast as rt } from "@devalok/shilp-sutra/hooks";
|
|
7
|
-
import { Dialog as at, DialogTrigger as st, DialogContent as nt, DialogHeader as ot, DialogDescription as dt } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { Button as q } from "@devalok/shilp-sutra/ui";
|
|
6
|
+
import { useToast as rt } from "@devalok/shilp-sutra/hooks/use-toast";
|
|
7
|
+
import { Dialog as at, DialogTrigger as st, DialogContent as nt, DialogHeader as ot, DialogDescription as dt } from "@devalok/shilp-sutra/ui/dialog";
|
|
8
|
+
import { Button as q } from "@devalok/shilp-sutra/ui/button";
|
|
9
9
|
import { DeleteBreak as it } from "./delete-break.js";
|
|
10
10
|
import { removeAllEmojis as lt } from "../utils/emoji-utils.js";
|
|
11
|
-
import { cn as f } from "@devalok/shilp-sutra/ui";
|
|
11
|
+
import { cn as f } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
12
12
|
import { isBreakDay as Y, checkDateOverlap as B, isDateAfter as ct, isDateSameOrAfter as ut, isDateInRange as mt } from "../utils/date-range-utils.js";
|
|
13
13
|
import { isSameDay as S } from "../utils/date-utils.js";
|
|
14
14
|
import { useBreakDatePicker as ft } from "./use-break-date-picker.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsxs as a, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
3
3
|
import * as C from "react";
|
|
4
4
|
import { Fragment as F } from "react";
|
|
5
|
-
import { DropdownMenu as m, DropdownMenuTrigger as o, DropdownMenuContent as x, DropdownMenuItem as h } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { Button as j } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { IconButton as l } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { DropdownMenu as m, DropdownMenuTrigger as o, DropdownMenuContent as x, DropdownMenuItem as h } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
6
|
+
import { Button as j } from "@devalok/shilp-sutra/ui/button";
|
|
7
|
+
import { IconButton as l } from "@devalok/shilp-sutra/ui/icon-button";
|
|
8
8
|
import { IconX as u, IconUser as D, IconChevronDown as p, IconCalendar as Y, IconCalendarEvent as I, IconChevronLeft as N, IconChevronRight as f } from "@tabler/icons-react";
|
|
9
9
|
const b = [
|
|
10
10
|
{ id: 1, name: "January" },
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsxs as r, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as S from "react";
|
|
4
4
|
import { useState as O } from "react";
|
|
5
|
-
import { Dialog as W, DialogContent as Y, DialogHeader as B, DialogTitle as E, DialogDescription as H } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { Textarea as V } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { Dialog as W, DialogContent as Y, DialogHeader as B, DialogTitle as E, DialogDescription as H } from "@devalok/shilp-sutra/ui/dialog";
|
|
6
|
+
import { Textarea as V } from "@devalok/shilp-sutra/ui/textarea";
|
|
7
7
|
import { formatDateWithWeekday as h } from "../utils/date-utils.js";
|
|
8
|
-
import { Avatar as X, AvatarImage as G, AvatarFallback as J } from "@devalok/shilp-sutra/ui";
|
|
9
|
-
import { Button as x } from "@devalok/shilp-sutra/ui";
|
|
8
|
+
import { Avatar as X, AvatarImage as G, AvatarFallback as J } from "@devalok/shilp-sutra/ui/avatar";
|
|
9
|
+
import { Button as x } from "@devalok/shilp-sutra/ui/button";
|
|
10
10
|
import { isSameDay as K } from "date-fns";
|
|
11
|
-
import { Tooltip as s, TooltipTrigger as d, TooltipContent as n } from "@devalok/shilp-sutra/ui";
|
|
11
|
+
import { Tooltip as s, TooltipTrigger as d, TooltipContent as n } from "@devalok/shilp-sutra/ui/tooltip";
|
|
12
12
|
import { IconX as M, IconCheck as P } from "@tabler/icons-react";
|
|
13
13
|
const Q = S.forwardRef(function({
|
|
14
14
|
request: a,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
3
3
|
import A, { useState as F, useCallback as E, useMemo as H, useEffect as T, createContext as I, useContext as P } from "react";
|
|
4
4
|
import { cva as C } from "class-variance-authority";
|
|
5
|
-
import { cn as N } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { cn as N } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
6
6
|
import { DashboardSkeleton as _ } from "./dashboard-skeleton.js";
|
|
7
7
|
import { DashboardHeader as B } from "./dashboard-header.js";
|
|
8
8
|
import { RenderDate as V } from "./render-date.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as l, jsx as i, Fragment as y } from "react/jsx-runtime";
|
|
3
3
|
import * as H from "react";
|
|
4
4
|
import { useState as E } from "react";
|
|
5
|
-
import { Dialog as q, DialogTrigger as z, DialogContent as G, DialogHeader as $, DialogFooter as V, DialogClose as W } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { Button as _ } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { IconButton as L } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { cn as O } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { Dialog as q, DialogTrigger as z, DialogContent as G, DialogHeader as $, DialogFooter as V, DialogClose as W } from "@devalok/shilp-sutra/ui/dialog";
|
|
6
|
+
import { Button as _ } from "@devalok/shilp-sutra/ui/button";
|
|
7
|
+
import { IconButton as L } from "@devalok/shilp-sutra/ui/icon-button";
|
|
8
|
+
import { cn as O } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
9
9
|
import { isSameDay as Y } from "../utils/date-utils.js";
|
|
10
10
|
import { BreakRequestCard as R } from "./break-request.js";
|
|
11
11
|
import { isBefore as F, startOfDay as J, format as Q } from "date-fns";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
3
3
|
import * as k from "react";
|
|
4
4
|
import { useRef as N, useCallback as O, useState as g } from "react";
|
|
5
|
-
import { cn as j } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { AvatarGroup as w } from "@devalok/shilp-sutra/composed";
|
|
5
|
+
import { cn as j } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
6
|
+
import { AvatarGroup as w } from "@devalok/shilp-sutra/composed/avatar-group";
|
|
7
7
|
function A(l, u, m) {
|
|
8
8
|
const c = [];
|
|
9
9
|
if (!(l != null && l.length)) return { onBreak: c };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as l, jsx as e, Fragment as f } from "react/jsx-runtime";
|
|
3
3
|
import * as F from "react";
|
|
4
4
|
import { useState as v, useEffect as M } from "react";
|
|
5
|
-
import { Button as h } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { Checkbox as D } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { Dialog as w, DialogTrigger as C, DialogContent as j, DialogHeader as E, DialogFooter as k, DialogClose as S } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { cn as T } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { Button as h } from "@devalok/shilp-sutra/ui/button";
|
|
6
|
+
import { Checkbox as D } from "@devalok/shilp-sutra/ui/checkbox";
|
|
7
|
+
import { Dialog as w, DialogTrigger as C, DialogContent as j, DialogHeader as E, DialogFooter as k, DialogClose as S } from "@devalok/shilp-sutra/ui/dialog";
|
|
8
|
+
import { cn as T } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
9
9
|
import { formatDate as B, getDaySuffix as p } from "../utils/date-utils.js";
|
|
10
10
|
import { removeAllEmojis as W } from "../utils/emoji-utils.js";
|
|
11
11
|
import { renderStatus as $ } from "../utils/render-status.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import * as v from "react";
|
|
4
|
-
import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as b, DropdownMenuItem as w } from "@devalok/shilp-sutra/ui";
|
|
5
|
-
import { SegmentedControl as D } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { cn as s } from "@devalok/shilp-sutra/ui";
|
|
4
|
+
import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as b, DropdownMenuItem as w } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
5
|
+
import { SegmentedControl as D } from "@devalok/shilp-sutra/ui/segmented-control";
|
|
6
|
+
import { cn as s } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
7
7
|
import { isSameDay as N } from "../utils/date-utils.js";
|
|
8
8
|
import { useCalendarNavigation as M } from "./use-calendar-navigation.js";
|
|
9
9
|
import { format as o } from "date-fns";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as A from "react";
|
|
4
4
|
import { Fragment as C } from "react";
|
|
5
|
-
import { Avatar as L, AvatarImage as q, AvatarFallback as O } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { Tooltip as k, TooltipTrigger as E, TooltipContent as F } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { cn as P } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { Avatar as L, AvatarImage as q, AvatarFallback as O } from "@devalok/shilp-sutra/ui/avatar";
|
|
6
|
+
import { Tooltip as k, TooltipTrigger as E, TooltipContent as F } from "@devalok/shilp-sutra/ui/tooltip";
|
|
7
|
+
import { cn as P } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
8
8
|
import { formatDateWithWeekday as R } from "../utils/date-utils.js";
|
|
9
9
|
import { IconX as V, IconCheck as W } from "@tabler/icons-react";
|
|
10
10
|
const Y = A.forwardRef(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as C from "react";
|
|
4
|
-
import { DropdownMenu as x, DropdownMenuTrigger as h, DropdownMenuContent as f, DropdownMenuItem as o } from "@devalok/shilp-sutra/ui";
|
|
5
|
-
import { Button as D } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { IconButton as p } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { SegmentedControl as k } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { cn as b } from "@devalok/shilp-sutra/ui";
|
|
4
|
+
import { DropdownMenu as x, DropdownMenuTrigger as h, DropdownMenuContent as f, DropdownMenuItem as o } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
5
|
+
import { Button as D } from "@devalok/shilp-sutra/ui/button";
|
|
6
|
+
import { IconButton as p } from "@devalok/shilp-sutra/ui/icon-button";
|
|
7
|
+
import { SegmentedControl as k } from "@devalok/shilp-sutra/ui/segmented-control";
|
|
8
|
+
import { cn as b } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
9
9
|
import { IconChevronDown as N, IconX as I, IconUser as M, IconChevronLeft as z, IconChevronRight as H } from "@tabler/icons-react";
|
|
10
10
|
const R = C.forwardRef(
|
|
11
11
|
function({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { cn as m } from "@devalok/shilp-sutra/ui";
|
|
5
|
-
import { Skeleton as s } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { DropdownMenu as n, DropdownMenuTrigger as c } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { IconButton as t } from "@devalok/shilp-sutra/ui";
|
|
4
|
+
import { cn as m } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
5
|
+
import { Skeleton as s } from "@devalok/shilp-sutra/ui/skeleton";
|
|
6
|
+
import { DropdownMenu as n, DropdownMenuTrigger as c } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
7
|
+
import { IconButton as t } from "@devalok/shilp-sutra/ui/icon-button";
|
|
8
8
|
import { IconChevronDown as x, IconChevronLeft as f, IconChevronRight as p } from "@tabler/icons-react";
|
|
9
|
-
const
|
|
9
|
+
const b = o.forwardRef(
|
|
10
10
|
function(h, i) {
|
|
11
11
|
return /* @__PURE__ */ e("div", { ref: i, className: "flex w-full max-w-layout flex-col items-center justify-center max-md:h-[100%] max-md:justify-start", children: /* @__PURE__ */ d("div", { className: "z-raised flex w-full flex-col items-start justify-start rounded-ds-lg border border-border bg-layer-02 p-ds-05 shadow-05 max-md:flex-1 max-md:min-h-0 max-md:overflow-y-auto max-md:border-0 max-md:px-ds-05 max-md:pb-0 max-md:pt-ds-06", children: [
|
|
12
12
|
/* @__PURE__ */ d("div", { className: "mb-ds-06 flex w-full flex-col items-start justify-between md:flex-row md:items-center", children: [
|
|
13
|
-
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ d(c, { className: "text-ds-xl flex items-center gap-ds-03 text-text-secondary", children: [
|
|
13
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ d(c, { className: "text-ds-xl flex items-center gap-ds-03 text-text-secondary", "aria-label": "Select period", children: [
|
|
14
14
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03", children: [
|
|
15
15
|
/* @__PURE__ */ e(s, { className: "h-[25px] w-[50px] rounded-ds-md bg-field" }),
|
|
16
16
|
/* @__PURE__ */ e(s, { className: "h-[25px] w-[50px] rounded-ds-md bg-field" })
|
|
@@ -103,7 +103,7 @@ const u = o.forwardRef(
|
|
|
103
103
|
] }) });
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
|
-
|
|
106
|
+
b.displayName = "DashboardSkeleton";
|
|
107
107
|
export {
|
|
108
|
-
|
|
108
|
+
b as DashboardSkeleton
|
|
109
109
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
3
3
|
import * as S from "react";
|
|
4
4
|
import { useEffect as O } from "react";
|
|
5
|
-
import { Tooltip as k, TooltipTrigger as E, TooltipContent as M } from "@devalok/shilp-sutra/ui";
|
|
6
|
-
import { cn as p } from "@devalok/shilp-sutra/ui";
|
|
7
|
-
import { useIsMobile as B } from "@devalok/shilp-sutra/hooks";
|
|
5
|
+
import { Tooltip as k, TooltipTrigger as E, TooltipContent as M } from "@devalok/shilp-sutra/ui/tooltip";
|
|
6
|
+
import { cn as p } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
7
|
+
import { useIsMobile as B } from "@devalok/shilp-sutra/hooks/use-mobile";
|
|
8
8
|
import { formatDate as x } from "../utils/date-utils.js";
|
|
9
9
|
import { removeAllEmojis as T } from "../utils/emoji-utils.js";
|
|
10
10
|
import { isSameDay as I } from "date-fns";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as R, jsxs as H } from "react/jsx-runtime";
|
|
3
3
|
import * as J from "react";
|
|
4
4
|
import { useState as Q, useEffect as V } from "react";
|
|
5
|
-
import { cn as j } from "@devalok/shilp-sutra/ui";
|
|
5
|
+
import { cn as j } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
6
6
|
import { isSameDay as X, getStartOfDay as O } from "../utils/date-utils.js";
|
|
7
7
|
import { format as d } from "date-fns";
|
|
8
8
|
const Y = J.forwardRef(
|
package/dist/admin/types.d.ts
CHANGED
|
@@ -102,12 +102,12 @@ export interface DayInfo {
|
|
|
102
102
|
}
|
|
103
103
|
/** SSE real-time event callbacks */
|
|
104
104
|
export interface RealtimeCallbacks {
|
|
105
|
-
onBreakRequestCreated?: (data:
|
|
106
|
-
onBreakRequestApproved?: (data:
|
|
107
|
-
onBreakRequestRejected?: (data:
|
|
108
|
-
onBreakRequestCancelled?: (data:
|
|
109
|
-
onAttendanceCorrectionCreated?: (data:
|
|
110
|
-
onAttendanceCorrectionProcessed?: (data:
|
|
105
|
+
onBreakRequestCreated?: (data: BreakRequest) => void;
|
|
106
|
+
onBreakRequestApproved?: (data: BreakRequest) => void;
|
|
107
|
+
onBreakRequestRejected?: (data: BreakRequest) => void;
|
|
108
|
+
onBreakRequestCancelled?: (data: BreakRequest) => void;
|
|
109
|
+
onAttendanceCorrectionCreated?: (data: AttendanceRecord) => void;
|
|
110
|
+
onAttendanceCorrectionProcessed?: (data: AttendanceRecord) => void;
|
|
111
111
|
onTaskUpdated?: (data: unknown) => void;
|
|
112
112
|
}
|
|
113
113
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/admin/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,CAAA;AAE1E,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,SAAS,GACT,SAAS,CAAA;AAEb,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;AAElE,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,CAAA;AAEf,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,QAAQ,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AAO,CAAA;IACnB,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACzD,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAClE;AAED,eAAO,MAAM,WAAW,yFA6PvB,CAAA"}
|
|
@@ -4,10 +4,10 @@ import * as P from "react";
|
|
|
4
4
|
import { useState as n, useRef as v } from "react";
|
|
5
5
|
import { useDroppable as H } from "@dnd-kit/core";
|
|
6
6
|
import { SortableContext as U, verticalListSortingStrategy as _ } from "@dnd-kit/sortable";
|
|
7
|
-
import { cn as w } from "@devalok/shilp-sutra/ui";
|
|
8
|
-
import { Button as m } from "@devalok/shilp-sutra/ui";
|
|
9
|
-
import { Input as k } from "@devalok/shilp-sutra/ui";
|
|
10
|
-
import { DropdownMenu as $, DropdownMenuTrigger as q, DropdownMenuContent as G, DropdownMenuItem as u, DropdownMenuSeparator as J } from "@devalok/shilp-sutra/ui";
|
|
7
|
+
import { cn as w } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
8
|
+
import { Button as m } from "@devalok/shilp-sutra/ui/button";
|
|
9
|
+
import { Input as k } from "@devalok/shilp-sutra/ui/input";
|
|
10
|
+
import { DropdownMenu as $, DropdownMenuTrigger as q, DropdownMenuContent as G, DropdownMenuItem as u, DropdownMenuSeparator as J } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
11
11
|
import { IconEye as C, IconPlus as I, IconDots as Q, IconPencil as V, IconEyeOff as W, IconTrash as X } from "@tabler/icons-react";
|
|
12
12
|
import { TaskCard as Y } from "./task-card.js";
|
|
13
13
|
const E = [
|
|
@@ -23,8 +23,8 @@ const E = [
|
|
|
23
23
|
function({
|
|
24
24
|
column: s,
|
|
25
25
|
index: D,
|
|
26
|
-
isOverlay:
|
|
27
|
-
onAddTask:
|
|
26
|
+
isOverlay: A,
|
|
27
|
+
onAddTask: S,
|
|
28
28
|
onClickTask: B,
|
|
29
29
|
onRenameColumn: h,
|
|
30
30
|
onDeleteColumn: f,
|
|
@@ -36,14 +36,14 @@ const E = [
|
|
|
36
36
|
type: "column",
|
|
37
37
|
column: s
|
|
38
38
|
}
|
|
39
|
-
}), K = s.tasks.map((t) => t.id), F = E[D % E.length],
|
|
40
|
-
i.trim() && (
|
|
39
|
+
}), K = s.tasks.map((t) => t.id), F = E[D % E.length], y = () => {
|
|
40
|
+
i.trim() && (S(s.id, i.trim()), o(""), a(!1));
|
|
41
41
|
}, O = (t) => {
|
|
42
|
-
t.key === "Enter" &&
|
|
43
|
-
},
|
|
42
|
+
t.key === "Enter" && y(), t.key === "Escape" && (o(""), a(!1));
|
|
43
|
+
}, g = () => {
|
|
44
44
|
c.trim() && c.trim() !== s.name && (h == null || h(s.id, c.trim())), d(!1);
|
|
45
45
|
}, L = (t) => {
|
|
46
|
-
t.key === "Enter" &&
|
|
46
|
+
t.key === "Enter" && g(), t.key === "Escape" && (l(s.name), d(!1));
|
|
47
47
|
};
|
|
48
48
|
return /* @__PURE__ */ r(
|
|
49
49
|
"div",
|
|
@@ -53,7 +53,7 @@ const E = [
|
|
|
53
53
|
/* intentional: board column fixed width — matches add-column button */
|
|
54
54
|
"flex h-full w-[300px] flex-shrink-0 flex-col rounded-ds-xl border-l-[3px] bg-layer-01 shadow-01",
|
|
55
55
|
F,
|
|
56
|
-
|
|
56
|
+
A && "shadow-04"
|
|
57
57
|
),
|
|
58
58
|
children: [
|
|
59
59
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03 px-ds-04 py-ds-04", children: [
|
|
@@ -63,7 +63,7 @@ const E = [
|
|
|
63
63
|
ref: R,
|
|
64
64
|
value: c,
|
|
65
65
|
onChange: (t) => l(t.target.value),
|
|
66
|
-
onBlur:
|
|
66
|
+
onBlur: g,
|
|
67
67
|
onKeyDown: L,
|
|
68
68
|
className: "h-ds-xs-plus text-ds-md font-semibold",
|
|
69
69
|
autoFocus: !0
|
|
@@ -92,7 +92,8 @@ const E = [
|
|
|
92
92
|
{
|
|
93
93
|
variant: "ghost",
|
|
94
94
|
size: "icon-md",
|
|
95
|
-
className: "h-ds-xs w-ds-xs opacity-0 group-hover:opacity-100 hover:bg-interactive-subtle hover:text-interactive transition-opacity",
|
|
95
|
+
className: "h-ds-xs w-ds-xs opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 hover:bg-interactive-subtle hover:text-interactive transition-opacity",
|
|
96
|
+
"aria-label": "Add task",
|
|
96
97
|
onClick: () => {
|
|
97
98
|
a(!0), setTimeout(() => {
|
|
98
99
|
var t;
|
|
@@ -108,7 +109,8 @@ const E = [
|
|
|
108
109
|
{
|
|
109
110
|
variant: "ghost",
|
|
110
111
|
size: "icon-md",
|
|
111
|
-
className: "h-ds-xs w-ds-xs opacity-0 group-hover:opacity-100 transition-opacity",
|
|
112
|
+
className: "h-ds-xs w-ds-xs opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 transition-opacity",
|
|
113
|
+
"aria-label": "Column options",
|
|
112
114
|
children: /* @__PURE__ */ e(Q, { className: "h-ico-sm w-ico-sm" })
|
|
113
115
|
}
|
|
114
116
|
) }),
|
|
@@ -189,7 +191,7 @@ const E = [
|
|
|
189
191
|
{
|
|
190
192
|
size: "sm",
|
|
191
193
|
className: "h-ds-xs-plus bg-interactive hover:bg-interactive-hover text-text-on-color text-ds-sm",
|
|
192
|
-
onClick:
|
|
194
|
+
onClick: y,
|
|
193
195
|
disabled: !i.trim(),
|
|
194
196
|
children: "Add"
|
|
195
197
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kanban-board.d.ts","sourceRoot":"","sources":["../../src/board/kanban-board.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"kanban-board.d.ts","sourceRoot":"","sources":["../../src/board/kanban-board.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAuB9B,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAA;AA4ClE,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,eAAe,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,SAAS,CAAA;IACtB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3E,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACzD,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACvE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;CACzB;AAMD,eAAO,MAAM,WAAW,yFAmRvB,CAAA"}
|