@adiba-banking-cloud/backoffice 0.0.89 → 0.0.91

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.
@@ -12209,6 +12209,7 @@ const SearchPanel = _ref3 => {
12209
12209
  children,
12210
12210
  ...rest
12211
12211
  } = _ref3;
12212
+ const [search, setSearch] = rest.searchState || React.useState("");
12212
12213
  return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(core.Stack, null, /*#__PURE__*/React.createElement(core.Group, {
12213
12214
  gap: 'xs'
12214
12215
  }, /*#__PURE__*/React.createElement(core.TextInput, {
@@ -12217,6 +12218,8 @@ const SearchPanel = _ref3 => {
12217
12218
  size: "md",
12218
12219
  radius: "md",
12219
12220
  flex: 1,
12221
+ value: search,
12222
+ onChange: e => setSearch(e.currentTarget.value),
12220
12223
  placeholder: placeholder,
12221
12224
  leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon),
12222
12225
  rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(core.ActionIcon, {
@@ -1,5 +1,5 @@
1
1
  import { modals } from '@mantine/modals';
2
- import React, { useRef, useMemo, useEffect } from 'react';
2
+ import React, { useRef, useMemo, useEffect, useState } from 'react';
3
3
  import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table, createTheme, PinInput, Drawer as Drawer$1, ScrollArea, NumberInput, PasswordInput, Textarea, Grid } from '@mantine/core';
4
4
  import { DotLottieReact } from '@lottiefiles/dotlottie-react';
5
5
  import _extends from '@babel/runtime/helpers/extends';
@@ -12188,6 +12188,7 @@ const SearchPanel = _ref3 => {
12188
12188
  children,
12189
12189
  ...rest
12190
12190
  } = _ref3;
12191
+ const [search, setSearch] = rest.searchState || useState("");
12191
12192
  return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Group, {
12192
12193
  gap: 'xs'
12193
12194
  }, /*#__PURE__*/React.createElement(TextInput, {
@@ -12196,6 +12197,8 @@ const SearchPanel = _ref3 => {
12196
12197
  size: "md",
12197
12198
  radius: "md",
12198
12199
  flex: 1,
12200
+ value: search,
12201
+ onChange: e => setSearch(e.currentTarget.value),
12199
12202
  placeholder: placeholder,
12200
12203
  leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon),
12201
12204
  rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(ActionIcon, {
@@ -20,5 +20,6 @@ export interface SearchPanelProps extends PanelProps {
20
20
  searchIcon?: IconsProps;
21
21
  filterIcon?: IconsProps;
22
22
  searchText?: string;
23
+ searchState?: [string, (value: string) => void];
23
24
  filterFn?: () => void;
24
25
  }
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.89",
4
+ "version": "0.0.91",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",