@akashlimbani18/tail-admin-ui 1.0.2 → 1.0.3

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.
@@ -6889,6 +6889,22 @@ function oq({
6889
6889
  ] })
6890
6890
  ] });
6891
6891
  }
6892
+ function lq() {
6893
+ return /* @__PURE__ */ I("div", { className: "flex animate-pulse flex-col overflow-hidden rounded-xl border border-border bg-bg-card shadow-sm", children: [
6894
+ /* @__PURE__ */ I("div", { className: "flex items-start justify-between gap-2 px-4 pb-2 pt-4", children: [
6895
+ /* @__PURE__ */ I("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
6896
+ /* @__PURE__ */ p("div", { className: "h-4 w-3/4 rounded-md bg-[var(--color-border-default)]" }),
6897
+ /* @__PURE__ */ p("div", { className: "h-3 w-1/2 rounded-md bg-[var(--color-border-default)]" })
6898
+ ] }),
6899
+ /* @__PURE__ */ p("div", { className: "h-5 w-14 shrink-0 rounded-full bg-[var(--color-border-default)]" })
6900
+ ] }),
6901
+ /* @__PURE__ */ p("div", { className: "flex items-center justify-center bg-bg-surface-secondary/50 px-4 py-4", children: /* @__PURE__ */ p("div", { className: "h-40 w-40 rounded-md bg-[var(--color-border-default)]" }) }),
6902
+ /* @__PURE__ */ I("div", { className: "flex gap-2 border-t border-border px-4 py-3", children: [
6903
+ /* @__PURE__ */ p("div", { className: "h-8 flex-1 rounded-lg bg-[var(--color-border-default)]" }),
6904
+ /* @__PURE__ */ p("div", { className: "h-8 flex-1 rounded-lg bg-[var(--color-border-default)]" })
6905
+ ] })
6906
+ ] });
6907
+ }
6892
6908
  const GN = {
6893
6909
  neutral: "text-text-secondary",
6894
6910
  primary: "text-brand",
@@ -6896,7 +6912,7 @@ const GN = {
6896
6912
  warning: "text-[var(--token-status-warning-light-text)]",
6897
6913
  error: "text-[var(--token-status-error-light-text)]"
6898
6914
  };
6899
- function lq({
6915
+ function sq({
6900
6916
  title: e,
6901
6917
  value: t,
6902
6918
  subtitle: r,
@@ -6947,7 +6963,7 @@ function ZN({ highlighted: e = !1 }) {
6947
6963
  }
6948
6964
  );
6949
6965
  }
6950
- function sq({
6966
+ function cq({
6951
6967
  title: e,
6952
6968
  value: t,
6953
6969
  trendLabel: r,
@@ -26924,7 +26940,7 @@ function OH({
26924
26940
  }
26925
26941
  );
26926
26942
  }
26927
- function cq({
26943
+ function uq({
26928
26944
  data: e = [],
26929
26945
  loading: t = !1,
26930
26946
  title: r = "Opening vs Closing Book Value",
@@ -30280,7 +30296,7 @@ const qo = [
30280
30296
  { id: "proposal_sent", label: "Proposal Sent", accent: "orange" },
30281
30297
  { id: "negotiation", label: "Negotiation", accent: "orange" },
30282
30298
  { id: "converted_won", label: "Converted / Won", accent: "green" }
30283
- ], dS = qo.map((e) => e.id), uq = [
30299
+ ], dS = qo.map((e) => e.id), dq = [
30284
30300
  { value: "", label: "All tags" },
30285
30301
  { value: "follow_up_pending", label: "Follow-up Pending" },
30286
30302
  { value: "no_response", label: "No Response" },
@@ -30362,7 +30378,7 @@ const qo = [
30362
30378
  ),
30363
30379
  ring: "ring-slate-300"
30364
30380
  }
30365
- }, dq = {
30381
+ }, fq = {
30366
30382
  low: { label: "Low", className: "bg-slate-100 text-slate-600 ring-slate-200" },
30367
30383
  medium: { label: "Medium", className: "bg-blue-50 text-blue-700 ring-blue-200" },
30368
30384
  high: { label: "High", className: "bg-amber-50 text-amber-700 ring-amber-200" },
@@ -30431,7 +30447,7 @@ function fS(e, t = dS) {
30431
30447
  (r[n.columnId] ?? r.new).push(n);
30432
30448
  return r;
30433
30449
  }
30434
- function fq(e, t) {
30450
+ function hq(e, t) {
30435
30451
  const r = t.search.trim().toLowerCase();
30436
30452
  return e.filter((n) => t.columnId && n.columnId !== t.columnId || t.secondaryStatus && n.secondaryStatus !== t.secondaryStatus || t.priority && n.priority !== t.priority || t.participantId && n.assignee.id !== t.participantId ? !1 : r ? [
30437
30453
  n.name,
@@ -30445,7 +30461,7 @@ function PK(e, t, r, n) {
30445
30461
  const i = e.filter((s) => s.columnId === t), a = e.filter((s) => s.columnId !== t), o = i.findIndex((s) => s.id === r), l = i.findIndex((s) => s.id === n);
30446
30462
  return o < 0 || l < 0 || o === l ? e : [...a, ..._p(i, o, l)];
30447
30463
  }
30448
- function hq(e, t = dS, r) {
30464
+ function pq(e, t = dS, r) {
30449
30465
  if (!r || !Object.keys(r).length) return e;
30450
30466
  const n = fS(e, t);
30451
30467
  return t.flatMap((i) => {
@@ -30848,7 +30864,7 @@ function FK(e, t, r, n, i, a) {
30848
30864
  const l = String(e.id);
30849
30865
  return l === n || r.includes(l) ? null : a.find((c) => c.id === l)?.columnId === i ? l : null;
30850
30866
  }
30851
- const pq = pS(
30867
+ const mq = pS(
30852
30868
  qo.map((e) => e.id)
30853
30869
  );
30854
30870
  function ab(e, t, r = qo.map((n) => n.id)) {
@@ -30862,7 +30878,7 @@ function ab(e, t, r = qo.map((n) => n.id)) {
30862
30878
  const a = t.find((o) => o.id === i);
30863
30879
  return a ? a.columnId : null;
30864
30880
  }
30865
- function mq(e, t = qo) {
30881
+ function vq(e, t = qo) {
30866
30882
  return t.find((r) => r.id === e)?.label ?? e;
30867
30883
  }
30868
30884
  function rd(...e) {
@@ -30896,7 +30912,7 @@ const WK = [2, 2, 2, 2, 2, 2, 2, 2, 2], ob = `
30896
30912
  animation: kanban-drop-pulse 1.2s ease-in-out infinite;
30897
30913
  }
30898
30914
  `;
30899
- function vq({
30915
+ function gq({
30900
30916
  items: e,
30901
30917
  columns: t = qo,
30902
30918
  loading: r = !1,
@@ -31165,7 +31181,7 @@ const UK = Date.now(), $i = (e) => new Date(UK - e * 60 * 60 * 1e3).toISOString(
31165
31181
  assignee: { id: "u-1", name: "Alex Rivera" },
31166
31182
  lastActivityAt: $i(72)
31167
31183
  }
31168
- ], gq = [
31184
+ ], yq = [
31169
31185
  { value: "", label: "All assignees" },
31170
31186
  ...Array.from(
31171
31187
  new Map(HK.map((e) => [e.assignee.id, e.assignee])).values()
@@ -31291,7 +31307,7 @@ function qK() {
31291
31307
  /* @__PURE__ */ p(Ha, { align: "right", widthClass: "w-[58%]", compact: !0 })
31292
31308
  ] });
31293
31309
  }
31294
- function yq({
31310
+ function bq({
31295
31311
  messages: e = [],
31296
31312
  currentUserId: t = "",
31297
31313
  loading: r = !1,
@@ -31727,12 +31743,12 @@ const XK = "user-1", Ra = Date.now(), Bl = 3600 * 1e3, nd = [
31727
31743
  createdAt: new Date(Ra - 1800 * 1e3).toISOString(),
31728
31744
  isDeleted: !0
31729
31745
  }
31730
- ], bq = {
31746
+ ], xq = {
31731
31747
  messageId: nd[0].id,
31732
31748
  authorName: nd[0].authorName,
31733
31749
  quoteText: nd[0].text
31734
31750
  };
31735
- function xq(e, t = XK) {
31751
+ function wq(e, t = XK) {
31736
31752
  return e.map((r) => ({
31737
31753
  ...r,
31738
31754
  canReply: !r.isDeleted,
@@ -31749,7 +31765,7 @@ const mS = 520, ZK = 5, vS = "22rem", QK = [
31749
31765
  { value: "CALL", label: "Calls" },
31750
31766
  { value: "EMAIL", label: "Emails" }
31751
31767
  ];
31752
- function wq(e) {
31768
+ function Aq(e) {
31753
31769
  return e.split(/\s+/).filter(Boolean).slice(0, 2).map((t) => t[0]?.toUpperCase() ?? "").join("");
31754
31770
  }
31755
31771
  function JK(e) {
@@ -31785,7 +31801,7 @@ function Mp(e) {
31785
31801
  year: "numeric"
31786
31802
  }).format(t);
31787
31803
  }
31788
- function Aq(e) {
31804
+ function Eq(e) {
31789
31805
  if (!e) return "Earlier";
31790
31806
  const t = new Date(e);
31791
31807
  if (Number.isNaN(t.getTime())) return "Earlier";
@@ -31815,11 +31831,11 @@ function tY(e) {
31815
31831
  year: "numeric"
31816
31832
  }).format(t);
31817
31833
  }
31818
- function Eq(e) {
31834
+ function Sq(e) {
31819
31835
  const t = String(e).toUpperCase();
31820
31836
  return t === "STATUS_CHANGE" || t === "STAGE_CHANGED" ? "STAGE CHANGED" : t === "CREATED" ? "CREATED" : t === "NOTE" ? "NOTE ADDED" : t === "CONVERTED" || t === "CONVERTED_WON" ? "CONVERTED" : String(e).replace(/_/g, " ").toUpperCase();
31821
31837
  }
31822
- function Sq(e) {
31838
+ function kq(e) {
31823
31839
  switch (String(e).toUpperCase()) {
31824
31840
  case "STATUS_CHANGE":
31825
31841
  case "STAGE_CHANGED":
@@ -31859,7 +31875,7 @@ function gS(e, t) {
31859
31875
  const r = String(e).toUpperCase(), n = t ? String(t).toUpperCase() : "";
31860
31876
  return r === "STATUS_CHANGE" || r === "STAGE_CHANGED" || n === "STATUS_CHANGE";
31861
31877
  }
31862
- function kq(e, t) {
31878
+ function Cq(e, t) {
31863
31879
  if (gS(e, t)) return "STATUS_CHANGE";
31864
31880
  const r = String(e).toUpperCase();
31865
31881
  return r === "NOTE_ADDED" || r === "NOTE" ? "NOTE" : r === "CONVERTED" || r === "CONVERTED_WON" || r === "LEAD_CONVERTED" ? "CONVERTED" : r;
@@ -31870,7 +31886,7 @@ function yS(e) {
31870
31886
  const r = t.replace(/[_-]+/g, " ").toLowerCase();
31871
31887
  return r.charAt(0).toUpperCase() + r.slice(1);
31872
31888
  }
31873
- function Cq(e, t) {
31889
+ function Oq(e, t) {
31874
31890
  if (t?.statusChange) return "Stage changed";
31875
31891
  const r = t?.subject?.trim();
31876
31892
  if (r) {
@@ -31924,7 +31940,7 @@ function sb(e) {
31924
31940
  const t = e.trim();
31925
31941
  return t ? t.replace(/[_-]+/g, " ").replace(/\b\w/g, (r) => r.toUpperCase()) : "—";
31926
31942
  }
31927
- function Oq(e) {
31943
+ function Nq(e) {
31928
31944
  return iY(e);
31929
31945
  }
31930
31946
  const aY = "5.75rem", oY = "2.5rem", lY = "1rem";
@@ -32205,7 +32221,7 @@ function fY({ label: e }) {
32205
32221
  }
32206
32222
  );
32207
32223
  }
32208
- function Nq({
32224
+ function Pq({
32209
32225
  items: e,
32210
32226
  filterOptions: t = QK,
32211
32227
  filterValue: r,
@@ -32428,7 +32444,7 @@ function yY() {
32428
32444
  return /* @__PURE__ */ p(Rt, { className: "mb-3 mt-5 first:mt-0 h-3 w-16 rounded-md" });
32429
32445
  }
32430
32446
  const bY = 5;
32431
- function Pq({
32447
+ function Iq({
32432
32448
  fixedHeight: e = !0,
32433
32449
  rows: t = bY,
32434
32450
  timeColumnWidth: r = pY,
@@ -32925,7 +32941,7 @@ function Li({
32925
32941
  /* @__PURE__ */ p("span", { className: "amount", children: t })
32926
32942
  ] });
32927
32943
  }
32928
- function Iq({
32944
+ function _q({
32929
32945
  store: e,
32930
32946
  receipt: t,
32931
32947
  className: r,
@@ -33111,7 +33127,7 @@ const PS = {
33111
33127
  paidAmount: 2e4,
33112
33128
  changeReturned: 2300
33113
33129
  }
33114
- }, _q = {
33130
+ }, Tq = {
33115
33131
  ...$p,
33116
33132
  lineItems: [
33117
33133
  { productName: "mobile", sku: "MOB-001", quantity: 1, unitPrice: 15e3, lineTotal: 15e3 },
@@ -33133,7 +33149,7 @@ const PS = {
33133
33149
  paidAmount: 23600,
33134
33150
  changeReturned: 0
33135
33151
  }
33136
- }, Tq = {
33152
+ }, Dq = {
33137
33153
  ...$p,
33138
33154
  customer: {
33139
33155
  name: "Rahul Patel",
@@ -33307,7 +33323,7 @@ function pb(e, t, r) {
33307
33323
  }
33308
33324
  e.addEventListener("load", n, { once: !0 });
33309
33325
  }
33310
- function Dq(e, t) {
33326
+ function Mq(e, t) {
33311
33327
  if (t?.contentWindow)
33312
33328
  return pb(t.contentWindow, e, () => {
33313
33329
  t.contentWindow?.focus(), t.contentWindow?.print();
@@ -33317,7 +33333,7 @@ function Dq(e, t) {
33317
33333
  r.focus(), r.print();
33318
33334
  }), !0) : !1;
33319
33335
  }
33320
- function Mq(e = $p, t = PS) {
33336
+ function jq(e = $p, t = PS) {
33321
33337
  return OY(e, t);
33322
33338
  }
33323
33339
  function NY(e) {
@@ -33578,7 +33594,7 @@ const mb = {
33578
33594
  2: "grid grid-cols-1 gap-6 md:grid-cols-2",
33579
33595
  3: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3"
33580
33596
  };
33581
- function jq({
33597
+ function $q({
33582
33598
  loading: e = !1,
33583
33599
  showBanner: t = !1,
33584
33600
  banner: r,
@@ -33604,8 +33620,8 @@ export {
33604
33620
  WG as Accordion,
33605
33621
  HS as ActionMenu,
33606
33622
  CG as Activity,
33607
- Nq as ActivityTimeline,
33608
- Pq as ActivityTimelineSkeleton,
33623
+ Pq as ActivityTimeline,
33624
+ Iq as ActivityTimelineSkeleton,
33609
33625
  HG as Alert,
33610
33626
  RY as AlertInfoIcon,
33611
33627
  Tk as AlertTriangle,
@@ -33624,12 +33640,12 @@ export {
33624
33640
  Qe as Button,
33625
33641
  XK as CHAT_BOX_DUMMY_CURRENT_USER_ID,
33626
33642
  nd as CHAT_BOX_DUMMY_MESSAGES,
33627
- bq as CHAT_BOX_DUMMY_REPLY_TARGET,
33643
+ xq as CHAT_BOX_DUMMY_REPLY_TARGET,
33628
33644
  yb as CalendarDays,
33629
33645
  KY as Camera,
33630
33646
  QA as CartesianGrid,
33631
33647
  n8 as ChartTooltip,
33632
- yq as ChatBox,
33648
+ bq as ChatBox,
33633
33649
  mf as Check,
33634
33650
  Dk as CheckCircle2,
33635
33651
  GY as CheckSquare,
@@ -33640,7 +33656,7 @@ export {
33640
33656
  qY as Clock,
33641
33657
  Mk as Code,
33642
33658
  tu as CornerDownRight,
33643
- sq as CountCard,
33659
+ cq as CountCard,
33644
33660
  XY as CreditCard,
33645
33661
  JY as Crown,
33646
33662
  QK as DEFAULT_ACTIVITY_FILTER_OPTIONS,
@@ -33668,9 +33684,9 @@ export {
33668
33684
  qG as InternationalPhoneInput,
33669
33685
  qo as KANBAN_COLUMNS,
33670
33686
  dS as KANBAN_COLUMN_IDS,
33671
- gq as KANBAN_DUMMY_ASSIGNEE_OPTIONS,
33687
+ yq as KANBAN_DUMMY_ASSIGNEE_OPTIONS,
33672
33688
  HK as KANBAN_DUMMY_ITEMS,
33673
- vq as KanbanBoard,
33689
+ gq as KanbanBoard,
33674
33690
  hS as KanbanCard,
33675
33691
  LK as KanbanCardSkeleton,
33676
33692
  jK as KanbanColumn,
@@ -33693,13 +33709,13 @@ export {
33693
33709
  Sk as MoreVertical,
33694
33710
  sG as Move,
33695
33711
  DG as NavDot,
33696
- cq as OpeningClosingBookValueChart,
33712
+ uq as OpeningClosingBookValueChart,
33697
33713
  $p as POS_RECEIPT_DUMMY_DATA,
33698
- _q as POS_RECEIPT_MANY_ITEMS,
33714
+ Tq as POS_RECEIPT_MANY_ITEMS,
33699
33715
  SY as POS_RECEIPT_PRINT_FIT_SCRIPT,
33700
33716
  AS as POS_RECEIPT_PRINT_STYLES,
33701
- Tq as POS_RECEIPT_REGISTERED_CUSTOMER,
33702
- dq as PRIORITY_STYLES,
33717
+ Dq as POS_RECEIPT_REGISTERED_CUSTOMER,
33718
+ fq as PRIORITY_STYLES,
33703
33719
  nq as PRODUCT_PLACEHOLDER_IMAGE_URL,
33704
33720
  cG as Package,
33705
33721
  MG as Pagination,
@@ -33708,18 +33724,19 @@ export {
33708
33724
  wb as Phone,
33709
33725
  dG as Plus,
33710
33726
  jG as Popover,
33711
- Iq as PosReceiptPrint,
33727
+ _q as PosReceiptPrint,
33712
33728
  bN as ProductCardSkeleton,
33713
33729
  iq as ProductGridSkeleton,
33714
33730
  $G as ProgressBar,
33715
33731
  oq as QrCard,
33732
+ lq as QrCardSkeleton,
33716
33733
  TG as QrCode,
33717
33734
  Ab as RefreshCw,
33718
33735
  El as ResponsiveContainer,
33719
33736
  XG as RichTextEditor,
33720
33737
  SK as SECONDARY_ACCENT,
33721
33738
  ib as SECONDARY_STATUS_LABELS,
33722
- uq as SECONDARY_STATUS_OPTIONS,
33739
+ dq as SECONDARY_STATUS_OPTIONS,
33723
33740
  pG as SaleReturn,
33724
33741
  hG as Save,
33725
33742
  mG as Search,
@@ -33735,7 +33752,7 @@ export {
33735
33752
  WY as SolidBadge,
33736
33753
  uG as SquarePen,
33737
33754
  bG as Star,
33738
- lq as StatsCard,
33755
+ sq as StatsCard,
33739
33756
  jk as Strikethrough,
33740
33757
  Nk as Sun,
33741
33758
  JG as TabPanel,
@@ -33745,7 +33762,7 @@ export {
33745
33762
  Sb as Target,
33746
33763
  MY as TelemetryProbeBanner,
33747
33764
  IY as TelemetryProbeCard,
33748
- jq as TelemetryProbeGrid,
33765
+ $q as TelemetryProbeGrid,
33749
33766
  UY as TextBadge,
33750
33767
  Xk as Textarea,
33751
33768
  FG as ThemeSwitcher,
@@ -33765,21 +33782,21 @@ export {
33765
33782
  xE as XAxis,
33766
33783
  wE as YAxis,
33767
33784
  wG as Zap,
33768
- Sq as activityTypeBadgeColor,
33769
- Eq as activityTypeBadgeLabel,
33785
+ kq as activityTypeBadgeColor,
33786
+ Sq as activityTypeBadgeLabel,
33770
33787
  ff as activityTypeLabel,
33771
33788
  OY as buildPosReceiptPrintDocument,
33772
- Mq as buildPosReceiptPrintDocumentPreview,
33789
+ jq as buildPosReceiptPrintDocumentPreview,
33773
33790
  wS as buildReceiptBarcodeSvg,
33774
33791
  pS as createKanbanCollisionDetection,
33775
33792
  nY as filterActivitiesByType,
33776
- fq as filterKanbanItems,
33793
+ hq as filterKanbanItems,
33777
33794
  FK as findOverItemIdInColumn,
33778
33795
  Dp as formatActivityDate,
33779
33796
  JK as formatActivityTime,
33780
33797
  tY as formatDateGroupHeading,
33781
33798
  Mp as formatDateGroupLabel,
33782
- Aq as formatDateGroupPill,
33799
+ Eq as formatDateGroupPill,
33783
33800
  IS as formatProbeStatusLabel,
33784
33801
  NY as formatProbeTitle,
33785
33802
  _e as formatReceiptAmount,
@@ -33788,28 +33805,28 @@ export {
33788
33805
  IK as formatRelativeTime,
33789
33806
  sb as formatStageLabel,
33790
33807
  hf as formatTelemetryTimestamp,
33791
- mq as getColumnLabel,
33792
- mq as getKanbanColumnLabel,
33808
+ vq as getColumnLabel,
33809
+ vq as getKanbanColumnLabel,
33793
33810
  rY as groupActivitiesByDate,
33794
33811
  fS as groupItemsByColumn,
33795
- wq as initialsFromName,
33812
+ Aq as initialsFromName,
33796
33813
  gS as isStageChangeType,
33797
- pq as kanbanCollisionDetection,
33798
- kq as normalizeActivityType,
33814
+ mq as kanbanCollisionDetection,
33815
+ Cq as normalizeActivityType,
33799
33816
  zY as normalizeBadgeActivationStatus,
33800
33817
  iY as parseStageChangeText,
33801
- Oq as parseStatusChangeSubject,
33802
- Dq as printPosReceiptDocument,
33818
+ Nq as parseStatusChangeSubject,
33819
+ Mq as printPosReceiptDocument,
33803
33820
  Qs as receiptRichTextToPlainText,
33804
33821
  PK as reorderItemsInColumn,
33805
- Cq as resolveActivityTitle,
33822
+ Oq as resolveActivityTitle,
33806
33823
  ab as resolveDropColumnFromEvent,
33807
33824
  SS as resolvePosReceiptLineAmount,
33808
33825
  jp as resolvePosReceiptLineUnitPrice,
33809
33826
  _S as resolveProbeStatusPalette,
33810
33827
  dN as resolveTableSkeletonRows,
33811
- hq as sortItemsByColumnOrder,
33828
+ pq as sortItemsByColumnOrder,
33812
33829
  yS as toSentenceCase,
33813
- xq as withChatPermissions,
33830
+ wq as withChatPermissions,
33814
33831
  pb as writePosReceiptToWindow
33815
33832
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akashlimbani18/tail-admin-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "main": "dist/tail-admin-ui.cjs.js",
6
6
  "module": "dist/tail-admin-ui.es.js",