analytica-frontend-lib 1.0.52 → 1.0.53

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.mjs CHANGED
@@ -971,6 +971,7 @@ import {
971
971
  useState as useState3,
972
972
  useId as useId3
973
973
  } from "react";
974
+ import { WarningCircle as WarningCircle2 } from "phosphor-react";
974
975
  import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
975
976
  var SIZE_CLASSES5 = {
976
977
  small: {
@@ -1085,7 +1086,11 @@ var TextArea = forwardRef7(
1085
1086
  ...props
1086
1087
  }
1087
1088
  ),
1088
- errorMessage && /* @__PURE__ */ jsx12(Text_default, { size: "sm", weight: "normal", className: "mt-1.5 text-error-600", children: errorMessage }),
1089
+ errorMessage && /* @__PURE__ */ jsxs9("p", { className: "flex gap-1 items-center text-sm text-indicator-error mt-1.5", children: [
1090
+ /* @__PURE__ */ jsx12(WarningCircle2, { size: 16 }),
1091
+ " ",
1092
+ errorMessage
1093
+ ] }),
1089
1094
  helperMessage && !errorMessage && /* @__PURE__ */ jsx12(Text_default, { size: "sm", weight: "normal", className: "mt-1.5 text-text-500", children: helperMessage })
1090
1095
  ] });
1091
1096
  }
@@ -1094,7 +1099,7 @@ TextArea.displayName = "TextArea";
1094
1099
  var TextArea_default = TextArea;
1095
1100
 
1096
1101
  // src/components/Toast/Toast.tsx
1097
- import { CheckCircle as CheckCircle2, WarningCircle as WarningCircle2, Info as Info2, X } from "phosphor-react";
1102
+ import { CheckCircle as CheckCircle2, WarningCircle as WarningCircle3, Info as Info2, X } from "phosphor-react";
1098
1103
  import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
1099
1104
  var VARIANT_ACTION_CLASSES4 = {
1100
1105
  solid: {
@@ -1111,7 +1116,7 @@ var VARIANT_ACTION_CLASSES4 = {
1111
1116
  var iconMap = {
1112
1117
  success: CheckCircle2,
1113
1118
  info: Info2,
1114
- warning: WarningCircle2
1119
+ warning: WarningCircle3
1115
1120
  };
1116
1121
  var Toast = ({
1117
1122
  variant = "outlined",
@@ -1228,7 +1233,7 @@ var Divider = ({
1228
1233
  var Divider_default = Divider;
1229
1234
 
1230
1235
  // src/components/Input/Input.tsx
1231
- import { WarningCircle as WarningCircle3, Eye, EyeSlash } from "phosphor-react";
1236
+ import { WarningCircle as WarningCircle4, Eye, EyeSlash } from "phosphor-react";
1232
1237
  import {
1233
1238
  forwardRef as forwardRef8,
1234
1239
  useState as useState4,
@@ -1385,7 +1390,7 @@ var Input = forwardRef8(
1385
1390
  /* @__PURE__ */ jsxs11("div", { className: "mt-1.5 gap-1.5", children: [
1386
1391
  helperText && /* @__PURE__ */ jsx16("p", { className: "text-sm text-text-500", children: helperText }),
1387
1392
  errorMessage && /* @__PURE__ */ jsxs11("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
1388
- /* @__PURE__ */ jsx16(WarningCircle3, { size: 16 }),
1393
+ /* @__PURE__ */ jsx16(WarningCircle4, { size: 16 }),
1389
1394
  " ",
1390
1395
  errorMessage
1391
1396
  ] })
@@ -2406,7 +2411,7 @@ var getDayStyles = (day, variant, showActivities) => {
2406
2411
  let textStyle = "";
2407
2412
  if (variant === "selection" && day.isSelected) {
2408
2413
  dayStyle = "bg-primary-800";
2409
- textStyle = "text-white";
2414
+ textStyle = "text-text";
2410
2415
  } else if (day.isToday) {
2411
2416
  textStyle = "text-primary-800";
2412
2417
  } else if (variant === "navigation" && showActivities && day.activities?.length) {
@@ -2778,7 +2783,7 @@ var Calendar = ({
2778
2783
  )
2779
2784
  ] })
2780
2785
  ] }),
2781
- /* @__PURE__ */ jsx21("div", { className: "grid grid-cols-7 gap-1 mb-2", children: WEEK_DAYS.map((day) => /* @__PURE__ */ jsx21(
2786
+ /* @__PURE__ */ jsx21("div", { className: "grid grid-cols-7 mb-2", children: WEEK_DAYS.map((day) => /* @__PURE__ */ jsx21(
2782
2787
  "div",
2783
2788
  {
2784
2789
  className: "h-4 flex items-center justify-center text-xs font-semibold text-text-500",
@@ -2786,7 +2791,7 @@ var Calendar = ({
2786
2791
  },
2787
2792
  day
2788
2793
  )) }),
2789
- /* @__PURE__ */ jsx21("div", { className: "grid grid-cols-7 gap-1", children: calendarData.map((day) => {
2794
+ /* @__PURE__ */ jsx21("div", { className: "grid grid-cols-7", children: calendarData.map((day) => {
2790
2795
  if (!day.isCurrentMonth) {
2791
2796
  return /* @__PURE__ */ jsx21(
2792
2797
  "div",
@@ -2810,9 +2815,9 @@ var Calendar = ({
2810
2815
  "button",
2811
2816
  {
2812
2817
  className: `
2813
- w-10 h-10
2818
+ w-9 h-9
2814
2819
  flex items-center justify-center
2815
- text-xl font-normal
2820
+ text-lg font-normal
2816
2821
  cursor-pointer
2817
2822
  rounded-full
2818
2823
  focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-1
@@ -3315,7 +3320,7 @@ import {
3315
3320
  cloneElement as cloneElement2,
3316
3321
  useId as useId5
3317
3322
  } from "react";
3318
- import { CaretDown, Check as Check4, WarningCircle as WarningCircle4 } from "phosphor-react";
3323
+ import { CaretDown, Check as Check4, WarningCircle as WarningCircle5 } from "phosphor-react";
3319
3324
  import { Fragment as Fragment3, jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
3320
3325
  var VARIANT_CLASSES4 = {
3321
3326
  outlined: "border rounded-lg focus:border-primary-950",
@@ -3499,7 +3504,7 @@ var Select = ({
3499
3504
  /* @__PURE__ */ jsxs19("div", { className: "mt-1.5 gap-1.5", children: [
3500
3505
  helperText && /* @__PURE__ */ jsx24("p", { className: "text-sm text-text-500", children: helperText }),
3501
3506
  errorMessage && /* @__PURE__ */ jsxs19("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
3502
- /* @__PURE__ */ jsx24(WarningCircle4, { size: 16 }),
3507
+ /* @__PURE__ */ jsx24(WarningCircle5, { size: 16 }),
3503
3508
  " ",
3504
3509
  errorMessage
3505
3510
  ] })