@sikka/hawa 0.1.105 → 0.1.106

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.d.mts CHANGED
@@ -120,6 +120,7 @@ type SelectTypes = {
120
120
  children?: any;
121
121
  getOptionLabel?: any;
122
122
  disabled?: boolean;
123
+ defaultValue?: any;
123
124
  };
124
125
  declare const HawaSelect: FC<SelectTypes>;
125
126
 
package/dist/index.d.ts CHANGED
@@ -120,6 +120,7 @@ type SelectTypes = {
120
120
  children?: any;
121
121
  getOptionLabel?: any;
122
122
  disabled?: boolean;
123
+ defaultValue?: any;
123
124
  };
124
125
  declare const HawaSelect: FC<SelectTypes>;
125
126
 
package/dist/index.js CHANGED
@@ -660,7 +660,9 @@ var HawaSelect = function(props) {
660
660
  }, props.label && /* @__PURE__ */ React6.default.createElement(Label, null, props.label), !props.isCreatable && /* @__PURE__ */ React6.default.createElement(_reactselect2.default, {
661
661
  classNames: {
662
662
  // control: () => "bg-blue-500 w-full",
663
- // container: () => "bg-red-500 w-full",
663
+ container: function() {
664
+ return cn("rounded", props.disabled ? "cursor-not-allowed" : "cursor-pointer");
665
+ },
664
666
  placeholder: function() {
665
667
  return "px-2 text-muted-foreground";
666
668
  },
@@ -680,6 +682,7 @@ var HawaSelect = function(props) {
680
682
  unstyled: true,
681
683
  isDisabled: props.disabled,
682
684
  options: props.options,
685
+ defaultValue: props.defaultValue,
683
686
  isClearable: props.isClearable,
684
687
  isMulti: props.isMulti,
685
688
  isSearchable: props.isSearchable,