react-core-ts 1.9.18 → 2.0.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.
- package/dist/AutoCompleteWithTabFilter.d.ts +4 -0
- package/dist/AutoCompleteWithTabFilter.js +743 -0
- package/dist/AutoCompleteWithTabFilter.js.map +1 -0
- package/dist/AutoCompleteWithTreeStructure.js +3 -3
- package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
- package/dist/ReactTextField.js +1 -1
- package/dist/ReactTextField.js.map +1 -1
- package/dist/commontypes.d.ts +13 -1
- package/dist/dropdownFilterTabs.d.ts +7 -0
- package/dist/dropdownFilterTabs.js +647 -0
- package/dist/dropdownFilterTabs.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/components/selectedautocomplete.css +11 -0
- package/dist/styles/styles/components/autocomplete.css +717 -0
- package/dist/styles/styles/components/selectedautocomplete.css +179 -0
- package/dist/styles/styles/components/tooltip.css +497 -0
- package/dist/styles/styles/components/treedropdown.css +97 -0
- package/dist/styles/styles/global.css +8 -0
- package/dist/utilities/icons.d.ts +1 -0
- package/dist/utilities/icons.js +6 -1
- package/dist/utilities/icons.js.map +1 -1
- package/docs/App.tsx +109 -8
- package/package.json +1 -1
- package/src/AutoCompleteWithTabFilter.tsx +1244 -0
- package/src/AutoCompleteWithTreeStructure.tsx +4 -8
- package/src/ReactTextField.tsx +12 -4
- package/src/commontypes.ts +14 -1
- package/src/dropdownFilterTabs.tsx +1002 -0
- package/src/index.tsx +1 -0
- package/src/styles/components/selectedautocomplete.css +11 -0
- package/src/utilities/icons.tsx +10 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.qbs-tree-list-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
.qbs-tree-list-container-sub {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
gap: 7px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.qbs-tree-list-container-sub .no-children {
|
|
13
|
+
margin-left: 1.75rem; /* Corresponds to ml-7 in Tailwind */
|
|
14
|
+
}
|
|
15
|
+
.qbs-tree-list-container-sub-icon {
|
|
16
|
+
margin-top: 0.25rem; /* Corresponds to mt-1 in Tailwind */
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
padding-top: 0.5rem; /* Corresponds to py-2 in Tailwind */
|
|
19
|
+
padding-bottom: 0.5rem;
|
|
20
|
+
transition: transform 0.3s ease; /* Smooth rotation transition */
|
|
21
|
+
color: #003c71;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.qbs-tree-list-container-sub-icon.expanded {
|
|
25
|
+
transform: rotate(90deg); /* Corresponds to rotate-90 in Tailwind */
|
|
26
|
+
}
|
|
27
|
+
.qbs-tree-list-container-sub-container {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: 15px; /* Corresponds to gap-2 in Tailwind */
|
|
30
|
+
padding: 0.5rem; /* Corresponds to p-2 in Tailwind */
|
|
31
|
+
flex-direction: row; /* Corresponds to flex-row in Tailwind */
|
|
32
|
+
width: 100%; /* Corresponds to w-full in Tailwind */
|
|
33
|
+
color: #3d414a;
|
|
34
|
+
}
|
|
35
|
+
.qbs-tree-list-container-sub-container-hideicon {
|
|
36
|
+
display: flex;
|
|
37
|
+
gap: 6px; /* Corresponds to gap-2 in Tailwind */
|
|
38
|
+
padding: 0.5rem; /* Corresponds to p-2 in Tailwind */
|
|
39
|
+
flex-direction: row; /* Corresponds to flex-row in Tailwind */
|
|
40
|
+
width: 100%; /* Corresponds to w-full in Tailwind */
|
|
41
|
+
color: #3d414a;
|
|
42
|
+
}
|
|
43
|
+
.qbs-tree-list-container-sub-container-hideicon:hover {
|
|
44
|
+
color: #003c71;
|
|
45
|
+
background-color: rgba(141, 194, 240, 0.15) !important;
|
|
46
|
+
}
|
|
47
|
+
.qbs-tree-list-container-sub-container:hover {
|
|
48
|
+
color: #003c71;
|
|
49
|
+
background-color: rgba(141, 194, 240, 0.15) !important;
|
|
50
|
+
}
|
|
51
|
+
.qbs-tree-list-container-sub-container.qbs-expanded-child {
|
|
52
|
+
color: #003c71;
|
|
53
|
+
}
|
|
54
|
+
.qbs-tree-list-container-sub-text.qbs-expanded-child {
|
|
55
|
+
color: #003c71;
|
|
56
|
+
}
|
|
57
|
+
.qbs-tree-list-container-sub-text:hover {
|
|
58
|
+
color: #003c71;
|
|
59
|
+
/* background-color: rgba(141, 194, 240, 0.15) !important; */
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.qbs-tree-list-container-sub-container.checked,
|
|
63
|
+
.qbs-tree-list-container-sub-container-hideicon.checked {
|
|
64
|
+
color: #003c71;
|
|
65
|
+
background-color: rgba(
|
|
66
|
+
141,
|
|
67
|
+
194,
|
|
68
|
+
240,
|
|
69
|
+
0.15
|
|
70
|
+
) !important; /* Corresponds to bg-green-200 in Tailwind */
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.marginLeft {
|
|
74
|
+
margin-left: 28px; /* Corresponds to ml-2 in Tailwind */
|
|
75
|
+
}
|
|
76
|
+
.lightmarginLeft {
|
|
77
|
+
margin-left: 19px; /* Corresponds to ml-2 in Tailwind */
|
|
78
|
+
}
|
|
79
|
+
.qbs-tree-list-container-sub- {
|
|
80
|
+
line-height: 18px; /* Corresponds to leading-[18px] in Tailwind */
|
|
81
|
+
font-size: 0.875rem; /* Corresponds to text-sm in Tailwind (14px) */
|
|
82
|
+
}
|
|
83
|
+
.qbs-tree-list-container-child {
|
|
84
|
+
margin-left: 1rem; /* Corresponds to ml-4 in Tailwind */
|
|
85
|
+
margin-top: 0.5rem; /* Corresponds to mt-2 in Tailwind */
|
|
86
|
+
display: flex; /* Corresponds to flex in Tailwind */
|
|
87
|
+
flex-direction: column; /* Corresponds to flex-col in Tailwind */
|
|
88
|
+
gap: 0.5rem; /* Corresponds to gap-2 in Tailwind */
|
|
89
|
+
}
|
|
90
|
+
.qbs-tree-list-container-sub-text {
|
|
91
|
+
line-height: 18px; /* Corresponds to leading-[18px] in Tailwind */
|
|
92
|
+
font-size: 14px; /* Corresponds to text-sm in Tailwind (14px) */
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
letter-spacing: 0.28px;
|
|
95
|
+
font-family: 'Noto Sans';
|
|
96
|
+
/* color: #3d414a; */
|
|
97
|
+
}
|
package/dist/utilities/icons.js
CHANGED
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.AllDropArrow = exports.Search = exports.Spinner = exports.Close = exports.DropArrow = void 0;
|
|
14
|
+
exports.Tools = exports.AllDropArrow = exports.Search = exports.Spinner = exports.Close = exports.DropArrow = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var DropArrow = function (_a) {
|
|
17
17
|
var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.stroke, stroke = _c === void 0 ? 1.5 : _c, _d = _a.uniqueId, uniqueId = _d === void 0 ? "drop-arrow-icon" : _d;
|
|
@@ -38,4 +38,9 @@ var AllDropArrow = function (_a) {
|
|
|
38
38
|
return ((0, jsx_runtime_1.jsx)("svg", __assign({ id: uniqueId, width: "20", height: "20", viewBox: "0 0 20 20", className: className, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: type === "up" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M17.5 15L14.5833 11.6667L11.6666 15", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round", strokeLinejoin: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 4.16669H17.5", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 7.91669H17.5", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 11.6667H9.16667", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 15.4167H9.16667", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M11.6667 11.6667L14.5833 15L17.5 11.6667", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round", strokeLinejoin: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 4.16669H17.5", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 7.91669H17.5", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 11.6667H9.16667", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 15.4167H9.16667", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round" })] })) })));
|
|
39
39
|
};
|
|
40
40
|
exports.AllDropArrow = AllDropArrow;
|
|
41
|
+
var Tools = function (_a) {
|
|
42
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.stroke, stroke = _c === void 0 ? 1.5 : _c;
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ role: "status" }, { children: (0, jsx_runtime_1.jsx)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M18.3334 2.5H1.66675L8.33341 10.3833V15.8333L11.6667 17.5V10.3833L18.3334 2.5Z", stroke: "currentColor", strokeWidth: "1.66667", strokeLinecap: "round", strokeLinejoin: "round" }) })) })));
|
|
44
|
+
};
|
|
45
|
+
exports.Tools = Tools;
|
|
41
46
|
//# sourceMappingURL=icons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../src/utilities/icons.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEO,IAAM,SAAS,GAAkB,UAAC,EAIxC;QAHC,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,cAAY,EAAZ,MAAM,mBAAG,GAAG,KAAA,EACZ,gBAA4B,EAA5B,QAAQ,mBAAG,iBAAiB,KAAA;IAE5B,OAAO,CACL,yCACE,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAC,KAAK,EACjB,MAAM,EAAC,cAAc,EACrB,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAChC,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,QAAQ,gBAEb,iCACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,6BAA6B,GAC/B,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,SAAS,aAwBpB;AAEK,IAAM,KAAK,GAAkB,UAAC,EAAgC;QAA9B,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAE,cAAY,EAAZ,MAAM,mBAAG,GAAG,KAAA;IACjE,OAAO,CACL,yCACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAC,GAAG,EACf,MAAM,EAAC,cAAc,EACrB,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,gBAEhC,iCACE,aAAa,EAAC,OAAO,EACrB,cAAc,E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AAC,SAAS,EACrB,aAAa,EAAC,OAAO,GACrB,EACF,iCACE,CAAC,EAAC,mBAAmB,EACrB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,SAAS,EACrB,aAAa,EAAC,OAAO,GACrB,EACF,iCACE,CAAC,EAAC,sBAAsB,EACxB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,SAAS,EACrB,aAAa,EAAC,OAAO,GACrB,EACF,iCACE,CAAC,EAAC,sBAAsB,EACxB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,SAAS,EACrB,aAAa,EAAC,OAAO,GACrB,IACD,CACJ,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAtFW,QAAA,YAAY,gBAsFvB;AAEK,IAAM,KAAK,GAAkB,UAAC,EAAgC;QAA9B,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAE,cAAY,EAAZ,MAAM,mBAAG,GAAG,KAAA;IACjE,OAAO,CACL,yCAAK,IAAI,EAAC,QAAQ,gBAChB,yCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,gBAC5F,iCAAM,CAAC,EAAC,gFAAgF,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,GAAE,IAC/K,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,KAAK,SAQhB"}
|
package/docs/App.tsx
CHANGED
|
@@ -3,10 +3,12 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
AutoComplete,
|
|
5
5
|
AutoCompleteWithSelectedList,
|
|
6
|
+
AutoCompleteWithTabFilter,
|
|
6
7
|
AutoCompleteWithTreeStructure,
|
|
7
8
|
ExpandableAutoComplete,
|
|
8
9
|
ModernAutoComplete,
|
|
9
10
|
ModernAutoCompleteDropdown,
|
|
11
|
+
ModernTextField,
|
|
10
12
|
} from '../src/index';
|
|
11
13
|
import ModernTextArea from '../src/ReactTextArea';
|
|
12
14
|
import TextField from '../src/ReactTextField';
|
|
@@ -18,8 +20,12 @@ export default function App() {
|
|
|
18
20
|
const [dropData, setDropData] = useState();
|
|
19
21
|
const [nexBlock, setNexBlock] = useState(1);
|
|
20
22
|
const [prev, setPrev] = useState(1);
|
|
23
|
+
const [selectedTabItems, setSelectedTabItems] = useState([]);
|
|
24
|
+
const [selectedItems, setSelectedItems] = useState([]);
|
|
25
|
+
|
|
21
26
|
|
|
22
27
|
const getData = (keyName?: string, next?: number) => {
|
|
28
|
+
console.log(keyName, 'keyName');
|
|
23
29
|
return fetch(
|
|
24
30
|
keyName
|
|
25
31
|
? `https://jsonplaceholder.typicode.com/posts?_page=${next}&_limit=10&title_like=${keyName}`
|
|
@@ -37,7 +43,9 @@ export default function App() {
|
|
|
37
43
|
const getDatas = (keyName?: string) => {
|
|
38
44
|
return fetch(
|
|
39
45
|
keyName
|
|
40
|
-
? `https://jsonplaceholder.typicode.com/posts?title_like=${
|
|
46
|
+
? `https://jsonplaceholder.typicode.com/posts?title_like=${
|
|
47
|
+
keyName === '*' ? '' : keyName
|
|
48
|
+
}`
|
|
41
49
|
: `https://jsonplaceholder.typicode.com/posts`
|
|
42
50
|
)
|
|
43
51
|
.then((res) => res.json())
|
|
@@ -65,7 +73,7 @@ export default function App() {
|
|
|
65
73
|
.then((res) => {
|
|
66
74
|
setNexBlock(nexBlock + 1);
|
|
67
75
|
const result = res.map((item: any) => {
|
|
68
|
-
return { ...item, ['name']: item?.title, id: item?.id.toString()
|
|
76
|
+
return { ...item, ['name']: item?.title + ' - ' + tab?.toString(), id: `${item?.id.toString()}-${tab?.toString()}`};
|
|
69
77
|
});
|
|
70
78
|
return result;
|
|
71
79
|
});
|
|
@@ -91,6 +99,58 @@ export default function App() {
|
|
|
91
99
|
overflowY: 'scroll',
|
|
92
100
|
}}
|
|
93
101
|
>
|
|
102
|
+
|
|
103
|
+
<div style={{ width: 500 }}>
|
|
104
|
+
<AutoCompleteWithTabFilter
|
|
105
|
+
label="Auto Suggestion With Data"
|
|
106
|
+
name="sample"
|
|
107
|
+
type="auto_suggestion"
|
|
108
|
+
async={true}
|
|
109
|
+
typeOnlyFetch={true}
|
|
110
|
+
desc="name"
|
|
111
|
+
isMultiple={true}
|
|
112
|
+
singleSelect={false}
|
|
113
|
+
descId="id"
|
|
114
|
+
getData={getData}
|
|
115
|
+
paginationEnabled={false}
|
|
116
|
+
initialLoad={false}
|
|
117
|
+
itemCount={3}
|
|
118
|
+
placeholder="Auto Suggestion"
|
|
119
|
+
selectedItems={selectedItems}
|
|
120
|
+
onChange={(e) => setSelectedItems(e)}
|
|
121
|
+
tabSelectedItems={selectedTabItems}
|
|
122
|
+
getTabData={getDataWithTab}
|
|
123
|
+
onToolTabChange={(value) => setSelectedTabItems(value)}
|
|
124
|
+
countOnly={true}
|
|
125
|
+
toolTabClearSwitch={false}
|
|
126
|
+
enableToolsTab={true}
|
|
127
|
+
toolTabs={[
|
|
128
|
+
{ id: 1, label: 'Tab 1' },
|
|
129
|
+
{ id: 2, label: 'Tab 2' },
|
|
130
|
+
]}
|
|
131
|
+
tabName="sample"
|
|
132
|
+
tabDesc="name"
|
|
133
|
+
tabDescId="id"
|
|
134
|
+
enableSelectAll={true}
|
|
135
|
+
autoDropdown={true}
|
|
136
|
+
/>
|
|
137
|
+
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<div style={{ width: 300 }}>
|
|
141
|
+
<ModernTextField
|
|
142
|
+
name="sample"
|
|
143
|
+
label="TextField Enable Search"
|
|
144
|
+
id="id"
|
|
145
|
+
type="text"
|
|
146
|
+
placeholder="TextField"
|
|
147
|
+
required
|
|
148
|
+
onChange={(e) => console.log(e, 'onchange')}
|
|
149
|
+
enableSearch={true}
|
|
150
|
+
onSearchClick={(value) => console.log(value, 'onSearchClick')}
|
|
151
|
+
/>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
94
154
|
<div style={{ width: 300 }}>
|
|
95
155
|
<ModernAutoComplete
|
|
96
156
|
name="sample"
|
|
@@ -102,8 +162,8 @@ export default function App() {
|
|
|
102
162
|
required
|
|
103
163
|
getData={getDatas}
|
|
104
164
|
onChange={(e) => console.log(e, 'onchange')}
|
|
105
|
-
shortCode=
|
|
106
|
-
labelCode=
|
|
165
|
+
shortCode="id"
|
|
166
|
+
labelCode="userId"
|
|
107
167
|
/>
|
|
108
168
|
</div>
|
|
109
169
|
|
|
@@ -120,7 +180,6 @@ export default function App() {
|
|
|
120
180
|
/>
|
|
121
181
|
</div>
|
|
122
182
|
|
|
123
|
-
|
|
124
183
|
<div className="autocomplete-section">
|
|
125
184
|
<h2>Expandable Auto Suggestion</h2>
|
|
126
185
|
<p>
|
|
@@ -135,7 +194,10 @@ export default function App() {
|
|
|
135
194
|
label="Auto Suggestion"
|
|
136
195
|
name="sample"
|
|
137
196
|
type="auto_suggestion"
|
|
138
|
-
|
|
197
|
+
enableSelectAll={true}
|
|
198
|
+
async
|
|
199
|
+
typeOnlyFetch
|
|
200
|
+
autoDropdown
|
|
139
201
|
desc="name"
|
|
140
202
|
isMultiple
|
|
141
203
|
expandable={true}
|
|
@@ -206,9 +268,14 @@ export default function App() {
|
|
|
206
268
|
initialLoad={false}
|
|
207
269
|
itemCount={3}
|
|
208
270
|
placeholder="Auto Suggestion"
|
|
209
|
-
selectedItems={[
|
|
271
|
+
selectedItems={[
|
|
272
|
+
{
|
|
273
|
+
name: 'Port G - A small',
|
|
274
|
+
id: 2,
|
|
275
|
+
},
|
|
276
|
+
]}
|
|
210
277
|
onChange={(e) => console.log(e, 'onchange')}
|
|
211
|
-
countOnly={true}
|
|
278
|
+
countOnly={true}
|
|
212
279
|
/>
|
|
213
280
|
</div>
|
|
214
281
|
<div style={{ width: 300 }}>
|
|
@@ -227,8 +294,11 @@ export default function App() {
|
|
|
227
294
|
selectedItems={[]}
|
|
228
295
|
onChange={(e) => console.log(e, 'onchange')}
|
|
229
296
|
countOnly={true}
|
|
297
|
+
enableSelectAll={true}
|
|
298
|
+
autoDropdown={true}
|
|
230
299
|
/>
|
|
231
300
|
</div>
|
|
301
|
+
|
|
232
302
|
|
|
233
303
|
<div style={{ width: 300 }}>
|
|
234
304
|
<AutoCompleteWithSelectedList
|
|
@@ -252,6 +322,34 @@ export default function App() {
|
|
|
252
322
|
]}
|
|
253
323
|
clearTabSwitch={true}
|
|
254
324
|
tabInlineSearch={false}
|
|
325
|
+
searchValue='Hello'
|
|
326
|
+
onSearchValueChange={(value) => console.log(value, 'onSearchValueChange')}
|
|
327
|
+
/>
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
<div style={{ width: 300 }}>
|
|
331
|
+
<AutoCompleteWithSelectedList
|
|
332
|
+
label="Auto Suggestion API Data With Tab Inline"
|
|
333
|
+
name="sample"
|
|
334
|
+
type="auto_suggestion"
|
|
335
|
+
async={true}
|
|
336
|
+
desc="name"
|
|
337
|
+
isMultiple={true}
|
|
338
|
+
typeOnlyFetch={true}
|
|
339
|
+
descId="id"
|
|
340
|
+
getData={getDataWithTab}
|
|
341
|
+
itemCount={3}
|
|
342
|
+
placeholder="Auto Suggestion"
|
|
343
|
+
selectedItems={[]}
|
|
344
|
+
onChange={(e) => console.log(e, 'onchange')}
|
|
345
|
+
countOnly={true}
|
|
346
|
+
tab={[
|
|
347
|
+
{ id: 1, label: 'Tab 1' },
|
|
348
|
+
{ id: 2, label: 'Tab 2' },
|
|
349
|
+
]}
|
|
350
|
+
clearTabSwitch={true}
|
|
351
|
+
tabInlineSearch={true}
|
|
352
|
+
autoDropdown={true}
|
|
255
353
|
/>
|
|
256
354
|
</div>
|
|
257
355
|
<div className="autocomplete-section">
|
|
@@ -267,6 +365,8 @@ export default function App() {
|
|
|
267
365
|
name="sample"
|
|
268
366
|
placeholder="Custom Select"
|
|
269
367
|
desc="name"
|
|
368
|
+
isMultiple={true}
|
|
369
|
+
selectedItems={[]}
|
|
270
370
|
descId="id"
|
|
271
371
|
type="custom_select"
|
|
272
372
|
data={[
|
|
@@ -453,6 +553,7 @@ export default function App() {
|
|
|
453
553
|
name="sample"
|
|
454
554
|
label="React TextField ."
|
|
455
555
|
id="id"
|
|
556
|
+
isModern={false}
|
|
456
557
|
type="number"
|
|
457
558
|
adorementPosition="start"
|
|
458
559
|
placeholder="TextField"
|