@cerberus-design/react 0.16.0-next-1e5283a → 0.16.0-next-004ae01

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 (85) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +298 -0
  2. package/build/legacy/components/combobox/combobox.cjs +224 -0
  3. package/build/legacy/components/combobox/combobox.cjs.map +1 -0
  4. package/build/legacy/components/combobox/index.cjs +326 -0
  5. package/build/legacy/components/combobox/index.cjs.map +1 -0
  6. package/build/legacy/components/combobox/item-group.cjs +178 -0
  7. package/build/legacy/components/combobox/item-group.cjs.map +1 -0
  8. package/build/legacy/components/combobox/item.cjs +192 -0
  9. package/build/legacy/components/combobox/item.cjs.map +1 -0
  10. package/build/legacy/components/combobox/parts.cjs +168 -0
  11. package/build/legacy/components/combobox/parts.cjs.map +1 -0
  12. package/build/legacy/components/combobox/primitives.cjs +182 -0
  13. package/build/legacy/components/combobox/primitives.cjs.map +1 -0
  14. package/build/legacy/components/combobox/use-stateful-collection.cjs +72 -0
  15. package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -0
  16. package/build/legacy/components/select/index.cjs.map +1 -1
  17. package/build/legacy/components/select/select.cjs.map +1 -1
  18. package/build/legacy/index.cjs +960 -700
  19. package/build/legacy/index.cjs.map +1 -1
  20. package/build/modern/_tsup-dts-rollup.d.ts +298 -0
  21. package/build/modern/{chunk-4WKM2MJC.js → chunk-3B4SFTQB.js} +2 -2
  22. package/build/modern/chunk-FZ53535Q.js +18 -0
  23. package/build/modern/chunk-FZ53535Q.js.map +1 -0
  24. package/build/modern/chunk-HIC7Z23X.js +37 -0
  25. package/build/modern/chunk-HIC7Z23X.js.map +1 -0
  26. package/build/modern/chunk-J7SAFAW3.js +44 -0
  27. package/build/modern/chunk-J7SAFAW3.js.map +1 -0
  28. package/build/modern/{chunk-C45HS2C4.js → chunk-MH6CIBDU.js} +4 -4
  29. package/build/modern/chunk-ML2IKLMJ.js +1 -0
  30. package/build/modern/chunk-ML2IKLMJ.js.map +1 -0
  31. package/build/modern/chunk-MR4DX76C.js +38 -0
  32. package/build/modern/chunk-MR4DX76C.js.map +1 -0
  33. package/build/modern/chunk-NR5XDIJ7.js +148 -0
  34. package/build/modern/chunk-NR5XDIJ7.js.map +1 -0
  35. package/build/modern/{chunk-OOUNB643.js → chunk-R7MPDSXX.js} +7 -7
  36. package/build/modern/{chunk-6DAOKE6Z.js → chunk-RKVY2HJ3.js} +4 -4
  37. package/build/modern/{chunk-MTZDZXZM.js → chunk-U5XRQ2JZ.js} +2 -2
  38. package/build/modern/{chunk-CF3EHG42.js → chunk-VTQ6RW3Z.js} +7 -7
  39. package/build/modern/chunk-XBUXVNTY.js +22 -0
  40. package/build/modern/chunk-XBUXVNTY.js.map +1 -0
  41. package/build/modern/{chunk-6ICNCCPD.js → chunk-YLKFZGBY.js} +1 -1
  42. package/build/modern/chunk-YLKFZGBY.js.map +1 -0
  43. package/build/modern/components/FileStatus.js +3 -3
  44. package/build/modern/components/combobox/combobox.js +13 -0
  45. package/build/modern/components/combobox/combobox.js.map +1 -0
  46. package/build/modern/components/combobox/index.js +60 -0
  47. package/build/modern/components/combobox/index.js.map +1 -0
  48. package/build/modern/components/combobox/item-group.js +9 -0
  49. package/build/modern/components/combobox/item-group.js.map +1 -0
  50. package/build/modern/components/combobox/item.js +11 -0
  51. package/build/modern/components/combobox/item.js.map +1 -0
  52. package/build/modern/components/combobox/parts.js +8 -0
  53. package/build/modern/components/combobox/parts.js.map +1 -0
  54. package/build/modern/components/combobox/primitives.js +35 -0
  55. package/build/modern/components/combobox/primitives.js.map +1 -0
  56. package/build/modern/components/combobox/use-stateful-collection.js +9 -0
  57. package/build/modern/components/combobox/use-stateful-collection.js.map +1 -0
  58. package/build/modern/components/cta-dialog/index.js +3 -3
  59. package/build/modern/components/cta-dialog/provider.js +3 -3
  60. package/build/modern/components/dialog/dialog.js +2 -2
  61. package/build/modern/components/dialog/index.js +2 -2
  62. package/build/modern/components/select/index.js +1 -1
  63. package/build/modern/components/select/select.js +1 -1
  64. package/build/modern/context/confirm-modal.js +3 -3
  65. package/build/modern/context/notification-center.js +2 -2
  66. package/build/modern/context/prompt-modal.js +9 -9
  67. package/build/modern/index.js +187 -134
  68. package/build/modern/index.js.map +1 -1
  69. package/package.json +2 -2
  70. package/src/components/combobox/combobox.tsx +66 -0
  71. package/src/components/combobox/index.ts +6 -0
  72. package/src/components/combobox/item-group.tsx +19 -0
  73. package/src/components/combobox/item.tsx +30 -0
  74. package/src/components/combobox/parts.ts +101 -0
  75. package/src/components/combobox/primitives.tsx +209 -0
  76. package/src/components/combobox/use-stateful-collection.ts +65 -0
  77. package/src/components/select/select.tsx +1 -0
  78. package/src/index.ts +1 -0
  79. package/build/modern/chunk-6ICNCCPD.js.map +0 -1
  80. /package/build/modern/{chunk-4WKM2MJC.js.map → chunk-3B4SFTQB.js.map} +0 -0
  81. /package/build/modern/{chunk-C45HS2C4.js.map → chunk-MH6CIBDU.js.map} +0 -0
  82. /package/build/modern/{chunk-OOUNB643.js.map → chunk-R7MPDSXX.js.map} +0 -0
  83. /package/build/modern/{chunk-6DAOKE6Z.js.map → chunk-RKVY2HJ3.js.map} +0 -0
  84. /package/build/modern/{chunk-MTZDZXZM.js.map → chunk-U5XRQ2JZ.js.map} +0 -0
  85. /package/build/modern/{chunk-CF3EHG42.js.map → chunk-VTQ6RW3Z.js.map} +0 -0
@@ -26,6 +26,23 @@ 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 { Combobox as Combobox_2 } from '@ark-ui/react/combobox';
30
+ import { ComboboxClearTriggerProps } from '@ark-ui/react/combobox';
31
+ import { ComboboxContentProps } from '@ark-ui/react/combobox';
32
+ import { ComboboxControlProps } from '@ark-ui/react/combobox';
33
+ import { ComboboxInputProps } from '@ark-ui/react/combobox';
34
+ import type { ComboboxInputValueChangeDetails as ComboboxInputValueChangeDetails_2 } from '@ark-ui/react/combobox';
35
+ import { ComboboxItemGroupLabelProps } from '@ark-ui/react/combobox';
36
+ import { ComboboxItemGroupProps } from '@ark-ui/react/combobox';
37
+ import { ComboboxItemIndicatorProps } from '@ark-ui/react/combobox';
38
+ import { ComboboxItemProps } from '@ark-ui/react/combobox';
39
+ import type { ComboboxItemProps as ComboboxItemProps_2 } from '@ark-ui/react';
40
+ import { ComboboxItemTextProps } from '@ark-ui/react/combobox';
41
+ import { ComboboxLabelProps } from '@ark-ui/react/combobox';
42
+ import { ComboboxPositionerProps } from '@ark-ui/react/combobox';
43
+ import { ComboboxRootProps } from '@ark-ui/react/combobox';
44
+ import { ComboboxTriggerProps } from '@ark-ui/react/combobox';
45
+ import { ComboboxVariantProps } from '@cerberus/styled-system/recipes';
29
46
  import { Context } from 'react';
30
47
  import { Data } from '@dnd-kit/core';
31
48
  import { DataRef } from '@dnd-kit/core';
@@ -925,6 +942,254 @@ declare type ColorModes = 'light' | 'dark' | 'system';
925
942
  export { ColorModes }
926
943
  export { ColorModes as ColorModes_alias_1 }
927
944
 
945
+ declare function Combobox(props: ComboboxProps): JSX_2.Element;
946
+ export { Combobox }
947
+ export { Combobox as Combobox_alias_1 }
948
+ export { Combobox as Combobox_alias_2 }
949
+
950
+ /**
951
+ * The trigger to clear the combobox input.
952
+ */
953
+ declare function ComboboxClearTrigger(props: ComboboxClearTriggerProps): JSX_2.Element;
954
+ export { ComboboxClearTrigger }
955
+ export { ComboboxClearTrigger as ComboboxClearTrigger_alias_1 }
956
+ export { ComboboxClearTrigger as ComboboxClearTrigger_alias_2 }
957
+
958
+ /**
959
+ * The content of the combobox component.
960
+ */
961
+ declare function ComboboxContent(props: ComboboxContentProps & ComboboxVariantProps): JSX_2.Element;
962
+ export { ComboboxContent }
963
+ export { ComboboxContent as ComboboxContent_alias_1 }
964
+ export { ComboboxContent as ComboboxContent_alias_2 }
965
+
966
+ /**
967
+ * The control that wraps the combobox input.
968
+ */
969
+ declare function ComboboxControl(props: ComboboxControlProps): JSX_2.Element;
970
+ export { ComboboxControl }
971
+ export { ComboboxControl as ComboboxControl_alias_1 }
972
+ export { ComboboxControl as ComboboxControl_alias_2 }
973
+
974
+ /**
975
+ * The input of the combobox.
976
+ */
977
+ declare function ComboboxInput(props: ComboboxInputProps): JSX_2.Element;
978
+ export { ComboboxInput }
979
+ export { ComboboxInput as ComboboxInput_alias_1 }
980
+ export { ComboboxInput as ComboboxInput_alias_2 }
981
+
982
+ declare type ComboboxInputValueChangeDetails = Combobox_2.InputValueChangeDetails;
983
+ export { ComboboxInputValueChangeDetails }
984
+ export { ComboboxInputValueChangeDetails as ComboboxInputValueChangeDetails_alias_1 }
985
+ export { ComboboxInputValueChangeDetails as ComboboxInputValueChangeDetails_alias_2 }
986
+
987
+ /**
988
+ * An individual item in the combobox component.
989
+ */
990
+ declare function ComboboxItem(props: ComboboxItemProps): JSX_2.Element;
991
+ export { ComboboxItem }
992
+ export { ComboboxItem as ComboboxItem_alias_1 }
993
+ export { ComboboxItem as ComboboxItem_alias_2 }
994
+
995
+ /**
996
+ * A group of items in the combobox component.
997
+ */
998
+ declare function ComboboxItemGroup(props: ComboboxItemGroupProps): JSX_2.Element;
999
+ export { ComboboxItemGroup }
1000
+ export { ComboboxItemGroup as ComboboxItemGroup_alias_1 }
1001
+ export { ComboboxItemGroup as ComboboxItemGroup_alias_2 }
1002
+
1003
+ /**
1004
+ * The label for a group of items in the combobox component.
1005
+ */
1006
+ declare function ComboboxItemGroupLabel(props: ComboboxItemGroupLabelProps): JSX_2.Element;
1007
+ export { ComboboxItemGroupLabel }
1008
+ export { ComboboxItemGroupLabel as ComboboxItemGroupLabel_alias_1 }
1009
+ export { ComboboxItemGroupLabel as ComboboxItemGroupLabel_alias_2 }
1010
+
1011
+ /**
1012
+ * The indicator that appears when the item has been selected.
1013
+ */
1014
+ declare function ComboboxItemIndicator(props: ComboboxItemIndicatorProps): JSX_2.Element;
1015
+ export { ComboboxItemIndicator }
1016
+ export { ComboboxItemIndicator as ComboboxItemIndicator_alias_1 }
1017
+ export { ComboboxItemIndicator as ComboboxItemIndicator_alias_2 }
1018
+
1019
+ /**
1020
+ * The text that labels a single item of the combobox.
1021
+ */
1022
+ declare function ComboboxItemText(props: ComboboxItemTextProps): JSX_2.Element;
1023
+ export { ComboboxItemText }
1024
+ export { ComboboxItemText as ComboboxItemText_alias_1 }
1025
+ export { ComboboxItemText as ComboboxItemText_alias_2 }
1026
+
1027
+ /**
1028
+ * The label that appears above the combobox input.
1029
+ */
1030
+ declare function ComboboxLabel(props: ComboboxLabelProps): JSX_2.Element;
1031
+ export { ComboboxLabel }
1032
+ export { ComboboxLabel as ComboboxLabel_alias_1 }
1033
+ export { ComboboxLabel as ComboboxLabel_alias_2 }
1034
+
1035
+ /**
1036
+ * An Object containing the parts of the Radio component. For users that
1037
+ * prefer Object component syntax.
1038
+ *
1039
+ * @remarks
1040
+ *
1041
+ * When using object component syntax, you import the ComboboxParts object and
1042
+ * the entire family of components vs. only what you use.
1043
+ */
1044
+ declare const ComboboxParts: ComboboxPartsValue;
1045
+ export { ComboboxParts }
1046
+ export { ComboboxParts as ComboboxParts_alias_1 }
1047
+ export { ComboboxParts as ComboboxParts_alias_2 }
1048
+
1049
+ /**
1050
+ * This module contains the parts of the Combobox parts.
1051
+ * @module 'combobox/parts'
1052
+ */
1053
+ declare interface ComboboxPartsValue {
1054
+ /**
1055
+ * The context provider for the Select component.
1056
+ */
1057
+ Root: ElementType;
1058
+ /**
1059
+ * The label that appears above the select input.
1060
+ */
1061
+ Label: ElementType;
1062
+ /**
1063
+ * The control that wraps the select trigger.
1064
+ */
1065
+ Control: ElementType;
1066
+ /**
1067
+ * The filterable input of the combobox.
1068
+ */
1069
+ Input: ElementType;
1070
+ /**
1071
+ * The trigger that opens the dropdown.
1072
+ */
1073
+ Trigger: ElementType;
1074
+ /**
1075
+ * The trigger to clear the select input.
1076
+ */
1077
+ ClearTrigger: ElementType;
1078
+ /**
1079
+ * The positioner that wraps the content.
1080
+ */
1081
+ Positioner: ElementType;
1082
+ /**
1083
+ * The content of the select component.
1084
+ */
1085
+ Content: ElementType;
1086
+ /**
1087
+ * A group of items in the select component.
1088
+ */
1089
+ ItemGroup: ElementType;
1090
+ /**
1091
+ * The label for a group of items in the select component.
1092
+ */
1093
+ ItemGroupLabel: ElementType;
1094
+ /**
1095
+ * An individual item in the select component.
1096
+ */
1097
+ Item: ElementType;
1098
+ /**
1099
+ * The text that labels a single radio of the field.
1100
+ */
1101
+ ItemText: ElementType;
1102
+ /**
1103
+ * The indicator that appears when the item has been selected.
1104
+ */
1105
+ ItemIndicator: ElementType;
1106
+ }
1107
+
1108
+ /**
1109
+ * The positioner that wraps the content.
1110
+ */
1111
+ declare function ComboboxPositioner(props: ComboboxPositionerProps): JSX_2.Element;
1112
+ export { ComboboxPositioner }
1113
+ export { ComboboxPositioner as ComboboxPositioner_alias_1 }
1114
+ export { ComboboxPositioner as ComboboxPositioner_alias_2 }
1115
+
1116
+ declare interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem>, ComboboxVariantProps {
1117
+ /**
1118
+ * The label that appears above the combobox input.
1119
+ */
1120
+ label?: string;
1121
+ /**
1122
+ * The icon that appears at the start of the combobox input.
1123
+ */
1124
+ startIcon?: FieldInputProps['startIcon'];
1125
+ }
1126
+ export { ComboboxProps }
1127
+ export { ComboboxProps as ComboboxProps_alias_1 }
1128
+ export { ComboboxProps as ComboboxProps_alias_2 }
1129
+
1130
+ /**
1131
+ * This module contains the primitives of the Combobox.
1132
+ * @module 'combobox/primitives'
1133
+ */
1134
+ /**
1135
+ * The ComboboxRoot component is the context provider for the Combobox
1136
+ * component.
1137
+ */
1138
+ declare function ComboboxRoot(props: ComboboxRootProps<SelectCollectionItem> & ComboboxVariantProps): JSX_2.Element;
1139
+ export { ComboboxRoot }
1140
+ export { ComboboxRoot as ComboboxRoot_alias_1 }
1141
+ export { ComboboxRoot as ComboboxRoot_alias_2 }
1142
+
1143
+ /**
1144
+ * The icon that appears at the start of the combobox input.
1145
+ */
1146
+ declare function ComboboxStartIcon(props: PropsWithChildren): JSX_2.Element;
1147
+ export { ComboboxStartIcon }
1148
+ export { ComboboxStartIcon as ComboboxStartIcon_alias_1 }
1149
+ export { ComboboxStartIcon as ComboboxStartIcon_alias_2 }
1150
+
1151
+ /**
1152
+ * The trigger that opens the dropdown.
1153
+ */
1154
+ declare function ComboboxTrigger(props: ComboboxTriggerProps): JSX_2.Element;
1155
+ export { ComboboxTrigger }
1156
+ export { ComboboxTrigger as ComboboxTrigger_alias_1 }
1157
+ export { ComboboxTrigger as ComboboxTrigger_alias_2 }
1158
+
1159
+ declare function ComboItemGroup(props: ComboItemGroupProps): JSX_2.Element;
1160
+ export { ComboItemGroup }
1161
+ export { ComboItemGroup as ComboItemGroup_alias_1 }
1162
+ export { ComboItemGroup as ComboItemGroup_alias_2 }
1163
+
1164
+ declare interface ComboItemGroupProps extends ComboboxItemGroupProps {
1165
+ /**
1166
+ * The label that appears for the combobox item group.
1167
+ */
1168
+ label?: string;
1169
+ }
1170
+ export { ComboItemGroupProps }
1171
+ export { ComboItemGroupProps as ComboItemGroupProps_alias_1 }
1172
+ export { ComboItemGroupProps as ComboItemGroupProps_alias_2 }
1173
+
1174
+ declare const ComboItemText: typeof ComboboxItemText;
1175
+ export { ComboItemText }
1176
+ export { ComboItemText as ComboItemText_alias_1 }
1177
+ export { ComboItemText as ComboItemText_alias_2 }
1178
+
1179
+ /**
1180
+ * This module contains the ComboboxItemWithIndicator component.
1181
+ * @module 'combobox/item'
1182
+ */
1183
+ /**
1184
+ * An abstraction of the ComboboxItem component that includes an indicator.
1185
+ * @description [Combobox Docs](https://cerberus.digitalu.design/react/combobox)
1186
+ * @description [Ark Docs](https://ark-ui.com/react/docs/components/combobox)
1187
+ */
1188
+ declare function ComboItemWithIndicator(props: ComboboxItemProps_2): JSX_2.Element;
1189
+ export { ComboItemWithIndicator }
1190
+ export { ComboItemWithIndicator as ComboItemWithIndicator_alias_1 }
1191
+ export { ComboItemWithIndicator as ComboItemWithIndicator_alias_2 }
1192
+
928
1193
  /**
929
1194
  * Provides a confirm modal to the app.
930
1195
  * @see https://cerberus.digitalu.design/react/confirm-modal
@@ -4169,6 +4434,28 @@ declare function splitProps<T extends object>(props: T, ...keyGroups: (keyof T)[
4169
4434
  export { splitProps }
4170
4435
  export { splitProps as splitProps_alias_1 }
4171
4436
 
4437
+ /**
4438
+ * This module contains a custom hook that provides a stateful collection for
4439
+ * the Combobox component.
4440
+ */
4441
+ declare interface StatefulCollectionReturn {
4442
+ /**
4443
+ * The collection of items.
4444
+ */
4445
+ collection: ReturnType<typeof createSelectCollection>;
4446
+ /**
4447
+ * The filter value split into an array of characters.
4448
+ */
4449
+ filterChars: string[];
4450
+ /**
4451
+ * The function to handle input changes.
4452
+ */
4453
+ handleInputChange: (details: ComboboxInputValueChangeDetails_2) => void;
4454
+ }
4455
+ export { StatefulCollectionReturn }
4456
+ export { StatefulCollectionReturn as StatefulCollectionReturn_alias_1 }
4457
+ export { StatefulCollectionReturn as StatefulCollectionReturn_alias_2 }
4458
+
4172
4459
  /**
4173
4460
  * This module contains the tag component.
4174
4461
  * @module
@@ -5021,6 +5308,17 @@ export { useSensor }
5021
5308
 
5022
5309
  export { useSensors }
5023
5310
 
5311
+ /**
5312
+ * This hook provides a stateful collection for the Combobox component.
5313
+ * It returns a collection of items and a function to handle input changes.
5314
+ * @param initialItems - The initial collection of items.
5315
+ * @return An object containing the collection and a function to handle input changes.
5316
+ */
5317
+ declare function useStatefulCollection(initialItems?: SelectCollectionItem[]): StatefulCollectionReturn;
5318
+ export { useStatefulCollection }
5319
+ export { useStatefulCollection as useStatefulCollection_alias_1 }
5320
+ export { useStatefulCollection as useStatefulCollection_alias_2 }
5321
+
5024
5322
  /**
5025
5323
  * Used to access the tabs context.
5026
5324
  * @returns The tabs context.
@@ -0,0 +1,224 @@
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/Portal.tsx
41
+ var import_react2 = require("@ark-ui/react");
42
+ var Portal = import_react2.Portal;
43
+
44
+ // src/components/Show.tsx
45
+ var import_react3 = require("react");
46
+ function Show(props) {
47
+ const { when, children, fallback } = props;
48
+ const condition = (0, import_react3.useMemo)(() => when ?? false, [when]);
49
+ return (0, import_react3.useMemo)(() => {
50
+ if (condition) return children;
51
+ return fallback ?? null;
52
+ }, [condition, children, fallback]);
53
+ }
54
+
55
+ // src/components/combobox/primitives.tsx
56
+ var import_combobox = require("@ark-ui/react/combobox");
57
+ var import_factory = require("@ark-ui/react/factory");
58
+ var import_recipes = require("@cerberus/styled-system/recipes");
59
+ var import_css = require("@cerberus/styled-system/css");
60
+ var import_jsx_runtime2 = require("react/jsx-runtime");
61
+ function ComboboxRoot(props) {
62
+ const { size, ...rootProps } = props;
63
+ const styles = (0, import_recipes.combobox)({ size });
64
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
65
+ import_combobox.Combobox.Root,
66
+ {
67
+ ...rootProps,
68
+ className: (0, import_css.cx)(styles.root, rootProps.className)
69
+ }
70
+ );
71
+ }
72
+ function ComboboxLabel(props) {
73
+ const styles = (0, import_recipes.combobox)();
74
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_combobox.Combobox.Label, { ...props, className: (0, import_css.cx)(styles.label, props.className) });
75
+ }
76
+ function ComboboxControl(props) {
77
+ const styles = (0, import_recipes.combobox)();
78
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
79
+ import_combobox.Combobox.Control,
80
+ {
81
+ ...props,
82
+ className: (0, import_css.cx)(styles.control, props.className)
83
+ }
84
+ );
85
+ }
86
+ function ComboboxInput(props) {
87
+ const styles = (0, import_recipes.combobox)();
88
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_combobox.Combobox.Input, { ...props, className: (0, import_css.cx)(styles.input, props.className) });
89
+ }
90
+ function ComboboxTrigger(props) {
91
+ const styles = (0, import_recipes.combobox)();
92
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
93
+ import_combobox.Combobox.Trigger,
94
+ {
95
+ ...props,
96
+ className: (0, import_css.cx)(styles.trigger, props.className)
97
+ }
98
+ );
99
+ }
100
+ function ComboboxClearTrigger(props) {
101
+ const styles = (0, import_recipes.combobox)();
102
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
103
+ import_combobox.Combobox.ClearTrigger,
104
+ {
105
+ ...props,
106
+ className: (0, import_css.cx)(styles.clearTrigger, props.className)
107
+ }
108
+ );
109
+ }
110
+ function ComboboxPositioner(props) {
111
+ const styles = (0, import_recipes.combobox)();
112
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
113
+ import_combobox.Combobox.Positioner,
114
+ {
115
+ ...props,
116
+ className: (0, import_css.cx)(styles.positioner, props.className)
117
+ }
118
+ );
119
+ }
120
+ function ComboboxContent(props) {
121
+ const { size, ...contentProps } = props;
122
+ const styles = (0, import_recipes.combobox)({ size });
123
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
124
+ import_combobox.Combobox.Content,
125
+ {
126
+ ...contentProps,
127
+ className: (0, import_css.cx)(styles.content, contentProps.className)
128
+ }
129
+ );
130
+ }
131
+ function ComboboxItemGroup(props) {
132
+ const styles = (0, import_recipes.combobox)();
133
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
134
+ import_combobox.Combobox.ItemGroup,
135
+ {
136
+ ...props,
137
+ className: (0, import_css.cx)(styles.itemGroup, props.className)
138
+ }
139
+ );
140
+ }
141
+ function ComboboxItemGroupLabel(props) {
142
+ const styles = (0, import_recipes.combobox)();
143
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
144
+ import_combobox.Combobox.ItemGroupLabel,
145
+ {
146
+ ...props,
147
+ className: (0, import_css.cx)(styles.itemGroupLabel, props.className)
148
+ }
149
+ );
150
+ }
151
+ function ComboboxItem(props) {
152
+ const styles = (0, import_recipes.combobox)();
153
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_combobox.Combobox.Item, { ...props, className: (0, import_css.cx)(styles.item, props.className) });
154
+ }
155
+ function ComboboxItemText(props) {
156
+ const styles = (0, import_recipes.combobox)();
157
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
158
+ import_combobox.Combobox.ItemText,
159
+ {
160
+ ...props,
161
+ className: (0, import_css.cx)(styles.itemText, props.className)
162
+ }
163
+ );
164
+ }
165
+ function ComboboxItemIndicator(props) {
166
+ const styles = (0, import_recipes.combobox)();
167
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
168
+ import_combobox.Combobox.ItemIndicator,
169
+ {
170
+ ...props,
171
+ className: (0, import_css.cx)(styles.itemIndicator, props.className)
172
+ }
173
+ );
174
+ }
175
+ function ComboboxStartIcon(props) {
176
+ const styles = (0, import_recipes.combobox)();
177
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_factory.ark.span, { ...props, className: styles.startIcon });
178
+ }
179
+
180
+ // src/components/combobox/parts.ts
181
+ var ComboboxParts = {
182
+ Root: ComboboxRoot,
183
+ Label: ComboboxLabel,
184
+ Control: ComboboxControl,
185
+ Input: ComboboxInput,
186
+ Trigger: ComboboxTrigger,
187
+ ClearTrigger: ComboboxClearTrigger,
188
+ Positioner: ComboboxPositioner,
189
+ Content: ComboboxContent,
190
+ ItemGroup: ComboboxItemGroup,
191
+ ItemGroupLabel: ComboboxItemGroupLabel,
192
+ Item: ComboboxItem,
193
+ ItemText: ComboboxItemText,
194
+ ItemIndicator: ComboboxItemIndicator
195
+ };
196
+
197
+ // src/components/combobox/combobox.tsx
198
+ var import_jsx_runtime3 = require("react/jsx-runtime");
199
+ function Combobox2(props) {
200
+ const { label, children, startIcon, ...rootProps } = props;
201
+ const { icons } = useCerberusContext();
202
+ const { selectArrow: SelectArrow, close: CloseIcon } = icons;
203
+ const hasStartIcon = Boolean(startIcon);
204
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ComboboxParts.Root, { ...rootProps, children: [
205
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Show, { when: Boolean(label), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ComboboxParts.Label, { children: label }) }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ComboboxParts.Control, { children: [
207
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Show, { when: hasStartIcon, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ComboboxStartIcon, { children: startIcon }) }),
208
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
209
+ ComboboxParts.Input,
210
+ {
211
+ ...hasStartIcon && { "data-has": "start-indicator" }
212
+ }
213
+ ),
214
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseIcon, {}) }),
215
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ComboboxParts.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SelectArrow, {}) })
216
+ ] }),
217
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ComboboxParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ComboboxParts.Content, { size: rootProps.size, children }) }) })
218
+ ] });
219
+ }
220
+ // Annotate the CommonJS export names for ESM import in node:
221
+ 0 && (module.exports = {
222
+ Combobox
223
+ });
224
+ //# sourceMappingURL=combobox.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/combobox/combobox.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/Portal.tsx","../../../../src/components/Show.tsx","../../../../src/components/combobox/primitives.tsx","../../../../src/components/combobox/parts.ts"],"sourcesContent":["'use client'\n\nimport type { ComboboxRootProps } from '@ark-ui/react/combobox'\nimport type { ComboboxVariantProps } from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../../context/cerberus'\nimport type { SelectCollectionItem } from '../select/select'\nimport { type FieldInputProps } from '../field/index'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { ComboboxParts } from './parts'\nimport { ComboboxStartIcon } from './primitives'\n\nexport interface ComboboxProps\n extends ComboboxRootProps<SelectCollectionItem>,\n ComboboxVariantProps {\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, startIcon, ...rootProps } = props\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, close: CloseIcon } = icons\n\n const hasStartIcon = Boolean(startIcon)\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 <Show when={hasStartIcon}>\n <ComboboxStartIcon>{startIcon}</ComboboxStartIcon>\n </Show>\n\n <ComboboxParts.Input\n {...(hasStartIcon && { 'data-has': 'start-indicator' })}\n />\n\n <ComboboxParts.ClearTrigger>\n <CloseIcon />\n </ComboboxParts.ClearTrigger>\n <ComboboxParts.Trigger>\n <SelectArrow />\n </ComboboxParts.Trigger>\n </ComboboxParts.Control>\n\n <Portal>\n <ComboboxParts.Positioner>\n <ComboboxParts.Content size={rootProps.size}>\n {children}\n </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 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","'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 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 { ark } from '@ark-ui/react/factory'\nimport type { SelectCollectionItem } from '../select/select'\nimport {\n combobox,\n type ComboboxVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { PropsWithChildren } from 'react'\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(\n props: ComboboxRootProps<SelectCollectionItem> & ComboboxVariantProps,\n) {\n const { size, ...rootProps } = props\n const styles = combobox({ size })\n return (\n <Combobox.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label that appears above the combobox input.\n */\nexport function ComboboxLabel(props: ComboboxLabelProps) {\n const styles = combobox()\n return (\n <Combobox.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The control that wraps the combobox input.\n */\nexport function ComboboxControl(props: ComboboxControlProps) {\n const styles = combobox()\n return (\n <Combobox.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The input of the combobox.\n */\nexport function ComboboxInput(props: ComboboxInputProps) {\n const styles = combobox()\n return (\n <Combobox.Input {...props} className={cx(styles.input, props.className)} />\n )\n}\n\n/**\n * The trigger that opens the dropdown.\n */\nexport function ComboboxTrigger(props: ComboboxTriggerProps) {\n const styles = combobox()\n return (\n <Combobox.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The trigger to clear the combobox input.\n */\nexport function ComboboxClearTrigger(props: ComboboxClearTriggerProps) {\n const styles = combobox()\n return (\n <Combobox.ClearTrigger\n {...props}\n className={cx(styles.clearTrigger, props.className)}\n />\n )\n}\n\n/**\n * The positioner that wraps the content.\n */\nexport function ComboboxPositioner(props: ComboboxPositionerProps) {\n const styles = combobox()\n return (\n <Combobox.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The content of the combobox component.\n */\nexport function ComboboxContent(\n props: ComboboxContentProps & ComboboxVariantProps,\n) {\n const { size, ...contentProps } = props\n const styles = combobox({ size })\n return (\n <Combobox.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * A group of items in the combobox component.\n */\nexport function ComboboxItemGroup(props: ComboboxItemGroupProps) {\n const styles = combobox()\n return (\n <Combobox.ItemGroup\n {...props}\n className={cx(styles.itemGroup, props.className)}\n />\n )\n}\n\n/**\n * The label for a group of items in the combobox component.\n */\nexport function ComboboxItemGroupLabel(props: ComboboxItemGroupLabelProps) {\n const styles = combobox()\n return (\n <Combobox.ItemGroupLabel\n {...props}\n className={cx(styles.itemGroupLabel, props.className)}\n />\n )\n}\n\n/**\n * An individual item in the combobox component.\n */\nexport function ComboboxItem(props: ComboboxItemProps) {\n const styles = combobox()\n return (\n <Combobox.Item {...props} className={cx(styles.item, props.className)} />\n )\n}\n\n/**\n * The text that labels a single item of the combobox.\n */\nexport function ComboboxItemText(props: ComboboxItemTextProps) {\n const styles = combobox()\n return (\n <Combobox.ItemText\n {...props}\n className={cx(styles.itemText, props.className)}\n />\n )\n}\n\n/**\n * The indicator that appears when the item has been selected.\n */\nexport function ComboboxItemIndicator(props: ComboboxItemIndicatorProps) {\n const styles = combobox()\n return (\n <Combobox.ItemIndicator\n {...props}\n className={cx(styles.itemIndicator, props.className)}\n />\n )\n}\n\n/**\n * The icon that appears at the start of the combobox input.\n */\nexport function ComboboxStartIcon(props: PropsWithChildren) {\n const styles = combobox()\n return <ark.span {...props} className={styles.startIcon} />\n}\n\n// We are only doing this to make the API consistent\nexport const ComboItemText = ComboboxItemText\n\nexport type ComboboxInputValueChangeDetails = Combobox.InputValueChangeDetails\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,IAAAC,gBAGO;AA2BA,IAAM,SAAS,cAAAC;;;AC5BtB,IAAAC,gBAAgE;AA4BzD,SAAS,KAAK,OAAgD;AACnE,QAA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