myshell-react-lib 0.1.9 → 0.1.10

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
@@ -5387,7 +5387,7 @@ function clamp(value1, min3, max2) {
5387
5387
  return Math.min(Math.max(value1, min3), max2);
5388
5388
  }
5389
5389
  function isClient() {
5390
- return typeof window !== "undefined";
5390
+ return typeof window !== "undefined" && typeof document !== "undefined";
5391
5391
  }
5392
5392
  function isIosApp() {
5393
5393
  return isClient() && typeof navigator !== "undefined" && /iPhone|iPad|iPod/i.test(navigator.userAgent) && !!window.webkit;
@@ -6404,6 +6404,11 @@ var iconButtonVariants = (0, import_class_variance_authority6.cva)("shrink-0 inl
6404
6404
  }
6405
6405
  },
6406
6406
  compoundVariants: [
6407
+ {
6408
+ variant: "primary",
6409
+ color: "default",
6410
+ className: "bg-cc-Button-Primary-bg-default text-cc-Button-Primary-fg-default hover:bg-cc-Button-Primary-bg-hover active:bg-cc-Button-Primary-bg-active disabled:bg-cc-Button-Primary-bg-disabled"
6411
+ },
6407
6412
  {
6408
6413
  variant: "primary",
6409
6414
  color: "brand",
@@ -6452,7 +6457,7 @@ var iconButtonVariants = (0, import_class_variance_authority6.cva)("shrink-0 inl
6452
6457
  ],
6453
6458
  defaultVariants: {
6454
6459
  variant: "primary",
6455
- color: "default",
6460
+ color: "brand",
6456
6461
  size: "lg"
6457
6462
  }
6458
6463
  });
@@ -12291,12 +12296,12 @@ var tabListVariants = (0, import_class_variance_authority18.cva)("relative inlin
12291
12296
  size: {
12292
12297
  sm: "h-6",
12293
12298
  md: "h-9",
12294
- lg: "h-12"
12299
+ lg: "h-11"
12295
12300
  },
12296
12301
  variant: {
12297
- button: "w-full border border-Colors-Border-Default bg-Colors-Background-Neutral-Primary-Default p-0.5",
12298
- underline: "border-b border-Colors-Border-Default space-x-6",
12299
- icon: "border border-Colors-Border-Default bg-Colors-Background-Neutral-Primary-Default p-0.5"
12302
+ button: "border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
12303
+ underline: "border-b border-Colors-Border-Default space-x-6 rounded-none",
12304
+ icon: "border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
12300
12305
  },
12301
12306
  rounded: {
12302
12307
  default: "",
@@ -12337,17 +12342,27 @@ var tabListVariants = (0, import_class_variance_authority18.cva)("relative inlin
12337
12342
  {
12338
12343
  rounded: "default",
12339
12344
  size: "lg",
12340
- className: "rounded-xl"
12345
+ className: "rounded-md"
12341
12346
  },
12342
12347
  {
12343
12348
  rounded: "default",
12344
12349
  size: "md",
12345
- className: "rounded-lg"
12350
+ className: "rounded-md"
12346
12351
  },
12347
12352
  {
12348
12353
  rounded: "default",
12349
12354
  size: "sm",
12350
- className: "rounded-md"
12355
+ className: "rounded"
12356
+ },
12357
+ {
12358
+ variant: "underline",
12359
+ rounded: "default",
12360
+ className: "rounded-none"
12361
+ },
12362
+ {
12363
+ variant: "underline",
12364
+ rounded: "full",
12365
+ className: "rounded-none"
12351
12366
  }
12352
12367
  ],
12353
12368
  defaultVariants: {
@@ -12356,17 +12371,17 @@ var tabListVariants = (0, import_class_variance_authority18.cva)("relative inlin
12356
12371
  rounded: "default"
12357
12372
  }
12358
12373
  });
12359
- var tabVariants = (0, import_class_variance_authority18.cva)("relative inline-flex w-full h-full items-center justify-center overflow-hidden whitespace-nowrap font-medium text-Colors-Text-Subtler aria-[selected=true]:text-Colors-Text-Brand-Default aria-[selected=true]:bg-Colors-Background-Normal-Primary-Active aria-[selected=true]:shadow-background-default [&>div>span]:hover:text-Colors-Text-Brand-Default disabled:pointer-events-none disabled:text-Colors-Text-Disabled [&>div>span]:disabled:text-Colors-Text-Disabled data-[state=active]:text-Colors-Text-Brand-Default", {
12374
+ var tabVariants = (0, import_class_variance_authority18.cva)("relative inline-flex w-full h-full items-center justify-center overflow-hidden whitespace-nowrap font-medium text-cc-Tabbar-fg-default aria-[selected=true]:text-cc-Tabbar-fg-bolder [&>div>span]:hover:text-cc-Tabbar-fg-bolder disabled:cursor-not-allowed disabled:text-cc-Tabbar-fg-disabled [&>div>span]:disabled:text-cc-Tabbar-fg-disabled data-[state=active]:text-cc-Tabbar-fg-bolder", {
12360
12375
  variants: {
12361
12376
  size: {
12362
- sm: "text-xs",
12363
- md: "text-sm",
12364
- lg: "text-base"
12377
+ sm: "text-xs h-4.5",
12378
+ md: "text-sm h-7.5",
12379
+ lg: "text-base h-9.5"
12365
12380
  },
12366
12381
  variant: {
12367
- button: "px-3 py-2.5 flex-1 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-Colors-Background-Normal-Primary-Active data-[state=active]:shadow-background-default ",
12368
- underline: "flex items-baseline pb-2 rounded-none data-[state=active]:border-b-2 data-[state=active]:border-b-brand",
12369
- icon: "px-4"
12382
+ button: "aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default",
12383
+ underline: "shadow-none aria-[selected=true]:border-cc-Tabbar-border-default aria-[selected=true]:border-b-2 rounded-none",
12384
+ icon: "aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default px-4"
12370
12385
  },
12371
12386
  rounded: {
12372
12387
  default: "",
@@ -12377,17 +12392,42 @@ var tabVariants = (0, import_class_variance_authority18.cva)("relative inline-fl
12377
12392
  {
12378
12393
  rounded: "default",
12379
12394
  size: "lg",
12380
- className: "rounded-xl"
12395
+ className: "rounded-md"
12381
12396
  },
12382
12397
  {
12383
12398
  rounded: "default",
12384
12399
  size: "md",
12385
- className: "rounded-lg"
12400
+ className: "rounded-md"
12386
12401
  },
12387
12402
  {
12388
12403
  rounded: "default",
12389
12404
  size: "sm",
12390
- className: "rounded-md"
12405
+ className: "rounded"
12406
+ },
12407
+ {
12408
+ variant: "underline",
12409
+ rounded: "default",
12410
+ className: "rounded-none"
12411
+ },
12412
+ {
12413
+ variant: "underline",
12414
+ rounded: "full",
12415
+ className: "rounded-none"
12416
+ },
12417
+ {
12418
+ variant: "underline",
12419
+ size: "sm",
12420
+ className: "h-4"
12421
+ },
12422
+ {
12423
+ variant: "underline",
12424
+ size: "md",
12425
+ className: "h-6.5"
12426
+ },
12427
+ {
12428
+ variant: "underline",
12429
+ size: "lg",
12430
+ className: "h-[31px]"
12391
12431
  }
12392
12432
  ],
12393
12433
  defaultVariants: {
@@ -12415,11 +12455,11 @@ var Tabs = React37.forwardRef(function(_param, ref) {
12415
12455
  className: "w-full flex justify-center items-center",
12416
12456
  children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TabsPrimitive.List, _object_spread_props(_object_spread({
12417
12457
  ref: ref,
12418
- className: cn("", tabListVariants({
12458
+ className: cn(tabListVariants({
12419
12459
  variant: variant,
12420
12460
  size: size,
12421
12461
  rounded: rounded
12422
- }), listClassName)
12462
+ }), "", listClassName)
12423
12463
  }, props), {
12424
12464
  children: items === null || items === void 0 ? void 0 : items.map(function(item) {
12425
12465
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Tab, _object_spread({
@@ -12460,7 +12500,7 @@ var Tab = React37.forwardRef(function(_param, ref) {
12460
12500
  "onClickCallback"
12461
12501
  ]);
12462
12502
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Tooltip, _object_spread_props(_object_spread({
12463
- triggerClassName: "w-full h-full flex-1"
12503
+ triggerClassName: cn("w-full h-full flex-1 flex justify-center items-center", variant === "underline" && "justify-center items-end")
12464
12504
  }, tooltip), {
12465
12505
  children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
12466
12506
  ref: ref,
@@ -12492,8 +12532,8 @@ var Tab = React37.forwardRef(function(_param, ref) {
12492
12532
  }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", {
12493
12533
  className: "relative flex justify-center items-center",
12494
12534
  children: [
12495
- label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Text, {
12496
- className: "text-inherit",
12535
+ label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", {
12536
+ className: cn("text-inherit"),
12497
12537
  children: label
12498
12538
  }),
12499
12539
  icon && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, {