@cerberus-design/react 0.9.1 → 0.9.2-next-0dee029

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.
Files changed (46) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +0 -9
  2. package/build/legacy/components/FileStatus.cjs +147 -46
  3. package/build/legacy/components/FileStatus.cjs.map +1 -1
  4. package/build/legacy/components/FileUploader.cjs +116 -16
  5. package/build/legacy/components/FileUploader.cjs.map +1 -1
  6. package/build/legacy/context/confirm-modal.cjs +136 -43
  7. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  8. package/build/legacy/context/prompt-modal.cjs +136 -43
  9. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  10. package/build/legacy/index.cjs +290 -259
  11. package/build/legacy/index.cjs.map +1 -1
  12. package/build/modern/_tsup-dts-rollup.d.ts +0 -9
  13. package/build/modern/{chunk-MLCVO7JP.js → chunk-DGJPW76I.js} +18 -18
  14. package/build/modern/chunk-DGJPW76I.js.map +1 -0
  15. package/build/modern/{chunk-KKJKOKP7.js → chunk-O6WHVUEW.js} +4 -4
  16. package/build/modern/{chunk-CZMC77YO.js → chunk-T7TOXGZT.js} +35 -10
  17. package/build/modern/chunk-T7TOXGZT.js.map +1 -0
  18. package/build/modern/{chunk-GB3SECCO.js → chunk-WWJRKSM5.js} +35 -10
  19. package/build/modern/chunk-WWJRKSM5.js.map +1 -0
  20. package/build/modern/{chunk-TUIVLIJI.js → chunk-XOVQGPIE.js} +16 -4
  21. package/build/modern/chunk-XOVQGPIE.js.map +1 -0
  22. package/build/modern/components/FileStatus.js +3 -1
  23. package/build/modern/components/FileUploader.js +2 -1
  24. package/build/modern/context/confirm-modal.js +3 -3
  25. package/build/modern/context/notification-center.js +2 -2
  26. package/build/modern/context/prompt-modal.js +3 -3
  27. package/build/modern/index.js +14 -18
  28. package/build/modern/index.js.map +1 -1
  29. package/package.json +3 -3
  30. package/src/components/FileStatus.tsx +17 -19
  31. package/src/components/FileUploader.tsx +12 -5
  32. package/src/context/confirm-modal.tsx +25 -12
  33. package/src/context/prompt-modal.tsx +25 -12
  34. package/src/index.ts +0 -1
  35. package/build/legacy/components/ModalIcon.cjs +0 -51
  36. package/build/legacy/components/ModalIcon.cjs.map +0 -1
  37. package/build/modern/chunk-CZMC77YO.js.map +0 -1
  38. package/build/modern/chunk-GB3SECCO.js.map +0 -1
  39. package/build/modern/chunk-MLCVO7JP.js.map +0 -1
  40. package/build/modern/chunk-TUIVLIJI.js.map +0 -1
  41. package/build/modern/chunk-VCR5C6Q3.js +0 -29
  42. package/build/modern/chunk-VCR5C6Q3.js.map +0 -1
  43. package/build/modern/components/ModalIcon.js +0 -7
  44. package/build/modern/components/ModalIcon.js.map +0 -1
  45. package/src/components/ModalIcon.tsx +0 -28
  46. /package/build/modern/{chunk-KKJKOKP7.js.map → chunk-O6WHVUEW.js.map} +0 -0
@@ -41,7 +41,6 @@ __export(src_exports, {
41
41
  ModalDescription: () => ModalDescription,
42
42
  ModalHeader: () => ModalHeader,
43
43
  ModalHeading: () => ModalHeading,
44
- ModalIcon: () => ModalIcon,
45
44
  NavMenu: () => NavMenu,
46
45
  NavMenuLink: () => NavMenuLink,
47
46
  NavMenuList: () => NavMenuList,
@@ -537,15 +536,12 @@ function FileStatus(props) {
537
536
  className: (0, import_css7.cx)(nativeProps.className, styles.root, (0, import_patterns3.hstack)()),
538
537
  children: [
539
538
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
540
- "div",
539
+ Avatar,
541
540
  {
542
- className: (0, import_css7.cx)(
543
- styles.icon,
544
- (0, import_patterns3.circle)({
545
- size: "2rem"
546
- })
547
- ),
548
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(MatchFileStatusIcon, { status })
541
+ ariaLabel: "",
542
+ gradient: modalIconPalette,
543
+ icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(MatchFileStatusIcon, { size: 24, status }),
544
+ src: ""
549
545
  }
550
546
  ),
551
547
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
@@ -568,7 +564,7 @@ function FileStatus(props) {
568
564
  }
569
565
  ),
570
566
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ProgressBar, { now, size: "sm" }),
571
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Field, { invalid: modalIconPalette === "danger", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
567
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Field, { invalid: modalIconPalette === "red", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
572
568
  FieldMessage,
573
569
  {
574
570
  className: (0, import_css7.css)({
@@ -604,11 +600,11 @@ function MatchFileStatusIcon(props) {
604
600
  switch (props.status) {
605
601
  case "todo" /* TODO */:
606
602
  case "processing" /* PROCESSING */:
607
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FileUploaderIcon, {});
603
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FileUploaderIcon, { size: props.size });
608
604
  case "done" /* DONE */:
609
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DoneIcon, {});
605
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DoneIcon, { size: props.size });
610
606
  case "error" /* ERROR */:
611
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InvalidIcon, {});
607
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InvalidIcon, { size: props.size });
612
608
  default:
613
609
  throw new Error("Unknown status");
614
610
  }
@@ -671,13 +667,13 @@ function getModalIconPalette(status) {
671
667
  switch (status) {
672
668
  case "todo" /* TODO */:
673
669
  case "processing" /* PROCESSING */:
674
- return "action";
670
+ return "light-purple";
675
671
  case "error" /* ERROR */:
676
- return "danger";
672
+ return "red";
677
673
  case "done" /* DONE */:
678
- return "success";
674
+ return "green";
679
675
  default:
680
- return "action";
676
+ return "light-purple";
681
677
  }
682
678
  }
683
679
 
@@ -700,7 +696,16 @@ function FileUploader(props) {
700
696
  styles.container
701
697
  ),
702
698
  children: [
703
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: (0, import_css8.cx)(styles.icon, (0, import_recipes8.modalIcon)(), (0, import_patterns4.circle)()), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, {}) }),
699
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
700
+ Avatar,
701
+ {
702
+ gradient: "light-purple",
703
+ ariaLabel: "",
704
+ icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, {}),
705
+ size: "md",
706
+ src: ""
707
+ }
708
+ ) }),
704
709
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
705
710
  "label",
706
711
  {
@@ -854,33 +859,10 @@ function ModalDescription(props) {
854
859
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { ...props, className: (0, import_css14.cx)(props.className, (0, import_recipes13.modal)().description) });
855
860
  }
856
861
 
857
- // src/components/ModalIcon.tsx
858
- var import_css15 = require("@cerberus/styled-system/css");
859
- var import_patterns7 = require("@cerberus/styled-system/patterns");
860
- var import_recipes14 = require("@cerberus/styled-system/recipes");
861
- var import_jsx_runtime20 = require("react/jsx-runtime");
862
- function ModalIcon(props) {
863
- const { palette, ...nativeProps } = props;
864
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
865
- "div",
866
- {
867
- ...nativeProps,
868
- className: (0, import_css15.cx)(
869
- nativeProps.className,
870
- (0, import_recipes14.modalIcon)({
871
- palette
872
- }),
873
- (0, import_patterns7.circle)()
874
- ),
875
- children: props.children
876
- }
877
- );
878
- }
879
-
880
862
  // src/components/NavMenuTrigger.tsx
881
863
  var import_react8 = require("react");
882
- var import_css17 = require("@cerberus/styled-system/css");
883
- var import_recipes15 = require("@cerberus/styled-system/recipes");
864
+ var import_css16 = require("@cerberus/styled-system/css");
865
+ var import_recipes14 = require("@cerberus/styled-system/recipes");
884
866
 
885
867
  // src/aria-helpers/nav-menu.aria.ts
886
868
  function createNavTriggerProps(values) {
@@ -891,9 +873,9 @@ function createNavTriggerProps(values) {
891
873
  }
892
874
 
893
875
  // src/context/navMenu.tsx
894
- var import_css16 = require("@cerberus/styled-system/css");
876
+ var import_css15 = require("@cerberus/styled-system/css");
895
877
  var import_react7 = require("react");
896
- var import_jsx_runtime21 = require("react/jsx-runtime");
878
+ var import_jsx_runtime20 = require("react/jsx-runtime");
897
879
  var NavMenuContext = (0, import_react7.createContext)(null);
898
880
  function NavMenu(props) {
899
881
  const triggerRef = (0, import_react7.useRef)(null);
@@ -911,10 +893,10 @@ function NavMenu(props) {
911
893
  }),
912
894
  [expanded, handleToggle]
913
895
  );
914
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
896
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
915
897
  "nav",
916
898
  {
917
- className: (0, import_css16.css)({
899
+ className: (0, import_css15.css)({
918
900
  position: "relative"
919
901
  }),
920
902
  children: props.children
@@ -930,7 +912,7 @@ function useNavMenuContext() {
930
912
  }
931
913
 
932
914
  // src/components/NavMenuTrigger.tsx
933
- var import_jsx_runtime22 = require("react/jsx-runtime");
915
+ var import_jsx_runtime21 = require("react/jsx-runtime");
934
916
  function NavMenuTrigger(props) {
935
917
  const {
936
918
  as,
@@ -956,18 +938,18 @@ function NavMenuTrigger(props) {
956
938
  },
957
939
  [onClick, onToggle]
958
940
  );
959
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
941
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
960
942
  Show,
961
943
  {
962
944
  when: hasAs,
963
- fallback: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
945
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
964
946
  "button",
965
947
  {
966
948
  ...nativeProps,
967
949
  ...ariaProps,
968
- className: (0, import_css17.cx)(
950
+ className: (0, import_css16.cx)(
969
951
  nativeProps.className,
970
- (0, import_recipes15.button)({
952
+ (0, import_recipes14.button)({
971
953
  palette,
972
954
  usage,
973
955
  shape
@@ -978,7 +960,7 @@ function NavMenuTrigger(props) {
978
960
  children: props.children
979
961
  }
980
962
  ),
981
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
963
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
982
964
  AsSub,
983
965
  {
984
966
  ...nativeProps,
@@ -993,9 +975,9 @@ function NavMenuTrigger(props) {
993
975
 
994
976
  // src/components/NavMenuList.tsx
995
977
  var import_react9 = require("react");
996
- var import_css18 = require("@cerberus/styled-system/css");
997
- var import_patterns8 = require("@cerberus/styled-system/patterns");
998
- var import_jsx_runtime23 = require("react/jsx-runtime");
978
+ var import_css17 = require("@cerberus/styled-system/css");
979
+ var import_patterns7 = require("@cerberus/styled-system/patterns");
980
+ var import_jsx_runtime22 = require("react/jsx-runtime");
999
981
  function getPosition(position) {
1000
982
  const defaultPositions = {
1001
983
  left: "auto",
@@ -1016,7 +998,7 @@ function getPosition(position) {
1016
998
  return defaultPositions;
1017
999
  }
1018
1000
  }
1019
- var navListStyles = (0, import_patterns8.vstack)({
1001
+ var navListStyles = (0, import_patterns7.vstack)({
1020
1002
  alignItems: "flex-start",
1021
1003
  bgColor: "page.surface.100",
1022
1004
  boxShadow: "lg",
@@ -1053,12 +1035,12 @@ function NavMenuList(props) {
1053
1035
  () => getPosition(position ?? "bottom"),
1054
1036
  [position]
1055
1037
  );
1056
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1038
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1057
1039
  "ul",
1058
1040
  {
1059
1041
  ...nativeProps,
1060
1042
  "data-position": position ?? "bottom",
1061
- className: (0, import_css18.cx)(nativeProps.className, navListStyles),
1043
+ className: (0, import_css17.cx)(nativeProps.className, navListStyles),
1062
1044
  ref: menuRef,
1063
1045
  style: locationStyles
1064
1046
  }
@@ -1066,29 +1048,29 @@ function NavMenuList(props) {
1066
1048
  }
1067
1049
 
1068
1050
  // src/components/NavMenuLink.tsx
1069
- var import_css19 = require("@cerberus/styled-system/css");
1070
- var import_jsx_runtime24 = require("react/jsx-runtime");
1051
+ var import_css18 = require("@cerberus/styled-system/css");
1052
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1071
1053
  function NavMenuLink(props) {
1072
1054
  const { as, ...nativeProps } = props;
1073
1055
  const hasAs = Boolean(as);
1074
1056
  const AsSub = as;
1075
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1057
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1076
1058
  "li",
1077
1059
  {
1078
- className: (0, import_css19.css)({
1060
+ className: (0, import_css18.css)({
1079
1061
  w: "full"
1080
1062
  }),
1081
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1063
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1082
1064
  Show,
1083
1065
  {
1084
1066
  when: hasAs,
1085
- fallback: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1067
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1086
1068
  "a",
1087
1069
  {
1088
1070
  ...nativeProps,
1089
- className: (0, import_css19.cx)(
1071
+ className: (0, import_css18.cx)(
1090
1072
  nativeProps.className,
1091
- (0, import_css19.css)({
1073
+ (0, import_css18.css)({
1092
1074
  color: "action.navigation.initial",
1093
1075
  textStyle: "link",
1094
1076
  _hover: {
@@ -1098,7 +1080,7 @@ function NavMenuLink(props) {
1098
1080
  )
1099
1081
  }
1100
1082
  ),
1101
- children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AsSub, { ...nativeProps })
1083
+ children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AsSub, { ...nativeProps })
1102
1084
  }
1103
1085
  )
1104
1086
  }
@@ -1106,9 +1088,9 @@ function NavMenuLink(props) {
1106
1088
  }
1107
1089
 
1108
1090
  // src/components/Notification.tsx
1109
- var import_css20 = require("@cerberus/styled-system/css");
1110
- var import_patterns9 = require("@cerberus/styled-system/patterns");
1111
- var import_recipes16 = require("@cerberus/styled-system/recipes");
1091
+ var import_css19 = require("@cerberus/styled-system/css");
1092
+ var import_patterns8 = require("@cerberus/styled-system/patterns");
1093
+ var import_recipes15 = require("@cerberus/styled-system/recipes");
1112
1094
  var import_react10 = require("react");
1113
1095
  var import_icons2 = require("@cerberus/icons");
1114
1096
 
@@ -1139,25 +1121,25 @@ function trapFocus(modalRef) {
1139
1121
  }
1140
1122
 
1141
1123
  // src/components/Notification.tsx
1142
- var import_jsx_runtime25 = require("react/jsx-runtime");
1124
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1143
1125
  function MatchNotificationIcon(props) {
1144
1126
  const palette = props.palette || "info";
1145
1127
  const key = `${palette}Notification`;
1146
1128
  const Icon = $cerberusIcons[key];
1147
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, {});
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, {});
1148
1130
  }
1149
1131
  function Notification(props) {
1150
1132
  const { children, palette, onClose, ...nativeProps } = props;
1151
1133
  const ref = (0, import_react10.useRef)(null);
1152
1134
  const onKeyDown = trapFocus(ref);
1153
- const styles = (0, import_recipes16.notification)({ palette });
1154
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1135
+ const styles = (0, import_recipes15.notification)({ palette });
1136
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1155
1137
  "dialog",
1156
1138
  {
1157
1139
  ...nativeProps,
1158
- className: (0, import_css20.cx)(
1140
+ className: (0, import_css19.cx)(
1159
1141
  nativeProps.className,
1160
- (0, import_patterns9.hstack)({
1142
+ (0, import_patterns8.hstack)({
1161
1143
  position: "relative",
1162
1144
  gap: "4"
1163
1145
  }),
@@ -1167,11 +1149,11 @@ function Notification(props) {
1167
1149
  ref,
1168
1150
  role: "alert",
1169
1151
  children: [
1170
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(MatchNotificationIcon, { palette }) }),
1171
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1152
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MatchNotificationIcon, { palette }) }),
1153
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1172
1154
  "div",
1173
1155
  {
1174
- className: (0, import_patterns9.vstack)({
1156
+ className: (0, import_patterns8.vstack)({
1175
1157
  alignItems: "flex-start",
1176
1158
  gap: "0",
1177
1159
  py: "2"
@@ -1179,14 +1161,14 @@ function Notification(props) {
1179
1161
  children
1180
1162
  }
1181
1163
  ),
1182
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1164
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1183
1165
  "button",
1184
1166
  {
1185
1167
  "aria-label": "Close",
1186
1168
  className: styles.close,
1187
1169
  onClick: onClose,
1188
1170
  value: props.id,
1189
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons2.Close, {})
1171
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.Close, {})
1190
1172
  }
1191
1173
  )
1192
1174
  ]
@@ -1195,26 +1177,26 @@ function Notification(props) {
1195
1177
  }
1196
1178
 
1197
1179
  // src/components/NotificationHeading.tsx
1198
- var import_css21 = require("@cerberus/styled-system/css");
1199
- var import_recipes17 = require("@cerberus/styled-system/recipes");
1200
- var import_jsx_runtime26 = require("react/jsx-runtime");
1180
+ var import_css20 = require("@cerberus/styled-system/css");
1181
+ var import_recipes16 = require("@cerberus/styled-system/recipes");
1182
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1201
1183
  function NotificationHeading(props) {
1202
1184
  const { palette, ...nativeProps } = props;
1203
- const styles = (0, import_recipes17.notification)({ palette });
1204
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: (0, import_css21.cx)(nativeProps.className, styles.heading), ...nativeProps });
1185
+ const styles = (0, import_recipes16.notification)({ palette });
1186
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: (0, import_css20.cx)(nativeProps.className, styles.heading), ...nativeProps });
1205
1187
  }
1206
1188
 
1207
1189
  // src/components/NotificationDescription.tsx
1208
- var import_css22 = require("@cerberus/styled-system/css");
1209
- var import_recipes18 = require("@cerberus/styled-system/recipes");
1210
- var import_jsx_runtime27 = require("react/jsx-runtime");
1190
+ var import_css21 = require("@cerberus/styled-system/css");
1191
+ var import_recipes17 = require("@cerberus/styled-system/recipes");
1192
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1211
1193
  function NotificationDescription(props) {
1212
1194
  const { palette, ...nativeProps } = props;
1213
- const styles = (0, import_recipes18.notification)({ palette });
1214
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1195
+ const styles = (0, import_recipes17.notification)({ palette });
1196
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1215
1197
  "p",
1216
1198
  {
1217
- className: (0, import_css22.cx)(nativeProps.className, styles.description),
1199
+ className: (0, import_css21.cx)(nativeProps.className, styles.description),
1218
1200
  ...nativeProps
1219
1201
  }
1220
1202
  );
@@ -1228,22 +1210,22 @@ function Portal(props) {
1228
1210
  }
1229
1211
 
1230
1212
  // src/components/Radio.tsx
1231
- var import_css23 = require("@cerberus/styled-system/css");
1232
- var import_patterns10 = require("@cerberus/styled-system/patterns");
1233
- var import_recipes19 = require("@cerberus/styled-system/recipes");
1234
- var import_jsx_runtime28 = require("react/jsx-runtime");
1213
+ var import_css22 = require("@cerberus/styled-system/css");
1214
+ var import_patterns9 = require("@cerberus/styled-system/patterns");
1215
+ var import_recipes18 = require("@cerberus/styled-system/recipes");
1216
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1235
1217
  function Radio(props) {
1236
1218
  const { children, size, ...nativeProps } = props;
1237
1219
  const { invalid, ...state } = useFieldContext();
1238
- const styles = (0, import_recipes19.radio)({ size });
1239
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: (0, import_css23.cx)("group", (0, import_patterns10.hstack)(), styles.root), tabIndex: 0, children: [
1240
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1220
+ const styles = (0, import_recipes18.radio)({ size });
1221
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: (0, import_css22.cx)("group", (0, import_patterns9.hstack)(), styles.root), tabIndex: 0, children: [
1222
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1241
1223
  "input",
1242
1224
  {
1243
1225
  ...nativeProps,
1244
1226
  ...state,
1245
1227
  ...invalid && { "aria-invalid": true },
1246
- className: (0, import_css23.cx)(nativeProps.className, styles.input),
1228
+ className: (0, import_css22.cx)(nativeProps.className, styles.input),
1247
1229
  tabIndex: -1,
1248
1230
  type: "radio"
1249
1231
  }
@@ -1253,19 +1235,19 @@ function Radio(props) {
1253
1235
  }
1254
1236
 
1255
1237
  // src/components/Select.tsx
1256
- var import_css24 = require("@cerberus/styled-system/css");
1257
- var import_patterns11 = require("@cerberus/styled-system/patterns");
1258
- var import_recipes20 = require("@cerberus/styled-system/recipes");
1259
- var import_jsx_runtime29 = require("react/jsx-runtime");
1238
+ var import_css23 = require("@cerberus/styled-system/css");
1239
+ var import_patterns10 = require("@cerberus/styled-system/patterns");
1240
+ var import_recipes19 = require("@cerberus/styled-system/recipes");
1241
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1260
1242
  function Select(props) {
1261
1243
  const { describedBy, size, ...nativeProps } = props;
1262
1244
  const { invalid, ...fieldStates } = useFieldContext();
1263
1245
  const { invalid: InvalidIcon, selectArrow: SelectArrow } = $cerberusIcons;
1264
- const styles = (0, import_recipes20.select)({
1246
+ const styles = (0, import_recipes19.select)({
1265
1247
  size
1266
1248
  });
1267
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: styles.root, children: [
1268
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1249
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: styles.root, children: [
1250
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1269
1251
  "select",
1270
1252
  {
1271
1253
  ...nativeProps,
@@ -1275,41 +1257,41 @@ function Select(props) {
1275
1257
  className: styles.input
1276
1258
  }
1277
1259
  ),
1278
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1260
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1279
1261
  "span",
1280
1262
  {
1281
- className: (0, import_css24.cx)(
1263
+ className: (0, import_css23.cx)(
1282
1264
  styles.iconStack,
1283
- (0, import_patterns11.hstack)({
1265
+ (0, import_patterns10.hstack)({
1284
1266
  gap: "2"
1285
1267
  })
1286
1268
  ),
1287
1269
  children: [
1288
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1270
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1289
1271
  "span",
1290
1272
  {
1291
1273
  ...invalid && { "data-invalid": true },
1292
1274
  className: styles.stateIcon,
1293
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InvalidIcon, {})
1275
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InvalidIcon, {})
1294
1276
  }
1295
1277
  ) }),
1296
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectArrow, {}) })
1278
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectArrow, {}) })
1297
1279
  ]
1298
1280
  }
1299
1281
  )
1300
1282
  ] });
1301
1283
  }
1302
1284
  function Option(props) {
1303
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { ...props });
1285
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("option", { ...props });
1304
1286
  }
1305
1287
 
1306
1288
  // src/components/Tab.tsx
1307
1289
  var import_react13 = require("react");
1308
1290
 
1309
1291
  // src/context/tabs.tsx
1310
- var import_recipes21 = require("@cerberus/styled-system/recipes");
1292
+ var import_recipes20 = require("@cerberus/styled-system/recipes");
1311
1293
  var import_react11 = require("react");
1312
- var import_jsx_runtime30 = require("react/jsx-runtime");
1294
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1313
1295
  var TabsContext = (0, import_react11.createContext)(null);
1314
1296
  function Tabs(props) {
1315
1297
  const { cache, active, id, palette } = props;
@@ -1323,7 +1305,7 @@ function Tabs(props) {
1323
1305
  tabs: tabsList,
1324
1306
  id: uuid,
1325
1307
  active: activeTab,
1326
- styles: (0, import_recipes21.tabs)({ palette }),
1308
+ styles: (0, import_recipes20.tabs)({ palette }),
1327
1309
  onTabUpdate: setActiveTab
1328
1310
  }),
1329
1311
  [activeTab, setActiveTab, palette, uuid, tabsList]
@@ -1341,7 +1323,7 @@ function Tabs(props) {
1341
1323
  window.localStorage.setItem(uuid, activeTab);
1342
1324
  }
1343
1325
  }, [activeTab, cache]);
1344
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TabsContext.Provider, { value, children: props.children });
1326
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TabsContext.Provider, { value, children: props.children });
1345
1327
  }
1346
1328
  function useTabsContext() {
1347
1329
  const context = (0, import_react11.useContext)(TabsContext);
@@ -1352,7 +1334,7 @@ function useTabsContext() {
1352
1334
  }
1353
1335
 
1354
1336
  // src/components/Tab.tsx
1355
- var import_css25 = require("@cerberus/styled-system/css");
1337
+ var import_css24 = require("@cerberus/styled-system/css");
1356
1338
 
1357
1339
  // src/aria-helpers/tabs.aria.ts
1358
1340
  var import_react12 = require("react");
@@ -1411,7 +1393,7 @@ function useTabsKeyboardNavigation() {
1411
1393
  }
1412
1394
 
1413
1395
  // src/components/Tab.tsx
1414
- var import_jsx_runtime31 = require("react/jsx-runtime");
1396
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1415
1397
  function Tab(props) {
1416
1398
  const { value, ...nativeProps } = props;
1417
1399
  const { active, onTabUpdate, styles } = useTabsContext();
@@ -1423,7 +1405,7 @@ function Tab(props) {
1423
1405
  (_a = props.onClick) == null ? void 0 : _a.call(props, e);
1424
1406
  startTransition(() => onTabUpdate(e.currentTarget.value));
1425
1407
  }
1426
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1408
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1427
1409
  "button",
1428
1410
  {
1429
1411
  ...nativeProps,
@@ -1432,7 +1414,7 @@ function Tab(props) {
1432
1414
  "aria-busy": isPending,
1433
1415
  "aria-selected": isActive,
1434
1416
  id: value,
1435
- className: (0, import_css25.cx)(nativeProps.className, styles.tab),
1417
+ className: (0, import_css24.cx)(nativeProps.className, styles.tab),
1436
1418
  onClick: handleClick,
1437
1419
  role: "tab",
1438
1420
  ref,
@@ -1442,20 +1424,20 @@ function Tab(props) {
1442
1424
  }
1443
1425
 
1444
1426
  // src/components/TabList.tsx
1445
- var import_css26 = require("@cerberus/styled-system/css");
1446
- var import_patterns12 = require("@cerberus/styled-system/patterns");
1447
- var import_jsx_runtime32 = require("react/jsx-runtime");
1427
+ var import_css25 = require("@cerberus/styled-system/css");
1428
+ var import_patterns11 = require("@cerberus/styled-system/patterns");
1429
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1448
1430
  function TabList(props) {
1449
1431
  const { description, ...nativeProps } = props;
1450
1432
  const { id, styles } = useTabsContext();
1451
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1433
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1452
1434
  "div",
1453
1435
  {
1454
1436
  ...nativeProps,
1455
1437
  "aria-describedby": description,
1456
- className: (0, import_css26.cx)(
1438
+ className: (0, import_css25.cx)(
1457
1439
  nativeProps.className,
1458
- (0, import_patterns12.hstack)({
1440
+ (0, import_patterns11.hstack)({
1459
1441
  gap: "0"
1460
1442
  }),
1461
1443
  styles.tabList
@@ -1466,20 +1448,20 @@ function TabList(props) {
1466
1448
  }
1467
1449
 
1468
1450
  // src/components/TabPanel.tsx
1469
- var import_css27 = require("@cerberus/styled-system/css");
1451
+ var import_css26 = require("@cerberus/styled-system/css");
1470
1452
  var import_react14 = require("react");
1471
- var import_jsx_runtime33 = require("react/jsx-runtime");
1453
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1472
1454
  function TabPanel(props) {
1473
1455
  const { tab, ...nativeProps } = props;
1474
1456
  const { active, styles } = useTabsContext();
1475
1457
  const isActive = (0, import_react14.useMemo)(() => active === tab, [active, tab]);
1476
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Show, { when: isActive, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1458
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Show, { when: isActive, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1477
1459
  "div",
1478
1460
  {
1479
1461
  ...nativeProps,
1480
1462
  ...isActive && { tabIndex: 0 },
1481
1463
  "aria-labelledby": tab,
1482
- className: (0, import_css27.cx)(nativeProps.className, styles.tabPanel),
1464
+ className: (0, import_css26.cx)(nativeProps.className, styles.tabPanel),
1483
1465
  id: `panel:${tab}`,
1484
1466
  role: "tabpanel"
1485
1467
  }
@@ -1487,60 +1469,60 @@ function TabPanel(props) {
1487
1469
  }
1488
1470
 
1489
1471
  // src/components/Table.tsx
1490
- var import_css28 = require("@cerberus/styled-system/css");
1491
- var import_recipes22 = require("@cerberus/styled-system/recipes");
1492
- var import_jsx_runtime34 = require("react/jsx-runtime");
1472
+ var import_css27 = require("@cerberus/styled-system/css");
1473
+ var import_recipes21 = require("@cerberus/styled-system/recipes");
1474
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1493
1475
  function Table(props) {
1494
1476
  const { caption, children, ...nativeProps } = props;
1495
- const styles = (0, import_recipes22.table)();
1496
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1477
+ const styles = (0, import_recipes21.table)();
1478
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1497
1479
  "table",
1498
1480
  {
1499
1481
  ...nativeProps,
1500
- className: (0, import_css28.cx)(nativeProps.className, styles.table),
1482
+ className: (0, import_css27.cx)(nativeProps.className, styles.table),
1501
1483
  children: [
1502
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("caption", { className: styles.caption, children: caption }),
1484
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("caption", { className: styles.caption, children: caption }),
1503
1485
  children
1504
1486
  ]
1505
1487
  }
1506
1488
  ) });
1507
1489
  }
1508
1490
  function Tr(props) {
1509
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("tr", { ...props });
1491
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("tr", { ...props });
1510
1492
  }
1511
1493
 
1512
1494
  // src/components/Thead.tsx
1513
- var import_css29 = require("@cerberus/styled-system/css");
1514
- var import_recipes23 = require("@cerberus/styled-system/recipes");
1515
- var import_jsx_runtime35 = require("react/jsx-runtime");
1495
+ var import_css28 = require("@cerberus/styled-system/css");
1496
+ var import_recipes22 = require("@cerberus/styled-system/recipes");
1497
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1516
1498
  function Thead(props) {
1517
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("thead", { ...props, className: (0, import_css29.cx)(props.className, (0, import_recipes23.thead)()) });
1499
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { ...props, className: (0, import_css28.cx)(props.className, (0, import_recipes22.thead)()) });
1518
1500
  }
1519
1501
 
1520
1502
  // src/components/Th.tsx
1521
- var import_css30 = require("@cerberus/styled-system/css");
1522
- var import_recipes24 = require("@cerberus/styled-system/recipes");
1523
- var import_jsx_runtime36 = require("react/jsx-runtime");
1503
+ var import_css29 = require("@cerberus/styled-system/css");
1504
+ var import_recipes23 = require("@cerberus/styled-system/recipes");
1505
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1524
1506
  function Th(props) {
1525
1507
  const { size, onClick, ...nativeProps } = props;
1526
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1508
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1527
1509
  Show,
1528
1510
  {
1529
1511
  when: Boolean(onClick),
1530
- fallback: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1512
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1531
1513
  "th",
1532
1514
  {
1533
1515
  ...nativeProps,
1534
- className: (0, import_css30.cx)(nativeProps.className, (0, import_recipes24.th)({ size }))
1516
+ className: (0, import_css29.cx)(nativeProps.className, (0, import_recipes23.th)({ size }))
1535
1517
  }
1536
1518
  ),
1537
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1519
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1538
1520
  "button",
1539
1521
  {
1540
- className: (0, import_css30.cx)(
1522
+ className: (0, import_css29.cx)(
1541
1523
  nativeProps.className,
1542
- (0, import_recipes24.th)({ size }),
1543
- (0, import_css30.css)({
1524
+ (0, import_recipes23.th)({ size }),
1525
+ (0, import_css29.css)({
1544
1526
  alignItems: "center",
1545
1527
  display: "inline-flex",
1546
1528
  justifyContent: "space-between",
@@ -1557,18 +1539,18 @@ function Th(props) {
1557
1539
  }
1558
1540
 
1559
1541
  // src/components/Td.tsx
1560
- var import_css31 = require("@cerberus/styled-system/css");
1561
- var import_recipes25 = require("@cerberus/styled-system/recipes");
1562
- var import_jsx_runtime37 = require("react/jsx-runtime");
1542
+ var import_css30 = require("@cerberus/styled-system/css");
1543
+ var import_recipes24 = require("@cerberus/styled-system/recipes");
1544
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1563
1545
  function Td(props) {
1564
1546
  const { size, ...nativeProps } = props;
1565
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1547
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1566
1548
  "td",
1567
1549
  {
1568
1550
  ...nativeProps,
1569
- className: (0, import_css31.cx)(
1551
+ className: (0, import_css30.cx)(
1570
1552
  nativeProps.className,
1571
- (0, import_recipes25.td)({
1553
+ (0, import_recipes24.td)({
1572
1554
  size
1573
1555
  })
1574
1556
  )
@@ -1577,18 +1559,18 @@ function Td(props) {
1577
1559
  }
1578
1560
 
1579
1561
  // src/components/Tbody.tsx
1580
- var import_recipes26 = require("@cerberus/styled-system/recipes");
1581
- var import_css32 = require("@cerberus/styled-system/css");
1582
- var import_jsx_runtime38 = require("react/jsx-runtime");
1562
+ var import_recipes25 = require("@cerberus/styled-system/recipes");
1563
+ var import_css31 = require("@cerberus/styled-system/css");
1564
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1583
1565
  function Tbody(props) {
1584
1566
  const { decoration, ...nativeProps } = props;
1585
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1567
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1586
1568
  "tbody",
1587
1569
  {
1588
1570
  ...nativeProps,
1589
- className: (0, import_css32.cx)(
1571
+ className: (0, import_css31.cx)(
1590
1572
  nativeProps.className,
1591
- (0, import_recipes26.tbody)({
1573
+ (0, import_recipes25.tbody)({
1592
1574
  decoration
1593
1575
  })
1594
1576
  )
@@ -1598,22 +1580,22 @@ function Tbody(props) {
1598
1580
 
1599
1581
  // src/components/Tag.tsx
1600
1582
  var import_icons3 = require("@cerberus/icons");
1601
- var import_css33 = require("@cerberus/styled-system/css");
1602
- var import_recipes27 = require("@cerberus/styled-system/recipes");
1603
- var import_jsx_runtime39 = require("react/jsx-runtime");
1583
+ var import_css32 = require("@cerberus/styled-system/css");
1584
+ var import_recipes26 = require("@cerberus/styled-system/recipes");
1585
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1604
1586
  function Tag(props) {
1605
1587
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
1606
1588
  const palette = (props == null ? void 0 : props.palette) ?? "page";
1607
1589
  const isClosable = Boolean(onClick);
1608
1590
  const shape = isClosable ? "pill" : initShape;
1609
1591
  const closableStyles = isClosable ? closableCss : "";
1610
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1592
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1611
1593
  "span",
1612
1594
  {
1613
1595
  ...nativeProps,
1614
- className: (0, import_css33.cx)(
1596
+ className: (0, import_css32.cx)(
1615
1597
  nativeProps.className,
1616
- (0, import_recipes27.tag)({
1598
+ (0, import_recipes26.tag)({
1617
1599
  gradient,
1618
1600
  palette,
1619
1601
  shape,
@@ -1623,47 +1605,47 @@ function Tag(props) {
1623
1605
  ),
1624
1606
  children: [
1625
1607
  props.children,
1626
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1608
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1627
1609
  "button",
1628
1610
  {
1629
1611
  "aria-label": "Close",
1630
- className: (0, import_recipes27.iconButton)({
1612
+ className: (0, import_recipes26.iconButton)({
1631
1613
  palette: "action",
1632
1614
  usage: "filled",
1633
1615
  size: "sm"
1634
1616
  }),
1635
1617
  onClick,
1636
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons3.Close, {})
1618
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons3.Close, {})
1637
1619
  }
1638
1620
  ) })
1639
1621
  ]
1640
1622
  }
1641
1623
  );
1642
1624
  }
1643
- var closableCss = (0, import_css33.css)({
1625
+ var closableCss = (0, import_css32.css)({
1644
1626
  bgColor: "action.bg.active",
1645
1627
  color: "action.text.initial",
1646
1628
  paddingInlineEnd: "0"
1647
1629
  });
1648
1630
 
1649
1631
  // src/components/Textarea.tsx
1650
- var import_css34 = require("@cerberus/styled-system/css");
1651
- var import_recipes28 = require("@cerberus/styled-system/recipes");
1652
- var import_jsx_runtime40 = require("react/jsx-runtime");
1632
+ var import_css33 = require("@cerberus/styled-system/css");
1633
+ var import_recipes27 = require("@cerberus/styled-system/recipes");
1634
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1653
1635
  function Textarea(props) {
1654
1636
  const { describedBy, ...nativeProps } = props;
1655
1637
  const { invalid, ...fieldState } = useFieldContext();
1656
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1638
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1657
1639
  "textarea",
1658
1640
  {
1659
1641
  ...nativeProps,
1660
1642
  ...fieldState,
1661
1643
  ...describedBy && { "aria-describedby": describedBy },
1662
1644
  ...invalid && { "aria-invalid": true },
1663
- className: (0, import_css34.cx)(
1645
+ className: (0, import_css33.cx)(
1664
1646
  props.className,
1665
- (0, import_recipes28.input)().input,
1666
- (0, import_css34.css)({
1647
+ (0, import_recipes27.input)().input,
1648
+ (0, import_css33.css)({
1667
1649
  pxi: "2",
1668
1650
  py: "2",
1669
1651
  resize: "vertical"
@@ -1675,43 +1657,43 @@ function Textarea(props) {
1675
1657
  }
1676
1658
 
1677
1659
  // src/components/Toggle.tsx
1678
- var import_css35 = require("@cerberus/styled-system/css");
1679
- var import_patterns13 = require("@cerberus/styled-system/patterns");
1680
- var import_recipes29 = require("@cerberus/styled-system/recipes");
1681
- var import_jsx_runtime41 = require("react/jsx-runtime");
1660
+ var import_css34 = require("@cerberus/styled-system/css");
1661
+ var import_patterns12 = require("@cerberus/styled-system/patterns");
1662
+ var import_recipes28 = require("@cerberus/styled-system/recipes");
1663
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1682
1664
  function Toggle(props) {
1683
1665
  const { size, describedBy, ...nativeProps } = props;
1684
- const styles = (0, import_recipes29.toggle)({ size });
1666
+ const styles = (0, import_recipes28.toggle)({ size });
1685
1667
  const { invalid, ...state } = useFieldContext();
1686
1668
  const Icon = $cerberusIcons.toggleChecked;
1687
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1669
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
1688
1670
  "span",
1689
1671
  {
1690
- className: (0, import_css35.cx)("group", styles.track, (0, import_patterns13.hstack)()),
1672
+ className: (0, import_css34.cx)("group", styles.track, (0, import_patterns12.hstack)()),
1691
1673
  "data-checked": props.checked || props.defaultChecked,
1692
1674
  children: [
1693
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1675
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1694
1676
  "input",
1695
1677
  {
1696
1678
  ...nativeProps,
1697
1679
  ...state,
1698
1680
  ...describedBy && { "aria-describedby": describedBy },
1699
1681
  ...invalid && { "aria-invalid": true },
1700
- className: (0, import_css35.cx)("peer", styles.input),
1682
+ className: (0, import_css34.cx)("peer", styles.input),
1701
1683
  role: "switch",
1702
1684
  type: "checkbox"
1703
1685
  }
1704
1686
  ),
1705
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1687
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1706
1688
  "span",
1707
1689
  {
1708
- className: (0, import_css35.cx)(
1690
+ className: (0, import_css34.cx)(
1709
1691
  styles.thumb,
1710
- (0, import_patterns13.vstack)({
1692
+ (0, import_patterns12.vstack)({
1711
1693
  justify: "center"
1712
1694
  })
1713
1695
  ),
1714
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, {})
1696
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, {})
1715
1697
  }
1716
1698
  )
1717
1699
  ]
@@ -1721,8 +1703,8 @@ function Toggle(props) {
1721
1703
 
1722
1704
  // src/context/confirm-modal.tsx
1723
1705
  var import_react16 = require("react");
1724
- var import_css36 = require("@cerberus/styled-system/css");
1725
- var import_patterns14 = require("@cerberus/styled-system/patterns");
1706
+ var import_css35 = require("@cerberus/styled-system/css");
1707
+ var import_patterns13 = require("@cerberus/styled-system/patterns");
1726
1708
 
1727
1709
  // src/hooks/useModal.ts
1728
1710
  var import_react15 = require("react");
@@ -1746,7 +1728,7 @@ function useModal() {
1746
1728
  }
1747
1729
 
1748
1730
  // src/context/confirm-modal.tsx
1749
- var import_jsx_runtime42 = require("react/jsx-runtime");
1731
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1750
1732
  var ConfirmModalContext = (0, import_react16.createContext)(null);
1751
1733
  function ConfirmModal(props) {
1752
1734
  const { modalRef, show, close } = useModal();
@@ -1786,33 +1768,58 @@ function ConfirmModal(props) {
1786
1768
  }),
1787
1769
  [handleShow]
1788
1770
  );
1789
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(ConfirmModalContext.Provider, { value, children: [
1771
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(ConfirmModalContext.Provider, { value, children: [
1790
1772
  props.children,
1791
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
1792
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(ModalHeader, { children: [
1793
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1794
- Show,
1773
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
1774
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(ModalHeader, { children: [
1775
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1776
+ "div",
1795
1777
  {
1796
- when: palette === "danger",
1797
- fallback: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalIcon, { palette: "action", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ConfirmIcon, { size: 24 }) }),
1798
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalIcon, { palette: "danger", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ConfirmIcon, { size: 24 }) })
1778
+ className: (0, import_patterns13.hstack)({
1779
+ justify: "center",
1780
+ w: "full"
1781
+ }),
1782
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1783
+ Show,
1784
+ {
1785
+ when: palette === "danger",
1786
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1787
+ Avatar,
1788
+ {
1789
+ ariaLabel: "",
1790
+ gradient: "light-purple",
1791
+ icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ConfirmIcon, { size: 24 }),
1792
+ src: ""
1793
+ }
1794
+ ),
1795
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1796
+ Avatar,
1797
+ {
1798
+ ariaLabel: "",
1799
+ gradient: "red",
1800
+ icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ConfirmIcon, { size: 24 }),
1801
+ src: ""
1802
+ }
1803
+ )
1804
+ }
1805
+ )
1799
1806
  }
1800
1807
  ),
1801
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
1802
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
1808
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
1809
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
1803
1810
  ] }),
1804
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1811
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1805
1812
  "div",
1806
1813
  {
1807
- className: (0, import_patterns14.hstack)({
1814
+ className: (0, import_patterns13.hstack)({
1808
1815
  gap: "4"
1809
1816
  }),
1810
1817
  children: [
1811
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1818
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1812
1819
  Button,
1813
1820
  {
1814
1821
  autoFocus: true,
1815
- className: (0, import_css36.css)({
1822
+ className: (0, import_css35.css)({
1816
1823
  w: "1/2"
1817
1824
  }),
1818
1825
  name: "confirm",
@@ -1822,10 +1829,10 @@ function ConfirmModal(props) {
1822
1829
  children: content == null ? void 0 : content.actionText
1823
1830
  }
1824
1831
  ),
1825
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1832
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1826
1833
  Button,
1827
1834
  {
1828
- className: (0, import_css36.css)({
1835
+ className: (0, import_css35.css)({
1829
1836
  w: "1/2"
1830
1837
  }),
1831
1838
  name: "cancel",
@@ -1853,14 +1860,14 @@ function useConfirmModal() {
1853
1860
 
1854
1861
  // src/context/notification-center.tsx
1855
1862
  var import_react17 = require("react");
1856
- var import_patterns15 = require("@cerberus/styled-system/patterns");
1857
- var import_recipes30 = require("@cerberus/styled-system/recipes");
1858
- var import_css37 = require("@cerberus/styled-system/css");
1859
- var import_jsx_runtime43 = require("react/jsx-runtime");
1863
+ var import_patterns14 = require("@cerberus/styled-system/patterns");
1864
+ var import_recipes29 = require("@cerberus/styled-system/recipes");
1865
+ var import_css36 = require("@cerberus/styled-system/css");
1866
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1860
1867
  var NotificationsContext = (0, import_react17.createContext)(null);
1861
1868
  function NotificationCenter(props) {
1862
1869
  const [activeNotifications, setActiveNotifications] = (0, import_react17.useState)([]);
1863
- const styles = (0, import_recipes30.notification)();
1870
+ const styles = (0, import_recipes29.notification)();
1864
1871
  const handleNotify = (0, import_react17.useCallback)((options) => {
1865
1872
  setActiveNotifications((prev) => {
1866
1873
  const id = `${options.palette}:${prev.length + 1}`;
@@ -1889,13 +1896,13 @@ function NotificationCenter(props) {
1889
1896
  }),
1890
1897
  [handleNotify]
1891
1898
  );
1892
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(NotificationsContext.Provider, { value, children: [
1899
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(NotificationsContext.Provider, { value, children: [
1893
1900
  props.children,
1894
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Show, { when: activeNotifications.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: styles.center, children: [
1895
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Show, { when: activeNotifications.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1901
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: activeNotifications.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: styles.center, children: [
1902
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: activeNotifications.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1896
1903
  Button,
1897
1904
  {
1898
- className: (0, import_css37.cx)(styles.closeAll, (0, import_patterns15.animateIn)()),
1905
+ className: (0, import_css36.cx)(styles.closeAll, (0, import_patterns14.animateIn)()),
1899
1906
  onClick: handleCloseAll,
1900
1907
  palette: "action",
1901
1908
  shape: "rounded",
@@ -1904,17 +1911,17 @@ function NotificationCenter(props) {
1904
1911
  children: "Close all"
1905
1912
  }
1906
1913
  ) }),
1907
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1914
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1908
1915
  "div",
1909
1916
  {
1910
- className: (0, import_patterns15.vstack)({
1917
+ className: (0, import_patterns14.vstack)({
1911
1918
  alignItems: "flex-end",
1912
1919
  gap: "4"
1913
1920
  }),
1914
1921
  style: {
1915
1922
  alignItems: "flex-end"
1916
1923
  },
1917
- children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1924
+ children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1918
1925
  Notification,
1919
1926
  {
1920
1927
  id: option.id,
@@ -1922,8 +1929,8 @@ function NotificationCenter(props) {
1922
1929
  open: true,
1923
1930
  palette: option.palette,
1924
1931
  children: [
1925
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NotificationHeading, { palette: option.palette, children: option.heading }),
1926
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NotificationDescription, { palette: option.palette, children: option.description })
1932
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NotificationHeading, { palette: option.palette, children: option.heading }),
1933
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NotificationDescription, { palette: option.palette, children: option.description })
1927
1934
  ]
1928
1935
  },
1929
1936
  option.id
@@ -1945,9 +1952,9 @@ function useNotificationCenter() {
1945
1952
 
1946
1953
  // src/context/prompt-modal.tsx
1947
1954
  var import_react18 = require("react");
1948
- var import_css38 = require("@cerberus/styled-system/css");
1949
- var import_patterns16 = require("@cerberus/styled-system/patterns");
1950
- var import_jsx_runtime44 = require("react/jsx-runtime");
1955
+ var import_css37 = require("@cerberus/styled-system/css");
1956
+ var import_patterns15 = require("@cerberus/styled-system/patterns");
1957
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1951
1958
  var PromptModalContext = (0, import_react18.createContext)(null);
1952
1959
  function PromptModal(props) {
1953
1960
  const { modalRef, show, close } = useModal();
@@ -1997,36 +2004,61 @@ function PromptModal(props) {
1997
2004
  }),
1998
2005
  [handleShow]
1999
2006
  );
2000
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(PromptModalContext.Provider, { value, children: [
2007
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(PromptModalContext.Provider, { value, children: [
2001
2008
  props.children,
2002
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2003
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(ModalHeader, { children: [
2004
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2005
- Show,
2009
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2010
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(ModalHeader, { children: [
2011
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2012
+ "div",
2006
2013
  {
2007
- when: palette === "danger",
2008
- fallback: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalIcon, { palette: "action", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PromptIcon, { size: 24 }) }),
2009
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalIcon, { palette: "danger", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PromptIcon, { size: 24 }) })
2014
+ className: (0, import_patterns15.hstack)({
2015
+ justify: "center",
2016
+ w: "full"
2017
+ }),
2018
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2019
+ Show,
2020
+ {
2021
+ when: palette === "danger",
2022
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2023
+ Avatar,
2024
+ {
2025
+ ariaLabel: "",
2026
+ gradient: "light-purple",
2027
+ icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PromptIcon, { size: 24 }),
2028
+ src: ""
2029
+ }
2030
+ ),
2031
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2032
+ Avatar,
2033
+ {
2034
+ ariaLabel: "",
2035
+ gradient: "red",
2036
+ icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PromptIcon, { size: 24 }),
2037
+ src: ""
2038
+ }
2039
+ )
2040
+ }
2041
+ )
2010
2042
  }
2011
2043
  ),
2012
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2013
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2044
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2045
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2014
2046
  ] }),
2015
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2047
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2016
2048
  "div",
2017
2049
  {
2018
- className: (0, import_patterns16.vstack)({
2050
+ className: (0, import_patterns15.vstack)({
2019
2051
  alignItems: "flex-start",
2020
2052
  mt: "4",
2021
2053
  mb: "8"
2022
2054
  }),
2023
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Field, { invalid: !isValid, children: [
2024
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Label, { htmlFor: "confirm", size: "md", children: [
2055
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Field, { invalid: !isValid, children: [
2056
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Label, { htmlFor: "confirm", size: "md", children: [
2025
2057
  "Type",
2026
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2058
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2027
2059
  "strong",
2028
2060
  {
2029
- className: (0, import_css38.css)({
2061
+ className: (0, import_css37.css)({
2030
2062
  textTransform: "uppercase"
2031
2063
  }),
2032
2064
  children: content == null ? void 0 : content.key
@@ -2034,7 +2066,7 @@ function PromptModal(props) {
2034
2066
  ),
2035
2067
  "to confirm"
2036
2068
  ] }),
2037
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2069
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2038
2070
  Input,
2039
2071
  {
2040
2072
  id: "confirm",
@@ -2046,19 +2078,19 @@ function PromptModal(props) {
2046
2078
  ] })
2047
2079
  }
2048
2080
  ),
2049
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2081
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2050
2082
  "div",
2051
2083
  {
2052
- className: (0, import_patterns16.hstack)({
2084
+ className: (0, import_patterns15.hstack)({
2053
2085
  justifyContent: "stretch",
2054
2086
  gap: "4"
2055
2087
  }),
2056
2088
  children: [
2057
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2089
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2058
2090
  Button,
2059
2091
  {
2060
2092
  autoFocus: true,
2061
- className: (0, import_css38.css)({
2093
+ className: (0, import_css37.css)({
2062
2094
  w: "1/2"
2063
2095
  }),
2064
2096
  disabled: !isValid,
@@ -2069,10 +2101,10 @@ function PromptModal(props) {
2069
2101
  children: content == null ? void 0 : content.actionText
2070
2102
  }
2071
2103
  ),
2072
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2104
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2073
2105
  Button,
2074
2106
  {
2075
- className: (0, import_css38.css)({
2107
+ className: (0, import_css37.css)({
2076
2108
  w: "1/2"
2077
2109
  }),
2078
2110
  name: "cancel",
@@ -2147,7 +2179,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light") {
2147
2179
  }
2148
2180
 
2149
2181
  // src/context/theme.tsx
2150
- var import_jsx_runtime45 = require("react/jsx-runtime");
2182
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2151
2183
  var THEME_KEY = "cerberus-theme";
2152
2184
  var MODE_KEY = "cerberus-mode";
2153
2185
  var ThemeContext = (0, import_react20.createContext)(
@@ -2155,7 +2187,7 @@ var ThemeContext = (0, import_react20.createContext)(
2155
2187
  );
2156
2188
  function ThemeProvider(props) {
2157
2189
  const state = useTheme();
2158
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ThemeContext.Provider, { value: state, children: props.children });
2190
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ThemeContext.Provider, { value: state, children: props.children });
2159
2191
  }
2160
2192
  function useThemeContext() {
2161
2193
  const context = (0, import_react20.useContext)(ThemeContext);
@@ -2207,7 +2239,6 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
2207
2239
  ModalDescription,
2208
2240
  ModalHeader,
2209
2241
  ModalHeading,
2210
- ModalIcon,
2211
2242
  NavMenu,
2212
2243
  NavMenuLink,
2213
2244
  NavMenuList,