hplx-feature-library 1.0.170 → 1.0.172

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 (168) hide show
  1. package/dist/AllInvestigations/index.js +1 -1
  2. package/dist/AllInvestigationsTable-C3aTtdGN.cjs +79 -0
  3. package/dist/{AllInvestigationsTable-Dj3AKVVv.js → AllInvestigationsTable-C7jrmW8z.js} +6145 -5857
  4. package/dist/Attachments/components/document-canvas/document-pen-tool.d.ts +1 -1
  5. package/dist/Attachments/components/drag-drop-overlay.d.ts +1 -1
  6. package/dist/Attachments/components/edit-document-modal.d.ts +1 -1
  7. package/dist/Attachments/components/uploading-toast.d.ts +1 -1
  8. package/dist/Attachments/context/index.d.ts +2 -2
  9. package/dist/Attachments/hooks/useDropdownPosition.d.ts +1 -1
  10. package/dist/Attachments/index.js +12015 -10605
  11. package/dist/CameraCapture/index.d.ts +1 -1
  12. package/dist/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +1 -1
  13. package/dist/PediatricsCalculator/index.js +1 -1
  14. package/dist/PediatricsCalculatorTable-Be2H_OXh.js +2156 -0
  15. package/dist/PediatricsCalculatorTable-fk_QinWG.cjs +40 -0
  16. package/dist/ReusableTable/context/TableContextBase.d.ts +1 -1
  17. package/dist/TrendGraphs/context/index.d.ts +1 -1
  18. package/dist/components/{customDropdown/CustomDropdown.d.ts → CustomDropdown.d.ts} +2 -2
  19. package/dist/components/{toggleButtons/ToggleButtons.d.ts → ToggleButtons.d.ts} +1 -1
  20. package/dist/hplx-feature-library.css +1 -1
  21. package/dist/index-4whwJbrk.js +6867 -0
  22. package/dist/index-C6KQLMQs.cjs +92 -0
  23. package/dist/index.d.ts +0 -4
  24. package/dist/index.js +4 -12
  25. package/dist/types/AllInvestigationTypes.d.ts +0 -2
  26. package/package.json +6 -51
  27. package/dist/APIAction--DyoXs57.js +0 -3752
  28. package/dist/APIAction-B5XQnkiF.cjs +0 -9
  29. package/dist/AlertPopup/index.js +0 -79
  30. package/dist/AllInvestigationsTable-aw_zEJj_.cjs +0 -79
  31. package/dist/CustomDropdown/index.js +0 -256
  32. package/dist/DateTimePicker/DateAndTimePicker/index.js +0 -5930
  33. package/dist/PatientAddEdit/index.js +0 -1662
  34. package/dist/PatientPopup/action/APIAction.d.ts +0 -65
  35. package/dist/PatientPopup/app/PatientPopupContainer.d.ts +0 -6
  36. package/dist/PatientPopup/app/PatientPopupContext.d.ts +0 -30
  37. package/dist/PatientPopup/common/common.d.ts +0 -14
  38. package/dist/PatientPopup/components/Lab/HPLXLab.d.ts +0 -8
  39. package/dist/PatientPopup/components/Lab/LISLab.d.ts +0 -8
  40. package/dist/PatientPopup/components/Lab/LabTable.d.ts +0 -5
  41. package/dist/PatientPopup/components/Lab/index.d.ts +0 -5
  42. package/dist/PatientPopup/components/Loader/Loader.d.ts +0 -2
  43. package/dist/PatientPopup/components/Pagination.d.ts +0 -9
  44. package/dist/PatientPopup/components/Profile/Abha.d.ts +0 -11
  45. package/dist/PatientPopup/components/Profile/PatientDetailsModal.d.ts +0 -1
  46. package/dist/PatientPopup/components/Profile/Profile.d.ts +0 -11
  47. package/dist/PatientPopup/components/Profile/Sms.d.ts +0 -2
  48. package/dist/PatientPopup/components/Visits/Table.d.ts +0 -11
  49. package/dist/PatientPopup/components/Visits/index.d.ts +0 -15
  50. package/dist/PatientPopup/components/addBills/AddBillFooter.d.ts +0 -2
  51. package/dist/PatientPopup/components/addBills/AddBills.d.ts +0 -5
  52. package/dist/PatientPopup/components/addBills/AddBillsTable.d.ts +0 -17
  53. package/dist/PatientPopup/components/addBills/DropDown.d.ts +0 -15
  54. package/dist/PatientPopup/components/appointment/AllAppts.d.ts +0 -8
  55. package/dist/PatientPopup/components/appointment/Appointment.d.ts +0 -2
  56. package/dist/PatientPopup/components/appointment/AppointmentsTable.d.ts +0 -10
  57. package/dist/PatientPopup/components/bills/Bills.d.ts +0 -6
  58. package/dist/PatientPopup/components/bills/BillsTable.d.ts +0 -11
  59. package/dist/PatientPopup/components/deposit/DepositSection.d.ts +0 -9
  60. package/dist/PatientPopup/components/mainNavItem/MainNavItem.d.ts +0 -13
  61. package/dist/PatientPopup/components/patientPopupBody/PatientPopupBody.d.ts +0 -8
  62. package/dist/PatientPopup/components/patientPopupHeader/PatientPopupHeader.d.ts +0 -10
  63. package/dist/PatientPopup/components/patientPopupSummary/BillSummary.d.ts +0 -19
  64. package/dist/PatientPopup/components/patientPopupSummary/ConsultationDetails.d.ts +0 -14
  65. package/dist/PatientPopup/components/patientPopupSummary/DeleteItem.d.ts +0 -11
  66. package/dist/PatientPopup/components/patientPopupSummary/DepositRefundSummary.d.ts +0 -8
  67. package/dist/PatientPopup/components/patientPopupSummary/LabServiceDetails.d.ts +0 -13
  68. package/dist/PatientPopup/components/patientPopupSummary/OtherServiceDetails.d.ts +0 -13
  69. package/dist/PatientPopup/components/patientPopupSummary/PatientPopupSummary.d.ts +0 -8
  70. package/dist/PatientPopup/components/patientPopupSummary/PaymentCard.d.ts +0 -25
  71. package/dist/PatientPopup/components/patientPopupSummary/ServiceLevelBillSummary.d.ts +0 -18
  72. package/dist/PatientPopup/components/payments/DepositRefundTable.d.ts +0 -14
  73. package/dist/PatientPopup/components/payments/OtherServicesTable.d.ts +0 -16
  74. package/dist/PatientPopup/components/payments/PaymentEditModal.d.ts +0 -15
  75. package/dist/PatientPopup/components/payments/PaymentHeader.d.ts +0 -7
  76. package/dist/PatientPopup/components/payments/Payments.d.ts +0 -5
  77. package/dist/PatientPopup/components/payments/PaymentsTable.d.ts +0 -14
  78. package/dist/PatientPopup/constants/AppConstants.d.ts +0 -123
  79. package/dist/PatientPopup/index.d.ts +0 -1
  80. package/dist/PatientPopup/index.js +0 -135376
  81. package/dist/PatientPopup/types/hplxAPITypes.d.ts +0 -37
  82. package/dist/PatientPopup/utils/PrintFontLoader.d.ts +0 -4
  83. package/dist/PatientPopup/utils/helperFunctions.d.ts +0 -3
  84. package/dist/PediatricsCalculatorTable-CTA61g3h.cjs +0 -1
  85. package/dist/PediatricsCalculatorTable-QgonqxbR.js +0 -833
  86. package/dist/ReusableModal-CIgDYOWZ.cjs +0 -1
  87. package/dist/ReusableModal-pSi21hnc.js +0 -29
  88. package/dist/Subscription/components/SubscriptionBadge.d.ts +0 -2
  89. package/dist/ToggleButtons/index.js +0 -17
  90. package/dist/changePasswordModal/APIAction/APIActions.d.ts +0 -8
  91. package/dist/changePasswordModal/component/ChangePasswordModal.d.ts +0 -14
  92. package/dist/clsx-C11secjj.cjs +0 -1
  93. package/dist/clsx-OuTLNxxd.js +0 -16
  94. package/dist/common/APIAction/APIAction.d.ts +0 -28
  95. package/dist/common/components/BorderFullWidth.d.ts +0 -2
  96. package/dist/common/components/table/ExistingPatients.d.ts +0 -17
  97. package/dist/common/editRibbon/EditRibbon.d.ts +0 -9
  98. package/dist/common/utils/NetworkInstance.d.ts +0 -4
  99. package/dist/common/utils/common-utils.d.ts +0 -36
  100. package/dist/components/PatientAddEdit.d.ts +0 -3
  101. package/dist/components/alertPopup/index.d.ts +0 -1
  102. package/dist/components/customDropdown/index.d.ts +0 -1
  103. package/dist/components/dateTimePicker/DateAndTimePicker.d.ts +0 -21
  104. package/dist/components/dateTimePicker/index.d.ts +0 -1
  105. package/dist/components/toggleButtons/index.d.ts +0 -1
  106. package/dist/constants/CommonConstant.d.ts +0 -70
  107. package/dist/dayjs.min-BbV4duaj.js +0 -284
  108. package/dist/dayjs.min-DXp74Ozx.cjs +0 -1
  109. package/dist/fonts/AnekMalayalam-Bold.ttf +0 -0
  110. package/dist/fonts/AnekMalayalam-Regular.ttf +0 -0
  111. package/dist/fonts/Arial-Bold-Italic.ttf +0 -0
  112. package/dist/fonts/Arial-Bold.ttf +0 -0
  113. package/dist/fonts/Arial-Italic.ttf +0 -0
  114. package/dist/fonts/Arial.ttf +0 -0
  115. package/dist/fonts/IndianRupee.ttf +0 -0
  116. package/dist/fonts/MuktaMaheePunjabi-Bold.ttf +0 -0
  117. package/dist/fonts/MuktaMaheePunjabi-Regular.ttf +0 -0
  118. package/dist/fonts/Noto-Sans-Telugu-Bold.ttf +0 -0
  119. package/dist/fonts/Noto-Sans-Telugu-Regular.ttf +0 -0
  120. package/dist/fonts/NotoNastaliqUrdu-Bold.ttf +0 -0
  121. package/dist/fonts/NotoNastaliqUrdu-Regular.ttf +0 -0
  122. package/dist/fonts/NotoSansArabic-Bold.ttf +0 -0
  123. package/dist/fonts/NotoSansArabic.ttf +0 -0
  124. package/dist/fonts/NotoSansHindi-Bold.ttf +0 -0
  125. package/dist/fonts/NotoSansHindi.ttf +0 -0
  126. package/dist/fonts/NotoSansKannada-Bold.ttf +0 -0
  127. package/dist/fonts/NotoSansKannada.ttf +0 -0
  128. package/dist/fonts/NotoSansOriya-Bold.ttf +0 -0
  129. package/dist/fonts/NotoSansOriya.ttf +0 -0
  130. package/dist/fonts/NotoSansTamil-Bold.ttf +0 -0
  131. package/dist/fonts/NotoSansTamil.ttf +0 -0
  132. package/dist/fonts/NotoSerifGujarati-Bold.ttf +0 -0
  133. package/dist/fonts/NotoSerifGujarati-Regular.ttf +0 -0
  134. package/dist/fonts/Roboto-Regular.ttf +0 -0
  135. package/dist/fonts/Times-Bold-Italic.ttf +0 -0
  136. package/dist/fonts/Times-Bold.ttf +0 -0
  137. package/dist/fonts/Times-Italic.ttf +0 -0
  138. package/dist/fonts/Times.ttf +0 -0
  139. package/dist/fonts/TiroBangla-Bold.ttf +0 -0
  140. package/dist/fonts/TiroBangla-Regular.ttf +0 -0
  141. package/dist/fonts/Verdana-Bold-Italic.ttf +0 -0
  142. package/dist/fonts/Verdana-Bold.ttf +0 -0
  143. package/dist/fonts/Verdana-Italic.ttf +0 -0
  144. package/dist/fonts/Verdana.ttf +0 -0
  145. package/dist/hooks/useMediaQuery.d.ts +0 -1
  146. package/dist/index-DQlbIHh3.cjs +0 -102
  147. package/dist/index-DkA8S5IK.cjs +0 -32
  148. package/dist/index-sG1tIMJ6.js +0 -7242
  149. package/dist/index-vVtPa2-N.js +0 -961
  150. package/dist/nineDots/NineDotsTypes.d.ts +0 -22
  151. package/dist/nineDots/NineDotsUtils.d.ts +0 -3
  152. package/dist/nineDots/nineDots.d.ts +0 -3
  153. package/dist/parseISO-AwyR5Nhg.cjs +0 -1
  154. package/dist/parseISO-Cso9HWPX.js +0 -1414
  155. package/dist/searchPatients/SearchPatients.d.ts +0 -11
  156. package/dist/types/APIEndPoints.d.ts +0 -11
  157. package/dist/types/ApiResponseTypes.d.ts +0 -290
  158. package/dist/types/CommonTypes.d.ts +0 -255
  159. package/dist/types/PatientAddEditTypes/index.js +0 -1
  160. package/dist/types/PatientAddEditTypes.d.ts +0 -7
  161. package/dist/types/PatientPopupTypes/index.js +0 -1
  162. package/dist/types/PatientPopupTypes.d.ts +0 -836
  163. package/dist/userProfile/APIAction/APIActions.d.ts +0 -18
  164. package/dist/userProfile/UserProfile.d.ts +0 -18
  165. package/dist/userProfile/UserProfileItem.d.ts +0 -7
  166. package/dist/warning-BozzKWdr.js +0 -38
  167. package/dist/warning-W0tkkrLJ.cjs +0 -1
  168. /package/dist/components/{alertPopup/AlertPopup.d.ts → AlertPopup.d.ts} +0 -0
@@ -1,256 +0,0 @@
1
- import { j as l, b as ye, N as Ce, O as $e } from "../index-sG1tIMJ6.js";
2
- import { useState as S, useRef as v, useMemo as je, useCallback as I, useEffect as J } from "react";
3
- import { u as Ne } from "../useClickOutside-BjJyGTec.js";
4
- import { u as ke } from "../useOutsideClick-C4Q0aGuf.js";
5
- import Le from "../ToggleButtons/index.js";
6
- const Oe = "data:image/svg+xml,%3csvg%20width='10'%20height='6'%20viewBox='0%200%2010%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.480062%200.819173C0.650418%200.648817%200.92662%200.648817%201.09698%200.819173L4.71454%204.43674L8.3321%200.819173C8.50246%200.648817%208.77866%200.648817%208.94902%200.819173C9.11937%200.98953%209.11937%201.26573%208.94902%201.43609L5.023%205.36211C4.85264%205.53246%204.57644%205.53246%204.40608%205.36211L0.480062%201.43609C0.309706%201.26573%200.309706%200.98953%200.480062%200.819173Z'%20fill='%23667085'/%3e%3c/svg%3e";
7
- function Fe(D) {
8
- const {
9
- label: E,
10
- labelClassName: B,
11
- hideDropdownIcon: Q,
12
- showClearOption: F,
13
- isRequiredField: U,
14
- btnClassName: X,
15
- placeholder: H,
16
- options: i,
17
- selectedOption: p,
18
- onChangeHandler: P,
19
- inputValue: n,
20
- inputChangeHandler: a,
21
- onInputFocusOutEvent: T,
22
- inputClassName: ee,
23
- isSearchable: le,
24
- inputType: te,
25
- showInput: y,
26
- inputSuffix: _,
27
- selectedLabel: G,
28
- suffixPadding: se,
29
- disableInputAutoSize: oe,
30
- selectedOptions: C,
31
- isMulti: h,
32
- dropDownItemClickHandler: M,
33
- showToggle: ne,
34
- toggleChangeHandler: re,
35
- selectedToggleOption: ie,
36
- toggleOptionsList: ae,
37
- border: m,
38
- height: x,
39
- disabled: f,
40
- fieldColor: g,
41
- errorMsg: $,
42
- showErrorMsg: he,
43
- placeholderStyle: s,
44
- onInputKeyDown: R,
45
- showEmptyDropdownPopup: fe = !0,
46
- isDropdownFixed: b = !1,
47
- dropdownClassName: ce = "",
48
- wrapperClass: z = "",
49
- maxInputLength: W,
50
- alternateListBgStyle: de,
51
- showLabelTooltip: ue = !1,
52
- labelToolTipContent: pe = "",
53
- inputContainerClasses: V = "",
54
- onInputFocus: j
55
- } = D, [r, c] = S(!1), [d, me] = S(null), w = v(null), N = v(null), K = v(null), k = v([]), xe = je(() => i?.filter((e) => e ? e.label.toLowerCase().includes((n ?? "").toLowerCase()) : void 0), [n, i]), [ge, L] = S(!1), be = () => {
56
- c(!1), h && a && a(""), me(null);
57
- }, Y = I(
58
- (e) => {
59
- e.stopPropagation(), f || c((t) => !t);
60
- },
61
- [f]
62
- ), q = (n?.length || 0) + 2 + Number(se || 0);
63
- ke(w, be), J(() => {
64
- d !== null && k.current[d] && k.current[d].scrollIntoView({ block: "nearest" });
65
- }, [d]);
66
- const u = I(() => {
67
- if (b && r) {
68
- const e = y ? N.current : K.current, t = w.current;
69
- if (e && t) {
70
- const o = e.getBoundingClientRect();
71
- t.style.position = "fixed", t.style.top = `${window.scrollY ? o.bottom + window.scrollY : o.bottom}px`, t.style.left = `${o.left}px`, t.style.width = `${o.width}px`;
72
- }
73
- }
74
- }, [b, r, y]);
75
- J(() => {
76
- if (b)
77
- return r ? (u(), window.addEventListener("scroll", u, !0)) : window.removeEventListener("scroll", u, !0), () => {
78
- window.removeEventListener("scroll", u, !0);
79
- };
80
- }, [b, u, r]), Ne(w, () => {
81
- ge && T && T();
82
- });
83
- const A = (e) => {
84
- if (h && M) {
85
- const t = C?.some((o) => o.value === e.value);
86
- M(!!t, e);
87
- }
88
- }, we = I(
89
- async (e) => {
90
- e.stopPropagation(), r || c(!0), j && await j();
91
- },
92
- [j, r]
93
- );
94
- return /* @__PURE__ */ l.jsxs("div", { className: `hfl-relative hfl-inline-block hfl-text-left ${z || ""}`, children: [
95
- !!E && /* @__PURE__ */ l.jsxs("div", { className: "hfl-text-Gray-700 hfl-mb-1 hfl-flex", children: [
96
- /* @__PURE__ */ l.jsx(ye, { type: "Text sm", variant: "Medium", className: B || "", children: `${E}` }),
97
- U && /* @__PURE__ */ l.jsx("span", { className: "hfl-ml-1 hfl-text-Error-600", children: "*" }),
98
- ue && /* @__PURE__ */ l.jsx(Ce, { variant: "Right", text: pe, theme: "dark", children: /* @__PURE__ */ l.jsx("i", { className: "hx_info-filled" }) })
99
- ] }),
100
- y ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
101
- /* @__PURE__ */ l.jsxs(
102
- "div",
103
- {
104
- className: `hfl-flex hfl-items-center hfl-shadow-xs hfl-px-2 ${V || ""} ${m || "hfl-border-1"} hfl-rounded-lg hfl-overflow-x-auto ${$ ? "hfl-border-Error-300" : "hfl-border-Gray-300"} ${x || "hfl-h-10"} ${f ? "!hfl-bg-Gray-50 !hfl-pointer-events-none" : g || "hfl-bg-White"} hover:hfl-border-Primary-300 hover:hfl-shadow-xs-primary`,
105
- onClick: f ? () => {
106
- } : Y,
107
- children: [
108
- C?.map((e, t) => /* @__PURE__ */ l.jsxs(
109
- "div",
110
- {
111
- className: "hfl-flex hfl-items-center hfl-bg-Blue-100 hfl-mr-2 hfl-py-1 hfl-px-2 hfl-rounded-sm hfl-font-inter-0 hfl-text-nowrap",
112
- children: [
113
- /* @__PURE__ */ l.jsx("span", { className: "hfl-pointer-events-none", children: e.label }),
114
- /* @__PURE__ */ l.jsx(
115
- "span",
116
- {
117
- onClick: (o) => {
118
- o.stopPropagation(), A(e);
119
- },
120
- className: "hx_close hfl-text-Gray-500 hfl-my-0 hfl-text-[14px] hfl-ml-[1px] hfl-cursor-pointer"
121
- }
122
- )
123
- ]
124
- },
125
- `${e.label}-${t}`
126
- )),
127
- Object.keys(s || {}).length > 0 && /* @__PURE__ */ l.jsx("style", { children: `
128
- input.input-placeholder::placeholder {
129
- font-family: ${s?.fontFamily};
130
- font-weight: ${s?.fontWeight};
131
- line-height: ${s?.lineHeight};
132
- font-size: ${s?.fontSize};
133
- color: ${s?.color};
134
- }
135
- ` }),
136
- /* @__PURE__ */ l.jsx(
137
- "input",
138
- {
139
- ref: N,
140
- style: oe ? {} : { width: `${Number(n?.length) > 4 ? (n?.length || 0) + 5 : 12}ch` },
141
- type: te,
142
- placeholder: H,
143
- value: n,
144
- className: `input-placeholder hfl-flex-1 hfl-pl-2 hfl-placeholder hfl-py-1 focus-visible:hfl-outline-0 focus-visible:hfl-outline-none hfl-border-0 focus:hfl-border-0 ${f ? "!hfl-bg-Gray-50 !hfl-cursor-not-allowed" : g || "hfl-bg-White"} ${ee || ""}`,
145
- onChange: (e) => {
146
- a && a(e.target.value), L(!0);
147
- },
148
- onClick: we,
149
- onKeyDown: (e) => R && R(e, c, N),
150
- maxLength: W ?? W,
151
- ...D.inputProps || {}
152
- }
153
- ),
154
- !Q && !F && /* @__PURE__ */ l.jsx("i", { className: "hx_down hfl-mx-2" }),
155
- F && /* @__PURE__ */ l.jsx(
156
- "i",
157
- {
158
- className: `${n ? "hx_close hfl-cursor-pointer" : "hx_down"} hfl-mx-2`,
159
- onClick: () => {
160
- (p?.value || n) && (a && a(""), L(!0));
161
- }
162
- }
163
- ),
164
- _ ? /* @__PURE__ */ l.jsx(
165
- "span",
166
- {
167
- style: { left: `${q < 2 ? "3" : q}ch` },
168
- className: "hfl-absolute hfl-top-1/2 hfl--translate-y-1/2 hfl-pointer-events-none",
169
- children: _
170
- }
171
- ) : null
172
- ]
173
- }
174
- ),
175
- he && /* @__PURE__ */ l.jsx("span", { className: "hfl-text-0 hfl-text-Error-600", children: $ })
176
- ] }) : /* @__PURE__ */ l.jsxs(
177
- "button",
178
- {
179
- ref: K,
180
- onClick: Y,
181
- className: `hfl-w-full hfl-bg-White hfl-py-[6px] hfl-px-4 hfl-rounded-lg hfl-inline-flex hfl-justify-between hfl-items-center ${X || ""} ${m || "hfl-border-1"} ${$ ? "hfl-border-Error-300" : "hfl-border-Gray-300"} ${x || "hfl-h-[40px]"} ${f ? "!hfl-bg-Gray-50 !hfl-cursor-not-allowed" : ""}`,
182
- style: G || p?.label ? {} : s ? {
183
- fontFamily: s?.fontFamily,
184
- fontSize: s?.fontSize,
185
- fontWeight: s?.fontWeight,
186
- lineHeight: s?.lineHeight,
187
- color: s?.color
188
- } : {},
189
- children: [
190
- /* @__PURE__ */ l.jsx("span", { className: "hfl-pr-4", children: G || p?.label || H || "Select an option" }),
191
- /* @__PURE__ */ l.jsx("img", { src: Oe, alt: "down arrow" })
192
- ]
193
- }
194
- ),
195
- i && i?.length >= 0 && /* @__PURE__ */ l.jsxs(
196
- "ul",
197
- {
198
- ref: w,
199
- className: `custom-dropdown-menu ${r ? "hfl-visible" : "hfl-invisible"} hfl-absolute hfl-z-50 hfl-grid hfl-gap-1 hfl-mt-3 hfl-w-full hfl-rounded-lg hfl-shadow-lg hfl-bg-White hfl-font-inter-0 hfl-p-1 hfl-px-2 ${h ? "hfl-min-w-[20em]" : "hfl-min-w-[16em]"} hfl-max-h-[330px] hfl-overflow-y-scroll ${ce}`,
200
- role: "menu",
201
- "aria-orientation": "vertical",
202
- "aria-labelledby": "options-menu",
203
- children: [
204
- ne ? /* @__PURE__ */ l.jsx(
205
- Le,
206
- {
207
- onChangeHandler: re,
208
- selectedOption: ie,
209
- options: ae
210
- }
211
- ) : !1,
212
- (le ? xe : i)?.map((e, t) => {
213
- const o = h ? !!C?.some((O) => O.value === e?.value) : !1, Z = p?.value === e?.value, ve = d === t;
214
- return e ? /* @__PURE__ */ l.jsx(
215
- "li",
216
- {
217
- onClick: () => {
218
- h ? A(e) : (P && P(e), c(!1), L(!1));
219
- },
220
- className: `hfl-text-1 hfl-block hfl-px-4 hfl-py-2 hfl-rounded-md hover:hfl-bg-Blue-50 hfl-cursor-pointer custom_dropdown_item ${de ? "odd:hfl-bg-Gray-100" : ""} ${Z ? "hfl-bg-Blue-50 hfl-text-Blue-500" : ""}`,
221
- role: "menuitem",
222
- "aria-selected": Z,
223
- tabIndex: ve ? 0 : -1,
224
- ref: (O) => {
225
- k.current[t] = O;
226
- },
227
- children: h ? /* @__PURE__ */ l.jsx(
228
- $e,
229
- {
230
- size: "sm",
231
- disabled: !1,
232
- text: /* @__PURE__ */ l.jsx("span", { children: e.label }),
233
- secondaryText: "",
234
- id: `${e.label}-${t}`,
235
- isMarked: o
236
- }
237
- ) : e.label
238
- },
239
- `${e.label}-${t}`
240
- ) : null;
241
- }),
242
- i?.length === 0 && fe && /* @__PURE__ */ l.jsx(
243
- "li",
244
- {
245
- className: "hfl-block hfl-px-4 hfl-py-2 hfl-rounded-md hover:hfl-bg-Blue-50 hfl-cursor-pointer custom_dropdown_item",
246
- children: "No items found, please change the search criteria"
247
- }
248
- )
249
- ]
250
- }
251
- )
252
- ] });
253
- }
254
- export {
255
- Fe as default
256
- };