@nearform/quantum 1.4.5 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colors_default
3
- } from "./chunk-KGI2Q7KG.mjs";
3
+ } from "./chunk-RRXNHXUN.mjs";
4
4
  import {
5
5
  __export,
6
6
  __objRest,
@@ -62,6 +62,8 @@ __export(index_exports, {
62
62
  SelectSeparator: () => SelectSeparator,
63
63
  SelectTrigger: () => SelectTrigger,
64
64
  SelectValue: () => SelectValue,
65
+ Step: () => Step,
66
+ StepsIndicator: () => StepsIndicator,
65
67
  Switch: () => Switch,
66
68
  Table: () => Table,
67
69
  TableBody: () => TableBody,
@@ -178,7 +180,8 @@ var AccordionTrigger = React.forwardRef((_a, ref) => {
178
180
  AccordionPrimitive.Trigger,
179
181
  __spreadProps(__spreadValues({
180
182
  className: cn(
181
- "px-4 py-4 dark:bg-grey-900 dark:text-white group flex flex-1 cursor-default items-center justify-between bg-white leading-none",
183
+ "px-4 py-4 dark:bg-grey-900 dark:text-white group flex flex-1 cursor-pointer items-center justify-between bg-white leading-none",
184
+ "focus-visible:outline-hidden focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen-10",
182
185
  className
183
186
  )
184
187
  }, props), {
@@ -216,6 +219,7 @@ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
216
219
 
217
220
  // src/components/Button/index.tsx
218
221
  import * as React2 from "react";
222
+ import { Slot, Slottable } from "@radix-ui/react-slot";
219
223
  import { cva as cva2 } from "class-variance-authority";
220
224
  import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
221
225
  var buttonVariants = cva2(
@@ -348,6 +352,7 @@ var Button = React2.forwardRef(
348
352
  leftSideClassName,
349
353
  rightSideClassName,
350
354
  disabled = false,
355
+ asChild = false,
351
356
  onClick
352
357
  } = _b, props = __objRest(_b, [
353
358
  "className",
@@ -359,11 +364,13 @@ var Button = React2.forwardRef(
359
364
  "leftSideClassName",
360
365
  "rightSideClassName",
361
366
  "disabled",
367
+ "asChild",
362
368
  "onClick"
363
369
  ]);
364
370
  const sideChildClassed = "inline-flex items-center justify-center text-inherit text-justify";
371
+ const Comp = asChild ? Slot : "button";
365
372
  return /* @__PURE__ */ jsxs2(
366
- "button",
373
+ Comp,
367
374
  __spreadProps(__spreadValues({
368
375
  className: cn(buttonVariants({ variant, size }), className),
369
376
  ref,
@@ -374,7 +381,7 @@ var Button = React2.forwardRef(
374
381
  }, props), {
375
382
  children: [
376
383
  leftSideChild ? /* @__PURE__ */ jsx3("div", { className: cn(sideChildClassed, "mr-3", leftSideClassName), children: leftSideChild }) : /* @__PURE__ */ jsx3(Fragment, {}),
377
- /* @__PURE__ */ jsx3("div", { children }),
384
+ /* @__PURE__ */ jsx3(Slottable, { children: asChild ? children : /* @__PURE__ */ jsx3("div", { children }) }),
378
385
  rightSideChild ? /* @__PURE__ */ jsx3("div", { className: cn(sideChildClassed, "ml-3", rightSideClassName), children: rightSideChild }) : /* @__PURE__ */ jsx3(Fragment, {})
379
386
  ]
380
387
  })
@@ -398,6 +405,10 @@ var buttonGroupVariants = cva3(
398
405
  "[&>*]:justify-center",
399
406
  "[&>*]:px-3",
400
407
  "[&>*:focus]:shadow-none",
408
+ "[&>*]:outline-hidden",
409
+ "[&>*:focus-visible]:outline-2",
410
+ "[&>*:focus-visible]:-outline-offset-2",
411
+ "[&>*:focus-visible]:outline-current",
401
412
  "items-start",
402
413
  "rounded-lg",
403
414
  "overflow-hidden"
@@ -445,10 +456,11 @@ var buttonGroupVariants = cva3(
445
456
  );
446
457
  var ButtonGroup = React3.forwardRef(
447
458
  (_a, ref) => {
448
- var _b = _a, { className, orientation, variant, size } = _b, props = __objRest(_b, ["className", "orientation", "variant", "size"]);
459
+ var _b = _a, { className, orientation, variant, size, role = "group" } = _b, props = __objRest(_b, ["className", "orientation", "variant", "size", "role"]);
449
460
  return /* @__PURE__ */ jsx4(
450
461
  "div",
451
462
  __spreadProps(__spreadValues({
463
+ role,
452
464
  className: cn(
453
465
  buttonGroupVariants({ orientation, variant, size }),
454
466
  className
@@ -634,7 +646,11 @@ var checkboxVariants = cva5([
634
646
  "rounded",
635
647
  "border",
636
648
  "border-border",
637
- "bg-background-alt"
649
+ "bg-background-alt",
650
+ "disabled:cursor-not-allowed",
651
+ "focus-visible:outline-hidden",
652
+ "focus-visible:shadow-brandGreen",
653
+ "dark:focus-visible:shadow-brandGreen-10"
638
654
  ],
639
655
  [
640
656
  "data-[state=checked]:border-border",
@@ -735,34 +751,45 @@ var chipVariants = cva6(
735
751
  );
736
752
  var Chip = React5.forwardRef(
737
753
  (_a, ref) => {
738
- var _b = _a, { variant, size, children, disabled, onClick, active } = _b, props = __objRest(_b, ["variant", "size", "children", "disabled", "onClick", "active"]);
754
+ var _b = _a, { variant, size, children, disabled, onClick, active, type } = _b, props = __objRest(_b, ["variant", "size", "children", "disabled", "onClick", "active", "type"]);
739
755
  return /* @__PURE__ */ jsxs4(
740
756
  "button",
741
757
  __spreadProps(__spreadValues({
758
+ type: type != null ? type : "button",
742
759
  onClick,
743
- "data-active": active,
760
+ "data-active": active || void 0,
761
+ "aria-pressed": active === void 0 ? void 0 : active,
744
762
  className: cn(chipVariants({ variant, size })),
745
763
  disabled,
746
764
  ref
747
765
  }, props), {
748
766
  children: [
749
767
  children,
750
- /* @__PURE__ */ jsx7("div", { className: "flex items-center justify-center w-6 h-6 p-2.5", children: /* @__PURE__ */ jsx7(
751
- assets_exports.BsPlus,
768
+ /* @__PURE__ */ jsx7(
769
+ "div",
752
770
  {
753
- className: cn(size == "lg" ? "h-4 w-4" : "h-3 w-3", [
754
- "stroke-current",
755
- "shrink-0"
756
- ])
771
+ "aria-hidden": "true",
772
+ className: "flex items-center justify-center w-6 h-6 p-2.5",
773
+ children: /* @__PURE__ */ jsx7(
774
+ assets_exports.BsPlus,
775
+ {
776
+ className: cn(size == "lg" ? "h-4 w-4" : "h-3 w-3", [
777
+ "stroke-current",
778
+ "shrink-0"
779
+ ])
780
+ }
781
+ )
757
782
  }
758
- ) })
783
+ )
759
784
  ]
760
785
  })
761
786
  );
762
787
  }
763
788
  );
789
+ Chip.displayName = "Chip";
764
790
 
765
791
  // src/components/ControlLabel/index.tsx
792
+ import * as React7 from "react";
766
793
  import { cva as cva8 } from "class-variance-authority";
767
794
 
768
795
  // src/components/Label/index.tsx
@@ -849,13 +876,22 @@ var ControlLabel = (_a) => {
849
876
  label,
850
877
  position = "right",
851
878
  varticalAlign,
852
- children
879
+ children,
880
+ htmlFor
853
881
  } = _b, labelProps = __objRest(_b, [
854
882
  "label",
855
883
  "position",
856
884
  "varticalAlign",
857
- "children"
885
+ "children",
886
+ "htmlFor"
858
887
  ]);
888
+ var _a2;
889
+ const generatedId = React7.useId();
890
+ const onlyChild = React7.isValidElement(children) ? children : null;
891
+ const childId = onlyChild == null ? void 0 : onlyChild.props.id;
892
+ const controlId = (_a2 = htmlFor != null ? htmlFor : childId) != null ? _a2 : onlyChild ? generatedId : void 0;
893
+ const control = onlyChild && !childId && controlId ? React7.cloneElement(onlyChild, { id: controlId }) : children;
894
+ const labelElement = (align) => /* @__PURE__ */ jsx9(Label, __spreadProps(__spreadValues({}, labelProps), { htmlFor: controlId, align, children: label }));
859
895
  return /* @__PURE__ */ jsxs6(
860
896
  "div",
861
897
  {
@@ -866,20 +902,27 @@ var ControlLabel = (_a) => {
866
902
  "flex space-x-2"
867
903
  ),
868
904
  children: [
869
- position === "left" && /* @__PURE__ */ jsx9(Label, __spreadProps(__spreadValues({}, labelProps), { align: "right", children: label })),
870
- children,
871
- position === "right" && /* @__PURE__ */ jsx9(Label, __spreadProps(__spreadValues({}, labelProps), { align: "left", children: label }))
905
+ position === "left" && labelElement("right"),
906
+ control,
907
+ position === "right" && labelElement("left")
872
908
  ]
873
909
  }
874
910
  );
875
911
  };
876
912
 
877
913
  // src/components/Input/index.tsx
878
- import React7 from "react";
914
+ import React8 from "react";
879
915
  import { cva as cva9 } from "class-variance-authority";
880
916
  import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
881
917
  var leftSideVariants = cva9(["flex", "items-center", "text-inherit"]);
882
- var rightSideVariants = cva9(["flex", "self-center text-inherit"]);
918
+ var rightSideVariants = cva9([
919
+ "flex",
920
+ "self-center text-inherit",
921
+ "rounded-xs",
922
+ "focus-visible:outline-2",
923
+ "focus-visible:outline-offset-2",
924
+ "focus-visible:outline-current"
925
+ ]);
883
926
  var formVariants = cva9(
884
927
  [
885
928
  "flex",
@@ -944,58 +987,121 @@ var inputVariants = cva9(
944
987
  var convertTypeToLeftComponent = (type) => {
945
988
  var _a;
946
989
  const mapping = {
947
- search: /* @__PURE__ */ jsx10(assets_exports.BsSearch, {})
990
+ search: /* @__PURE__ */ jsx10(assets_exports.BsSearch, { "aria-hidden": "true" })
948
991
  };
949
992
  return (_a = mapping[type]) != null ? _a : null;
950
993
  };
951
- var Input = React7.forwardRef(
994
+ var Input = React8.forwardRef(
952
995
  (_a, ref) => {
953
996
  var _b = _a, {
954
997
  type,
998
+ id,
955
999
  className,
956
1000
  formClassName,
957
1001
  leftSideClassName,
958
1002
  variant,
959
1003
  leftSideChild,
960
1004
  rightSideChild,
961
- onClear
1005
+ labelText,
1006
+ helpText,
1007
+ clearLabel = "Clear input",
1008
+ onClear,
1009
+ "aria-describedby": ariaDescribedby
962
1010
  } = _b, props = __objRest(_b, [
963
1011
  "type",
1012
+ "id",
964
1013
  "className",
965
1014
  "formClassName",
966
1015
  "leftSideClassName",
967
1016
  "variant",
968
1017
  "leftSideChild",
969
1018
  "rightSideChild",
970
- "onClear"
1019
+ "labelText",
1020
+ "helpText",
1021
+ "clearLabel",
1022
+ "onClear",
1023
+ "aria-describedby"
971
1024
  ]);
1025
+ const generatedId = React8.useId();
1026
+ const inputId = id != null ? id : generatedId;
1027
+ const helpTextId = `${inputId}-helptext`;
1028
+ const describedBy = [ariaDescribedby, helpText ? helpTextId : void 0].filter(Boolean).join(" ") || void 0;
972
1029
  const leftSideComponent = leftSideChild != null ? leftSideChild : convertTypeToLeftComponent(type);
973
- const rightSideComponent = rightSideChild != null ? rightSideChild : /* @__PURE__ */ jsx10(assets_exports.BsX, { strokeWidth: 0.6 });
974
- return /* @__PURE__ */ jsxs7("label", { className: cn(formVariants({ variant }), formClassName), children: [
1030
+ const rightSideComponent = rightSideChild != null ? rightSideChild : /* @__PURE__ */ jsx10(assets_exports.BsX, { strokeWidth: 0.6, "aria-hidden": "true" });
1031
+ const field = /* @__PURE__ */ jsxs7("div", { className: cn(formVariants({ variant }), formClassName), children: [
975
1032
  leftSideComponent && /* @__PURE__ */ jsx10("div", { className: cn(leftSideVariants(), leftSideClassName), children: leftSideComponent }),
976
1033
  /* @__PURE__ */ jsx10(
977
1034
  "input",
978
1035
  __spreadValues({
1036
+ id: inputId,
979
1037
  type,
980
1038
  className: cn(inputVariants({ variant }), className),
981
- ref
1039
+ ref,
1040
+ "aria-describedby": describedBy
982
1041
  }, props)
983
1042
  ),
984
1043
  /* @__PURE__ */ jsx10("div", { className: "input-right-side" }),
985
- /* @__PURE__ */ jsx10("button", { type: "button", onClick: onClear, className: rightSideVariants(), children: rightSideComponent })
1044
+ /* @__PURE__ */ jsx10(
1045
+ "button",
1046
+ {
1047
+ type: "button",
1048
+ onClick: onClear,
1049
+ "aria-label": clearLabel,
1050
+ className: rightSideVariants(),
1051
+ children: rightSideComponent
1052
+ }
1053
+ )
1054
+ ] });
1055
+ if (!labelText && !helpText) {
1056
+ return field;
1057
+ }
1058
+ return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-3", children: [
1059
+ labelText && /* @__PURE__ */ jsx10(
1060
+ "label",
1061
+ {
1062
+ htmlFor: inputId,
1063
+ className: "text-m text-foreground dark:text-foreground-dark",
1064
+ children: labelText
1065
+ }
1066
+ ),
1067
+ field,
1068
+ helpText && /* @__PURE__ */ jsx10(
1069
+ "span",
1070
+ {
1071
+ id: helpTextId,
1072
+ className: "text-sm text-foreground-muted dark:text-foreground-muted-dark",
1073
+ children: helpText
1074
+ }
1075
+ )
986
1076
  ] });
987
1077
  }
988
1078
  );
1079
+ Input.displayName = "Input";
989
1080
 
990
1081
  // src/components/Link/index.tsx
991
- import React8 from "react";
1082
+ import React9 from "react";
992
1083
  import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
993
- var Link = React8.forwardRef(
1084
+ var Link = React9.forwardRef(
994
1085
  (_a, ref) => {
995
- var _b = _a, { className, onClick, selected = false, children, icon: Icon2 } = _b, props = __objRest(_b, ["className", "onClick", "selected", "children", "icon"]);
1086
+ var _b = _a, {
1087
+ className,
1088
+ onClick,
1089
+ selected = false,
1090
+ children,
1091
+ icon: Icon2,
1092
+ "aria-current": ariaCurrent
1093
+ } = _b, props = __objRest(_b, [
1094
+ "className",
1095
+ "onClick",
1096
+ "selected",
1097
+ "children",
1098
+ "icon",
1099
+ "aria-current"
1100
+ ]);
996
1101
  const selectedClasses = "cursor-default text-white dark:text-foreground-inverse-dark bg-background-inverse dark:bg-background-inverse-dark";
997
1102
  const hoverClasses = "hover:bg-grey-100 hover:underline dark:hover:bg-grey-700";
998
- const focusClasses = "focus:shadow-brandGreen focus:underline focus:bg-grey-100 dark:focus:bg-grey-700 dark:focus:shadow-brandGreen-10";
1103
+ const focusClasses = "focus:shadow-brandGreen focus:underline dark:focus:shadow-brandGreen-10";
1104
+ const unselectedFocusClasses = "focus:bg-grey-100 dark:focus:bg-grey-700";
999
1105
  return /* @__PURE__ */ jsxs8(
1000
1106
  "a",
1001
1107
  __spreadProps(__spreadValues({
@@ -1006,10 +1112,12 @@ var Link = React8.forwardRef(
1006
1112
  "cursor-pointer",
1007
1113
  "outline-hidden",
1008
1114
  "dark:text-white",
1009
- selected ? selectedClasses : `${hoverClasses} ${focusClasses}`,
1115
+ focusClasses,
1116
+ selected ? selectedClasses : `${hoverClasses} ${unselectedFocusClasses}`,
1010
1117
  className
1011
1118
  ),
1012
1119
  ref,
1120
+ "aria-current": ariaCurrent != null ? ariaCurrent : selected ? "page" : void 0,
1013
1121
  onClick: (e) => {
1014
1122
  if (selected) {
1015
1123
  e.preventDefault();
@@ -1019,7 +1127,7 @@ var Link = React8.forwardRef(
1019
1127
  }
1020
1128
  }, props), {
1021
1129
  children: [
1022
- Icon2 ? /* @__PURE__ */ jsx11(Icon2, { className: "mr-1" }) : null,
1130
+ Icon2 ? /* @__PURE__ */ jsx11(Icon2, { className: "mr-1", "aria-hidden": "true" }) : null,
1023
1131
  children
1024
1132
  ]
1025
1133
  })
@@ -1029,7 +1137,7 @@ var Link = React8.forwardRef(
1029
1137
  Link.displayName = "Link";
1030
1138
 
1031
1139
  // src/components/Modal/index.tsx
1032
- import * as React9 from "react";
1140
+ import * as React10 from "react";
1033
1141
  import * as DialogPrimitive from "@radix-ui/react-dialog";
1034
1142
  import { cva as cva10 } from "class-variance-authority";
1035
1143
  import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -1037,7 +1145,7 @@ var Modal = DialogPrimitive.Root;
1037
1145
  var ModalTrigger = DialogPrimitive.Trigger;
1038
1146
  var ModalPortal = DialogPrimitive.Portal;
1039
1147
  var ModalCloseFooter = DialogPrimitive.Close;
1040
- var ModalOverlay = React9.forwardRef((_a, ref) => {
1148
+ var ModalOverlay = React10.forwardRef((_a, ref) => {
1041
1149
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1042
1150
  return /* @__PURE__ */ jsx12(
1043
1151
  DialogPrimitive.Overlay,
@@ -1048,7 +1156,7 @@ var ModalOverlay = React9.forwardRef((_a, ref) => {
1048
1156
  );
1049
1157
  });
1050
1158
  ModalOverlay.displayName = DialogPrimitive.Overlay.displayName;
1051
- var ModalContent = React9.forwardRef((_a, ref) => {
1159
+ var ModalContent = React10.forwardRef((_a, ref) => {
1052
1160
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1053
1161
  return /* @__PURE__ */ jsxs9(ModalPortal, { children: [
1054
1162
  /* @__PURE__ */ jsx12(ModalOverlay, {}),
@@ -1111,7 +1219,7 @@ var ModalFooter = (_a) => {
1111
1219
  return /* @__PURE__ */ jsx12("div", __spreadValues({ className: cn("flex flex-col p-6 pt-0 gap-2.5", className) }, props));
1112
1220
  };
1113
1221
  ModalFooter.displayName = "ModalFooter";
1114
- var ModalTitle = React9.forwardRef((_a, ref) => {
1222
+ var ModalTitle = React10.forwardRef((_a, ref) => {
1115
1223
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1116
1224
  return /* @__PURE__ */ jsx12(
1117
1225
  DialogPrimitive.Title,
@@ -1125,7 +1233,7 @@ var ModalTitle = React9.forwardRef((_a, ref) => {
1125
1233
  );
1126
1234
  });
1127
1235
  ModalTitle.displayName = DialogPrimitive.Title.displayName;
1128
- var ModalClose = React9.forwardRef((_a, ref) => {
1236
+ var ModalClose = React10.forwardRef((_a, ref) => {
1129
1237
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1130
1238
  return /* @__PURE__ */ jsxs9(
1131
1239
  DialogPrimitive.Close,
@@ -1133,16 +1241,26 @@ var ModalClose = React9.forwardRef((_a, ref) => {
1133
1241
  ref,
1134
1242
  className: cn(
1135
1243
  "rounded-xs opacity-70 ring-offset-background transition-opacity disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-muted",
1244
+ "hover:opacity-100 focus-visible:opacity-100",
1245
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",
1136
1246
  className
1137
1247
  )
1138
1248
  }, props), {
1139
1249
  children: [
1140
- /* @__PURE__ */ jsx12("div", { className: "text-foreground dark:text-foreground-inverse", children: /* @__PURE__ */ jsx12(assets_exports.BsXLg, { className: "w-5 h-5", strokeWidth: 0.833 }) }),
1250
+ /* @__PURE__ */ jsx12(
1251
+ "div",
1252
+ {
1253
+ "aria-hidden": "true",
1254
+ className: "text-foreground dark:text-foreground-inverse",
1255
+ children: /* @__PURE__ */ jsx12(assets_exports.BsXLg, { className: "w-5 h-5", strokeWidth: 0.833 })
1256
+ }
1257
+ ),
1141
1258
  /* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Close" })
1142
1259
  ]
1143
1260
  })
1144
1261
  );
1145
1262
  });
1263
+ ModalClose.displayName = "ModalClose";
1146
1264
  var descriptionVariants = cva10(
1147
1265
  [
1148
1266
  "text-sm",
@@ -1162,7 +1280,7 @@ var descriptionVariants = cva10(
1162
1280
  }
1163
1281
  }
1164
1282
  );
1165
- var ModalDescription = React9.forwardRef((_a, ref) => {
1283
+ var ModalDescription = React10.forwardRef((_a, ref) => {
1166
1284
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
1167
1285
  return /* @__PURE__ */ jsx12(
1168
1286
  DialogPrimitive.Description,
@@ -1175,7 +1293,7 @@ var ModalDescription = React9.forwardRef((_a, ref) => {
1175
1293
  ModalDescription.displayName = "ModalDescription";
1176
1294
 
1177
1295
  // src/components/Pagination/index.tsx
1178
- import React10, { useState, useEffect } from "react";
1296
+ import React11, { useState, useEffect } from "react";
1179
1297
  import { cva as cva11 } from "class-variance-authority";
1180
1298
  import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
1181
1299
  var PaginationVariants = cva11([
@@ -1208,23 +1326,31 @@ var PageNumberActiveStyles = cva11([
1208
1326
  "dark:hover:bg-primary-30",
1209
1327
  "dark:hover:text-grey-900"
1210
1328
  ]);
1211
- var Pagination = React10.forwardRef(
1329
+ var Pagination = React11.forwardRef(
1212
1330
  (_a, ref) => {
1213
1331
  var _b = _a, {
1214
1332
  className,
1215
1333
  currentPage,
1216
1334
  setCurrentPage,
1217
1335
  numberOfItemsPerPage,
1218
- totalNumberOfFilteredItems
1336
+ totalNumberOfFilteredItems,
1337
+ label = "Pagination",
1338
+ previousLabel = "Go to previous page",
1339
+ nextLabel = "Go to next page",
1340
+ pageLabel = (page) => `Go to page ${page}`
1219
1341
  } = _b, props = __objRest(_b, [
1220
1342
  "className",
1221
1343
  "currentPage",
1222
1344
  "setCurrentPage",
1223
1345
  "numberOfItemsPerPage",
1224
- "totalNumberOfFilteredItems"
1346
+ "totalNumberOfFilteredItems",
1347
+ "label",
1348
+ "previousLabel",
1349
+ "nextLabel",
1350
+ "pageLabel"
1225
1351
  ]);
1226
1352
  const currentRowsLength = totalNumberOfFilteredItems != null ? totalNumberOfFilteredItems : 0;
1227
- const totalPages = React10.useMemo(() => {
1353
+ const totalPages = React11.useMemo(() => {
1228
1354
  return Math.ceil(
1229
1355
  currentRowsLength > 0 ? currentRowsLength / numberOfItemsPerPage : 0
1230
1356
  );
@@ -1271,57 +1397,97 @@ var Pagination = React10.forwardRef(
1271
1397
  const goToPrevPage = () => {
1272
1398
  if (currentPage !== 1) setCurrentPage(currentPage - 1);
1273
1399
  };
1274
- return /* @__PURE__ */ jsx13("nav", __spreadProps(__spreadValues({ className: cn(PaginationVariants(), className), ref }, props), { children: /* @__PURE__ */ jsxs10("ul", { children: [
1275
- /* @__PURE__ */ jsx13("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ jsx13(
1276
- "button",
1277
- {
1278
- onClick: goToPrevPage,
1279
- disabled: currentPage === 1 || totalPages === 0,
1280
- children: /* @__PURE__ */ jsx13(
1281
- assets_exports.BsChevronLeft,
1400
+ return /* @__PURE__ */ jsx13(
1401
+ "nav",
1402
+ __spreadProps(__spreadValues({
1403
+ "aria-label": label,
1404
+ className: cn(PaginationVariants(), className),
1405
+ ref
1406
+ }, props), {
1407
+ children: /* @__PURE__ */ jsxs10("ul", { children: [
1408
+ /* @__PURE__ */ jsx13("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ jsx13(
1409
+ "button",
1282
1410
  {
1283
- className: "w-3 h-9 pt-3 pb-3 -mb-1 text-foreground dark:text-foreground-dark"
1411
+ type: "button",
1412
+ "aria-label": previousLabel,
1413
+ onClick: goToPrevPage,
1414
+ disabled: currentPage === 1 || totalPages === 0,
1415
+ children: /* @__PURE__ */ jsx13(
1416
+ assets_exports.BsChevronLeft,
1417
+ {
1418
+ "aria-hidden": "true",
1419
+ className: "w-3 h-9 pt-3 pb-3 -mb-1 text-foreground dark:text-foreground-dark"
1420
+ }
1421
+ )
1284
1422
  }
1285
- )
1286
- }
1287
- ) }),
1288
- /* @__PURE__ */ jsx13("div", { className: "flex flex-row items-center px-0", children: pageNumbers.map((pgNumber) => /* @__PURE__ */ jsxs10(React10.Fragment, { children: [
1289
- pgNumber === totalPages && showRightDots ? /* @__PURE__ */ jsx13("div", { className: "px-4 min-w-40 max-w-40 text-foreground-muted", children: "..." }) : null,
1290
- /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(
1291
- "button",
1292
- {
1293
- onClick: () => setCurrentPage(pgNumber),
1294
- className: cn(
1295
- PageNumberStyles(),
1296
- currentPage === pgNumber && PageNumberActiveStyles()
1297
- ),
1298
- children: /* @__PURE__ */ jsx13("div", { className: "text-sm", children: pgNumber })
1299
- }
1300
- ) }),
1301
- pgNumber === 1 && showLeftDots ? /* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13("div", { className: "px-4 max-w-40 min-w-40 text-foreground-muted", children: "..." }) }) : null
1302
- ] }, pgNumber)) }),
1303
- /* @__PURE__ */ jsx13("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ jsx13(
1304
- "button",
1305
- {
1306
- onClick: goToNextPage,
1307
- disabled: currentPage === totalPages || totalPages === 0,
1308
- children: /* @__PURE__ */ jsx13(
1309
- assets_exports.BsChevronRight,
1423
+ ) }),
1424
+ pageNumbers.map((pgNumber) => /* @__PURE__ */ jsxs10(React11.Fragment, { children: [
1425
+ pgNumber === totalPages && showRightDots ? /* @__PURE__ */ jsx13(
1426
+ "li",
1427
+ {
1428
+ "aria-hidden": "true",
1429
+ className: "flex items-center px-4 min-w-40 max-w-40 text-foreground-muted",
1430
+ children: "..."
1431
+ }
1432
+ ) : null,
1433
+ /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(
1434
+ "button",
1435
+ {
1436
+ type: "button",
1437
+ "aria-label": pageLabel(pgNumber),
1438
+ "aria-current": currentPage === pgNumber ? "page" : void 0,
1439
+ onClick: () => setCurrentPage(pgNumber),
1440
+ className: cn(
1441
+ PageNumberStyles(),
1442
+ currentPage === pgNumber && PageNumberActiveStyles()
1443
+ ),
1444
+ children: /* @__PURE__ */ jsx13("div", { className: "text-sm", children: pgNumber })
1445
+ }
1446
+ ) }),
1447
+ pgNumber === 1 && showLeftDots ? /* @__PURE__ */ jsx13(
1448
+ "li",
1449
+ {
1450
+ "aria-hidden": "true",
1451
+ className: "flex items-center px-4 max-w-40 min-w-40 text-foreground-muted",
1452
+ children: "..."
1453
+ }
1454
+ ) : null
1455
+ ] }, pgNumber)),
1456
+ /* @__PURE__ */ jsx13("li", { className: "hover:bg-background px-4 dark:hover:bg-background-dark rounded-xs", children: /* @__PURE__ */ jsx13(
1457
+ "button",
1310
1458
  {
1311
- className: "w-3 h-9 py-3 -mb-1 text-foreground dark:text-foreground-dark"
1459
+ type: "button",
1460
+ "aria-label": nextLabel,
1461
+ onClick: goToNextPage,
1462
+ disabled: currentPage === totalPages || totalPages === 0,
1463
+ children: /* @__PURE__ */ jsx13(
1464
+ assets_exports.BsChevronRight,
1465
+ {
1466
+ "aria-hidden": "true",
1467
+ className: "w-3 h-9 py-3 -mb-1 text-foreground dark:text-foreground-dark"
1468
+ }
1469
+ )
1312
1470
  }
1313
- )
1314
- }
1315
- ) })
1316
- ] }) }));
1471
+ ) })
1472
+ ] })
1473
+ })
1474
+ );
1317
1475
  }
1318
1476
  );
1477
+ Pagination.displayName = "Pagination";
1319
1478
 
1320
1479
  // src/components/Password/index.tsx
1321
- import React11, { useState as useState2 } from "react";
1480
+ import React12, { useState as useState2 } from "react";
1322
1481
  import { cva as cva12 } from "class-variance-authority";
1323
1482
  import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
1324
- var toggleMaskVariants = cva12(["flex", "self-center text-inherit"]);
1483
+ var toggleMaskVariants = cva12([
1484
+ "flex",
1485
+ "self-center text-inherit",
1486
+ "rounded-xs",
1487
+ "focus-visible:outline-2",
1488
+ "focus-visible:outline-offset-2",
1489
+ "focus-visible:outline-current"
1490
+ ]);
1325
1491
  var passwordVariants = cva12(
1326
1492
  ["flex", "flex-grow", "items-center", "outline-hidden", "bg-transparent"],
1327
1493
  {
@@ -1337,28 +1503,46 @@ var passwordVariants = cva12(
1337
1503
  }
1338
1504
  }
1339
1505
  );
1340
- var Password = React11.forwardRef(
1506
+ var Password = React12.forwardRef(
1341
1507
  (_a, ref) => {
1342
1508
  var _b = _a, {
1509
+ id,
1343
1510
  className,
1344
1511
  formClassName,
1345
1512
  variant = "primary",
1346
- toggleMask = true
1513
+ toggleMask = true,
1514
+ labelText,
1515
+ helpText,
1516
+ showLabel = "Show password",
1517
+ hideLabel = "Hide password",
1518
+ "aria-describedby": ariaDescribedby
1347
1519
  } = _b, props = __objRest(_b, [
1520
+ "id",
1348
1521
  "className",
1349
1522
  "formClassName",
1350
1523
  "variant",
1351
- "toggleMask"
1524
+ "toggleMask",
1525
+ "labelText",
1526
+ "helpText",
1527
+ "showLabel",
1528
+ "hideLabel",
1529
+ "aria-describedby"
1352
1530
  ]);
1353
1531
  const [isMaskOn, setIsMaskOn] = useState2(true);
1532
+ const generatedId = React12.useId();
1533
+ const inputId = id != null ? id : generatedId;
1534
+ const helpTextId = `${inputId}-helptext`;
1535
+ const describedBy = [ariaDescribedby, helpText ? helpTextId : void 0].filter(Boolean).join(" ") || void 0;
1354
1536
  const onToggleMask = () => setIsMaskOn((isMaskOn2) => !isMaskOn2);
1355
- return /* @__PURE__ */ jsxs11("label", { className: cn(formVariants({ variant }), formClassName), children: [
1537
+ const field = /* @__PURE__ */ jsxs11("div", { className: cn(formVariants({ variant }), formClassName), children: [
1356
1538
  /* @__PURE__ */ jsx14(
1357
1539
  "input",
1358
1540
  __spreadValues({
1541
+ id: inputId,
1359
1542
  type: isMaskOn ? "password" : "text",
1360
1543
  className: cn(passwordVariants({ variant }), className),
1361
- ref
1544
+ ref,
1545
+ "aria-describedby": describedBy
1362
1546
  }, props)
1363
1547
  ),
1364
1548
  /* @__PURE__ */ jsx14("div", { className: "input-right-side" }),
@@ -1367,16 +1551,42 @@ var Password = React11.forwardRef(
1367
1551
  {
1368
1552
  type: "button",
1369
1553
  onClick: onToggleMask,
1554
+ "aria-label": isMaskOn ? showLabel : hideLabel,
1555
+ "aria-pressed": !isMaskOn,
1556
+ "aria-controls": inputId,
1370
1557
  className: toggleMaskVariants(),
1371
- children: isMaskOn ? /* @__PURE__ */ jsx14(assets_exports.BsEye, {}) : /* @__PURE__ */ jsx14(assets_exports.BsEyeSlash, {})
1558
+ children: isMaskOn ? /* @__PURE__ */ jsx14(assets_exports.BsEye, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx14(assets_exports.BsEyeSlash, { "aria-hidden": "true" })
1559
+ }
1560
+ )
1561
+ ] });
1562
+ if (!labelText && !helpText) {
1563
+ return field;
1564
+ }
1565
+ return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3", children: [
1566
+ labelText && /* @__PURE__ */ jsx14(
1567
+ "label",
1568
+ {
1569
+ htmlFor: inputId,
1570
+ className: "text-m text-foreground dark:text-foreground-dark",
1571
+ children: labelText
1572
+ }
1573
+ ),
1574
+ field,
1575
+ helpText && /* @__PURE__ */ jsx14(
1576
+ "span",
1577
+ {
1578
+ id: helpTextId,
1579
+ className: "text-sm text-foreground-muted dark:text-foreground-muted-dark",
1580
+ children: helpText
1372
1581
  }
1373
1582
  )
1374
1583
  ] });
1375
1584
  }
1376
1585
  );
1586
+ Password.displayName = "Password";
1377
1587
 
1378
1588
  // src/components/Popover/index.tsx
1379
- import * as React12 from "react";
1589
+ import * as React13 from "react";
1380
1590
  import * as PopoverPrimitive from "@radix-ui/react-popover";
1381
1591
  import { cva as cva13 } from "class-variance-authority";
1382
1592
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
@@ -1396,7 +1606,7 @@ var popoverVariants = cva13([
1396
1606
  var Popover = PopoverPrimitive.Root;
1397
1607
  var PopoverTrigger = PopoverPrimitive.Trigger;
1398
1608
  var PopoverClose = PopoverPrimitive.Close;
1399
- var PopoverContent = React12.forwardRef(
1609
+ var PopoverContent = React13.forwardRef(
1400
1610
  (_a, ref) => {
1401
1611
  var _b = _a, { className, align = "center", sideOffset = 4, children } = _b, props = __objRest(_b, ["className", "align", "sideOffset", "children"]);
1402
1612
  return /* @__PURE__ */ jsx15(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx15(
@@ -1429,7 +1639,7 @@ var PopoverScrollArea = ({
1429
1639
  )
1430
1640
  ] });
1431
1641
  };
1432
- var PopoverSeparator = React12.forwardRef(
1642
+ var PopoverSeparator = React13.forwardRef(
1433
1643
  (_a, ref) => {
1434
1644
  var _b = _a, { className, orientation = "horizontal", fullLength = false } = _b, props = __objRest(_b, ["className", "orientation", "fullLength"]);
1435
1645
  return /* @__PURE__ */ jsx15("div", { className: "w-full", children: /* @__PURE__ */ jsx15(
@@ -1469,10 +1679,10 @@ var PopoverFooter = ({
1469
1679
  };
1470
1680
 
1471
1681
  // src/components/Radio/RadioGroup.tsx
1472
- import * as React13 from "react";
1682
+ import * as React14 from "react";
1473
1683
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
1474
1684
  import { jsx as jsx16 } from "react/jsx-runtime";
1475
- var RadioGroup = React13.forwardRef((_a, ref) => {
1685
+ var RadioGroup = React14.forwardRef((_a, ref) => {
1476
1686
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1477
1687
  return /* @__PURE__ */ jsx16(
1478
1688
  RadioGroupPrimitive.Root,
@@ -1486,7 +1696,7 @@ var RadioGroup = React13.forwardRef((_a, ref) => {
1486
1696
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
1487
1697
 
1488
1698
  // src/components/Radio/RadioGroupItem.tsx
1489
- import * as React14 from "react";
1699
+ import * as React15 from "react";
1490
1700
  import * as RadioGroupPrimitive2 from "@radix-ui/react-radio-group";
1491
1701
  import { cva as cva14 } from "class-variance-authority";
1492
1702
  import { jsx as jsx17 } from "react/jsx-runtime";
@@ -1498,7 +1708,11 @@ var radioVariant = cva14([
1498
1708
  "border-border",
1499
1709
  "bg-background-alt",
1500
1710
  "disabled:opacity-50",
1501
- "text-foreground-inverse"
1711
+ "disabled:cursor-not-allowed",
1712
+ "text-foreground-inverse",
1713
+ "focus-visible:outline-hidden",
1714
+ "focus-visible:shadow-brandGreen",
1715
+ "dark:focus-visible:shadow-brandGreen-10"
1502
1716
  ],
1503
1717
  ["data-[state=checked]:border-border", "data-[state=checked]:bg-border"],
1504
1718
  [
@@ -1507,7 +1721,7 @@ var radioVariant = cva14([
1507
1721
  "dark:data-[state=checked]:bg-border-dark"
1508
1722
  ]
1509
1723
  ]);
1510
- var RadioGroupItem = React14.forwardRef((_a, ref) => {
1724
+ var RadioGroupItem = React15.forwardRef((_a, ref) => {
1511
1725
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1512
1726
  return /* @__PURE__ */ jsx17(
1513
1727
  RadioGroupPrimitive2.Item,
@@ -1528,7 +1742,7 @@ var RadioGroupItem = React14.forwardRef((_a, ref) => {
1528
1742
  RadioGroupItem.displayName = RadioGroupPrimitive2.Item.displayName;
1529
1743
 
1530
1744
  // src/components/Select/index.tsx
1531
- import * as React15 from "react";
1745
+ import * as React16 from "react";
1532
1746
  import * as SelectPrimitive from "@radix-ui/react-select";
1533
1747
  import { cva as cva15 } from "class-variance-authority";
1534
1748
  import * as ScrollArea2 from "@radix-ui/react-scroll-area";
@@ -1599,7 +1813,7 @@ var triggerVariants = cva15(
1599
1813
  }
1600
1814
  }
1601
1815
  );
1602
- var SelectTrigger = React15.forwardRef((_a, ref) => {
1816
+ var SelectTrigger = React16.forwardRef((_a, ref) => {
1603
1817
  var _b = _a, { variant, size, className, children } = _b, props = __objRest(_b, ["variant", "size", "className", "children"]);
1604
1818
  return /* @__PURE__ */ jsxs13(
1605
1819
  SelectPrimitive.Trigger,
@@ -1633,7 +1847,7 @@ var contentVariants = cva15([
1633
1847
  "dark:border-border-subtle-dark",
1634
1848
  "dark:text-foreground-dark"
1635
1849
  ]);
1636
- var SelectContent = React15.forwardRef((_a, ref) => {
1850
+ var SelectContent = React16.forwardRef((_a, ref) => {
1637
1851
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
1638
1852
  return /* @__PURE__ */ jsx18(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx18(
1639
1853
  SelectPrimitive.Content,
@@ -1671,7 +1885,7 @@ var SelectContent = React15.forwardRef((_a, ref) => {
1671
1885
  ) });
1672
1886
  });
1673
1887
  SelectContent.displayName = SelectPrimitive.Content.displayName;
1674
- var SelectLabel = React15.forwardRef((_a, ref) => {
1888
+ var SelectLabel = React16.forwardRef((_a, ref) => {
1675
1889
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1676
1890
  return /* @__PURE__ */ jsx18(
1677
1891
  SelectPrimitive.Label,
@@ -1697,14 +1911,19 @@ var itemVariants = cva15([
1697
1911
  "data-[disabled]:pointer-events-none",
1698
1912
  "data-[disabled]:opacity-50",
1699
1913
  "hover:bg-background-alt",
1914
+ "data-[highlighted]:bg-background-alt",
1915
+ "data-[highlighted]:outline-2",
1916
+ "data-[highlighted]:-outline-offset-2",
1917
+ "data-[highlighted]:outline-current",
1700
1918
  "focus-visible:shadow-brandGreen"
1701
1919
  ],
1702
1920
  [
1703
1921
  "dark:focus-visible:shadow-brandGreen-10",
1704
- "dark:hover:bg-background-alt-dark"
1922
+ "dark:hover:bg-background-alt-dark",
1923
+ "dark:data-[highlighted]:bg-background-alt-dark"
1705
1924
  ]
1706
1925
  ]);
1707
- var SelectItem = React15.forwardRef((_a, ref) => {
1926
+ var SelectItem = React16.forwardRef((_a, ref) => {
1708
1927
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
1709
1928
  return /* @__PURE__ */ jsx18(
1710
1929
  SelectPrimitive.Item,
@@ -1717,7 +1936,7 @@ var SelectItem = React15.forwardRef((_a, ref) => {
1717
1936
  );
1718
1937
  });
1719
1938
  SelectItem.displayName = SelectPrimitive.Item.displayName;
1720
- var SelectSeparator = React15.forwardRef((_a, ref) => {
1939
+ var SelectSeparator = React16.forwardRef((_a, ref) => {
1721
1940
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1722
1941
  return /* @__PURE__ */ jsx18(
1723
1942
  SelectPrimitive.Separator,
@@ -1732,12 +1951,97 @@ var SelectSeparator = React15.forwardRef((_a, ref) => {
1732
1951
  });
1733
1952
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
1734
1953
 
1735
- // src/components/Switch/index.tsx
1736
- import * as React16 from "react";
1737
- import * as SwitchPrimitives from "@radix-ui/react-switch";
1954
+ // src/components/StepsIndicator/Step.tsx
1738
1955
  import { cva as cva16 } from "class-variance-authority";
1739
1956
  import { jsx as jsx19 } from "react/jsx-runtime";
1740
- var switchVariants = cva16([
1957
+ var stepVariant = cva16([
1958
+ "text-inherit",
1959
+ "fill-current",
1960
+ "text-accent-alt",
1961
+ "dark:text-accent-alt-dark",
1962
+ "hover:text-foreground-subtle",
1963
+ "dark:hover:text-foreground-subtle-dark",
1964
+ "active:text-foreground-muted",
1965
+ "dark:active:text-foreground-muted-dark",
1966
+ "data-[selected=true]:text-secondary-100",
1967
+ "dark:data-[selected=true]:text-accent-dark"
1968
+ ]);
1969
+ var Step = ({ selected, className }) => {
1970
+ return /* @__PURE__ */ jsx19(
1971
+ assets_exports.BsCircleFill,
1972
+ {
1973
+ size: "8",
1974
+ "aria-hidden": "true",
1975
+ "data-selected": selected,
1976
+ className: cn(stepVariant(), className)
1977
+ }
1978
+ );
1979
+ };
1980
+
1981
+ // src/components/StepsIndicator/StepsIndicator.tsx
1982
+ import * as React17 from "react";
1983
+ import { cva as cva17 } from "class-variance-authority";
1984
+ import { jsx as jsx20 } from "react/jsx-runtime";
1985
+ var stepsVariant = cva17([
1986
+ "flex",
1987
+ "text-accent-alt",
1988
+ "space-x-1 ",
1989
+ "content-center items-center"
1990
+ ]);
1991
+ var stepButtonVariant = cva17([
1992
+ "flex h-6 w-6 items-center justify-center m-0",
1993
+ "rounded-full",
1994
+ "outline-hidden",
1995
+ "focus-visible:outline-2",
1996
+ "focus-visible:outline-offset-1",
1997
+ "focus-visible:outline-current"
1998
+ ]);
1999
+ var StepsIndicator = React17.forwardRef(
2000
+ ({
2001
+ name = "",
2002
+ selectedIndex = 0,
2003
+ length = 1,
2004
+ onClick,
2005
+ label = "Progress",
2006
+ stepLabel = (step, total) => `Step ${step} of ${total}`,
2007
+ props
2008
+ }, ref) => {
2009
+ const Steps = Array(length).fill(null).map((_, i) => {
2010
+ const selected = i === selectedIndex;
2011
+ return /* @__PURE__ */ jsx20(
2012
+ "button",
2013
+ {
2014
+ type: "button",
2015
+ "aria-label": stepLabel(i + 1, length),
2016
+ "aria-current": selected ? "step" : void 0,
2017
+ className: stepButtonVariant(),
2018
+ onClick: () => onClick == null ? void 0 : onClick(i),
2019
+ children: /* @__PURE__ */ jsx20(Step, { selected: selected ? "true" : "false" })
2020
+ },
2021
+ `${i}-step-${name}`
2022
+ );
2023
+ });
2024
+ return /* @__PURE__ */ jsx20(
2025
+ "div",
2026
+ __spreadProps(__spreadValues({
2027
+ ref,
2028
+ role: "group",
2029
+ "aria-label": label,
2030
+ className: cn(stepsVariant())
2031
+ }, props), {
2032
+ children: Steps
2033
+ })
2034
+ );
2035
+ }
2036
+ );
2037
+ StepsIndicator.displayName = "StepsIndicator";
2038
+
2039
+ // src/components/Switch/index.tsx
2040
+ import * as React18 from "react";
2041
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
2042
+ import { cva as cva18 } from "class-variance-authority";
2043
+ import { jsx as jsx21 } from "react/jsx-runtime";
2044
+ var switchVariants = cva18([
1741
2045
  [
1742
2046
  "peer",
1743
2047
  "inline-flex",
@@ -1767,15 +2071,15 @@ var switchVariants = cva16([
1767
2071
  "disabled:bg-grey-200"
1768
2072
  ]
1769
2073
  ]);
1770
- var Switch = React16.forwardRef((_a, ref) => {
2074
+ var Switch = React18.forwardRef((_a, ref) => {
1771
2075
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1772
- return /* @__PURE__ */ jsx19(
2076
+ return /* @__PURE__ */ jsx21(
1773
2077
  SwitchPrimitives.Root,
1774
2078
  __spreadProps(__spreadValues({
1775
2079
  className: cn(switchVariants(), className)
1776
2080
  }, props), {
1777
2081
  ref,
1778
- children: /* @__PURE__ */ jsx19(
2082
+ children: /* @__PURE__ */ jsx21(
1779
2083
  SwitchPrimitives.Thumb,
1780
2084
  {
1781
2085
  className: cn([
@@ -1801,10 +2105,10 @@ var Switch = React16.forwardRef((_a, ref) => {
1801
2105
  Switch.displayName = SwitchPrimitives.Root.displayName;
1802
2106
 
1803
2107
  // src/components/Table/index.tsx
1804
- import * as React17 from "react";
1805
- import { cva as cva17 } from "class-variance-authority";
1806
- import { jsx as jsx20 } from "react/jsx-runtime";
1807
- var tableBodyVariants = cva17("bg-background dark:bg-grey-900", {
2108
+ import * as React19 from "react";
2109
+ import { cva as cva19 } from "class-variance-authority";
2110
+ import { jsx as jsx22 } from "react/jsx-runtime";
2111
+ var tableBodyVariants = cva19("bg-background dark:bg-grey-900", {
1808
2112
  variants: {
1809
2113
  variant: {
1810
2114
  zebra: [
@@ -1814,20 +2118,33 @@ var tableBodyVariants = cva17("bg-background dark:bg-grey-900", {
1814
2118
  }
1815
2119
  }
1816
2120
  });
1817
- var Table = React17.forwardRef((_a, ref) => {
1818
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1819
- return /* @__PURE__ */ jsx20("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx20(
1820
- "table",
1821
- __spreadValues({
1822
- ref,
1823
- className: cn("caption-bottom text-sm dark:text-white", className)
1824
- }, props)
1825
- ) });
1826
- });
2121
+ var Table = React19.forwardRef(
2122
+ (_a, ref) => {
2123
+ var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
2124
+ return /* @__PURE__ */ jsx22(
2125
+ "div",
2126
+ {
2127
+ tabIndex: 0,
2128
+ className: cn(
2129
+ "relative w-full overflow-auto",
2130
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",
2131
+ containerClassName
2132
+ ),
2133
+ children: /* @__PURE__ */ jsx22(
2134
+ "table",
2135
+ __spreadValues({
2136
+ ref,
2137
+ className: cn("caption-bottom text-sm dark:text-white", className)
2138
+ }, props)
2139
+ )
2140
+ }
2141
+ );
2142
+ }
2143
+ );
1827
2144
  Table.displayName = "Table";
1828
- var TableHeader = React17.forwardRef((_a, ref) => {
2145
+ var TableHeader = React19.forwardRef((_a, ref) => {
1829
2146
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1830
- return /* @__PURE__ */ jsx20(
2147
+ return /* @__PURE__ */ jsx22(
1831
2148
  "thead",
1832
2149
  __spreadValues({
1833
2150
  ref,
@@ -1839,9 +2156,9 @@ var TableHeader = React17.forwardRef((_a, ref) => {
1839
2156
  );
1840
2157
  });
1841
2158
  TableHeader.displayName = "TableHeader";
1842
- var TableHead = React17.forwardRef((_a, ref) => {
2159
+ var TableHead = React19.forwardRef((_a, ref) => {
1843
2160
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1844
- return /* @__PURE__ */ jsx20(
2161
+ return /* @__PURE__ */ jsx22(
1845
2162
  "th",
1846
2163
  __spreadValues({
1847
2164
  ref,
@@ -1850,10 +2167,10 @@ var TableHead = React17.forwardRef((_a, ref) => {
1850
2167
  );
1851
2168
  });
1852
2169
  TableHead.displayName = "TableHead";
1853
- var TableBody = React17.forwardRef(
2170
+ var TableBody = React19.forwardRef(
1854
2171
  (_a, ref) => {
1855
2172
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
1856
- return /* @__PURE__ */ jsx20(
2173
+ return /* @__PURE__ */ jsx22(
1857
2174
  "tbody",
1858
2175
  __spreadValues({
1859
2176
  ref,
@@ -1863,9 +2180,9 @@ var TableBody = React17.forwardRef(
1863
2180
  }
1864
2181
  );
1865
2182
  TableBody.displayName = "TableBody";
1866
- var TableRow = React17.forwardRef((_a, ref) => {
2183
+ var TableRow = React19.forwardRef((_a, ref) => {
1867
2184
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1868
- return /* @__PURE__ */ jsx20(
2185
+ return /* @__PURE__ */ jsx22(
1869
2186
  "tr",
1870
2187
  __spreadValues({
1871
2188
  ref,
@@ -1877,19 +2194,19 @@ var TableRow = React17.forwardRef((_a, ref) => {
1877
2194
  );
1878
2195
  });
1879
2196
  TableRow.displayName = "TableRow";
1880
- var TableCell = React17.forwardRef((_a, ref) => {
2197
+ var TableCell = React19.forwardRef((_a, ref) => {
1881
2198
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1882
- return /* @__PURE__ */ jsx20("td", __spreadValues({ ref, className: cn("p-4", className) }, props));
2199
+ return /* @__PURE__ */ jsx22("td", __spreadValues({ ref, className: cn("p-4", className) }, props));
1883
2200
  });
1884
2201
  TableCell.displayName = "TableCell";
1885
- var TableCaption = React17.forwardRef((_a, ref) => {
2202
+ var TableCaption = React19.forwardRef((_a, ref) => {
1886
2203
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1887
- return /* @__PURE__ */ jsx20("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
2204
+ return /* @__PURE__ */ jsx22("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
1888
2205
  });
1889
2206
  TableCaption.displayName = "TableCaption";
1890
- var TableFooter = React17.forwardRef((_a, ref) => {
2207
+ var TableFooter = React19.forwardRef((_a, ref) => {
1891
2208
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1892
- return /* @__PURE__ */ jsx20(
2209
+ return /* @__PURE__ */ jsx22(
1893
2210
  "tfoot",
1894
2211
  __spreadValues({
1895
2212
  ref,
@@ -1900,10 +2217,10 @@ var TableFooter = React17.forwardRef((_a, ref) => {
1900
2217
  TableFooter.displayName = "TableFooter";
1901
2218
 
1902
2219
  // src/components/Textarea/index.tsx
1903
- import React18 from "react";
1904
- import { cva as cva18 } from "class-variance-authority";
1905
- import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
1906
- var textareaVariants = cva18(
2220
+ import React20 from "react";
2221
+ import { cva as cva20 } from "class-variance-authority";
2222
+ import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
2223
+ var textareaVariants = cva20(
1907
2224
  [
1908
2225
  "flex",
1909
2226
  "flex-grow",
@@ -1961,33 +2278,50 @@ var textareaVariants = cva18(
1961
2278
  }
1962
2279
  }
1963
2280
  );
1964
- var Textarea = React18.forwardRef(
2281
+ var Textarea = React20.forwardRef(
1965
2282
  (_a, ref) => {
1966
- var _b = _a, { className, variant, labelText, helpText, id } = _b, props = __objRest(_b, ["className", "variant", "labelText", "helpText", "id"]);
2283
+ var _b = _a, {
2284
+ className,
2285
+ variant,
2286
+ labelText,
2287
+ helpText,
2288
+ id,
2289
+ "aria-describedby": ariaDescribedby
2290
+ } = _b, props = __objRest(_b, [
2291
+ "className",
2292
+ "variant",
2293
+ "labelText",
2294
+ "helpText",
2295
+ "id",
2296
+ "aria-describedby"
2297
+ ]);
2298
+ const generatedId = React20.useId();
2299
+ const textareaId = id != null ? id : generatedId;
2300
+ const helpTextId = `${textareaId}-helptext`;
2301
+ const describedBy = [ariaDescribedby, helpText ? helpTextId : void 0].filter(Boolean).join(" ") || void 0;
1967
2302
  return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-3", children: [
1968
- labelText && /* @__PURE__ */ jsx21(
2303
+ labelText && /* @__PURE__ */ jsx23(
1969
2304
  "label",
1970
2305
  {
1971
- id: `${id}-label`,
1972
- htmlFor: id,
2306
+ id: `${textareaId}-label`,
2307
+ htmlFor: textareaId,
1973
2308
  className: "text-m text-foreground dark:text-foreground-dark",
1974
2309
  children: labelText
1975
2310
  }
1976
2311
  ),
1977
- /* @__PURE__ */ jsx21(
2312
+ /* @__PURE__ */ jsx23(
1978
2313
  "textarea",
1979
- __spreadProps(__spreadValues({
1980
- id,
2314
+ __spreadValues({
2315
+ id: textareaId,
1981
2316
  className: cn(textareaVariants({ variant }), className),
1982
- ref
1983
- }, props), {
1984
- "aria-labelledby": `${labelText ? `${id}-label` : ""} ${helpText ? `${id}-helptext` : ""}`.trim()
1985
- })
2317
+ ref,
2318
+ "aria-describedby": describedBy
2319
+ }, props)
1986
2320
  ),
1987
- helpText && /* @__PURE__ */ jsx21(
2321
+ helpText && /* @__PURE__ */ jsx23(
1988
2322
  "span",
1989
2323
  {
1990
- id: `${id}-helptext`,
2324
+ id: helpTextId,
1991
2325
  className: "text-sm text-foreground-muted dark:text-foreground-muted-dark",
1992
2326
  children: helpText
1993
2327
  }
@@ -1995,13 +2329,14 @@ var Textarea = React18.forwardRef(
1995
2329
  ] });
1996
2330
  }
1997
2331
  );
2332
+ Textarea.displayName = "Textarea";
1998
2333
 
1999
2334
  // src/components/Tooltip/index.tsx
2000
- import * as React19 from "react";
2335
+ import * as React21 from "react";
2001
2336
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2002
- import { cva as cva19 } from "class-variance-authority";
2003
- import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
2004
- var tooltipVariants = cva19([
2337
+ import { cva as cva21 } from "class-variance-authority";
2338
+ import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
2339
+ var tooltipVariants = cva21([
2005
2340
  [
2006
2341
  "fill-accent",
2007
2342
  "bg-accent",
@@ -2020,9 +2355,9 @@ var tooltipVariants = cva19([
2020
2355
  "dark:fill-accent-dark"
2021
2356
  ]
2022
2357
  ]);
2023
- var Tooltip = React19.forwardRef(({ children, side, content, sideOffset }, ref) => {
2024
- return /* @__PURE__ */ jsx22(TooltipPrimitive.Provider, { children: /* @__PURE__ */ jsxs15(TooltipPrimitive.Root, { delayDuration: 100, children: [
2025
- /* @__PURE__ */ jsx22(TooltipPrimitive.Trigger, { children }),
2358
+ var Tooltip = React21.forwardRef(({ children, side, content, sideOffset }, ref) => {
2359
+ return /* @__PURE__ */ jsx24(TooltipPrimitive.Provider, { children: /* @__PURE__ */ jsxs15(TooltipPrimitive.Root, { delayDuration: 100, children: [
2360
+ /* @__PURE__ */ jsx24(TooltipPrimitive.Trigger, { asChild: React21.isValidElement(children), children }),
2026
2361
  /* @__PURE__ */ jsxs15(
2027
2362
  TooltipPrimitive.Content,
2028
2363
  {
@@ -2032,18 +2367,19 @@ var Tooltip = React19.forwardRef(({ children, side, content, sideOffset }, ref)
2032
2367
  ref,
2033
2368
  children: [
2034
2369
  content,
2035
- /* @__PURE__ */ jsx22(TooltipPrimitive.Arrow, { className: "fill-inherit" })
2370
+ /* @__PURE__ */ jsx24(TooltipPrimitive.Arrow, { className: "fill-inherit" })
2036
2371
  ]
2037
2372
  }
2038
2373
  )
2039
2374
  ] }) });
2040
2375
  });
2376
+ Tooltip.displayName = "Tooltip";
2041
2377
 
2042
2378
  // src/components/WebsiteFooter/index.tsx
2043
- import { cva as cva20 } from "class-variance-authority";
2044
- import React20 from "react";
2045
- import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
2046
- var websiteFooterVariants = cva20(
2379
+ import { cva as cva22 } from "class-variance-authority";
2380
+ import React22 from "react";
2381
+ import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
2382
+ var websiteFooterVariants = cva22(
2047
2383
  ["flex", "flex-col", "w-full", "items-center", "px-16", "py-4"],
2048
2384
  {
2049
2385
  variants: {
@@ -2059,13 +2395,14 @@ var websiteFooterVariants = cva20(
2059
2395
  defaultVariants: { size: "standard" }
2060
2396
  }
2061
2397
  );
2062
- var footerStatementVariants = cva20(
2398
+ var footerStatementVariants = cva22(
2063
2399
  [
2064
2400
  "flex",
2065
2401
  "flex-col",
2066
2402
  "gap-1",
2067
2403
  "items-center",
2068
- "text-foreground-subtle",
2404
+ "text-foreground-muted",
2405
+ "dark:text-foreground-muted-dark",
2069
2406
  "py-4",
2070
2407
  "text-sm"
2071
2408
  ],
@@ -2079,7 +2416,7 @@ var footerStatementVariants = cva20(
2079
2416
  defaultVariants: { size: "standard" }
2080
2417
  }
2081
2418
  );
2082
- var linkRowVariants = cva20([
2419
+ var linkRowVariants = cva22([
2083
2420
  "flex",
2084
2421
  "w-full",
2085
2422
  "justify-between",
@@ -2087,7 +2424,7 @@ var linkRowVariants = cva20([
2087
2424
  "[&>*]:font-normal",
2088
2425
  "[&>*]:text-sm"
2089
2426
  ]);
2090
- var linkColumnVariants = cva20(
2427
+ var linkColumnVariants = cva22(
2091
2428
  [
2092
2429
  "flex",
2093
2430
  "flex-col",
@@ -2122,11 +2459,11 @@ var linkColumnVariants = cva20(
2122
2459
  }
2123
2460
  }
2124
2461
  );
2125
- var WebsiteFooter = React20.forwardRef(
2462
+ var WebsiteFooter = React22.forwardRef(
2126
2463
  (_a, ref) => {
2127
2464
  var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
2128
- return /* @__PURE__ */ jsx23(
2129
- "div",
2465
+ return /* @__PURE__ */ jsx25(
2466
+ "footer",
2130
2467
  __spreadProps(__spreadValues({
2131
2468
  className: cn(websiteFooterVariants({ size }), className)
2132
2469
  }, props), {
@@ -2135,10 +2472,10 @@ var WebsiteFooter = React20.forwardRef(
2135
2472
  );
2136
2473
  }
2137
2474
  );
2138
- var FooterStatement = React20.forwardRef(
2475
+ var FooterStatement = React22.forwardRef(
2139
2476
  (_a, ref) => {
2140
2477
  var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
2141
- return /* @__PURE__ */ jsx23("div", { children: /* @__PURE__ */ jsx23(
2478
+ return /* @__PURE__ */ jsx25("div", { children: /* @__PURE__ */ jsx25(
2142
2479
  "div",
2143
2480
  __spreadProps(__spreadValues({
2144
2481
  className: cn(footerStatementVariants({ size }), className)
@@ -2148,10 +2485,10 @@ var FooterStatement = React20.forwardRef(
2148
2485
  ) });
2149
2486
  }
2150
2487
  );
2151
- var LinkRow = React20.forwardRef(
2488
+ var LinkRow = React22.forwardRef(
2152
2489
  (_a, ref) => {
2153
2490
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2154
- return /* @__PURE__ */ jsx23(
2491
+ return /* @__PURE__ */ jsx25(
2155
2492
  "div",
2156
2493
  __spreadProps(__spreadValues({
2157
2494
  className: cn(linkRowVariants(), className)
@@ -2161,7 +2498,7 @@ var LinkRow = React20.forwardRef(
2161
2498
  );
2162
2499
  }
2163
2500
  );
2164
- var LinkColumn = React20.forwardRef(
2501
+ var LinkColumn = React22.forwardRef(
2165
2502
  (_a, ref) => {
2166
2503
  var _b = _a, { className, size, title, children } = _b, props = __objRest(_b, ["className", "size", "title", "children"]);
2167
2504
  return /* @__PURE__ */ jsxs16(
@@ -2171,7 +2508,7 @@ var LinkColumn = React20.forwardRef(
2171
2508
  }, props), {
2172
2509
  ref,
2173
2510
  children: [
2174
- title && /* @__PURE__ */ jsx23("div", { children: title }),
2511
+ title && /* @__PURE__ */ jsx25("div", { children: title }),
2175
2512
  children
2176
2513
  ]
2177
2514
  })
@@ -2232,6 +2569,8 @@ export {
2232
2569
  SelectSeparator,
2233
2570
  SelectTrigger,
2234
2571
  SelectValue,
2572
+ Step,
2573
+ StepsIndicator,
2235
2574
  Switch,
2236
2575
  Table,
2237
2576
  TableBody,