@cerberus-design/react 0.15.0-next-7669d47 → 0.15.0-next-e5dbdbd

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 (98) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +123 -29
  2. package/build/legacy/components/Accordion.cjs.map +1 -1
  3. package/build/legacy/components/AccordionItemGroup.cjs.map +1 -1
  4. package/build/legacy/components/Select.cjs +101 -60
  5. package/build/legacy/components/Select.cjs.map +1 -1
  6. package/build/legacy/components/{Modal.cjs → deprecated/Modal.cjs} +1 -1
  7. package/build/legacy/components/deprecated/Modal.cjs.map +1 -0
  8. package/build/legacy/components/{ModalDescription.cjs → deprecated/ModalDescription.cjs} +1 -1
  9. package/build/legacy/components/deprecated/ModalDescription.cjs.map +1 -0
  10. package/build/legacy/components/{ModalHeader.cjs → deprecated/ModalHeader.cjs} +1 -1
  11. package/build/legacy/components/deprecated/ModalHeader.cjs.map +1 -0
  12. package/build/legacy/components/{ModalHeading.cjs → deprecated/ModalHeading.cjs} +1 -1
  13. package/build/legacy/components/deprecated/ModalHeading.cjs.map +1 -0
  14. package/build/legacy/components/{NavMenuLink.cjs → deprecated/NavMenuLink.cjs} +2 -2
  15. package/build/legacy/components/deprecated/NavMenuLink.cjs.map +1 -0
  16. package/build/legacy/components/{NavMenuList.cjs → deprecated/NavMenuList.cjs} +2 -2
  17. package/build/legacy/components/deprecated/NavMenuList.cjs.map +1 -0
  18. package/build/legacy/components/{NavMenuTrigger.cjs → deprecated/NavMenuTrigger.cjs} +2 -2
  19. package/build/legacy/components/deprecated/NavMenuTrigger.cjs.map +1 -0
  20. package/build/legacy/config/types.cjs.map +1 -1
  21. package/build/legacy/index.cjs +207 -189
  22. package/build/legacy/index.cjs.map +1 -1
  23. package/build/modern/_tsup-dts-rollup.d.ts +123 -29
  24. package/build/modern/{chunk-UZVQ4INR.js → chunk-AIJ75ENY.js} +2 -2
  25. package/build/modern/chunk-AIJ75ENY.js.map +1 -0
  26. package/build/modern/{chunk-NUMM4TNC.js → chunk-AUALRL3U.js} +2 -2
  27. package/build/modern/chunk-AUALRL3U.js.map +1 -0
  28. package/build/modern/{chunk-IGHMP4WA.js → chunk-AZRFYQO7.js} +1 -1
  29. package/build/modern/chunk-AZRFYQO7.js.map +1 -0
  30. package/build/modern/{chunk-PM7CWT3N.js → chunk-BRVZVAPT.js} +2 -2
  31. package/build/modern/chunk-BRVZVAPT.js.map +1 -0
  32. package/build/modern/{chunk-JIRW4XOJ.js → chunk-Q3I4H6EC.js} +2 -2
  33. package/build/modern/chunk-Q3I4H6EC.js.map +1 -0
  34. package/build/modern/{chunk-7NN3SJ7W.js → chunk-SWX5JWZR.js} +2 -2
  35. package/build/modern/chunk-SWX5JWZR.js.map +1 -0
  36. package/build/modern/{chunk-ZL6ZITLA.js → chunk-WECB67DC.js} +2 -2
  37. package/build/modern/chunk-WECB67DC.js.map +1 -0
  38. package/build/modern/{chunk-BAWZBF5Q.js → chunk-WN7TJX6J.js} +2 -2
  39. package/build/modern/chunk-X6WFDKKJ.js +90 -0
  40. package/build/modern/chunk-X6WFDKKJ.js.map +1 -0
  41. package/build/modern/{chunk-WPVDQRRF.js → chunk-YOTXFCCC.js} +2 -2
  42. package/build/modern/chunk-YOTXFCCC.js.map +1 -0
  43. package/build/modern/components/Accordion.js +1 -1
  44. package/build/modern/components/AccordionItemGroup.js +2 -2
  45. package/build/modern/components/Select.js +11 -4
  46. package/build/modern/components/deprecated/Modal.js +7 -0
  47. package/build/modern/components/deprecated/ModalDescription.js +7 -0
  48. package/build/modern/components/deprecated/ModalHeader.js +7 -0
  49. package/build/modern/components/deprecated/ModalHeading.js +7 -0
  50. package/build/modern/components/deprecated/NavMenuLink.js +8 -0
  51. package/build/modern/components/deprecated/NavMenuList.js +12 -0
  52. package/build/modern/components/deprecated/NavMenuTrigger.js +11 -0
  53. package/build/modern/index.js +52 -46
  54. package/build/modern/index.js.map +1 -1
  55. package/package.json +2 -2
  56. package/src/components/Accordion.tsx +1 -0
  57. package/src/components/Select.tsx +191 -74
  58. package/src/components/{NavMenuLink.tsx → deprecated/NavMenuLink.tsx} +1 -1
  59. package/src/components/{NavMenuList.tsx → deprecated/NavMenuList.tsx} +3 -3
  60. package/src/components/{NavMenuTrigger.tsx → deprecated/NavMenuTrigger.tsx} +4 -4
  61. package/src/config/types.ts +1 -0
  62. package/src/index.ts +8 -8
  63. package/build/legacy/components/Modal.cjs.map +0 -1
  64. package/build/legacy/components/ModalDescription.cjs.map +0 -1
  65. package/build/legacy/components/ModalHeader.cjs.map +0 -1
  66. package/build/legacy/components/ModalHeading.cjs.map +0 -1
  67. package/build/legacy/components/NavMenuLink.cjs.map +0 -1
  68. package/build/legacy/components/NavMenuList.cjs.map +0 -1
  69. package/build/legacy/components/NavMenuTrigger.cjs.map +0 -1
  70. package/build/modern/chunk-7NN3SJ7W.js.map +0 -1
  71. package/build/modern/chunk-IGHMP4WA.js.map +0 -1
  72. package/build/modern/chunk-JIRW4XOJ.js.map +0 -1
  73. package/build/modern/chunk-KKHL3ZO4.js +0 -69
  74. package/build/modern/chunk-KKHL3ZO4.js.map +0 -1
  75. package/build/modern/chunk-NUMM4TNC.js.map +0 -1
  76. package/build/modern/chunk-PM7CWT3N.js.map +0 -1
  77. package/build/modern/chunk-UZVQ4INR.js.map +0 -1
  78. package/build/modern/chunk-WPVDQRRF.js.map +0 -1
  79. package/build/modern/chunk-ZL6ZITLA.js.map +0 -1
  80. package/build/modern/components/Modal.js +0 -7
  81. package/build/modern/components/ModalDescription.js +0 -7
  82. package/build/modern/components/ModalHeader.js +0 -7
  83. package/build/modern/components/ModalHeading.js +0 -7
  84. package/build/modern/components/NavMenuLink.js +0 -8
  85. package/build/modern/components/NavMenuList.js +0 -12
  86. package/build/modern/components/NavMenuTrigger.js +0 -11
  87. /package/build/modern/{chunk-BAWZBF5Q.js.map → chunk-WN7TJX6J.js.map} +0 -0
  88. /package/build/modern/components/{Modal.js.map → deprecated/Modal.js.map} +0 -0
  89. /package/build/modern/components/{ModalDescription.js.map → deprecated/ModalDescription.js.map} +0 -0
  90. /package/build/modern/components/{ModalHeader.js.map → deprecated/ModalHeader.js.map} +0 -0
  91. /package/build/modern/components/{ModalHeading.js.map → deprecated/ModalHeading.js.map} +0 -0
  92. /package/build/modern/components/{NavMenuLink.js.map → deprecated/NavMenuLink.js.map} +0 -0
  93. /package/build/modern/components/{NavMenuList.js.map → deprecated/NavMenuList.js.map} +0 -0
  94. /package/build/modern/components/{NavMenuTrigger.js.map → deprecated/NavMenuTrigger.js.map} +0 -0
  95. /package/src/components/{Modal.tsx → deprecated/Modal.tsx} +0 -0
  96. /package/src/components/{ModalDescription.tsx → deprecated/ModalDescription.tsx} +0 -0
  97. /package/src/components/{ModalHeader.tsx → deprecated/ModalHeader.tsx} +0 -0
  98. /package/src/components/{ModalHeading.tsx → deprecated/ModalHeading.tsx} +0 -0
@@ -99,6 +99,8 @@ __export(src_exports, {
99
99
  NotificationDescription: () => NotificationDescription,
100
100
  NotificationHeading: () => NotificationHeading,
101
101
  Option: () => Option,
102
+ OptionGroup: () => OptionGroup,
103
+ OptionGroupLabel: () => OptionGroupLabel,
102
104
  Portal: () => Portal,
103
105
  ProgressBar: () => ProgressBar,
104
106
  PromptModal: () => PromptModal,
@@ -128,6 +130,7 @@ __export(src_exports, {
128
130
  Tooltip: () => Tooltip,
129
131
  Tr: () => Tr,
130
132
  createNavTriggerProps: () => createNavTriggerProps,
133
+ createSelectCollection: () => createSelectCollection,
131
134
  defineIcons: () => defineIcons,
132
135
  formatISOToMilitary: () => formatISOToMilitary,
133
136
  formatMilitaryDate: () => formatMilitaryDate,
@@ -157,7 +160,7 @@ __export(src_exports, {
157
160
  });
158
161
  module.exports = __toCommonJS(src_exports);
159
162
 
160
- // src/components/Modal.tsx
163
+ // src/components/deprecated/Modal.tsx
161
164
  var import_css = require("@cerberus/styled-system/css");
162
165
  var import_recipes = require("@cerberus/styled-system/recipes");
163
166
  var import_react = require("react");
@@ -174,7 +177,7 @@ function ModalEl(props, ref) {
174
177
  }
175
178
  var Modal = (0, import_react.forwardRef)(ModalEl);
176
179
 
177
- // src/components/ModalHeader.tsx
180
+ // src/components/deprecated/ModalHeader.tsx
178
181
  var import_css2 = require("@cerberus/styled-system/css");
179
182
  var import_patterns = require("@cerberus/styled-system/patterns");
180
183
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -195,7 +198,7 @@ function ModalHeader(props) {
195
198
  );
196
199
  }
197
200
 
198
- // src/components/ModalHeading.tsx
201
+ // src/components/deprecated/ModalHeading.tsx
199
202
  var import_css3 = require("@cerberus/styled-system/css");
200
203
  var import_recipes2 = require("@cerberus/styled-system/recipes");
201
204
  var import_jsx_runtime3 = require("react/jsx-runtime");
@@ -203,7 +206,7 @@ function ModalHeading(props) {
203
206
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { ...props, className: (0, import_css3.cx)(props.className, (0, import_recipes2.modal)().heading) });
204
207
  }
205
208
 
206
- // src/components/ModalDescription.tsx
209
+ // src/components/deprecated/ModalDescription.tsx
207
210
  var import_css4 = require("@cerberus/styled-system/css");
208
211
  var import_recipes3 = require("@cerberus/styled-system/recipes");
209
212
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -211,7 +214,7 @@ function ModalDescription(props) {
211
214
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { ...props, className: (0, import_css4.cx)(props.className, (0, import_recipes3.modal)().description) });
212
215
  }
213
216
 
214
- // src/components/NavMenuTrigger.tsx
217
+ // src/components/deprecated/NavMenuTrigger.tsx
215
218
  var import_react4 = require("react");
216
219
  var import_css6 = require("@cerberus/styled-system/css");
217
220
  var import_recipes4 = require("@cerberus/styled-system/recipes");
@@ -274,7 +277,7 @@ function Show(props) {
274
277
  }, [condition, children, fallback]);
275
278
  }
276
279
 
277
- // src/components/NavMenuTrigger.tsx
280
+ // src/components/deprecated/NavMenuTrigger.tsx
278
281
  var import_jsx_runtime6 = require("react/jsx-runtime");
279
282
  function NavMenuTrigger(props) {
280
283
  const {
@@ -336,7 +339,7 @@ function NavMenuTrigger(props) {
336
339
  );
337
340
  }
338
341
 
339
- // src/components/NavMenuList.tsx
342
+ // src/components/deprecated/NavMenuList.tsx
340
343
  var import_react5 = require("react");
341
344
  var import_css7 = require("@cerberus/styled-system/css");
342
345
  var import_patterns2 = require("@cerberus/styled-system/patterns");
@@ -410,7 +413,7 @@ function NavMenuList(props) {
410
413
  ) });
411
414
  }
412
415
 
413
- // src/components/NavMenuLink.tsx
416
+ // src/components/deprecated/NavMenuLink.tsx
414
417
  var import_css8 = require("@cerberus/styled-system/css");
415
418
  var import_jsx_runtime8 = require("react/jsx-runtime");
416
419
  function NavMenuLink(props) {
@@ -2079,62 +2082,10 @@ function Radio(props) {
2079
2082
  );
2080
2083
  }
2081
2084
 
2082
- // src/components/Select.tsx
2083
- var import_css36 = require("@cerberus/styled-system/css");
2084
- var import_patterns13 = require("@cerberus/styled-system/patterns");
2085
- var import_recipes29 = require("@cerberus/styled-system/recipes");
2086
- var import_jsx_runtime42 = require("react/jsx-runtime");
2087
- function Select(props) {
2088
- const { describedBy, size, ...nativeProps } = props;
2089
- const { invalid, ...fieldStates } = useFieldContext();
2090
- const { icons } = useCerberusContext();
2091
- const { invalid: InvalidIcon, selectArrow: SelectArrow } = icons;
2092
- const styles = (0, import_recipes29.select)({
2093
- size
2094
- });
2095
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: styles.root, children: [
2096
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2097
- "select",
2098
- {
2099
- ...nativeProps,
2100
- ...fieldStates,
2101
- ...describedBy && { "aria-describedby": describedBy },
2102
- ...invalid && { "aria-invalid": true },
2103
- className: styles.input
2104
- }
2105
- ),
2106
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2107
- "span",
2108
- {
2109
- className: (0, import_css36.cx)(
2110
- styles.iconStack,
2111
- (0, import_patterns13.hstack)({
2112
- gap: "2"
2113
- })
2114
- ),
2115
- children: [
2116
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: invalid, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2117
- "span",
2118
- {
2119
- ...invalid && { "data-invalid": true },
2120
- className: styles.stateIcon,
2121
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(InvalidIcon, {})
2122
- }
2123
- ) }),
2124
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: styles.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectArrow, {}) })
2125
- ]
2126
- }
2127
- )
2128
- ] });
2129
- }
2130
- function Option(props) {
2131
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("option", { ...props });
2132
- }
2133
-
2134
2085
  // src/components/Spinner.tsx
2135
- var import_jsx_runtime43 = require("react/jsx-runtime");
2086
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2136
2087
  function Spinner(props) {
2137
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2088
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2138
2089
  "svg",
2139
2090
  {
2140
2091
  "aria-busy": "true",
@@ -2144,7 +2095,7 @@ function Spinner(props) {
2144
2095
  width: props.size,
2145
2096
  viewBox: "0 0 24 24",
2146
2097
  ...props,
2147
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2098
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2148
2099
  "g",
2149
2100
  {
2150
2101
  fill: "none",
@@ -2153,14 +2104,14 @@ function Spinner(props) {
2153
2104
  strokeLinejoin: "round",
2154
2105
  strokeWidth: 2,
2155
2106
  children: [
2156
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2107
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2157
2108
  "path",
2158
2109
  {
2159
2110
  strokeDasharray: 16,
2160
2111
  strokeDashoffset: 16,
2161
2112
  d: "M12 3c4.97 0 9 4.03 9 9",
2162
2113
  children: [
2163
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2114
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2164
2115
  "animate",
2165
2116
  {
2166
2117
  fill: "freeze",
@@ -2169,7 +2120,7 @@ function Spinner(props) {
2169
2120
  values: "16;0"
2170
2121
  }
2171
2122
  ),
2172
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2123
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2173
2124
  "animateTransform",
2174
2125
  {
2175
2126
  attributeName: "transform",
@@ -2182,14 +2133,14 @@ function Spinner(props) {
2182
2133
  ]
2183
2134
  }
2184
2135
  ),
2185
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2136
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2186
2137
  "path",
2187
2138
  {
2188
2139
  strokeDasharray: 64,
2189
2140
  strokeDashoffset: 64,
2190
2141
  strokeOpacity: 0.3,
2191
2142
  d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",
2192
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2143
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2193
2144
  "animate",
2194
2145
  {
2195
2146
  fill: "freeze",
@@ -2209,11 +2160,11 @@ function Spinner(props) {
2209
2160
 
2210
2161
  // src/components/Tabs.client.tsx
2211
2162
  var import_tabs2 = require("@ark-ui/react/tabs");
2212
- var import_css37 = require("@cerberus/styled-system/css");
2163
+ var import_css36 = require("@cerberus/styled-system/css");
2213
2164
 
2214
2165
  // src/context/tabs.tsx
2215
2166
  var import_tabs = require("@ark-ui/react/tabs");
2216
- var import_recipes30 = require("@cerberus/styled-system/recipes");
2167
+ var import_recipes29 = require("@cerberus/styled-system/recipes");
2217
2168
  var import_react21 = require("react");
2218
2169
 
2219
2170
  // src/utils/localStorage.ts
@@ -2230,14 +2181,14 @@ function setLocalStorage(key, value) {
2230
2181
  }
2231
2182
 
2232
2183
  // src/context/tabs.tsx
2233
- var import_jsx_runtime44 = require("react/jsx-runtime");
2184
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2234
2185
  var TabsContext = (0, import_react21.createContext)(null);
2235
2186
  function Tabs(props) {
2236
2187
  const { cache, defaultValue, palette, uuid, ...arkProps } = props;
2237
2188
  const [activeTab, setActiveTab] = (0, import_react21.useState)(
2238
2189
  () => cache ? "" : defaultValue
2239
2190
  );
2240
- const styles = (0, import_recipes30.tabs)({ palette });
2191
+ const styles = (0, import_recipes29.tabs)({ palette });
2241
2192
  const cacheKey = (0, import_react21.useMemo)(
2242
2193
  () => uuid ? `cerberus-tabs-${uuid}` : "cerberus-tabs",
2243
2194
  [uuid]
@@ -2264,7 +2215,7 @@ function Tabs(props) {
2264
2215
  }),
2265
2216
  [activeTab, palette, styles]
2266
2217
  );
2267
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2218
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2268
2219
  import_tabs.Tabs.Root,
2269
2220
  {
2270
2221
  ...arkProps,
@@ -2286,18 +2237,18 @@ function useTabsContext() {
2286
2237
  }
2287
2238
 
2288
2239
  // src/components/Tabs.client.tsx
2289
- var import_jsx_runtime45 = require("react/jsx-runtime");
2240
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2290
2241
  function TabsList(props) {
2291
2242
  const { children, ...tabsProps } = props;
2292
2243
  const { styles } = useTabsContext();
2293
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2244
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2294
2245
  import_tabs2.Tabs.List,
2295
2246
  {
2296
2247
  ...tabsProps,
2297
- className: (0, import_css37.cx)(tabsProps.className, styles.list),
2248
+ className: (0, import_css36.cx)(tabsProps.className, styles.list),
2298
2249
  children: [
2299
2250
  children,
2300
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TabIndicator, {})
2251
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TabIndicator, {})
2301
2252
  ]
2302
2253
  }
2303
2254
  );
@@ -2305,90 +2256,90 @@ function TabsList(props) {
2305
2256
  var TabList = TabsList;
2306
2257
  function Tab(props) {
2307
2258
  const { styles } = useTabsContext();
2308
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2259
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2309
2260
  import_tabs2.Tabs.Trigger,
2310
2261
  {
2311
2262
  ...props,
2312
- className: (0, import_css37.cx)(props.className, styles.trigger)
2263
+ className: (0, import_css36.cx)(props.className, styles.trigger)
2313
2264
  }
2314
2265
  );
2315
2266
  }
2316
2267
  function TabIndicator(props) {
2317
2268
  const { styles } = useTabsContext();
2318
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2269
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2319
2270
  import_tabs2.Tabs.Indicator,
2320
2271
  {
2321
2272
  ...props,
2322
- className: (0, import_css37.cx)(props.className, styles.indicator)
2273
+ className: (0, import_css36.cx)(props.className, styles.indicator)
2323
2274
  }
2324
2275
  );
2325
2276
  }
2326
2277
  function TabPanel(props) {
2327
2278
  const { styles } = useTabsContext();
2328
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2279
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2329
2280
  import_tabs2.Tabs.Content,
2330
2281
  {
2331
2282
  ...props,
2332
- className: (0, import_css37.cx)(props.className, styles.content)
2283
+ className: (0, import_css36.cx)(props.className, styles.content)
2333
2284
  }
2334
2285
  );
2335
2286
  }
2336
2287
 
2337
2288
  // src/components/Table.tsx
2338
- var import_css38 = require("@cerberus/styled-system/css");
2339
- var import_recipes31 = require("@cerberus/styled-system/recipes");
2340
- var import_jsx_runtime46 = require("react/jsx-runtime");
2289
+ var import_css37 = require("@cerberus/styled-system/css");
2290
+ var import_recipes30 = require("@cerberus/styled-system/recipes");
2291
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2341
2292
  function Table(props) {
2342
2293
  const { caption, children, ...nativeProps } = props;
2343
- const styles = (0, import_recipes31.table)();
2344
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2294
+ const styles = (0, import_recipes30.table)();
2295
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2345
2296
  "table",
2346
2297
  {
2347
2298
  ...nativeProps,
2348
- className: (0, import_css38.cx)(nativeProps.className, styles.table),
2299
+ className: (0, import_css37.cx)(nativeProps.className, styles.table),
2349
2300
  children: [
2350
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("caption", { className: styles.caption, children: caption }),
2301
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("caption", { className: styles.caption, children: caption }),
2351
2302
  children
2352
2303
  ]
2353
2304
  }
2354
2305
  ) });
2355
2306
  }
2356
2307
  function Tr(props) {
2357
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { ...props });
2308
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { ...props });
2358
2309
  }
2359
2310
 
2360
2311
  // src/components/Thead.tsx
2361
- var import_css39 = require("@cerberus/styled-system/css");
2362
- var import_recipes32 = require("@cerberus/styled-system/recipes");
2363
- var import_jsx_runtime47 = require("react/jsx-runtime");
2312
+ var import_css38 = require("@cerberus/styled-system/css");
2313
+ var import_recipes31 = require("@cerberus/styled-system/recipes");
2314
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2364
2315
  function Thead(props) {
2365
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { ...props, className: (0, import_css39.cx)(props.className, (0, import_recipes32.thead)()) });
2316
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { ...props, className: (0, import_css38.cx)(props.className, (0, import_recipes31.thead)()) });
2366
2317
  }
2367
2318
 
2368
2319
  // src/components/Th.tsx
2369
- var import_css40 = require("@cerberus/styled-system/css");
2370
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2371
- var import_jsx_runtime48 = require("react/jsx-runtime");
2320
+ var import_css39 = require("@cerberus/styled-system/css");
2321
+ var import_recipes32 = require("@cerberus/styled-system/recipes");
2322
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2372
2323
  function Th(props) {
2373
2324
  const { size, onClick, ...nativeProps } = props;
2374
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2325
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2375
2326
  Show,
2376
2327
  {
2377
2328
  when: Boolean(onClick),
2378
- fallback: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2329
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2379
2330
  "th",
2380
2331
  {
2381
2332
  ...nativeProps,
2382
- className: (0, import_css40.cx)(nativeProps.className, (0, import_recipes33.th)({ size }))
2333
+ className: (0, import_css39.cx)(nativeProps.className, (0, import_recipes32.th)({ size }))
2383
2334
  }
2384
2335
  ),
2385
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2336
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2386
2337
  "button",
2387
2338
  {
2388
- className: (0, import_css40.cx)(
2339
+ className: (0, import_css39.cx)(
2389
2340
  nativeProps.className,
2390
- (0, import_recipes33.th)({ size }),
2391
- (0, import_css40.css)({
2341
+ (0, import_recipes32.th)({ size }),
2342
+ (0, import_css39.css)({
2392
2343
  alignItems: "center",
2393
2344
  display: "inline-flex",
2394
2345
  justifyContent: "space-between",
@@ -2408,18 +2359,18 @@ function Th(props) {
2408
2359
  }
2409
2360
 
2410
2361
  // src/components/Td.tsx
2411
- var import_css41 = require("@cerberus/styled-system/css");
2412
- var import_recipes34 = require("@cerberus/styled-system/recipes");
2413
- var import_jsx_runtime49 = require("react/jsx-runtime");
2362
+ var import_css40 = require("@cerberus/styled-system/css");
2363
+ var import_recipes33 = require("@cerberus/styled-system/recipes");
2364
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2414
2365
  function Td(props) {
2415
2366
  const { size, ...nativeProps } = props;
2416
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2367
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2417
2368
  "td",
2418
2369
  {
2419
2370
  ...nativeProps,
2420
- className: (0, import_css41.cx)(
2371
+ className: (0, import_css40.cx)(
2421
2372
  nativeProps.className,
2422
- (0, import_recipes34.td)({
2373
+ (0, import_recipes33.td)({
2423
2374
  size
2424
2375
  })
2425
2376
  )
@@ -2428,18 +2379,18 @@ function Td(props) {
2428
2379
  }
2429
2380
 
2430
2381
  // src/components/Tbody.tsx
2431
- var import_recipes35 = require("@cerberus/styled-system/recipes");
2432
- var import_css42 = require("@cerberus/styled-system/css");
2433
- var import_jsx_runtime50 = require("react/jsx-runtime");
2382
+ var import_recipes34 = require("@cerberus/styled-system/recipes");
2383
+ var import_css41 = require("@cerberus/styled-system/css");
2384
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2434
2385
  function Tbody(props) {
2435
2386
  const { decoration, ...nativeProps } = props;
2436
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2387
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2437
2388
  "tbody",
2438
2389
  {
2439
2390
  ...nativeProps,
2440
- className: (0, import_css42.cx)(
2391
+ className: (0, import_css41.cx)(
2441
2392
  nativeProps.className,
2442
- (0, import_recipes35.tbody)({
2393
+ (0, import_recipes34.tbody)({
2443
2394
  decoration
2444
2395
  })
2445
2396
  )
@@ -2448,9 +2399,9 @@ function Tbody(props) {
2448
2399
  }
2449
2400
 
2450
2401
  // src/components/Tag.tsx
2451
- var import_css43 = require("@cerberus/styled-system/css");
2452
- var import_recipes36 = require("@cerberus/styled-system/recipes");
2453
- var import_jsx_runtime51 = require("react/jsx-runtime");
2402
+ var import_css42 = require("@cerberus/styled-system/css");
2403
+ var import_recipes35 = require("@cerberus/styled-system/recipes");
2404
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2454
2405
  function Tag(props) {
2455
2406
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
2456
2407
  const palette = (props == null ? void 0 : props.palette) ?? "page";
@@ -2459,13 +2410,13 @@ function Tag(props) {
2459
2410
  const closableStyles = isClosable ? closableCss : "";
2460
2411
  const { icons } = useCerberusContext();
2461
2412
  const { close: Close } = icons;
2462
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2413
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2463
2414
  "span",
2464
2415
  {
2465
2416
  ...nativeProps,
2466
- className: (0, import_css43.cx)(
2417
+ className: (0, import_css42.cx)(
2467
2418
  nativeProps.className,
2468
- (0, import_recipes36.tag)({
2419
+ (0, import_recipes35.tag)({
2469
2420
  gradient,
2470
2421
  palette,
2471
2422
  shape,
@@ -2475,24 +2426,24 @@ function Tag(props) {
2475
2426
  ),
2476
2427
  children: [
2477
2428
  props.children,
2478
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2429
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2479
2430
  "button",
2480
2431
  {
2481
2432
  "aria-label": "Close",
2482
- className: (0, import_recipes36.iconButton)({
2433
+ className: (0, import_recipes35.iconButton)({
2483
2434
  palette: "action",
2484
2435
  usage: "filled",
2485
2436
  size: "sm"
2486
2437
  }),
2487
2438
  onClick,
2488
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Close, {})
2439
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Close, {})
2489
2440
  }
2490
2441
  ) })
2491
2442
  ]
2492
2443
  }
2493
2444
  );
2494
2445
  }
2495
- var closableCss = (0, import_css43.css)({
2446
+ var closableCss = (0, import_css42.css)({
2496
2447
  bgColor: "action.bg.active",
2497
2448
  color: "action.text.initial",
2498
2449
  paddingInlineEnd: "0"
@@ -2500,53 +2451,53 @@ var closableCss = (0, import_css43.css)({
2500
2451
 
2501
2452
  // src/components/Text.tsx
2502
2453
  var import_jsx = require("@cerberus/styled-system/jsx");
2503
- var import_jsx_runtime52 = require("react/jsx-runtime");
2454
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2504
2455
  function Text(props) {
2505
2456
  const { as = "p", ...pandaJSXProps } = props;
2506
2457
  switch (as) {
2507
2458
  case "h1":
2508
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H1, { ...pandaJSXProps });
2459
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.H1, { ...pandaJSXProps });
2509
2460
  case "h2":
2510
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H2, { ...pandaJSXProps });
2461
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.H2, { ...pandaJSXProps });
2511
2462
  case "h3":
2512
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H3, { ...pandaJSXProps });
2463
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.H3, { ...pandaJSXProps });
2513
2464
  case "h4":
2514
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H4, { ...pandaJSXProps });
2465
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.H4, { ...pandaJSXProps });
2515
2466
  case "h5":
2516
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H5, { ...pandaJSXProps });
2467
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.H5, { ...pandaJSXProps });
2517
2468
  case "h6":
2518
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.H6, { ...pandaJSXProps });
2469
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.H6, { ...pandaJSXProps });
2519
2470
  case "strong":
2520
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Strong, { ...pandaJSXProps });
2471
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.Strong, { ...pandaJSXProps });
2521
2472
  case "em":
2522
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Em, { ...pandaJSXProps });
2473
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.Em, { ...pandaJSXProps });
2523
2474
  case "small":
2524
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Small, { ...pandaJSXProps });
2475
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.Small, { ...pandaJSXProps });
2525
2476
  case "span":
2526
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.Span, { ...pandaJSXProps });
2477
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.Span, { ...pandaJSXProps });
2527
2478
  default:
2528
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx.P, { ...pandaJSXProps });
2479
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.P, { ...pandaJSXProps });
2529
2480
  }
2530
2481
  }
2531
2482
 
2532
2483
  // src/components/Textarea.tsx
2533
- var import_css44 = require("@cerberus/styled-system/css");
2534
- var import_recipes37 = require("@cerberus/styled-system/recipes");
2535
- var import_jsx_runtime53 = require("react/jsx-runtime");
2484
+ var import_css43 = require("@cerberus/styled-system/css");
2485
+ var import_recipes36 = require("@cerberus/styled-system/recipes");
2486
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2536
2487
  function Textarea(props) {
2537
2488
  const { describedBy, ...nativeProps } = props;
2538
2489
  const { invalid, ...fieldState } = useFieldContext();
2539
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2490
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2540
2491
  "textarea",
2541
2492
  {
2542
2493
  ...nativeProps,
2543
2494
  ...fieldState,
2544
2495
  ...describedBy && { "aria-describedby": describedBy },
2545
2496
  ...invalid && { "aria-invalid": true },
2546
- className: (0, import_css44.cx)(
2497
+ className: (0, import_css43.cx)(
2547
2498
  props.className,
2548
- (0, import_recipes37.input)().input,
2549
- (0, import_css44.css)({
2499
+ (0, import_recipes36.input)().input,
2500
+ (0, import_css43.css)({
2550
2501
  pxi: "2",
2551
2502
  py: "2",
2552
2503
  resize: "vertical"
@@ -2558,44 +2509,44 @@ function Textarea(props) {
2558
2509
  }
2559
2510
 
2560
2511
  // src/components/Toggle.tsx
2561
- var import_css45 = require("@cerberus/styled-system/css");
2562
- var import_patterns14 = require("@cerberus/styled-system/patterns");
2563
- var import_recipes38 = require("@cerberus/styled-system/recipes");
2564
- var import_jsx_runtime54 = require("react/jsx-runtime");
2512
+ var import_css44 = require("@cerberus/styled-system/css");
2513
+ var import_patterns13 = require("@cerberus/styled-system/patterns");
2514
+ var import_recipes37 = require("@cerberus/styled-system/recipes");
2515
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2565
2516
  function Toggle(props) {
2566
2517
  const { size, describedBy, ...nativeProps } = props;
2567
- const styles = (0, import_recipes38.toggle)({ size });
2518
+ const styles = (0, import_recipes37.toggle)({ size });
2568
2519
  const { invalid, ...state } = useFieldContext();
2569
2520
  const { icons } = useCerberusContext();
2570
2521
  const CheckedIcon = icons.toggleChecked;
2571
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2522
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2572
2523
  "span",
2573
2524
  {
2574
- className: (0, import_css45.cx)("group", styles.track, (0, import_patterns14.hstack)()),
2525
+ className: (0, import_css44.cx)("group", styles.track, (0, import_patterns13.hstack)()),
2575
2526
  "data-checked": props.checked || props.defaultChecked,
2576
2527
  children: [
2577
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2528
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2578
2529
  "input",
2579
2530
  {
2580
2531
  ...nativeProps,
2581
2532
  ...state,
2582
2533
  ...describedBy && { "aria-describedby": describedBy },
2583
2534
  ...invalid && { "aria-invalid": true },
2584
- className: (0, import_css45.cx)("peer", styles.input),
2535
+ className: (0, import_css44.cx)("peer", styles.input),
2585
2536
  role: "switch",
2586
2537
  type: "checkbox"
2587
2538
  }
2588
2539
  ),
2589
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2540
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2590
2541
  "span",
2591
2542
  {
2592
- className: (0, import_css45.cx)(
2543
+ className: (0, import_css44.cx)(
2593
2544
  styles.thumb,
2594
- (0, import_patterns14.vstack)({
2545
+ (0, import_patterns13.vstack)({
2595
2546
  justify: "center"
2596
2547
  })
2597
2548
  ),
2598
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckedIcon, {})
2549
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CheckedIcon, {})
2599
2550
  }
2600
2551
  )
2601
2552
  ]
@@ -2605,24 +2556,24 @@ function Toggle(props) {
2605
2556
 
2606
2557
  // src/components/Tooltip.tsx
2607
2558
  var import_tooltip = require("@ark-ui/react/tooltip");
2608
- var import_css46 = require("@cerberus/styled-system/css");
2609
- var import_recipes39 = require("@cerberus/styled-system/recipes");
2610
- var import_jsx_runtime55 = require("react/jsx-runtime");
2559
+ var import_css45 = require("@cerberus/styled-system/css");
2560
+ var import_recipes38 = require("@cerberus/styled-system/recipes");
2561
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2611
2562
  function Tooltip(props) {
2612
2563
  const { content, children, asChild, ...nativeProps } = props;
2613
- const styles = (0, import_recipes39.tooltip)();
2564
+ const styles = (0, import_recipes38.tooltip)();
2614
2565
  const position = {
2615
2566
  placement: props.position || "top"
2616
2567
  };
2617
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2618
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2619
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
2568
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2569
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
2570
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
2620
2571
  import_tooltip.Tooltip.Content,
2621
2572
  {
2622
2573
  ...nativeProps,
2623
- className: (0, import_css46.cx)(nativeProps.className, styles.content),
2574
+ className: (0, import_css45.cx)(nativeProps.className, styles.content),
2624
2575
  children: [
2625
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2576
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2626
2577
  content
2627
2578
  ]
2628
2579
  }
@@ -2630,10 +2581,74 @@ function Tooltip(props) {
2630
2581
  ] });
2631
2582
  }
2632
2583
 
2584
+ // src/components/Select.tsx
2585
+ var import_select = require("@ark-ui/react/select");
2586
+ var import_recipes39 = require("@cerberus/styled-system/recipes");
2587
+ var import_css46 = require("@cerberus/styled-system/css");
2588
+ var import_jsx2 = require("@cerberus/styled-system/jsx");
2589
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2590
+ function Select(props) {
2591
+ const { collection, label: label5, placeholder, size, ...rootProps } = props;
2592
+ const { icons } = useCerberusContext();
2593
+ const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
2594
+ const styles = (0, import_recipes39.select)({ size });
2595
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
2596
+ import_select.Select.Root,
2597
+ {
2598
+ className: styles.root,
2599
+ collection,
2600
+ ...rootProps,
2601
+ children: [
2602
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_select.Select.Label, { className: styles.label, children: [
2603
+ label5,
2604
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Show, { when: props.required, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Text, { as: "span", color: "page.text.100", children: "(required)" }) })
2605
+ ] }),
2606
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Control, { className: styles.control, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_select.Select.Trigger, { className: styles.trigger, children: [
2607
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.ValueText, { placeholder }),
2608
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx2.HStack, { children: [
2609
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
2610
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Indicator, { className: styles.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectArrow, {}) })
2611
+ ] })
2612
+ ] }) }),
2613
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Positioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Content, { className: styles.content, children: props.children }) }) }),
2614
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.HiddenSelect, {})
2615
+ ]
2616
+ }
2617
+ );
2618
+ }
2619
+ function Option(props) {
2620
+ const { item, ...itemProps } = props;
2621
+ const { icons } = useCerberusContext();
2622
+ const { selectChecked: CheckedIcon } = icons;
2623
+ const styles = (0, import_recipes39.select)();
2624
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_select.Select.Item, { ...itemProps, item, className: styles.item, children: [
2625
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.ItemText, { className: styles.itemText, children: item == null ? void 0 : item.label }),
2626
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.ItemIndicator, { className: styles.itemIndicator, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CheckedIcon, {}) })
2627
+ ] });
2628
+ }
2629
+ function OptionGroup(props) {
2630
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.ItemGroup, { ...props });
2631
+ }
2632
+ function OptionGroupLabel(props) {
2633
+ const styles = (0, import_recipes39.select)();
2634
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2635
+ import_select.Select.ItemGroupLabel,
2636
+ {
2637
+ ...props,
2638
+ className: (0, import_css46.cx)(props.className, styles.itemGroupLabel)
2639
+ }
2640
+ );
2641
+ }
2642
+ function createSelectCollection(collection) {
2643
+ return (0, import_select.createListCollection)({
2644
+ items: collection
2645
+ });
2646
+ }
2647
+
2633
2648
  // src/context/confirm-modal.tsx
2634
2649
  var import_react22 = require("react");
2635
2650
  var import_css47 = require("@cerberus/styled-system/css");
2636
- var import_jsx2 = require("@cerberus/styled-system/jsx");
2651
+ var import_jsx3 = require("@cerberus/styled-system/jsx");
2637
2652
  var import_jsx_runtime56 = require("react/jsx-runtime");
2638
2653
  var ConfirmModalContext = (0, import_react22.createContext)(null);
2639
2654
  function ConfirmModal(props) {
@@ -2677,10 +2692,10 @@ function ConfirmModal(props) {
2677
2692
  );
2678
2693
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(ConfirmModalContext.Provider, { value, children: [
2679
2694
  props.children,
2680
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx2.VStack, { gap: "xl", w: "full", children: [
2681
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx2.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
2695
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx3.VStack, { gap: "xl", w: "full", children: [
2696
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx3.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
2682
2697
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2683
- import_jsx2.HStack,
2698
+ import_jsx3.HStack,
2684
2699
  {
2685
2700
  alignSelf: "center",
2686
2701
  justify: "center",
@@ -2715,7 +2730,7 @@ function ConfirmModal(props) {
2715
2730
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
2716
2731
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
2717
2732
  ] }),
2718
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx2.HStack, { gap: "4", w: "full", children: [
2733
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx3.HStack, { gap: "4", w: "full", children: [
2719
2734
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2720
2735
  Button,
2721
2736
  {
@@ -2759,9 +2774,9 @@ function useConfirmModal() {
2759
2774
 
2760
2775
  // src/context/cta-modal.tsx
2761
2776
  var import_react23 = require("react");
2762
- var import_jsx3 = require("@cerberus/styled-system/jsx");
2763
- var import_css48 = require("@cerberus/styled-system/css");
2764
2777
  var import_jsx4 = require("@cerberus/styled-system/jsx");
2778
+ var import_css48 = require("@cerberus/styled-system/css");
2779
+ var import_jsx5 = require("@cerberus/styled-system/jsx");
2765
2780
  var import_jsx_runtime57 = require("react/jsx-runtime");
2766
2781
  var CTAModalContext = (0, import_react23.createContext)(null);
2767
2782
  function CTAModal(props) {
@@ -2804,8 +2819,8 @@ function CTAModal(props) {
2804
2819
  props.children,
2805
2820
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Dialog, { size: "sm", children: [
2806
2821
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogCloseIconTrigger, {}),
2807
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
2808
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx4.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx4.VStack, { gap: "lg", w: "full", children: [
2822
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
2823
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx5.VStack, { gap: "lg", w: "full", children: [
2809
2824
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2810
2825
  Avatar,
2811
2826
  {
@@ -2825,7 +2840,7 @@ function CTAModal(props) {
2825
2840
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
2826
2841
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
2827
2842
  ] }) }),
2828
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx3.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2843
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx4.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2829
2844
  Button,
2830
2845
  {
2831
2846
  "data-index": index,
@@ -2853,7 +2868,7 @@ function useCTAModal() {
2853
2868
 
2854
2869
  // src/context/notification-center.tsx
2855
2870
  var import_react24 = require("react");
2856
- var import_patterns15 = require("@cerberus/styled-system/patterns");
2871
+ var import_patterns14 = require("@cerberus/styled-system/patterns");
2857
2872
  var import_recipes40 = require("@cerberus/styled-system/recipes");
2858
2873
  var import_css49 = require("@cerberus/styled-system/css");
2859
2874
 
@@ -2948,7 +2963,7 @@ function NotificationCenter(props) {
2948
2963
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2949
2964
  Button,
2950
2965
  {
2951
- className: (0, import_css49.cx)(styles.closeAll, (0, import_patterns15.animateIn)()),
2966
+ className: (0, import_css49.cx)(styles.closeAll, (0, import_patterns14.animateIn)()),
2952
2967
  onClick: handleCloseAll,
2953
2968
  palette: "action",
2954
2969
  shape: "rounded",
@@ -2960,7 +2975,7 @@ function NotificationCenter(props) {
2960
2975
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2961
2976
  "div",
2962
2977
  {
2963
- className: (0, import_patterns15.vstack)({
2978
+ className: (0, import_patterns14.vstack)({
2964
2979
  alignItems: "flex-end",
2965
2980
  gap: "4"
2966
2981
  }),
@@ -3029,8 +3044,8 @@ function useNotificationCenter() {
3029
3044
  // src/context/prompt-modal.tsx
3030
3045
  var import_react25 = require("react");
3031
3046
  var import_css50 = require("@cerberus/styled-system/css");
3032
- var import_patterns16 = require("@cerberus/styled-system/patterns");
3033
- var import_jsx5 = require("@cerberus/styled-system/jsx");
3047
+ var import_patterns15 = require("@cerberus/styled-system/patterns");
3048
+ var import_jsx6 = require("@cerberus/styled-system/jsx");
3034
3049
  var import_react26 = require("@ark-ui/react");
3035
3050
  var import_jsx_runtime59 = require("react/jsx-runtime");
3036
3051
  var PromptModalContext = (0, import_react25.createContext)(null);
@@ -3084,10 +3099,10 @@ function PromptModal(props) {
3084
3099
  );
3085
3100
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(PromptModalContext.Provider, { value, children: [
3086
3101
  props.children,
3087
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
3088
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3102
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx6.VStack, { gap: "xl", w: "full", children: [
3103
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx6.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3089
3104
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3090
- import_jsx5.HStack,
3105
+ import_jsx6.HStack,
3091
3106
  {
3092
3107
  alignSelf: "center",
3093
3108
  justify: "center",
@@ -3123,7 +3138,7 @@ function PromptModal(props) {
3123
3138
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3124
3139
  ] }),
3125
3140
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3126
- import_jsx5.VStack,
3141
+ import_jsx6.VStack,
3127
3142
  {
3128
3143
  alignItems: "flex-start",
3129
3144
  marginBlockStart: "md",
@@ -3133,7 +3148,7 @@ function PromptModal(props) {
3133
3148
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3134
3149
  Label,
3135
3150
  {
3136
- className: (0, import_patterns16.hstack)({
3151
+ className: (0, import_patterns15.hstack)({
3137
3152
  gap: "xs",
3138
3153
  justify: "flex-start !important"
3139
3154
  }),
@@ -3158,7 +3173,7 @@ function PromptModal(props) {
3158
3173
  ] })
3159
3174
  }
3160
3175
  ),
3161
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx5.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3176
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx6.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3162
3177
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3163
3178
  Button,
3164
3179
  {
@@ -3696,6 +3711,8 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3696
3711
  NotificationDescription,
3697
3712
  NotificationHeading,
3698
3713
  Option,
3714
+ OptionGroup,
3715
+ OptionGroupLabel,
3699
3716
  Portal,
3700
3717
  ProgressBar,
3701
3718
  PromptModal,
@@ -3725,6 +3742,7 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3725
3742
  Tooltip,
3726
3743
  Tr,
3727
3744
  createNavTriggerProps,
3745
+ createSelectCollection,
3728
3746
  defineIcons,
3729
3747
  formatISOToMilitary,
3730
3748
  formatMilitaryDate,