@chekinapp/ui 0.0.35 → 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
@@ -10,9 +10,6 @@ function cn(...inputs) {
10
10
  return twMerge(clsx(inputs));
11
11
  }
12
12
 
13
- // src/accordion/Accordion.module.css
14
- var Accordion_default = {};
15
-
16
13
  // src/accordion/Accordion.tsx
17
14
  import { jsx, jsxs } from "react/jsx-runtime";
18
15
  var Accordion = AccordionPrimitive.Root;
@@ -20,7 +17,11 @@ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
20
17
  AccordionPrimitive.Item,
21
18
  {
22
19
  ref,
23
- className: cn("accordion__item", Accordion_default.accordion__item, className),
20
+ className: cn(
21
+ "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)]",
23
+ className
24
+ ),
24
25
  ...props
25
26
  }
26
27
  ));
@@ -34,7 +35,9 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
34
35
  ref,
35
36
  className: cn(
36
37
  "accordion__trigger",
37
- Accordion_default.accordion__trigger,
38
+ "flex h-auto w-full flex-1 items-center justify-between text-left outline-none transition-colors duration-200",
39
+ "hover:no-underline disabled:pointer-events-none",
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)]",
38
41
  "group",
39
42
  className
40
43
  ),
@@ -46,8 +49,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
46
49
  {
47
50
  className: cn(
48
51
  "accordion__icon",
49
- Accordion_default.accordion__icon,
50
- "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",
51
53
  "transition-colors duration-200",
52
54
  "relative"
53
55
  ),
@@ -88,34 +90,22 @@ var AccordionContent = React.forwardRef(({ className, contentClassName, children
88
90
  ref,
89
91
  className: cn(
90
92
  "accordion__content",
91
- Accordion_default.accordion__content,
93
+ "transition-all",
94
+ "data-[state=closed]:animate-accordion-up",
95
+ "data-[state=open]:animate-accordion-down",
96
+ "text-[length:var(--accordion-content-font-size)] leading-[var(--accordion-content-line-height)] text-[var(--accordion-content-color)] data-[state=closed]:block",
92
97
  // TODO Uncomment the next line when dropdown position is fixed
93
98
  // 'overflow-hidden',
94
99
  className
95
100
  ),
96
101
  ...props,
97
- children: /* @__PURE__ */ jsx(
98
- "div",
99
- {
100
- className: cn(
101
- "accordion__contentItem",
102
- Accordion_default.accordion__contentItem,
103
- contentClassName
104
- ),
105
- children
106
- }
107
- )
102
+ children: /* @__PURE__ */ jsx("div", { className: cn("accordion__contentItem px-6 pb-6 pt-2", contentClassName), children })
108
103
  }
109
104
  ));
110
105
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
111
106
 
112
107
  // src/alert-box/AlertBox.tsx
113
108
  import { AlertCircle, Check, TriangleAlert, XCircle } from "lucide-react";
114
-
115
- // src/alert-box/AlertBox.module.css
116
- var AlertBox_default = {};
117
-
118
- // src/alert-box/AlertBox.tsx
119
109
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
120
110
  var AlertType = /* @__PURE__ */ ((AlertType2) => {
121
111
  AlertType2["INFO"] = "INFO";
@@ -144,10 +134,10 @@ var sizeClasses = {
144
134
  ["L" /* L */]: "px-6 py-5 items-start"
145
135
  };
146
136
  var typeStyles = {
147
- ["INFO" /* INFO */]: AlertBox_default["alertBox--info"],
148
- ["WARNING" /* WARNING */]: AlertBox_default["alertBox--warning"],
149
- ["ERROR" /* ERROR */]: AlertBox_default["alertBox--error"],
150
- ["SUCCESS" /* SUCCESS */]: AlertBox_default["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)]",
151
141
  ["LIGHT" /* LIGHT */]: ""
152
142
  };
153
143
  function AlertBox({
@@ -164,8 +154,7 @@ function AlertBox({
164
154
  {
165
155
  "data-slot": "alert-box",
166
156
  className: cn(
167
- AlertBox_default.alertBox,
168
- "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",
169
158
  sizeClasses[size],
170
159
  typeStyles[type],
171
160
  className
@@ -184,11 +173,6 @@ var AlertSizes = AlertSize;
184
173
  // src/audio-player/AudioPlayer.tsx
185
174
  import { useCallback, useEffect, useRef, useState } from "react";
186
175
  import { Pause, Play } from "lucide-react";
187
-
188
- // src/audio-player/AudioPlayer.module.css
189
- var AudioPlayer_default = {};
190
-
191
- // src/audio-player/AudioPlayer.tsx
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
- AudioPlayer_default.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
- AudioPlayer_default.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
- AudioPlayer_default.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(AudioPlayer_default.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,11 +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
-
295
- // src/avatar/Avatar.module.css
296
- var Avatar_default = {};
297
-
298
- // src/avatar/Avatar.tsx
299
271
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
300
272
  var sizeClasses2 = {
301
273
  sm: "h-8 w-8",
@@ -327,7 +299,7 @@ var Avatar = React2.forwardRef(({ className, src, alt, fallback, size = "md", fa
327
299
  {
328
300
  className: cn(
329
301
  "flex h-full w-full items-center justify-center rounded-full font-medium",
330
- !fallbackClassName && Avatar_default.fallback,
302
+ !fallbackClassName && "bg-[var(--avatar-fallback-bg)] text-[var(--avatar-fallback-text)]",
331
303
  fallbackClassName
332
304
  ),
333
305
  children: fallback
@@ -380,11 +352,6 @@ Badge.displayName = "Badge";
380
352
 
381
353
  // src/beta-badge/BetaBadge.tsx
382
354
  import { useTranslation } from "react-i18next";
383
-
384
- // src/beta-badge/BetaBadge.module.css
385
- var BetaBadge_default = {};
386
-
387
- // src/beta-badge/BetaBadge.tsx
388
355
  import { jsxs as jsxs5 } from "react/jsx-runtime";
389
356
  function BetaBadge({
390
357
  className,
@@ -399,9 +366,8 @@ function BetaBadge({
399
366
  {
400
367
  "data-slot": "beta-badge",
401
368
  className: cn(
402
- BetaBadge_default.betaBadge,
403
- "rounded-sm px-2 py-1 text-sm/4 font-semibold uppercase",
404
- readOnly && BetaBadge_default["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)]",
405
371
  className
406
372
  ),
407
373
  ...props,
@@ -492,11 +458,6 @@ BookmarkTabsTrigger.displayName = "BookmarkTabsTrigger";
492
458
  // src/box-option-selector/BoxOptionSelector.tsx
493
459
  import { forwardRef as forwardRef4, useEffect as useEffect2, useState as useState2 } from "react";
494
460
  import { useTranslation as useTranslation2 } from "react-i18next";
495
-
496
- // src/box-option-selector/BoxOptionSelector.module.css
497
- var BoxOptionSelector_default = {};
498
-
499
- // src/box-option-selector/BoxOptionSelector.tsx
500
461
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
501
462
  var BoxOptionSelector = forwardRef4(
502
463
  ({
@@ -532,9 +493,8 @@ var BoxOptionSelector = forwardRef4(
532
493
  ref,
533
494
  "data-slot": "box-option-selector",
534
495
  className: cn(
535
- BoxOptionSelector_default.boxOption,
536
- "flex min-h-[116px] w-full max-w-[400px] cursor-pointer flex-col gap-4 rounded-lg border p-4 transition-all duration-200",
537
- isSelected && BoxOptionSelector_default["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)]",
538
498
  disabled && "cursor-not-allowed opacity-50"
539
499
  ),
540
500
  onClick: handleClick,
@@ -1504,9 +1464,6 @@ function ScrollBar({
1504
1464
  );
1505
1465
  }
1506
1466
 
1507
- // src/error-message/styles.module.css
1508
- var styles_default = {};
1509
-
1510
1467
  // src/error-message/ErrorMessage.tsx
1511
1468
  import { jsx as jsx21 } from "react/jsx-runtime";
1512
1469
  function ErrorMessage({ className, children, disabled }) {
@@ -1514,8 +1471,8 @@ function ErrorMessage({ className, children, disabled }) {
1514
1471
  "div",
1515
1472
  {
1516
1473
  className: cn(
1517
- styles_default.ErrorMessage,
1518
- disabled && styles_default.ErrorMessage__disabled,
1474
+ "mt-0.5 text-left text-sm font-medium text-[var(--error-message-color)]",
1475
+ disabled && "opacity-30",
1519
1476
  className
1520
1477
  ),
1521
1478
  children
@@ -1926,21 +1883,10 @@ import {
1926
1883
  forwardRef as forwardRef12
1927
1884
  } from "react";
1928
1885
 
1929
- // src/loading-bar/styles.module.css
1930
- var styles_default2 = {};
1931
-
1932
1886
  // src/loading-bar/LoadingBar.tsx
1933
1887
  import { jsx as jsx26 } from "react/jsx-runtime";
1934
1888
  function LoadingBar({ className }) {
1935
- 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(
1936
- "div",
1937
- {
1938
- className: cn(
1939
- "absolute top-0 h-full rounded-full bg-[var(--primary)]",
1940
- styles_default2.bar
1941
- )
1942
- }
1943
- ) }) });
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)]" }) }) });
1944
1890
  }
1945
1891
 
1946
1892
  // src/table/Table.tsx
@@ -4182,19 +4128,36 @@ var FileInputButton = forwardRef22(
4182
4128
  );
4183
4129
  FileInputButton.displayName = "FileInputButton";
4184
4130
 
4185
- // src/form-box/FormBox.module.css
4186
- var FormBox_default = {};
4187
-
4188
4131
  // src/form-box/Content.tsx
4189
4132
  import { jsx as jsx52 } from "react/jsx-runtime";
4190
4133
  function Content5({ children, className, ...props }) {
4191
- return /* @__PURE__ */ jsx52("div", { className: cn(FormBox_default.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
+ );
4192
4145
  }
4193
4146
 
4194
4147
  // src/form-box/Header.tsx
4195
4148
  import { jsx as jsx53 } from "react/jsx-runtime";
4196
4149
  function Header2({ children, className, ...props }) {
4197
- return /* @__PURE__ */ jsx53("h2", { className: cn(FormBox_default.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
+ );
4198
4161
  }
4199
4162
 
4200
4163
  // src/form-box/Root.tsx
@@ -4203,7 +4166,11 @@ function Root10({ children, nested, className, ...props }) {
4203
4166
  return /* @__PURE__ */ jsx54(
4204
4167
  "div",
4205
4168
  {
4206
- className: cn(FormBox_default.wrapper, nested && FormBox_default.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
+ ),
4207
4174
  ...props,
4208
4175
  children
4209
4176
  }
@@ -4213,7 +4180,17 @@ function Root10({ children, nested, className, ...props }) {
4213
4180
  // src/form-box/SubHeader.tsx
4214
4181
  import { jsx as jsx55 } from "react/jsx-runtime";
4215
4182
  function SubHeader({ children, className, ...props }) {
4216
- return /* @__PURE__ */ jsx55("h4", { className: cn(FormBox_default.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
+ );
4217
4194
  }
4218
4195
 
4219
4196
  // src/form-box/index.ts
@@ -4231,11 +4208,6 @@ import {
4231
4208
  useState as useState14
4232
4209
  } from "react";
4233
4210
  import { useTranslation as useTranslation10 } from "react-i18next";
4234
-
4235
- // src/free-text-field/styles.module.css
4236
- var styles_default3 = {};
4237
-
4238
- // src/free-text-field/FreeTextField.tsx
4239
4211
  import { jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
4240
4212
  var FreeTextField = forwardRef23(
4241
4213
  ({
@@ -4281,65 +4253,81 @@ var FreeTextField = forwardRef23(
4281
4253
  onBlur?.(event);
4282
4254
  };
4283
4255
  const fieldBoxClassName = cn(
4284
- styles_default3.fieldBox,
4285
- autocompleted && styles_default3.fieldBoxAutocompleted,
4286
- isErrorWrong && !autocompleted && styles_default3.fieldBoxErrorWrong,
4287
- !autocompleted && !isErrorWrong && !isEmpty && styles_default3.fieldBoxFilled,
4288
- !autocompleted && !isErrorWrong && isEmpty && styles_default3.fieldBoxEmpty,
4289
- isFocused && !hasError && styles_default3.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)]"
4290
4262
  );
4291
4263
  const inputPlaceholder = fieldStyle === "new" ? label : placeholder;
4292
4264
  const showFloatingLabel = fieldStyle === "new" && !isEmpty && Boolean(label);
4293
- return /* @__PURE__ */ jsxs36("div", { className: cn(styles_default3.container, className), children: [
4294
- fieldStyle === "current" && label && /* @__PURE__ */ jsxs36("div", { className: styles_default3.labelRow, children: [
4295
- /* @__PURE__ */ jsx56("label", { htmlFor: inputId, className: styles_default3.labelText, children: label }),
4296
- optional && /* @__PURE__ */ jsxs36("span", { className: styles_default3.optionalText, children: [
4297
- "- ",
4298
- /* @__PURE__ */ jsx56("em", { children: optionalLabel || t("optional") })
4299
- ] }),
4300
- tooltip && /* @__PURE__ */ jsx56("div", { className: styles_default3.tooltip, children: tooltip })
4301
- ] }),
4302
- /* @__PURE__ */ jsxs36("div", { className: fieldBoxClassName, children: [
4303
- /* @__PURE__ */ jsx56(
4304
- "input",
4305
- {
4306
- ref,
4307
- id: inputId,
4308
- className: styles_default3.input,
4309
- placeholder: inputPlaceholder,
4310
- value,
4311
- defaultValue: value === void 0 ? defaultValue : void 0,
4312
- onChange: handleChange,
4313
- onFocus: handleFocus,
4314
- onBlur: handleBlur,
4315
- disabled,
4316
- ...inputProps
4317
- }
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
4318
4271
  ),
4319
- icon && /* @__PURE__ */ jsx56("div", { className: styles_default3.icon, children: icon }),
4320
- showFloatingLabel && /* @__PURE__ */ jsx56(
4321
- "div",
4322
- {
4323
- className: cn(
4324
- styles_default3.floatingLabel,
4325
- autocompleted && styles_default3.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
+ }
4326
4281
  ),
4327
- children: /* @__PURE__ */ jsx56(
4328
- "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",
4329
4308
  {
4330
4309
  className: cn(
4331
- styles_default3.floatingLabelText,
4332
- isErrorWrong && styles_default3.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)]"
4333
4312
  ),
4334
- 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
+ )
4335
4323
  }
4336
4324
  )
4337
- }
4338
- )
4339
- ] }),
4340
- supportingText && /* @__PURE__ */ jsx56("p", { className: styles_default3.supportingText, children: supportingText }),
4341
- error && /* @__PURE__ */ jsx56("p", { className: styles_default3.errorText, children: error })
4342
- ] });
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
+ );
4343
4331
  }
4344
4332
  );
4345
4333
  FreeTextField.displayName = "FreeTextField";
@@ -5778,12 +5766,14 @@ function Loader({
5778
5766
 
5779
5767
  // src/metric-card/MetricCard.tsx
5780
5768
  import { CircleQuestionMark as CircleQuestionMark2, TrendingDown, TrendingUp } from "lucide-react";
5781
-
5782
- // src/metric-card/MetricCard.module.css
5783
- var MetricCard_default = {};
5784
-
5785
- // src/metric-card/MetricCard.tsx
5786
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
+ };
5787
5777
  function MetricCard({
5788
5778
  title,
5789
5779
  value,
@@ -5798,37 +5788,41 @@ function MetricCard({
5798
5788
  "div",
5799
5789
  {
5800
5790
  className: cn(
5801
- MetricCard_default.MetricCard,
5802
- MetricCard_default[`MetricCard--${variant}`],
5803
- loading && MetricCard_default["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",
5804
5794
  className
5805
5795
  ),
5806
5796
  children: [
5807
- /* @__PURE__ */ jsx73("div", { className: MetricCard_default.MetricCard__iconContainer, children: icon }),
5808
- /* @__PURE__ */ jsxs46("div", { className: MetricCard_default.MetricCard__content, children: [
5809
- /* @__PURE__ */ jsxs46("div", { className: MetricCard_default.MetricCard__header, children: [
5810
- /* @__PURE__ */ jsx73("h4", { className: MetricCard_default.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 }),
5811
5808
  tooltip && /* @__PURE__ */ jsx73(Tooltip, { side: "right", content: tooltip, contentClassName: "max-w-64", children: /* @__PURE__ */ jsx73(
5812
5809
  "button",
5813
5810
  {
5814
5811
  type: "button",
5815
- className: cn(
5816
- "inline-flex text-[var(--chekin-color-gray-1)]",
5817
- MetricCard_default.MetricCard__tooltip
5818
- ),
5812
+ className: "inline-flex text-[var(--chekin-color-gray-1)]",
5819
5813
  "aria-label": tooltip,
5820
5814
  children: /* @__PURE__ */ jsx73(CircleQuestionMark2, { className: "h-4 w-4" })
5821
5815
  }
5822
5816
  ) })
5823
5817
  ] }),
5824
- /* @__PURE__ */ jsxs46("div", { className: MetricCard_default.MetricCard__footer, children: [
5825
- /* @__PURE__ */ jsx73("div", { className: MetricCard_default.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 }),
5826
5820
  !!percentage && /* @__PURE__ */ jsxs46(
5827
5821
  "div",
5828
5822
  {
5829
5823
  className: cn(
5830
- MetricCard_default.MetricCard__percentage,
5831
- percentage < 0 ? MetricCard_default["--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)]"
5832
5826
  ),
5833
5827
  children: [
5834
5828
  percentage < 0 ? /* @__PURE__ */ jsx73(TrendingDown, {}) : /* @__PURE__ */ jsx73(TrendingUp, {}),
@@ -5856,11 +5850,6 @@ var METRIC_CARD_VARIANTS = {
5856
5850
  // src/modal/Modal.tsx
5857
5851
  import { forwardRef as forwardRef31, useRef as useRef14 } from "react";
5858
5852
  import { X as X5 } from "lucide-react";
5859
-
5860
- // src/modal/styles.module.css
5861
- var styles_default4 = {};
5862
-
5863
- // src/modal/Modal.tsx
5864
5853
  import { jsx as jsx74, jsxs as jsxs47 } from "react/jsx-runtime";
5865
5854
  var preventDefault = (event) => {
5866
5855
  event.preventDefault();
@@ -5904,9 +5893,9 @@ function Modal({
5904
5893
  overlayClassName,
5905
5894
  className: cn(
5906
5895
  "modal__content",
5907
- styles_default4.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)]",
5908
5897
  scrollableOverlay && "min-h-0",
5909
- size === "compact" && styles_default4.modal__contentCompact,
5898
+ size === "compact" && "w-[360px] min-w-0",
5910
5899
  className
5911
5900
  ),
5912
5901
  lockScroll,
@@ -5917,16 +5906,28 @@ function Modal({
5917
5906
  {
5918
5907
  type: "button",
5919
5908
  onClick: handleClose,
5920
- className: cn("modal__close", styles_default4.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
+ ),
5921
5913
  "aria-label": "Close",
5922
5914
  children: /* @__PURE__ */ jsx74(X5, { className: "h-5 w-5" })
5923
5915
  }
5924
5916
  ),
5925
- (iconSrc || iconProps?.src) && /* @__PURE__ */ jsx74("div", { className: cn("modal__icon", styles_default4.modal__icon), children: /* @__PURE__ */ jsx74("img", { src: iconSrc, alt: iconAlt ?? "", ...iconProps }) }),
5926
- title ? /* @__PURE__ */ jsx74(DialogTitle, { className: cn("modal__title", styles_default4.modal__title), children: title }) : /* @__PURE__ */ jsx74(DialogVisuallyHidden, { children: /* @__PURE__ */ jsx74(DialogTitle, { children: "Dialog" }) }),
5927
- text && /* @__PURE__ */ jsx74(DialogDescription, { className: cn("modal__text", styles_default4.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 }),
5928
5920
  children,
5929
- buttons && /* @__PURE__ */ jsx74("div", { className: cn("modal__buttons-wrapper", styles_default4.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
+ )
5930
5931
  ]
5931
5932
  }
5932
5933
  ) });
@@ -5936,7 +5937,7 @@ var ModalButton = forwardRef31(
5936
5937
  Button,
5937
5938
  {
5938
5939
  ref,
5939
- className: cn("modal__button", styles_default4.modal__button, className),
5940
+ className: cn("modal__button", "min-w-[210px]", className),
5940
5941
  size: size && "lg",
5941
5942
  ...props,
5942
5943
  children
@@ -6705,9 +6706,6 @@ function useRadioOptions({ options, defaultValue, onChange }) {
6705
6706
  };
6706
6707
  }
6707
6708
 
6708
- // src/radio/styles.module.css
6709
- var styles_default5 = {};
6710
-
6711
6709
  // src/radio/Radio.tsx
6712
6710
  import { Fragment as Fragment8, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
6713
6711
  var Radio = forwardRef37(
@@ -6737,8 +6735,8 @@ var Radio = forwardRef37(
6737
6735
  {
6738
6736
  className: cn(
6739
6737
  "radio__wrapper",
6740
- styles_default5.radio__wrapper,
6741
- (disabled || option.disabled) && styles_default5.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"
6742
6740
  ),
6743
6741
  children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs56(Fragment8, { children: [
6744
6742
  /* @__PURE__ */ jsx86(
@@ -6750,7 +6748,7 @@ var Radio = forwardRef37(
6750
6748
  className: "radio__indicator"
6751
6749
  }
6752
6750
  ),
6753
- /* @__PURE__ */ jsx86("p", { className: cn(styles_default5.radio__label, "radio_label"), children: option.label })
6751
+ /* @__PURE__ */ jsx86("p", { className: "radio_label", children: option.label })
6754
6752
  ] })
6755
6753
  },
6756
6754
  option.value
@@ -6850,11 +6848,6 @@ function RatingProgress({
6850
6848
 
6851
6849
  // src/rating-radio-group/RatingRadioGroup.tsx
6852
6850
  import { Star } from "lucide-react";
6853
-
6854
- // src/rating-radio-group/styles.module.css
6855
- var styles_default6 = {};
6856
-
6857
- // src/rating-radio-group/RatingRadioGroup.tsx
6858
6851
  import { jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
6859
6852
  var getStarColor = (optionValue) => (value) => {
6860
6853
  if (value >= optionValue) return "#facc15";
@@ -6868,13 +6861,13 @@ function RatingRadioGroup({
6868
6861
  className,
6869
6862
  options
6870
6863
  }) {
6871
- return /* @__PURE__ */ jsxs59("fieldset", { className: cn(className, styles_default6.RatingRadioGroup), children: [
6872
- label && /* @__PURE__ */ jsx89("legend", { className: styles_default6.RatingRadioGroup__legend, children: label }),
6873
- /* @__PURE__ */ jsx89("div", { className: cn(styles_default6.RatingRadioGroup__list, "RatingRadioGroup__list"), children: options.map((option) => /* @__PURE__ */ jsxs59("label", { className: styles_default6.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: [
6874
6867
  /* @__PURE__ */ jsx89(
6875
6868
  "input",
6876
6869
  {
6877
- className: styles_default6.RatingRadioGroup__input,
6870
+ className: "peer absolute h-0 w-0 opacity-0",
6878
6871
  type: "radio",
6879
6872
  name,
6880
6873
  checked: value === option.value,
@@ -6885,7 +6878,7 @@ function RatingRadioGroup({
6885
6878
  /* @__PURE__ */ jsx89(
6886
6879
  Star,
6887
6880
  {
6888
- className: styles_default6.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]",
6889
6882
  size: 24,
6890
6883
  "aria-label": option.label,
6891
6884
  color: getStarColor(option.value)(value || 0),
@@ -7110,9 +7103,6 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
7110
7103
  return SubSectionSize2;
7111
7104
  })(SubSectionSize || {});
7112
7105
 
7113
- // src/section/Section.module.css
7114
- var Section_default = {};
7115
-
7116
7106
  // src/section/Section.tsx
7117
7107
  import { jsx as jsx95, jsxs as jsxs62 } from "react/jsx-runtime";
7118
7108
  function TooltipInfo({ content, className }) {
@@ -7146,45 +7136,62 @@ var Section = forwardRef38(
7146
7136
  {
7147
7137
  ref,
7148
7138
  className: cn(
7149
- Section_default.section,
7150
- loading && Section_default.section_loading,
7151
- disabled && Section_default.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",
7152
7142
  { "!hidden": hidden },
7153
7143
  className
7154
7144
  ),
7155
7145
  children: [
7156
- (title || subtitle) && /* @__PURE__ */ jsxs62("div", { className: Section_default.section__header, children: [
7146
+ (title || subtitle) && /* @__PURE__ */ jsxs62("div", { className: "flex flex-col gap-2", children: [
7157
7147
  title && /* @__PURE__ */ jsxs62(
7158
7148
  "div",
7159
7149
  {
7160
7150
  className: cn(
7161
- Section_default.section__title,
7162
- size === 0 /* L */ && Section_default.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"
7163
7153
  ),
7164
7154
  children: [
7165
7155
  title,
7166
- titleTooltip && /* @__PURE__ */ jsx95("div", { className: Section_default.section__titleTooltip, children: /* @__PURE__ */ jsx95(TooltipInfo, { content: titleTooltip }) }),
7167
- linkContent && /* @__PURE__ */ jsx95("div", { className: Section_default.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 })
7168
7158
  ]
7169
7159
  }
7170
7160
  ),
7171
- subtitle && /* @__PURE__ */ jsxs62("div", { className: Section_default.section__subtitleWrapper, children: [
7172
- /* @__PURE__ */ jsx95("div", { className: Section_default.section__subtitle, children: subtitle }),
7173
- subtitleTooltip && /* @__PURE__ */ jsx95("div", { className: Section_default.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 }) })
7174
7164
  ] })
7175
7165
  ] }),
7176
- loading && showLoader ? /* @__PURE__ */ jsx95(Loader, { className: Section_default.section__loader }) : children
7166
+ loading && showLoader ? /* @__PURE__ */ jsx95(Loader, { className: "mx-auto mb-3 mt-2.5" }) : children
7177
7167
  ]
7178
7168
  }
7179
7169
  )
7180
7170
  );
7181
7171
  Section.displayName = "Section";
7182
7172
  var SubSection = forwardRef38(
7183
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx95(Section, { ref, className: cn(Section_default.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
+ )
7184
7184
  );
7185
7185
  SubSection.displayName = "SubSection";
7186
7186
  var DividingSubsection = forwardRef38(
7187
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx95(SubSection, { ref, className: cn(Section_default.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
+ )
7188
7195
  );
7189
7196
  DividingSubsection.displayName = "DividingSubsection";
7190
7197
 
@@ -7196,9 +7203,6 @@ import {
7196
7203
  useEffect as useEffect21
7197
7204
  } from "react";
7198
7205
 
7199
- // src/selector-button/styles.module.css
7200
- var styles_default7 = {};
7201
-
7202
7206
  // src/selector-button/SelectorButton.tsx
7203
7207
  import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
7204
7208
  function SelectorButton({
@@ -7228,12 +7232,15 @@ function SelectorButton({
7228
7232
  return /* @__PURE__ */ jsxs63(
7229
7233
  "label",
7230
7234
  {
7231
- className: cn(styles_default7.styledButton, "selector-button", className, {
7232
- [styles_default7.active]: active,
7233
- [styles_default7.disabled]: disabled,
7234
- [styles_default7.loading]: loading,
7235
- [styles_default7.readOnly]: readOnly
7236
- }),
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
+ ),
7237
7244
  ...props,
7238
7245
  children: [
7239
7246
  /* @__PURE__ */ jsx96(
@@ -7247,16 +7254,13 @@ function SelectorButton({
7247
7254
  readOnly
7248
7255
  }
7249
7256
  ),
7250
- /* @__PURE__ */ jsx96("div", { className: styles_default7.content, children })
7257
+ /* @__PURE__ */ jsx96("div", { className: "flex h-full items-center", children })
7251
7258
  ]
7252
7259
  }
7253
7260
  );
7254
7261
  }
7255
7262
  SelectorButton.displayName = "SelectorButton";
7256
7263
 
7257
- // src/selectors/styles.module.css
7258
- var styles_default8 = {};
7259
-
7260
7264
  // src/selectors/Selectors.tsx
7261
7265
  import { Fragment as Fragment9, jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
7262
7266
  var getValueArray = (value) => {
@@ -7316,15 +7320,15 @@ function SelectorsInternal({
7316
7320
  onAnySelectorActive?.(isAnyActive);
7317
7321
  }, [isAnyActive, onAnySelectorActive]);
7318
7322
  return /* @__PURE__ */ jsxs64(Fragment9, { children: [
7319
- label && /* @__PURE__ */ jsx97("div", { className: styles_default8.labelWrapper, children: /* @__PURE__ */ jsx97("div", { className: cn(styles_default8.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 }) }),
7320
7324
  /* @__PURE__ */ jsx97(
7321
7325
  "div",
7322
7326
  {
7323
7327
  ref,
7324
- className: cn(className, {
7325
- [styles_default8.selectorsWrapperTab]: variant === "TAB",
7326
- [styles_default8.selectorsWrapperDefault]: variant !== "TAB"
7327
- }),
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
+ ),
7328
7332
  children: options.map((option, index) => {
7329
7333
  const isSelected = getValueArray(value).includes(option.value);
7330
7334
  const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
@@ -7341,11 +7345,13 @@ function SelectorsInternal({
7341
7345
  disabled: isDisabled,
7342
7346
  onClick: (event) => onClick?.(event, option),
7343
7347
  onChange: handleChange(option),
7344
- className: variant === "TAB" ? cn(styles_default8.selectorButton, {
7345
- [styles_default8.active]: isSelected,
7346
- [styles_default8.readOnly]: isReadOnly,
7347
- [styles_default8.sizeSm]: size === "sm"
7348
- }) : "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",
7349
7355
  children: getSelectorContent(option.label, isDisabled, isReadOnly, isSelected)
7350
7356
  },
7351
7357
  `${option.value}-${index}`
@@ -8707,11 +8713,6 @@ function TablePlaceholder({
8707
8713
 
8708
8714
  // src/task-card/TaskCard.tsx
8709
8715
  import { ArrowRight } from "lucide-react";
8710
-
8711
- // src/task-card/TaskCard.module.css
8712
- var TaskCard_default = {};
8713
-
8714
- // src/task-card/TaskCard.tsx
8715
8716
  import { jsx as jsx114, jsxs as jsxs75 } from "react/jsx-runtime";
8716
8717
  function TaskCard({
8717
8718
  title,
@@ -8727,27 +8728,40 @@ function TaskCard({
8727
8728
  "div",
8728
8729
  {
8729
8730
  className: cn(
8730
- TaskCard_default.TaskCard,
8731
- TaskCard_default[`TaskCard--${eventType}`],
8732
- onClick && TaskCard_default["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",
8733
8737
  className
8734
8738
  ),
8735
8739
  onClick,
8736
8740
  role: onClick ? "button" : void 0,
8737
8741
  tabIndex: onClick ? 0 : void 0,
8738
8742
  children: [
8739
- /* @__PURE__ */ jsx114("div", { className: TaskCard_default.TaskCard__indicator }),
8740
- /* @__PURE__ */ jsxs75("div", { className: TaskCard_default.TaskCard__content, children: [
8741
- /* @__PURE__ */ jsx114("h4", { className: TaskCard_default.TaskCard__title, children: title }),
8742
- /* @__PURE__ */ jsx114("p", { className: TaskCard_default.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 })
8743
8756
  ] }),
8744
- shouldShowActions && /* @__PURE__ */ jsxs75("div", { className: TaskCard_default.TaskCard__actions, children: [
8757
+ shouldShowActions && /* @__PURE__ */ jsxs75("div", { className: "flex shrink-0 items-center gap-1", children: [
8745
8758
  shouldShowCount && /* @__PURE__ */ jsx114(
8746
8759
  "div",
8747
8760
  {
8748
8761
  className: cn(
8749
- TaskCard_default.TaskCard__count,
8750
- TaskCard_default[`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"
8751
8765
  ),
8752
8766
  children: count
8753
8767
  }
@@ -8755,7 +8769,7 @@ function TaskCard({
8755
8769
  onClick && /* @__PURE__ */ jsx114(
8756
8770
  "button",
8757
8771
  {
8758
- className: TaskCard_default.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",
8759
8773
  onClick: (event) => {
8760
8774
  event.stopPropagation();
8761
8775
  onClick?.();
@@ -9026,11 +9040,25 @@ var FieldError = ({ id, children }) => /* @__PURE__ */ jsx118("p", { id, classNa
9026
9040
  import { jsx as jsx119 } from "react/jsx-runtime";
9027
9041
  var SupportingText = ({ id, children }) => /* @__PURE__ */ jsx119("p", { id, className: "mt-1 text-xs italic text-chekin-gray-2", children });
9028
9042
 
9029
- // src/text-field/textField.module.css
9030
- var textField_default = {};
9031
-
9032
9043
  // src/text-field/TextField.tsx
9033
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
+ ];
9034
9062
  var inputVariants = cva14(
9035
9063
  [
9036
9064
  "flex w-full border text-base font-medium leading-5 outline-none transition-colors",
@@ -9137,7 +9165,11 @@ var TextField = React29.forwardRef(
9137
9165
  return /* @__PURE__ */ jsxs78(
9138
9166
  "div",
9139
9167
  {
9140
- className: cn("relative flex w-full flex-col", textField_default.root, wrapperClassName),
9168
+ className: cn(
9169
+ "relative flex w-full flex-col",
9170
+ textFieldRootClasses,
9171
+ wrapperClassName
9172
+ ),
9141
9173
  children: [
9142
9174
  /* @__PURE__ */ jsxs78("div", { className: "relative", children: [
9143
9175
  /* @__PURE__ */ jsx120(
@@ -9176,7 +9208,7 @@ var TextField = React29.forwardRef(
9176
9208
  }
9177
9209
  );
9178
9210
  }
9179
- return /* @__PURE__ */ jsxs78("div", { className: cn("flex w-full flex-col", textField_default.root, wrapperClassName), children: [
9211
+ return /* @__PURE__ */ jsxs78("div", { className: cn("flex w-full flex-col", textFieldRootClasses, wrapperClassName), children: [
9180
9212
  label && /* @__PURE__ */ jsxs78("div", { className: "mb-1 flex items-center gap-1", children: [
9181
9213
  /* @__PURE__ */ jsx120(
9182
9214
  LabelPrimitive2.Root,
@@ -9218,16 +9250,11 @@ TextField.displayName = "TextField";
9218
9250
 
9219
9251
  // src/textarea/Textarea.tsx
9220
9252
  import { forwardRef as forwardRef47, useId as useId10 } from "react";
9221
-
9222
- // src/textarea/styles.module.css
9223
- var styles_default9 = {};
9224
-
9225
- // src/textarea/Textarea.tsx
9226
9253
  import { jsx as jsx121, jsxs as jsxs79 } from "react/jsx-runtime";
9227
9254
  var Textarea = forwardRef47(
9228
9255
  ({ className, textareaClassName, label, disabled, name, invalid, ...textareaProps }, ref) => {
9229
9256
  const inputId = useId10();
9230
- return /* @__PURE__ */ jsxs79("div", { className: cn(styles_default9.container, className), children: [
9257
+ return /* @__PURE__ */ jsxs79("div", { className: cn("relative", className), children: [
9231
9258
  /* @__PURE__ */ jsx121(
9232
9259
  "textarea",
9233
9260
  {
@@ -9235,10 +9262,12 @@ var Textarea = forwardRef47(
9235
9262
  id: inputId,
9236
9263
  name,
9237
9264
  disabled,
9238
- className: cn(styles_default9.textarea, textareaClassName, {
9239
- [styles_default9.textareaError]: invalid,
9240
- [styles_default9.textareaDisabled]: disabled
9241
- }),
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
+ ),
9242
9271
  ...textareaProps
9243
9272
  }
9244
9273
  ),
@@ -9246,10 +9275,11 @@ var Textarea = forwardRef47(
9246
9275
  "label",
9247
9276
  {
9248
9277
  htmlFor: inputId,
9249
- className: cn(styles_default9.label, {
9250
- [styles_default9.labelError]: invalid,
9251
- [styles_default9.labelDisabled]: disabled
9252
- }),
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
+ ),
9253
9283
  children: label
9254
9284
  }
9255
9285
  )
@@ -9265,9 +9295,6 @@ var LABEL_PLACEMENT = /* @__PURE__ */ ((LABEL_PLACEMENT2) => {
9265
9295
  return LABEL_PLACEMENT2;
9266
9296
  })(LABEL_PLACEMENT || {});
9267
9297
 
9268
- // src/three-dots-loader/styles.module.css
9269
- var styles_default10 = {};
9270
-
9271
9298
  // src/three-dots-loader/ThreeDotsLoader.tsx
9272
9299
  import { Fragment as Fragment10, jsx as jsx122, jsxs as jsxs80 } from "react/jsx-runtime";
9273
9300
  function Dots({
@@ -9275,11 +9302,37 @@ function Dots({
9275
9302
  width,
9276
9303
  color
9277
9304
  }) {
9278
- return /* @__PURE__ */ jsxs80("span", { className: styles_default10.dots, style: { height, width }, "aria-hidden": "true", children: [
9279
- /* @__PURE__ */ jsx122("span", { className: styles_default10.dot, style: { backgroundColor: color } }),
9280
- /* @__PURE__ */ jsx122("span", { className: styles_default10.dot, style: { backgroundColor: color } }),
9281
- /* @__PURE__ */ jsx122("span", { className: styles_default10.dot, style: { backgroundColor: color } })
9282
- ] });
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
+ );
9283
9336
  }
9284
9337
  function ThreeDotsLoader({
9285
9338
  height = 30,
@@ -9291,13 +9344,22 @@ function ThreeDotsLoader({
9291
9344
  }) {
9292
9345
  const dots = /* @__PURE__ */ jsx122(Dots, { color, height, width });
9293
9346
  if (label) {
9294
- return /* @__PURE__ */ jsx122("div", { className: cn(styles_default10.Loader, className), children: labelPlacement === 0 /* right */ ? /* @__PURE__ */ jsxs80(Fragment10, { children: [
9295
- dots,
9296
- /* @__PURE__ */ jsx122("div", { children: label })
9297
- ] }) : /* @__PURE__ */ jsxs80(Fragment10, { children: [
9298
- /* @__PURE__ */ jsx122("div", { children: label }),
9299
- dots
9300
- ] }) });
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
+ );
9301
9363
  }
9302
9364
  return /* @__PURE__ */ jsx122("div", { className, children: dots });
9303
9365
  }