@adiba-banking-cloud/backoffice 0.0.92 → 0.0.93

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.
@@ -12205,12 +12205,13 @@ const SearchPanel = _ref3 => {
12205
12205
  name: "Setting5"
12206
12206
  },
12207
12207
  searchText = "Search",
12208
+ searchState,
12208
12209
  filterFn,
12209
12210
  searchFn,
12210
12211
  children,
12211
12212
  ...rest
12212
12213
  } = _ref3;
12213
- const [search, setSearch] = rest.searchState || React.useState("");
12214
+ const [search, setSearch] = searchState || React.useState("");
12214
12215
  const form$1 = form.useForm({
12215
12216
  initialValues: {
12216
12217
  search: search
@@ -12235,7 +12236,9 @@ const SearchPanel = _ref3 => {
12235
12236
  variant: "transparent",
12236
12237
  onClick: filterFn
12237
12238
  }, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null)
12238
- }, form$1.getInputProps("search"))), /*#__PURE__*/React.createElement(core.Button, {
12239
+ }, form$1.getInputProps("search"), {
12240
+ onChange: e => setSearch(e.currentTarget.value)
12241
+ })), /*#__PURE__*/React.createElement(core.Button, {
12239
12242
  variant: "light",
12240
12243
  size: "md",
12241
12244
  fw: 300,
@@ -12184,12 +12184,13 @@ const SearchPanel = _ref3 => {
12184
12184
  name: "Setting5"
12185
12185
  },
12186
12186
  searchText = "Search",
12187
+ searchState,
12187
12188
  filterFn,
12188
12189
  searchFn,
12189
12190
  children,
12190
12191
  ...rest
12191
12192
  } = _ref3;
12192
- const [search, setSearch] = rest.searchState || useState("");
12193
+ const [search, setSearch] = searchState || useState("");
12193
12194
  const form = useForm({
12194
12195
  initialValues: {
12195
12196
  search: search
@@ -12214,7 +12215,9 @@ const SearchPanel = _ref3 => {
12214
12215
  variant: "transparent",
12215
12216
  onClick: filterFn
12216
12217
  }, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null)
12217
- }, form.getInputProps("search"))), /*#__PURE__*/React.createElement(Button, {
12218
+ }, form.getInputProps("search"), {
12219
+ onChange: e => setSearch(e.currentTarget.value)
12220
+ })), /*#__PURE__*/React.createElement(Button, {
12218
12221
  variant: "light",
12219
12222
  size: "md",
12220
12223
  fw: 300,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adiba-banking-cloud/backoffice",
3
3
  "author": "TUROG Technologies",
4
- "version": "0.0.92",
4
+ "version": "0.0.93",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",