@react-pakistan/util-functions 1.25.90 → 2.0.2

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 (417) 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 +21 -19
  313. package/{api/stellar-solutions → stellar-solution}/types/common.d.ts +4 -2
  314. package/stellar-solution/types/common.js +1 -0
  315. package/{api/stellar-solutions → stellar-solution}/types/erp.d.ts +36 -33
  316. package/stellar-solution/types/erp.js +1 -0
  317. package/stellar-solution/types/index.d.ts +3 -0
  318. package/stellar-solution/types/index.js +1 -0
  319. package/{api/stellar-solutions → stellar-solution}/types/pos.d.ts +27 -24
  320. package/stellar-solution/types/pos.js +1 -0
  321. package/storybook/generate-sitemap.d.ts +3 -1
  322. package/storybook/generate-sitemap.js +17 -26
  323. package/storybook/preview.d.ts +4 -2
  324. package/storybook/preview.js +1 -62
  325. package/storybook/react-design-story-script.d.ts +3 -1
  326. package/storybook/react-design-story-script.js +5 -27
  327. package/storybook/react-emoji-collection.d.ts +3 -1
  328. package/storybook/react-emoji-collection.js +10 -55
  329. package/storybook/react-emoji-story-script.d.ts +3 -1
  330. package/storybook/react-emoji-story-script.js +5 -31
  331. package/storybook/react-emoji-story-template.d.ts +3 -1
  332. package/storybook/react-emoji-story-template.js +45 -15
  333. package/storybook/react-icon-collection.d.ts +3 -1
  334. package/storybook/react-icon-collection.js +10 -42
  335. package/storybook/react-icon-story-script.d.ts +3 -1
  336. package/storybook/react-icon-story-script.js +5 -27
  337. package/storybook/react-icon-story-template.d.ts +3 -1
  338. package/storybook/react-icon-story-template.js +45 -14
  339. package/storybook/react-logo-collection.d.ts +3 -1
  340. package/storybook/react-logo-collection.js +10 -42
  341. package/storybook/react-logo-story-script.d.ts +3 -1
  342. package/storybook/react-logo-story-script.js +5 -27
  343. package/storybook/react-logo-story-template.d.ts +3 -1
  344. package/storybook/react-logo-story-template.js +45 -14
  345. package/storybook/react-pakistan-theme.d.ts +3 -1
  346. package/storybook/react-pakistan-theme.js +1 -31
  347. package/storybook/responsive-args.d.ts +11 -10
  348. package/storybook/responsive-args.js +1 -19
  349. package/storybook/responsive-component.d.ts +4 -2
  350. package/storybook/responsive-component.js +37 -23
  351. package/storybook/responsive-screens.d.ts +3 -1
  352. package/storybook/responsive-screens.js +1 -109
  353. package/storybook/theme.d.ts +17 -15
  354. package/storybook/theme.js +1 -1022
  355. package/api/stellar-solutions/app-user/index.d.ts +0 -51
  356. package/api/stellar-solutions/app-user/index.js +0 -210
  357. package/api/stellar-solutions/bank/index.d.ts +0 -59
  358. package/api/stellar-solutions/bank/index.js +0 -210
  359. package/api/stellar-solutions/branch/index.d.ts +0 -58
  360. package/api/stellar-solutions/branch/index.js +0 -220
  361. package/api/stellar-solutions/company/index.d.ts +0 -57
  362. package/api/stellar-solutions/company/index.js +0 -218
  363. package/api/stellar-solutions/company-report/index.d.ts +0 -15
  364. package/api/stellar-solutions/company-report/index.js +0 -74
  365. package/api/stellar-solutions/constants.d.ts +0 -19
  366. package/api/stellar-solutions/constants.js +0 -22
  367. package/api/stellar-solutions/contact/index.d.ts +0 -56
  368. package/api/stellar-solutions/contact/index.js +0 -217
  369. package/api/stellar-solutions/currency/index.d.ts +0 -55
  370. package/api/stellar-solutions/currency/index.js +0 -212
  371. package/api/stellar-solutions/customer/index.d.ts +0 -68
  372. package/api/stellar-solutions/customer/index.js +0 -249
  373. package/api/stellar-solutions/expense/index.d.ts +0 -58
  374. package/api/stellar-solutions/expense/index.js +0 -229
  375. package/api/stellar-solutions/expense-category/index.d.ts +0 -53
  376. package/api/stellar-solutions/expense-category/index.js +0 -214
  377. package/api/stellar-solutions/lead/index.d.ts +0 -51
  378. package/api/stellar-solutions/lead/index.js +0 -206
  379. package/api/stellar-solutions/menu-order/index.d.ts +0 -53
  380. package/api/stellar-solutions/menu-order/index.js +0 -202
  381. package/api/stellar-solutions/payment/index.d.ts +0 -65
  382. package/api/stellar-solutions/payment/index.js +0 -230
  383. package/api/stellar-solutions/payment-mode/index.d.ts +0 -53
  384. package/api/stellar-solutions/payment-mode/index.js +0 -191
  385. package/api/stellar-solutions/preference/index.d.ts +0 -25
  386. package/api/stellar-solutions/preference/index.js +0 -114
  387. package/api/stellar-solutions/product/index.d.ts +0 -64
  388. package/api/stellar-solutions/product/index.js +0 -235
  389. package/api/stellar-solutions/product-category/index.d.ts +0 -51
  390. package/api/stellar-solutions/product-category/index.js +0 -212
  391. package/api/stellar-solutions/profile/index.d.ts +0 -78
  392. package/api/stellar-solutions/profile/index.js +0 -234
  393. package/api/stellar-solutions/quote-invoice/index.d.ts +0 -97
  394. package/api/stellar-solutions/quote-invoice/index.js +0 -369
  395. package/api/stellar-solutions/quote-invoice-report/index.d.ts +0 -15
  396. package/api/stellar-solutions/quote-invoice-report/index.js +0 -74
  397. package/api/stellar-solutions/tax/index.d.ts +0 -55
  398. package/api/stellar-solutions/tax/index.js +0 -224
  399. package/api/stellar-solutions/types/common.js +0 -22
  400. package/api/stellar-solutions/types/erp.js +0 -73
  401. package/api/stellar-solutions/types/index.d.ts +0 -3
  402. package/api/stellar-solutions/types/index.js +0 -19
  403. package/api/stellar-solutions/types/pos.js +0 -61
  404. package/constants/index.d.ts +0 -12
  405. package/constants/index.js +0 -28
  406. package/factory/index.d.ts +0 -2
  407. package/factory/index.js +0 -18
  408. package/general/index.d.ts +0 -95
  409. package/general/index.js +0 -111
  410. package/index.d.ts +0 -28
  411. package/index.js +0 -44
  412. package/local-storage/index.d.ts +0 -4
  413. package/local-storage/index.js +0 -20
  414. package/setupTests.d.ts +0 -1
  415. package/setupTests.js +0 -52
  416. package/storybook/index.d.ts +0 -17
  417. package/storybook/index.js +0 -33
@@ -1,27 +1,5 @@
1
- "use strict";
2
- /**
3
- * A util function to print React Story for Icons
4
- *
5
- * @param fs any
6
- * @returns an auto generated icon story file
7
- * @author Taimoor Khan
8
- * @remarks React Icon Collection
9
- */
10
- /** End file docs */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.generateReactIconScript = void 0;
13
- var generateReactIconScript = function (fs) {
14
- var svgDir = './assets/';
15
- var saveDir = './scripts/';
16
- var scriptOutput = "# Generated by scripts/generate-script.js\n# DO NO EDIT\n\n";
17
- // Read root Svg emoji directory
18
- fs.readdirSync(svgDir).forEach(function (folderName) {
19
- if (folderName === '.DS_Store')
20
- return;
21
- var flowArray = folderName.split('-');
22
- var flow = flowArray[flowArray.length - 1];
23
- scriptOutput += "svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-".concat(flow, ".js -d src/").concat(folderName, " --ext tsx assets/").concat(folderName, "\n");
24
- });
25
- fs.writeFileSync("".concat(saveDir, "all-scripts.sh"), scriptOutput);
26
- };
27
- exports.generateReactIconScript = generateReactIconScript;
1
+ var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var l=(t,s)=>{for(var c in s)i(t,c,{get:s[c],enumerable:!0})},v=(t,s,c,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of o(s))!g.call(t,r)&&r!==c&&i(t,r,{get:()=>s[r],enumerable:!(e=a(s,r))||e.enumerable});return t};var y=t=>v(i({},"__esModule",{value:!0}),t);var S={};l(S,{generateReactIconScript:()=>D});module.exports=y(S);const D=t=>{const s="./assets/",c="./scripts/";let e=`# Generated by scripts/generate-script.js
2
+ # DO NO EDIT
3
+
4
+ `;t.readdirSync(s).forEach(r=>{if(r===".DS_Store")return;const n=r.split("-"),p=n[n.length-1];e+=`svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-${p}.js -d src/${r} --ext tsx assets/${r}
5
+ `}),t.writeFileSync(`${c}all-scripts.sh`,e)};0&&(module.exports={generateReactIconScript});
@@ -8,4 +8,6 @@
8
8
  * @remarks React Icon Collection
9
9
  */
10
10
  /** End file docs */
11
- export declare const reactIconStoryTemplate: (category: string, iconListDirName: string) => string;
11
+ declare const reactIconStoryTemplate: (category: string, iconListDirName: string) => string;
12
+
13
+ export { reactIconStoryTemplate };
@@ -1,15 +1,46 @@
1
- "use strict";
2
- /**
3
- * A util function to print React Story for Icons
4
- *
5
- * @param category string
6
- * @param iconListDirName string
7
- * @returns an auto generated icon story file
8
- * @author Taimoor Khan
9
- * @remarks React Icon Collection
1
+ var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var i=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},I=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of p(t))!a.call(e,r)&&r!==n&&o(e,r,{get:()=>t[r],enumerable:!(c=m(t,r))||c.enumerable});return e};var s=e=>I(o({},"__esModule",{value:!0}),e);var S={};i(S,{reactIconStoryTemplate:()=>l});module.exports=s(S);const l=(e,t)=>`/*
2
+ * Generated by scripts/generate-icons.js
3
+ * DO NOT EDIT!
10
4
  */
11
- /** End file docs */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.reactIconStoryTemplate = void 0;
14
- var reactIconStoryTemplate = function (category, iconListDirName) { return "/*\n * Generated by scripts/generate-icons.js\n * DO NOT EDIT!\n */\n\nimport React, { ReactElement } from 'react';\nimport { IconWrapper, IconTextWrapper, IconItem } from '../styled';\nimport { StyledStory } from '../styled-app';\nimport { ICON_LIST } from './".concat(iconListDirName, "';\n\nconst iconStyle = { width: '7rem', height: '7rem' };\n\nconst renderItem = (\n item: { icon: React.FC<React.SVGProps<SVGSVGElement>>, name: string }\n): ReactElement => {\n const Icon = item.icon;\n return (\n <IconItem\n key={item.name}\n >\n <Icon style={iconStyle} />\n <IconTextWrapper>\n {item.name}\n </IconTextWrapper>\n </IconItem>\n );\n};\n\nconst icons = ICON_LIST.map(renderItem);\n\nexport const ").concat(category, " = (): ReactElement => (\n <StyledStory>\n <IconWrapper>\n {icons}\n </IconWrapper>\n </StyledStory>\n);\n\nexport default {\n title: 'Icon/").concat(category, "',\n\n parameters: {\n component: ").concat(category, ",\n },\n};\n"); };
15
- exports.reactIconStoryTemplate = reactIconStoryTemplate;
5
+
6
+ import React, { ReactElement } from 'react';
7
+ import { IconWrapper, IconTextWrapper, IconItem } from '../styled';
8
+ import { StyledStory } from '../styled-app';
9
+ import { ICON_LIST } from './${t}';
10
+
11
+ const iconStyle = { width: '7rem', height: '7rem' };
12
+
13
+ const renderItem = (
14
+ item: { icon: React.FC<React.SVGProps<SVGSVGElement>>, name: string }
15
+ ): ReactElement => {
16
+ const Icon = item.icon;
17
+ return (
18
+ <IconItem
19
+ key={item.name}
20
+ >
21
+ <Icon style={iconStyle} />
22
+ <IconTextWrapper>
23
+ {item.name}
24
+ </IconTextWrapper>
25
+ </IconItem>
26
+ );
27
+ };
28
+
29
+ const icons = ICON_LIST.map(renderItem);
30
+
31
+ export const ${e} = (): ReactElement => (
32
+ <StyledStory>
33
+ <IconWrapper>
34
+ {icons}
35
+ </IconWrapper>
36
+ </StyledStory>
37
+ );
38
+
39
+ export default {
40
+ title: 'Icon/${e}',
41
+
42
+ parameters: {
43
+ component: ${e},
44
+ },
45
+ };
46
+ `;0&&(module.exports={reactIconStoryTemplate});
@@ -8,4 +8,6 @@
8
8
  * @remarks React Logo Collection
9
9
  */
10
10
  /** End file docs */
11
- export declare const generateReactLogos: (fs: any) => void;
11
+ declare const generateReactLogos: (fs: any) => void;
12
+
13
+ export { generateReactLogos };
@@ -1,43 +1,11 @@
1
- "use strict";
2
- /**
3
- * A util function to read svg logo directory and its content
4
- * and constructs logo stories for all of it's subdirectories
5
- *
6
- * @param fs any
7
- * @returns an auto generated icon story file
8
- * @author Taimoor Khan
9
- * @remarks React Logo Collection
1
+ var c=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var d=(t,o)=>{for(var s in o)c(t,s,{get:o[s],enumerable:!0})},D=(t,o,s,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of l(o))!$.call(t,r)&&r!==s&&c(t,r,{get:()=>o[r],enumerable:!(e=S(o,r))||e.enumerable});return t};var L=t=>D(c({},"__esModule",{value:!0}),t);var v={};d(v,{generateReactLogos:()=>_});module.exports=L(v);var g=require("./react-logo-story-template");const _=t=>{const o="./assets/",s="./src/__stories__/";let e="",r="";t.readdirSync(o).forEach(n=>{if(n===".DS_Store")return;const a=`${o}${n}`;e=`/**
2
+ * Generated by scripts/generate-logos.js
3
+ * DO NOT EDIT!
10
4
  */
11
- /** End file docs */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.generateReactLogos = void 0;
14
- var react_logo_story_template_1 = require("./react-logo-story-template");
15
- var generateReactLogos = function (fs) {
16
- var logoDir = './assets/';
17
- var saveDir = './src/__stories__/';
18
- var logoListOutput = '';
19
- var level1FileName = '';
20
- // Read root Logo directory
21
- fs.readdirSync(logoDir).forEach(function (fileName) {
22
- if (fileName === '.DS_Store')
23
- return;
24
- var level1Dir = "".concat(logoDir).concat(fileName);
25
- logoListOutput = "/**\n * Generated by scripts/generate-logos.js\n * DO NOT EDIT!\n */\n\nimport * as Logos from '../".concat(fileName, "';\n\nexport const LOGO_LIST = [\n");
26
- // Read level1-directory
27
- fs.readdirSync(level1Dir).forEach(function (_level1FileName) {
28
- if (_level1FileName === '.DS_Store')
29
- return;
30
- level1FileName = _level1FileName;
31
- logoListOutput += " { logo: Logos.".concat(level1FileName.split('.')[0], ", name: '").concat(level1FileName.split('.')[0], "' },\n");
32
- });
33
- logoListOutput += "];\n";
34
- var categoryName = fileName
35
- .split('-')
36
- .map(function (str) { return str[0].toUpperCase() + str.slice(1); })
37
- .join('');
38
- var story = (0, react_logo_story_template_1.reactLogoStoryTemplate)(categoryName, fileName);
39
- fs.writeFileSync("".concat(saveDir, "/").concat(fileName, ".ts"), logoListOutput);
40
- fs.writeFileSync("".concat(saveDir, "/").concat(fileName, ".story.tsx"), story);
41
- });
42
- };
43
- exports.generateReactLogos = generateReactLogos;
5
+
6
+ import * as Logos from '../${n}';
7
+
8
+ export const LOGO_LIST = [
9
+ `,t.readdirSync(a).forEach(i=>{i!==".DS_Store"&&(r=i,e+=` { logo: Logos.${r.split(".")[0]}, name: '${r.split(".")[0]}' },
10
+ `)}),e+=`];
11
+ `;const p=n.split("-").map(i=>i[0].toUpperCase()+i.slice(1)).join(""),y=(0,g.reactLogoStoryTemplate)(p,n);t.writeFileSync(`${s}/${n}.ts`,e),t.writeFileSync(`${s}/${n}.story.tsx`,y)})};0&&(module.exports={generateReactLogos});
@@ -7,4 +7,6 @@
7
7
  * @remarks React Logo Collection
8
8
  */
9
9
  /** End file docs */
10
- export declare const generateReactLogoScript: (fs: any) => void;
10
+ declare const generateReactLogoScript: (fs: any) => void;
11
+
12
+ export { generateReactLogoScript };
@@ -1,27 +1,5 @@
1
- "use strict";
2
- /**
3
- * A util function to print React Story for Logos
4
- *
5
- * @param fs any
6
- * @returns an auto generated logo story file
7
- * @author Taimoor Khan
8
- * @remarks React Logo Collection
9
- */
10
- /** End file docs */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.generateReactLogoScript = void 0;
13
- var generateReactLogoScript = function (fs) {
14
- var svgDir = './assets/';
15
- var saveDir = './scripts/';
16
- var scriptOutput = "# Generated by scripts/generate-script.js\n# DO NO EDIT\n\n";
17
- // Read root Svg logo directory
18
- fs.readdirSync(svgDir).forEach(function (folderName) {
19
- if (folderName === '.DS_Store')
20
- return;
21
- var flowArray = folderName.split('-');
22
- var flow = flowArray[flowArray.length - 1];
23
- scriptOutput += "svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-".concat(flow, ".js -d src/").concat(folderName, " --ext tsx assets/").concat(folderName, "\n");
24
- });
25
- fs.writeFileSync("".concat(saveDir, "all-scripts.sh"), scriptOutput);
26
- };
27
- exports.generateReactLogoScript = generateReactLogoScript;
1
+ var i=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var l=(t,s)=>{for(var e in s)i(t,e,{get:s[e],enumerable:!0})},v=(t,s,e,c)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of a(s))!g.call(t,r)&&r!==e&&i(t,r,{get:()=>s[r],enumerable:!(c=o(s,r))||c.enumerable});return t};var y=t=>v(i({},"__esModule",{value:!0}),t);var S={};l(S,{generateReactLogoScript:()=>D});module.exports=y(S);const D=t=>{const s="./assets/",e="./scripts/";let c=`# Generated by scripts/generate-script.js
2
+ # DO NO EDIT
3
+
4
+ `;t.readdirSync(s).forEach(r=>{if(r===".DS_Store")return;const n=r.split("-"),p=n[n.length-1];c+=`svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-${p}.js -d src/${r} --ext tsx assets/${r}
5
+ `}),t.writeFileSync(`${e}all-scripts.sh`,c)};0&&(module.exports={generateReactLogoScript});
@@ -8,4 +8,6 @@
8
8
  * @remarks React Logo Collection
9
9
  */
10
10
  /** End file docs */
11
- export declare const reactLogoStoryTemplate: (category: string, logoListDirName: string) => string;
11
+ declare const reactLogoStoryTemplate: (category: string, logoListDirName: string) => string;
12
+
13
+ export { reactLogoStoryTemplate };
@@ -1,15 +1,46 @@
1
- "use strict";
2
- /**
3
- * A util function to print React Story for Logos
4
- *
5
- * @param category string
6
- * @param logoListDirName string
7
- * @returns an auto generated icon story file
8
- * @author Taimoor Khan
9
- * @remarks React Logo Collection
1
+ var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var a=(o,e)=>{for(var r in e)m(o,r,{get:e[r],enumerable:!0})},l=(o,e,r,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!s.call(o,t)&&t!==r&&m(o,t,{get:()=>e[t],enumerable:!(p=g(e,t))||p.enumerable});return o};var L=o=>l(m({},"__esModule",{value:!0}),o);var c={};a(c,{reactLogoStoryTemplate:()=>i});module.exports=L(c);const i=(o,e)=>`/*
2
+ * Generated by scripts/generate-logos.js
3
+ * DO NOT EDIT!
10
4
  */
11
- /** End file docs */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.reactLogoStoryTemplate = void 0;
14
- var reactLogoStoryTemplate = function (category, logoListDirName) { return "/*\n * Generated by scripts/generate-logos.js\n * DO NOT EDIT!\n */\n\nimport React, { FC, ReactElement } from 'react';\nimport { LogoWrapper, LogoTextWrapper, LogoItem, ILogoProps } from '../styled';\nimport { StyledStory } from '../styled-app';\nimport { LOGO_LIST } from './".concat(logoListDirName, "';\n\nconst logoStyle = { width: '7rem', height: '7rem' };\n\nconst renderItem = (\n item: { logo: FC<ILogoProps>, name: string }\n): ReactElement => {\n const Logo = item.logo;\n return (\n <LogoItem\n key={item.name}\n >\n <Logo style={logoStyle} />\n <LogoTextWrapper>\n {item.name}\n </LogoTextWrapper>\n </LogoItem>\n );\n};\n\nconst logos = LOGO_LIST.map(renderItem);\n\nexport const ").concat(category, " = (): ReactElement => (\n <StyledStory>\n <LogoWrapper>\n {logos}\n </LogoWrapper>\n </StyledStory>\n);\n\nexport default {\n title: 'Logo/").concat(category, "',\n\n parameters: {\n component: ").concat(category, ",\n },\n};\n"); };
15
- exports.reactLogoStoryTemplate = reactLogoStoryTemplate;
5
+
6
+ import React, { FC, ReactElement } from 'react';
7
+ import { LogoWrapper, LogoTextWrapper, LogoItem, ILogoProps } from '../styled';
8
+ import { StyledStory } from '../styled-app';
9
+ import { LOGO_LIST } from './${e}';
10
+
11
+ const logoStyle = { width: '7rem', height: '7rem' };
12
+
13
+ const renderItem = (
14
+ item: { logo: FC<ILogoProps>, name: string }
15
+ ): ReactElement => {
16
+ const Logo = item.logo;
17
+ return (
18
+ <LogoItem
19
+ key={item.name}
20
+ >
21
+ <Logo style={logoStyle} />
22
+ <LogoTextWrapper>
23
+ {item.name}
24
+ </LogoTextWrapper>
25
+ </LogoItem>
26
+ );
27
+ };
28
+
29
+ const logos = LOGO_LIST.map(renderItem);
30
+
31
+ export const ${o} = (): ReactElement => (
32
+ <StyledStory>
33
+ <LogoWrapper>
34
+ {logos}
35
+ </LogoWrapper>
36
+ </StyledStory>
37
+ );
38
+
39
+ export default {
40
+ title: 'Logo/${o}',
41
+
42
+ parameters: {
43
+ component: ${o},
44
+ },
45
+ };
46
+ `;0&&(module.exports={reactLogoStoryTemplate});
@@ -1,4 +1,4 @@
1
- export declare const reactPakistanTheme: {
1
+ declare const reactPakistanTheme: {
2
2
  base: string;
3
3
  colorPrimary: string;
4
4
  colorSecondary: string;
@@ -21,3 +21,5 @@ export declare const reactPakistanTheme: {
21
21
  brandUrl: string;
22
22
  brandImage: string;
23
23
  };
24
+
25
+ export { reactPakistanTheme };
@@ -1,31 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reactPakistanTheme = void 0;
4
- exports.reactPakistanTheme = {
5
- base: 'light',
6
- colorPrimary: 'hotpink',
7
- colorSecondary: 'deepskyblue',
8
- // UI
9
- appBg: 'white',
10
- appContentBg: 'silver',
11
- appBorderColor: 'grey',
12
- appBorderRadius: 4,
13
- // Typography
14
- fontBase: '"Open Sans", sans-serif',
15
- fontCode: 'monospace',
16
- // Text colors
17
- textColor: 'black',
18
- textInverseColor: 'rgba(255,255,255,0.9)',
19
- // Toolbar default and active colors
20
- barTextColor: 'silver',
21
- barSelectedColor: 'black',
22
- barBg: 'hotpink',
23
- // Form colors
24
- inputBg: 'white',
25
- inputBorder: 'silver',
26
- inputTextColor: 'black',
27
- inputBorderRadius: 4,
28
- brandTitle: 'React Commons Collection',
29
- brandUrl: 'https://github.com/Taimoormk/react-commons-collection',
30
- brandImage: 'https://res.cloudinary.com/dq6hflqwx/image/upload/v1565548545/GitHub/React_Pakistan_Storybook_Logo.jpg',
31
- };
1
+ var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var s=(e,o)=>{for(var t in o)a(e,t,{get:o[t],enumerable:!0})},c=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of l(o))!p.call(e,r)&&r!==t&&a(e,r,{get:()=>o[r],enumerable:!(n=i(o,r))||n.enumerable});return e};var d=e=>c(a({},"__esModule",{value:!0}),e);var m={};s(m,{reactPakistanTheme:()=>b});module.exports=d(m);const b={base:"light",colorPrimary:"hotpink",colorSecondary:"deepskyblue",appBg:"white",appContentBg:"silver",appBorderColor:"grey",appBorderRadius:4,fontBase:'"Open Sans", sans-serif',fontCode:"monospace",textColor:"black",textInverseColor:"rgba(255,255,255,0.9)",barTextColor:"silver",barSelectedColor:"black",barBg:"hotpink",inputBg:"white",inputBorder:"silver",inputTextColor:"black",inputBorderRadius:4,brandTitle:"React Commons Collection",brandUrl:"https://github.com/Taimoormk/react-commons-collection",brandImage:"https://res.cloudinary.com/dq6hflqwx/image/upload/v1565548545/GitHub/React_Pakistan_Storybook_Logo.jpg"};0&&(module.exports={reactPakistanTheme});
@@ -1,15 +1,15 @@
1
- export declare const responsiveArgs: IResponsiveArgs;
2
- export declare const mobileS = "";
3
- export declare const mobileM = "";
4
- export declare const mobileL = "";
5
- export declare const tablet = "";
6
- export declare const laptop = "";
7
- export declare const laptopL = "";
8
- export declare const desktop = "";
1
+ declare const responsiveArgs: IResponsiveArgs;
2
+ declare const mobileS = "";
3
+ declare const mobileM = "";
4
+ declare const mobileL = "";
5
+ declare const tablet = "";
6
+ declare const laptop = "";
7
+ declare const laptopL = "";
8
+ declare const desktop = "";
9
9
  interface IControlText {
10
10
  control: string;
11
11
  }
12
- export interface IResponsiveArgs {
12
+ interface IResponsiveArgs {
13
13
  desktop: IControlText;
14
14
  laptop: IControlText;
15
15
  laptopL: IControlText;
@@ -18,4 +18,5 @@ export interface IResponsiveArgs {
18
18
  mobileS: IControlText;
19
19
  tablet: IControlText;
20
20
  }
21
- export {};
21
+
22
+ export { type IResponsiveArgs, desktop, laptop, laptopL, mobileL, mobileM, mobileS, responsiveArgs, tablet };
@@ -1,19 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.desktop = exports.laptopL = exports.laptop = exports.tablet = exports.mobileL = exports.mobileM = exports.mobileS = exports.responsiveArgs = void 0;
4
- exports.responsiveArgs = {
5
- desktop: { control: 'text' },
6
- laptop: { control: 'text' },
7
- laptopL: { control: 'text' },
8
- mobileL: { control: 'text' },
9
- mobileM: { control: 'text' },
10
- mobileS: { control: 'text' },
11
- tablet: { control: 'text' },
12
- };
13
- exports.mobileS = '';
14
- exports.mobileM = '';
15
- exports.mobileL = '';
16
- exports.tablet = '';
17
- exports.laptop = '';
18
- exports.laptopL = '';
19
- exports.desktop = '';
1
+ var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var c=(o,t)=>{for(var l in t)r(o,l,{get:t[l],enumerable:!0})},i=(o,t,l,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of x(t))!s.call(o,e)&&e!==l&&r(o,e,{get:()=>t[e],enumerable:!(n=p(t,e))||n.enumerable});return o};var b=o=>i(r({},"__esModule",{value:!0}),o);var k={};c(k,{desktop:()=>d,laptop:()=>L,laptopL:()=>g,mobileL:()=>C,mobileM:()=>m,mobileS:()=>I,responsiveArgs:()=>a,tablet:()=>T});module.exports=b(k);const a={desktop:{control:"text"},laptop:{control:"text"},laptopL:{control:"text"},mobileL:{control:"text"},mobileM:{control:"text"},mobileS:{control:"text"},tablet:{control:"text"}},I="",m="",C="",T="",L="",g="",d="";0&&(module.exports={desktop,laptop,laptopL,mobileL,mobileM,mobileS,responsiveArgs,tablet});
@@ -1,4 +1,4 @@
1
- export interface IResponsiveProps {
1
+ interface IResponsiveProps {
2
2
  /**
3
3
  * Specifies the CSS block on desktop devices
4
4
  */
@@ -28,4 +28,6 @@ export interface IResponsiveProps {
28
28
  */
29
29
  $tablet?: string;
30
30
  }
31
- export declare const responsiveComponent: ({ $desktop, $laptop, $laptopL, $mobileL, $mobileM, $mobileS, $tablet, }: IResponsiveProps) => string;
31
+ declare const responsiveComponent: ({ $desktop, $laptop, $laptopL, $mobileL, $mobileM, $mobileS, $tablet, }: IResponsiveProps) => string;
32
+
33
+ export { type IResponsiveProps, responsiveComponent };
@@ -1,23 +1,37 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.responsiveComponent = void 0;
4
- var theme_1 = require("./theme");
5
- var responsiveComponent = function (_a) {
6
- var $desktop = _a.$desktop, $laptop = _a.$laptop, $laptopL = _a.$laptopL, $mobileL = _a.$mobileL, $mobileM = _a.$mobileM, $mobileS = _a.$mobileS, $tablet = _a.$tablet;
7
- var mobileSToReturn = $mobileS &&
8
- "\n @media ".concat(theme_1.theme.breakpoints.mobileS, " {\n ").concat($mobileS, "\n }\n ");
9
- var mobileMToReturn = $mobileM &&
10
- "\n @media ".concat(theme_1.theme.breakpoints.mobileM, " {\n ").concat($mobileM, "\n }\n ");
11
- var mobileLToReturn = $mobileL &&
12
- "\n @media ".concat(theme_1.theme.breakpoints.mobileL, " {\n ").concat($mobileL, "\n }\n ");
13
- var tabletToReturn = $tablet &&
14
- "\n @media ".concat(theme_1.theme.breakpoints.tablet, " {\n ").concat($tablet, "\n }\n ");
15
- var laptopToReturn = $laptop &&
16
- "\n @media ".concat(theme_1.theme.breakpoints.laptop, " {\n ").concat($laptop, "\n }\n ");
17
- var laptopLToReturn = $laptopL &&
18
- "\n @media ".concat(theme_1.theme.breakpoints.laptopL, " {\n ").concat($laptopL, "\n }\n ");
19
- var desktopToReturn = $desktop &&
20
- "\n @media ".concat(theme_1.theme.breakpoints.desktop, " {\n ").concat($desktop, "\n }\n ");
21
- return "\n ".concat(mobileSToReturn, "\n ").concat(mobileMToReturn, "\n ").concat(mobileLToReturn, "\n ").concat(tabletToReturn, "\n ").concat(laptopToReturn, "\n ").concat(laptopLToReturn, "\n ").concat(desktopToReturn, "\n ");
22
- };
23
- exports.responsiveComponent = responsiveComponent;
1
+ var r=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var i in t)r(e,i,{get:t[i],enumerable:!0})},L=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(s=R(t,o))||s.enumerable});return e};var v=e=>L(r({},"__esModule",{value:!0}),e);var x={};T(x,{responsiveComponent:()=>f});module.exports=v(x);var n=require("./theme");const f=({$desktop:e,$laptop:t,$laptopL:i,$mobileL:s,$mobileM:o,$mobileS:p,$tablet:a})=>{const $=p&&`
2
+ @media ${n.theme.breakpoints.mobileS} {
3
+ ${p}
4
+ }
5
+ `,m=o&&`
6
+ @media ${n.theme.breakpoints.mobileM} {
7
+ ${o}
8
+ }
9
+ `,b=s&&`
10
+ @media ${n.theme.breakpoints.mobileL} {
11
+ ${s}
12
+ }
13
+ `,l=a&&`
14
+ @media ${n.theme.breakpoints.tablet} {
15
+ ${a}
16
+ }
17
+ `,c=t&&`
18
+ @media ${n.theme.breakpoints.laptop} {
19
+ ${t}
20
+ }
21
+ `,d=i&&`
22
+ @media ${n.theme.breakpoints.laptopL} {
23
+ ${i}
24
+ }
25
+ `,k=e&&`
26
+ @media ${n.theme.breakpoints.desktop} {
27
+ ${e}
28
+ }
29
+ `;return`
30
+ ${$}
31
+ ${m}
32
+ ${b}
33
+ ${l}
34
+ ${c}
35
+ ${d}
36
+ ${k}
37
+ `};0&&(module.exports={responsiveComponent});
@@ -1,4 +1,4 @@
1
- export declare const responsiveScreens: {
1
+ declare const responsiveScreens: {
2
2
  mobileSMin: {
3
3
  name: string;
4
4
  styles: {
@@ -104,3 +104,5 @@ export declare const responsiveScreens: {
104
104
  type: string;
105
105
  };
106
106
  };
107
+
108
+ export { responsiveScreens };
@@ -1,109 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.responsiveScreens = void 0;
4
- exports.responsiveScreens = {
5
- mobileSMin: {
6
- name: 'MobileSMin',
7
- styles: {
8
- height: '1024px',
9
- width: '320px',
10
- },
11
- type: 'mobile',
12
- },
13
- mobileSMax: {
14
- name: 'MobileSMax',
15
- styles: {
16
- height: '1024px',
17
- width: '374px',
18
- },
19
- type: 'mobile',
20
- },
21
- mobileMMin: {
22
- name: 'MobileMMin',
23
- styles: {
24
- height: '1024px',
25
- width: '375px',
26
- },
27
- type: 'mobile',
28
- },
29
- mobileMMax: {
30
- name: 'MobileMMax',
31
- styles: {
32
- height: '1024px',
33
- width: '424px',
34
- },
35
- type: 'mobile',
36
- },
37
- mobileLMin: {
38
- name: 'MobileLMin',
39
- styles: {
40
- height: '1024px',
41
- width: '425px',
42
- },
43
- type: 'mobile',
44
- },
45
- mobileLMax: {
46
- name: 'MobileLMax',
47
- styles: {
48
- height: '1024px',
49
- width: '767px',
50
- },
51
- type: 'mobile',
52
- },
53
- tabletMin: {
54
- name: 'TabletMin',
55
- styles: {
56
- height: '100%',
57
- width: '768px',
58
- },
59
- type: 'mobile',
60
- },
61
- tabletMax: {
62
- name: 'TabletMax',
63
- styles: {
64
- height: '100%',
65
- width: '1023px',
66
- },
67
- type: 'mobile',
68
- },
69
- laptopMin: {
70
- name: 'LaptopMin',
71
- styles: {
72
- height: '100%',
73
- width: '1024',
74
- },
75
- type: 'mobile',
76
- },
77
- laptopMax: {
78
- name: 'LaptopMax',
79
- styles: {
80
- height: '100%',
81
- width: '1439px',
82
- },
83
- type: 'mobile',
84
- },
85
- laptopLMin: {
86
- name: 'LaptopLMin',
87
- styles: {
88
- height: '100%',
89
- width: '1440px',
90
- },
91
- type: 'mobile',
92
- },
93
- laptopLMax: {
94
- name: 'LaptopLMax',
95
- styles: {
96
- height: '100%',
97
- width: '2559px',
98
- },
99
- type: 'mobile',
100
- },
101
- desktop: {
102
- name: 'Desktop',
103
- styles: {
104
- height: '100%',
105
- width: '2560px',
106
- },
107
- type: 'mobile',
108
- },
109
- };
1
+ var l=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var p in e)l(t,p,{get:e[p],enumerable:!0})},s=(t,e,p,h)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of a(e))!M.call(t,i)&&i!==p&&l(t,i,{get:()=>e[i],enumerable:!(h=o(e,i))||h.enumerable});return t};var x=t=>s(l({},"__esModule",{value:!0}),t);var n={};m(n,{responsiveScreens:()=>b});module.exports=x(n);const b={mobileSMin:{name:"MobileSMin",styles:{height:"1024px",width:"320px"},type:"mobile"},mobileSMax:{name:"MobileSMax",styles:{height:"1024px",width:"374px"},type:"mobile"},mobileMMin:{name:"MobileMMin",styles:{height:"1024px",width:"375px"},type:"mobile"},mobileMMax:{name:"MobileMMax",styles:{height:"1024px",width:"424px"},type:"mobile"},mobileLMin:{name:"MobileLMin",styles:{height:"1024px",width:"425px"},type:"mobile"},mobileLMax:{name:"MobileLMax",styles:{height:"1024px",width:"767px"},type:"mobile"},tabletMin:{name:"TabletMin",styles:{height:"100%",width:"768px"},type:"mobile"},tabletMax:{name:"TabletMax",styles:{height:"100%",width:"1023px"},type:"mobile"},laptopMin:{name:"LaptopMin",styles:{height:"100%",width:"1024"},type:"mobile"},laptopMax:{name:"LaptopMax",styles:{height:"100%",width:"1439px"},type:"mobile"},laptopLMin:{name:"LaptopLMin",styles:{height:"100%",width:"1440px"},type:"mobile"},laptopLMax:{name:"LaptopLMax",styles:{height:"100%",width:"2559px"},type:"mobile"},desktop:{name:"Desktop",styles:{height:"100%",width:"2560px"},type:"mobile"}};0&&(module.exports={responsiveScreens});