@iclips/ui 0.0.19 → 1.0.1

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.cjs CHANGED
@@ -912,6 +912,19 @@ function CardDescription({ className, ...props }) {
912
912
  }
913
913
  );
914
914
  }
915
+ function CardAction({ className, ...props }) {
916
+ return /* @__PURE__ */ jsxRuntime.jsx(
917
+ "div",
918
+ {
919
+ "data-slot": "card-action",
920
+ className: cn(
921
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
922
+ className
923
+ ),
924
+ ...props
925
+ }
926
+ );
927
+ }
915
928
  function CardContent({ className, ...props }) {
916
929
  return /* @__PURE__ */ jsxRuntime.jsx(
917
930
  "div",
@@ -1749,7 +1762,6 @@ function Calendar2({
1749
1762
  caption_label: "text-sm font-medium",
1750
1763
  nav: "flex items-center gap-1",
1751
1764
  nav_button: cn(
1752
- buttonVariants({ variant: "outline" }),
1753
1765
  "size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
1754
1766
  ),
1755
1767
  nav_button_previous: "absolute left-1",
@@ -1763,7 +1775,6 @@ function Calendar2({
1763
1775
  props.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
1764
1776
  ),
1765
1777
  day: cn(
1766
- buttonVariants({ variant: "ghost" }),
1767
1778
  "size-8 p-0 font-normal aria-selected:opacity-100"
1768
1779
  ),
1769
1780
  day_range_start: "day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",
@@ -4887,12 +4898,16 @@ function useIsMobile() {
4887
4898
  }, []);
4888
4899
  return !!isMobile;
4889
4900
  }
4890
- function Skeleton({ className, ...props }) {
4901
+ function Skeleton({ className, variant = "pulse", ...props }) {
4891
4902
  return /* @__PURE__ */ jsxRuntime.jsx(
4892
4903
  "div",
4893
4904
  {
4894
4905
  "data-slot": "skeleton",
4895
- className: cn("bg-accent animate-pulse rounded-md", className),
4906
+ className: cn(
4907
+ "rounded-md",
4908
+ variant === "shimmer" ? "skeleton-shimmer" : "bg-accent animate-pulse",
4909
+ className
4910
+ ),
4896
4911
  ...props
4897
4912
  }
4898
4913
  );
@@ -5963,6 +5978,162 @@ function ToggleGroupItem({
5963
5978
  }
5964
5979
  );
5965
5980
  }
5981
+ var sizeClasses = {
5982
+ sm: "w-24 h-24",
5983
+ md: "w-32 h-32",
5984
+ lg: "w-48 h-48"
5985
+ };
5986
+ function EmptyInboxIllustration({
5987
+ className,
5988
+ size = "md",
5989
+ primaryColor = "var(--purple-500)",
5990
+ secondaryColor = "var(--purple-100)"
5991
+ }) {
5992
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5993
+ "svg",
5994
+ {
5995
+ className: cn(sizeClasses[size], className),
5996
+ viewBox: "0 0 120 120",
5997
+ fill: "none",
5998
+ xmlns: "http://www.w3.org/2000/svg",
5999
+ children: [
6000
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "55", fill: secondaryColor, opacity: "0.5" }),
6001
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "30", y: "45", width: "60", height: "40", rx: "4", fill: primaryColor, opacity: "0.2" }),
6002
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "30", y: "45", width: "60", height: "15", rx: "4", fill: primaryColor }),
6003
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M35 60 L60 75 L85 60", stroke: primaryColor, strokeWidth: "3", fill: "none" }),
6004
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "25", cy: "35", r: "3", fill: primaryColor, opacity: "0.6" }),
6005
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "95", cy: "40", r: "2", fill: primaryColor, opacity: "0.4" }),
6006
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "100", cy: "70", r: "2.5", fill: primaryColor, opacity: "0.5" })
6007
+ ]
6008
+ }
6009
+ );
6010
+ }
6011
+ function EmptySearchIllustration({
6012
+ className,
6013
+ size = "md",
6014
+ primaryColor = "var(--purple-500)",
6015
+ secondaryColor = "var(--purple-100)"
6016
+ }) {
6017
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6018
+ "svg",
6019
+ {
6020
+ className: cn(sizeClasses[size], className),
6021
+ viewBox: "0 0 120 120",
6022
+ fill: "none",
6023
+ xmlns: "http://www.w3.org/2000/svg",
6024
+ children: [
6025
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "55", fill: secondaryColor, opacity: "0.5" }),
6026
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "52", cy: "52", r: "22", stroke: primaryColor, strokeWidth: "4", fill: "none" }),
6027
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "68", y1: "68", x2: "88", y2: "88", stroke: primaryColor, strokeWidth: "4", strokeLinecap: "round" }),
6028
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "45", y1: "45", x2: "59", y2: "59", stroke: primaryColor, strokeWidth: "3", strokeLinecap: "round", opacity: "0.6" }),
6029
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "59", y1: "45", x2: "45", y2: "59", stroke: primaryColor, strokeWidth: "3", strokeLinecap: "round", opacity: "0.6" })
6030
+ ]
6031
+ }
6032
+ );
6033
+ }
6034
+ function EmptyProjectsIllustration({
6035
+ className,
6036
+ size = "md",
6037
+ primaryColor = "var(--purple-500)",
6038
+ secondaryColor = "var(--purple-100)"
6039
+ }) {
6040
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6041
+ "svg",
6042
+ {
6043
+ className: cn(sizeClasses[size], className),
6044
+ viewBox: "0 0 120 120",
6045
+ fill: "none",
6046
+ xmlns: "http://www.w3.org/2000/svg",
6047
+ children: [
6048
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "55", fill: secondaryColor, opacity: "0.5" }),
6049
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M25 40 L25 85 L95 85 L95 45 L55 45 L50 40 Z", fill: primaryColor, opacity: "0.3" }),
6050
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M25 50 L25 85 L95 85 L95 50 Z", fill: primaryColor, opacity: "0.6" }),
6051
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "60", y1: "60", x2: "60", y2: "76", stroke: "white", strokeWidth: "3", strokeLinecap: "round" }),
6052
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "52", y1: "68", x2: "68", y2: "68", stroke: "white", strokeWidth: "3", strokeLinecap: "round" })
6053
+ ]
6054
+ }
6055
+ );
6056
+ }
6057
+ function EmptyCalendarIllustration({
6058
+ className,
6059
+ size = "md",
6060
+ primaryColor = "var(--purple-500)",
6061
+ secondaryColor = "var(--purple-100)"
6062
+ }) {
6063
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6064
+ "svg",
6065
+ {
6066
+ className: cn(sizeClasses[size], className),
6067
+ viewBox: "0 0 120 120",
6068
+ fill: "none",
6069
+ xmlns: "http://www.w3.org/2000/svg",
6070
+ children: [
6071
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "55", fill: secondaryColor, opacity: "0.5" }),
6072
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "28", y: "35", width: "64", height: "55", rx: "4", fill: primaryColor, opacity: "0.2" }),
6073
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "28", y: "35", width: "64", height: "15", rx: "4", fill: primaryColor }),
6074
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "40", y: "30", width: "4", height: "12", rx: "2", fill: primaryColor }),
6075
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "76", y: "30", width: "4", height: "12", rx: "2", fill: primaryColor }),
6076
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "45", cy: "62", r: "3", fill: primaryColor, opacity: "0.3" }),
6077
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "62", r: "3", fill: primaryColor, opacity: "0.3" }),
6078
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "75", cy: "62", r: "3", fill: primaryColor, opacity: "0.3" }),
6079
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "45", cy: "77", r: "3", fill: primaryColor, opacity: "0.3" }),
6080
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "77", r: "3", fill: primaryColor, opacity: "0.3" }),
6081
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "75", cy: "77", r: "3", fill: primaryColor, opacity: "0.3" })
6082
+ ]
6083
+ }
6084
+ );
6085
+ }
6086
+ function ErrorStateIllustration({
6087
+ className,
6088
+ size = "md",
6089
+ primaryColor = "var(--red-500)",
6090
+ secondaryColor = "var(--red-100)"
6091
+ }) {
6092
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6093
+ "svg",
6094
+ {
6095
+ className: cn(sizeClasses[size], className),
6096
+ viewBox: "0 0 120 120",
6097
+ fill: "none",
6098
+ xmlns: "http://www.w3.org/2000/svg",
6099
+ children: [
6100
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "55", fill: secondaryColor, opacity: "0.5" }),
6101
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M60 30 L90 80 L30 80 Z", fill: primaryColor, opacity: "0.2", stroke: primaryColor, strokeWidth: "3" }),
6102
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "60", y1: "48", x2: "60", y2: "62", stroke: primaryColor, strokeWidth: "4", strokeLinecap: "round" }),
6103
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "70", r: "2.5", fill: primaryColor })
6104
+ ]
6105
+ }
6106
+ );
6107
+ }
6108
+ function SuccessStateIllustration({
6109
+ className,
6110
+ size = "md",
6111
+ primaryColor = "var(--green-500)",
6112
+ secondaryColor = "var(--green-100)"
6113
+ }) {
6114
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6115
+ "svg",
6116
+ {
6117
+ className: cn(sizeClasses[size], className),
6118
+ viewBox: "0 0 120 120",
6119
+ fill: "none",
6120
+ xmlns: "http://www.w3.org/2000/svg",
6121
+ children: [
6122
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "55", fill: secondaryColor, opacity: "0.5" }),
6123
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "60", cy: "60", r: "30", fill: primaryColor, opacity: "0.2", stroke: primaryColor, strokeWidth: "3" }),
6124
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M45 60 L55 70 L75 50", stroke: primaryColor, strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" })
6125
+ ]
6126
+ }
6127
+ );
6128
+ }
6129
+ var Illustrations = {
6130
+ EmptyInbox: EmptyInboxIllustration,
6131
+ EmptySearch: EmptySearchIllustration,
6132
+ EmptyProjects: EmptyProjectsIllustration,
6133
+ EmptyCalendar: EmptyCalendarIllustration,
6134
+ ErrorState: ErrorStateIllustration,
6135
+ SuccessState: SuccessStateIllustration
6136
+ };
5966
6137
  function ProposalTemplate({
5967
6138
  data,
5968
6139
  showPreview = false,
@@ -6131,6 +6302,10 @@ function ProposalTemplate({
6131
6302
  );
6132
6303
  }
6133
6304
 
6305
+ Object.defineProperty(exports, "toast", {
6306
+ enumerable: true,
6307
+ get: function () { return sonner.toast; }
6308
+ });
6134
6309
  exports.Accordion = Accordion;
6135
6310
  exports.AccordionContent = AccordionContent;
6136
6311
  exports.AccordionItem = AccordionItem;
@@ -6163,6 +6338,7 @@ exports.BreadcrumbSeparator = BreadcrumbSeparator;
6163
6338
  exports.Button = Button;
6164
6339
  exports.Calendar = Calendar2;
6165
6340
  exports.Card = Card;
6341
+ exports.CardAction = CardAction;
6166
6342
  exports.CardContent = CardContent;
6167
6343
  exports.CardDescription = CardDescription;
6168
6344
  exports.CardFooter = CardFooter;
@@ -6243,6 +6419,11 @@ exports.DropdownMenuSub = DropdownMenuSub;
6243
6419
  exports.DropdownMenuSubContent = DropdownMenuSubContent;
6244
6420
  exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
6245
6421
  exports.DropdownMenuTrigger = DropdownMenuTrigger;
6422
+ exports.EmptyCalendarIllustration = EmptyCalendarIllustration;
6423
+ exports.EmptyInboxIllustration = EmptyInboxIllustration;
6424
+ exports.EmptyProjectsIllustration = EmptyProjectsIllustration;
6425
+ exports.EmptySearchIllustration = EmptySearchIllustration;
6426
+ exports.ErrorStateIllustration = ErrorStateIllustration;
6246
6427
  exports.Form = Form;
6247
6428
  exports.FormControl = FormControl;
6248
6429
  exports.FormDescription = FormDescription;
@@ -6253,6 +6434,7 @@ exports.FormMessage = FormMessage;
6253
6434
  exports.HoverCard = HoverCard;
6254
6435
  exports.HoverCardContent = HoverCardContent;
6255
6436
  exports.HoverCardTrigger = HoverCardTrigger;
6437
+ exports.Illustrations = Illustrations;
6256
6438
  exports.ImageWithFallback = ImageWithFallback;
6257
6439
  exports.Input = Input;
6258
6440
  exports.InputOTP = InputOTP;
@@ -6350,6 +6532,7 @@ exports.SidebarTrigger = SidebarTrigger;
6350
6532
  exports.Skeleton = Skeleton;
6351
6533
  exports.Slider = Slider;
6352
6534
  exports.Sonner = Toaster;
6535
+ exports.SuccessStateIllustration = SuccessStateIllustration;
6353
6536
  exports.Switch = Switch;
6354
6537
  exports.Table = Table;
6355
6538
  exports.TableBody = TableBody;