@react-pakistan/util-functions 1.25.90 → 2.0.0

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 (412) hide show
  1. package/README.md +74 -315
  2. package/constants/api-methods.d.ts +3 -1
  3. package/constants/api-methods.js +1 -15
  4. package/constants/cache-time.d.ts +7 -5
  5. package/constants/cache-time.js +1 -8
  6. package/constants/countries-timezones.d.ts +4 -2
  7. package/constants/countries-timezones.js +1 -1411
  8. package/constants/currencies.d.ts +4 -2
  9. package/constants/currencies.js +1 -1076
  10. package/constants/dial-codes.d.ts +5 -3
  11. package/constants/dial-codes.js +1 -1216
  12. package/constants/layout-direction.d.ts +3 -1
  13. package/constants/layout-direction.js +1 -8
  14. package/constants/react-pakistan-meta.d.ts +4 -2
  15. package/constants/react-pakistan-meta.js +1 -35
  16. package/constants/react-pakistan.d.ts +5 -3
  17. package/constants/react-pakistan.js +12 -104
  18. package/constants/select-value-delimiter.d.ts +3 -1
  19. package/constants/select-value-delimiter.js +1 -13
  20. package/constants/social-media-colors.d.ts +3 -1
  21. package/constants/social-media-colors.js +1 -42
  22. package/constants/social-media-sizes.d.ts +6 -4
  23. package/constants/social-media-sizes.js +1 -327
  24. package/constants/user-roles.d.ts +3 -1
  25. package/constants/user-roles.js +1 -9
  26. package/edu-pilot-pro/types/academics.d.ts +2 -266
  27. package/edu-pilot-pro/types/academics.js +1 -9
  28. package/edu-pilot-pro/types/admission.d.ts +803 -10
  29. package/edu-pilot-pro/types/admission.js +1 -7
  30. package/edu-pilot-pro/types/communication.d.ts +2 -165
  31. package/edu-pilot-pro/types/communication.js +1 -8
  32. package/edu-pilot-pro/types/enums.d.ts +30 -28
  33. package/edu-pilot-pro/types/enums.js +1 -445
  34. package/edu-pilot-pro/types/finance.d.ts +2 -128
  35. package/edu-pilot-pro/types/finance.js +1 -8
  36. package/edu-pilot-pro/types/index.d.ts +2 -12
  37. package/edu-pilot-pro/types/index.js +1 -28
  38. package/edu-pilot-pro/types/user-management.d.ts +2 -236
  39. package/edu-pilot-pro/types/user-management.js +1 -8
  40. package/factory/generic-component-factory.d.ts +12 -9
  41. package/factory/generic-component-factory.js +1 -131
  42. package/factory/generic-module-factory.d.ts +14 -10
  43. package/factory/generic-module-factory.js +1 -190
  44. package/general/basic-get.d.ts +8 -1
  45. package/general/basic-get.js +1 -83
  46. package/general/basic-post.d.ts +8 -1
  47. package/general/basic-post.js +1 -70
  48. package/general/calculate-pages.d.ts +9 -1
  49. package/general/calculate-pages.js +1 -7
  50. package/general/camel-to-sentence-case.d.ts +3 -1
  51. package/general/camel-to-sentence-case.js +1 -20
  52. package/general/check-even-odd-length.d.ts +3 -1
  53. package/general/check-even-odd-length.js +1 -17
  54. package/general/clear-cache.d.ts +7 -2
  55. package/general/clear-cache.js +1 -12
  56. package/general/cnic-formatter.d.ts +16 -3
  57. package/general/cnic-formatter.js +1 -53
  58. package/general/convert-url-to-base64.d.ts +8 -6
  59. package/general/convert-url-to-base64.js +1 -231
  60. package/general/countries.d.ts +5 -3
  61. package/general/countries.js +1 -514
  62. package/general/create-date.d.ts +3 -1
  63. package/general/create-date.js +1 -22
  64. package/general/crypto.d.ts +4 -2
  65. package/general/crypto.js +1 -45
  66. package/general/currencies.d.ts +2 -0
  67. package/general/currencies.js +0 -1077
  68. package/general/delete-image-from-private-supabase.d.ts +10 -2
  69. package/general/delete-image-from-private-supabase.js +1 -66
  70. package/general/delete-image-from-public-supabase.d.ts +10 -2
  71. package/general/delete-image-from-public-supabase.js +1 -66
  72. package/general/download-from-url.d.ts +8 -1
  73. package/general/download-from-url.js +1 -82
  74. package/general/dynamic-page-limit.d.ts +9 -3
  75. package/general/dynamic-page-limit.js +1 -7
  76. package/general/enum-to-text.d.ts +8 -1
  77. package/general/enum-to-text.js +1 -11
  78. package/general/fetch-data.d.ts +16 -4
  79. package/general/fetch-data.js +1 -95
  80. package/general/fetch-supabase-image.d.ts +11 -2
  81. package/general/fetch-supabase-image.js +1 -67
  82. package/general/fetch-supabase-private-assets.d.ts +11 -2
  83. package/general/fetch-supabase-private-assets.js +1 -69
  84. package/general/format-date.d.ts +10 -2
  85. package/general/format-date.js +1 -49
  86. package/general/format-number.d.ts +12 -2
  87. package/general/format-number.js +1 -35
  88. package/general/format-phone-display.d.ts +9 -1
  89. package/general/format-phone-display.js +1 -32
  90. package/general/format-phone.d.ts +10 -2
  91. package/general/format-phone.js +1 -20
  92. package/general/format-pricing.d.ts +8 -1
  93. package/general/format-pricing.js +1 -23
  94. package/general/format-secs.d.ts +8 -1
  95. package/general/format-secs.js +1 -21
  96. package/general/format-time.d.ts +8 -2
  97. package/general/format-time.js +1 -38
  98. package/general/format-value.d.ts +8 -1
  99. package/general/format-value.js +1 -7
  100. package/general/full-month-range.d.ts +3 -2
  101. package/general/full-month-range.js +1 -24
  102. package/general/full-year-range.d.ts +3 -2
  103. package/general/full-year-range.js +1 -20
  104. package/general/generate-article-schema.d.ts +3 -2
  105. package/general/generate-article-schema.js +1 -100
  106. package/general/generate-blog-schema.d.ts +3 -2
  107. package/general/generate-blog-schema.js +1 -32
  108. package/general/generate-book-schema.d.ts +3 -2
  109. package/general/generate-book-schema.js +1 -109
  110. package/general/generate-breadcrumb-schema.d.ts +3 -2
  111. package/general/generate-breadcrumb-schema.js +1 -34
  112. package/general/generate-carousel-schema.d.ts +3 -2
  113. package/general/generate-carousel-schema.js +1 -172
  114. package/general/generate-course-schema.d.ts +3 -2
  115. package/general/generate-course-schema.js +1 -124
  116. package/general/generate-dataset-schema.d.ts +3 -2
  117. package/general/generate-dataset-schema.js +1 -156
  118. package/general/generate-discussion-forum-schema.d.ts +3 -2
  119. package/general/generate-discussion-forum-schema.js +1 -67
  120. package/general/generate-education-schema.d.ts +3 -2
  121. package/general/generate-education-schema.js +1 -137
  122. package/general/generate-employer-aggregate-rating-schema.d.ts +3 -2
  123. package/general/generate-employer-aggregate-rating-schema.js +1 -64
  124. package/general/generate-event-schema.d.ts +3 -2
  125. package/general/generate-event-schema.js +1 -214
  126. package/general/generate-faq-schema.d.ts +3 -2
  127. package/general/generate-faq-schema.js +1 -43
  128. package/general/generate-grid.d.ts +3 -2
  129. package/general/generate-grid.js +1 -55
  130. package/general/generate-image-metadata-schema.d.ts +3 -2
  131. package/general/generate-image-metadata-schema.js +1 -73
  132. package/general/generate-job-posting-schema.d.ts +3 -2
  133. package/general/generate-job-posting-schema.js +1 -120
  134. package/general/generate-local-business-schema.d.ts +3 -2
  135. package/general/generate-local-business-schema.js +1 -75
  136. package/general/generate-math-solver-schema.d.ts +3 -2
  137. package/general/generate-math-solver-schema.js +1 -83
  138. package/general/generate-movie-carousel-schema.d.ts +3 -2
  139. package/general/generate-movie-carousel-schema.js +1 -160
  140. package/general/generate-organization-schema.d.ts +3 -2
  141. package/general/generate-organization-schema.js +1 -39
  142. package/general/generate-profile-page-schema.d.ts +3 -2
  143. package/general/generate-profile-page-schema.js +1 -82
  144. package/general/generate-qa-page-schema.d.ts +3 -2
  145. package/general/generate-qa-page-schema.js +1 -67
  146. package/general/generate-recipe-schema.d.ts +3 -2
  147. package/general/generate-recipe-schema.js +1 -104
  148. package/general/generate-ref.d.ts +8 -2
  149. package/general/generate-ref.js +1 -12
  150. package/general/generate-review-snippet-schema.d.ts +3 -2
  151. package/general/generate-review-snippet-schema.js +1 -137
  152. package/general/generate-shopping-loyalty-program-schema.d.ts +3 -2
  153. package/general/generate-shopping-loyalty-program-schema.js +1 -59
  154. package/general/generate-shopping-merchant-listing-schema.d.ts +3 -2
  155. package/general/generate-shopping-merchant-listing-schema.js +1 -153
  156. package/general/generate-shopping-merchant-return-policy-schema.d.ts +3 -2
  157. package/general/generate-shopping-merchant-return-policy-schema.js +1 -68
  158. package/general/generate-shopping-merchant-shipping-policy-schema.d.ts +3 -2
  159. package/general/generate-shopping-merchant-shipping-policy-schema.js +1 -74
  160. package/general/generate-shopping-overview-schema.d.ts +3 -2
  161. package/general/generate-shopping-overview-schema.js +1 -157
  162. package/general/generate-shopping-product-snippet-schema.d.ts +3 -2
  163. package/general/generate-shopping-product-snippet-schema.js +1 -167
  164. package/general/generate-shopping-variants-schema.d.ts +3 -2
  165. package/general/generate-shopping-variants-schema.js +1 -143
  166. package/general/generate-software-app-schema.d.ts +3 -2
  167. package/general/generate-software-app-schema.js +1 -143
  168. package/general/generate-speakable-schema.d.ts +3 -2
  169. package/general/generate-speakable-schema.js +1 -139
  170. package/general/generate-subscription-schema.d.ts +3 -2
  171. package/general/generate-subscription-schema.js +1 -133
  172. package/general/generate-vacation-rental-schema.d.ts +3 -2
  173. package/general/generate-vacation-rental-schema.js +1 -135
  174. package/general/generate-video-schema.d.ts +3 -2
  175. package/general/generate-video-schema.js +1 -163
  176. package/general/generic-cache.d.ts +17 -15
  177. package/general/generic-cache.js +1 -659
  178. package/general/get-available-page-limit.d.ts +8 -2
  179. package/general/get-available-page-limit.js +1 -31
  180. package/general/get-calendar-current-month.d.ts +11 -3
  181. package/general/get-calendar-current-month.js +1 -31
  182. package/general/get-calendar-dates.d.ts +11 -3
  183. package/general/get-calendar-dates.js +1 -42
  184. package/general/get-calendar-next-month.d.ts +12 -3
  185. package/general/get-calendar-next-month.js +1 -32
  186. package/general/get-calendar-previous-month.d.ts +12 -3
  187. package/general/get-calendar-previous-month.js +1 -36
  188. package/general/get-current-year.d.ts +7 -1
  189. package/general/get-current-year.js +1 -5
  190. package/general/get-day-name.d.ts +5 -3
  191. package/general/get-day-name.js +1 -14
  192. package/general/get-dial-code.d.ts +8 -1
  193. package/general/get-dial-code.js +1 -8
  194. package/general/get-full-name.d.ts +9 -2
  195. package/general/get-full-name.js +1 -8
  196. package/general/get-href.d.ts +3 -1
  197. package/general/get-href.js +1 -13
  198. package/general/get-month-name.d.ts +5 -3
  199. package/general/get-month-name.js +1 -19
  200. package/general/get-month-number.d.ts +5 -3
  201. package/general/get-month-number.js +1 -29
  202. package/general/get-number-of-days-in-month.d.ts +9 -2
  203. package/general/get-number-of-days-in-month.js +1 -12
  204. package/general/get-pathname.d.ts +3 -1
  205. package/general/get-pathname.js +1 -16
  206. package/general/get-week-day.d.ts +8 -1
  207. package/general/get-week-day.js +1 -9
  208. package/general/image-url-to-base64.d.ts +3 -1
  209. package/general/image-url-to-base64.js +1 -80
  210. package/general/is-created-or-updated.d.ts +3 -1
  211. package/general/is-created-or-updated.js +1 -26
  212. package/general/is-next-button-disabled.d.ts +9 -1
  213. package/general/is-next-button-disabled.js +1 -5
  214. package/general/is-odd.d.ts +3 -1
  215. package/general/is-odd.js +1 -13
  216. package/general/is-previous-button-disabled.d.ts +8 -1
  217. package/general/is-previous-button-disabled.js +1 -7
  218. package/general/linear-gradients.d.ts +4 -2
  219. package/general/linear-gradients.js +1 -52
  220. package/general/multi-part-search.d.ts +10 -2
  221. package/general/multi-part-search.js +1 -16
  222. package/general/normalize-phone.d.ts +15 -2
  223. package/general/normalize-phone.js +1 -40
  224. package/general/parse-frontmatter.d.ts +11 -4
  225. package/general/parse-frontmatter.js +2 -35
  226. package/general/remove-data-image-prefix.d.ts +8 -1
  227. package/general/remove-data-image-prefix.js +1 -7
  228. package/general/repeat-times.d.ts +3 -1
  229. package/general/repeat-times.js +1 -21
  230. package/general/resolve-anchor-link.d.ts +3 -1
  231. package/general/resolve-anchor-link.js +1 -26
  232. package/general/resolve-current-date.d.ts +3 -1
  233. package/general/resolve-current-date.js +1 -22
  234. package/general/resolve-grid.d.ts +3 -1
  235. package/general/resolve-grid.js +1 -18
  236. package/general/resolve-initials.d.ts +3 -1
  237. package/general/resolve-initials.js +1 -17
  238. package/general/set-timezone.d.ts +11 -1
  239. package/general/set-timezone.js +1 -12
  240. package/general/slugify.d.ts +3 -1
  241. package/general/slugify.js +1 -24
  242. package/general/text-to-enum.d.ts +8 -1
  243. package/general/text-to-enum.js +1 -10
  244. package/general/text-to-sentence-case.d.ts +3 -1
  245. package/general/text-to-sentence-case.js +1 -16
  246. package/general/time-out.d.ts +3 -1
  247. package/general/time-out.js +1 -16
  248. package/general/time-zones.d.ts +3 -1
  249. package/general/time-zones.js +1 -437
  250. package/general/truncate-text.d.ts +3 -1
  251. package/general/truncate-text.js +1 -18
  252. package/general/type.d.ts +3 -1
  253. package/general/type.js +1 -2
  254. package/general/upload-blob-to-private-supabase.d.ts +14 -2
  255. package/general/upload-blob-to-private-supabase.js +1 -62
  256. package/general/upload-blob-to-public-supabase.d.ts +14 -2
  257. package/general/upload-blob-to-public-supabase.js +1 -62
  258. package/general/upload-image-to-private-supabase.d.ts +15 -3
  259. package/general/upload-image-to-private-supabase.js +1 -66
  260. package/general/upload-image-to-public-supabase.d.ts +15 -3
  261. package/general/upload-image-to-public-supabase.js +1 -66
  262. package/general/url-to-sentence-case.d.ts +3 -1
  263. package/general/url-to-sentence-case.js +1 -19
  264. package/general/validate-comment.d.ts +3 -1
  265. package/general/validate-comment.js +1 -21
  266. package/general/validate-email.d.ts +3 -1
  267. package/general/validate-email.js +1 -24
  268. package/general/validate-form.d.ts +12 -3
  269. package/general/validate-form.js +1 -29
  270. package/general/validate-name.d.ts +3 -1
  271. package/general/validate-name.js +1 -21
  272. package/hooks/use-change.d.ts +11 -2
  273. package/hooks/use-change.js +1 -23
  274. package/hooks/use-debounce.d.ts +10 -1
  275. package/hooks/use-debounce.js +1 -14
  276. package/hooks/use-fetch.d.ts +7 -5
  277. package/hooks/use-fetch.js +1 -239
  278. package/hooks/use-force-render.d.ts +6 -2
  279. package/hooks/use-force-render.js +1 -17
  280. package/hooks/use-ip-geo-location.d.ts +8 -1
  281. package/hooks/use-ip-geo-location.js +1 -79
  282. package/hooks/use-is-mobile.d.ts +8 -1
  283. package/hooks/use-is-mobile.js +1 -22
  284. package/hooks/use-module-entity-v2.d.ts +7 -4
  285. package/hooks/use-module-entity-v2.js +1 -188
  286. package/hooks/use-module-entity.d.ts +7 -4
  287. package/hooks/use-module-entity.js +1 -177
  288. package/hooks/use-phone-formatter.d.ts +10 -2
  289. package/hooks/use-phone-formatter.js +1 -23
  290. package/hooks/use-position.d.ts +6 -3
  291. package/hooks/use-position.js +1 -43
  292. package/hooks/use-rtl.d.ts +4 -2
  293. package/hooks/use-rtl.js +1 -84
  294. package/hooks/use-sticky.d.ts +3 -1
  295. package/hooks/use-sticky.js +1 -39
  296. package/hooks/use-toggle-state.d.ts +3 -2
  297. package/hooks/use-toggle-state.js +1 -26
  298. package/hooks/use-window-event-listener.d.ts +9 -1
  299. package/hooks/use-window-event-listener.js +1 -11
  300. package/hooks/with-seo.d.ts +11 -2
  301. package/hooks/with-seo.js +1 -37
  302. package/local-storage/get-storage-value.d.ts +5 -2
  303. package/local-storage/get-storage-value.js +1 -20
  304. package/local-storage/remove-storage-value.d.ts +3 -1
  305. package/local-storage/remove-storage-value.js +1 -14
  306. package/local-storage/set-storage-value.d.ts +3 -1
  307. package/local-storage/set-storage-value.js +1 -14
  308. package/local-storage/type.d.ts +3 -1
  309. package/local-storage/type.js +1 -2
  310. package/npm.d.d.ts +2 -0
  311. package/npm.d.js +0 -0
  312. package/package.json +20 -18
  313. package/storybook/generate-sitemap.d.ts +3 -1
  314. package/storybook/generate-sitemap.js +17 -26
  315. package/storybook/preview.d.ts +4 -2
  316. package/storybook/preview.js +1 -62
  317. package/storybook/react-design-story-script.d.ts +3 -1
  318. package/storybook/react-design-story-script.js +5 -27
  319. package/storybook/react-emoji-collection.d.ts +3 -1
  320. package/storybook/react-emoji-collection.js +10 -55
  321. package/storybook/react-emoji-story-script.d.ts +3 -1
  322. package/storybook/react-emoji-story-script.js +5 -31
  323. package/storybook/react-emoji-story-template.d.ts +3 -1
  324. package/storybook/react-emoji-story-template.js +45 -15
  325. package/storybook/react-icon-collection.d.ts +3 -1
  326. package/storybook/react-icon-collection.js +10 -42
  327. package/storybook/react-icon-story-script.d.ts +3 -1
  328. package/storybook/react-icon-story-script.js +5 -27
  329. package/storybook/react-icon-story-template.d.ts +3 -1
  330. package/storybook/react-icon-story-template.js +45 -14
  331. package/storybook/react-logo-collection.d.ts +3 -1
  332. package/storybook/react-logo-collection.js +10 -42
  333. package/storybook/react-logo-story-script.d.ts +3 -1
  334. package/storybook/react-logo-story-script.js +5 -27
  335. package/storybook/react-logo-story-template.d.ts +3 -1
  336. package/storybook/react-logo-story-template.js +45 -14
  337. package/storybook/react-pakistan-theme.d.ts +3 -1
  338. package/storybook/react-pakistan-theme.js +1 -31
  339. package/storybook/responsive-args.d.ts +11 -10
  340. package/storybook/responsive-args.js +1 -19
  341. package/storybook/responsive-component.d.ts +4 -2
  342. package/storybook/responsive-component.js +37 -23
  343. package/storybook/responsive-screens.d.ts +3 -1
  344. package/storybook/responsive-screens.js +1 -109
  345. package/storybook/theme.d.ts +17 -15
  346. package/storybook/theme.js +1 -1022
  347. package/api/stellar-solutions/app-user/index.d.ts +0 -51
  348. package/api/stellar-solutions/app-user/index.js +0 -210
  349. package/api/stellar-solutions/bank/index.d.ts +0 -59
  350. package/api/stellar-solutions/bank/index.js +0 -210
  351. package/api/stellar-solutions/branch/index.d.ts +0 -58
  352. package/api/stellar-solutions/branch/index.js +0 -220
  353. package/api/stellar-solutions/company/index.d.ts +0 -57
  354. package/api/stellar-solutions/company/index.js +0 -218
  355. package/api/stellar-solutions/company-report/index.d.ts +0 -15
  356. package/api/stellar-solutions/company-report/index.js +0 -74
  357. package/api/stellar-solutions/constants.d.ts +0 -19
  358. package/api/stellar-solutions/constants.js +0 -22
  359. package/api/stellar-solutions/contact/index.d.ts +0 -56
  360. package/api/stellar-solutions/contact/index.js +0 -217
  361. package/api/stellar-solutions/currency/index.d.ts +0 -55
  362. package/api/stellar-solutions/currency/index.js +0 -212
  363. package/api/stellar-solutions/customer/index.d.ts +0 -68
  364. package/api/stellar-solutions/customer/index.js +0 -249
  365. package/api/stellar-solutions/expense/index.d.ts +0 -58
  366. package/api/stellar-solutions/expense/index.js +0 -229
  367. package/api/stellar-solutions/expense-category/index.d.ts +0 -53
  368. package/api/stellar-solutions/expense-category/index.js +0 -214
  369. package/api/stellar-solutions/lead/index.d.ts +0 -51
  370. package/api/stellar-solutions/lead/index.js +0 -206
  371. package/api/stellar-solutions/menu-order/index.d.ts +0 -53
  372. package/api/stellar-solutions/menu-order/index.js +0 -202
  373. package/api/stellar-solutions/payment/index.d.ts +0 -65
  374. package/api/stellar-solutions/payment/index.js +0 -230
  375. package/api/stellar-solutions/payment-mode/index.d.ts +0 -53
  376. package/api/stellar-solutions/payment-mode/index.js +0 -191
  377. package/api/stellar-solutions/preference/index.d.ts +0 -25
  378. package/api/stellar-solutions/preference/index.js +0 -114
  379. package/api/stellar-solutions/product/index.d.ts +0 -64
  380. package/api/stellar-solutions/product/index.js +0 -235
  381. package/api/stellar-solutions/product-category/index.d.ts +0 -51
  382. package/api/stellar-solutions/product-category/index.js +0 -212
  383. package/api/stellar-solutions/profile/index.d.ts +0 -78
  384. package/api/stellar-solutions/profile/index.js +0 -234
  385. package/api/stellar-solutions/quote-invoice/index.d.ts +0 -97
  386. package/api/stellar-solutions/quote-invoice/index.js +0 -369
  387. package/api/stellar-solutions/quote-invoice-report/index.d.ts +0 -15
  388. package/api/stellar-solutions/quote-invoice-report/index.js +0 -74
  389. package/api/stellar-solutions/tax/index.d.ts +0 -55
  390. package/api/stellar-solutions/tax/index.js +0 -224
  391. package/api/stellar-solutions/types/common.d.ts +0 -24
  392. package/api/stellar-solutions/types/common.js +0 -22
  393. package/api/stellar-solutions/types/erp.d.ts +0 -302
  394. package/api/stellar-solutions/types/erp.js +0 -73
  395. package/api/stellar-solutions/types/index.d.ts +0 -3
  396. package/api/stellar-solutions/types/index.js +0 -19
  397. package/api/stellar-solutions/types/pos.d.ts +0 -176
  398. package/api/stellar-solutions/types/pos.js +0 -61
  399. package/constants/index.d.ts +0 -12
  400. package/constants/index.js +0 -28
  401. package/factory/index.d.ts +0 -2
  402. package/factory/index.js +0 -18
  403. package/general/index.d.ts +0 -95
  404. package/general/index.js +0 -111
  405. package/index.d.ts +0 -28
  406. package/index.js +0 -44
  407. package/local-storage/index.d.ts +0 -4
  408. package/local-storage/index.js +0 -20
  409. package/setupTests.d.ts +0 -1
  410. package/setupTests.js +0 -52
  411. package/storybook/index.d.ts +0 -17
  412. package/storybook/index.js +0 -33
@@ -1,12 +1 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.setTimezone = void 0;
7
- var date_fns_tz_1 = require("date-fns-tz");
8
- var lodash_curry_1 = __importDefault(require("lodash.curry"));
9
- exports.setTimezone = (0, lodash_curry_1.default)(function (date, timezone) {
10
- if (timezone === void 0) { timezone = 'Asia/Karachi'; }
11
- return (0, date_fns_tz_1.utcToZonedTime)(date, timezone);
12
- });
1
+ var s=Object.create;var i=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var u=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},m=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of d(t))!p.call(e,r)&&r!==o&&i(e,r,{get:()=>t[r],enumerable:!(a=D(t,r))||a.enumerable});return e};var T=(e,t,o)=>(o=e!=null?s(f(e)):{},m(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),g=e=>m(i({},"__esModule",{value:!0}),e);var x={};u(x,{setTimezone:()=>h});module.exports=g(x);var n=require("date-fns-tz"),c=T(require("lodash.curry"));const h=(0,c.default)((e,t="Asia/Karachi")=>(0,n.utcToZonedTime)(e,t));0&&(module.exports={setTimezone});
@@ -7,4 +7,6 @@
7
7
  * @remarks AppCorpAgency
8
8
  */
9
9
  /** End file docs */
10
- export declare const slugify: (str: string) => string;
10
+ declare const slugify: (str: string) => string;
11
+
12
+ export { slugify };
@@ -1,24 +1 @@
1
- "use strict";
2
- /**
3
- * A util function to convert blog titles into web url slugs
4
- *
5
- * @params string
6
- * @returns string
7
- * @author Taimoor Khan
8
- * @remarks AppCorpAgency
9
- */
10
- /** End file docs */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.slugify = void 0;
13
- var slugify = function (str) {
14
- return str
15
- .replaceAll(/[’|&;$%@"<>/()+,:?]/gm, '')
16
- .normalize('NFD') // normalize accented characters
17
- .replace(/[\u0300-\u036f]/g, '') // remove accents
18
- .replace(/[^a-zA-Z0-9\s-]/g, '') // remove special chars except spaces & hyphens
19
- .trim() // trim leading/trailing spaces
20
- .replace(/\s+/g, '-') // replace spaces with -
21
- .replace(/-+/g, '-') // collapse multiple hyphens
22
- .toLowerCase();
23
- };
24
- exports.slugify = slugify;
1
+ var g=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var t=Object.prototype.hasOwnProperty;var i=(e,r)=>{for(var a in r)g(e,a,{get:r[a],enumerable:!0})},o=(e,r,a,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of p(r))!t.call(e,l)&&l!==a&&g(e,l,{get:()=>r[l],enumerable:!(s=c(r,l))||s.enumerable});return e};var n=e=>o(g({},"__esModule",{value:!0}),e);var u={};i(u,{slugify:()=>m});module.exports=n(u);const m=e=>e.replaceAll(/[’|&;$%@"<>/()+,:?]/gm,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").toLowerCase();0&&(module.exports={slugify});
@@ -1 +1,8 @@
1
- export declare const textToEnum: (text: string) => string;
1
+ /**
2
+ * Converts space-separated text to SCREAMING_SNAKE_CASE.
3
+ * @param text - The text to convert.
4
+ * @returns The enum-style string.
5
+ */
6
+ declare const textToEnum: (text: string) => string;
7
+
8
+ export { textToEnum };
@@ -1,10 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.textToEnum = void 0;
4
- var textToEnum = function (text) {
5
- return text
6
- .split(' ')
7
- .map(function (item) { return item.toUpperCase(); })
8
- .join('_');
9
- };
10
- exports.textToEnum = textToEnum;
1
+ var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var g=(n,t)=>{for(var p in t)s(n,p,{get:t[p],enumerable:!0})},m=(n,t,p,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of r(t))!a.call(n,o)&&o!==p&&s(n,o,{get:()=>t[o],enumerable:!(e=i(t,o))||e.enumerable});return n};var x=n=>m(s({},"__esModule",{value:!0}),n);var j={};g(j,{textToEnum:()=>c});module.exports=x(j);const c=n=>n.split(" ").map(t=>t.toUpperCase()).join("_");0&&(module.exports={textToEnum});
@@ -7,4 +7,6 @@
7
7
  * @remarks
8
8
  */
9
9
  /** End file docs */
10
- export declare const textToSentenceCase: (text: string) => string;
10
+ declare const textToSentenceCase: (text: string) => string;
11
+
12
+ export { textToSentenceCase };
@@ -1,16 +1 @@
1
- "use strict";
2
- /**
3
- * A util function to convert url into sentence case
4
- *
5
- * @param str - string provided to convert url into sentence case - taimoorKhan
6
- * @returns string in sentence case - Taimoor Khan
7
- * @author Taimoor Khan
8
- * @remarks
9
- */
10
- /** End file docs */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.textToSentenceCase = void 0;
13
- var textToSentenceCase = function (text) {
14
- return text.charAt(0).toUpperCase() + text.slice(1);
15
- };
16
- exports.textToSentenceCase = textToSentenceCase;
1
+ var r=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var p=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},g=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of a(t))!i.call(e,s)&&s!==n&&r(e,s,{get:()=>t[s],enumerable:!(c=o(t,s))||c.enumerable});return e};var C=e=>g(r({},"__esModule",{value:!0}),e);var l={};p(l,{textToSentenceCase:()=>h});module.exports=C(l);const h=e=>e.charAt(0).toUpperCase()+e.slice(1);0&&(module.exports={textToSentenceCase});
@@ -7,4 +7,6 @@
7
7
  * @remarks
8
8
  */
9
9
  /** End file docs */
10
- export declare const timeout: (ms: number) => Promise<void>;
10
+ declare const timeout: (ms: number) => Promise<void>;
11
+
12
+ export { timeout };
@@ -1,16 +1 @@
1
- "use strict";
2
- /**
3
- * Returns a promisified setTimeout that can be awaited
4
- * await timeout(500);
5
- *
6
- * @returns Promise
7
- * @author
8
- * @remarks
9
- */
10
- /** End file docs */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.timeout = void 0;
13
- var timeout = function (ms) {
14
- return new Promise(function (resolve) { return setTimeout(resolve, ms); });
15
- };
16
- exports.timeout = timeout;
1
+ var m=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var P=(o,e)=>{for(var i in e)m(o,i,{get:e[i],enumerable:!0})},b=(o,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!u.call(o,t)&&t!==i&&m(o,t,{get:()=>e[t],enumerable:!(r=s(e,t))||r.enumerable});return o};var c=o=>b(m({},"__esModule",{value:!0}),o);var p={};P(p,{timeout:()=>d});module.exports=c(p);const d=o=>new Promise(e=>setTimeout(e,o));0&&(module.exports={timeout});
@@ -6,4 +6,6 @@
6
6
  * @remarks
7
7
  */
8
8
  /** End file docs */
9
- export declare const timeZones: Array<string>;
9
+ declare const timeZones: Array<string>;
10
+
11
+ export { timeZones };
@@ -1,437 +1 @@
1
- "use strict";
2
- /**
3
- * A util library of worldwide timezones
4
- *
5
- * @returns Array of all time zones
6
- * @author Taimoor Khan
7
- * @remarks
8
- */
9
- /** End file docs */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.timeZones = void 0;
12
- exports.timeZones = [
13
- 'Africa/Abidjan',
14
- 'Africa/Accra',
15
- 'Africa/Addis_Ababa',
16
- 'Africa/Algiers',
17
- 'Africa/Asmara',
18
- 'Africa/Bamako',
19
- 'Africa/Bangui',
20
- 'Africa/Banjul',
21
- 'Africa/Bissau',
22
- 'Africa/Blantyre',
23
- 'Africa/Brazzaville',
24
- 'Africa/Bujumbura',
25
- 'Africa/Cairo',
26
- 'Africa/Casablanca',
27
- 'Africa/Ceuta',
28
- 'Africa/Conakry',
29
- 'Africa/Dakar',
30
- 'Africa/Dar_es_Salaam',
31
- 'Africa/Djibouti',
32
- 'Africa/Douala',
33
- 'Africa/El_Aaiun',
34
- 'Africa/Freetown',
35
- 'Africa/Gaborone',
36
- 'Africa/Harare',
37
- 'Africa/Johannesburg',
38
- 'Africa/Juba',
39
- 'Africa/Kampala',
40
- 'Africa/Khartoum',
41
- 'Africa/Kigali',
42
- 'Africa/Kinshasa',
43
- 'Africa/Lagos',
44
- 'Africa/Libreville',
45
- 'Africa/Lome',
46
- 'Africa/Luanda',
47
- 'Africa/Lubumbashi',
48
- 'Africa/Lusaka',
49
- 'Africa/Malabo',
50
- 'Africa/Maputo',
51
- 'Africa/Maseru',
52
- 'Africa/Mbabane',
53
- 'Africa/Mogadishu',
54
- 'Africa/Monrovia',
55
- 'Africa/Nairobi',
56
- 'Africa/Ndjamena',
57
- 'Africa/Niamey',
58
- 'Africa/Nouakchott',
59
- 'Africa/Ouagadougou',
60
- 'Africa/Porto-Novo',
61
- 'Africa/Sao_Tome',
62
- 'Africa/Tripoli',
63
- 'Africa/Tunis',
64
- 'Africa/Windhoek',
65
- 'America/Adak',
66
- 'America/Anchorage',
67
- 'America/Anguilla',
68
- 'America/Antigua',
69
- 'America/Araguaina',
70
- 'America/Argentina/Buenos_Aires',
71
- 'America/Argentina/Catamarca',
72
- 'America/Argentina/Cordoba',
73
- 'America/Argentina/Jujuy',
74
- 'America/Argentina/La_Rioja',
75
- 'America/Argentina/Mendoza',
76
- 'America/Argentina/Rio_Gallegos',
77
- 'America/Argentina/Salta',
78
- 'America/Argentina/San_Juan',
79
- 'America/Argentina/San_Luis',
80
- 'America/Argentina/Tucuman',
81
- 'America/Argentina/Ushuaia',
82
- 'America/Aruba',
83
- 'America/Asuncion',
84
- 'America/Atikokan',
85
- 'America/Bahia',
86
- 'America/Bahia_Banderas',
87
- 'America/Barbados',
88
- 'America/Belem',
89
- 'America/Belize',
90
- 'America/Blanc-Sablon',
91
- 'America/Boa_Vista',
92
- 'America/Bogota',
93
- 'America/Boise',
94
- 'America/Cambridge_Bay',
95
- 'America/Campo_Grande',
96
- 'America/Cancun',
97
- 'America/Caracas',
98
- 'America/Cayenne',
99
- 'America/Cayman',
100
- 'America/Chicago',
101
- 'America/Chihuahua',
102
- 'America/Costa_Rica',
103
- 'America/Creston',
104
- 'America/Cuiaba',
105
- 'America/Curacao',
106
- 'America/Danmarkshavn',
107
- 'America/Dawson',
108
- 'America/Dawson_Creek',
109
- 'America/Denver',
110
- 'America/Detroit',
111
- 'America/Dominica',
112
- 'America/Edmonton',
113
- 'America/Eirunepe',
114
- 'America/El_Salvador',
115
- 'America/Fort_Nelson',
116
- 'America/Fortaleza',
117
- 'America/Glace_Bay',
118
- 'America/Goose_Bay',
119
- 'America/Grand_Turk',
120
- 'America/Grenada',
121
- 'America/Guadeloupe',
122
- 'America/Guatemala',
123
- 'America/Guayaquil',
124
- 'America/Guyana',
125
- 'America/Halifax',
126
- 'America/Havana',
127
- 'America/Hermosillo',
128
- 'America/Indiana/Indianapolis',
129
- 'America/Indiana/Knox',
130
- 'America/Indiana/Marengo',
131
- 'America/Indiana/Petersburg',
132
- 'America/Indiana/Tell_City',
133
- 'America/Indiana/Vevay',
134
- 'America/Indiana/Vincennes',
135
- 'America/Indiana/Winamac',
136
- 'America/Inuvik',
137
- 'America/Iqaluit',
138
- 'America/Jamaica',
139
- 'America/Juneau',
140
- 'America/Kentucky/Louisville',
141
- 'America/Kentucky/Monticello',
142
- 'America/Kralendijk',
143
- 'America/La_Paz',
144
- 'America/Lima',
145
- 'America/Los_Angeles',
146
- 'America/Lower_Princes',
147
- 'America/Maceio',
148
- 'America/Managua',
149
- 'America/Manaus',
150
- 'America/Marigot',
151
- 'America/Martinique',
152
- 'America/Matamoros',
153
- 'America/Mazatlan',
154
- 'America/Menominee',
155
- 'America/Merida',
156
- 'America/Metlakatla',
157
- 'America/Mexico_City',
158
- 'America/Miquelon',
159
- 'America/Moncton',
160
- 'America/Monterrey',
161
- 'America/Montevideo',
162
- 'America/Montserrat',
163
- 'America/Nassau',
164
- 'America/New_York',
165
- 'America/Nipigon',
166
- 'America/Nome',
167
- 'America/Noronha',
168
- 'America/North_Dakota/Beulah',
169
- 'America/North_Dakota/Center',
170
- 'America/North_Dakota/New_Salem',
171
- 'America/Nuuk',
172
- 'America/Ojinaga',
173
- 'America/Panama',
174
- 'America/Pangnirtung',
175
- 'America/Paramaribo',
176
- 'America/Phoenix',
177
- 'America/Port_of_Spain',
178
- 'America/Port-au-Prince',
179
- 'America/Porto_Velho',
180
- 'America/Puerto_Rico',
181
- 'America/Punta_Arenas',
182
- 'America/Rainy_River',
183
- 'America/Rankin_Inlet',
184
- 'America/Recife',
185
- 'America/Regina',
186
- 'America/Resolute',
187
- 'America/Rio_Branco',
188
- 'America/Santarem',
189
- 'America/Santiago',
190
- 'America/Santo_Domingo',
191
- 'America/Sao_Paulo',
192
- 'America/Scoresbysund',
193
- 'America/Sitka',
194
- 'America/St_Barthelemy',
195
- 'America/St_Johns',
196
- 'America/St_Kitts',
197
- 'America/St_Lucia',
198
- 'America/St_Thomas',
199
- 'America/St_Vincent',
200
- 'America/Swift_Current',
201
- 'America/Tegucigalpa',
202
- 'America/Thule',
203
- 'America/Thunder_Bay',
204
- 'America/Tijuana',
205
- 'America/Toronto',
206
- 'America/Tortola',
207
- 'America/Vancouver',
208
- 'America/Whitehorse',
209
- 'America/Winnipeg',
210
- 'America/Yakutat',
211
- 'America/Yellowknife',
212
- 'Antarctica/Casey',
213
- 'Antarctica/Davis',
214
- 'Antarctica/DumontDUrville',
215
- 'Antarctica/Macquarie',
216
- 'Antarctica/Mawson',
217
- 'Antarctica/McMurdo',
218
- 'Antarctica/Palmer',
219
- 'Antarctica/Rothera',
220
- 'Antarctica/Syowa',
221
- 'Antarctica/Troll',
222
- 'Antarctica/Vostok',
223
- 'Arctic/Longyearbyen',
224
- 'Asia/Aden',
225
- 'Asia/Almaty',
226
- 'Asia/Amman',
227
- 'Asia/Anadyr',
228
- 'Asia/Aqtau',
229
- 'Asia/Aqtobe',
230
- 'Asia/Ashgabat',
231
- 'Asia/Atyrau',
232
- 'Asia/Baghdad',
233
- 'Asia/Bahrain',
234
- 'Asia/Baku',
235
- 'Asia/Bangkok',
236
- 'Asia/Barnaul',
237
- 'Asia/Beirut',
238
- 'Asia/Bishkek',
239
- 'Asia/Brunei',
240
- 'Asia/Chita',
241
- 'Asia/Choibalsan',
242
- 'Asia/Colombo',
243
- 'Asia/Damascus',
244
- 'Asia/Dhaka',
245
- 'Asia/Dili',
246
- 'Asia/Dubai',
247
- 'Asia/Dushanbe',
248
- 'Asia/Famagusta',
249
- 'Asia/Gaza',
250
- 'Asia/Hebron',
251
- 'Asia/Ho_Chi_Minh',
252
- 'Asia/Hong_Kong',
253
- 'Asia/Hovd',
254
- 'Asia/Irkutsk',
255
- 'Asia/Jakarta',
256
- 'Asia/Jayapura',
257
- 'Asia/Jerusalem',
258
- 'Asia/Kabul',
259
- 'Asia/Kamchatka',
260
- 'Asia/Karachi',
261
- 'Asia/Kathmandu',
262
- 'Asia/Khandyga',
263
- 'Asia/Kolkata',
264
- 'Asia/Krasnoyarsk',
265
- 'Asia/Kuala_Lumpur',
266
- 'Asia/Kuching',
267
- 'Asia/Kuwait',
268
- 'Asia/Macau',
269
- 'Asia/Magadan',
270
- 'Asia/Makassar',
271
- 'Asia/Manila',
272
- 'Asia/Muscat',
273
- 'Asia/Nicosia',
274
- 'Asia/Novokuznetsk',
275
- 'Asia/Novosibirsk',
276
- 'Asia/Omsk',
277
- 'Asia/Oral',
278
- 'Asia/Phnom_Penh',
279
- 'Asia/Pontianak',
280
- 'Asia/Pyongyang',
281
- 'Asia/Qatar',
282
- 'Asia/Qostanay',
283
- 'Asia/Qyzylorda',
284
- 'Asia/Riyadh',
285
- 'Asia/Sakhalin',
286
- 'Asia/Samarkand',
287
- 'Asia/Seoul',
288
- 'Asia/Shanghai',
289
- 'Asia/Singapore',
290
- 'Asia/Srednekolymsk',
291
- 'Asia/Taipei',
292
- 'Asia/Tashkent',
293
- 'Asia/Tbilisi',
294
- 'Asia/Tehran',
295
- 'Asia/Thimphu',
296
- 'Asia/Tokyo',
297
- 'Asia/Tomsk',
298
- 'Asia/Ulaanbaatar',
299
- 'Asia/Urumqi',
300
- 'Asia/Ust-Nera',
301
- 'Asia/Vientiane',
302
- 'Asia/Vladivostok',
303
- 'Asia/Yakutsk',
304
- 'Asia/Yangon',
305
- 'Asia/Yekaterinburg',
306
- 'Asia/Yerevan',
307
- 'Atlantic/Azores',
308
- 'Atlantic/Bermuda',
309
- 'Atlantic/Canary',
310
- 'Atlantic/Cape_Verde',
311
- 'Atlantic/Faroe',
312
- 'Atlantic/Madeira',
313
- 'Atlantic/Reykjavik',
314
- 'Atlantic/South_Georgia',
315
- 'Atlantic/St_Helena',
316
- 'Atlantic/Stanley',
317
- 'Australia/Adelaide',
318
- 'Australia/Brisbane',
319
- 'Australia/Broken_Hill',
320
- 'Australia/Darwin',
321
- 'Australia/Eucla',
322
- 'Australia/Hobart',
323
- 'Australia/Lindeman',
324
- 'Australia/Lord_Howe',
325
- 'Australia/Melbourne',
326
- 'Australia/Perth',
327
- 'Australia/Sydney',
328
- 'Europe/Amsterdam',
329
- 'Europe/Andorra',
330
- 'Europe/Astrakhan',
331
- 'Europe/Athens',
332
- 'Europe/Belgrade',
333
- 'Europe/Berlin',
334
- 'Europe/Bratislava',
335
- 'Europe/Brussels',
336
- 'Europe/Bucharest',
337
- 'Europe/Budapest',
338
- 'Europe/Busingen',
339
- 'Europe/Chisinau',
340
- 'Europe/Copenhagen',
341
- 'Europe/Dublin',
342
- 'Europe/Gibraltar',
343
- 'Europe/Guernsey',
344
- 'Europe/Helsinki',
345
- 'Europe/Isle_of_Man',
346
- 'Europe/Istanbul',
347
- 'Europe/Jersey',
348
- 'Europe/Kaliningrad',
349
- 'Europe/Kiev',
350
- 'Europe/Kirov',
351
- 'Europe/Lisbon',
352
- 'Europe/Ljubljana',
353
- 'Europe/London',
354
- 'Europe/Luxembourg',
355
- 'Europe/Madrid',
356
- 'Europe/Malta',
357
- 'Europe/Mariehamn',
358
- 'Europe/Minsk',
359
- 'Europe/Monaco',
360
- 'Europe/Moscow',
361
- 'Europe/Oslo',
362
- 'Europe/Paris',
363
- 'Europe/Podgorica',
364
- 'Europe/Prague',
365
- 'Europe/Riga',
366
- 'Europe/Rome',
367
- 'Europe/Samara',
368
- 'Europe/San_Marino',
369
- 'Europe/Sarajevo',
370
- 'Europe/Saratov',
371
- 'Europe/Simferopol',
372
- 'Europe/Skopje',
373
- 'Europe/Sofia',
374
- 'Europe/Stockholm',
375
- 'Europe/Tallinn',
376
- 'Europe/Tirane',
377
- 'Europe/Ulyanovsk',
378
- 'Europe/Uzhgorod',
379
- 'Europe/Vaduz',
380
- 'Europe/Vatican',
381
- 'Europe/Vienna',
382
- 'Europe/Vilnius',
383
- 'Europe/Volgograd',
384
- 'Europe/Warsaw',
385
- 'Europe/Zagreb',
386
- 'Europe/Zaporozhye',
387
- 'Europe/Zurich',
388
- 'Indian/Antananarivo',
389
- 'Indian/Chagos',
390
- 'Indian/Christmas',
391
- 'Indian/Cocos',
392
- 'Indian/Comoro',
393
- 'Indian/Kerguelen',
394
- 'Indian/Mahe',
395
- 'Indian/Maldives',
396
- 'Indian/Mauritius',
397
- 'Indian/Mayotte',
398
- 'Indian/Reunion',
399
- 'Pacific/Apia',
400
- 'Pacific/Auckland',
401
- 'Pacific/Bougainville',
402
- 'Pacific/Chatham',
403
- 'Pacific/Chuuk',
404
- 'Pacific/Easter',
405
- 'Pacific/Efate',
406
- 'Pacific/Kanton',
407
- 'Pacific/Fakaofo',
408
- 'Pacific/Fiji',
409
- 'Pacific/Funafuti',
410
- 'Pacific/Galapagos',
411
- 'Pacific/Gambier',
412
- 'Pacific/Guadalcanal',
413
- 'Pacific/Guam',
414
- 'Pacific/Honolulu',
415
- 'Pacific/Kiritimati',
416
- 'Pacific/Kosrae',
417
- 'Pacific/Kwajalein',
418
- 'Pacific/Majuro',
419
- 'Pacific/Marquesas',
420
- 'Pacific/Midway',
421
- 'Pacific/Nauru',
422
- 'Pacific/Niue',
423
- 'Pacific/Norfolk',
424
- 'Pacific/Noumea',
425
- 'Pacific/Pago_Pago',
426
- 'Pacific/Palau',
427
- 'Pacific/Pitcairn',
428
- 'Pacific/Pohnpei',
429
- 'Pacific/Port_Moresby',
430
- 'Pacific/Rarotonga',
431
- 'Pacific/Saipan',
432
- 'Pacific/Tahiti',
433
- 'Pacific/Tarawa',
434
- 'Pacific/Tongatapu',
435
- 'Pacific/Wake',
436
- 'Pacific/Wallis',
437
- ];
1
+ var c=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var s=(i,a)=>{for(var e in a)c(i,e,{get:a[e],enumerable:!0})},m=(i,a,e,A)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of o(a))!u.call(i,r)&&r!==e&&c(i,r,{get:()=>a[r],enumerable:!(A=n(a,r))||A.enumerable});return i};var t=i=>m(c({},"__esModule",{value:!0}),i);var f={};s(f,{timeZones:()=>l});module.exports=t(f);const l=["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port_of_Spain","America/Port-au-Prince","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Kanton","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];0&&(module.exports={timeZones});
@@ -9,4 +9,6 @@
9
9
  * @remarks Taimoor Khan Resume 3
10
10
  */
11
11
  /** End file docs */
12
- export declare const truncateText: (string: string, length: number) => string;
12
+ declare const truncateText: (string: string, length: number) => string;
13
+
14
+ export { truncateText };
@@ -1,18 +1 @@
1
- "use strict";
2
- /**
3
- * A util function to truncate text to the
4
- * given length provided and add ... at the end
5
- *
6
- * @param string - string to truncate
7
- * @param length - number or chars to truncate after
8
- * @returns string - Taim...
9
- * @author Taimoor Khan
10
- * @remarks Taimoor Khan Resume 3
11
- */
12
- /** End file docs */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.truncateText = void 0;
15
- var truncateText = function (string, length) {
16
- return "".concat(string === null || string === void 0 ? void 0 : string.substring(0, length), "...");
17
- };
18
- exports.truncateText = truncateText;
1
+ var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var c=(n,t)=>{for(var s in t)e(n,s,{get:t[s],enumerable:!0})},o=(n,t,s,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of u(t))!b.call(n,r)&&r!==s&&e(n,r,{get:()=>t[r],enumerable:!(g=i(t,r))||g.enumerable});return n};var x=n=>o(e({},"__esModule",{value:!0}),n);var m={};c(m,{truncateText:()=>a});module.exports=x(m);const a=(n,t)=>`${n?.substring(0,t)}...`;0&&(module.exports={truncateText});
package/general/type.d.ts CHANGED
@@ -1,6 +1,8 @@
1
- export interface CalendarDay {
1
+ interface CalendarDay {
2
2
  date: string;
3
3
  dayOfMonth: number;
4
4
  isCurrentMonth: boolean;
5
5
  isToday: boolean;
6
6
  }
7
+
8
+ export type { CalendarDay };
package/general/type.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var l=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of i(a))!b.call(e,n)&&n!==t&&r(e,n,{get:()=>a[n],enumerable:!(o=d(a,n))||o.enumerable});return e};var s=e=>l(r({},"__esModule",{value:!0}),e);var y={};module.exports=s(y);