@cerberus-design/react 0.16.0-next-f96f1b5 → 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.
- package/build/legacy/_tsup-dts-rollup.d.cts +71 -17
- package/build/legacy/components/combobox/combobox.cjs +112 -106
- package/build/legacy/components/combobox/combobox.cjs.map +1 -1
- package/build/legacy/components/combobox/index.cjs +174 -116
- package/build/legacy/components/combobox/index.cjs.map +1 -1
- package/build/legacy/components/combobox/item-group.cjs +91 -13
- package/build/legacy/components/combobox/item-group.cjs.map +1 -1
- package/build/legacy/components/combobox/item.cjs +113 -20
- package/build/legacy/components/combobox/item.cjs.map +1 -1
- package/build/legacy/components/combobox/parts.cjs +91 -13
- package/build/legacy/components/combobox/parts.cjs.map +1 -1
- package/build/legacy/components/combobox/primitives.cjs +100 -13
- package/build/legacy/components/combobox/primitives.cjs.map +1 -1
- package/build/legacy/components/combobox/use-stateful-collection.cjs +72 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -0
- package/build/legacy/index.cjs +722 -597
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +71 -17
- package/build/modern/{chunk-WXXA3T47.js → chunk-3B4SFTQB.js} +7 -7
- package/build/modern/{chunk-CHSOIYTE.js → chunk-FZ53535Q.js} +2 -2
- package/build/modern/{chunk-BRBVMWLN.js → chunk-HIC7Z23X.js} +2 -2
- package/build/modern/{chunk-VJO2FXBM.js → chunk-J7SAFAW3.js} +14 -12
- package/build/modern/chunk-J7SAFAW3.js.map +1 -0
- package/build/modern/{chunk-C45HS2C4.js → chunk-MH6CIBDU.js} +4 -4
- package/build/modern/chunk-ML2IKLMJ.js +1 -0
- package/build/modern/chunk-MR4DX76C.js +38 -0
- package/build/modern/chunk-MR4DX76C.js.map +1 -0
- package/build/modern/chunk-NR5XDIJ7.js +148 -0
- package/build/modern/chunk-NR5XDIJ7.js.map +1 -0
- package/build/modern/{chunk-KQATLK4D.js → chunk-NZKE7C53.js} +4 -4
- package/build/modern/{chunk-A5ISUWER.js → chunk-R7MPDSXX.js} +8 -8
- package/build/modern/{chunk-23EMFMBS.js → chunk-U5XRQ2JZ.js} +5 -5
- package/build/modern/{chunk-RSHCVSFC.js → chunk-WN7TJX6J.js} +4 -4
- package/build/modern/chunk-XBUXVNTY.js +22 -0
- package/build/modern/chunk-XBUXVNTY.js.map +1 -0
- package/build/modern/components/AccordionItemGroup.js +2 -2
- package/build/modern/components/combobox/combobox.js +3 -11
- package/build/modern/components/combobox/index.js +20 -19
- package/build/modern/components/combobox/item-group.js +3 -3
- package/build/modern/components/combobox/item.js +7 -5
- package/build/modern/components/combobox/parts.js +2 -2
- package/build/modern/components/combobox/primitives.js +5 -1
- package/build/modern/components/combobox/use-stateful-collection.js +9 -0
- package/build/modern/components/combobox/use-stateful-collection.js.map +1 -0
- package/build/modern/components/cta-dialog/index.js +5 -5
- package/build/modern/components/cta-dialog/provider.js +5 -5
- package/build/modern/components/dialog/close-icon-trigger.js +2 -2
- package/build/modern/components/dialog/dialog.js +2 -2
- package/build/modern/components/dialog/index.js +6 -6
- package/build/modern/components/select/index.js +4 -4
- package/build/modern/context/confirm-modal.js +5 -5
- package/build/modern/context/prompt-modal.js +6 -6
- package/build/modern/index.js +126 -118
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/combobox/combobox.tsx +22 -14
- package/src/components/combobox/index.ts +1 -0
- package/src/components/combobox/item.tsx +11 -2
- package/src/components/combobox/primitives.tsx +110 -15
- package/src/components/combobox/use-stateful-collection.ts +65 -0
- package/build/modern/chunk-SDDZFF5X.js +0 -61
- package/build/modern/chunk-SDDZFF5X.js.map +0 -1
- package/build/modern/chunk-TKBHWBFC.js +0 -17
- package/build/modern/chunk-TKBHWBFC.js.map +0 -1
- package/build/modern/chunk-VJO2FXBM.js.map +0 -1
- package/build/modern/chunk-XWPB7FXL.js +0 -1
- /package/build/modern/{chunk-WXXA3T47.js.map → chunk-3B4SFTQB.js.map} +0 -0
- /package/build/modern/{chunk-CHSOIYTE.js.map → chunk-FZ53535Q.js.map} +0 -0
- /package/build/modern/{chunk-BRBVMWLN.js.map → chunk-HIC7Z23X.js.map} +0 -0
- /package/build/modern/{chunk-C45HS2C4.js.map → chunk-MH6CIBDU.js.map} +0 -0
- /package/build/modern/{chunk-XWPB7FXL.js.map → chunk-ML2IKLMJ.js.map} +0 -0
- /package/build/modern/{chunk-KQATLK4D.js.map → chunk-NZKE7C53.js.map} +0 -0
- /package/build/modern/{chunk-A5ISUWER.js.map → chunk-R7MPDSXX.js.map} +0 -0
- /package/build/modern/{chunk-23EMFMBS.js.map → chunk-U5XRQ2JZ.js.map} +0 -0
- /package/build/modern/{chunk-RSHCVSFC.js.map → chunk-WN7TJX6J.js.map} +0 -0
|
@@ -26,10 +26,12 @@ 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';
|
|
29
30
|
import { ComboboxClearTriggerProps } from '@ark-ui/react/combobox';
|
|
30
31
|
import { ComboboxContentProps } from '@ark-ui/react/combobox';
|
|
31
32
|
import { ComboboxControlProps } from '@ark-ui/react/combobox';
|
|
32
33
|
import { ComboboxInputProps } from '@ark-ui/react/combobox';
|
|
34
|
+
import type { ComboboxInputValueChangeDetails as ComboboxInputValueChangeDetails_2 } from '@ark-ui/react/combobox';
|
|
33
35
|
import { ComboboxItemGroupLabelProps } from '@ark-ui/react/combobox';
|
|
34
36
|
import { ComboboxItemGroupProps } from '@ark-ui/react/combobox';
|
|
35
37
|
import { ComboboxItemIndicatorProps } from '@ark-ui/react/combobox';
|
|
@@ -40,6 +42,7 @@ import { ComboboxLabelProps } from '@ark-ui/react/combobox';
|
|
|
40
42
|
import { ComboboxPositionerProps } from '@ark-ui/react/combobox';
|
|
41
43
|
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
42
44
|
import { ComboboxTriggerProps } from '@ark-ui/react/combobox';
|
|
45
|
+
import { ComboboxVariantProps } from '@cerberus/styled-system/recipes';
|
|
43
46
|
import { Context } from 'react';
|
|
44
47
|
import { Data } from '@dnd-kit/core';
|
|
45
48
|
import { DataRef } from '@dnd-kit/core';
|
|
@@ -955,7 +958,7 @@ export { ComboboxClearTrigger as ComboboxClearTrigger_alias_2 }
|
|
|
955
958
|
/**
|
|
956
959
|
* The content of the combobox component.
|
|
957
960
|
*/
|
|
958
|
-
declare function ComboboxContent(props: ComboboxContentProps): JSX_2.Element;
|
|
961
|
+
declare function ComboboxContent(props: ComboboxContentProps & ComboboxVariantProps): JSX_2.Element;
|
|
959
962
|
export { ComboboxContent }
|
|
960
963
|
export { ComboboxContent as ComboboxContent_alias_1 }
|
|
961
964
|
export { ComboboxContent as ComboboxContent_alias_2 }
|
|
@@ -976,6 +979,11 @@ export { ComboboxInput }
|
|
|
976
979
|
export { ComboboxInput as ComboboxInput_alias_1 }
|
|
977
980
|
export { ComboboxInput as ComboboxInput_alias_2 }
|
|
978
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
|
+
|
|
979
987
|
/**
|
|
980
988
|
* An individual item in the combobox component.
|
|
981
989
|
*/
|
|
@@ -1016,20 +1024,6 @@ export { ComboboxItemText }
|
|
|
1016
1024
|
export { ComboboxItemText as ComboboxItemText_alias_1 }
|
|
1017
1025
|
export { ComboboxItemText as ComboboxItemText_alias_2 }
|
|
1018
1026
|
|
|
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
1027
|
/**
|
|
1034
1028
|
* The label that appears above the combobox input.
|
|
1035
1029
|
*/
|
|
@@ -1119,7 +1113,7 @@ export { ComboboxPositioner }
|
|
|
1119
1113
|
export { ComboboxPositioner as ComboboxPositioner_alias_1 }
|
|
1120
1114
|
export { ComboboxPositioner as ComboboxPositioner_alias_2 }
|
|
1121
1115
|
|
|
1122
|
-
declare interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem
|
|
1116
|
+
declare interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem>, ComboboxVariantProps {
|
|
1123
1117
|
/**
|
|
1124
1118
|
* The label that appears above the combobox input.
|
|
1125
1119
|
*/
|
|
@@ -1141,11 +1135,19 @@ export { ComboboxProps as ComboboxProps_alias_2 }
|
|
|
1141
1135
|
* The ComboboxRoot component is the context provider for the Combobox
|
|
1142
1136
|
* component.
|
|
1143
1137
|
*/
|
|
1144
|
-
declare function ComboboxRoot(props: ComboboxRootProps<SelectCollectionItem>): JSX_2.Element;
|
|
1138
|
+
declare function ComboboxRoot(props: ComboboxRootProps<SelectCollectionItem> & ComboboxVariantProps): JSX_2.Element;
|
|
1145
1139
|
export { ComboboxRoot }
|
|
1146
1140
|
export { ComboboxRoot as ComboboxRoot_alias_1 }
|
|
1147
1141
|
export { ComboboxRoot as ComboboxRoot_alias_2 }
|
|
1148
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
|
+
|
|
1149
1151
|
/**
|
|
1150
1152
|
* The trigger that opens the dropdown.
|
|
1151
1153
|
*/
|
|
@@ -1169,6 +1171,25 @@ export { ComboItemGroupProps }
|
|
|
1169
1171
|
export { ComboItemGroupProps as ComboItemGroupProps_alias_1 }
|
|
1170
1172
|
export { ComboItemGroupProps as ComboItemGroupProps_alias_2 }
|
|
1171
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
|
+
|
|
1172
1193
|
/**
|
|
1173
1194
|
* Provides a confirm modal to the app.
|
|
1174
1195
|
* @see https://cerberus.digitalu.design/react/confirm-modal
|
|
@@ -4413,6 +4434,28 @@ declare function splitProps<T extends object>(props: T, ...keyGroups: (keyof T)[
|
|
|
4413
4434
|
export { splitProps }
|
|
4414
4435
|
export { splitProps as splitProps_alias_1 }
|
|
4415
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
|
+
|
|
4416
4459
|
/**
|
|
4417
4460
|
* This module contains the tag component.
|
|
4418
4461
|
* @module
|
|
@@ -5265,6 +5308,17 @@ export { useSensor }
|
|
|
5265
5308
|
|
|
5266
5309
|
export { useSensors }
|
|
5267
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
|
+
|
|
5268
5322
|
/**
|
|
5269
5323
|
* Used to access the tabs context.
|
|
5270
5324
|
* @returns The tabs context.
|
|
@@ -37,83 +37,9 @@ function useCerberusContext() {
|
|
|
37
37
|
return context;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
// src/components/
|
|
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
|
|
40
|
+
// src/components/Portal.tsx
|
|
46
41
|
var import_react2 = require("@ark-ui/react");
|
|
47
|
-
var
|
|
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;
|
|
42
|
+
var Portal = import_react2.Portal;
|
|
117
43
|
|
|
118
44
|
// src/components/Show.tsx
|
|
119
45
|
var import_react3 = require("react");
|
|
@@ -126,51 +52,129 @@ function Show(props) {
|
|
|
126
52
|
}, [condition, children, fallback]);
|
|
127
53
|
}
|
|
128
54
|
|
|
129
|
-
// src/components/Portal.tsx
|
|
130
|
-
var import_react4 = require("@ark-ui/react");
|
|
131
|
-
var Portal = import_react4.Portal;
|
|
132
|
-
|
|
133
55
|
// src/components/combobox/primitives.tsx
|
|
134
56
|
var import_combobox = require("@ark-ui/react/combobox");
|
|
135
|
-
var
|
|
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");
|
|
136
61
|
function ComboboxRoot(props) {
|
|
137
|
-
|
|
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
|
+
);
|
|
138
71
|
}
|
|
139
72
|
function ComboboxLabel(props) {
|
|
140
|
-
|
|
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) });
|
|
141
75
|
}
|
|
142
76
|
function ComboboxControl(props) {
|
|
143
|
-
|
|
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
|
+
);
|
|
144
85
|
}
|
|
145
86
|
function ComboboxInput(props) {
|
|
146
|
-
|
|
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) });
|
|
147
89
|
}
|
|
148
90
|
function ComboboxTrigger(props) {
|
|
149
|
-
|
|
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
|
+
);
|
|
150
99
|
}
|
|
151
100
|
function ComboboxClearTrigger(props) {
|
|
152
|
-
|
|
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
|
+
);
|
|
153
109
|
}
|
|
154
110
|
function ComboboxPositioner(props) {
|
|
155
|
-
|
|
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
|
+
);
|
|
156
119
|
}
|
|
157
120
|
function ComboboxContent(props) {
|
|
158
|
-
|
|
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
|
+
);
|
|
159
130
|
}
|
|
160
131
|
function ComboboxItemGroup(props) {
|
|
161
|
-
|
|
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
|
+
);
|
|
162
140
|
}
|
|
163
141
|
function ComboboxItemGroupLabel(props) {
|
|
164
|
-
|
|
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
|
+
);
|
|
165
150
|
}
|
|
166
151
|
function ComboboxItem(props) {
|
|
167
|
-
|
|
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) });
|
|
168
154
|
}
|
|
169
155
|
function ComboboxItemText(props) {
|
|
170
|
-
|
|
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
|
+
);
|
|
171
164
|
}
|
|
172
165
|
function ComboboxItemIndicator(props) {
|
|
173
|
-
|
|
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 });
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
// src/components/combobox/parts.ts
|
|
@@ -191,24 +195,26 @@ var ComboboxParts = {
|
|
|
191
195
|
};
|
|
192
196
|
|
|
193
197
|
// src/components/combobox/combobox.tsx
|
|
194
|
-
var
|
|
198
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
195
199
|
function Combobox2(props) {
|
|
196
|
-
const { label, children, ...rootProps } = props;
|
|
200
|
+
const { label, children, startIcon, ...rootProps } = props;
|
|
197
201
|
const { icons } = useCerberusContext();
|
|
198
202
|
const { selectArrow: SelectArrow, close: CloseIcon } = icons;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
/* @__PURE__ */ (0,
|
|
202
|
-
|
|
203
|
-
|
|
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,
|
|
204
210
|
{
|
|
205
|
-
|
|
206
|
-
endIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CloseIcon, {}) })
|
|
211
|
+
...hasStartIcon && { "data-has": "start-indicator" }
|
|
207
212
|
}
|
|
208
|
-
)
|
|
209
|
-
/* @__PURE__ */ (0,
|
|
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, {}) })
|
|
210
216
|
] }),
|
|
211
|
-
/* @__PURE__ */ (0,
|
|
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 }) }) })
|
|
212
218
|
] });
|
|
213
219
|
}
|
|
214
220
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +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,IAAI,mBAAmB;AACrC,QAAM,EAAE,SAAS,YAAY,IAAI;AAEjC,MAAI,aAAa,SAAS;AACxB,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,eAAY;AAAA,QACZ,gBAAY;AAAA,QACZ,eAAW,eAAG,YAAY,WAAW,OAAO,eAAe;AAAA,QAE3D,uDAAC,eAAY;AAAA;AAAA,IACf;AAAA,EAEJ;AAEA,SACE;AAAA,IA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,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,UAAU;AAAA,EACV,eAAe;AACjB;;;ARtEQ,IAAAC,sBAAA;AATD,SAASC,UAAS,OAAsB;AAC7C,QAAM,EAAE,OAAO,UAAU,GAAG,UAAU,IAAI;AAE1C,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,aAAa,OAAO,UAAU,IAAI;AAEvD,SACE,8CAAC,cAAc,MAAd,EAAoB,GAAG,WACtB;AAAA,iDAAC,QAAK,MAAM,QAAQ,KAAK,GACvB,uDAAC,cAAc,OAAd,EAAqB,iBAAM,GAC9B;AAAA,IAEA,8CAAC,cAAc,SAAd,EACC;AAAA,mDAAC,cAAc,OAAd,EAAoB,SAAO,MAC1B;AAAA,QAAC;AAAA;AAAA,UACC,WAAW,MAAM;AAAA,UACjB,SACE,6CAAC,cAAc,cAAd,EACC,uDAAC,aAAU,GACb;AAAA;AAAA,MAEJ,GACF;AAAA,MAEA,6CAAC,cAAc,SAAd,EACC,uDAAC,eAAY,GACf;AAAA,OACF;AAAA,IAEA,6CAAC,UACC,uDAAC,cAAc,YAAd,EACC,uDAAC,cAAc,SAAd,EAAuB,UAAS,GACnC,GACF;AAAA,KACF;AAEJ;","names":["Combobox","import_css","import_recipes","import_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"]}
|
|
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: ComboboxItemGroupL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