@cambly/syntax-core 5.7.0 → 5.9.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
@@ -575,11 +575,11 @@ var ButtonGroup = ({
575
575
  size = "md",
576
576
  children
577
577
  }) => {
578
- const classnames2 = (0, import_classnames5.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
578
+ const classnames3 = (0, import_classnames5.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
579
579
  [ButtonGroup_module_default.horizontal]: orientation === "horizontal",
580
580
  [ButtonGroup_module_default.vertical]: orientation === "vertical"
581
581
  });
582
- return /* @__PURE__ */ jsx6("div", { className: classnames2, children });
582
+ return /* @__PURE__ */ jsx6("div", { className: classnames3, children });
583
583
  };
584
584
  var ButtonGroup_default = ButtonGroup;
585
585
 
@@ -590,7 +590,7 @@ var Card = ({
590
590
  size = "sm",
591
591
  "data-testid": dataTestId
592
592
  }) => {
593
- const sizeWidth = {
593
+ const sizeWidth2 = {
594
594
  sm: 352,
595
595
  lg: 744
596
596
  };
@@ -600,7 +600,7 @@ var Card = ({
600
600
  rounding: "xl",
601
601
  padding: 7,
602
602
  smPadding: 9,
603
- maxWidth: sizeWidth[size],
603
+ maxWidth: sizeWidth2[size],
604
604
  width: "100%",
605
605
  backgroundColor: "white",
606
606
  "data-testid": dataTestId,
@@ -743,7 +743,7 @@ function setupGlobalFocusEvents() {
743
743
  return;
744
744
  }
745
745
  const { focus } = HTMLElement.prototype;
746
- HTMLElement.prototype.focus = function focusElement(...args) {
746
+ HTMLElement.prototype.focus = function focusElement2(...args) {
747
747
  hasEventBeforeFocus = true;
748
748
  focus.apply(this, args);
749
749
  };
@@ -778,7 +778,7 @@ function useFocusVisible() {
778
778
  }
779
779
 
780
780
  // css-module:./Checkbox.module.css#css-module
781
- var Checkbox_module_default = { "mainContainer": "_mainContainer_1jq7b_1", "checkboxContainer": "_checkboxContainer_1jq7b_8", "inputOverlay": "_inputOverlay_1jq7b_13", "checkbox": "_checkbox_1jq7b_8", "uncheckedBox": "_uncheckedBox_1jq7b_30", "uncheckedBorder": "_uncheckedBorder_1jq7b_34", "uncheckedErrorBorder": "_uncheckedErrorBorder_1jq7b_38", "checkedBox": "_checkedBox_1jq7b_42", "checkedNonError": "_checkedNonError_1jq7b_46", "checkedError": "_checkedError_1jq7b_50", "sm": "_sm_1jq7b_54", "md": "_md_1jq7b_60" };
781
+ var Checkbox_module_default = { "mainContainer": "_mainContainer_12k0x_1", "inputOverlay": "_inputOverlay_12k0x_8", "checkbox": "_checkbox_12k0x_14", "disabled": "_disabled_12k0x_22", "cursorDisabled": "_cursorDisabled_12k0x_26", "cursorEnabled": "_cursorEnabled_12k0x_30", "uncheckedBox": "_uncheckedBox_12k0x_34", "uncheckedBorder": "_uncheckedBorder_12k0x_38", "uncheckedErrorBorder": "_uncheckedErrorBorder_12k0x_42", "checkedBox": "_checkedBox_12k0x_46", "checkedNonError": "_checkedNonError_12k0x_50", "checkedError": "_checkedError_12k0x_54", "sm": "_sm_12k0x_58", "md": "_md_12k0x_64" };
782
782
 
783
783
  // css-module:../Focus.module.css#css-module
784
784
  var Focus_module_default = { "accessibilityOutlineFocus": "_accessibilityOutlineFocus_1h8bq_1" };
@@ -815,42 +815,56 @@ var Checkbox = ({
815
815
  [Checkbox_module_default.checkedError]: error,
816
816
  [Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
817
817
  });
818
- return /* @__PURE__ */ jsxs2("label", { className: (0, import_classnames7.default)(Checkbox_module_default.mainContainer), children: [
819
- /* @__PURE__ */ jsxs2("div", { className: Checkbox_module_default.checkboxContainer, children: [
820
- /* @__PURE__ */ jsx11(
821
- "input",
818
+ return /* @__PURE__ */ jsxs2(
819
+ "label",
820
+ {
821
+ className: (0, import_classnames7.default)(
822
+ Checkbox_module_default.mainContainer,
823
+ Checkbox_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
822
824
  {
823
- "data-testid": dataTestId,
824
- type: "checkbox",
825
- className: (0, import_classnames7.default)(Checkbox_module_default.inputOverlay, Checkbox_module_default[size]),
826
- checked,
827
- onChange,
828
- disabled,
829
- onFocus: () => {
830
- setIsFocused(true);
831
- },
832
- onBlur: () => {
833
- setIsFocused(false);
834
- }
825
+ [Checkbox_module_default.disabled]: disabled
835
826
  }
836
827
  ),
837
- /* @__PURE__ */ jsx11("div", { className: checked ? checkedStyling : uncheckedStyling, children: checked && /* @__PURE__ */ jsx11("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", width: iconWidth[size], children: /* @__PURE__ */ jsx11(
838
- "path",
839
- {
840
- fill: "#fff",
841
- d: "m9 16.2-3.5-3.5a.9839.9839 0 0 0-1.4 0c-.39.39-.39 1.01 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7c.39-.39.39-1.01 0-1.4a.9839.9839 0 0 0-1.4 0L9 16.2z"
842
- }
843
- ) }) })
844
- ] }),
845
- /* @__PURE__ */ jsx11(
846
- Typography_default,
847
- {
848
- size: typographySize[size],
849
- color: error ? "destructive-primary" : "gray800",
850
- children: label
851
- }
852
- )
853
- ] });
828
+ children: [
829
+ /* @__PURE__ */ jsx11("div", { className: checked ? checkedStyling : uncheckedStyling, children: checked && /* @__PURE__ */ jsx11("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", width: iconWidth[size], children: /* @__PURE__ */ jsx11(
830
+ "path",
831
+ {
832
+ fill: "#fff",
833
+ d: "m9 16.2-3.5-3.5a.9839.9839 0 0 0-1.4 0c-.39.39-.39 1.01 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7c.39-.39.39-1.01 0-1.4a.9839.9839 0 0 0-1.4 0L9 16.2z"
834
+ }
835
+ ) }) }),
836
+ /* @__PURE__ */ jsx11(
837
+ "input",
838
+ {
839
+ "data-testid": dataTestId,
840
+ type: "checkbox",
841
+ className: (0, import_classnames7.default)(
842
+ Checkbox_module_default.inputOverlay,
843
+ Checkbox_module_default[size],
844
+ Checkbox_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`]
845
+ ),
846
+ checked,
847
+ onChange,
848
+ disabled,
849
+ onFocus: () => {
850
+ setIsFocused(true);
851
+ },
852
+ onBlur: () => {
853
+ setIsFocused(false);
854
+ }
855
+ }
856
+ ),
857
+ /* @__PURE__ */ jsx11(
858
+ Typography_default,
859
+ {
860
+ size: typographySize[size],
861
+ color: error ? "destructive-primary" : "gray800",
862
+ children: label
863
+ }
864
+ )
865
+ ]
866
+ }
867
+ );
854
868
  };
855
869
  var Checkbox_default = Checkbox;
856
870
 
@@ -864,15 +878,207 @@ var MiniActionCard = ({
864
878
  }) => /* @__PURE__ */ jsx12("div", { className: MiniActionCard_module_default.miniActionCard, children });
865
879
  var MiniActionCard_default = MiniActionCard;
866
880
 
867
- // src/RadioButton/RadioButton.tsx
881
+ // src/Modal/Modal.tsx
868
882
  var import_classnames8 = __toESM(require_classnames());
883
+
884
+ // src/Modal/FocusTrap.tsx
885
+ import { useEffect as useEffect2, useRef } from "react";
886
+ import { jsx as jsx13 } from "react/jsx-runtime";
887
+ function queryFocusableAll(el) {
888
+ const selector = [
889
+ "a[href]",
890
+ "area[href]",
891
+ "input:not([disabled])",
892
+ "select:not([disabled])",
893
+ "textarea:not([disabled])",
894
+ "button:not([disabled])",
895
+ "iframe",
896
+ "object",
897
+ "embed",
898
+ '[tabindex="-1"]',
899
+ '[tabindex="0"]',
900
+ "[contenteditable]",
901
+ "audio[controls]",
902
+ "video[controls]",
903
+ "summary"
904
+ ].join(",");
905
+ return el.querySelectorAll(selector);
906
+ }
907
+ var focusElement = (el) => {
908
+ if (typeof el.focus === "function") {
909
+ el.focus();
910
+ }
911
+ };
912
+ function FocusTrap({
913
+ children
914
+ }) {
915
+ const elRef = useRef(null);
916
+ const previouslyFocusedElRef = useRef(null);
917
+ useEffect2(() => {
918
+ const { current: element } = elRef;
919
+ const focusFirstChild = () => {
920
+ const withinIframe = window !== window.parent;
921
+ if (element && !withinIframe) {
922
+ focusElement(queryFocusableAll(element)[0]);
923
+ }
924
+ };
925
+ const handleFocus = (event) => {
926
+ if (!element || event.target instanceof Node && element.contains(event.target)) {
927
+ return;
928
+ }
929
+ if (event.target instanceof Element && event.target.closest('[data-testid="syntax-focus-trap"]') !== null) {
930
+ return;
931
+ }
932
+ event.stopPropagation();
933
+ event.preventDefault();
934
+ focusFirstChild();
935
+ };
936
+ previouslyFocusedElRef.current = document.activeElement;
937
+ focusFirstChild();
938
+ document.addEventListener("focus", handleFocus, true);
939
+ return function cleanup() {
940
+ const { current: previouslyFocusedEl } = previouslyFocusedElRef;
941
+ document.removeEventListener("focus", handleFocus, true);
942
+ if (previouslyFocusedEl) {
943
+ focusElement(previouslyFocusedEl);
944
+ }
945
+ };
946
+ }, [elRef, previouslyFocusedElRef]);
947
+ return /* @__PURE__ */ jsx13("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
948
+ }
949
+
950
+ // src/Modal/StopScroll.tsx
951
+ import { useEffect as useEffect3 } from "react";
952
+ function StopScroll(props) {
953
+ useEffect3(() => {
954
+ const originalStyle = window.getComputedStyle(document.body).overflow;
955
+ document.body.style.overflow = "hidden";
956
+ return () => {
957
+ document.body.style.overflow = originalStyle;
958
+ };
959
+ }, []);
960
+ return props.children;
961
+ }
962
+
963
+ // src/Modal/Layer.tsx
964
+ import { createPortal } from "react-dom";
965
+ import { jsx as jsx14 } from "react/jsx-runtime";
966
+ function Layer({
967
+ children,
968
+ zIndex = 1
969
+ }) {
970
+ return createPortal(
971
+ /* @__PURE__ */ jsx14(
972
+ Box_default,
973
+ {
974
+ "data-testid": "syntax-layer",
975
+ position: "fixed",
976
+ dangerouslySetInlineStyle: {
977
+ __style: { zIndex, inset: 0 }
978
+ },
979
+ children
980
+ }
981
+ ),
982
+ document.body
983
+ );
984
+ }
985
+
986
+ // css-module:./Modal.module.css#css-module
987
+ var Modal_module_default = { "backdrop": "_backdrop_30t3h_1", "closeButton": "_closeButton_30t3h_12", "closeButtonWithImage": "_closeButtonWithImage_30t3h_32" };
988
+
989
+ // src/Modal/Modal.tsx
990
+ import { jsx as jsx15, jsxs as jsxs3 } from "react/jsx-runtime";
991
+ function XIcon({ color = "#000" }) {
992
+ return /* @__PURE__ */ jsx15("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ jsx15(
993
+ "path",
994
+ {
995
+ fill: "inherit",
996
+ d: "M11.25.758a.83.83 0 0 0-1.175 0L6 4.825 1.925.75A.83.83 0 1 0 .75 1.925L4.825 6 .75 10.075a.83.83 0 1 0 1.175 1.175L6 7.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L7.175 6l4.075-4.075a.835.835 0 0 0 0-1.167Z"
997
+ }
998
+ ) });
999
+ }
1000
+ var sizeWidth = {
1001
+ sm: 400,
1002
+ lg: 600
1003
+ };
1004
+ function Modal({
1005
+ header,
1006
+ children,
1007
+ image,
1008
+ onDismiss,
1009
+ footer,
1010
+ accessibilityCloseLabel = "close modal",
1011
+ size = "sm",
1012
+ zIndex = 1,
1013
+ "data-testid": dataTestId
1014
+ }) {
1015
+ return /* @__PURE__ */ jsx15(Layer, { zIndex, children: /* @__PURE__ */ jsx15(StopScroll, { children: /* @__PURE__ */ jsx15(FocusTrap, { children: /* @__PURE__ */ jsx15(
1016
+ "div",
1017
+ {
1018
+ className: Modal_module_default.backdrop,
1019
+ role: "presentation",
1020
+ onClick: (e) => e.target === e.currentTarget && onDismiss(),
1021
+ onKeyDown: (e) => e.key === "Escape" && onDismiss(),
1022
+ children: /* @__PURE__ */ jsxs3(
1023
+ Box_default,
1024
+ {
1025
+ "data-testid": dataTestId,
1026
+ backgroundColor: "white",
1027
+ rounding: "xl",
1028
+ display: "flex",
1029
+ direction: "column",
1030
+ minWidth: 240,
1031
+ maxWidth: sizeWidth[size],
1032
+ width: "100%",
1033
+ dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
1034
+ children: [
1035
+ /* @__PURE__ */ jsx15(Box_default, { position: "relative", children: /* @__PURE__ */ jsx15(
1036
+ "button",
1037
+ {
1038
+ "aria-label": accessibilityCloseLabel,
1039
+ type: "button",
1040
+ className: (0, import_classnames8.default)(Modal_module_default.closeButton, {
1041
+ [Modal_module_default.closeButtonWithImage]: !!image
1042
+ }),
1043
+ onClick: onDismiss,
1044
+ children: /* @__PURE__ */ jsx15(XIcon, { color: image ? "#fff" : "#000" })
1045
+ }
1046
+ ) }),
1047
+ image && /* @__PURE__ */ jsx15(Box_default, { maxHeight: 200, children: image }),
1048
+ /* @__PURE__ */ jsxs3(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
1049
+ /* @__PURE__ */ jsx15(Heading_default, { as: "h1", size: 500, children: header }),
1050
+ /* @__PURE__ */ jsx15(Box_default, { marginBottom: 4, children }),
1051
+ footer && /* @__PURE__ */ jsx15(
1052
+ Box_default,
1053
+ {
1054
+ display: "flex",
1055
+ direction: "column",
1056
+ gap: 3,
1057
+ smDirection: "row",
1058
+ smJustifyContent: "end",
1059
+ lgDirection: "row",
1060
+ lgJustifyContent: "end",
1061
+ children: footer
1062
+ }
1063
+ )
1064
+ ] })
1065
+ ]
1066
+ }
1067
+ )
1068
+ }
1069
+ ) }) }) });
1070
+ }
1071
+ Modal.displayName = "Modal";
1072
+
1073
+ // src/RadioButton/RadioButton.tsx
1074
+ var import_classnames9 = __toESM(require_classnames());
869
1075
  import { useState as useState3 } from "react";
870
1076
 
871
1077
  // css-module:./RadioButton.module.css#css-module
872
- var RadioButton_module_default = { "radioBaseContainer": "_radioBaseContainer_1hf9h_1", "smBase": "_smBase_1hf9h_9", "mdBase": "_mdBase_1hf9h_14", "radioStyleOverride": "_radioStyleOverride_1hf9h_19", "smOverride": "_smOverride_1hf9h_25", "mdOverride": "_mdOverride_1hf9h_30", "background": "_background_1hf9h_35", "sm": "_sm_1hf9h_9", "md": "_md_1hf9h_14", "neutralBorder": "_neutralBorder_1hf9h_52", "smCheckedBorder": "_smCheckedBorder_1hf9h_56", "mdCheckedBorder": "_mdCheckedBorder_1hf9h_60", "errorBorderColor": "_errorBorderColor_1hf9h_64", "borderColor": "_borderColor_1hf9h_68" };
1078
+ var RadioButton_module_default = { "radioBaseContainer": "_radioBaseContainer_1yyn9_1", "disabled": "_disabled_1yyn9_9", "cursorDisabled": "_cursorDisabled_1yyn9_13", "cursorEnabled": "_cursorEnabled_1yyn9_17", "smBase": "_smBase_1yyn9_21", "mdBase": "_mdBase_1yyn9_25", "radioStyleOverride": "_radioStyleOverride_1yyn9_29", "smOverride": "_smOverride_1yyn9_34", "mdOverride": "_mdOverride_1yyn9_39", "background": "_background_1yyn9_44", "sm": "_sm_1yyn9_21", "md": "_md_1yyn9_25", "neutralBorder": "_neutralBorder_1yyn9_61", "smCheckedBorder": "_smCheckedBorder_1yyn9_65", "mdCheckedBorder": "_mdCheckedBorder_1yyn9_69", "errorBorderColor": "_errorBorderColor_1yyn9_73", "borderColor": "_borderColor_1yyn9_77" };
873
1079
 
874
1080
  // src/RadioButton/RadioButton.tsx
875
- import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
1081
+ import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
876
1082
  var RadioButton = ({
877
1083
  checked = false,
878
1084
  "data-testid": dataTestId,
@@ -887,39 +1093,48 @@ var RadioButton = ({
887
1093
  }) => {
888
1094
  const [isFocused, setIsFocused] = useState3(false);
889
1095
  const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
890
- const sharedStyles = (0, import_classnames8.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
1096
+ const sharedStyles = (0, import_classnames9.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
891
1097
  [RadioButton_module_default.errorBorderColor]: error,
892
1098
  [RadioButton_module_default.borderColor]: !error,
893
1099
  [Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
894
1100
  });
895
- return /* @__PURE__ */ jsxs3(
1101
+ return /* @__PURE__ */ jsxs4(
896
1102
  "label",
897
1103
  {
898
- className: (0, import_classnames8.default)(RadioButton_module_default.radioBaseContainer, {
899
- [RadioButton_module_default.smBase]: size === "sm",
900
- [RadioButton_module_default.mdBase]: size === "md"
901
- }),
1104
+ className: (0, import_classnames9.default)(
1105
+ RadioButton_module_default.radioBaseContainer,
1106
+ RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
1107
+ {
1108
+ [RadioButton_module_default.disabled]: disabled,
1109
+ [RadioButton_module_default.smBase]: size === "sm",
1110
+ [RadioButton_module_default.mdBase]: size === "md"
1111
+ }
1112
+ ),
902
1113
  children: [
903
- checked ? /* @__PURE__ */ jsx13(
1114
+ checked ? /* @__PURE__ */ jsx16(
904
1115
  "div",
905
1116
  {
906
- className: (0, import_classnames8.default)(sharedStyles, {
1117
+ className: (0, import_classnames9.default)(sharedStyles, {
907
1118
  [RadioButton_module_default.mdCheckedBorder]: size === "md",
908
1119
  [RadioButton_module_default.smCheckedBorder]: size === "sm"
909
1120
  })
910
1121
  }
911
- ) : /* @__PURE__ */ jsx13("div", { className: (0, import_classnames8.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
912
- /* @__PURE__ */ jsx13(
1122
+ ) : /* @__PURE__ */ jsx16("div", { className: (0, import_classnames9.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
1123
+ /* @__PURE__ */ jsx16(
913
1124
  "input",
914
1125
  {
915
1126
  "data-testid": dataTestId,
916
1127
  type: "radio",
917
1128
  id,
918
1129
  name,
919
- className: (0, import_classnames8.default)(RadioButton_module_default.radioStyleOverride, {
920
- [RadioButton_module_default.smOverride]: size === "sm",
921
- [RadioButton_module_default.mdOverride]: size === "md"
922
- }),
1130
+ className: (0, import_classnames9.default)(
1131
+ RadioButton_module_default.radioStyleOverride,
1132
+ RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
1133
+ {
1134
+ [RadioButton_module_default.smOverride]: size === "sm",
1135
+ [RadioButton_module_default.mdOverride]: size === "md"
1136
+ }
1137
+ ),
923
1138
  checked,
924
1139
  onChange,
925
1140
  disabled,
@@ -932,7 +1147,7 @@ var RadioButton = ({
932
1147
  }
933
1148
  }
934
1149
  ),
935
- label && /* @__PURE__ */ jsx13(
1150
+ label && /* @__PURE__ */ jsx16(
936
1151
  Typography_default,
937
1152
  {
938
1153
  size: size === "md" ? 200 : 100,
@@ -947,7 +1162,7 @@ var RadioButton = ({
947
1162
  var RadioButton_default = RadioButton;
948
1163
 
949
1164
  // src/SelectList/SelectList.tsx
950
- var import_classnames9 = __toESM(require_classnames());
1165
+ var import_classnames10 = __toESM(require_classnames());
951
1166
  import {
952
1167
  useId,
953
1168
  useState as useState4
@@ -961,17 +1176,17 @@ var ColorBaseGray800 = "#353535";
961
1176
  var SelectList_module_default = { "selectContainer": "_selectContainer_1u9cw_1", "opacityOverlay": "_opacityOverlay_1u9cw_7", "outerTextContainer": "_outerTextContainer_1u9cw_11", "selectWrapper": "_selectWrapper_1u9cw_16", "selectBox": "_selectBox_1u9cw_21", "selectMouseFocusStyling": "_selectMouseFocusStyling_1u9cw_35", "unselected": "_unselected_1u9cw_40", "selected": "_selected_1u9cw_44", "arrowIcon": "_arrowIcon_1u9cw_48", "sm": "_sm_1u9cw_62", "md": "_md_1u9cw_67", "lg": "_lg_1u9cw_72", "selectError": "_selectError_1u9cw_77" };
962
1177
 
963
1178
  // src/SelectList/SelectOption.tsx
964
- import { jsx as jsx14 } from "react/jsx-runtime";
1179
+ import { jsx as jsx17 } from "react/jsx-runtime";
965
1180
  var SelectOption = ({
966
1181
  "data-testid": dataTestId,
967
1182
  value,
968
1183
  label,
969
1184
  disabled = false
970
- }) => /* @__PURE__ */ jsx14("option", { "data-testid": dataTestId, value, disabled, children: label });
1185
+ }) => /* @__PURE__ */ jsx17("option", { "data-testid": dataTestId, value, disabled, children: label });
971
1186
  var SelectOption_default = SelectOption;
972
1187
 
973
1188
  // src/SelectList/SelectList.tsx
974
- import { jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
1189
+ import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
975
1190
  var iconSize3 = {
976
1191
  sm: 20,
977
1192
  md: 24,
@@ -992,22 +1207,22 @@ var SelectList = ({
992
1207
  const id = useId();
993
1208
  const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
994
1209
  const [isFocused, setIsFocused] = useState4(false);
995
- return /* @__PURE__ */ jsxs4(
1210
+ return /* @__PURE__ */ jsxs5(
996
1211
  "div",
997
1212
  {
998
- className: (0, import_classnames9.default)(SelectList_module_default.selectContainer, {
1213
+ className: (0, import_classnames10.default)(SelectList_module_default.selectContainer, {
999
1214
  [SelectList_module_default.opacityOverlay]: disabled
1000
1215
  }),
1001
1216
  children: [
1002
- label && /* @__PURE__ */ jsx15("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx15(Typography_default, { size: 100, color: "gray700", children: label }) }),
1003
- /* @__PURE__ */ jsxs4("div", { className: SelectList_module_default.selectWrapper, children: [
1004
- /* @__PURE__ */ jsxs4(
1217
+ label && /* @__PURE__ */ jsx18("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx18(Typography_default, { size: 100, color: "gray700", children: label }) }),
1218
+ /* @__PURE__ */ jsxs5("div", { className: SelectList_module_default.selectWrapper, children: [
1219
+ /* @__PURE__ */ jsxs5(
1005
1220
  "select",
1006
1221
  {
1007
1222
  id,
1008
1223
  "data-testid": dataTestId,
1009
1224
  disabled,
1010
- className: (0, import_classnames9.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
1225
+ className: (0, import_classnames10.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
1011
1226
  [SelectList_module_default.unselected]: !selectedValue && !errorText,
1012
1227
  [SelectList_module_default.selected]: selectedValue && !errorText,
1013
1228
  [SelectList_module_default.selectError]: errorText,
@@ -1022,19 +1237,19 @@ var SelectList = ({
1022
1237
  onFocus: () => setIsFocused(true),
1023
1238
  onBlur: () => setIsFocused(false),
1024
1239
  children: [
1025
- placeholderText && /* @__PURE__ */ jsx15("option", { disabled: true, value: placeholderText, children: placeholderText }),
1240
+ placeholderText && /* @__PURE__ */ jsx18("option", { disabled: true, value: placeholderText, children: placeholderText }),
1026
1241
  children
1027
1242
  ]
1028
1243
  }
1029
1244
  ),
1030
- /* @__PURE__ */ jsx15("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ jsx15(
1245
+ /* @__PURE__ */ jsx18("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ jsx18(
1031
1246
  "svg",
1032
1247
  {
1033
1248
  focusable: "false",
1034
1249
  "aria-hidden": "true",
1035
1250
  viewBox: "0 0 24 24",
1036
1251
  width: iconSize3[size],
1037
- children: /* @__PURE__ */ jsx15(
1252
+ children: /* @__PURE__ */ jsx18(
1038
1253
  "path",
1039
1254
  {
1040
1255
  fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
@@ -1044,7 +1259,7 @@ var SelectList = ({
1044
1259
  }
1045
1260
  ) })
1046
1261
  ] }),
1047
- (helperText || errorText) && /* @__PURE__ */ jsx15("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx15(
1262
+ (helperText || errorText) && /* @__PURE__ */ jsx18("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx18(
1048
1263
  Typography_default,
1049
1264
  {
1050
1265
  size: 100,
@@ -1070,6 +1285,7 @@ export {
1070
1285
  Heading_default as Heading,
1071
1286
  IconButton_default as IconButton,
1072
1287
  MiniActionCard_default as MiniActionCard,
1288
+ Modal,
1073
1289
  RadioButton_default as RadioButton,
1074
1290
  SelectList_default as SelectList,
1075
1291
  Typography_default as Typography