@sikka/hawa 0.2.45-next → 0.2.48-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -263,6 +263,9 @@ __export(components_exports, {
263
263
  ColorPicker: function() {
264
264
  return ColorPicker;
265
265
  },
266
+ Combobox: function() {
267
+ return Combobox;
268
+ },
266
269
  Command: function() {
267
270
  return Command;
268
271
  },
@@ -317,9 +320,33 @@ __export(components_exports, {
317
320
  FileDropzone: function() {
318
321
  return FileDropzone;
319
322
  },
323
+ Form: function() {
324
+ return Form;
325
+ },
326
+ FormControl: function() {
327
+ return FormControl;
328
+ },
329
+ FormDescription: function() {
330
+ return FormDescription;
331
+ },
332
+ FormField: function() {
333
+ return FormField;
334
+ },
335
+ FormItem: function() {
336
+ return FormItem;
337
+ },
338
+ FormLabel: function() {
339
+ return FormLabel;
340
+ },
341
+ FormMessage: function() {
342
+ return FormMessage;
343
+ },
320
344
  Input: function() {
321
345
  return Input;
322
346
  },
347
+ InterfaceSettings: function() {
348
+ return InterfaceSettings;
349
+ },
323
350
  Label: function() {
324
351
  return Label;
325
352
  },
@@ -344,6 +371,9 @@ __export(components_exports, {
344
371
  PopoverTrigger: function() {
345
372
  return PopoverTrigger;
346
373
  },
374
+ Progress: function() {
375
+ return Progress;
376
+ },
347
377
  Radio: function() {
348
378
  return Radio;
349
379
  },
@@ -356,6 +386,9 @@ __export(components_exports, {
356
386
  Select: function() {
357
387
  return Select;
358
388
  },
389
+ Separator: function() {
390
+ return Separator2;
391
+ },
359
392
  Skeleton: function() {
360
393
  return Skeleton;
361
394
  },
@@ -409,6 +442,9 @@ __export(components_exports, {
409
442
  },
410
443
  buttonVariants: function() {
411
444
  return buttonVariants;
445
+ },
446
+ useFormField: function() {
447
+ return useFormField;
412
448
  }
413
449
  });
414
450
  module.exports = __toCommonJS(components_exports);
@@ -1449,7 +1485,7 @@ var Alert = function(_param) {
1449
1485
  }, 200);
1450
1486
  }
1451
1487
  }, /* @__PURE__ */ import_react10.default.createElement("span", {
1452
- className: "sr-only"
1488
+ className: "hawa-sr-only"
1453
1489
  }, "Close"), /* @__PURE__ */ import_react10.default.createElement("svg", {
1454
1490
  "aria-label": "Close Icon",
1455
1491
  "aria-hidden": "true",
@@ -3812,12 +3848,13 @@ var Input = function(_param) {
3812
3848
  var widthStyles = {
3813
3849
  small: "hawa-w-full hawa-max-w-2xs",
3814
3850
  normal: "hawa-w-1/2",
3815
- full: "hawa-w-full"
3851
+ full: "hawa-w-full",
3852
+ auto: ""
3816
3853
  };
3817
- var defaultStyle = "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-2";
3854
+ var defaultStyle = "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
3818
3855
  var defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-2 hawa-text-sm hawa-text-black dark:hawa-text-white ";
3819
3856
  return /* @__PURE__ */ import_react15.default.createElement("div", {
3820
- className: cn(defaultStyle, marginStyles[margin], widthStyles[width], props.className)
3857
+ className: cn(defaultStyle, marginStyles[margin], widthStyles[width], props.containerClassName, "hawa-w-full hawa-gap-2")
3821
3858
  }, props.label && /* @__PURE__ */ import_react15.default.createElement(Label, null, props.label), props.isLoading ? /* @__PURE__ */ import_react15.default.createElement(Skeleton, {
3822
3859
  className: "hawa-h-[38px] hawa-w-full"
3823
3860
  }) : /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement("div", {
@@ -3826,10 +3863,20 @@ var Input = function(_param) {
3826
3863
  className: cn("hawa-relative")
3827
3864
  }, props.icon && /* @__PURE__ */ import_react15.default.createElement("div", {
3828
3865
  className: "hawa-absolute hawa-left-3 hawa-top-1/2 hawa--translate-y-1/2"
3829
- }, props.icon), /* @__PURE__ */ import_react15.default.createElement("input", _object_spread_props(_object_spread({}, props), {
3866
+ }, props.icon), /* @__PURE__ */ import_react15.default.createElement("input", {
3830
3867
  className: cn(defaultInputStyle, props.icon && "hawa-pl-10", "focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0", preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0", (_props_inputProps = props.inputProps) === null || _props_inputProps === void 0 ? void 0 : _props_inputProps.className),
3831
- disabled: preview
3832
- }))), props.iconInside && /* @__PURE__ */ import_react15.default.createElement("div", {
3868
+ onChange: props.onChange,
3869
+ autoComplete: props.autoComplete,
3870
+ value: props.value,
3871
+ defaultValue: props.defaultValue,
3872
+ type: props.type,
3873
+ placeholder: props.placeholder,
3874
+ disabled: preview,
3875
+ style: {
3876
+ minWidth: "100%",
3877
+ width: "auto"
3878
+ }
3879
+ })), props.iconInside && /* @__PURE__ */ import_react15.default.createElement("div", {
3833
3880
  className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2"
3834
3881
  }, props.iconInside), props.helperText && /* @__PURE__ */ import_react15.default.createElement("p", {
3835
3882
  className: "hawa-mb-0 hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500"
@@ -3840,25 +3887,6 @@ var import_clsx7 = __toESM(require("clsx"));
3840
3887
  var import_react16 = __toESM(require("react"));
3841
3888
  var import_react_select = __toESM(require("react-select"));
3842
3889
  var import_creatable = __toESM(require("react-select/creatable"));
3843
- var Control = function(_param) {
3844
- var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, _param_size = _param.size, size = _param_size === void 0 ? "normal" : _param_size, props = _object_without_properties(_param, [
3845
- "cx",
3846
- "children",
3847
- "getStyles",
3848
- "innerProps",
3849
- "innerRef",
3850
- "size"
3851
- ]);
3852
- var sizeStyles = {
3853
- small: "hawa-h-7 hawa-text-xs",
3854
- normal: "hawa-h-[2.38rem] hawa-text-sm",
3855
- large: ""
3856
- };
3857
- return /* @__PURE__ */ import_react16.default.createElement("div", _object_spread({
3858
- ref: innerRef,
3859
- className: (0, import_clsx7.default)(sizeStyles[size], "hawa-flex hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-text-gray-900 focus:hawa-border-blue-500 focus:hawa-ring-blue-500 dark:focus:hawa-ring-blue-500")
3860
- }, innerProps), children);
3861
- };
3862
3890
  var Menu = function(_param) {
3863
3891
  var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, props = _object_without_properties(_param, [
3864
3892
  "cx",
@@ -3887,20 +3915,33 @@ var Option = function(_param) /* @__PURE__ */ {
3887
3915
  }, innerProps), children);
3888
3916
  };
3889
3917
  var Select = function(props) {
3918
+ var Control = function(param) {
3919
+ var // cx,
3920
+ children = param.children, // getStyles,
3921
+ innerProps = param.innerProps, innerRef = param.innerRef;
3922
+ return /* @__PURE__ */ import_react16.default.createElement("div", _object_spread({
3923
+ ref: innerRef,
3924
+ className: (0, import_clsx7.default)(// sizeStyles[size],
3925
+ " hawa-text-sm hawa-flex hawa-p-2 hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-text-gray-900 focus:hawa-border-blue-500 focus:hawa-ring-blue-500 dark:focus:hawa-ring-blue-500")
3926
+ }, innerProps), children);
3927
+ };
3890
3928
  var NoOption = function() {
3891
3929
  var _props_texts;
3892
3930
  var _props_texts_noOptions;
3893
3931
  return /* @__PURE__ */ import_react16.default.createElement("div", null, (_props_texts_noOptions = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noOptions) !== null && _props_texts_noOptions !== void 0 ? _props_texts_noOptions : "No Items Found");
3894
3932
  };
3895
3933
  return /* @__PURE__ */ import_react16.default.createElement("div", {
3896
- className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-2"
3934
+ className: cn("hawa-flex hawa-flex-col hawa-gap-2", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
3897
3935
  }, props.label && /* @__PURE__ */ import_react16.default.createElement(Label, null, props.label), props.isLoading ? /* @__PURE__ */ import_react16.default.createElement(Skeleton, {
3898
3936
  className: "hawa-h-[38px] hawa-w-full"
3899
3937
  }) : !props.isCreatable ? /* @__PURE__ */ import_react16.default.createElement(import_react_select.default, {
3900
3938
  noOptionsMessage: NoOption,
3901
3939
  classNames: {
3940
+ control: function() {
3941
+ return cn(" hawa-text-sm hawa-flex hawa-p-2 hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-text-gray-900 focus:hawa-border-blue-500 focus:hawa-ring-blue-500 dark:focus:hawa-ring-blue-500", props.controlClassNames);
3942
+ },
3902
3943
  container: function() {
3903
- return cn("hawa-rounded", props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer");
3944
+ return cn("hawa-rounded", props.containerClassNames, props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer");
3904
3945
  },
3905
3946
  // TODO: enable keyboard to go to the next item in the list
3906
3947
  placeholder: function() {
@@ -3916,7 +3957,7 @@ var Select = function(props) {
3916
3957
  return "hawa-text-black dark:hawa-text-white hawa-px-2";
3917
3958
  },
3918
3959
  indicatorsContainer: function() {
3919
- return " hawa-px-2 hawa-cursor-pointer hawa-text-muted-foreground";
3960
+ return " hawa-px-0 hawa-cursor-pointer hawa-text-muted-foreground";
3920
3961
  }
3921
3962
  },
3922
3963
  unstyled: true,
@@ -3932,7 +3973,7 @@ var Select = function(props) {
3932
3973
  props.onChange(newValue, action));
3933
3974
  },
3934
3975
  components: {
3935
- Control: Control,
3976
+ // Control,
3936
3977
  Option: Option,
3937
3978
  Menu: Menu
3938
3979
  },
@@ -3945,7 +3986,7 @@ var Select = function(props) {
3945
3986
  },
3946
3987
  classNames: {
3947
3988
  container: function() {
3948
- return cn("hawa-rounded", props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer");
3989
+ return cn("hawa-rounded ", props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer");
3949
3990
  },
3950
3991
  placeholder: function() {
3951
3992
  return "hawa-px-2 hawa-text-muted-foreground";
@@ -3995,8 +4036,11 @@ var PhoneInput = function(props) {
3995
4036
  className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium"
3996
4037
  }, props.label), /* @__PURE__ */ import_react17.default.createElement("div", {
3997
4038
  dir: "ltr",
3998
- className: "hawa-flex hawa-flex-row "
4039
+ className: "hawa-flex hawa-flex-row hawa-w-full "
3999
4040
  }, /* @__PURE__ */ import_react17.default.createElement(Select, {
4041
+ width: "fit",
4042
+ controlClassNames: "hawa-rounded-r-none",
4043
+ containerClassNames: "hawa-w-[100px] hawa-p-0 hawa-rounded-r-none",
4000
4044
  options: countries_default,
4001
4045
  isMulti: false,
4002
4046
  isSearchable: true,
@@ -4010,11 +4054,12 @@ var PhoneInput = function(props) {
4010
4054
  onChange: props.handleChange,
4011
4055
  type: "number",
4012
4056
  placeholder: "531045453",
4057
+ width: "auto",
4013
4058
  inputProps: {
4014
- className: "hawa-border-l-0 hawa-border-l-transparent"
4059
+ className: "hawa-w-full hawa-min-w-full hawa-border-l-0 hawa-border-l-transparent hawa-rounded-l-none "
4015
4060
  }
4016
4061
  }), props.helperText && /* @__PURE__ */ import_react17.default.createElement("p", {
4017
- className: "hawa-mb-1 hawa-mt-1 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500"
4062
+ className: "hawa-mb-1 hawa-mt-1 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500"
4018
4063
  }, props.helperText)));
4019
4064
  };
4020
4065
  // components/elements/AppStores.tsx
@@ -4098,15 +4143,229 @@ var AppStores = function(props) {
4098
4143
  className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
4099
4144
  }, "Google Play")))));
4100
4145
  };
4146
+ // components/elements/Separator.tsx
4147
+ var React30 = __toESM(require("react"));
4148
+ // node_modules/@babel/runtime/helpers/esm/extends.js
4149
+ function _extends1() {
4150
+ _extends1 = Object.assign ? Object.assign.bind() : function _extends(target) {
4151
+ for(var i = 1; i < arguments.length; i++){
4152
+ var source = arguments[i];
4153
+ for(var key in source){
4154
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4155
+ target[key] = source[key];
4156
+ }
4157
+ }
4158
+ }
4159
+ return target;
4160
+ };
4161
+ return _extends1.apply(this, arguments);
4162
+ }
4163
+ // node_modules/@radix-ui/react-separator/dist/index.mjs
4164
+ var import_react22 = require("react");
4165
+ // node_modules/@radix-ui/react-primitive/dist/index.mjs
4166
+ var import_react21 = require("react");
4167
+ var import_react_dom = require("react-dom");
4168
+ // node_modules/@radix-ui/react-slot/dist/index.mjs
4169
+ var import_react20 = require("react");
4170
+ // node_modules/@radix-ui/react-compose-refs/dist/index.mjs
4171
+ var import_react19 = require("react");
4172
+ function $6ed0406888f73fc4$var$setRef(ref, value) {
4173
+ if (typeof ref === "function") ref(value);
4174
+ else if (ref !== null && ref !== void 0) ref.current = value;
4175
+ }
4176
+ function $6ed0406888f73fc4$export$43e446d32b3d21af() {
4177
+ for(var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++){
4178
+ refs[_key] = arguments[_key];
4179
+ }
4180
+ return function(node) {
4181
+ return refs.forEach(function(ref) {
4182
+ return $6ed0406888f73fc4$var$setRef(ref, node);
4183
+ });
4184
+ };
4185
+ }
4186
+ // node_modules/@radix-ui/react-slot/dist/index.mjs
4187
+ var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ (0, import_react20.forwardRef)(function(props, forwardedRef) {
4188
+ var children = props.children, slotProps = _object_without_properties(props, [
4189
+ "children"
4190
+ ]);
4191
+ var childrenArray = import_react20.Children.toArray(children);
4192
+ var slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
4193
+ if (slottable) {
4194
+ var newElement = slottable.props.children;
4195
+ var newChildren = childrenArray.map(function(child) {
4196
+ if (child === slottable) {
4197
+ if (import_react20.Children.count(newElement) > 1) return import_react20.Children.only(null);
4198
+ return /* @__PURE__ */ (0, import_react20.isValidElement)(newElement) ? newElement.props.children : null;
4199
+ } else return child;
4200
+ });
4201
+ return /* @__PURE__ */ (0, import_react20.createElement)($5e63c961fc1ce211$var$SlotClone, _extends1({}, slotProps, {
4202
+ ref: forwardedRef
4203
+ }), /* @__PURE__ */ (0, import_react20.isValidElement)(newElement) ? /* @__PURE__ */ (0, import_react20.cloneElement)(newElement, void 0, newChildren) : null);
4204
+ }
4205
+ return /* @__PURE__ */ (0, import_react20.createElement)($5e63c961fc1ce211$var$SlotClone, _extends1({}, slotProps, {
4206
+ ref: forwardedRef
4207
+ }), children);
4208
+ });
4209
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
4210
+ var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ (0, import_react20.forwardRef)(function(props, forwardedRef) {
4211
+ var children = props.children, slotProps = _object_without_properties(props, [
4212
+ "children"
4213
+ ]);
4214
+ if (/* @__PURE__ */ (0, import_react20.isValidElement)(children)) return /* @__PURE__ */ (0, import_react20.cloneElement)(children, _object_spread_props(_object_spread({}, $5e63c961fc1ce211$var$mergeProps(slotProps, children.props)), {
4215
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
4216
+ }));
4217
+ return import_react20.Children.count(children) > 1 ? import_react20.Children.only(null) : null;
4218
+ });
4219
+ $5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
4220
+ var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = function(param) {
4221
+ var children = param.children;
4222
+ return /* @__PURE__ */ (0, import_react20.createElement)(import_react20.Fragment, null, children);
4223
+ };
4224
+ function $5e63c961fc1ce211$var$isSlottable(child) {
4225
+ return /* @__PURE__ */ (0, import_react20.isValidElement)(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
4226
+ }
4227
+ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
4228
+ var _loop = function(propName) {
4229
+ var slotPropValue = slotProps[propName];
4230
+ var childPropValue = childProps[propName];
4231
+ var isHandler = /^on[A-Z]/.test(propName);
4232
+ if (isHandler) {
4233
+ if (slotPropValue && childPropValue) overrideProps[propName] = function() {
4234
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
4235
+ args[_key] = arguments[_key];
4236
+ }
4237
+ childPropValue.apply(void 0, _to_consumable_array(args));
4238
+ slotPropValue.apply(void 0, _to_consumable_array(args));
4239
+ };
4240
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
4241
+ } else if (propName === "style") overrideProps[propName] = _object_spread({}, slotPropValue, childPropValue);
4242
+ else if (propName === "className") overrideProps[propName] = [
4243
+ slotPropValue,
4244
+ childPropValue
4245
+ ].filter(Boolean).join(" ");
4246
+ };
4247
+ var overrideProps = _object_spread({}, childProps);
4248
+ for(var propName in childProps)_loop(propName);
4249
+ return _object_spread({}, slotProps, overrideProps);
4250
+ }
4251
+ // node_modules/@radix-ui/react-primitive/dist/index.mjs
4252
+ var $8927f6f2acc4f386$var$NODES = [
4253
+ "a",
4254
+ "button",
4255
+ "div",
4256
+ "form",
4257
+ "h2",
4258
+ "h3",
4259
+ "img",
4260
+ "input",
4261
+ "label",
4262
+ "li",
4263
+ "nav",
4264
+ "ol",
4265
+ "p",
4266
+ "span",
4267
+ "svg",
4268
+ "ul"
4269
+ ];
4270
+ var $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce(function(primitive, node) {
4271
+ var Node = /* @__PURE__ */ (0, import_react21.forwardRef)(function(props, forwardedRef) {
4272
+ var asChild = props.asChild, primitiveProps = _object_without_properties(props, [
4273
+ "asChild"
4274
+ ]);
4275
+ var Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
4276
+ (0, import_react21.useEffect)(function() {
4277
+ window[Symbol.for("radix-ui")] = true;
4278
+ }, []);
4279
+ return /* @__PURE__ */ (0, import_react21.createElement)(Comp, _extends1({}, primitiveProps, {
4280
+ ref: forwardedRef
4281
+ }));
4282
+ });
4283
+ Node.displayName = "Primitive.".concat(node);
4284
+ return _object_spread_props(_object_spread({}, primitive), _define_property({}, node, Node));
4285
+ }, {});
4286
+ // node_modules/@radix-ui/react-separator/dist/index.mjs
4287
+ var $89eedd556c436f6a$var$DEFAULT_ORIENTATION = "horizontal";
4288
+ var $89eedd556c436f6a$var$ORIENTATIONS = [
4289
+ "horizontal",
4290
+ "vertical"
4291
+ ];
4292
+ var $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ (0, import_react22.forwardRef)(function(props, forwardedRef) {
4293
+ var decorative = props.decorative, tmp = props.orientation, orientationProp = tmp === void 0 ? $89eedd556c436f6a$var$DEFAULT_ORIENTATION : tmp, domProps = _object_without_properties(props, [
4294
+ "decorative",
4295
+ "orientation"
4296
+ ]);
4297
+ var orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION;
4298
+ var ariaOrientation = orientation === "vertical" ? orientation : void 0;
4299
+ var semanticProps = decorative ? {
4300
+ role: "none"
4301
+ } : {
4302
+ "aria-orientation": ariaOrientation,
4303
+ role: "separator"
4304
+ };
4305
+ return /* @__PURE__ */ (0, import_react22.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends1({
4306
+ "data-orientation": orientation
4307
+ }, semanticProps, domProps, {
4308
+ ref: forwardedRef
4309
+ }));
4310
+ });
4311
+ $89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {
4312
+ orientation: function orientation(props, propName, componentName) {
4313
+ var propValue = props[propName];
4314
+ var strVal = String(propValue);
4315
+ if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));
4316
+ return null;
4317
+ }
4318
+ };
4319
+ function $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {
4320
+ return "Invalid prop `orientation` of value `".concat(value, "` supplied to `").concat(componentName, "`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `").concat($89eedd556c436f6a$var$DEFAULT_ORIENTATION, "`.");
4321
+ }
4322
+ function $89eedd556c436f6a$var$isValidOrientation(orientation) {
4323
+ return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);
4324
+ }
4325
+ var $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
4326
+ // components/elements/Separator.tsx
4327
+ var Separator2 = React30.forwardRef(function(_param, ref) /* @__PURE__ */ {
4328
+ var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_decorative = _param.decorative, decorative = _param_decorative === void 0 ? true : _param_decorative, props = _object_without_properties(_param, [
4329
+ "className",
4330
+ "orientation",
4331
+ "decorative"
4332
+ ]);
4333
+ return React30.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9, _object_spread({
4334
+ ref: ref,
4335
+ decorative: decorative,
4336
+ orientation: orientation,
4337
+ className: cn("hawa-shrink-0 hawa-bg-border", orientation === "horizontal" ? "hawa-h-[1px] hawa-w-full" : "hawa-h-full hawa-w-[1px]", className)
4338
+ }, props));
4339
+ });
4340
+ Separator2.displayName = $89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;
4341
+ // components/elements/Progress.tsx
4342
+ var React31 = __toESM(require("react"));
4343
+ var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
4344
+ var Progress = React31.forwardRef(function(_param, ref) /* @__PURE__ */ {
4345
+ var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
4346
+ "className",
4347
+ "value"
4348
+ ]);
4349
+ return React31.createElement(ProgressPrimitive.Root, _object_spread({
4350
+ ref: ref,
4351
+ className: cn("hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary", className)
4352
+ }, props), /* @__PURE__ */ React31.createElement(ProgressPrimitive.Indicator, {
4353
+ className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
4354
+ style: {
4355
+ transform: "translateX(-".concat(100 - (value || 0), "%)")
4356
+ }
4357
+ }));
4358
+ });
4359
+ Progress.displayName = ProgressPrimitive.Root.displayName;
4101
4360
  // components/elements/BackToTop.tsx
4102
- var import_react19 = __toESM(require("react"));
4361
+ var import_react23 = __toESM(require("react"));
4103
4362
  var import_clsx8 = require("clsx");
4104
4363
  var BackToTop = function(_param) {
4105
4364
  var props = _extends({}, _object_destructuring_empty(_param));
4106
- var _ref = _sliced_to_array((0, import_react19.useState)(false), 2), visible = _ref[0], setVisible = _ref[1];
4107
- var _ref1 = _sliced_to_array((0, import_react19.useState)(null), 2), rect = _ref1[0], _setRect = _ref1[1];
4108
- var self = (0, import_react19.useRef)(null);
4109
- var _rect = (0, import_react19.useRef)(rect);
4365
+ var _ref = _sliced_to_array((0, import_react23.useState)(false), 2), visible = _ref[0], setVisible = _ref[1];
4366
+ var _ref1 = _sliced_to_array((0, import_react23.useState)(null), 2), rect = _ref1[0], _setRect = _ref1[1];
4367
+ var self = (0, import_react23.useRef)(null);
4368
+ var _rect = (0, import_react23.useRef)(rect);
4110
4369
  var setRect = function(data) {
4111
4370
  _rect.current = data;
4112
4371
  _setRect(data);
@@ -4140,7 +4399,7 @@ var BackToTop = function(_param) {
4140
4399
  });
4141
4400
  }
4142
4401
  };
4143
- (0, import_react19.useEffect)(function() {
4402
+ (0, import_react23.useEffect)(function() {
4144
4403
  if (!props.anchor.current) return;
4145
4404
  props.anchor.current.addEventListener("scroll", onScroll);
4146
4405
  var interval = setInterval(function() {
@@ -4172,7 +4431,7 @@ var BackToTop = function(_param) {
4172
4431
  };
4173
4432
  return style;
4174
4433
  };
4175
- return /* @__PURE__ */ import_react19.default.createElement(Button, {
4434
+ return /* @__PURE__ */ import_react23.default.createElement(Button, {
4176
4435
  className: cn("hawa-fixed hawa-cursor-pointer hawa-rounded hawa-transition-all", visible ? "hawa-pointer-events-all hawa-opacity-100" : "hawa-pointer-events-none hawa-opacity-0"),
4177
4436
  onClick: backToTop,
4178
4437
  style: _object_spread_props(_object_spread({}, getStyles()), {
@@ -4180,113 +4439,113 @@ var BackToTop = function(_param) {
4180
4439
  }),
4181
4440
  ref: self,
4182
4441
  size: "icon"
4183
- }, /* @__PURE__ */ import_react19.default.createElement("svg", {
4442
+ }, /* @__PURE__ */ import_react23.default.createElement("svg", {
4184
4443
  className: (0, import_clsx8.clsx)("hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-rotate-180 hawa-transition-all disabled:hawa-bg-gray-200"),
4185
4444
  "aria-label": "Arrow Icon",
4186
4445
  viewBox: "0 0 20 20",
4187
4446
  fill: "currentColor"
4188
- }, /* @__PURE__ */ import_react19.default.createElement("path", {
4447
+ }, /* @__PURE__ */ import_react23.default.createElement("path", {
4189
4448
  d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
4190
4449
  })));
4191
4450
  };
4192
4451
  // components/elements/Tabs.tsx
4193
- var React31 = __toESM(require("react"));
4452
+ var React33 = __toESM(require("react"));
4194
4453
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
4195
- var TabsContext = React31.createContext({
4454
+ var TabsContext = React33.createContext({
4196
4455
  orientation: "vertical"
4197
4456
  });
4198
- var Tabs = React31.forwardRef(function(_param, ref) /* @__PURE__ */ {
4457
+ var Tabs = React33.forwardRef(function(_param, ref) /* @__PURE__ */ {
4199
4458
  var className = _param.className, orientation = _param.orientation, props = _object_without_properties(_param, [
4200
4459
  "className",
4201
4460
  "orientation"
4202
4461
  ]);
4203
- return React31.createElement(TabsPrimitive.Root, _object_spread({
4462
+ return React33.createElement(TabsPrimitive.Root, _object_spread({
4204
4463
  ref: ref,
4205
4464
  className: cn("hawa-flex hawa-gap-2", orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col", className)
4206
- }, props), /* @__PURE__ */ React31.createElement(TabsContext.Provider, {
4465
+ }, props), /* @__PURE__ */ React33.createElement(TabsContext.Provider, {
4207
4466
  value: {
4208
4467
  orientation: orientation
4209
4468
  }
4210
4469
  }, props.children));
4211
4470
  });
4212
4471
  Tabs.displayName = TabsPrimitive.Root.displayName;
4213
- var TabsList = React31.forwardRef(function(_param, ref) {
4472
+ var TabsList = React33.forwardRef(function(_param, ref) {
4214
4473
  var className = _param.className, props = _object_without_properties(_param, [
4215
4474
  "className"
4216
4475
  ]);
4217
- var orientation = React31.useContext(TabsContext).orientation;
4476
+ var orientation = React33.useContext(TabsContext).orientation;
4218
4477
  console.log("orient ", orientation);
4219
- return /* @__PURE__ */ React31.createElement(TabsPrimitive.List, _object_spread({
4478
+ return /* @__PURE__ */ React33.createElement(TabsPrimitive.List, _object_spread({
4220
4479
  ref: ref,
4221
4480
  className: cn("hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10", orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row", className)
4222
4481
  }, props));
4223
4482
  });
4224
4483
  TabsList.displayName = TabsPrimitive.List.displayName;
4225
- var TabsTrigger = React31.forwardRef(function(_param, ref) {
4484
+ var TabsTrigger = React33.forwardRef(function(_param, ref) {
4226
4485
  var className = _param.className, props = _object_without_properties(_param, [
4227
4486
  "className"
4228
4487
  ]);
4229
- return /* @__PURE__ */ React31.createElement(TabsPrimitive.Trigger, _object_spread({
4488
+ return /* @__PURE__ */ React33.createElement(TabsPrimitive.Trigger, _object_spread({
4230
4489
  ref: ref,
4231
4490
  className: cn("hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10", className)
4232
4491
  }, props));
4233
4492
  });
4234
4493
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
4235
- var TabsContent = React31.forwardRef(function(_param, ref) /* @__PURE__ */ {
4494
+ var TabsContent = React33.forwardRef(function(_param, ref) /* @__PURE__ */ {
4236
4495
  var className = _param.className, props = _object_without_properties(_param, [
4237
4496
  "className"
4238
4497
  ]);
4239
- return React31.createElement(TabsPrimitive.Content, _object_spread({
4498
+ return React33.createElement(TabsPrimitive.Content, _object_spread({
4240
4499
  ref: ref,
4241
4500
  className: cn("hawa-w-full hawa-ring-offset-hawa-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2", className)
4242
4501
  }, props));
4243
4502
  });
4244
4503
  TabsContent.displayName = TabsPrimitive.Content.displayName;
4245
4504
  // components/elements/ScrollArea.tsx
4246
- var React32 = __toESM(require("react"));
4505
+ var React34 = __toESM(require("react"));
4247
4506
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
4248
- var ScrollArea = React32.forwardRef(function(_param, ref) /* @__PURE__ */ {
4507
+ var ScrollArea = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4249
4508
  var className = _param.className, children = _param.children, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
4250
4509
  "className",
4251
4510
  "children",
4252
4511
  "orientation"
4253
4512
  ]);
4254
- return React32.createElement(ScrollAreaPrimitive.Root, _object_spread({
4513
+ return React34.createElement(ScrollAreaPrimitive.Root, _object_spread({
4255
4514
  ref: ref,
4256
4515
  className: cn("hawa-relative hawa-overflow-hidden", className)
4257
- }, props), /* @__PURE__ */ React32.createElement(ScrollAreaPrimitive.Viewport, {
4516
+ }, props), /* @__PURE__ */ React34.createElement(ScrollAreaPrimitive.Viewport, {
4258
4517
  className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]"
4259
- }, children), /* @__PURE__ */ React32.createElement(ScrollBar, {
4518
+ }, children), /* @__PURE__ */ React34.createElement(ScrollBar, {
4260
4519
  orientation: orientation
4261
- }), /* @__PURE__ */ React32.createElement(ScrollAreaPrimitive.Corner, null));
4520
+ }), /* @__PURE__ */ React34.createElement(ScrollAreaPrimitive.Corner, null));
4262
4521
  });
4263
4522
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
4264
- var ScrollBar = React32.forwardRef(function(_param, ref) /* @__PURE__ */ {
4523
+ var ScrollBar = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4265
4524
  var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
4266
4525
  "className",
4267
4526
  "orientation"
4268
4527
  ]);
4269
- return React32.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread({
4528
+ return React34.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread({
4270
4529
  ref: ref,
4271
4530
  orientation: orientation,
4272
4531
  className: cn("hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors", orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]", orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]", className)
4273
- }, props), /* @__PURE__ */ React32.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
4532
+ }, props), /* @__PURE__ */ React34.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
4274
4533
  className: cn("hawa-relative hawa-rounded-full hawa-bg-border", orientation === "vertical" && "hawa-flex-1")
4275
4534
  }));
4276
4535
  });
4277
4536
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
4278
4537
  // components/elements/Logos.tsx
4279
- var import_react20 = __toESM(require("react"));
4538
+ var import_react24 = __toESM(require("react"));
4280
4539
  var Logos = {
4281
4540
  logo: function(props) {
4282
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4541
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4283
4542
  xmlns: "http://www.w3.org/2000/svg",
4284
4543
  viewBox: "0 0 256 256"
4285
- }, props), /* @__PURE__ */ import_react20.default.createElement("rect", {
4544
+ }, props), /* @__PURE__ */ import_react24.default.createElement("rect", {
4286
4545
  width: "256",
4287
4546
  height: "256",
4288
4547
  fill: "none"
4289
- }), /* @__PURE__ */ import_react20.default.createElement("line", {
4548
+ }), /* @__PURE__ */ import_react24.default.createElement("line", {
4290
4549
  x1: "208",
4291
4550
  y1: "128",
4292
4551
  x2: "128",
@@ -4296,7 +4555,7 @@ var Logos = {
4296
4555
  strokeLinecap: "round",
4297
4556
  strokeLinejoin: "round",
4298
4557
  strokeWidth: "16"
4299
- }), /* @__PURE__ */ import_react20.default.createElement("line", {
4558
+ }), /* @__PURE__ */ import_react24.default.createElement("line", {
4300
4559
  x1: "192",
4301
4560
  y1: "40",
4302
4561
  x2: "40",
@@ -4309,7 +4568,7 @@ var Logos = {
4309
4568
  }));
4310
4569
  },
4311
4570
  mail: function(props) {
4312
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4571
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4313
4572
  stroke: "currentColor",
4314
4573
  fill: "none",
4315
4574
  "stroke-width": "2",
@@ -4319,14 +4578,14 @@ var Logos = {
4319
4578
  height: "1em",
4320
4579
  width: "1em",
4321
4580
  xmlns: "http://www.w3.org/2000/svg"
4322
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4581
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4323
4582
  d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
4324
- }), /* @__PURE__ */ import_react20.default.createElement("polyline", {
4583
+ }), /* @__PURE__ */ import_react24.default.createElement("polyline", {
4325
4584
  points: "22,6 12,13 2,6"
4326
4585
  }));
4327
4586
  },
4328
4587
  phone: function(props) {
4329
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4588
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4330
4589
  stroke: "currentColor",
4331
4590
  fill: "none",
4332
4591
  "stroke-width": "2",
@@ -4335,131 +4594,131 @@ var Logos = {
4335
4594
  height: "1em",
4336
4595
  width: "1em",
4337
4596
  xmlns: "http://www.w3.org/2000/svg"
4338
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4597
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4339
4598
  "stroke-linecap": "round",
4340
4599
  "stroke-linejoin": "round",
4341
4600
  d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
4342
4601
  }));
4343
4602
  },
4344
4603
  twitter: function(props) {
4345
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4604
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4346
4605
  xmlns: "http://www.w3.org/2000/svg",
4347
4606
  viewBox: "0 0 24 24"
4348
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4607
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4349
4608
  fill: "currentColor",
4350
4609
  d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
4351
4610
  }));
4352
4611
  },
4353
4612
  microsoft: function(props) {
4354
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4613
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4355
4614
  xmlns: "http://www.w3.org/2000/svg",
4356
4615
  viewBox: "0 0 20 20"
4357
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4616
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4358
4617
  fill: "currentColor",
4359
4618
  d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
4360
4619
  }));
4361
4620
  },
4362
4621
  gitHub: function(props) {
4363
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4622
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4364
4623
  viewBox: "0 0 438.549 438.549"
4365
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4624
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4366
4625
  fill: "currentColor",
4367
4626
  d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
4368
4627
  }));
4369
4628
  },
4370
4629
  radix: function(props) {
4371
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4630
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4372
4631
  viewBox: "0 0 25 25",
4373
4632
  fill: "none"
4374
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4633
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4375
4634
  d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
4376
4635
  fill: "currentcolor"
4377
- }), /* @__PURE__ */ import_react20.default.createElement("path", {
4636
+ }), /* @__PURE__ */ import_react24.default.createElement("path", {
4378
4637
  d: "M12 0H4V8H12V0Z",
4379
4638
  fill: "currentcolor"
4380
- }), /* @__PURE__ */ import_react20.default.createElement("path", {
4639
+ }), /* @__PURE__ */ import_react24.default.createElement("path", {
4381
4640
  d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
4382
4641
  fill: "currentcolor"
4383
4642
  }));
4384
4643
  },
4385
4644
  aria: function(props) {
4386
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4645
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4387
4646
  role: "img",
4388
4647
  viewBox: "0 0 24 24",
4389
4648
  fill: "currentColor"
4390
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4649
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4391
4650
  d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"
4392
4651
  }));
4393
4652
  },
4394
4653
  npm: function(props) {
4395
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4654
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4396
4655
  viewBox: "0 0 24 24"
4397
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4656
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4398
4657
  d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
4399
4658
  fill: "currentColor"
4400
4659
  }));
4401
4660
  },
4402
4661
  yarn: function(props) {
4403
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4662
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4404
4663
  viewBox: "0 0 24 24"
4405
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4664
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4406
4665
  d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
4407
4666
  fill: "currentColor"
4408
4667
  }));
4409
4668
  },
4410
4669
  pnpm: function(props) {
4411
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4670
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4412
4671
  viewBox: "0 0 24 24"
4413
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4672
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4414
4673
  d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
4415
4674
  fill: "currentColor"
4416
4675
  }));
4417
4676
  },
4418
4677
  react: function(props) {
4419
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4678
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4420
4679
  viewBox: "0 0 24 24"
4421
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4680
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4422
4681
  d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
4423
4682
  fill: "currentColor"
4424
4683
  }));
4425
4684
  },
4426
4685
  tailwind: function(props) {
4427
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4686
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4428
4687
  viewBox: "0 0 24 24"
4429
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4688
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4430
4689
  d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
4431
4690
  fill: "currentColor"
4432
4691
  }));
4433
4692
  },
4434
4693
  google: function(props) {
4435
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4694
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4436
4695
  role: "img",
4437
4696
  viewBox: "0 0 24 24"
4438
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4697
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4439
4698
  fill: "currentColor",
4440
4699
  d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
4441
4700
  }));
4442
4701
  },
4443
4702
  apple: function(props) {
4444
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4703
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4445
4704
  role: "img",
4446
4705
  viewBox: "0 0 24 24"
4447
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4706
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4448
4707
  d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
4449
4708
  fill: "currentColor"
4450
4709
  }));
4451
4710
  },
4452
4711
  paypal: function(props) {
4453
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4712
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4454
4713
  role: "img",
4455
4714
  viewBox: "0 0 24 24"
4456
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4715
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4457
4716
  d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
4458
4717
  fill: "currentColor"
4459
4718
  }));
4460
4719
  },
4461
4720
  spinner: function(props) {
4462
- return /* @__PURE__ */ import_react20.default.createElement("svg", _object_spread({
4721
+ return /* @__PURE__ */ import_react24.default.createElement("svg", _object_spread({
4463
4722
  xmlns: "http://www.w3.org/2000/svg",
4464
4723
  width: "24",
4465
4724
  height: "24",
@@ -4469,20 +4728,20 @@ var Logos = {
4469
4728
  strokeWidth: "2",
4470
4729
  strokeLinecap: "round",
4471
4730
  strokeLinejoin: "round"
4472
- }, props), /* @__PURE__ */ import_react20.default.createElement("path", {
4731
+ }, props), /* @__PURE__ */ import_react24.default.createElement("path", {
4473
4732
  d: "M21 12a9 9 0 1 1-6.219-8.56"
4474
4733
  }));
4475
4734
  }
4476
4735
  };
4477
4736
  // components/elements/Command.tsx
4478
- var React34 = __toESM(require("react"));
4737
+ var React36 = __toESM(require("react"));
4479
4738
  var import_cmdk = require("cmdk");
4480
4739
  var import_lucide_react = require("lucide-react");
4481
- var Command = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4740
+ var Command = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
4482
4741
  var className = _param.className, props = _object_without_properties(_param, [
4483
4742
  "className"
4484
4743
  ]);
4485
- return React34.createElement(import_cmdk.Command, _object_spread({
4744
+ return React36.createElement(import_cmdk.Command, _object_spread({
4486
4745
  ref: ref,
4487
4746
  className: cn("hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground", className)
4488
4747
  }, props));
@@ -4492,69 +4751,69 @@ var CommandDialog = function(_param) {
4492
4751
  var children = _param.children, props = _object_without_properties(_param, [
4493
4752
  "children"
4494
4753
  ]);
4495
- return /* @__PURE__ */ React34.createElement(Dialog, _object_spread({}, props), /* @__PURE__ */ React34.createElement(DialogContent, {
4754
+ return /* @__PURE__ */ React36.createElement(Dialog, _object_spread({}, props), /* @__PURE__ */ React36.createElement(DialogContent, {
4496
4755
  className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg"
4497
- }, /* @__PURE__ */ React34.createElement(Command, {
4756
+ }, /* @__PURE__ */ React36.createElement(Command, {
4498
4757
  className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5"
4499
4758
  }, children)));
4500
4759
  };
4501
- var CommandInput = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4760
+ var CommandInput = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
4502
4761
  var className = _param.className, props = _object_without_properties(_param, [
4503
4762
  "className"
4504
4763
  ]);
4505
- return React34.createElement("div", {
4764
+ return React36.createElement("div", {
4506
4765
  className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
4507
4766
  "cmdk-input-wrapper": ""
4508
- }, /* @__PURE__ */ React34.createElement(import_lucide_react.Search, {
4767
+ }, /* @__PURE__ */ React36.createElement(import_lucide_react.Search, {
4509
4768
  className: "hawa-mr-2 hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-opacity-50"
4510
- }), /* @__PURE__ */ React34.createElement(import_cmdk.Command.Input, _object_spread({
4769
+ }), /* @__PURE__ */ React36.createElement(import_cmdk.Command.Input, _object_spread({
4511
4770
  ref: ref,
4512
4771
  className: cn("hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50", className)
4513
4772
  }, props)));
4514
4773
  });
4515
4774
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
4516
- var CommandList = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4775
+ var CommandList = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
4517
4776
  var className = _param.className, props = _object_without_properties(_param, [
4518
4777
  "className"
4519
4778
  ]);
4520
- return React34.createElement(import_cmdk.Command.List, _object_spread({
4779
+ return React36.createElement(import_cmdk.Command.List, _object_spread({
4521
4780
  ref: ref,
4522
4781
  className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className)
4523
4782
  }, props));
4524
4783
  });
4525
4784
  CommandList.displayName = import_cmdk.Command.List.displayName;
4526
- var CommandEmpty = React34.forwardRef(function(props, ref) {
4527
- return /* @__PURE__ */ React34.createElement(import_cmdk.Command.Empty, _object_spread({
4785
+ var CommandEmpty = React36.forwardRef(function(props, ref) {
4786
+ return /* @__PURE__ */ React36.createElement(import_cmdk.Command.Empty, _object_spread({
4528
4787
  ref: ref,
4529
4788
  className: "hawa-py-6 hawa-text-center hawa-text-sm"
4530
4789
  }, props));
4531
4790
  });
4532
4791
  CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
4533
- var CommandGroup = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4792
+ var CommandGroup = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
4534
4793
  var className = _param.className, props = _object_without_properties(_param, [
4535
4794
  "className"
4536
4795
  ]);
4537
- return React34.createElement(import_cmdk.Command.Group, _object_spread({
4796
+ return React36.createElement(import_cmdk.Command.Group, _object_spread({
4538
4797
  ref: ref,
4539
4798
  className: cn("hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground", className)
4540
4799
  }, props));
4541
4800
  });
4542
4801
  CommandGroup.displayName = import_cmdk.Command.Group.displayName;
4543
- var CommandSeparator = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4802
+ var CommandSeparator = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
4544
4803
  var className = _param.className, props = _object_without_properties(_param, [
4545
4804
  "className"
4546
4805
  ]);
4547
- return React34.createElement(import_cmdk.Command.Separator, _object_spread({
4806
+ return React36.createElement(import_cmdk.Command.Separator, _object_spread({
4548
4807
  ref: ref,
4549
4808
  className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className)
4550
4809
  }, props));
4551
4810
  });
4552
4811
  CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
4553
- var CommandItem = React34.forwardRef(function(_param, ref) /* @__PURE__ */ {
4812
+ var CommandItem = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
4554
4813
  var className = _param.className, props = _object_without_properties(_param, [
4555
4814
  "className"
4556
4815
  ]);
4557
- return React34.createElement(import_cmdk.Command.Item, _object_spread({
4816
+ return React36.createElement(import_cmdk.Command.Item, _object_spread({
4558
4817
  ref: ref,
4559
4818
  className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className)
4560
4819
  }, props));
@@ -4564,11 +4823,242 @@ var CommandShortcut = function(_param) {
4564
4823
  var className = _param.className, props = _object_without_properties(_param, [
4565
4824
  "className"
4566
4825
  ]);
4567
- return /* @__PURE__ */ React34.createElement("span", _object_spread({
4826
+ return /* @__PURE__ */ React36.createElement("span", _object_spread({
4568
4827
  className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground", className)
4569
4828
  }, props));
4570
4829
  };
4571
4830
  CommandShortcut.displayName = "CommandShortcut";
4831
+ // components/elements/Combobox.tsx
4832
+ var React37 = __toESM(require("react"));
4833
+ var import_lucide_react2 = require("lucide-react");
4834
+ var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
4835
+ var frameworks = [
4836
+ {
4837
+ value: "next.js",
4838
+ label: "Next.js"
4839
+ },
4840
+ {
4841
+ value: "sveltekit",
4842
+ label: "SvelteKit"
4843
+ },
4844
+ {
4845
+ value: "nuxt.js",
4846
+ label: "Nuxt.js"
4847
+ },
4848
+ {
4849
+ value: "remix",
4850
+ label: "Remix"
4851
+ },
4852
+ {
4853
+ value: "astro",
4854
+ label: "Astro"
4855
+ }
4856
+ ];
4857
+ function Combobox() {
4858
+ var _frameworks_find;
4859
+ var _React37_useState = _sliced_to_array(React37.useState(false), 2), open = _React37_useState[0], setOpen = _React37_useState[1];
4860
+ var _React37_useState1 = _sliced_to_array(React37.useState(""), 2), value = _React37_useState1[0], setValue = _React37_useState1[1];
4861
+ return /* @__PURE__ */ React37.createElement(PopoverPrimitive2.Root, {
4862
+ open: open,
4863
+ onOpenChange: setOpen
4864
+ }, /* @__PURE__ */ React37.createElement(PopoverTrigger, {
4865
+ asChild: true
4866
+ }, /* @__PURE__ */ React37.createElement(Button, {
4867
+ variant: "outline",
4868
+ role: "combobox",
4869
+ "aria-expanded": open,
4870
+ className: "hawa-w-[200px] hawa-justify-between"
4871
+ }, value ? (_frameworks_find = frameworks.find(function(framework) {
4872
+ return framework.value === value;
4873
+ })) === null || _frameworks_find === void 0 ? void 0 : _frameworks_find.label : "Select framework...", /* @__PURE__ */ React37.createElement(import_lucide_react2.ChevronsUpDown, {
4874
+ className: "hawa-ml-2 hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-opacity-50"
4875
+ }))), /* @__PURE__ */ React37.createElement(PopoverContent, {
4876
+ className: "hawa-w-[200px] hawa-p-0"
4877
+ }, /* @__PURE__ */ React37.createElement(Command, null, /* @__PURE__ */ React37.createElement(CommandInput, {
4878
+ placeholder: "Search framework..."
4879
+ }), /* @__PURE__ */ React37.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React37.createElement(CommandGroup, null, frameworks.map(function(framework) {
4880
+ return /* @__PURE__ */ React37.createElement(CommandItem, {
4881
+ key: framework.value,
4882
+ onSelect: function(currentValue) {
4883
+ setValue(currentValue === value ? "" : currentValue);
4884
+ setOpen(false);
4885
+ }
4886
+ }, /* @__PURE__ */ React37.createElement(import_lucide_react2.Check, {
4887
+ className: cn("hawa-mr-2 hawa-h-4 hawa-w-4", value === framework.value ? "hawa-opacity-100" : "hawa-opacity-0")
4888
+ }), framework.label);
4889
+ })))));
4890
+ }
4891
+ // components/elements/Form.tsx
4892
+ var React38 = __toESM(require("react"));
4893
+ var import_react_hook_form = require("react-hook-form");
4894
+ var Form = import_react_hook_form.FormProvider;
4895
+ var FormFieldContext = React38.createContext({});
4896
+ var FormField = function(_param) {
4897
+ var props = _extends({}, _object_destructuring_empty(_param));
4898
+ return /* @__PURE__ */ React38.createElement(FormFieldContext.Provider, {
4899
+ value: {
4900
+ name: props.name
4901
+ }
4902
+ }, /* @__PURE__ */ React38.createElement(import_react_hook_form.Controller, _object_spread({}, props)));
4903
+ };
4904
+ var useFormField = function() {
4905
+ var fieldContext = React38.useContext(FormFieldContext);
4906
+ var itemContext = React38.useContext(FormItemContext);
4907
+ var _ref = (0, import_react_hook_form.useFormContext)(), getFieldState = _ref.getFieldState, formState = _ref.formState;
4908
+ var fieldState = getFieldState(fieldContext.name, formState);
4909
+ if (!fieldContext) {
4910
+ throw new Error("useFormField should be used within <FormField>");
4911
+ }
4912
+ var id = itemContext.id;
4913
+ return _object_spread({
4914
+ id: id,
4915
+ name: fieldContext.name,
4916
+ formItemId: "".concat(id, "-form-item"),
4917
+ formDescriptionId: "".concat(id, "-form-item-description"),
4918
+ formMessageId: "".concat(id, "-form-item-message")
4919
+ }, fieldState);
4920
+ };
4921
+ var FormItemContext = React38.createContext({});
4922
+ var FormItem = React38.forwardRef(function(_param, ref) {
4923
+ var className = _param.className, props = _object_without_properties(_param, [
4924
+ "className"
4925
+ ]);
4926
+ var id = React38.useId();
4927
+ return /* @__PURE__ */ React38.createElement(FormItemContext.Provider, {
4928
+ value: {
4929
+ id: id
4930
+ }
4931
+ }, /* @__PURE__ */ React38.createElement("div", _object_spread({
4932
+ ref: ref,
4933
+ className: cn("space-y-2", className)
4934
+ }, props)));
4935
+ });
4936
+ FormItem.displayName = "FormItem";
4937
+ var FormLabel = React38.forwardRef(function(_param, ref) {
4938
+ var className = _param.className, props = _object_without_properties(_param, [
4939
+ "className"
4940
+ ]);
4941
+ var _useFormField = useFormField(), error = _useFormField.error, formItemId = _useFormField.formItemId;
4942
+ return /* @__PURE__ */ React38.createElement(Label, _object_spread({
4943
+ ref: ref,
4944
+ className: cn(error && "text-destructive", className),
4945
+ htmlFor: formItemId
4946
+ }, props));
4947
+ });
4948
+ FormLabel.displayName = "FormLabel";
4949
+ var FormControl = React38.forwardRef(function(_param, ref) {
4950
+ var props = _extends({}, _object_destructuring_empty(_param));
4951
+ var _useFormField = useFormField(), error = _useFormField.error, formItemId = _useFormField.formItemId, formDescriptionId = _useFormField.formDescriptionId, formMessageId = _useFormField.formMessageId;
4952
+ return /* @__PURE__ */ React38.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, _object_spread({
4953
+ ref: ref,
4954
+ id: formItemId,
4955
+ "aria-describedby": !error ? "".concat(formDescriptionId) : "".concat(formDescriptionId, " ").concat(formMessageId),
4956
+ "aria-invalid": !!error
4957
+ }, props));
4958
+ });
4959
+ FormControl.displayName = "FormControl";
4960
+ var FormDescription = React38.forwardRef(function(_param, ref) {
4961
+ var className = _param.className, props = _object_without_properties(_param, [
4962
+ "className"
4963
+ ]);
4964
+ var formDescriptionId = useFormField().formDescriptionId;
4965
+ return /* @__PURE__ */ React38.createElement("p", _object_spread({
4966
+ ref: ref,
4967
+ id: formDescriptionId,
4968
+ className: cn("text-sm text-muted-foreground", className)
4969
+ }, props));
4970
+ });
4971
+ FormDescription.displayName = "FormDescription";
4972
+ var FormMessage = React38.forwardRef(function(_param, ref) {
4973
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
4974
+ "className",
4975
+ "children"
4976
+ ]);
4977
+ var _useFormField = useFormField(), error = _useFormField.error, formMessageId = _useFormField.formMessageId;
4978
+ var body = error ? String(error === null || error === void 0 ? void 0 : error.message) : children;
4979
+ if (!body) {
4980
+ return null;
4981
+ }
4982
+ return /* @__PURE__ */ React38.createElement("p", _object_spread({
4983
+ ref: ref,
4984
+ id: formMessageId,
4985
+ className: cn("text-sm font-medium text-destructive", className)
4986
+ }, props), body);
4987
+ });
4988
+ FormMessage.displayName = "FormMessage";
4989
+ // components/elements/InterfaceSettings.tsx
4990
+ var import_react25 = __toESM(require("react"));
4991
+ var InterfaceSettings = function(_param) {
4992
+ var _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_width = _param.width, width = _param_width === void 0 ? "default" : _param_width, props = _object_without_properties(_param, [
4993
+ "orientation",
4994
+ "width"
4995
+ ]);
4996
+ var _ref = _sliced_to_array((0, import_react25.useState)(props.currentColorMode), 2), color = _ref[0], setColor = _ref[1];
4997
+ var _ref1 = _sliced_to_array((0, import_react25.useState)(props.currentLanguage), 2), language = _ref1[0], setLanguage = _ref1[1];
4998
+ var orientationStyle = {
4999
+ horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
5000
+ vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
5001
+ };
5002
+ return /* @__PURE__ */ import_react25.default.createElement("div", {
5003
+ className: cn(orientationStyle[orientation])
5004
+ }, /* @__PURE__ */ import_react25.default.createElement(Radio, {
5005
+ width: width,
5006
+ defaultValue: language,
5007
+ onChangeTab: function(e) {
5008
+ props.handleLanguage(e);
5009
+ setLanguage(e);
5010
+ },
5011
+ design: "tabs",
5012
+ options: [
5013
+ {
5014
+ value: "ar",
5015
+ label: "عربي"
5016
+ },
5017
+ {
5018
+ value: "en",
5019
+ label: "English"
5020
+ }
5021
+ ]
5022
+ }), /* @__PURE__ */ import_react25.default.createElement(Radio, {
5023
+ width: width,
5024
+ defaultValue: color,
5025
+ onChangeTab: function(e) {
5026
+ props.handleColorMode(e);
5027
+ setColor(e);
5028
+ },
5029
+ design: "tabs",
5030
+ options: [
5031
+ {
5032
+ value: "light",
5033
+ label: /* @__PURE__ */ import_react25.default.createElement("svg", {
5034
+ width: "15",
5035
+ height: "15",
5036
+ viewBox: "0 0 15 15",
5037
+ fill: "none",
5038
+ xmlns: "http://www.w3.org/2000/svg",
5039
+ className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
5040
+ }, /* @__PURE__ */ import_react25.default.createElement("path", {
5041
+ d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
5042
+ fill: "currentColor"
5043
+ }))
5044
+ },
5045
+ {
5046
+ value: "dark",
5047
+ label: /* @__PURE__ */ import_react25.default.createElement("svg", {
5048
+ xmlns: "http://www.w3.org/2000/svg",
5049
+ width: "24",
5050
+ height: "24",
5051
+ viewBox: "0 0 24 24",
5052
+ fill: "none",
5053
+ stroke: "currentColor",
5054
+ className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
5055
+ }, /* @__PURE__ */ import_react25.default.createElement("path", {
5056
+ d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
5057
+ }))
5058
+ }
5059
+ ]
5060
+ }));
5061
+ };
4572
5062
  // Annotate the CommonJS export names for ESM import in node:
4573
5063
  0 && (module.exports = {
4574
5064
  ActionCard: ActionCard,
@@ -4587,6 +5077,7 @@ CommandShortcut.displayName = "CommandShortcut";
4587
5077
  Chip: Chip,
4588
5078
  CodeBlock: CodeBlock,
4589
5079
  ColorPicker: ColorPicker,
5080
+ Combobox: Combobox,
4590
5081
  Command: Command,
4591
5082
  CommandDialog: CommandDialog,
4592
5083
  CommandEmpty: CommandEmpty,
@@ -4605,7 +5096,15 @@ CommandShortcut.displayName = "CommandShortcut";
4605
5096
  DialogTrigger: DialogTrigger,
4606
5097
  DropdownMenu: DropdownMenu,
4607
5098
  FileDropzone: FileDropzone,
5099
+ Form: Form,
5100
+ FormControl: FormControl,
5101
+ FormDescription: FormDescription,
5102
+ FormField: FormField,
5103
+ FormItem: FormItem,
5104
+ FormLabel: FormLabel,
5105
+ FormMessage: FormMessage,
4608
5106
  Input: Input,
5107
+ InterfaceSettings: InterfaceSettings,
4609
5108
  Label: Label,
4610
5109
  Loading: Loading,
4611
5110
  Logos: Logos,
@@ -4614,10 +5113,12 @@ CommandShortcut.displayName = "CommandShortcut";
4614
5113
  Popover: Popover,
4615
5114
  PopoverContent: PopoverContent,
4616
5115
  PopoverTrigger: PopoverTrigger,
5116
+ Progress: Progress,
4617
5117
  Radio: Radio,
4618
5118
  ScrollArea: ScrollArea,
4619
5119
  ScrollBar: ScrollBar,
4620
5120
  Select: Select,
5121
+ Separator: Separator,
4621
5122
  Skeleton: Skeleton,
4622
5123
  Slider: Slider,
4623
5124
  Switch: Switch,
@@ -4635,5 +5136,6 @@ CommandShortcut.displayName = "CommandShortcut";
4635
5136
  ToastViewport: ToastViewport,
4636
5137
  Toaster: Toaster,
4637
5138
  Tooltip: Tooltip,
4638
- buttonVariants: buttonVariants
5139
+ buttonVariants: buttonVariants,
5140
+ useFormField: useFormField
4639
5141
  });