@cerberus-design/react 0.16.0-next-1e5283a → 0.16.0-next-f96f1b5

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 (81) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +244 -0
  2. package/build/legacy/components/combobox/combobox.cjs +218 -0
  3. package/build/legacy/components/combobox/combobox.cjs.map +1 -0
  4. package/build/legacy/components/combobox/index.cjs +268 -0
  5. package/build/legacy/components/combobox/index.cjs.map +1 -0
  6. package/build/legacy/components/combobox/item-group.cjs +100 -0
  7. package/build/legacy/components/combobox/item-group.cjs.map +1 -0
  8. package/build/legacy/components/combobox/item.cjs +99 -0
  9. package/build/legacy/components/combobox/item.cjs.map +1 -0
  10. package/build/legacy/components/combobox/parts.cjs +90 -0
  11. package/build/legacy/components/combobox/parts.cjs.map +1 -0
  12. package/build/legacy/components/combobox/primitives.cjs +95 -0
  13. package/build/legacy/components/combobox/primitives.cjs.map +1 -0
  14. package/build/legacy/components/select/index.cjs.map +1 -1
  15. package/build/legacy/components/select/select.cjs.map +1 -1
  16. package/build/legacy/index.cjs +452 -317
  17. package/build/legacy/index.cjs.map +1 -1
  18. package/build/modern/_tsup-dts-rollup.d.ts +244 -0
  19. package/build/modern/{chunk-MTZDZXZM.js → chunk-23EMFMBS.js} +4 -4
  20. package/build/modern/{chunk-OOUNB643.js → chunk-A5ISUWER.js} +9 -9
  21. package/build/modern/chunk-BRBVMWLN.js +37 -0
  22. package/build/modern/chunk-BRBVMWLN.js.map +1 -0
  23. package/build/modern/chunk-CHSOIYTE.js +18 -0
  24. package/build/modern/chunk-CHSOIYTE.js.map +1 -0
  25. package/build/modern/{chunk-NZKE7C53.js → chunk-KQATLK4D.js} +4 -4
  26. package/build/modern/{chunk-6DAOKE6Z.js → chunk-RKVY2HJ3.js} +4 -4
  27. package/build/modern/{chunk-WN7TJX6J.js → chunk-RSHCVSFC.js} +4 -4
  28. package/build/modern/chunk-SDDZFF5X.js +61 -0
  29. package/build/modern/chunk-SDDZFF5X.js.map +1 -0
  30. package/build/modern/chunk-TKBHWBFC.js +17 -0
  31. package/build/modern/chunk-TKBHWBFC.js.map +1 -0
  32. package/build/modern/chunk-VJO2FXBM.js +42 -0
  33. package/build/modern/chunk-VJO2FXBM.js.map +1 -0
  34. package/build/modern/{chunk-CF3EHG42.js → chunk-VTQ6RW3Z.js} +7 -7
  35. package/build/modern/{chunk-4WKM2MJC.js → chunk-WXXA3T47.js} +7 -7
  36. package/build/modern/chunk-XWPB7FXL.js +1 -0
  37. package/build/modern/chunk-XWPB7FXL.js.map +1 -0
  38. package/build/modern/{chunk-6ICNCCPD.js → chunk-YLKFZGBY.js} +1 -1
  39. package/build/modern/chunk-YLKFZGBY.js.map +1 -0
  40. package/build/modern/components/AccordionItemGroup.js +2 -2
  41. package/build/modern/components/FileStatus.js +3 -3
  42. package/build/modern/components/combobox/combobox.js +21 -0
  43. package/build/modern/components/combobox/combobox.js.map +1 -0
  44. package/build/modern/components/combobox/index.js +59 -0
  45. package/build/modern/components/combobox/index.js.map +1 -0
  46. package/build/modern/components/combobox/item-group.js +9 -0
  47. package/build/modern/components/combobox/item-group.js.map +1 -0
  48. package/build/modern/components/combobox/item.js +9 -0
  49. package/build/modern/components/combobox/item.js.map +1 -0
  50. package/build/modern/components/combobox/parts.js +8 -0
  51. package/build/modern/components/combobox/parts.js.map +1 -0
  52. package/build/modern/components/combobox/primitives.js +31 -0
  53. package/build/modern/components/combobox/primitives.js.map +1 -0
  54. package/build/modern/components/cta-dialog/index.js +3 -3
  55. package/build/modern/components/cta-dialog/provider.js +3 -3
  56. package/build/modern/components/dialog/close-icon-trigger.js +2 -2
  57. package/build/modern/components/dialog/index.js +4 -4
  58. package/build/modern/components/select/index.js +4 -4
  59. package/build/modern/components/select/select.js +1 -1
  60. package/build/modern/context/confirm-modal.js +3 -3
  61. package/build/modern/context/notification-center.js +2 -2
  62. package/build/modern/context/prompt-modal.js +9 -9
  63. package/build/modern/index.js +141 -96
  64. package/build/modern/index.js.map +1 -1
  65. package/package.json +3 -3
  66. package/src/components/combobox/combobox.tsx +58 -0
  67. package/src/components/combobox/index.ts +5 -0
  68. package/src/components/combobox/item-group.tsx +19 -0
  69. package/src/components/combobox/item.tsx +21 -0
  70. package/src/components/combobox/parts.ts +101 -0
  71. package/src/components/combobox/primitives.tsx +114 -0
  72. package/src/components/select/select.tsx +1 -0
  73. package/src/index.ts +1 -0
  74. package/build/modern/chunk-6ICNCCPD.js.map +0 -1
  75. /package/build/modern/{chunk-MTZDZXZM.js.map → chunk-23EMFMBS.js.map} +0 -0
  76. /package/build/modern/{chunk-OOUNB643.js.map → chunk-A5ISUWER.js.map} +0 -0
  77. /package/build/modern/{chunk-NZKE7C53.js.map → chunk-KQATLK4D.js.map} +0 -0
  78. /package/build/modern/{chunk-6DAOKE6Z.js.map → chunk-RKVY2HJ3.js.map} +0 -0
  79. /package/build/modern/{chunk-WN7TJX6J.js.map → chunk-RSHCVSFC.js.map} +0 -0
  80. /package/build/modern/{chunk-CF3EHG42.js.map → chunk-VTQ6RW3Z.js.map} +0 -0
  81. /package/build/modern/{chunk-4WKM2MJC.js.map → chunk-WXXA3T47.js.map} +0 -0
@@ -26,6 +26,20 @@ import { closestCorners } from '@dnd-kit/core';
26
26
  import { Collision } from '@dnd-kit/core';
27
27
  import { CollisionDescriptor } from '@dnd-kit/core';
28
28
  import { CollisionDetection } from '@dnd-kit/core';
29
+ import { ComboboxClearTriggerProps } from '@ark-ui/react/combobox';
30
+ import { ComboboxContentProps } from '@ark-ui/react/combobox';
31
+ import { ComboboxControlProps } from '@ark-ui/react/combobox';
32
+ import { ComboboxInputProps } from '@ark-ui/react/combobox';
33
+ import { ComboboxItemGroupLabelProps } from '@ark-ui/react/combobox';
34
+ import { ComboboxItemGroupProps } from '@ark-ui/react/combobox';
35
+ import { ComboboxItemIndicatorProps } from '@ark-ui/react/combobox';
36
+ import { ComboboxItemProps } from '@ark-ui/react/combobox';
37
+ import type { ComboboxItemProps as ComboboxItemProps_2 } from '@ark-ui/react';
38
+ import { ComboboxItemTextProps } from '@ark-ui/react/combobox';
39
+ import { ComboboxLabelProps } from '@ark-ui/react/combobox';
40
+ import { ComboboxPositionerProps } from '@ark-ui/react/combobox';
41
+ import { ComboboxRootProps } from '@ark-ui/react/combobox';
42
+ import { ComboboxTriggerProps } from '@ark-ui/react/combobox';
29
43
  import { Context } from 'react';
30
44
  import { Data } from '@dnd-kit/core';
31
45
  import { DataRef } from '@dnd-kit/core';
@@ -925,6 +939,236 @@ declare type ColorModes = 'light' | 'dark' | 'system';
925
939
  export { ColorModes }
926
940
  export { ColorModes as ColorModes_alias_1 }
927
941
 
942
+ declare function Combobox(props: ComboboxProps): JSX_2.Element;
943
+ export { Combobox }
944
+ export { Combobox as Combobox_alias_1 }
945
+ export { Combobox as Combobox_alias_2 }
946
+
947
+ /**
948
+ * The trigger to clear the combobox input.
949
+ */
950
+ declare function ComboboxClearTrigger(props: ComboboxClearTriggerProps): JSX_2.Element;
951
+ export { ComboboxClearTrigger }
952
+ export { ComboboxClearTrigger as ComboboxClearTrigger_alias_1 }
953
+ export { ComboboxClearTrigger as ComboboxClearTrigger_alias_2 }
954
+
955
+ /**
956
+ * The content of the combobox component.
957
+ */
958
+ declare function ComboboxContent(props: ComboboxContentProps): JSX_2.Element;
959
+ export { ComboboxContent }
960
+ export { ComboboxContent as ComboboxContent_alias_1 }
961
+ export { ComboboxContent as ComboboxContent_alias_2 }
962
+
963
+ /**
964
+ * The control that wraps the combobox input.
965
+ */
966
+ declare function ComboboxControl(props: ComboboxControlProps): JSX_2.Element;
967
+ export { ComboboxControl }
968
+ export { ComboboxControl as ComboboxControl_alias_1 }
969
+ export { ComboboxControl as ComboboxControl_alias_2 }
970
+
971
+ /**
972
+ * The input of the combobox.
973
+ */
974
+ declare function ComboboxInput(props: ComboboxInputProps): JSX_2.Element;
975
+ export { ComboboxInput }
976
+ export { ComboboxInput as ComboboxInput_alias_1 }
977
+ export { ComboboxInput as ComboboxInput_alias_2 }
978
+
979
+ /**
980
+ * An individual item in the combobox component.
981
+ */
982
+ declare function ComboboxItem(props: ComboboxItemProps): JSX_2.Element;
983
+ export { ComboboxItem }
984
+ export { ComboboxItem as ComboboxItem_alias_1 }
985
+ export { ComboboxItem as ComboboxItem_alias_2 }
986
+
987
+ /**
988
+ * A group of items in the combobox component.
989
+ */
990
+ declare function ComboboxItemGroup(props: ComboboxItemGroupProps): JSX_2.Element;
991
+ export { ComboboxItemGroup }
992
+ export { ComboboxItemGroup as ComboboxItemGroup_alias_1 }
993
+ export { ComboboxItemGroup as ComboboxItemGroup_alias_2 }
994
+
995
+ /**
996
+ * The label for a group of items in the combobox component.
997
+ */
998
+ declare function ComboboxItemGroupLabel(props: ComboboxItemGroupLabelProps): JSX_2.Element;
999
+ export { ComboboxItemGroupLabel }
1000
+ export { ComboboxItemGroupLabel as ComboboxItemGroupLabel_alias_1 }
1001
+ export { ComboboxItemGroupLabel as ComboboxItemGroupLabel_alias_2 }
1002
+
1003
+ /**
1004
+ * The indicator that appears when the item has been selected.
1005
+ */
1006
+ declare function ComboboxItemIndicator(props: ComboboxItemIndicatorProps): JSX_2.Element;
1007
+ export { ComboboxItemIndicator }
1008
+ export { ComboboxItemIndicator as ComboboxItemIndicator_alias_1 }
1009
+ export { ComboboxItemIndicator as ComboboxItemIndicator_alias_2 }
1010
+
1011
+ /**
1012
+ * The text that labels a single item of the combobox.
1013
+ */
1014
+ declare function ComboboxItemText(props: ComboboxItemTextProps): JSX_2.Element;
1015
+ export { ComboboxItemText }
1016
+ export { ComboboxItemText as ComboboxItemText_alias_1 }
1017
+ export { ComboboxItemText as ComboboxItemText_alias_2 }
1018
+
1019
+ /**
1020
+ * This module contains the ComboboxItemWithIndicator component.
1021
+ * @module 'combobox/item'
1022
+ */
1023
+ /**
1024
+ * An abstraction of the ComboboxItem component that includes an indicator.
1025
+ * @description [Combobox Docs](https://cerberus.digitalu.design/react/combobox)
1026
+ * @description [Ark Docs](https://ark-ui.com/react/docs/components/combobox)
1027
+ */
1028
+ declare function ComboboxItemWithIndicator(props: ComboboxItemProps_2): JSX_2.Element;
1029
+ export { ComboboxItemWithIndicator }
1030
+ export { ComboboxItemWithIndicator as ComboboxItemWithIndicator_alias_1 }
1031
+ export { ComboboxItemWithIndicator as ComboboxItemWithIndicator_alias_2 }
1032
+
1033
+ /**
1034
+ * The label that appears above the combobox input.
1035
+ */
1036
+ declare function ComboboxLabel(props: ComboboxLabelProps): JSX_2.Element;
1037
+ export { ComboboxLabel }
1038
+ export { ComboboxLabel as ComboboxLabel_alias_1 }
1039
+ export { ComboboxLabel as ComboboxLabel_alias_2 }
1040
+
1041
+ /**
1042
+ * An Object containing the parts of the Radio component. For users that
1043
+ * prefer Object component syntax.
1044
+ *
1045
+ * @remarks
1046
+ *
1047
+ * When using object component syntax, you import the ComboboxParts object and
1048
+ * the entire family of components vs. only what you use.
1049
+ */
1050
+ declare const ComboboxParts: ComboboxPartsValue;
1051
+ export { ComboboxParts }
1052
+ export { ComboboxParts as ComboboxParts_alias_1 }
1053
+ export { ComboboxParts as ComboboxParts_alias_2 }
1054
+
1055
+ /**
1056
+ * This module contains the parts of the Combobox parts.
1057
+ * @module 'combobox/parts'
1058
+ */
1059
+ declare interface ComboboxPartsValue {
1060
+ /**
1061
+ * The context provider for the Select component.
1062
+ */
1063
+ Root: ElementType;
1064
+ /**
1065
+ * The label that appears above the select input.
1066
+ */
1067
+ Label: ElementType;
1068
+ /**
1069
+ * The control that wraps the select trigger.
1070
+ */
1071
+ Control: ElementType;
1072
+ /**
1073
+ * The filterable input of the combobox.
1074
+ */
1075
+ Input: ElementType;
1076
+ /**
1077
+ * The trigger that opens the dropdown.
1078
+ */
1079
+ Trigger: ElementType;
1080
+ /**
1081
+ * The trigger to clear the select input.
1082
+ */
1083
+ ClearTrigger: ElementType;
1084
+ /**
1085
+ * The positioner that wraps the content.
1086
+ */
1087
+ Positioner: ElementType;
1088
+ /**
1089
+ * The content of the select component.
1090
+ */
1091
+ Content: ElementType;
1092
+ /**
1093
+ * A group of items in the select component.
1094
+ */
1095
+ ItemGroup: ElementType;
1096
+ /**
1097
+ * The label for a group of items in the select component.
1098
+ */
1099
+ ItemGroupLabel: ElementType;
1100
+ /**
1101
+ * An individual item in the select component.
1102
+ */
1103
+ Item: ElementType;
1104
+ /**
1105
+ * The text that labels a single radio of the field.
1106
+ */
1107
+ ItemText: ElementType;
1108
+ /**
1109
+ * The indicator that appears when the item has been selected.
1110
+ */
1111
+ ItemIndicator: ElementType;
1112
+ }
1113
+
1114
+ /**
1115
+ * The positioner that wraps the content.
1116
+ */
1117
+ declare function ComboboxPositioner(props: ComboboxPositionerProps): JSX_2.Element;
1118
+ export { ComboboxPositioner }
1119
+ export { ComboboxPositioner as ComboboxPositioner_alias_1 }
1120
+ export { ComboboxPositioner as ComboboxPositioner_alias_2 }
1121
+
1122
+ declare interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem> {
1123
+ /**
1124
+ * The label that appears above the combobox input.
1125
+ */
1126
+ label?: string;
1127
+ /**
1128
+ * The icon that appears at the start of the combobox input.
1129
+ */
1130
+ startIcon?: FieldInputProps['startIcon'];
1131
+ }
1132
+ export { ComboboxProps }
1133
+ export { ComboboxProps as ComboboxProps_alias_1 }
1134
+ export { ComboboxProps as ComboboxProps_alias_2 }
1135
+
1136
+ /**
1137
+ * This module contains the primitives of the Combobox.
1138
+ * @module 'combobox/primitives'
1139
+ */
1140
+ /**
1141
+ * The ComboboxRoot component is the context provider for the Combobox
1142
+ * component.
1143
+ */
1144
+ declare function ComboboxRoot(props: ComboboxRootProps<SelectCollectionItem>): JSX_2.Element;
1145
+ export { ComboboxRoot }
1146
+ export { ComboboxRoot as ComboboxRoot_alias_1 }
1147
+ export { ComboboxRoot as ComboboxRoot_alias_2 }
1148
+
1149
+ /**
1150
+ * The trigger that opens the dropdown.
1151
+ */
1152
+ declare function ComboboxTrigger(props: ComboboxTriggerProps): JSX_2.Element;
1153
+ export { ComboboxTrigger }
1154
+ export { ComboboxTrigger as ComboboxTrigger_alias_1 }
1155
+ export { ComboboxTrigger as ComboboxTrigger_alias_2 }
1156
+
1157
+ declare function ComboItemGroup(props: ComboItemGroupProps): JSX_2.Element;
1158
+ export { ComboItemGroup }
1159
+ export { ComboItemGroup as ComboItemGroup_alias_1 }
1160
+ export { ComboItemGroup as ComboItemGroup_alias_2 }
1161
+
1162
+ declare interface ComboItemGroupProps extends ComboboxItemGroupProps {
1163
+ /**
1164
+ * The label that appears for the combobox item group.
1165
+ */
1166
+ label?: string;
1167
+ }
1168
+ export { ComboItemGroupProps }
1169
+ export { ComboItemGroupProps as ComboItemGroupProps_alias_1 }
1170
+ export { ComboItemGroupProps as ComboItemGroupProps_alias_2 }
1171
+
928
1172
  /**
929
1173
  * Provides a confirm modal to the app.
930
1174
  * @see https://cerberus.digitalu.design/react/confirm-modal
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/combobox/combobox.tsx
22
+ var combobox_exports = {};
23
+ __export(combobox_exports, {
24
+ Combobox: () => Combobox2
25
+ });
26
+ module.exports = __toCommonJS(combobox_exports);
27
+
28
+ // src/context/cerberus.tsx
29
+ var import_react = require("react");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var CerberusContext = (0, import_react.createContext)(null);
32
+ function useCerberusContext() {
33
+ const context = (0, import_react.useContext)(CerberusContext);
34
+ if (!context) {
35
+ throw new Error("useCerberus must be used within a CerberusProvider");
36
+ }
37
+ return context;
38
+ }
39
+
40
+ // src/components/field/primitives.tsx
41
+ var import_field = require("@ark-ui/react/field");
42
+ var import_css3 = require("@cerberus/styled-system/css");
43
+ var import_recipes3 = require("@cerberus/styled-system/recipes");
44
+
45
+ // src/components/field/status-indicator.tsx
46
+ var import_react2 = require("@ark-ui/react");
47
+ var import_css = require("@cerberus/styled-system/css");
48
+ var import_recipes = require("@cerberus/styled-system/recipes");
49
+ var import_jsx_runtime2 = require("react/jsx-runtime");
50
+ function FieldStatusIndicator(props) {
51
+ const { fallback, ...nativeProps } = props;
52
+ const styles = (0, import_recipes.field)();
53
+ const fieldContext = (0, import_react2.useFieldContext)();
54
+ const { icons } = useCerberusContext();
55
+ const { invalid: InvalidIcon } = icons;
56
+ if (fieldContext.invalid) {
57
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
58
+ "span",
59
+ {
60
+ ...nativeProps,
61
+ "aria-hidden": "true",
62
+ "data-invalid": true,
63
+ className: (0, import_css.cx)(nativeProps.className, styles.statusIndicator),
64
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(InvalidIcon, {})
65
+ }
66
+ );
67
+ }
68
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
69
+ "span",
70
+ {
71
+ ...nativeProps,
72
+ "aria-hidden": "true",
73
+ "data-part": "end-indicator",
74
+ className: (0, import_css.cx)(nativeProps.className, styles.endIndicator),
75
+ children: fallback
76
+ }
77
+ );
78
+ }
79
+
80
+ // src/components/field/start-indicator.tsx
81
+ var import_css2 = require("@cerberus/styled-system/css");
82
+ var import_recipes2 = require("@cerberus/styled-system/recipes");
83
+ var import_jsx_runtime3 = require("react/jsx-runtime");
84
+ function FieldStartIndicator(props) {
85
+ const styles = (0, import_recipes2.field)();
86
+ if (!props.children) return null;
87
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
88
+ "span",
89
+ {
90
+ ...props,
91
+ "data-part": "start-indicator",
92
+ className: (0, import_css2.cx)(props.className, styles.startIndicator)
93
+ }
94
+ );
95
+ }
96
+
97
+ // src/components/field/primitives.tsx
98
+ var import_jsx_runtime4 = require("react/jsx-runtime");
99
+ function FieldInput(props) {
100
+ const { size, startIcon, endIcon, ...fieldProps } = props;
101
+ const styles = (0, import_recipes3.field)({ size });
102
+ const hasStartIcon = Boolean(startIcon);
103
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: styles.inputRoot, children: [
104
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FieldStartIndicator, { children: startIcon }),
105
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
106
+ import_field.Field.Input,
107
+ {
108
+ ...fieldProps,
109
+ ...hasStartIcon && { "data-has": "start-indicator" },
110
+ className: (0, import_css3.cx)(styles.input, fieldProps.className)
111
+ }
112
+ ),
113
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FieldStatusIndicator, { fallback: endIcon })
114
+ ] });
115
+ }
116
+ var Input = FieldInput;
117
+
118
+ // src/components/Show.tsx
119
+ var import_react3 = require("react");
120
+ function Show(props) {
121
+ const { when, children, fallback } = props;
122
+ const condition = (0, import_react3.useMemo)(() => when ?? false, [when]);
123
+ return (0, import_react3.useMemo)(() => {
124
+ if (condition) return children;
125
+ return fallback ?? null;
126
+ }, [condition, children, fallback]);
127
+ }
128
+
129
+ // src/components/Portal.tsx
130
+ var import_react4 = require("@ark-ui/react");
131
+ var Portal = import_react4.Portal;
132
+
133
+ // src/components/combobox/primitives.tsx
134
+ var import_combobox = require("@ark-ui/react/combobox");
135
+ var import_jsx_runtime5 = require("react/jsx-runtime");
136
+ function ComboboxRoot(props) {
137
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Root, { ...props });
138
+ }
139
+ function ComboboxLabel(props) {
140
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Label, { ...props });
141
+ }
142
+ function ComboboxControl(props) {
143
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Control, { ...props });
144
+ }
145
+ function ComboboxInput(props) {
146
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Input, { ...props });
147
+ }
148
+ function ComboboxTrigger(props) {
149
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Trigger, { ...props });
150
+ }
151
+ function ComboboxClearTrigger(props) {
152
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.ClearTrigger, { ...props });
153
+ }
154
+ function ComboboxPositioner(props) {
155
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Positioner, { ...props });
156
+ }
157
+ function ComboboxContent(props) {
158
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Content, { ...props });
159
+ }
160
+ function ComboboxItemGroup(props) {
161
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.ItemGroup, { ...props });
162
+ }
163
+ function ComboboxItemGroupLabel(props) {
164
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.ItemGroupLabel, { ...props });
165
+ }
166
+ function ComboboxItem(props) {
167
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.Item, { ...props });
168
+ }
169
+ function ComboboxItemText(props) {
170
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.ItemText, { ...props });
171
+ }
172
+ function ComboboxItemIndicator(props) {
173
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_combobox.Combobox.ItemIndicator, { ...props });
174
+ }
175
+
176
+ // src/components/combobox/parts.ts
177
+ var ComboboxParts = {
178
+ Root: ComboboxRoot,
179
+ Label: ComboboxLabel,
180
+ Control: ComboboxControl,
181
+ Input: ComboboxInput,
182
+ Trigger: ComboboxTrigger,
183
+ ClearTrigger: ComboboxClearTrigger,
184
+ Positioner: ComboboxPositioner,
185
+ Content: ComboboxContent,
186
+ ItemGroup: ComboboxItemGroup,
187
+ ItemGroupLabel: ComboboxItemGroupLabel,
188
+ Item: ComboboxItem,
189
+ ItemText: ComboboxItemText,
190
+ ItemIndicator: ComboboxItemIndicator
191
+ };
192
+
193
+ // src/components/combobox/combobox.tsx
194
+ var import_jsx_runtime6 = require("react/jsx-runtime");
195
+ function Combobox2(props) {
196
+ const { label, children, ...rootProps } = props;
197
+ const { icons } = useCerberusContext();
198
+ const { selectArrow: SelectArrow, close: CloseIcon } = icons;
199
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(ComboboxParts.Root, { ...rootProps, children: [
200
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Show, { when: Boolean(label), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.Label, { children: label }) }),
201
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(ComboboxParts.Control, { children: [
202
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.Input, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
203
+ Input,
204
+ {
205
+ startIcon: props.startIcon,
206
+ endIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CloseIcon, {}) })
207
+ }
208
+ ) }),
209
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectArrow, {}) })
210
+ ] }),
211
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.Content, { children }) }) })
212
+ ] });
213
+ }
214
+ // Annotate the CommonJS export names for ESM import in node:
215
+ 0 && (module.exports = {
216
+ Combobox
217
+ });
218
+ //# sourceMappingURL=combobox.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/combobox/combobox.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/field/primitives.tsx","../../../../src/components/field/status-indicator.tsx","../../../../src/components/field/start-indicator.tsx","../../../../src/components/Show.tsx","../../../../src/components/Portal.tsx","../../../../src/components/combobox/primitives.tsx","../../../../src/components/combobox/parts.ts"],"sourcesContent":["'use client'\n\nimport type { ComboboxRootProps } from '@ark-ui/react/combobox'\nimport { useCerberusContext } from '../../context/cerberus'\nimport type { SelectCollectionItem } from '../select/select'\nimport { Input, type FieldInputProps } from '../field/index'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { ComboboxParts } from './parts'\n\nexport interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem> {\n /**\n * The label that appears above the combobox input.\n */\n label?: string\n /**\n * The icon that appears at the start of the combobox input.\n */\n startIcon?: FieldInputProps['startIcon']\n}\n\nexport function Combobox(props: ComboboxProps) {\n const { label, children, ...rootProps } = props\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, close: CloseIcon } = icons\n\n return (\n <ComboboxParts.Root {...rootProps}>\n <Show when={Boolean(label)}>\n <ComboboxParts.Label>{label}</ComboboxParts.Label>\n </Show>\n\n <ComboboxParts.Control>\n <ComboboxParts.Input asChild>\n <Input\n startIcon={props.startIcon}\n endIcon={\n <ComboboxParts.ClearTrigger>\n <CloseIcon />\n </ComboboxParts.ClearTrigger>\n }\n />\n </ComboboxParts.Input>\n\n <ComboboxParts.Trigger>\n <SelectArrow />\n </ComboboxParts.Trigger>\n </ComboboxParts.Control>\n\n <Portal>\n <ComboboxParts.Positioner>\n <ComboboxParts.Content>{children}</ComboboxParts.Content>\n </ComboboxParts.Positioner>\n </Portal>\n </ComboboxParts.Root>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import {\n Field,\n type FieldHelperTextProps,\n type FieldInputProps as ArkFieldInputProps,\n type FieldLabelProps,\n type FieldRootProps as ArkFieldRootProps,\n type FieldTextareaProps,\n} from '@ark-ui/react/field'\nimport type { ReactNode } from 'react'\nimport { cx } from '@cerberus/styled-system/css'\nimport { field, type FieldVariantProps } from '@cerberus/styled-system/recipes'\nimport { FieldStatusIndicator } from './status-indicator'\nimport { FieldStartIndicator } from './start-indicator'\n\n/**\n * This module contains all the primitives of the Field component.\n * @module 'field'\n */\n\nexport type FieldRootProps = ArkFieldRootProps & FieldVariantProps\n\n/**\n * The context & container for the Field components.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot required ids={{ input: 'exampleId' }}>\n * <FieldLabel>Label</FieldLabel>\n * <FieldInput />\n * </FieldRoot>\n * ```\n */\nexport function FieldRoot(props: FieldRootProps) {\n const { size, ...fieldProps } = props\n const styles = field({ size })\n return (\n <Field.Root\n {...fieldProps}\n className={cx(styles.root, fieldProps.className)}\n />\n )\n}\n\n/**\n * The label for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldLabel>Label</FieldLabel>\n * </FieldRoot>\n * ```\n */\nexport function FieldLabel(props: FieldLabelProps) {\n const { children, ...nativeProps } = props\n const styles = field()\n return (\n <Field.Label {...nativeProps} className={cx(styles.label, props.className)}>\n {children}\n <Field.RequiredIndicator>(required)</Field.RequiredIndicator>\n </Field.Label>\n )\n}\n\n/**\n * The required indicator for the Field component.\n */\nexport function FieldRequiredIndicator() {\n return <Field.RequiredIndicator>(required)</Field.RequiredIndicator>\n}\n\nexport interface FieldInputProps\n extends Omit<ArkFieldInputProps, 'size'>,\n FieldVariantProps {\n /**\n * An optional icon to display at the start of the input.\n */\n startIcon?: ReactNode\n /**\n * An optional icon to display at the end of the input.\n */\n endIcon?: ReactNode\n}\n\n/**\n * The input for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldInput />\n * </FieldRoot>\n * ```\n */\nexport function FieldInput(props: FieldInputProps) {\n const { size, startIcon, endIcon, ...fieldProps } = props\n const styles = field({ size })\n const hasStartIcon = Boolean(startIcon)\n\n return (\n <div className={styles.inputRoot}>\n <FieldStartIndicator>{startIcon}</FieldStartIndicator>\n <Field.Input\n {...fieldProps}\n {...(hasStartIcon && { 'data-has': 'start-indicator' })}\n className={cx(styles.input, fieldProps.className)}\n />\n <FieldStatusIndicator fallback={endIcon} />\n </div>\n )\n}\n\n/**\n * The helper text for the Field component that is shown when the field is\n * valid.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldInput />\n * <FieldHelperText>Helper text</FieldHelperText>\n * </FieldRoot>\n * ```\n */\nexport function FieldHelperText(props: FieldHelperTextProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <Field.HelperText\n {...props}\n className={cx(styles.helperText, props.className)}\n />\n )\n}\n\n/**\n * The error text for the Field component that is shown when the field is\n * invalid.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldInput />\n * <FieldErrorText>Error text</FieldErrorText>\n * </FieldRoot>\n * ```\n */\nexport function FieldErrorText(props: FieldHelperTextProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <Field.ErrorText\n {...props}\n className={cx(styles.errorText, props.className)}\n />\n )\n}\n\n/**\n * The textarea for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldTextarea />\n * </FieldRoot>\n * ```\n */\nexport function FieldTextarea(props: FieldTextareaProps) {\n const styles = field()\n return (\n <Field.Textarea\n {...props}\n className={cx(styles.textarea, props.className)}\n />\n )\n}\n\n/**\n * A named export for the FieldInput component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * import { Input } from '@cerberus/react'\n *\n * <Field\n * ids={{\n * control: 'email',\n * }}\n * label=\"Enter your email\"\n * helperText=\"We'll never share your email with anyone else.\"\n * errorText=\"Email is required.\"\n * required\n * >\n * <Input type=\"email\" />\n * </Field>\n * ```\n */\nexport const Input = FieldInput\nexport const Textarea = FieldTextarea\n","'use client'\n\nimport { useFieldContext } from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport { field } from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../../context/cerberus'\nimport type { HTMLAttributes, ReactNode } from 'react'\n\nexport interface FieldStatusIndicatorProps\n extends HTMLAttributes<HTMLSpanElement> {\n /**\n * The fallback content to display when the field is valid.\n */\n fallback?: ReactNode\n}\n\n/**\n * The invalid status indicator for the Field component.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n * @example\n * ```tsx\n * <FieldRoot>\n * <FieldStatusIndicator />\n * </FieldRoot>\n * ```\n */\nexport function FieldStatusIndicator(props: FieldStatusIndicatorProps) {\n const { fallback, ...nativeProps } = props\n const styles = field()\n const fieldContext = useFieldContext()\n\n const { icons } = useCerberusContext()\n const { invalid: InvalidIcon } = icons\n\n if (fieldContext.invalid) {\n return (\n <span\n {...nativeProps}\n aria-hidden=\"true\"\n data-invalid\n className={cx(nativeProps.className, styles.statusIndicator)}\n >\n <InvalidIcon />\n </span>\n )\n }\n\n return (\n <span\n {...nativeProps}\n aria-hidden=\"true\"\n data-part=\"end-indicator\"\n className={cx(nativeProps.className, styles.endIndicator)}\n >\n {fallback}\n </span>\n )\n}\n","import { cx } from '@cerberus/styled-system/css'\nimport { field } from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\nexport type FieldIndicatorProps = HTMLAttributes<HTMLSpanElement>\n\n/**\n * The start indicator displays an indicator at the start of the Input.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n */\nexport function FieldStartIndicator(props: FieldIndicatorProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <span\n {...props}\n data-part=\"start-indicator\"\n className={cx(props.className, styles.startIndicator)}\n />\n )\n}\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","import {\n Combobox,\n type ComboboxClearTriggerProps,\n type ComboboxContentProps,\n type ComboboxControlProps,\n type ComboboxInputProps,\n type ComboboxItemGroupLabelProps,\n type ComboboxItemGroupProps,\n type ComboboxItemIndicatorProps,\n type ComboboxItemProps,\n type ComboboxItemTextProps,\n type ComboboxLabelProps,\n type ComboboxPositionerProps,\n type ComboboxRootProps,\n type ComboboxTriggerProps,\n} from '@ark-ui/react/combobox'\nimport type { SelectCollectionItem } from '../select/select'\n\n/**\n * This module contains the primitives of the Combobox.\n * @module 'combobox/primitives'\n */\n\n/**\n * The ComboboxRoot component is the context provider for the Combobox\n * component.\n */\nexport function ComboboxRoot(props: ComboboxRootProps<SelectCollectionItem>) {\n return <Combobox.Root {...props} />\n}\n\n/**\n * The label that appears above the combobox input.\n */\nexport function ComboboxLabel(props: ComboboxLabelProps) {\n return <Combobox.Label {...props} />\n}\n\n/**\n * The control that wraps the combobox input.\n */\nexport function ComboboxControl(props: ComboboxControlProps) {\n return <Combobox.Control {...props} />\n}\n\n/**\n * The input of the combobox.\n */\nexport function ComboboxInput(props: ComboboxInputProps) {\n return <Combobox.Input {...props} />\n}\n\n/**\n * The trigger that opens the dropdown.\n */\nexport function ComboboxTrigger(props: ComboboxTriggerProps) {\n return <Combobox.Trigger {...props} />\n}\n\n/**\n * The trigger to clear the combobox input.\n */\nexport function ComboboxClearTrigger(props: ComboboxClearTriggerProps) {\n return <Combobox.ClearTrigger {...props} />\n}\n\n/**\n * The positioner that wraps the content.\n */\nexport function ComboboxPositioner(props: ComboboxPositionerProps) {\n return <Combobox.Positioner {...props} />\n}\n\n/**\n * The content of the combobox component.\n */\nexport function ComboboxContent(props: ComboboxContentProps) {\n return <Combobox.Content {...props} />\n}\n\n/**\n * A group of items in the combobox component.\n */\nexport function ComboboxItemGroup(props: ComboboxItemGroupProps) {\n return <Combobox.ItemGroup {...props} />\n}\n\n/**\n * The label for a group of items in the combobox component.\n */\nexport function ComboboxItemGroupLabel(props: ComboboxItemGroupLabelProps) {\n return <Combobox.ItemGroupLabel {...props} />\n}\n\n/**\n * An individual item in the combobox component.\n */\nexport function ComboboxItem(props: ComboboxItemProps) {\n return <Combobox.Item {...props} />\n}\n\n/**\n * The text that labels a single item of the combobox.\n */\nexport function ComboboxItemText(props: ComboboxItemTextProps) {\n return <Combobox.ItemText {...props} />\n}\n\n/**\n * The indicator that appears when the item has been selected.\n */\nexport function ComboboxItemIndicator(props: ComboboxItemIndicatorProps) {\n return <Combobox.ItemIndicator {...props} />\n}\n","import type { ElementType } from 'react'\nimport {\n ComboboxClearTrigger,\n ComboboxContent,\n ComboboxControl,\n ComboboxInput,\n ComboboxItem,\n ComboboxItemGroup,\n ComboboxItemGroupLabel,\n ComboboxItemIndicator,\n ComboboxItemText,\n ComboboxLabel,\n ComboboxPositioner,\n ComboboxRoot,\n ComboboxTrigger,\n} from './primitives'\n\n/**\n * This module contains the parts of the Combobox parts.\n * @module 'combobox/parts'\n */\n\ninterface ComboboxPartsValue {\n /**\n * The context provider for the Select component.\n */\n Root: ElementType\n /**\n * The label that appears above the select input.\n */\n Label: ElementType\n /**\n * The control that wraps the select trigger.\n */\n Control: ElementType\n /**\n * The filterable input of the combobox.\n */\n Input: ElementType\n /**\n * The trigger that opens the dropdown.\n */\n Trigger: ElementType\n /**\n * The trigger to clear the select input.\n */\n ClearTrigger: ElementType\n /**\n * The positioner that wraps the content.\n */\n Positioner: ElementType\n /**\n * The content of the select component.\n */\n Content: ElementType\n /**\n * A group of items in the select component.\n */\n ItemGroup: ElementType\n /**\n * The label for a group of items in the select component.\n */\n ItemGroupLabel: ElementType\n /**\n * An individual item in the select component.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The indicator that appears when the item has been selected.\n */\n ItemIndicator: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the ComboboxParts object and\n * the entire family of components vs. only what you use.\n */\nexport const ComboboxParts: ComboboxPartsValue = {\n Root: ComboboxRoot,\n Label: ComboboxLabel,\n Control: ComboboxControl,\n Input: ComboboxInput,\n Trigger: ComboboxTrigger,\n ClearTrigger: ComboboxClearTrigger,\n Positioner: ComboboxPositioner,\n Content: ComboboxContent,\n ItemGroup: ComboboxItemGroup,\n ItemGroupLabel: ComboboxItemGroupLabel,\n Item: ComboboxItem,\n ItemText: ComboboxItemText,\n ItemIndicator: ComboboxItemIndicator,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kBAAAA;AAAA;AAAA;;;ACEA,mBAAkE;AAyB9D;AAfJ,IAAM,sBAAkB,4BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AACA,SAAO;AACT;;;AC3CA,mBAOO;AAEP,IAAAC,cAAmB;AACnB,IAAAC,kBAA8C;;;ACR9C,IAAAC,gBAAgC;AAChC,iBAAmB;AACnB,qBAAsB;AAsCd,IAAAC,sBAAA;AAhBD,SAAS,qBAAqB,OAAkC;AACrE,QAAM,EAAE,UAAU,GAAG,YAAY,IAAI;AACrC,QAAM,aAAS,sBAAM;AACrB,QAAM,mBAAe,+BAAgB;AAErC,QAAM,EAAE,MAAM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react","import_jsx_runtime","import_css","import_recipes","import_jsx_runtime","import_jsx_runtime","import_react","import_react","ArkPortal","import_jsx_runtime","import_jsx_runtime","Combobox"]}