react-core-ts 1.0.41 → 1.0.43

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.
Files changed (46) hide show
  1. package/README.md +50 -0
  2. package/dist/AutoComplete.d.ts +2 -2
  3. package/dist/AutoComplete.js +44 -37
  4. package/dist/AutoComplete.js.map +1 -1
  5. package/dist/AutoCompleteWithSelectedList.d.ts +4 -0
  6. package/dist/AutoCompleteWithSelectedList.js +446 -0
  7. package/dist/AutoCompleteWithSelectedList.js.map +1 -0
  8. package/dist/ExpandableAutoComplete.js +12 -5
  9. package/dist/ExpandableAutoComplete.js.map +1 -1
  10. package/dist/commontypes.d.ts +11 -4
  11. package/dist/components/DropdownList.js +2 -2
  12. package/dist/components/DropdownList.js.map +1 -1
  13. package/dist/components/InputActions.d.ts +1 -0
  14. package/dist/components/InputActions.js +2 -2
  15. package/dist/components/InputActions.js.map +1 -1
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +3 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/styles/components/treedropdown.css +8 -0
  20. package/dist/styles/styles/components/autocomplete.css +602 -0
  21. package/dist/styles/styles/components/selectedautocomplete.css +121 -0
  22. package/dist/styles/styles/components/treedropdown.css +63 -0
  23. package/dist/styles/styles/global.css +7 -0
  24. package/dist/utilities/autosuggestions.d.ts +2 -2
  25. package/dist/utilities/autosuggestions.js +10 -7
  26. package/dist/utilities/autosuggestions.js.map +1 -1
  27. package/dist/utilities/filterSuggestions.d.ts +1 -1
  28. package/dist/utilities/filterSuggestions.js +10 -5
  29. package/dist/utilities/filterSuggestions.js.map +1 -1
  30. package/docs/App.tsx +96 -4
  31. package/docs/index.html +1 -1
  32. package/package.json +1 -1
  33. package/src/AutoComplete.tsx +66 -51
  34. package/src/AutoCompleteWithSelectedList.tsx +677 -0
  35. package/src/ExpandableAutoComplete.tsx +13 -5
  36. package/src/commontypes.ts +14 -6
  37. package/src/components/DropdownList.tsx +3 -3
  38. package/src/components/InputActions.tsx +3 -1
  39. package/src/index.html +1 -1
  40. package/src/index.tsx +1 -0
  41. package/src/styles/components/autocomplete.css +18 -1
  42. package/src/styles/components/selectedautocomplete.css +121 -0
  43. package/src/styles/components/treedropdown.css +8 -0
  44. package/src/styles/global.css +2 -1
  45. package/src/utilities/autosuggestions.ts +18 -12
  46. package/src/utilities/filterSuggestions.ts +10 -7
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
7
  var DropdownList = function (_a) {
8
8
  var idx = _a.idx, suggestion = _a.suggestion, isSelected = _a.isSelected, handleSuggestionClick = _a.handleSuggestionClick, handleMultiSelect = _a.handleMultiSelect, selected = _a.selected, isMultiple = _a.isMultiple, singleSelect = _a.singleSelect, desc = _a.desc;
9
- return (react_1.default.createElement("div", { key: idx.toString(), className: "qbs-autocomplete-listitem-container ".concat((isMultiple || singleSelect) && 'qbs-autocomplete-checkbox-container', " ").concat(isSelected(suggestion, selected) ? 'is-selected' : '') },
9
+ return (react_1.default.createElement("div", { key: idx.toString(), className: "qbs-autocomplete-listitem-container ".concat((isMultiple || singleSelect) && 'qbs-autocomplete-checkbox-container', " ").concat(isSelected(suggestion, selected) ? 'is-selected' : '') },
10
10
  (isMultiple || singleSelect) && (react_1.default.createElement("div", { className: "qbs-autocomplete-checkbox" },
11
11
  react_1.default.createElement("input", { onChange: function (e) { return handleMultiSelect(e, suggestion); }, type: "checkbox", checked: isSelected(suggestion, selected), id: "qbs-checkbox-".concat(idx.toString()) }),
12
12
  react_1.default.createElement("label", { htmlFor: "qbs-checkbox-".concat(idx.toString()) },
13
13
  react_1.default.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
14
14
  react_1.default.createElement("path", { d: "M0 3.21739L2.89883 6L8 1.06994L6.89494 0L2.89883 3.86768L1.09728 2.14745L0 3.21739Z", fill: "white" }))))),
15
- react_1.default.createElement("li", { key: idx, className: "qbs-autocomplete-suggestions-item ".concat(isSelected(suggestion, selected) ? 'is-selected' : ''), onClick: function () { return handleSuggestionClick(suggestion); }, "data-testid": suggestion[desc] }, suggestion[desc])));
15
+ react_1.default.createElement("div", { key: idx, className: "qbs-autocomplete-suggestions-item ".concat(isSelected(suggestion, selected) ? 'is-selected' : ''), onClick: function () { return handleSuggestionClick(suggestion); }, "data-testid": suggestion[desc] }, suggestion[desc])));
16
16
  };
17
17
  exports.default = DropdownList;
18
18
  //# sourceMappingURL=DropdownList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownList.js","sourceRoot":"","sources":["../../src/components/DropdownList.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAa1B,IAAM,YAAY,GAAyB,UAAC,EAU3C;QATC,GAAG,SAAA,EACH,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,qBAAqB,2BAAA,EACrB,iBAAiB,uBAAA,EACjB,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,YAAY,kBAAA,EACZ,IAAI,UAAA;IAEJ,OAAO,CACL,uCACE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,EACnB,SAAS,EAAE,+CACT,CAAC,UAAU,IAAI,YAAY,CAAC,IAAI,qCAAqC,cACnE,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAE;QAE1D,CAAC,UAAU,IAAI,YAAY,CAAC,IAAI,CAC/B,uCAAK,SAAS,EAAC,2BAA2B;YACxC,yCACE,QAAQ,EAAE,UAAC,CAAC,IAAK,OAAA,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC,EAAhC,CAAgC,EACjD,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,EACzC,EAAE,EAAE,uBAAgB,GAAG,CAAC,QAAQ,EAAE,CAAE,GACpC;YACF,yCAAO,OAAO,EAAE,uBAAgB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IAAK,OAAA,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC,EAAhC,CAAgC,EACjD,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,EACzC,EAAE,EAAE,uBAAgB,GAAG,CAAC,QAAQ,EAAE,CAAE,GACpC;YACF,yCAAO,OAAO,EAAE,uBAAgB,GAAG,CAAC,QAAQ,EAAE,CAAE;gBAC9C,uCACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,GAAG,EACV,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;oBAElC,wCACE,CAAC,EAAC,qFAAqF,EACvF,IAAI,EAAC,OAAO,GACZ,CACE,CACA,CACJ,CACP;QACD,uCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,4CACT,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CACrD,EACF,OAAO,EAAE,cAAM,OAAA,qBAAqB,CAAC,UAAU,CAAC,EAAjC,CAAiC,iBACnC,UAAU,CAAC,IAAI,CAAC,IAE5B,UAAU,CAAC,IAAI,CAAC,CACb,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -3,6 +3,7 @@ type ValueProps = {
3
3
  inputValue: string;
4
4
  searchValue: string;
5
5
  dropOpen: boolean;
6
+ countOnly?: boolean;
6
7
  handleDropOpen: (e: any) => void;
7
8
  handleDropClose: (e: any) => void;
8
9
  disabled: boolean;
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
7
  var icons_1 = require("../utilities/icons");
8
8
  var InputActions = function (_a) {
9
- var inputValue = _a.inputValue, searchValue = _a.searchValue, dropOpen = _a.dropOpen, handleDropOpen = _a.handleDropOpen, handleDropClose = _a.handleDropClose, disabled = _a.disabled, readOnly = _a.readOnly, expandable = _a.expandable, handleClear = _a.handleClear;
9
+ var inputValue = _a.inputValue, searchValue = _a.searchValue, dropOpen = _a.dropOpen, handleDropOpen = _a.handleDropOpen, handleDropClose = _a.handleDropClose, disabled = _a.disabled, readOnly = _a.readOnly, expandable = _a.expandable, handleClear = _a.handleClear, countOnly = _a.countOnly;
10
10
  return (react_1.default.createElement("div", { className: "qbs-autocomplete-close-icon" },
11
- (inputValue || searchValue) && !disabled && !readOnly && !expandable && (react_1.default.createElement("button", { onClick: handleClear, className: "icon-button", "aria-label": "clear" },
11
+ (inputValue || searchValue) && !disabled && !readOnly && !expandable && !countOnly && (react_1.default.createElement("button", { onClick: handleClear, className: "icon-button", "aria-label": "clear" },
12
12
  react_1.default.createElement(icons_1.Close, null))),
13
13
  dropOpen ? (react_1.default.createElement("button", { type: "button", onClick: function (e) { return handleDropClose(e); }, className: "icon-button", "aria-label": "toggle", name: "toggle" },
14
14
  react_1.default.createElement(icons_1.DropArrow, { className: "icon-button-rotate" }))) : (react_1.default.createElement("button", { disabled: disabled || readOnly, type: "button", className: "icon-button", onClick: function (e) { return handleDropOpen(e); }, "aria-label": "toggle", name: "toggle" },
@@ -1 +1 @@
1
- {"version":3,"file":"InputActions.js","sourceRoot":"","sources":["../../src/components/InputActions.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,4CAAsD;AAatD,IAAM,YAAY,GAAyB,UAAC,EAU3C;QATC,UAAU,gBAAA,EACV,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,cAAc,oBAAA,EACd,eAAe,qBAAA,EACf,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,WAAW,iBAAA;IAEX,OAAO,CACL,uCAAK,SAAS,EAAC,6BAA6B;QACzC,CAAC,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,IAAI,CACvE,0CACE,OAAO,EAAE,WAAW,EACpB,SA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,OAAG,CACF,CACV;QACA,QAAQ,CAAC,CAAC,CAAC,CACV,0CACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,UAAC,CAAC,IAAK,OAAA,eAAe,CAAC,CAAC,CAAC,EAAlB,CAAkB,EAClC,SAAS,EAAC,aAAa,gBACZ,QAAQ,EACnB,IAAI,EAAC,QAAQ;YAEb,8BAAC,iBAAS,IAAC,SAAS,EAAE,oBAAoB,GAAI,CACvC,CACV,CAAC,CAAC,CAAC,CACF,0CACE,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,UAAC,CAAC,IAAK,OAAA,cAAc,CAAC,CAAC,CAAC,EAAjB,CAAiB,gBACtB,QAAQ,EACnB,IAAI,EAAC,QAAQ;YAEb,8BAAC,iBAAS,OAAG,CACN,CACV,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { default as AutoComplete, default as CustomAutoComplete, } from "./AutoC
3
3
  export { default as AutoCompleteWithTreeStructure } from "./AutoCompleteWithTreeStructure";
4
4
  export type { AutoSuggestionInputProps } from "./commontypes";
5
5
  export { default as ExpandableAutoComplete } from "./ExpandableAutoComplete";
6
+ export { default as AutoCompleteWithSelectedList } from "./AutoCompleteWithSelectedList";
6
7
  export { deepEqual } from "./utilities/deepEqual";
7
8
  export { default as ExpandableToolTip } from "./utilities/expandableTootltip";
8
9
  export { default as ToolTip } from "./utilities/tooltip";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ToolTip = exports.ExpandableToolTip = exports.deepEqual = exports.ExpandableAutoComplete = exports.AutoCompleteWithTreeStructure = exports.CustomAutoComplete = exports.AutoComplete = void 0;
6
+ exports.ToolTip = exports.ExpandableToolTip = exports.deepEqual = exports.AutoCompleteWithSelectedList = exports.ExpandableAutoComplete = exports.AutoCompleteWithTreeStructure = exports.CustomAutoComplete = exports.AutoComplete = void 0;
7
7
  require("./styles/global.css");
8
8
  var AutoComplete_1 = require("./AutoComplete");
9
9
  Object.defineProperty(exports, "AutoComplete", { enumerable: true, get: function () { return __importDefault(AutoComplete_1).default; } });
@@ -12,6 +12,8 @@ var AutoCompleteWithTreeStructure_1 = require("./AutoCompleteWithTreeStructure")
12
12
  Object.defineProperty(exports, "AutoCompleteWithTreeStructure", { enumerable: true, get: function () { return __importDefault(AutoCompleteWithTreeStructure_1).default; } });
13
13
  var ExpandableAutoComplete_1 = require("./ExpandableAutoComplete");
14
14
  Object.defineProperty(exports, "ExpandableAutoComplete", { enumerable: true, get: function () { return __importDefault(ExpandableAutoComplete_1).default; } });
15
+ var AutoCompleteWithSelectedList_1 = require("./AutoCompleteWithSelectedList");
16
+ Object.defineProperty(exports, "AutoCompleteWithSelectedList", { enumerable: true, get: function () { return __importDefault(AutoCompleteWithSelectedList_1).default; } });
15
17
  var deepEqual_1 = require("./utilities/deepEqual");
16
18
  Object.defineProperty(exports, "deepEqual", { enumerable: true, get: function () { return deepEqual_1.deepEqual; } });
17
19
  var expandableTootltip_1 = require("./utilities/expandableTootltip");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+BAA6B;AAE7B,+CAGwB;AAFtB,6HAAA,OAAO,OAAgB;AACvB,mIAAA,OAAO,OAAsB;AAE/B,iFAA2F;AAAlF,+JAAA,OAAO,OAAiC;AAEjD,mEAA6E;AAApE,iJAAA,OAAO,OAA0B;AAC1C,mDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,qEAA8E;AAArE,wIAAA,OAAO,OAAqB;AACrC,+CAAyD;AAAhD,mHAAA,OAAO,OAAW"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+BAA6B;AAE7B,+CAGwB;AAFtB,6HAAA,OAAO,OAAgB;AACvB,mIAAA,OAAO,OAAsB;AAE/B,iFAA2F;AAAlF,+JAAA,OAAO,OAAiC;AAEjD,mEAA6E;AAApE,iJAAA,OAAO,OAA0B;AAC1C,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC;AAChD,mDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,qEAA8E;AAArE,wIAAA,OAAO,OAAqB;AACrC,+CAAyD;AAAhD,mHAAA,OAAO,OAAW"}
@@ -53,3 +53,11 @@
53
53
  flex-direction: column; /* Corresponds to flex-col in Tailwind */
54
54
  gap: 0.5rem; /* Corresponds to gap-2 in Tailwind */
55
55
  }
56
+ .qbs-tree-list-container-sub-text {
57
+ line-height: 18px; /* Corresponds to leading-[18px] in Tailwind */
58
+ font-size: 14px; /* Corresponds to text-sm in Tailwind (14px) */
59
+ font-weight: 500;
60
+ letter-spacing: 0.28px;
61
+ font-family: 'Noto Sans';
62
+ color: #3d414a;
63
+ }
@@ -0,0 +1,602 @@
1
+ body * {
2
+ box-sizing: border-box;
3
+ }
4
+ :root {
5
+ --grey-dark: #4a4a4a;
6
+ --grey-light: #d3d3d3;
7
+ --blue-navy: #001f3f;
8
+ --input-disabled: #a9a9a9;
9
+ --error-light: #f08080;
10
+ --error-extra-light: #fddede;
11
+ --success: #28a745;
12
+ --success-light: #d4edda;
13
+ --blue-light: #add8e6;
14
+ }
15
+ :root {
16
+ --blue-navy: #001f3f;
17
+ --table-hover: #your-hover-color; /* Replace with your actual color code */
18
+ }
19
+
20
+ .custom-spinner {
21
+ width: 24px !important; /* w-6 */
22
+ height: 24px; /* h-6 */
23
+ color: transparent; /* text-table-hover */
24
+ fill: var(--blue-navy); /* fill-blue-navy */
25
+ animation: spin 1s linear infinite; /* animate-spin */
26
+ width: 15px;
27
+ position: relative;
28
+ top: 1px;
29
+ }
30
+
31
+ @keyframes spin {
32
+ 0% {
33
+ transform: rotate(0deg);
34
+ }
35
+ 100% {
36
+ transform: rotate(360deg);
37
+ }
38
+ }
39
+
40
+ .textfield,
41
+ .textfield-big {
42
+ outline: none;
43
+ color: var(--grey-dark);
44
+ border-color: var(--grey-light);
45
+ background-color: white;
46
+ }
47
+
48
+ .textfield:focus,
49
+ .textfield-big:focus {
50
+ border-color: var(--blue-navy);
51
+ }
52
+
53
+ .textfield:disabled,
54
+ .textfield-big:disabled {
55
+ color: var(--input-disabled);
56
+ }
57
+
58
+ .textfield-error,
59
+ .textfield-big-error {
60
+ outline: none;
61
+ color: var(--error-light) !important;
62
+ border-color: var(--error-light) !important;
63
+ background-color: var(--error-extra-light) !important ;
64
+ }
65
+
66
+ .textfield-error::placeholder,
67
+ .textfield-big-error::placeholder {
68
+ color: var(--error-light);
69
+ }
70
+
71
+ .textfield-success {
72
+ outline: none;
73
+ color: var(--success);
74
+ border-color: var(--success);
75
+ background-color: var(--success-light);
76
+ }
77
+
78
+ .textfield-success:focus {
79
+ ring-width: 0;
80
+ }
81
+
82
+ .textfield-success::placeholder {
83
+ color: var(--success);
84
+ }
85
+
86
+ .textfield-editable {
87
+ outline: none;
88
+ color: var(--grey-dark);
89
+ border-color: var(--blue-navy);
90
+ background-color: var(--blue-light);
91
+ }
92
+
93
+ .textfield-editable::placeholder {
94
+ color: var(--grey-dark);
95
+ }
96
+
97
+ .qbs-autocomplete-suggestions {
98
+ position: absolute;
99
+ height: auto;
100
+ width: 100%;
101
+ padding: 8px; /* Corresponding to p-1.5 in Tailwind */
102
+ z-index: 99;
103
+ margin-top: 4px;
104
+ margin-bottom: 0;
105
+ border-radius: 8px;
106
+ background: #fff;
107
+ box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
108
+ }
109
+ .qbs-autocomplete-suggestions.bottom {
110
+ top: 100%; /* Position below the input */
111
+ /* Other styling */
112
+ }
113
+
114
+ .qbs-autocomplete-suggestions.top {
115
+ bottom: 100%; /* Position above the input */
116
+ /* Other styling */
117
+ }
118
+ .qbs-autocomplete-suggestions-item {
119
+ cursor: pointer;
120
+ padding: 6px 8px;
121
+ border-radius: 6px;
122
+ color: #222;
123
+ font-size: 14px;
124
+ font-weight: 500;
125
+ line-height: 20px; /* 142.857% */
126
+ width: 100%;
127
+ display: flex;
128
+ align-items: flex-start;
129
+ gap: 8px;
130
+ }
131
+ .qbs-autocomplete-suggestions-item:hover {
132
+ background: #f8f8f8;
133
+ border-radius: 6px;
134
+ }
135
+
136
+ /* When value.id is equal to suggestion.id */
137
+ .is-selected {
138
+ border-radius: 6px;
139
+ background: var(--neutrals-grey-20, #f4f4f4);
140
+ }
141
+
142
+ /* When value.id is NOT equal to suggestion.id */
143
+ .qbs-autocomplete-suggestions-item .is-not-selected:hover {
144
+ background-color: #f1f5f9; /* Replace with actual color code for 'hover:bg-table-hover' */
145
+ }
146
+
147
+ .qbs-autocomplete-notfound {
148
+ cursor: pointer;
149
+ padding: 6px 8px;
150
+ border-radius: 6px;
151
+ font-size: 12px;
152
+ font-weight: 500;
153
+ }
154
+
155
+ .qbs-autocomplete-close-icon {
156
+ position: absolute;
157
+ top: calc(50% - 7px);
158
+ right: 2px; /* right-1 */
159
+ padding-left: 0.25rem; /* px-1 */
160
+ padding-right: 0.25rem; /* px-1 */
161
+ display: flex;
162
+ justify-content: center;
163
+ align-items: center;
164
+ background-color: white; /* bg-white */
165
+ }
166
+ .qbs-textfield-default {
167
+ width: 100%;
168
+ position: relative;
169
+ padding-right: 8px;
170
+ min-height: 36px;
171
+ height: 36px;
172
+ border-radius: 6px;
173
+ padding-left: 8px;
174
+ border: 1px solid #d6d8dc;
175
+ background: #fff;
176
+ box-sizing: border-box;
177
+ font-size: 14px;
178
+ font-style: normal;
179
+ font-weight: 500;
180
+ line-height: 20px;
181
+ color: #313131;
182
+ }
183
+
184
+ .qbs-expandable-container {
185
+ border: 1px solid #d6d8dc;
186
+ background: #fff;
187
+ box-sizing: border-box;
188
+ padding: 5px;
189
+ display: flex;
190
+ flex-wrap: wrap;
191
+ flex: 1 1 0%;
192
+ gap: 5px;
193
+ }
194
+
195
+ .qbs-dropdown-selected-container {
196
+ border: 0px;
197
+ border-top: 1px solid #d6d8dc;
198
+ min-height: 35px;
199
+ margin-top: 2px;
200
+ padding-top: 10px;
201
+ }
202
+
203
+ .qbs-dropdown-selected-container .qbs-clear-link {
204
+ color: #e76458;
205
+ }
206
+
207
+ .qbs-textfield-default.expandable {
208
+ height: auto;
209
+ border: none;
210
+ }
211
+
212
+ .qbs-expandable-container .qbs-textfield-expandable {
213
+ flex: 1 1 auto;
214
+ display: inline-grid;
215
+ grid-template-columns: 0px min-content;
216
+ grid-area: 1 / 1 / 2 / 3;
217
+ overflow: hidden;
218
+ }
219
+ .qbs-expandable-container .qbs-textfield-expandable::after {
220
+ content: attr(data-value) ' ';
221
+ visibility: hidden;
222
+ white-space: pre;
223
+ grid-area: 1 / 2;
224
+ font: inherit;
225
+ min-width: 2px;
226
+ border: 0px;
227
+ margin: 0px;
228
+ outline: 0px;
229
+ padding: 0px;
230
+ }
231
+ .qbs-expandable-container .qbs-textfield-expandable input {
232
+ opacity: 1;
233
+ width: auto;
234
+ grid-area: 1 / 2;
235
+ min-width: 10px;
236
+ border: 0px;
237
+ margin: 0px;
238
+ outline: 0px;
239
+ padding: 0px;
240
+ height: auto;
241
+ min-height: auto;
242
+ border-radius: 0;
243
+ }
244
+
245
+ .qbs-textfield-default::placeholder {
246
+ font-size: 14px;
247
+ font-style: normal;
248
+ font-weight: 500;
249
+ line-height: 20px;
250
+ }
251
+
252
+ .qbs-autocomplete-close-icon button:focus-within {
253
+ outline: none;
254
+ }
255
+
256
+ .fullWidth {
257
+ width: 100%;
258
+ }
259
+
260
+ .autoWidth {
261
+ width: auto;
262
+ }
263
+ .icon-button {
264
+ background: transparent;
265
+ border: none;
266
+ display: inline-flex;
267
+ cursor: pointer;
268
+ padding: 0px 1px;
269
+ }
270
+ .icon-button-rotate{
271
+ rotate: 180deg;
272
+ }
273
+ .labels {
274
+ font-size: 12px;
275
+ }
276
+ .dropdown-search-input {
277
+ min-width: -webkit-fill-available;
278
+ border-radius: 6px;
279
+ border: 1px solid var(--border-card-color-default, #d6d8dc);
280
+ background: var(--surface-input-bg-color-default, #fff);
281
+ color: #313131;
282
+ font-size: 14px;
283
+ height: 36px;
284
+ padding: 0px 8px;
285
+ font-style: normal;
286
+ font-weight: 500;
287
+ line-height: 20px;
288
+ padding-left: 32px;
289
+ }
290
+ .qbs-autocomplete-suggestions-sub {
291
+ position: relative;
292
+ overflow: auto;
293
+ max-height: 184px;
294
+ top: 0;
295
+ display: flex;
296
+ flex-direction: column;
297
+ gap: 4px;
298
+ }
299
+ .qbs-autocomplete-listitem-container {
300
+ display: flex;
301
+ align-items: center;
302
+ gap: 0px;
303
+ }
304
+ ul {
305
+ list-style-type: none;
306
+ }
307
+
308
+ .react-core-ts-search-container {
309
+ display: flex;
310
+ align-items: center;
311
+ gap: var(--spacing-4, 4px);
312
+ align-self: stretch;
313
+ margin-bottom: 4px;
314
+ }
315
+ .selected-item {
316
+ display: flex;
317
+ align-items: center;
318
+ justify-content: space-between;
319
+ padding: 3px 6px;
320
+ margin: 0;
321
+ background-color: #e0e0e0;
322
+ color: #333;
323
+ border-radius: 6px;
324
+ border: 1px solid rgba(231, 100, 88, 0.1);
325
+ background: rgba(231, 100, 88, 0.1);
326
+ font-size: 12px;
327
+ font-style: normal;
328
+ font-weight: 500;
329
+ line-height: 16px;
330
+ color: #e76458;
331
+ gap: 6px;
332
+ height: 22px;
333
+ }
334
+
335
+ .remove-item-btn {
336
+ background-color: transparent;
337
+ border: none;
338
+ color: #e76458;
339
+ cursor: pointer;
340
+ }
341
+
342
+ .remove-item-btn:hover {
343
+ color: #e76458;
344
+ }
345
+
346
+ .selected-items-container {
347
+ display: flex;
348
+ gap: 12px;
349
+ align-items: center;
350
+ position: absolute;
351
+ left: 8px;
352
+ z-index: 99;
353
+ top: 6.5px;
354
+ flex-wrap: wrap;
355
+ }
356
+
357
+ .qbs-expandable-container .selected-items-container {
358
+ position: relative;
359
+ top: 0;
360
+ left: 0;
361
+ }
362
+
363
+ .selected-items-container .badge {
364
+ background-color: #c63a3a;
365
+ color: #fff;
366
+ }
367
+
368
+ .selected-item-more {
369
+ display: flex;
370
+ align-items: center;
371
+ justify-content: center;
372
+ padding: 3px 8px;
373
+ margin: 0;
374
+ border-radius: 6px;
375
+ background: #c63a3a;
376
+ font-size: 12px;
377
+ font-style: normal;
378
+ font-weight: 500;
379
+ line-height: 16px;
380
+ color: #fff;
381
+ height: 22px;
382
+ }
383
+
384
+ .loadMoreSection {
385
+ margin: 0;
386
+ cursor: pointer;
387
+ display: flex;
388
+ justify-content: flex-start;
389
+ padding: 8px;
390
+ }
391
+ .loadMoreSection p {
392
+ color: #336cfc;
393
+ font-size: 14px;
394
+ font-style: normal;
395
+ font-weight: 500;
396
+ line-height: 20px;
397
+ margin: 0;
398
+ }
399
+ ::-webkit-scrollbar-track {
400
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
401
+ border-radius: 0px;
402
+ background-color: transparent;
403
+ }
404
+
405
+ ::-webkit-scrollbar {
406
+ width: 6px;
407
+ height: 4px;
408
+ background-color: transparent;
409
+ }
410
+
411
+ ::-webkit-scrollbar-thumb {
412
+ border-radius: 100px;
413
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
414
+ background-color: #ddd;
415
+ }
416
+
417
+ .qbs-autocomplete-suggestions-item.is-selected {
418
+ color: #e76458;
419
+ background: #f8f8f8;
420
+ }
421
+
422
+ span.dropdown-search-icon {
423
+ position: absolute;
424
+ left: 8px;
425
+ top: 10px;
426
+ }
427
+
428
+ .dropdown-search-input:focus {
429
+ outline: none;
430
+ border: 1px solid #222;
431
+ }
432
+
433
+ .qbs-autocomplete-checkbox-container {
434
+ gap: 8px;
435
+ padding: 6px 8px;
436
+ display: flex;
437
+ align-items: flex-start;
438
+ }
439
+
440
+ .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
441
+ padding: 0;
442
+ /* pointer-events: none; */
443
+ }
444
+
445
+ .qbs-autocomplete-checkbox-container:hover {
446
+ background: #f8f8f8;
447
+ border-radius: 6px;
448
+ }
449
+
450
+ .qbs-autocomplete-checkbox-container.is-selected {
451
+ background: #f8f8f8;
452
+ border-radius: 6px;
453
+ }
454
+
455
+ .qbs-autocomplete-checkbox {
456
+ position: relative;
457
+ display: flex;
458
+ align-items: center;
459
+ justify-content: center;
460
+ }
461
+
462
+ .qbs-autocomplete-checkbox input {
463
+ opacity: 0;
464
+ }
465
+
466
+ .qbs-autocomplete-checkbox input ~ label {
467
+ position: absolute;
468
+ border-radius: 3px;
469
+ border: 1px solid #999696;
470
+ width: 16px;
471
+ height: 16px;
472
+ top: 3px;
473
+ transition: all 0.2s ease;
474
+ cursor: pointer;
475
+ }
476
+
477
+ .qbs-autocomplete-checkbox input ~ label svg {
478
+ opacity: 0;
479
+ transition: all 0.2s ease;
480
+ position: absolute;
481
+ left: 3px;
482
+ top: 3px;
483
+ width: 9px;
484
+ height: 9px;
485
+ }
486
+
487
+ .qbs-autocomplete-checkbox input:checked ~ label {
488
+ transition: all 0.2s ease;
489
+ border-radius: 3px;
490
+ background: #e76458;
491
+ border-color: #e76458;
492
+ }
493
+ .qbs-autocomplete-checkbox input:checked ~ label svg {
494
+ opacity: 1;
495
+ transition: all 0.2s ease;
496
+ }
497
+
498
+ .action_label {
499
+ font-size: 14px;
500
+ color: #4c7ad6;
501
+ }
502
+ /* Tooltip.css */
503
+ /* .tooltip-wrapper {
504
+ position: relative;
505
+ display: inline-block;
506
+ }
507
+
508
+ .tooltip-content {
509
+ visibility: hidden;
510
+ width: max-content;
511
+ background-color: black;
512
+ color: white;
513
+ text-align: center;
514
+ max-width: 150px;
515
+ padding: 5px 10px;
516
+ border-radius: 6px;
517
+ position: absolute;
518
+ z-index: 1;
519
+ bottom: 125%;
520
+ left: 50%;
521
+ transform: translateX(-50%);
522
+ transition: visibility 0.2s ease-in-out;
523
+ }
524
+
525
+ .tooltip-content::after {
526
+ content: '';
527
+ position: absolute;
528
+ top: 100%;
529
+ left: 50%;
530
+ margin-left: -5px;
531
+ border-width: 5px;
532
+ border-style: solid;
533
+ border-color: black transparent transparent transparent;
534
+ }
535
+
536
+ .tooltip-wrapper:hover .tooltip-content {
537
+ visibility: visible;
538
+ } */
539
+ .qbs-table-tooltip {
540
+ position: relative;
541
+ display: contents;
542
+ cursor: pointer;
543
+ }
544
+
545
+ .qbs-table-tooltip .tooltiptext,
546
+ .tooltiptext {
547
+ visibility: hidden;
548
+ background-color: #000;
549
+ color: #fff;
550
+ text-align: center;
551
+ padding: 6px;
552
+ border-radius: 4px;
553
+ position: absolute;
554
+ z-index: 9999;
555
+ opacity: 0;
556
+ transition: opacity 0.3s;
557
+ font-size: 14px;
558
+ font-style: normal;
559
+ font-weight: 400;
560
+ line-height: 16px;
561
+ max-width: 300px;
562
+ }
563
+
564
+ .qbs-table-tooltip.up .tooltiptext {
565
+ bottom: 125%;
566
+ left: 0%;
567
+ }
568
+
569
+ .qbs-table-tooltip.down .tooltiptext {
570
+ top: 125%;
571
+ right: 0px;
572
+ left: auto;
573
+ }
574
+
575
+ .qbs-table-tooltip:hover .tooltiptext {
576
+ visibility: visible;
577
+ opacity: 1;
578
+ }
579
+
580
+ .qbs-table-tooltip .tooltiptext::after,
581
+ .tooltiptext::after {
582
+ content: '';
583
+ position: absolute;
584
+ border-width: 5px;
585
+ border-style: solid;
586
+ }
587
+
588
+ .qbs-table-tooltip.up .tooltiptext::after,
589
+ .up.tooltiptext::after {
590
+ top: 100%;
591
+ left: 50%;
592
+ margin-left: -5px;
593
+ border-color: #000 transparent transparent transparent;
594
+ }
595
+
596
+ .qbs-table-tooltip.down .tooltiptext::after,
597
+ .down.tooltiptext::after {
598
+ bottom: 100%;
599
+ left: 50%;
600
+ margin-left: -5px;
601
+ border-color: transparent transparent #000 transparent;
602
+ }