@chekinapp/ui 0.0.36 → 0.0.37

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.js CHANGED
@@ -11,7 +11,6 @@ function cn(...inputs) {
11
11
  }
12
12
 
13
13
  // src/accordion/Accordion.tsx
14
- import styles from "./Accordion.module-5SXQLE6L.module.css";
15
14
  import { jsx, jsxs } from "react/jsx-runtime";
16
15
  var Accordion = AccordionPrimitive.Root;
17
16
  var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
@@ -20,8 +19,7 @@ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
20
19
  ref,
21
20
  className: cn(
22
21
  "accordion__item",
23
- "transition-colors duration-200 ease-in-out",
24
- styles.accordion__item,
22
+ "rounded-[var(--accordion-item-radius)] border border-solid border-[var(--accordion-item-border)] bg-[var(--accordion-item-bg)] shadow-[0_0_10px_0_rgba(143,143,143,0.2)] transition-colors duration-200 ease-in-out [border-top-color:var(--accordion-item-divider)] data-[state=open]:bg-[var(--accordion-item-open-bg)] data-[state=closed]:bg-[var(--accordion-item-bg)] data-[state=closed]:hover:bg-[var(--accordion-item-hover-bg)]",
25
23
  className
26
24
  ),
27
25
  ...props
@@ -39,7 +37,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
39
37
  "accordion__trigger",
40
38
  "flex h-auto w-full flex-1 items-center justify-between text-left outline-none transition-colors duration-200",
41
39
  "hover:no-underline disabled:pointer-events-none",
42
- styles.accordion__trigger,
40
+ "gap-[var(--accordion-trigger-gap)] p-6 text-lg leading-7 text-[var(--accordion-trigger-color)] [font-family:var(--accordion-trigger-font-family)] [font-weight:var(--accordion-trigger-font-weight)] focus-visible:shadow-[var(--accordion-trigger-focus-shadow)] disabled:opacity-[var(--accordion-trigger-disabled-opacity)]",
43
41
  "group",
44
42
  className
45
43
  ),
@@ -51,8 +49,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
51
49
  {
52
50
  className: cn(
53
51
  "accordion__icon",
54
- styles.accordion__icon,
55
- "shrink-0 rounded-full p-0.5",
52
+ "ml-auto h-[var(--accordion-icon-size)] w-4 min-w-0 shrink-0 rounded-full p-0.5 text-[var(--accordion-icon-color-closed)] group-data-[state=open]:text-[var(--accordion-icon-color-open)] [&_svg]:h-[var(--accordion-icon-size)] [&_svg]:w-[var(--accordion-icon-size)] [&_svg]:transition-transform [&_svg]:duration-200",
56
53
  "transition-colors duration-200",
57
54
  "relative"
58
55
  ),
@@ -96,30 +93,19 @@ var AccordionContent = React.forwardRef(({ className, contentClassName, children
96
93
  "transition-all",
97
94
  "data-[state=closed]:animate-accordion-up",
98
95
  "data-[state=open]:animate-accordion-down",
99
- styles.accordion__content,
96
+ "text-[length:var(--accordion-content-font-size)] leading-[var(--accordion-content-line-height)] text-[var(--accordion-content-color)] data-[state=closed]:block",
100
97
  // TODO Uncomment the next line when dropdown position is fixed
101
98
  // 'overflow-hidden',
102
99
  className
103
100
  ),
104
101
  ...props,
105
- children: /* @__PURE__ */ jsx(
106
- "div",
107
- {
108
- className: cn(
109
- "accordion__contentItem",
110
- styles.accordion__contentItem,
111
- contentClassName
112
- ),
113
- children
114
- }
115
- )
102
+ children: /* @__PURE__ */ jsx("div", { className: cn("accordion__contentItem px-6 pb-6 pt-2", contentClassName), children })
116
103
  }
117
104
  ));
118
105
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
119
106
 
120
107
  // src/alert-box/AlertBox.tsx
121
108
  import { AlertCircle, Check, TriangleAlert, XCircle } from "lucide-react";
122
- import styles2 from "./AlertBox.module-PL4N3ELX.module.css";
123
109
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
124
110
  var AlertType = /* @__PURE__ */ ((AlertType2) => {
125
111
  AlertType2["INFO"] = "INFO";
@@ -148,10 +134,10 @@ var sizeClasses = {
148
134
  ["L" /* L */]: "px-6 py-5 items-start"
149
135
  };
150
136
  var typeStyles = {
151
- ["INFO" /* INFO */]: styles2["alertBox--info"],
152
- ["WARNING" /* WARNING */]: styles2["alertBox--warning"],
153
- ["ERROR" /* ERROR */]: styles2["alertBox--error"],
154
- ["SUCCESS" /* SUCCESS */]: styles2["alertBox--success"],
137
+ ["INFO" /* INFO */]: "bg-[var(--alert-box-info-bg)] [&_svg]:text-[var(--alert-box-info-icon)]",
138
+ ["WARNING" /* WARNING */]: "bg-[var(--alert-box-warning-bg)] [&_svg]:text-[var(--alert-box-warning-icon)]",
139
+ ["ERROR" /* ERROR */]: "bg-[var(--alert-box-error-bg)] [&_svg]:text-[var(--alert-box-error-icon)]",
140
+ ["SUCCESS" /* SUCCESS */]: "bg-[var(--alert-box-success-bg)] text-[var(--alert-box-success-text)] [&_svg]:text-[var(--alert-box-success-icon)]",
155
141
  ["LIGHT" /* LIGHT */]: ""
156
142
  };
157
143
  function AlertBox({
@@ -168,8 +154,7 @@ function AlertBox({
168
154
  {
169
155
  "data-slot": "alert-box",
170
156
  className: cn(
171
- styles2.alertBox,
172
- "flex gap-3 [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
157
+ "flex gap-3 rounded-[var(--alert-box-radius)] [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
173
158
  sizeClasses[size],
174
159
  typeStyles[type],
175
160
  className
@@ -188,7 +173,6 @@ var AlertSizes = AlertSize;
188
173
  // src/audio-player/AudioPlayer.tsx
189
174
  import { useCallback, useEffect, useRef, useState } from "react";
190
175
  import { Pause, Play } from "lucide-react";
191
- import styles3 from "./AudioPlayer.module-RDUQ533M.module.css";
192
176
  import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
193
177
  function formatTime(seconds) {
194
178
  const mins = Math.floor(seconds / 60);
@@ -252,8 +236,7 @@ function AudioPlayer({ src, compact, className }) {
252
236
  {
253
237
  type: "button",
254
238
  className: cn(
255
- styles3.playButton,
256
- "inline-flex items-center justify-center",
239
+ "inline-flex items-center justify-center rounded-[var(--audio-player-button-radius)] bg-[var(--audio-player-button-bg)] hover:bg-[var(--audio-player-button-hover-bg)] [&_svg]:text-[var(--audio-player-icon-color)]",
257
240
  compact ? "h-6 min-w-6 p-1" : "h-8 min-w-8 p-1.5"
258
241
  ),
259
242
  onClick: togglePlayPause,
@@ -265,24 +248,18 @@ function AudioPlayer({ src, compact, className }) {
265
248
  "div",
266
249
  {
267
250
  ref: progressRef,
268
- className: cn(
269
- styles3.track,
270
- "h-1 flex-1 cursor-pointer overflow-hidden rounded-full"
271
- ),
251
+ className: "h-1 flex-1 cursor-pointer overflow-hidden rounded-full bg-[var(--audio-player-track-bg)]",
272
252
  onClick: handleSeek,
273
253
  children: /* @__PURE__ */ jsx3(
274
254
  "div",
275
255
  {
276
- className: cn(
277
- styles3.progress,
278
- "h-full transition-all duration-100 ease-linear"
279
- ),
256
+ className: "h-full bg-[var(--audio-player-progress-bg)] transition-all duration-100 ease-linear",
280
257
  style: { width: `${progress}%` }
281
258
  }
282
259
  )
283
260
  }
284
261
  ),
285
- /* @__PURE__ */ jsx3("span", { className: cn(styles3.time, "min-w-10 text-xs font-medium"), children: isPlaying || currentTime > 0 ? formatTime(currentTime) : formatTime(duration) })
262
+ /* @__PURE__ */ jsx3("span", { className: "min-w-10 text-xs font-medium text-[var(--audio-player-time-color)]", children: isPlaying || currentTime > 0 ? formatTime(currentTime) : formatTime(duration) })
286
263
  ] })
287
264
  ] });
288
265
  }
@@ -291,7 +268,6 @@ AudioPlayer.displayName = "AudioPlayer";
291
268
  // src/avatar/Avatar.tsx
292
269
  import * as React2 from "react";
293
270
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
294
- import styles4 from "./Avatar.module-VPJKIZT3.module.css";
295
271
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
296
272
  var sizeClasses2 = {
297
273
  sm: "h-8 w-8",
@@ -323,7 +299,7 @@ var Avatar = React2.forwardRef(({ className, src, alt, fallback, size = "md", fa
323
299
  {
324
300
  className: cn(
325
301
  "flex h-full w-full items-center justify-center rounded-full font-medium",
326
- !fallbackClassName && styles4.fallback,
302
+ !fallbackClassName && "bg-[var(--avatar-fallback-bg)] text-[var(--avatar-fallback-text)]",
327
303
  fallbackClassName
328
304
  ),
329
305
  children: fallback
@@ -376,7 +352,6 @@ Badge.displayName = "Badge";
376
352
 
377
353
  // src/beta-badge/BetaBadge.tsx
378
354
  import { useTranslation } from "react-i18next";
379
- import styles5 from "./BetaBadge.module-W2AGK53A.module.css";
380
355
  import { jsxs as jsxs5 } from "react/jsx-runtime";
381
356
  function BetaBadge({
382
357
  className,
@@ -391,9 +366,8 @@ function BetaBadge({
391
366
  {
392
367
  "data-slot": "beta-badge",
393
368
  className: cn(
394
- styles5.betaBadge,
395
- "rounded-sm px-2 py-1 text-sm/4 font-semibold uppercase",
396
- readOnly && styles5["betaBadge--readonly"],
369
+ "rounded-sm bg-[var(--beta-badge-bg)] px-2 py-1 text-sm/4 font-semibold uppercase text-[var(--beta-badge-text)]",
370
+ readOnly && "bg-[var(--beta-badge-readonly-bg)] text-[var(--beta-badge-readonly-text)]",
397
371
  className
398
372
  ),
399
373
  ...props,
@@ -484,7 +458,6 @@ BookmarkTabsTrigger.displayName = "BookmarkTabsTrigger";
484
458
  // src/box-option-selector/BoxOptionSelector.tsx
485
459
  import { forwardRef as forwardRef4, useEffect as useEffect2, useState as useState2 } from "react";
486
460
  import { useTranslation as useTranslation2 } from "react-i18next";
487
- import styles6 from "./BoxOptionSelector.module-24AKP2OJ.module.css";
488
461
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
489
462
  var BoxOptionSelector = forwardRef4(
490
463
  ({
@@ -520,9 +493,8 @@ var BoxOptionSelector = forwardRef4(
520
493
  ref,
521
494
  "data-slot": "box-option-selector",
522
495
  className: cn(
523
- styles6.boxOption,
524
- "flex min-h-[116px] w-full max-w-[400px] cursor-pointer flex-col gap-4 rounded-lg border p-4 transition-all duration-200",
525
- isSelected && styles6["boxOption--selected"],
496
+ "flex min-h-[116px] w-full max-w-[400px] cursor-pointer flex-col gap-4 rounded-lg border border-[var(--box-option-border)] bg-[var(--box-option-bg)] p-4 transition-all duration-200 hover:bg-[var(--box-option-hover-bg)]",
497
+ isSelected && "border-[var(--box-option-selected-border)] bg-[var(--box-option-selected-bg)] hover:bg-[var(--box-option-selected-bg)]",
526
498
  disabled && "cursor-not-allowed opacity-50"
527
499
  ),
528
500
  onClick: handleClick,
@@ -1493,15 +1465,14 @@ function ScrollBar({
1493
1465
  }
1494
1466
 
1495
1467
  // src/error-message/ErrorMessage.tsx
1496
- import styles7 from "./styles.module-VIYXJAAX.module.css";
1497
1468
  import { jsx as jsx21 } from "react/jsx-runtime";
1498
1469
  function ErrorMessage({ className, children, disabled }) {
1499
1470
  return /* @__PURE__ */ jsx21(
1500
1471
  "div",
1501
1472
  {
1502
1473
  className: cn(
1503
- styles7.ErrorMessage,
1504
- disabled && styles7.ErrorMessage__disabled,
1474
+ "mt-0.5 text-left text-sm font-medium text-[var(--error-message-color)]",
1475
+ disabled && "opacity-30",
1505
1476
  className
1506
1477
  ),
1507
1478
  children
@@ -1677,7 +1648,7 @@ var StatusBadgeInternal = forwardRef11(
1677
1648
  disabled = false,
1678
1649
  ...props
1679
1650
  }, ref) => {
1680
- const styles25 = variantStyles[variant];
1651
+ const styles = variantStyles[variant];
1681
1652
  const hasText = !iconOnly && (children || !textOnly);
1682
1653
  const hasIcon = !textOnly && showIcon;
1683
1654
  const padding = (() => {
@@ -1692,15 +1663,15 @@ var StatusBadgeInternal = forwardRef11(
1692
1663
  ref,
1693
1664
  className: cn(
1694
1665
  "inline-flex cursor-default items-center justify-center gap-1 rounded-3xl text-[14px] font-medium leading-4",
1695
- styles25.container,
1696
- styles25.text,
1666
+ styles.container,
1667
+ styles.text,
1697
1668
  padding,
1698
1669
  disabled && "opacity-50",
1699
1670
  className
1700
1671
  ),
1701
1672
  ...props,
1702
1673
  children: [
1703
- hasIcon && /* @__PURE__ */ jsx23(StatusBadgeIcon, { variant: styles25.icon, className: "size-4 flex-shrink-0" }),
1674
+ hasIcon && /* @__PURE__ */ jsx23(StatusBadgeIcon, { variant: styles.icon, className: "size-4 flex-shrink-0" }),
1704
1675
  hasText && /* @__PURE__ */ jsx23("span", { className: "whitespace-nowrap", children })
1705
1676
  ]
1706
1677
  }
@@ -1913,18 +1884,9 @@ import {
1913
1884
  } from "react";
1914
1885
 
1915
1886
  // src/loading-bar/LoadingBar.tsx
1916
- import styles8 from "./styles.module-I3PJNRXG.module.css";
1917
1887
  import { jsx as jsx26 } from "react/jsx-runtime";
1918
1888
  function LoadingBar({ className }) {
1919
- return /* @__PURE__ */ jsx26("div", { className: cn("w-full p-4", className), children: /* @__PURE__ */ jsx26("div", { className: "relative h-1 w-full overflow-hidden rounded-full bg-[var(--chekin-color-white)]", children: /* @__PURE__ */ jsx26(
1920
- "div",
1921
- {
1922
- className: cn(
1923
- "absolute top-0 h-full rounded-full bg-[var(--primary)]",
1924
- styles8.bar
1925
- )
1926
- }
1927
- ) }) });
1889
+ return /* @__PURE__ */ jsx26("div", { className: cn("w-full p-4", className), children: /* @__PURE__ */ jsx26("div", { className: "relative h-1 w-full overflow-hidden rounded-full bg-[var(--chekin-color-white)]", children: /* @__PURE__ */ jsx26("div", { className: "absolute top-0 h-full animate-chekin-loading-bar rounded-full bg-[var(--primary)]" }) }) });
1928
1890
  }
1929
1891
 
1930
1892
  // src/table/Table.tsx
@@ -3567,19 +3529,19 @@ var HaloIcon = forwardRef19(
3567
3529
  size = "M",
3568
3530
  className
3569
3531
  }, ref) => {
3570
- const styles25 = statusStyles[status];
3532
+ const styles = statusStyles[status];
3571
3533
  return /* @__PURE__ */ jsx45(
3572
3534
  "div",
3573
3535
  {
3574
3536
  ref,
3575
3537
  className: cn(
3576
3538
  "halo-icon flex items-center justify-center rounded-[50%]",
3577
- styles25.color,
3539
+ styles.color,
3578
3540
  {
3579
3541
  "h-6 w-6 [&>svg]:h-4 [&>svg]:w-4": size === "M",
3580
3542
  "h-8 w-8 [&>svg]:h-5 [&>svg]:w-5": size === "L",
3581
3543
  "h-11 w-11 [&>svg]:h-5 [&>svg]:w-5": size === "XL",
3582
- [styles25.background]: variant === "default"
3544
+ [styles.background]: variant === "default"
3583
3545
  },
3584
3546
  className
3585
3547
  ),
@@ -4167,27 +4129,48 @@ var FileInputButton = forwardRef22(
4167
4129
  FileInputButton.displayName = "FileInputButton";
4168
4130
 
4169
4131
  // src/form-box/Content.tsx
4170
- import styles9 from "./FormBox.module-WG4SQBRR.module.css";
4171
4132
  import { jsx as jsx52 } from "react/jsx-runtime";
4172
4133
  function Content5({ children, className, ...props }) {
4173
- return /* @__PURE__ */ jsx52("div", { className: cn(styles9.content, className), ...props, children });
4134
+ return /* @__PURE__ */ jsx52(
4135
+ "div",
4136
+ {
4137
+ className: cn(
4138
+ "flex flex-wrap content-start items-start gap-4 self-stretch",
4139
+ className
4140
+ ),
4141
+ ...props,
4142
+ children
4143
+ }
4144
+ );
4174
4145
  }
4175
4146
 
4176
4147
  // src/form-box/Header.tsx
4177
- import styles10 from "./FormBox.module-WG4SQBRR.module.css";
4178
4148
  import { jsx as jsx53 } from "react/jsx-runtime";
4179
4149
  function Header2({ children, className, ...props }) {
4180
- return /* @__PURE__ */ jsx53("h2", { className: cn(styles10.header, className), ...props, children });
4150
+ return /* @__PURE__ */ jsx53(
4151
+ "h2",
4152
+ {
4153
+ className: cn(
4154
+ "m-0 flex items-center gap-2 self-stretch p-0 text-2xl font-semibold leading-normal text-[var(--chekin-color-brand-navy)]",
4155
+ className
4156
+ ),
4157
+ ...props,
4158
+ children
4159
+ }
4160
+ );
4181
4161
  }
4182
4162
 
4183
4163
  // src/form-box/Root.tsx
4184
- import styles11 from "./FormBox.module-WG4SQBRR.module.css";
4185
4164
  import { jsx as jsx54 } from "react/jsx-runtime";
4186
4165
  function Root10({ children, nested, className, ...props }) {
4187
4166
  return /* @__PURE__ */ jsx54(
4188
4167
  "div",
4189
4168
  {
4190
- className: cn(styles11.wrapper, nested && styles11.wrapperNested, className),
4169
+ className: cn(
4170
+ "flex max-w-[1400px] flex-col items-start gap-6 self-stretch rounded-[10px] border border-[var(--chekin-color-gray-separator)] p-6 [container-type:inline-size]",
4171
+ nested && "border-0 p-0",
4172
+ className
4173
+ ),
4191
4174
  ...props,
4192
4175
  children
4193
4176
  }
@@ -4195,10 +4178,19 @@ function Root10({ children, nested, className, ...props }) {
4195
4178
  }
4196
4179
 
4197
4180
  // src/form-box/SubHeader.tsx
4198
- import styles12 from "./FormBox.module-WG4SQBRR.module.css";
4199
4181
  import { jsx as jsx55 } from "react/jsx-runtime";
4200
4182
  function SubHeader({ children, className, ...props }) {
4201
- return /* @__PURE__ */ jsx55("h4", { className: cn(styles12.subHeader, className), ...props, children });
4183
+ return /* @__PURE__ */ jsx55(
4184
+ "h4",
4185
+ {
4186
+ className: cn(
4187
+ "m-0 flex items-center gap-2 self-stretch border-b border-[var(--chekin-color-gray-separator)] px-0 py-2 text-base font-semibold leading-normal text-[var(--chekin-color-brand-navy)]",
4188
+ className
4189
+ ),
4190
+ ...props,
4191
+ children
4192
+ }
4193
+ );
4202
4194
  }
4203
4195
 
4204
4196
  // src/form-box/index.ts
@@ -4216,7 +4208,6 @@ import {
4216
4208
  useState as useState14
4217
4209
  } from "react";
4218
4210
  import { useTranslation as useTranslation10 } from "react-i18next";
4219
- import styles13 from "./styles.module-SHDCFZJR.module.css";
4220
4211
  import { jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
4221
4212
  var FreeTextField = forwardRef23(
4222
4213
  ({
@@ -4262,65 +4253,81 @@ var FreeTextField = forwardRef23(
4262
4253
  onBlur?.(event);
4263
4254
  };
4264
4255
  const fieldBoxClassName = cn(
4265
- styles13.fieldBox,
4266
- autocompleted && styles13.fieldBoxAutocompleted,
4267
- isErrorWrong && !autocompleted && styles13.fieldBoxErrorWrong,
4268
- !autocompleted && !isErrorWrong && !isEmpty && styles13.fieldBoxFilled,
4269
- !autocompleted && !isErrorWrong && isEmpty && styles13.fieldBoxEmpty,
4270
- isFocused && !hasError && styles13.fieldBoxFocused
4256
+ "relative flex h-11 items-center gap-2.5 rounded-lg border px-3.5 py-2.5 transition-colors duration-150 ease-in-out",
4257
+ autocompleted && "border-[var(--chekin-color-brand-navy)] bg-[var(--chekin-color-surface-autocomplete)]",
4258
+ isErrorWrong && !autocompleted && "border-[var(--error-message-color)] bg-white",
4259
+ !autocompleted && !isErrorWrong && !isEmpty && "border-[var(--chekin-color-brand-navy)] bg-white",
4260
+ !autocompleted && !isErrorWrong && isEmpty && "border-[rgba(22,22,67,0.2)] bg-[var(--chekin-color-surface-input-empty)]",
4261
+ isFocused && !hasError && "border-[var(--chekin-color-brand-blue)]"
4271
4262
  );
4272
4263
  const inputPlaceholder = fieldStyle === "new" ? label : placeholder;
4273
4264
  const showFloatingLabel = fieldStyle === "new" && !isEmpty && Boolean(label);
4274
- return /* @__PURE__ */ jsxs36("div", { className: cn(styles13.container, className), children: [
4275
- fieldStyle === "current" && label && /* @__PURE__ */ jsxs36("div", { className: styles13.labelRow, children: [
4276
- /* @__PURE__ */ jsx56("label", { htmlFor: inputId, className: styles13.labelText, children: label }),
4277
- optional && /* @__PURE__ */ jsxs36("span", { className: styles13.optionalText, children: [
4278
- "- ",
4279
- /* @__PURE__ */ jsx56("em", { children: optionalLabel || t("optional") })
4280
- ] }),
4281
- tooltip && /* @__PURE__ */ jsx56("div", { className: styles13.tooltip, children: tooltip })
4282
- ] }),
4283
- /* @__PURE__ */ jsxs36("div", { className: fieldBoxClassName, children: [
4284
- /* @__PURE__ */ jsx56(
4285
- "input",
4286
- {
4287
- ref,
4288
- id: inputId,
4289
- className: styles13.input,
4290
- placeholder: inputPlaceholder,
4291
- value,
4292
- defaultValue: value === void 0 ? defaultValue : void 0,
4293
- onChange: handleChange,
4294
- onFocus: handleFocus,
4295
- onBlur: handleBlur,
4296
- disabled,
4297
- ...inputProps
4298
- }
4265
+ return /* @__PURE__ */ jsxs36(
4266
+ "div",
4267
+ {
4268
+ className: cn(
4269
+ "relative flex w-[300px] flex-col gap-1 [font-family:var(--chekin-font-family-primary)]",
4270
+ className
4299
4271
  ),
4300
- icon && /* @__PURE__ */ jsx56("div", { className: styles13.icon, children: icon }),
4301
- showFloatingLabel && /* @__PURE__ */ jsx56(
4302
- "div",
4303
- {
4304
- className: cn(
4305
- styles13.floatingLabel,
4306
- autocompleted && styles13.floatingLabelAutocompleted
4272
+ children: [
4273
+ fieldStyle === "current" && label && /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-1", children: [
4274
+ /* @__PURE__ */ jsx56(
4275
+ "label",
4276
+ {
4277
+ htmlFor: inputId,
4278
+ className: "text-base font-medium leading-4 text-[var(--chekin-color-brand-navy)]",
4279
+ children: label
4280
+ }
4307
4281
  ),
4308
- children: /* @__PURE__ */ jsx56(
4309
- "span",
4282
+ optional && /* @__PURE__ */ jsxs36("span", { className: "text-base leading-4 text-[var(--chekin-color-brand-navy)] [&_em]:text-[var(--chekin-color-gray-2)]", children: [
4283
+ "- ",
4284
+ /* @__PURE__ */ jsx56("em", { children: optionalLabel || t("optional") })
4285
+ ] }),
4286
+ tooltip && /* @__PURE__ */ jsx56("div", { className: "h-4 w-4 shrink-0", children: tooltip })
4287
+ ] }),
4288
+ /* @__PURE__ */ jsxs36("div", { className: fieldBoxClassName, children: [
4289
+ /* @__PURE__ */ jsx56(
4290
+ "input",
4291
+ {
4292
+ ref,
4293
+ id: inputId,
4294
+ className: "min-h-px min-w-0 flex-1 basis-0 border-0 bg-transparent p-0 text-base font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none placeholder:font-medium placeholder:text-[var(--chekin-color-gray-1)]",
4295
+ placeholder: inputPlaceholder,
4296
+ value,
4297
+ defaultValue: value === void 0 ? defaultValue : void 0,
4298
+ onChange: handleChange,
4299
+ onFocus: handleFocus,
4300
+ onBlur: handleBlur,
4301
+ disabled,
4302
+ ...inputProps
4303
+ }
4304
+ ),
4305
+ icon && /* @__PURE__ */ jsx56("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", children: icon }),
4306
+ showFloatingLabel && /* @__PURE__ */ jsx56(
4307
+ "div",
4310
4308
  {
4311
4309
  className: cn(
4312
- styles13.floatingLabelText,
4313
- isErrorWrong && styles13.floatingLabelTextError
4310
+ "pointer-events-none absolute left-[13px] top-[-8px] flex h-4 items-center bg-gradient-to-b from-transparent from-50% to-white to-50% px-[3px]",
4311
+ autocompleted && "to-[var(--chekin-color-surface-autocomplete)]"
4314
4312
  ),
4315
- children: label
4313
+ children: /* @__PURE__ */ jsx56(
4314
+ "span",
4315
+ {
4316
+ className: cn(
4317
+ "whitespace-nowrap text-sm font-medium leading-6 text-[var(--chekin-color-gray-1)]",
4318
+ isErrorWrong && "text-[var(--error-message-color)]"
4319
+ ),
4320
+ children: label
4321
+ }
4322
+ )
4316
4323
  }
4317
4324
  )
4318
- }
4319
- )
4320
- ] }),
4321
- supportingText && /* @__PURE__ */ jsx56("p", { className: styles13.supportingText, children: supportingText }),
4322
- error && /* @__PURE__ */ jsx56("p", { className: styles13.errorText, children: error })
4323
- ] });
4325
+ ] }),
4326
+ supportingText && /* @__PURE__ */ jsx56("p", { className: "m-0 text-xs italic leading-normal text-[var(--chekin-color-gray-2)]", children: supportingText }),
4327
+ error && /* @__PURE__ */ jsx56("p", { className: "m-0 text-right text-xs font-medium leading-4 text-[var(--error-message-color)]", children: error })
4328
+ ]
4329
+ }
4330
+ );
4324
4331
  }
4325
4332
  );
4326
4333
  FreeTextField.displayName = "FreeTextField";
@@ -5759,8 +5766,14 @@ function Loader({
5759
5766
 
5760
5767
  // src/metric-card/MetricCard.tsx
5761
5768
  import { CircleQuestionMark as CircleQuestionMark2, TrendingDown, TrendingUp } from "lucide-react";
5762
- import styles14 from "./MetricCard.module-LEV46BXD.module.css";
5763
5769
  import { jsx as jsx73, jsxs as jsxs46 } from "react/jsx-runtime";
5770
+ var metricCardVariantClasses = {
5771
+ blue: "bg-[linear-gradient(122deg,#e6f0ff_36.37%,#f6f9ff_86.4%)] text-[#385cf8] [&_[data-slot=metric-card-icon]]:bg-[#dbeafe]",
5772
+ green: "bg-[linear-gradient(122deg,#ddfbf4_36.37%,#f5fefc_86.4%)] text-[#2bc29f] [&_[data-slot=metric-card-icon]]:bg-[#cff9ef]",
5773
+ orange: "bg-[linear-gradient(122deg,#ffeddc_36.37%,#fffaf5_86.4%)] text-[#f5721a] [&_[data-slot=metric-card-icon]]:bg-[#ffe5cd]",
5774
+ purple: "bg-[linear-gradient(122deg,#f5edff_36.37%,#fcfaff_86.4%)] text-[#9a51ff] [&_[data-slot=metric-card-icon]]:bg-[#f0e5ff]",
5775
+ yellow: "bg-[linear-gradient(122deg,#fff8e5_36.37%,#fffbef_86.4%)] text-[#ce8b0b] [&_[data-slot=metric-card-icon]]:bg-[#ffeeb2]"
5776
+ };
5764
5777
  function MetricCard({
5765
5778
  title,
5766
5779
  value,
@@ -5775,37 +5788,41 @@ function MetricCard({
5775
5788
  "div",
5776
5789
  {
5777
5790
  className: cn(
5778
- styles14.MetricCard,
5779
- styles14[`MetricCard--${variant}`],
5780
- loading && styles14["MetricCard--loading"],
5791
+ "flex w-full min-w-52 gap-2 rounded-lg border border-[var(--chekin-color-gray-3)] p-4",
5792
+ metricCardVariantClasses[variant],
5793
+ loading && "cursor-progress opacity-60",
5781
5794
  className
5782
5795
  ),
5783
5796
  children: [
5784
- /* @__PURE__ */ jsx73("div", { className: styles14.MetricCard__iconContainer, children: icon }),
5785
- /* @__PURE__ */ jsxs46("div", { className: styles14.MetricCard__content, children: [
5786
- /* @__PURE__ */ jsxs46("div", { className: styles14.MetricCard__header, children: [
5787
- /* @__PURE__ */ jsx73("h4", { className: styles14.MetricCard__title, children: title }),
5797
+ /* @__PURE__ */ jsx73(
5798
+ "div",
5799
+ {
5800
+ "data-slot": "metric-card-icon",
5801
+ className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full mix-blend-multiply",
5802
+ children: icon
5803
+ }
5804
+ ),
5805
+ /* @__PURE__ */ jsxs46("div", { className: "flex flex-1 flex-col gap-4", children: [
5806
+ /* @__PURE__ */ jsxs46("div", { className: "flex items-center gap-1", children: [
5807
+ /* @__PURE__ */ jsx73("h4", { className: "whitespace-nowrap text-base font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: title }),
5788
5808
  tooltip && /* @__PURE__ */ jsx73(Tooltip, { side: "right", content: tooltip, contentClassName: "max-w-64", children: /* @__PURE__ */ jsx73(
5789
5809
  "button",
5790
5810
  {
5791
5811
  type: "button",
5792
- className: cn(
5793
- "inline-flex text-[var(--chekin-color-gray-1)]",
5794
- styles14.MetricCard__tooltip
5795
- ),
5812
+ className: "inline-flex text-[var(--chekin-color-gray-1)]",
5796
5813
  "aria-label": tooltip,
5797
5814
  children: /* @__PURE__ */ jsx73(CircleQuestionMark2, { className: "h-4 w-4" })
5798
5815
  }
5799
5816
  ) })
5800
5817
  ] }),
5801
- /* @__PURE__ */ jsxs46("div", { className: styles14.MetricCard__footer, children: [
5802
- /* @__PURE__ */ jsx73("div", { className: styles14.MetricCard__value, children: value }),
5818
+ /* @__PURE__ */ jsxs46("div", { className: "flex items-center justify-between gap-2", children: [
5819
+ /* @__PURE__ */ jsx73("div", { className: "text-2xl font-bold leading-6", children: value }),
5803
5820
  !!percentage && /* @__PURE__ */ jsxs46(
5804
5821
  "div",
5805
5822
  {
5806
5823
  className: cn(
5807
- styles14.MetricCard__percentage,
5808
- percentage < 0 ? styles14["--negative"] : ""
5824
+ "inline-flex items-center gap-x-1 text-base font-semibold leading-6 text-[#059669]",
5825
+ percentage < 0 && "text-[var(--chekin-color-brand-red)]"
5809
5826
  ),
5810
5827
  children: [
5811
5828
  percentage < 0 ? /* @__PURE__ */ jsx73(TrendingDown, {}) : /* @__PURE__ */ jsx73(TrendingUp, {}),
@@ -5833,7 +5850,6 @@ var METRIC_CARD_VARIANTS = {
5833
5850
  // src/modal/Modal.tsx
5834
5851
  import { forwardRef as forwardRef31, useRef as useRef14 } from "react";
5835
5852
  import { X as X5 } from "lucide-react";
5836
- import styles15 from "./styles.module-74HHIGIE.module.css";
5837
5853
  import { jsx as jsx74, jsxs as jsxs47 } from "react/jsx-runtime";
5838
5854
  var preventDefault = (event) => {
5839
5855
  event.preventDefault();
@@ -5877,9 +5893,9 @@ function Modal({
5877
5893
  overlayClassName,
5878
5894
  className: cn(
5879
5895
  "modal__content",
5880
- styles15.modal__content,
5896
+ "flex h-auto min-w-[340px] w-auto flex-col items-center gap-y-6 rounded-md bg-[var(--chekin-color-white)] text-center text-[var(--chekin-color-brand-navy)]",
5881
5897
  scrollableOverlay && "min-h-0",
5882
- size === "compact" && styles15.modal__contentCompact,
5898
+ size === "compact" && "w-[360px] min-w-0",
5883
5899
  className
5884
5900
  ),
5885
5901
  lockScroll,
@@ -5890,16 +5906,28 @@ function Modal({
5890
5906
  {
5891
5907
  type: "button",
5892
5908
  onClick: handleClose,
5893
- className: cn("modal__close", styles15.modal__close),
5909
+ className: cn(
5910
+ "modal__close",
5911
+ "absolute right-4 top-4 z-10 rounded-full p-1 text-[var(--chekin-color-brand-blue)] hover:bg-[#f4f6f8]"
5912
+ ),
5894
5913
  "aria-label": "Close",
5895
5914
  children: /* @__PURE__ */ jsx74(X5, { className: "h-5 w-5" })
5896
5915
  }
5897
5916
  ),
5898
- (iconSrc || iconProps?.src) && /* @__PURE__ */ jsx74("div", { className: cn("modal__icon", styles15.modal__icon), children: /* @__PURE__ */ jsx74("img", { src: iconSrc, alt: iconAlt ?? "", ...iconProps }) }),
5899
- title ? /* @__PURE__ */ jsx74(DialogTitle, { className: cn("modal__title", styles15.modal__title), children: title }) : /* @__PURE__ */ jsx74(DialogVisuallyHidden, { children: /* @__PURE__ */ jsx74(DialogTitle, { children: "Dialog" }) }),
5900
- text && /* @__PURE__ */ jsx74(DialogDescription, { className: cn("modal__text", styles15.modal__text), children: text }),
5917
+ (iconSrc || iconProps?.src) && /* @__PURE__ */ jsx74("div", { className: "modal__icon mx-auto mt-4 select-none", children: /* @__PURE__ */ jsx74("img", { src: iconSrc, alt: iconAlt ?? "", ...iconProps }) }),
5918
+ title ? /* @__PURE__ */ jsx74(DialogTitle, { className: cn("modal__title", "px-6 text-lg font-bold"), children: title }) : /* @__PURE__ */ jsx74(DialogVisuallyHidden, { children: /* @__PURE__ */ jsx74(DialogTitle, { children: "Dialog" }) }),
5919
+ text && /* @__PURE__ */ jsx74(DialogDescription, { className: cn("modal__text", "text-base"), children: text }),
5901
5920
  children,
5902
- buttons && /* @__PURE__ */ jsx74("div", { className: cn("modal__buttons-wrapper", styles15.modal__buttonsWrapper), children: buttons })
5921
+ buttons && /* @__PURE__ */ jsx74(
5922
+ "div",
5923
+ {
5924
+ className: cn(
5925
+ "modal__buttons-wrapper",
5926
+ "mb-2 mt-6 flex flex-col items-center justify-center gap-y-4"
5927
+ ),
5928
+ children: buttons
5929
+ }
5930
+ )
5903
5931
  ]
5904
5932
  }
5905
5933
  ) });
@@ -5909,7 +5937,7 @@ var ModalButton = forwardRef31(
5909
5937
  Button,
5910
5938
  {
5911
5939
  ref,
5912
- className: cn("modal__button", styles15.modal__button, className),
5940
+ className: cn("modal__button", "min-w-[210px]", className),
5913
5941
  size: size && "lg",
5914
5942
  ...props,
5915
5943
  children
@@ -6679,7 +6707,6 @@ function useRadioOptions({ options, defaultValue, onChange }) {
6679
6707
  }
6680
6708
 
6681
6709
  // src/radio/Radio.tsx
6682
- import styles16 from "./styles.module-REEJNJNW.module.css";
6683
6710
  import { Fragment as Fragment8, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
6684
6711
  var Radio = forwardRef37(
6685
6712
  ({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
@@ -6708,8 +6735,8 @@ var Radio = forwardRef37(
6708
6735
  {
6709
6736
  className: cn(
6710
6737
  "radio__wrapper",
6711
- styles16.radio__wrapper,
6712
- (disabled || option.disabled) && styles16.radio__wrapper_disabled
6738
+ "flex cursor-pointer items-center gap-2",
6739
+ (disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
6713
6740
  ),
6714
6741
  children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs56(Fragment8, { children: [
6715
6742
  /* @__PURE__ */ jsx86(
@@ -6721,7 +6748,7 @@ var Radio = forwardRef37(
6721
6748
  className: "radio__indicator"
6722
6749
  }
6723
6750
  ),
6724
- /* @__PURE__ */ jsx86("p", { className: cn(styles16.radio__label, "radio_label"), children: option.label })
6751
+ /* @__PURE__ */ jsx86("p", { className: "radio_label", children: option.label })
6725
6752
  ] })
6726
6753
  },
6727
6754
  option.value
@@ -6821,7 +6848,6 @@ function RatingProgress({
6821
6848
 
6822
6849
  // src/rating-radio-group/RatingRadioGroup.tsx
6823
6850
  import { Star } from "lucide-react";
6824
- import styles17 from "./styles.module-H7R2VV2Q.module.css";
6825
6851
  import { jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
6826
6852
  var getStarColor = (optionValue) => (value) => {
6827
6853
  if (value >= optionValue) return "#facc15";
@@ -6835,13 +6861,13 @@ function RatingRadioGroup({
6835
6861
  className,
6836
6862
  options
6837
6863
  }) {
6838
- return /* @__PURE__ */ jsxs59("fieldset", { className: cn(className, styles17.RatingRadioGroup), children: [
6839
- label && /* @__PURE__ */ jsx89("legend", { className: styles17.RatingRadioGroup__legend, children: label }),
6840
- /* @__PURE__ */ jsx89("div", { className: cn(styles17.RatingRadioGroup__list, "RatingRadioGroup__list"), children: options.map((option) => /* @__PURE__ */ jsxs59("label", { className: styles17.RatingRadioGroup__label, children: [
6864
+ return /* @__PURE__ */ jsxs59("fieldset", { className: cn("relative [all:unset]", className), children: [
6865
+ label && /* @__PURE__ */ jsx89("legend", { className: "mb-2", children: label }),
6866
+ /* @__PURE__ */ jsx89("div", { className: "RatingRadioGroup__list flex gap-2", children: options.map((option) => /* @__PURE__ */ jsxs59("label", { children: [
6841
6867
  /* @__PURE__ */ jsx89(
6842
6868
  "input",
6843
6869
  {
6844
- className: styles17.RatingRadioGroup__input,
6870
+ className: "peer absolute h-0 w-0 opacity-0",
6845
6871
  type: "radio",
6846
6872
  name,
6847
6873
  checked: value === option.value,
@@ -6852,7 +6878,7 @@ function RatingRadioGroup({
6852
6878
  /* @__PURE__ */ jsx89(
6853
6879
  Star,
6854
6880
  {
6855
- className: styles17.RatingRadioGroup__star,
6881
+ className: "cursor-pointer rounded peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[#385bf8]",
6856
6882
  size: 24,
6857
6883
  "aria-label": option.label,
6858
6884
  color: getStarColor(option.value)(value || 0),
@@ -7078,7 +7104,6 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
7078
7104
  })(SubSectionSize || {});
7079
7105
 
7080
7106
  // src/section/Section.tsx
7081
- import styles18 from "./Section.module-6UJGBE6B.module.css";
7082
7107
  import { jsx as jsx95, jsxs as jsxs62 } from "react/jsx-runtime";
7083
7108
  function TooltipInfo({ content, className }) {
7084
7109
  return /* @__PURE__ */ jsx95(Tooltip, { side: "right", content, contentClassName: "max-w-64", children: /* @__PURE__ */ jsx95(
@@ -7111,45 +7136,62 @@ var Section = forwardRef38(
7111
7136
  {
7112
7137
  ref,
7113
7138
  className: cn(
7114
- styles18.section,
7115
- loading && styles18.section_loading,
7116
- disabled && styles18.section_disabled,
7139
+ "mb-6 box-border flex w-full cursor-default flex-col gap-6 rounded-lg border border-solid border-[var(--chekin-color-gray-3)] bg-white px-6 py-10",
7140
+ loading && "cursor-progress",
7141
+ disabled && "pointer-events-none opacity-50",
7117
7142
  { "!hidden": hidden },
7118
7143
  className
7119
7144
  ),
7120
7145
  children: [
7121
- (title || subtitle) && /* @__PURE__ */ jsxs62("div", { className: styles18.section__header, children: [
7146
+ (title || subtitle) && /* @__PURE__ */ jsxs62("div", { className: "flex flex-col gap-2", children: [
7122
7147
  title && /* @__PURE__ */ jsxs62(
7123
7148
  "div",
7124
7149
  {
7125
7150
  className: cn(
7126
- styles18.section__title,
7127
- size === 0 /* L */ && styles18.section__titleLarge
7151
+ "flex max-w-[85%] items-center text-lg font-bold text-[var(--chekin-color-brand-navy)] md:max-w-full",
7152
+ size !== 0 /* L */ && "subsection-title"
7128
7153
  ),
7129
7154
  children: [
7130
7155
  title,
7131
- titleTooltip && /* @__PURE__ */ jsx95("div", { className: styles18.section__titleTooltip, children: /* @__PURE__ */ jsx95(TooltipInfo, { content: titleTooltip }) }),
7132
- linkContent && /* @__PURE__ */ jsx95("div", { className: styles18.section__titleLink, children: linkContent })
7156
+ titleTooltip && /* @__PURE__ */ jsx95("div", { className: "ml-2.5", children: /* @__PURE__ */ jsx95(TooltipInfo, { content: titleTooltip }) }),
7157
+ linkContent && /* @__PURE__ */ jsx95("div", { className: "ml-6 text-sm font-semibold text-[var(--chekin-color-brand-blue)] no-underline hover:opacity-70 active:opacity-100", children: linkContent })
7133
7158
  ]
7134
7159
  }
7135
7160
  ),
7136
- subtitle && /* @__PURE__ */ jsxs62("div", { className: styles18.section__subtitleWrapper, children: [
7137
- /* @__PURE__ */ jsx95("div", { className: styles18.section__subtitle, children: subtitle }),
7138
- subtitleTooltip && /* @__PURE__ */ jsx95("div", { className: styles18.section__subtitleTooltip, children: /* @__PURE__ */ jsx95(TooltipInfo, { content: subtitleTooltip }) })
7161
+ subtitle && /* @__PURE__ */ jsxs62("div", { className: "w-full max-w-[720px] md:max-w-full", children: [
7162
+ /* @__PURE__ */ jsx95("div", { className: "inline text-base font-normal text-[var(--chekin-color-gray-1)]", children: subtitle }),
7163
+ subtitleTooltip && /* @__PURE__ */ jsx95("div", { className: "ml-1.5 inline-block align-text-top", children: /* @__PURE__ */ jsx95(TooltipInfo, { content: subtitleTooltip }) })
7139
7164
  ] })
7140
7165
  ] }),
7141
- loading && showLoader ? /* @__PURE__ */ jsx95(Loader, { className: styles18.section__loader }) : children
7166
+ loading && showLoader ? /* @__PURE__ */ jsx95(Loader, { className: "mx-auto mb-3 mt-2.5" }) : children
7142
7167
  ]
7143
7168
  }
7144
7169
  )
7145
7170
  );
7146
7171
  Section.displayName = "Section";
7147
7172
  var SubSection = forwardRef38(
7148
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx95(Section, { ref, className: cn(styles18.section_sub, className), ...props })
7173
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx95(
7174
+ Section,
7175
+ {
7176
+ ref,
7177
+ className: cn(
7178
+ "m-0 box-border rounded-none border-none bg-transparent p-0 [&_.subsection-title]:text-base [&_.subsection-title]:font-semibold",
7179
+ className
7180
+ ),
7181
+ ...props
7182
+ }
7183
+ )
7149
7184
  );
7150
7185
  SubSection.displayName = "SubSection";
7151
7186
  var DividingSubsection = forwardRef38(
7152
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx95(SubSection, { ref, className: cn(styles18.section_dividing, className), ...props })
7187
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx95(
7188
+ SubSection,
7189
+ {
7190
+ ref,
7191
+ className: cn("border-0 border-t border-solid border-t-[#f1f1f1] pt-6", className),
7192
+ ...props
7193
+ }
7194
+ )
7153
7195
  );
7154
7196
  DividingSubsection.displayName = "DividingSubsection";
7155
7197
 
@@ -7162,7 +7204,6 @@ import {
7162
7204
  } from "react";
7163
7205
 
7164
7206
  // src/selector-button/SelectorButton.tsx
7165
- import styles19 from "./styles.module-AAYSW4RF.module.css";
7166
7207
  import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
7167
7208
  function SelectorButton({
7168
7209
  active,
@@ -7191,12 +7232,15 @@ function SelectorButton({
7191
7232
  return /* @__PURE__ */ jsxs63(
7192
7233
  "label",
7193
7234
  {
7194
- className: cn(styles19.styledButton, "selector-button", className, {
7195
- [styles19.active]: active,
7196
- [styles19.disabled]: disabled,
7197
- [styles19.loading]: loading,
7198
- [styles19.readOnly]: readOnly
7199
- }),
7235
+ className: cn(
7236
+ "selector-button box-border flex h-12 min-w-[117px] cursor-pointer select-none items-center rounded-[6px] border border-[#cecede] bg-[#f2f2fa] px-4 text-left text-[15px] font-semibold text-[#9696b9] outline-none transition-all duration-75 ease-in-out hover:border-[#385bf8] active:opacity-100 [&_input]:absolute [&_input]:h-0 [&_input]:w-0 [&_input]:cursor-pointer [&_input]:opacity-0",
7237
+ active && "active border-[#385bf8] bg-white text-[#385bf8]",
7238
+ disabled && "disabled cursor-not-allowed opacity-30 hover:border-[#cecede]",
7239
+ loading && "loading cursor-progress",
7240
+ readOnly && "readOnly cursor-default",
7241
+ readOnly && !active && "hover:border-transparent",
7242
+ className
7243
+ ),
7200
7244
  ...props,
7201
7245
  children: [
7202
7246
  /* @__PURE__ */ jsx96(
@@ -7210,7 +7254,7 @@ function SelectorButton({
7210
7254
  readOnly
7211
7255
  }
7212
7256
  ),
7213
- /* @__PURE__ */ jsx96("div", { className: styles19.content, children })
7257
+ /* @__PURE__ */ jsx96("div", { className: "flex h-full items-center", children })
7214
7258
  ]
7215
7259
  }
7216
7260
  );
@@ -7218,7 +7262,6 @@ function SelectorButton({
7218
7262
  SelectorButton.displayName = "SelectorButton";
7219
7263
 
7220
7264
  // src/selectors/Selectors.tsx
7221
- import styles20 from "./styles.module-4AVOK5SA.module.css";
7222
7265
  import { Fragment as Fragment9, jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
7223
7266
  var getValueArray = (value) => {
7224
7267
  if (value) {
@@ -7277,15 +7320,15 @@ function SelectorsInternal({
7277
7320
  onAnySelectorActive?.(isAnyActive);
7278
7321
  }, [isAnyActive, onAnySelectorActive]);
7279
7322
  return /* @__PURE__ */ jsxs64(Fragment9, { children: [
7280
- label && /* @__PURE__ */ jsx97("div", { className: styles20.labelWrapper, children: /* @__PURE__ */ jsx97("div", { className: cn(styles20.name, "label"), children: label }) }),
7323
+ label && /* @__PURE__ */ jsx97("div", { className: "flex [&_span]:ml-[5px]", children: /* @__PURE__ */ jsx97("div", { className: "label box-border mb-1.5 min-h-5 select-none overflow-x-hidden text-ellipsis whitespace-nowrap text-left text-base font-normal text-[var(--chekin-color-brand-navy)]", children: label }) }),
7281
7324
  /* @__PURE__ */ jsx97(
7282
7325
  "div",
7283
7326
  {
7284
7327
  ref,
7285
- className: cn(className, {
7286
- [styles20.selectorsWrapperTab]: variant === "TAB",
7287
- [styles20.selectorsWrapperDefault]: variant !== "TAB"
7288
- }),
7328
+ className: cn(
7329
+ variant === "TAB" ? "box-border flex h-auto max-h-none w-fit flex-wrap items-center rounded-md border border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-surface-input-empty)] bg-no-repeat [background-position:0_0] [background-clip:padding-box]" : "mb-[-10px] flex w-full flex-wrap [&_.selector-button]:mb-[10px] [&_.selector-button]:mr-[10px]",
7330
+ className
7331
+ ),
7289
7332
  children: options.map((option, index) => {
7290
7333
  const isSelected = getValueArray(value).includes(option.value);
7291
7334
  const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
@@ -7302,11 +7345,13 @@ function SelectorsInternal({
7302
7345
  disabled: isDisabled,
7303
7346
  onClick: (event) => onClick?.(event, option),
7304
7347
  onChange: handleChange(option),
7305
- className: variant === "TAB" ? cn(styles20.selectorButton, {
7306
- [styles20.active]: isSelected,
7307
- [styles20.readOnly]: isReadOnly,
7308
- [styles20.sizeSm]: size === "sm"
7309
- }) : "selector-button",
7348
+ className: variant === "TAB" ? cn(
7349
+ "box-border min-h-9 min-w-0 flex-1 whitespace-nowrap border border-transparent bg-transparent px-[21px] py-2 text-[15px] font-medium text-[var(--chekin-color-gray-1)] shadow-none transition-none [margin:2px] hover:border-transparent hover:bg-[var(--chekin-color-brand-blue)] hover:text-white hover:opacity-35 [&>div]:mx-auto [&>div]:my-0",
7350
+ isSelected && "active cursor-default border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-brand-blue)] font-semibold text-white shadow-[0_3px_4px_#00020334] hover:opacity-100",
7351
+ isReadOnly && !isSelected && "readOnly cursor-default hover:bg-transparent hover:text-[var(--chekin-color-gray-1)]",
7352
+ size === "sm" && "py-[7px] text-sm font-medium leading-6",
7353
+ size === "sm" && isSelected && "py-[7px] text-sm font-bold leading-6"
7354
+ ) : "selector-button",
7310
7355
  children: getSelectorContent(option.label, isDisabled, isReadOnly, isSelected)
7311
7356
  },
7312
7357
  `${option.value}-${index}`
@@ -8668,7 +8713,6 @@ function TablePlaceholder({
8668
8713
 
8669
8714
  // src/task-card/TaskCard.tsx
8670
8715
  import { ArrowRight } from "lucide-react";
8671
- import styles21 from "./TaskCard.module-AVGS4US3.module.css";
8672
8716
  import { jsx as jsx114, jsxs as jsxs75 } from "react/jsx-runtime";
8673
8717
  function TaskCard({
8674
8718
  title,
@@ -8684,27 +8728,40 @@ function TaskCard({
8684
8728
  "div",
8685
8729
  {
8686
8730
  className: cn(
8687
- styles21.TaskCard,
8688
- styles21[`TaskCard--${eventType}`],
8689
- onClick && styles21["TaskCard--clickable"],
8731
+ "relative box-border flex min-h-[48px] min-w-[360px] items-center gap-4 overflow-hidden rounded-lg p-2 transition-colors duration-200",
8732
+ eventType === "error" && "bg-red-50",
8733
+ eventType === "warning" && "bg-amber-50",
8734
+ onClick && 'group cursor-pointer before:pointer-events-none before:absolute before:inset-0 before:rounded-lg before:content-[""]',
8735
+ onClick && eventType === "error" && "hover:before:bg-red-100 hover:before:mix-blend-multiply",
8736
+ onClick && eventType === "warning" && "hover:before:bg-amber-100 hover:before:mix-blend-multiply",
8690
8737
  className
8691
8738
  ),
8692
8739
  onClick,
8693
8740
  role: onClick ? "button" : void 0,
8694
8741
  tabIndex: onClick ? 0 : void 0,
8695
8742
  children: [
8696
- /* @__PURE__ */ jsx114("div", { className: styles21.TaskCard__indicator }),
8697
- /* @__PURE__ */ jsxs75("div", { className: styles21.TaskCard__content, children: [
8698
- /* @__PURE__ */ jsx114("h4", { className: styles21.TaskCard__title, children: title }),
8699
- /* @__PURE__ */ jsx114("p", { className: styles21.TaskCard__date, children: description })
8743
+ /* @__PURE__ */ jsx114(
8744
+ "div",
8745
+ {
8746
+ className: cn(
8747
+ "relative w-1 shrink-0 self-stretch rounded-sm",
8748
+ eventType === "error" && "bg-chekin-red",
8749
+ eventType === "warning" && "bg-amber-500"
8750
+ )
8751
+ }
8752
+ ),
8753
+ /* @__PURE__ */ jsxs75("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
8754
+ /* @__PURE__ */ jsx114("h4", { className: "m-0 w-full break-words text-base font-semibold leading-6 text-chekin-navy", children: title }),
8755
+ /* @__PURE__ */ jsx114("p", { className: "m-0 w-full text-sm font-medium leading-6 text-chekin-gray-1", children: description })
8700
8756
  ] }),
8701
- shouldShowActions && /* @__PURE__ */ jsxs75("div", { className: styles21.TaskCard__actions, children: [
8757
+ shouldShowActions && /* @__PURE__ */ jsxs75("div", { className: "flex shrink-0 items-center gap-1", children: [
8702
8758
  shouldShowCount && /* @__PURE__ */ jsx114(
8703
8759
  "div",
8704
8760
  {
8705
8761
  className: cn(
8706
- styles21.TaskCard__count,
8707
- styles21[`TaskCard__count--${eventType}`]
8762
+ 'relative flex h-6 w-6 items-center justify-center rounded-full text-center text-sm font-semibold leading-6 before:absolute before:inset-0 before:rounded-full before:mix-blend-multiply before:content-[""]',
8763
+ eventType === "error" && "text-chekin-red before:bg-red-100",
8764
+ eventType === "warning" && "text-amber-700 before:bg-amber-100"
8708
8765
  ),
8709
8766
  children: count
8710
8767
  }
@@ -8712,7 +8769,7 @@ function TaskCard({
8712
8769
  onClick && /* @__PURE__ */ jsx114(
8713
8770
  "button",
8714
8771
  {
8715
- className: styles21.TaskCard__arrowButton,
8772
+ className: "flex h-8 w-0 min-w-0 cursor-pointer items-center justify-center overflow-hidden rounded-md border-0 bg-transparent p-0 text-chekin-gray-1 opacity-0 transition-[width,opacity,min-width] duration-300 ease-in-out hover:bg-black/5 focus-visible:w-8 focus-visible:min-w-8 focus-visible:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-chekin-blue group-hover:w-8 group-hover:min-w-8 group-hover:opacity-100",
8716
8773
  onClick: (event) => {
8717
8774
  event.stopPropagation();
8718
8775
  onClick?.();
@@ -8984,8 +9041,24 @@ import { jsx as jsx119 } from "react/jsx-runtime";
8984
9041
  var SupportingText = ({ id, children }) => /* @__PURE__ */ jsx119("p", { id, className: "mt-1 text-xs italic text-chekin-gray-2", children });
8985
9042
 
8986
9043
  // src/text-field/TextField.tsx
8987
- import styles22 from "./textField.module-5W2LJGIC.module.css";
8988
9044
  import { jsx as jsx120, jsxs as jsxs78 } from "react/jsx-runtime";
9045
+ var textFieldRootClasses = [
9046
+ "[--text-field-height:2.75rem]",
9047
+ "[--text-field-radius:8px]",
9048
+ "[--text-field-padding-x:0.875rem]",
9049
+ "[--text-field-padding-y:0.625rem]",
9050
+ "[--text-field-bg-empty:#f4f6f8]",
9051
+ "[--text-field-bg-filled:#ffffff]",
9052
+ "[--text-field-border-empty:rgba(22,22,67,0.2)]",
9053
+ "[--text-field-border-filled:#161643]",
9054
+ "[--text-field-border-error:#ff2467]",
9055
+ "[--text-field-text:#161643]",
9056
+ "[--text-field-placeholder:#6b6b95]",
9057
+ "[--text-field-label:#161643]",
9058
+ "[--text-field-supporting:#9696b9]",
9059
+ "[--text-field-error:#ff2467]",
9060
+ "[--text-field-focus-ring:rgba(56,91,248,0.2)]"
9061
+ ];
8989
9062
  var inputVariants = cva14(
8990
9063
  [
8991
9064
  "flex w-full border text-base font-medium leading-5 outline-none transition-colors",
@@ -9092,7 +9165,11 @@ var TextField = React29.forwardRef(
9092
9165
  return /* @__PURE__ */ jsxs78(
9093
9166
  "div",
9094
9167
  {
9095
- className: cn("relative flex w-full flex-col", styles22.root, wrapperClassName),
9168
+ className: cn(
9169
+ "relative flex w-full flex-col",
9170
+ textFieldRootClasses,
9171
+ wrapperClassName
9172
+ ),
9096
9173
  children: [
9097
9174
  /* @__PURE__ */ jsxs78("div", { className: "relative", children: [
9098
9175
  /* @__PURE__ */ jsx120(
@@ -9131,7 +9208,7 @@ var TextField = React29.forwardRef(
9131
9208
  }
9132
9209
  );
9133
9210
  }
9134
- return /* @__PURE__ */ jsxs78("div", { className: cn("flex w-full flex-col", styles22.root, wrapperClassName), children: [
9211
+ return /* @__PURE__ */ jsxs78("div", { className: cn("flex w-full flex-col", textFieldRootClasses, wrapperClassName), children: [
9135
9212
  label && /* @__PURE__ */ jsxs78("div", { className: "mb-1 flex items-center gap-1", children: [
9136
9213
  /* @__PURE__ */ jsx120(
9137
9214
  LabelPrimitive2.Root,
@@ -9173,12 +9250,11 @@ TextField.displayName = "TextField";
9173
9250
 
9174
9251
  // src/textarea/Textarea.tsx
9175
9252
  import { forwardRef as forwardRef47, useId as useId10 } from "react";
9176
- import styles23 from "./styles.module-6FWQEZTQ.module.css";
9177
9253
  import { jsx as jsx121, jsxs as jsxs79 } from "react/jsx-runtime";
9178
9254
  var Textarea = forwardRef47(
9179
9255
  ({ className, textareaClassName, label, disabled, name, invalid, ...textareaProps }, ref) => {
9180
9256
  const inputId = useId10();
9181
- return /* @__PURE__ */ jsxs79("div", { className: cn(styles23.container, className), children: [
9257
+ return /* @__PURE__ */ jsxs79("div", { className: cn("relative", className), children: [
9182
9258
  /* @__PURE__ */ jsx121(
9183
9259
  "textarea",
9184
9260
  {
@@ -9186,10 +9262,12 @@ var Textarea = forwardRef47(
9186
9262
  id: inputId,
9187
9263
  name,
9188
9264
  disabled,
9189
- className: cn(styles23.textarea, textareaClassName, {
9190
- [styles23.textareaError]: invalid,
9191
- [styles23.textareaDisabled]: disabled
9192
- }),
9265
+ className: cn(
9266
+ "peer box-border min-h-[120px] w-full resize-none rounded-lg border border-[#cecede] bg-[#f4f6f8] px-4 py-3 text-[#161643] outline-none [scrollbar-color:#777e91_transparent] [scrollbar-gutter:stable] placeholder:text-[#6b6b95] placeholder:opacity-100 focus:border-[#385bf8] focus:bg-white focus:transition-colors focus:duration-100 focus:ease-in-out [&:not(:placeholder-shown)]:bg-white",
9267
+ invalid && "border-[#ff2467] focus:border-[#ff2467]",
9268
+ disabled && "cursor-not-allowed resize-none border-[#9696b9] bg-[#f4f6f8] text-[#9696b9] placeholder:text-[#9696b9]",
9269
+ textareaClassName
9270
+ ),
9193
9271
  ...textareaProps
9194
9272
  }
9195
9273
  ),
@@ -9197,10 +9275,11 @@ var Textarea = forwardRef47(
9197
9275
  "label",
9198
9276
  {
9199
9277
  htmlFor: inputId,
9200
- className: cn(styles23.label, {
9201
- [styles23.labelError]: invalid,
9202
- [styles23.labelDisabled]: disabled
9203
- }),
9278
+ className: cn(
9279
+ "pointer-events-none absolute left-3 top-4 px-1 text-[#6b6b95] transition-all duration-100 ease-in-out peer-focus:left-2 peer-focus:top-[-0.6rem] peer-focus:bg-white peer-focus:text-sm peer-focus:font-medium peer-focus:text-[#385bf8] peer-[:not(:placeholder-shown)]:left-2 peer-[:not(:placeholder-shown)]:top-[-0.6rem] peer-[:not(:placeholder-shown)]:bg-white peer-[:not(:placeholder-shown)]:text-sm peer-[:not(:placeholder-shown)]:font-medium",
9280
+ invalid && "text-[#ff2467] peer-focus:text-[#ff2467]",
9281
+ disabled && "text-[#9696b9]"
9282
+ ),
9204
9283
  children: label
9205
9284
  }
9206
9285
  )
@@ -9217,18 +9296,43 @@ var LABEL_PLACEMENT = /* @__PURE__ */ ((LABEL_PLACEMENT2) => {
9217
9296
  })(LABEL_PLACEMENT || {});
9218
9297
 
9219
9298
  // src/three-dots-loader/ThreeDotsLoader.tsx
9220
- import styles24 from "./styles.module-Y6YCV6UA.module.css";
9221
9299
  import { Fragment as Fragment10, jsx as jsx122, jsxs as jsxs80 } from "react/jsx-runtime";
9222
9300
  function Dots({
9223
9301
  height,
9224
9302
  width,
9225
9303
  color
9226
9304
  }) {
9227
- return /* @__PURE__ */ jsxs80("span", { className: styles24.dots, style: { height, width }, "aria-hidden": "true", children: [
9228
- /* @__PURE__ */ jsx122("span", { className: styles24.dot, style: { backgroundColor: color } }),
9229
- /* @__PURE__ */ jsx122("span", { className: styles24.dot, style: { backgroundColor: color } }),
9230
- /* @__PURE__ */ jsx122("span", { className: styles24.dot, style: { backgroundColor: color } })
9231
- ] });
9305
+ return /* @__PURE__ */ jsxs80(
9306
+ "span",
9307
+ {
9308
+ className: "inline-flex items-center justify-center gap-[15%]",
9309
+ style: { height, width },
9310
+ "aria-hidden": "true",
9311
+ children: [
9312
+ /* @__PURE__ */ jsx122(
9313
+ "span",
9314
+ {
9315
+ className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full [animation-delay:-0.32s]",
9316
+ style: { backgroundColor: color }
9317
+ }
9318
+ ),
9319
+ /* @__PURE__ */ jsx122(
9320
+ "span",
9321
+ {
9322
+ className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full [animation-delay:-0.16s]",
9323
+ style: { backgroundColor: color }
9324
+ }
9325
+ ),
9326
+ /* @__PURE__ */ jsx122(
9327
+ "span",
9328
+ {
9329
+ className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full",
9330
+ style: { backgroundColor: color }
9331
+ }
9332
+ )
9333
+ ]
9334
+ }
9335
+ );
9232
9336
  }
9233
9337
  function ThreeDotsLoader({
9234
9338
  height = 30,
@@ -9240,13 +9344,22 @@ function ThreeDotsLoader({
9240
9344
  }) {
9241
9345
  const dots = /* @__PURE__ */ jsx122(Dots, { color, height, width });
9242
9346
  if (label) {
9243
- return /* @__PURE__ */ jsx122("div", { className: cn(styles24.Loader, className), children: labelPlacement === 0 /* right */ ? /* @__PURE__ */ jsxs80(Fragment10, { children: [
9244
- dots,
9245
- /* @__PURE__ */ jsx122("div", { children: label })
9246
- ] }) : /* @__PURE__ */ jsxs80(Fragment10, { children: [
9247
- /* @__PURE__ */ jsx122("div", { children: label }),
9248
- dots
9249
- ] }) });
9347
+ return /* @__PURE__ */ jsx122(
9348
+ "div",
9349
+ {
9350
+ className: cn(
9351
+ "flex items-center justify-center gap-x-[13px] [&>div]:text-sm [&>div]:font-bold [&>div]:uppercase [&>div]:text-[#9696b9] [&>div]:opacity-50",
9352
+ className
9353
+ ),
9354
+ children: labelPlacement === 0 /* right */ ? /* @__PURE__ */ jsxs80(Fragment10, { children: [
9355
+ dots,
9356
+ /* @__PURE__ */ jsx122("div", { children: label })
9357
+ ] }) : /* @__PURE__ */ jsxs80(Fragment10, { children: [
9358
+ /* @__PURE__ */ jsx122("div", { children: label }),
9359
+ dots
9360
+ ] })
9361
+ }
9362
+ );
9250
9363
  }
9251
9364
  return /* @__PURE__ */ jsx122("div", { className, children: dots });
9252
9365
  }