@eqtylab/equality 2.0.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,3 +43,66 @@
43
43
  --badge-bg-color: var(--color-badge-background-compliant);
44
44
  --badge-fg-color: var(--color-badge-text-compliant);
45
45
  }
46
+ .split-badge {
47
+ display: inline-flex;
48
+ width: max-content;
49
+ align-items: center;
50
+ font-size: 0.75rem;
51
+ line-height: var(--tw-leading, calc(1 / 0.75));
52
+ --tw-font-weight: 500;
53
+ font-weight: 500;
54
+ --tw-numeric-spacing: tabular-nums;
55
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
56
+ }
57
+ .split-badge__status {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ gap: calc(0.25rem * 1);
61
+ min-height: calc(0.25rem * 5);
62
+ padding-inline: calc(0.25rem * 2);
63
+ padding-block: calc(0.25rem * 0.5);
64
+ border-top-left-radius: calc(infinity * 1px);
65
+ border-bottom-left-radius: calc(infinity * 1px);
66
+ border: 1px solid transparent;
67
+ background-color: var(--badge-bg-color);
68
+ color: var(--badge-fg-color);
69
+ }
70
+ .split-badge__sub-status {
71
+ display: inline-flex;
72
+ align-items: center;
73
+ min-height: calc(0.25rem * 5);
74
+ padding-inline: calc(0.25rem * 2);
75
+ padding-block: calc(0.25rem * 0.5);
76
+ border-top-right-radius: calc(infinity * 1px);
77
+ border-bottom-right-radius: calc(infinity * 1px);
78
+ margin-left: -1px;
79
+ border: 1px solid var(--badge-bg-color);
80
+ color: var(--badge-fg-color);
81
+ }
82
+ .split-badge .icon {
83
+ color: inherit;
84
+ }
85
+ @property --tw-font-weight {
86
+ syntax: "*";
87
+ inherits: false;
88
+ }
89
+ @property --tw-ordinal {
90
+ syntax: "*";
91
+ inherits: false;
92
+ }
93
+ @property --tw-slashed-zero {
94
+ syntax: "*";
95
+ inherits: false;
96
+ }
97
+ @property --tw-numeric-figure {
98
+ syntax: "*";
99
+ inherits: false;
100
+ }
101
+ @property --tw-numeric-spacing {
102
+ syntax: "*";
103
+ inherits: false;
104
+ }
105
+ @property --tw-numeric-fraction {
106
+ syntax: "*";
107
+ inherits: false;
108
+ }
@@ -0,0 +1,110 @@
1
+ /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
+ .format-date {
3
+ --tw-numeric-spacing: tabular-nums;
4
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
5
+ }
6
+ .format-date--interactive {
7
+ border-radius: 0.25rem;
8
+ --tw-ring-offset-color: var(--color-background);
9
+ &:focus-visible {
10
+ --tw-ring-color: var(--color-focus-ring);
11
+ }
12
+ &:focus-visible {
13
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
14
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
15
+ }
16
+ &:focus-visible {
17
+ --tw-ring-offset-width: 2px;
18
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
19
+ }
20
+ &:focus-visible {
21
+ --tw-outline-style: none;
22
+ outline-style: none;
23
+ }
24
+ cursor: default;
25
+ }
26
+ @property --tw-ordinal {
27
+ syntax: "*";
28
+ inherits: false;
29
+ }
30
+ @property --tw-slashed-zero {
31
+ syntax: "*";
32
+ inherits: false;
33
+ }
34
+ @property --tw-numeric-figure {
35
+ syntax: "*";
36
+ inherits: false;
37
+ }
38
+ @property --tw-numeric-spacing {
39
+ syntax: "*";
40
+ inherits: false;
41
+ }
42
+ @property --tw-numeric-fraction {
43
+ syntax: "*";
44
+ inherits: false;
45
+ }
46
+ @property --tw-shadow {
47
+ syntax: "*";
48
+ inherits: false;
49
+ initial-value: 0 0 #0000;
50
+ }
51
+ @property --tw-shadow-color {
52
+ syntax: "*";
53
+ inherits: false;
54
+ }
55
+ @property --tw-shadow-alpha {
56
+ syntax: "<percentage>";
57
+ inherits: false;
58
+ initial-value: 100%;
59
+ }
60
+ @property --tw-inset-shadow {
61
+ syntax: "*";
62
+ inherits: false;
63
+ initial-value: 0 0 #0000;
64
+ }
65
+ @property --tw-inset-shadow-color {
66
+ syntax: "*";
67
+ inherits: false;
68
+ }
69
+ @property --tw-inset-shadow-alpha {
70
+ syntax: "<percentage>";
71
+ inherits: false;
72
+ initial-value: 100%;
73
+ }
74
+ @property --tw-ring-color {
75
+ syntax: "*";
76
+ inherits: false;
77
+ }
78
+ @property --tw-ring-shadow {
79
+ syntax: "*";
80
+ inherits: false;
81
+ initial-value: 0 0 #0000;
82
+ }
83
+ @property --tw-inset-ring-color {
84
+ syntax: "*";
85
+ inherits: false;
86
+ }
87
+ @property --tw-inset-ring-shadow {
88
+ syntax: "*";
89
+ inherits: false;
90
+ initial-value: 0 0 #0000;
91
+ }
92
+ @property --tw-ring-inset {
93
+ syntax: "*";
94
+ inherits: false;
95
+ }
96
+ @property --tw-ring-offset-width {
97
+ syntax: "<length>";
98
+ inherits: false;
99
+ initial-value: 0px;
100
+ }
101
+ @property --tw-ring-offset-color {
102
+ syntax: "*";
103
+ inherits: false;
104
+ initial-value: #fff;
105
+ }
106
+ @property --tw-ring-offset-shadow {
107
+ syntax: "*";
108
+ inherits: false;
109
+ initial-value: 0 0 #0000;
110
+ }
package/dist/index.cjs CHANGED
@@ -85,13 +85,14 @@ var TabsPrimitive = require('@radix-ui/react-tabs');
85
85
  var styles53 = require('./tabs-components.module.module.css.module.css');
86
86
  var styles54 = require('./tabs.module.module.css.module.css');
87
87
  var styles55 = require('./textarea.module.module.css.module.css');
88
+ var styles56 = require('./format-date.module.module.css.module.css');
88
89
  var ToastPrimitives = require('@radix-ui/react-toast');
89
- var styles56 = require('./toast-components.module.module.css.module.css');
90
- var styles57 = require('./toast.module.module.css.module.css');
91
- var styles58 = require('./truncated-description.module.module.css.module.css');
92
- var styles59 = require('./heading.module.module.css.module.css');
93
- var styles60 = require('./control-status-badge.module.module.css.module.css');
94
- var styles61 = require('./theme.module.module.css.module.css');
90
+ var styles57 = require('./toast-components.module.module.css.module.css');
91
+ var styles58 = require('./toast.module.module.css.module.css');
92
+ var styles59 = require('./truncated-description.module.module.css.module.css');
93
+ var styles60 = require('./heading.module.module.css.module.css');
94
+ var styles61 = require('./control-status-badge.module.module.css.module.css');
95
+ var styles62 = require('./theme.module.module.css.module.css');
95
96
 
96
97
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
97
98
 
@@ -188,13 +189,14 @@ var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
188
189
  var styles53__default = /*#__PURE__*/_interopDefault(styles53);
189
190
  var styles54__default = /*#__PURE__*/_interopDefault(styles54);
190
191
  var styles55__default = /*#__PURE__*/_interopDefault(styles55);
191
- var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
192
192
  var styles56__default = /*#__PURE__*/_interopDefault(styles56);
193
+ var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
193
194
  var styles57__default = /*#__PURE__*/_interopDefault(styles57);
194
195
  var styles58__default = /*#__PURE__*/_interopDefault(styles58);
195
196
  var styles59__default = /*#__PURE__*/_interopDefault(styles59);
196
197
  var styles60__default = /*#__PURE__*/_interopDefault(styles60);
197
198
  var styles61__default = /*#__PURE__*/_interopDefault(styles61);
199
+ var styles62__default = /*#__PURE__*/_interopDefault(styles62);
198
200
 
199
201
  // src/components/alert/alert.tsx
200
202
  var ELEVATION = {
@@ -203,12 +205,12 @@ var ELEVATION = {
203
205
  RAISED: "raised",
204
206
  OVERLAY: "overlay"
205
207
  };
206
- var generateElevationVariants = (styles62, baseClassName, defaultElevation) => {
208
+ var generateElevationVariants = (styles63, baseClassName, defaultElevation) => {
207
209
  const classNames = {};
208
210
  Object.values(ELEVATION).forEach((elevation) => {
209
- classNames[elevation] = styles62[`${baseClassName}--${elevation}`];
211
+ classNames[elevation] = styles63[`${baseClassName}--${elevation}`];
210
212
  });
211
- const variants = classVarianceAuthority.cva(styles62[baseClassName], {
213
+ const variants = classVarianceAuthority.cva(styles63[baseClassName], {
212
214
  variants: {
213
215
  elevation: classNames
214
216
  },
@@ -3266,24 +3268,116 @@ var Textarea = React16__namespace.forwardRef(
3266
3268
  }
3267
3269
  );
3268
3270
  Textarea.displayName = "Textarea";
3271
+ var DEFAULT_LOCALE = "en-US";
3272
+ var DEFAULT_ABSOLUTE_OPTIONS = {
3273
+ year: "numeric",
3274
+ month: "short",
3275
+ day: "numeric",
3276
+ hour: "2-digit",
3277
+ minute: "2-digit",
3278
+ second: "2-digit",
3279
+ hour12: false,
3280
+ timeZoneName: "short"
3281
+ };
3282
+ var RELATIVE_DIVISIONS = [
3283
+ { amount: 60, unit: "second" },
3284
+ { amount: 60, unit: "minute" },
3285
+ { amount: 24, unit: "hour" },
3286
+ { amount: 7, unit: "day" },
3287
+ { amount: 4.34524, unit: "week" },
3288
+ { amount: 12, unit: "month" },
3289
+ { amount: Number.POSITIVE_INFINITY, unit: "year" }
3290
+ ];
3291
+ var LIVE_INTERVAL_MS = 3e4;
3292
+ function toDate(value) {
3293
+ const date = value instanceof Date ? value : new Date(value);
3294
+ return Number.isNaN(date.getTime()) ? null : date;
3295
+ }
3296
+ function formatAbsolute(date, timeZone, options, locale) {
3297
+ return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
3298
+ }
3299
+ function formatRelative(date, now, locale) {
3300
+ let duration = (date.getTime() - now.getTime()) / 1e3;
3301
+ if (Math.abs(duration) < 45) return "Just now";
3302
+ const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
3303
+ for (const division of RELATIVE_DIVISIONS) {
3304
+ if (Math.abs(duration) < division.amount) {
3305
+ return rtf.format(Math.round(duration), division.unit);
3306
+ }
3307
+ duration /= division.amount;
3308
+ }
3309
+ return "Just now";
3310
+ }
3311
+ function FormatDate({
3312
+ date,
3313
+ displayAs = "absolute",
3314
+ timeZone = "UTC",
3315
+ locale = DEFAULT_LOCALE,
3316
+ tooltip = true,
3317
+ live = true,
3318
+ absoluteOptions,
3319
+ className,
3320
+ ...props
3321
+ }) {
3322
+ const parsed = React16__namespace.useMemo(() => toDate(date), [date]);
3323
+ const [now, setNow] = React16__namespace.useState(() => /* @__PURE__ */ new Date());
3324
+ const [mounted, setMounted] = React16__namespace.useState(false);
3325
+ const isRelative = displayAs === "relative";
3326
+ React16__namespace.useEffect(() => setMounted(true), []);
3327
+ React16__namespace.useEffect(() => {
3328
+ if (!isRelative || !live) return;
3329
+ const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
3330
+ return () => clearInterval(id);
3331
+ }, [isRelative, live]);
3332
+ if (!parsed) {
3333
+ return /* @__PURE__ */ jsxRuntime.jsx("time", { className: cn(styles56__default.default["format-date"], className), ...props, children: "Invalid date" });
3334
+ }
3335
+ const machineValue = parsed.toISOString();
3336
+ const absolute = formatAbsolute(
3337
+ parsed,
3338
+ timeZone,
3339
+ absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
3340
+ locale
3341
+ );
3342
+ if (!isRelative) {
3343
+ return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles56__default.default["format-date"], className), ...props, children: absolute });
3344
+ }
3345
+ const relative = mounted ? formatRelative(parsed, now, locale) : absolute;
3346
+ if (!tooltip) {
3347
+ return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles56__default.default["format-date"], className), ...props, children: relative });
3348
+ }
3349
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
3350
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
3351
+ "time",
3352
+ {
3353
+ dateTime: machineValue,
3354
+ tabIndex: 0,
3355
+ className: cn(styles56__default.default["format-date"], styles56__default.default["format-date--interactive"], className),
3356
+ ...props,
3357
+ children: relative
3358
+ }
3359
+ ) }),
3360
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: absolute })
3361
+ ] }) });
3362
+ }
3269
3363
  var XIcon2 = LucideIcons.X;
3270
3364
  var ToastProvider = ToastPrimitives__namespace.Provider;
3271
3365
  var ToastViewport = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3272
3366
  ToastPrimitives__namespace.Viewport,
3273
3367
  {
3274
3368
  ref,
3275
- className: cn(styles56__default.default["toast-viewport"], className),
3369
+ className: cn(styles57__default.default["toast-viewport"], className),
3276
3370
  ...props
3277
3371
  }
3278
3372
  ));
3279
3373
  ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
3280
- var toastVariants = classVarianceAuthority.cva(styles56__default.default["toast"], {
3374
+ var toastVariants = classVarianceAuthority.cva(styles57__default.default["toast"], {
3281
3375
  variants: {
3282
3376
  variant: {
3283
- default: styles56__default.default["toast--default"],
3284
- danger: styles56__default.default["toast--danger"],
3285
- warning: styles56__default.default["toast--warning"],
3286
- success: styles56__default.default["toast--success"]
3377
+ default: styles57__default.default["toast--default"],
3378
+ danger: styles57__default.default["toast--danger"],
3379
+ warning: styles57__default.default["toast--warning"],
3380
+ success: styles57__default.default["toast--success"]
3287
3381
  }
3288
3382
  },
3289
3383
  defaultVariants: {
@@ -3301,17 +3395,17 @@ var ToastContainer = React16__namespace.forwardRef(({ className, variant, ...pro
3301
3395
  );
3302
3396
  });
3303
3397
  ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
3304
- var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles56__default.default["toast-action"], className), ...props }));
3398
+ var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles57__default.default["toast-action"], className), ...props }));
3305
3399
  ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
3306
- var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(styles56__default.default["toast-close"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles56__default.default["toast-close-icon"] }) }));
3400
+ var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(styles57__default.default["toast-close"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles57__default.default["toast-close-icon"] }) }));
3307
3401
  ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
3308
- var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles56__default.default["toast-title"], className), ...props }));
3402
+ var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles57__default.default["toast-title"], className), ...props }));
3309
3403
  ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
3310
3404
  var ToastDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3311
3405
  ToastPrimitives__namespace.Description,
3312
3406
  {
3313
3407
  ref,
3314
- className: cn(styles56__default.default["toast-description"], className),
3408
+ className: cn(styles57__default.default["toast-description"], className),
3315
3409
  ...props
3316
3410
  }
3317
3411
  ));
@@ -3446,14 +3540,14 @@ var Toast = ({ toast: toast2 }) => {
3446
3540
  };
3447
3541
  const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
3448
3542
  return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
3449
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles57__default.default["toast-copy"], children: [
3450
- title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles57__default.default["toast-title-container"], children: [
3543
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles58__default.default["toast-copy"], children: [
3544
+ title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles58__default.default["toast-title-container"], children: [
3451
3545
  displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
3452
3546
  /* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
3453
3547
  ] }),
3454
3548
  description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
3455
3549
  ] }),
3456
- action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles57__default.default["toast-action"], children: action }),
3550
+ action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles58__default.default["toast-action"], children: action }),
3457
3551
  /* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
3458
3552
  ] });
3459
3553
  };
@@ -3483,7 +3577,7 @@ var TruncatedDescription = ({
3483
3577
  e.stopPropagation();
3484
3578
  setExpanded(!expanded);
3485
3579
  };
3486
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles58__default.default["truncated-description"], className), children: [
3580
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles59__default.default["truncated-description"], className), children: [
3487
3581
  /* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
3488
3582
  isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
3489
3583
  ] });
@@ -3494,12 +3588,12 @@ var removeHtmlTags = (html) => {
3494
3588
  var Heading = React16.forwardRef(
3495
3589
  ({ className, as, displayAs, children, ...props }, ref) => {
3496
3590
  const displayClasses = {
3497
- h1: styles59__default.default["h1"],
3498
- h2: styles59__default.default["h2"],
3499
- h3: styles59__default.default["h3"],
3500
- h4: styles59__default.default["h4"],
3501
- h5: styles59__default.default["h5"],
3502
- h6: styles59__default.default["h6"]
3591
+ h1: styles60__default.default["h1"],
3592
+ h2: styles60__default.default["h2"],
3593
+ h3: styles60__default.default["h3"],
3594
+ h4: styles60__default.default["h4"],
3595
+ h5: styles60__default.default["h5"],
3596
+ h6: styles60__default.default["h6"]
3503
3597
  };
3504
3598
  const displayClass = displayClasses[displayAs] || displayClasses[as];
3505
3599
  const HeadingTag = as;
@@ -3509,6 +3603,18 @@ var Heading = React16.forwardRef(
3509
3603
  Heading.displayName = "Heading";
3510
3604
  var ControlStatusBadge = ({ status, display = "both" }) => {
3511
3605
  const config = getStatusConfig(status);
3606
+ if (config.subLabel) {
3607
+ if (display === "icon-only") {
3608
+ return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
3609
+ }
3610
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles61__default.default["split-badge"], config.className), children: [
3611
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles61__default.default["split-badge__status"], children: [
3612
+ display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className: styles61__default.default["icon"] }),
3613
+ config.label
3614
+ ] }),
3615
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles61__default.default["split-badge__sub-status"], children: config.subLabel })
3616
+ ] });
3617
+ }
3512
3618
  return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
3513
3619
  };
3514
3620
  var getStatusConfig = (status) => {
@@ -3516,79 +3622,76 @@ var getStatusConfig = (status) => {
3516
3622
  case "in-progress":
3517
3623
  return {
3518
3624
  icon: "Clock",
3519
- className: styles60__default.default["badge--in-progress"],
3625
+ className: styles61__default.default["badge--in-progress"],
3520
3626
  label: "In Progress"
3521
3627
  };
3522
3628
  case "not-started":
3523
3629
  return {
3524
- icon: "Circle",
3525
- className: styles60__default.default["badge--not-started"],
3630
+ icon: "CircleDashed",
3631
+ className: styles61__default.default["badge--not-started"],
3526
3632
  label: "Not Started"
3527
3633
  };
3528
3634
  case "ready-for-review":
3529
3635
  return {
3530
3636
  icon: "ClipboardCheck",
3531
- className: styles60__default.default["badge--ready-for-review"],
3637
+ className: styles61__default.default["badge--ready-for-review"],
3532
3638
  label: "Ready for Review"
3533
3639
  };
3534
3640
  case "in-review":
3535
3641
  return {
3536
3642
  icon: "Eye",
3537
- className: styles60__default.default["badge--in-review"],
3643
+ className: styles61__default.default["badge--in-review"],
3538
3644
  label: "In Review"
3539
3645
  };
3540
3646
  case "comment":
3541
3647
  return {
3542
- icon: "MessageCircle",
3543
- className: styles60__default.default["badge--comment"],
3544
- label: "Comment"
3648
+ icon: "Eye",
3649
+ className: styles61__default.default["badge--comment"],
3650
+ label: "In Review",
3651
+ subLabel: "General"
3545
3652
  };
3546
3653
  case "not-applicable":
3547
3654
  return {
3548
3655
  icon: "MinusCircle",
3549
- className: styles60__default.default["badge--not-applicable"],
3656
+ className: styles61__default.default["badge--not-applicable"],
3550
3657
  label: "Not Applicable"
3551
3658
  };
3552
3659
  case "accepted":
3553
3660
  return {
3554
- icon: /* @__PURE__ */ jsxRuntime.jsx(MessageCircleCheckIcon, {}),
3555
- className: styles60__default.default["badge--accepted"],
3556
- label: "Accepted"
3661
+ icon: "Eye",
3662
+ className: styles61__default.default["badge--accepted"],
3663
+ label: "In Review",
3664
+ subLabel: "Accepted"
3557
3665
  };
3558
3666
  case "questioned":
3559
3667
  return {
3560
- icon: "MessageCircleQuestion",
3561
- className: styles60__default.default["badge--question"],
3562
- label: "Questioned"
3563
- };
3564
- case "general":
3565
- return {
3566
- icon: "MessageCircle",
3567
- className: styles60__default.default["badge--comment"],
3568
- label: "General"
3668
+ icon: "Eye",
3669
+ className: styles61__default.default["badge--question"],
3670
+ label: "In Review",
3671
+ subLabel: "Questioned"
3569
3672
  };
3570
3673
  case "compliant":
3571
3674
  return {
3572
- icon: "Check",
3573
- className: styles60__default.default["badge--compliant"],
3675
+ icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
3676
+ className: styles61__default.default["badge--compliant"],
3574
3677
  label: "Compliant"
3575
3678
  };
3576
3679
  case "non-compliant":
3577
3680
  return {
3578
- icon: "TriangleAlert",
3579
- className: styles60__default.default["badge--non-compliant"],
3681
+ icon: "X",
3682
+ className: styles61__default.default["badge--non-compliant"],
3580
3683
  label: "Non-compliant"
3581
3684
  };
3582
3685
  default:
3583
3686
  return {
3584
- icon: "Circle",
3585
- className: styles60__default.default["badge--not-started"],
3687
+ icon: "CircleDashed",
3688
+ className: styles61__default.default["badge--not-started"],
3586
3689
  label: status
3587
3690
  };
3588
3691
  }
3589
3692
  };
3590
- var MessageCircleCheckIcon = ({ className }) => {
3591
- return /* @__PURE__ */ jsxRuntime.jsxs(
3693
+ var CircleCheckFillIcon = ({ className }) => {
3694
+ return /* @__PURE__ */ jsxRuntime.jsx(
3592
3695
  "svg",
3593
3696
  {
3594
3697
  className,
@@ -3596,15 +3699,8 @@ var MessageCircleCheckIcon = ({ className }) => {
3596
3699
  width: "12",
3597
3700
  height: "12",
3598
3701
  viewBox: "0 0 24 24",
3599
- fill: "none",
3600
- stroke: "currentColor",
3601
- "stroke-width": "2",
3602
- "stroke-linecap": "round",
3603
- "stroke-linejoin": "round",
3604
- children: [
3605
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" }),
3606
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 12 2 2 4-4" })
3607
- ]
3702
+ fill: "currentColor",
3703
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM15.707 9.29297C15.3165 8.90245 14.6835 8.90244 14.293 9.29297L11 12.5859L9.70703 11.293C9.31651 10.9024 8.68349 10.9024 8.29297 11.293C7.90244 11.6835 7.90245 12.3165 8.29297 12.707L10.293 14.707C10.6835 15.0976 11.3165 15.0976 11.707 14.707L15.707 10.707C16.0976 10.3165 16.0976 9.68349 15.707 9.29297Z" })
3608
3704
  }
3609
3705
  );
3610
3706
  };
@@ -3612,7 +3708,7 @@ var Portal8 = () => {
3612
3708
  return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "equality-theme-provider-root-portal" });
3613
3709
  };
3614
3710
  var ThemeProvider = ({ customVars, children }) => {
3615
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className: styles61__default.default.root, style: customVars, children: [
3711
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className: styles62__default.default.root, style: customVars, children: [
3616
3712
  children,
3617
3713
  /* @__PURE__ */ jsxRuntime.jsx(Portal8, {})
3618
3714
  ] });
@@ -3709,6 +3805,7 @@ exports.FormField = FormField;
3709
3805
  exports.FormItem = FormItem;
3710
3806
  exports.FormLabel = FormLabel;
3711
3807
  exports.FormMessage = FormMessage;
3808
+ exports.FormatDate = FormatDate;
3712
3809
  exports.Heading = Heading;
3713
3810
  exports.Icon = Icon;
3714
3811
  exports.IconButton = IconButton;