@adiba-banking-cloud/backoffice 0.0.91 → 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.
|
@@ -10,6 +10,7 @@ var HighchartsRounded = require('highcharts-rounded-corners');
|
|
|
10
10
|
var IconSax = require('iconsax-react');
|
|
11
11
|
var reactRouterDom = require('react-router-dom');
|
|
12
12
|
var hooks = require('@mantine/hooks');
|
|
13
|
+
var form = require('@mantine/form');
|
|
13
14
|
require('@fontsource/poppins/100.css');
|
|
14
15
|
require('@fontsource/poppins/200.css');
|
|
15
16
|
require('@fontsource/poppins/300.css');
|
|
@@ -18,7 +19,6 @@ require('@fontsource/poppins/500.css');
|
|
|
18
19
|
require('@fontsource/poppins/600.css');
|
|
19
20
|
require('@fontsource/poppins/700.css');
|
|
20
21
|
require('@fontsource/poppins/800.css');
|
|
21
|
-
var form = require('@mantine/form');
|
|
22
22
|
|
|
23
23
|
function _interopNamespaceDefault(e) {
|
|
24
24
|
var n = Object.create(null);
|
|
@@ -12205,28 +12205,40 @@ const SearchPanel = _ref3 => {
|
|
|
12205
12205
|
name: "Setting5"
|
|
12206
12206
|
},
|
|
12207
12207
|
searchText = "Search",
|
|
12208
|
+
searchState,
|
|
12208
12209
|
filterFn,
|
|
12210
|
+
searchFn,
|
|
12209
12211
|
children,
|
|
12210
12212
|
...rest
|
|
12211
12213
|
} = _ref3;
|
|
12212
|
-
const [search, setSearch] =
|
|
12213
|
-
|
|
12214
|
+
const [search, setSearch] = searchState || React.useState("");
|
|
12215
|
+
const form$1 = form.useForm({
|
|
12216
|
+
initialValues: {
|
|
12217
|
+
search: search
|
|
12218
|
+
}
|
|
12219
|
+
});
|
|
12220
|
+
return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(core.Stack, null, /*#__PURE__*/React.createElement("form", {
|
|
12221
|
+
onSubmit: form$1.onSubmit(values => {
|
|
12222
|
+
searchFn ? searchFn(values) : void 0;
|
|
12223
|
+
})
|
|
12224
|
+
}, /*#__PURE__*/React.createElement(core.Group, {
|
|
12214
12225
|
gap: 'xs'
|
|
12215
|
-
}, /*#__PURE__*/React.createElement(core.TextInput, {
|
|
12226
|
+
}, /*#__PURE__*/React.createElement(core.TextInput, _extends({
|
|
12216
12227
|
fw: 300,
|
|
12217
12228
|
name: "search",
|
|
12218
12229
|
size: "md",
|
|
12219
12230
|
radius: "md",
|
|
12220
12231
|
flex: 1,
|
|
12221
12232
|
value: search,
|
|
12222
|
-
onChange: e => setSearch(e.currentTarget.value),
|
|
12223
12233
|
placeholder: placeholder,
|
|
12224
12234
|
leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon),
|
|
12225
12235
|
rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(core.ActionIcon, {
|
|
12226
12236
|
variant: "transparent",
|
|
12227
12237
|
onClick: filterFn
|
|
12228
12238
|
}, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null)
|
|
12229
|
-
}
|
|
12239
|
+
}, form$1.getInputProps("search"), {
|
|
12240
|
+
onChange: e => setSearch(e.currentTarget.value)
|
|
12241
|
+
})), /*#__PURE__*/React.createElement(core.Button, {
|
|
12230
12242
|
variant: "light",
|
|
12231
12243
|
size: "md",
|
|
12232
12244
|
fw: 300,
|
|
@@ -12235,7 +12247,7 @@ const SearchPanel = _ref3 => {
|
|
|
12235
12247
|
maw: 150,
|
|
12236
12248
|
type: "submit",
|
|
12237
12249
|
leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon)
|
|
12238
|
-
}, searchText)), children));
|
|
12250
|
+
}, searchText))), children));
|
|
12239
12251
|
};
|
|
12240
12252
|
|
|
12241
12253
|
const LabelPanelItem = _ref => {
|
|
@@ -8,6 +8,7 @@ import HighchartsRounded from 'highcharts-rounded-corners';
|
|
|
8
8
|
import * as IconSax from 'iconsax-react';
|
|
9
9
|
import { Link } from 'react-router-dom';
|
|
10
10
|
import { useDisclosure, useToggle } from '@mantine/hooks';
|
|
11
|
+
import { useForm } from '@mantine/form';
|
|
11
12
|
import '@fontsource/poppins/100.css';
|
|
12
13
|
import '@fontsource/poppins/200.css';
|
|
13
14
|
import '@fontsource/poppins/300.css';
|
|
@@ -16,7 +17,6 @@ import '@fontsource/poppins/500.css';
|
|
|
16
17
|
import '@fontsource/poppins/600.css';
|
|
17
18
|
import '@fontsource/poppins/700.css';
|
|
18
19
|
import '@fontsource/poppins/800.css';
|
|
19
|
-
import { useForm } from '@mantine/form';
|
|
20
20
|
|
|
21
21
|
function _mergeNamespaces(n, m) {
|
|
22
22
|
m.forEach(function (e) {
|
|
@@ -12184,28 +12184,40 @@ const SearchPanel = _ref3 => {
|
|
|
12184
12184
|
name: "Setting5"
|
|
12185
12185
|
},
|
|
12186
12186
|
searchText = "Search",
|
|
12187
|
+
searchState,
|
|
12187
12188
|
filterFn,
|
|
12189
|
+
searchFn,
|
|
12188
12190
|
children,
|
|
12189
12191
|
...rest
|
|
12190
12192
|
} = _ref3;
|
|
12191
|
-
const [search, setSearch] =
|
|
12192
|
-
|
|
12193
|
+
const [search, setSearch] = searchState || useState("");
|
|
12194
|
+
const form = useForm({
|
|
12195
|
+
initialValues: {
|
|
12196
|
+
search: search
|
|
12197
|
+
}
|
|
12198
|
+
});
|
|
12199
|
+
return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement("form", {
|
|
12200
|
+
onSubmit: form.onSubmit(values => {
|
|
12201
|
+
searchFn ? searchFn(values) : void 0;
|
|
12202
|
+
})
|
|
12203
|
+
}, /*#__PURE__*/React.createElement(Group, {
|
|
12193
12204
|
gap: 'xs'
|
|
12194
|
-
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
12205
|
+
}, /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
12195
12206
|
fw: 300,
|
|
12196
12207
|
name: "search",
|
|
12197
12208
|
size: "md",
|
|
12198
12209
|
radius: "md",
|
|
12199
12210
|
flex: 1,
|
|
12200
12211
|
value: search,
|
|
12201
|
-
onChange: e => setSearch(e.currentTarget.value),
|
|
12202
12212
|
placeholder: placeholder,
|
|
12203
12213
|
leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon),
|
|
12204
12214
|
rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(ActionIcon, {
|
|
12205
12215
|
variant: "transparent",
|
|
12206
12216
|
onClick: filterFn
|
|
12207
12217
|
}, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null)
|
|
12208
|
-
}
|
|
12218
|
+
}, form.getInputProps("search"), {
|
|
12219
|
+
onChange: e => setSearch(e.currentTarget.value)
|
|
12220
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
12209
12221
|
variant: "light",
|
|
12210
12222
|
size: "md",
|
|
12211
12223
|
fw: 300,
|
|
@@ -12214,7 +12226,7 @@ const SearchPanel = _ref3 => {
|
|
|
12214
12226
|
maw: 150,
|
|
12215
12227
|
type: "submit",
|
|
12216
12228
|
leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon)
|
|
12217
|
-
}, searchText)), children));
|
|
12229
|
+
}, searchText))), children));
|
|
12218
12230
|
};
|
|
12219
12231
|
|
|
12220
12232
|
const LabelPanelItem = _ref => {
|
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.
|
|
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",
|