@sunggang/ui-lib 0.1.62 → 0.1.63

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/index.esm.js CHANGED
@@ -71724,6 +71724,17 @@ var TableCaption = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
71724
71724
  });
71725
71725
  TableCaption.displayName = "TableCaption";
71726
71726
 
71727
+ var phone = /^09\d{8}$/;
71728
+ var email = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/i;
71729
+ var birthday = /^(19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])$/;
71730
+ var carrier = /^\/[0-9A-Z.+-]{7}$/;
71731
+ var Regex = {
71732
+ phone: phone,
71733
+ email: email,
71734
+ birthday: birthday,
71735
+ carrier: carrier
71736
+ };
71737
+
71727
71738
  var verifyTaiwanIdIntermediateString = function(input) {
71728
71739
  var idArray = input.split("");
71729
71740
  var intRadix = 10;
@@ -71843,4 +71854,4 @@ var verifyTaxId = function(idStr) {
71843
71854
  return isLegal;
71844
71855
  };
71845
71856
 
71846
- export { CkEditor, CustomUpload, DateRangePicker, DropImage, ReactDateRange, Spin, Switch, UiLibrary, verifyId, verifyTaxId };
71857
+ export { CkEditor, CustomUpload, DateRangePicker, DropImage, ReactDateRange, Regex, Spin, Switch, UiLibrary, verifyId, verifyTaxId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",
@@ -1 +1,3 @@
1
+ import Regex from './Regex';
2
+ export { Regex };
1
3
  export { verifyTaxId, verifyId } from './verify';