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.
- package/.chunks/Button.js +7 -6
- package/.chunks/ButtonBase.js +2 -1
- package/.chunks/CircularProgress.js +9 -8
- package/.chunks/DefaultPropsProvider.js +322 -336
- package/.chunks/Paper.js +6 -5
- package/.chunks/Popper.js +1 -1
- package/.chunks/Portal.js +13 -13
- package/.chunks/SwitchBase.js +14 -13
- package/.chunks/TextField.js +2 -1
- package/.chunks/clsx.js +16 -0
- package/.chunks/createSvgIcon.js +14 -13
- package/.chunks/eye.js +45 -0
- package/.chunks/index.js +19 -18
- package/AppContainer/AppContainer.js +323 -319
- package/Button/Button.js +80 -82
- package/Divider/Divider.js +13 -12
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +3 -2
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +39 -39
- package/EditableInfoCard/EditableInfoCard.d.ts +1 -1
- package/EditableInfoCard/EditableInfoCard.js +25 -25
- package/ErrorBoundary/ErrorBoundary.d.ts +5 -5
- package/ErrorBoundary/ErrorBoundary.js +21 -19
- package/FormComponents/FormComponents.d.ts +1 -2
- package/FormContext/createFormContext.js +70 -62
- package/FormFields/FormFields.d.ts +1 -1
- package/FormFields/FormFields.js +31 -31
- package/FormInput/FormInput.d.ts +5 -3
- package/FormInput/FormInput.js +10 -8
- package/Input/Input.d.ts +6 -1
- package/Input/Input.js +35 -100
- package/LabeledCheckbox/LabeledCheckbox.js +7 -6
- package/LabeledDropdown/LabeledDropdown.d.ts +3 -0
- package/LabeledDropdown/LabeledDropdown.js +720 -795
- package/LabeledFormattedInput/LabeledFormattedInput.d.ts +23 -0
- package/LabeledFormattedInput/LabeledFormattedInput.js +95 -0
- package/LabeledFormattedInput/index.d.ts +1 -0
- package/LabeledFormattedInput/index.js +4 -0
- package/LabeledInput/LabeledInput.js +39 -51
- package/LabeledRadio/LabeledRadio.js +7 -6
- package/Memo/Memo.js +6 -5
- package/Nav/Nav.d.ts +1 -1
- package/Pagination/Pagination.d.ts +1 -2
- package/Pagination/Pagination.js +25 -24
- package/README.md +11 -6
- package/Stepper/Stepper.js +4 -3
- package/Table/Table.d.ts +7 -5
- package/Table/Table.js +5575 -5633
- package/Timer/Timer.js +26 -26
- package/Toast/Toaster.js +9 -9
- package/Tooltip/Tooltip.js +5 -4
- package/WelcomeCard/WelcomeCard.d.ts +1 -5
- package/WelcomeCard/WelcomeCard.js +45 -101
- package/assets/style.css +1 -1
- package/assets/tailwind.css +2 -2
- package/cn.d.ts +2 -0
- package/cn.js +2990 -0
- package/constants.d.ts +6 -0
- package/constants.js +55 -0
- package/cursorPositioning.d.ts +7 -0
- package/cursorPositioning.js +13 -0
- package/formatters.d.ts +17 -0
- package/formatters.js +83 -0
- package/inputTypes.d.ts +1 -0
- package/inputTypes.js +1 -0
- package/logger.d.ts +13 -0
- package/logger.js +9 -0
- package/maskers.d.ts +6 -0
- package/maskers.js +15 -0
- package/package.json +2 -1
- package/theme.d.ts +1 -0
- package/theme.js +9 -8
- package/themeUtils.js +58 -79
- package/utils.d.ts +8 -18
- package/utils.js +39 -89
- package/validators.d.ts +5 -0
- 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
|
+
};
|