uibee 3.1.0 → 3.1.1

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.
@@ -825,14 +825,17 @@ function SearchInput({ placeholder = "Search...", variant = "default" }) {
825
825
  className: "pl-10 pr-4 py-2 border-b outline-none w-64"
826
826
  })]
827
827
  });
828
- else return /* @__PURE__ */ jsx(Input, {
829
- name: "search",
830
- icon: /* @__PURE__ */ jsx(Search, { className: "w-5 h-5" }),
831
- value: searchValue,
832
- onChange: handleChange,
833
- onKeyDown: handleKeyDown,
834
- onBlur: () => handleSearch(searchValue),
835
- placeholder
828
+ else return /* @__PURE__ */ jsx("div", {
829
+ className: "w-fit min-w-48",
830
+ children: /* @__PURE__ */ jsx(Input, {
831
+ name: "search",
832
+ icon: /* @__PURE__ */ jsx(Search, { className: "w-5 h-5" }),
833
+ value: searchValue,
834
+ onChange: handleChange,
835
+ onKeyDown: handleKeyDown,
836
+ onBlur: () => handleSearch(searchValue),
837
+ placeholder
838
+ })
836
839
  });
837
840
  }
838
841
  //#endregion
package/dist/style.css CHANGED
@@ -1809,6 +1809,9 @@
1809
1809
  .min-w-40 {
1810
1810
  min-width: calc(var(--spacing) * 40);
1811
1811
  }
1812
+ .min-w-48 {
1813
+ min-width: calc(var(--spacing) * 48);
1814
+ }
1812
1815
  .min-w-70 {
1813
1816
  min-width: calc(var(--spacing) * 70);
1814
1817
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -59,14 +59,18 @@ export default function SearchInput({ placeholder = 'Search...', variant = 'defa
59
59
  </div>
60
60
  )
61
61
  } else {
62
- return <Input
63
- name='search'
64
- icon={<Search className='w-5 h-5' />}
65
- value={searchValue}
66
- onChange={handleChange}
67
- onKeyDown={handleKeyDown}
68
- onBlur={() => handleSearch(searchValue)}
69
- placeholder={placeholder}
70
- />
62
+ return (
63
+ <div className='w-fit min-w-48'>
64
+ <Input
65
+ name='search'
66
+ icon={<Search className='w-5 h-5' />}
67
+ value={searchValue}
68
+ onChange={handleChange}
69
+ onKeyDown={handleKeyDown}
70
+ onBlur={() => handleSearch(searchValue)}
71
+ placeholder={placeholder}
72
+ />
73
+ </div>
74
+ )
71
75
  }
72
76
  }