jcicl 1.0.76 → 1.0.78

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 (76) hide show
  1. package/.chunks/Button.js +7 -6
  2. package/.chunks/ButtonBase.js +2 -1
  3. package/.chunks/CircularProgress.js +9 -8
  4. package/.chunks/DefaultPropsProvider.js +322 -336
  5. package/.chunks/Paper.js +6 -5
  6. package/.chunks/Popper.js +1 -1
  7. package/.chunks/Portal.js +13 -13
  8. package/.chunks/SwitchBase.js +14 -13
  9. package/.chunks/TextField.js +2 -1
  10. package/.chunks/clsx.js +16 -0
  11. package/.chunks/createSvgIcon.js +14 -13
  12. package/.chunks/eye.js +45 -0
  13. package/.chunks/index.js +19 -18
  14. package/AppContainer/AppContainer.js +323 -319
  15. package/Button/Button.js +80 -82
  16. package/Divider/Divider.js +13 -12
  17. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +3 -2
  18. package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +39 -39
  19. package/EditableInfoCard/EditableInfoCard.d.ts +1 -1
  20. package/EditableInfoCard/EditableInfoCard.js +25 -25
  21. package/ErrorBoundary/ErrorBoundary.d.ts +5 -5
  22. package/ErrorBoundary/ErrorBoundary.js +21 -19
  23. package/FormComponents/FormComponents.d.ts +1 -2
  24. package/FormContext/createFormContext.js +70 -62
  25. package/FormFields/FormFields.d.ts +1 -1
  26. package/FormFields/FormFields.js +31 -31
  27. package/FormInput/FormInput.d.ts +5 -3
  28. package/FormInput/FormInput.js +10 -8
  29. package/Input/Input.d.ts +6 -1
  30. package/Input/Input.js +35 -100
  31. package/LabeledCheckbox/LabeledCheckbox.js +7 -6
  32. package/LabeledDropdown/LabeledDropdown.d.ts +3 -0
  33. package/LabeledDropdown/LabeledDropdown.js +720 -795
  34. package/LabeledFormattedInput/LabeledFormattedInput.d.ts +23 -0
  35. package/LabeledFormattedInput/LabeledFormattedInput.js +95 -0
  36. package/LabeledFormattedInput/index.d.ts +1 -0
  37. package/LabeledFormattedInput/index.js +4 -0
  38. package/LabeledInput/LabeledInput.js +39 -51
  39. package/LabeledRadio/LabeledRadio.js +7 -6
  40. package/Memo/Memo.js +6 -5
  41. package/Nav/Nav.d.ts +1 -1
  42. package/Pagination/Pagination.d.ts +1 -2
  43. package/Pagination/Pagination.js +25 -24
  44. package/README.md +11 -6
  45. package/Stepper/Stepper.js +4 -3
  46. package/Table/Table.d.ts +7 -5
  47. package/Table/Table.js +5575 -5633
  48. package/Timer/Timer.js +26 -26
  49. package/Toast/Toaster.js +9 -9
  50. package/Tooltip/Tooltip.js +5 -4
  51. package/WelcomeCard/WelcomeCard.d.ts +1 -5
  52. package/WelcomeCard/WelcomeCard.js +45 -101
  53. package/assets/style.css +1 -1
  54. package/assets/tailwind.css +2 -2
  55. package/cn.d.ts +2 -0
  56. package/cn.js +2990 -0
  57. package/constants.d.ts +6 -0
  58. package/constants.js +55 -0
  59. package/cursorPositioning.d.ts +7 -0
  60. package/cursorPositioning.js +13 -0
  61. package/formatters.d.ts +17 -0
  62. package/formatters.js +83 -0
  63. package/inputTypes.d.ts +1 -0
  64. package/inputTypes.js +1 -0
  65. package/logger.d.ts +13 -0
  66. package/logger.js +9 -0
  67. package/maskers.d.ts +6 -0
  68. package/maskers.js +15 -0
  69. package/package.json +2 -1
  70. package/theme.d.ts +1 -0
  71. package/theme.js +9 -8
  72. package/themeUtils.js +58 -79
  73. package/utils.d.ts +8 -18
  74. package/utils.js +39 -89
  75. package/validators.d.ts +5 -0
  76. package/validators.js +12 -0
package/validators.js ADDED
@@ -0,0 +1,12 @@
1
+ const i = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()), n = (e) => {
2
+ if (!e) return !1;
3
+ const s = e.replace(/\D/g, "");
4
+ return !!(e.trim() == s && s.length >= 10 && s.length <= 16 || /^\s*(?:\+?1\s*(?:[-\s]\s*)?)?(?:\(\s*\d{3}\s*\)|\d{3})(?:\s*[-\s]\s*)?\d{3}(?:\s*[-\s]\s*)?\d{4}(?:\s*(?:#|x\.?|ext\.?|extension)\s*\d{1,6})?\s*$/.test(e.trim()));
5
+ }, r = (e) => /^\d{5}(?:\s*-?\s*\d{4})?$/.test(e), d = (e) => /^[a-zA-Z\s'.-]+$/.test(e), c = (e) => /^\d{3}-\d{2}-\d{4}$|^\d{9}$/.test(e);
6
+ export {
7
+ d as isValidCityName,
8
+ i as isValidEmail,
9
+ n as isValidPhoneNumber,
10
+ c as isValidSSN,
11
+ r as isValidZipCode
12
+ };