@liquidcommerce/elements-sdk 2.6.0-beta.28 → 2.6.0-beta.29

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.
@@ -68,7 +68,6 @@ export declare const ELEMENTS_FORM: {
68
68
  export declare const COMPONENT_TYPE: {
69
69
  readonly DRAWER: "drawer";
70
70
  readonly INPUT: "input";
71
- readonly BIRTHDATE_INPUT: "birthdate-input";
72
71
  readonly ENGRAVING_FORM: "engraving-form";
73
72
  readonly ENGRAVING_VIEW: "engraving-view";
74
73
  readonly BUTTONS_CART_OPEN: "buttons-cart-open";
@@ -1,2 +1 @@
1
- export * from './birthdate-input.component';
2
1
  export * from './input.component';
@@ -5,9 +5,13 @@ export interface IInputValidation {
5
5
  max?: number;
6
6
  pattern?: string;
7
7
  customValidator?: (value: string) => string | null;
8
+ minYear?: number;
9
+ maxYear?: number;
10
+ minAge?: number;
11
+ maxAge?: number;
8
12
  }
9
13
  export interface IInputComponentParams {
10
- inputType: 'text' | 'number' | 'email' | 'tel' | 'date';
14
+ inputType: 'text' | 'number' | 'email' | 'tel' | 'date' | 'birthdate';
11
15
  value?: string | null;
12
16
  placeholder?: string;
13
17
  className?: string;
@@ -31,6 +35,9 @@ export declare class InputComponent extends BaseComponent<IInputComponentParams,
31
35
  private validateEmail;
32
36
  private validateTel;
33
37
  private validateDate;
38
+ private parseDateString;
39
+ private calculateAge;
40
+ private validateDateConstraints;
34
41
  private isFieldComplete;
35
42
  private validateInput;
36
43
  private scheduleValidation;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.6.0-beta.28",
6
+ "version": "2.6.0-beta.29",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",
@@ -70,9 +70,9 @@
70
70
  "embeddable commerce"
71
71
  ],
72
72
  "devDependencies": {
73
- "@biomejs/biome": "2.3.10",
74
- "@commitlint/cli": "^20.3.0",
75
- "@commitlint/config-conventional": "^20.3.0",
73
+ "@biomejs/biome": "2.3.11",
74
+ "@commitlint/cli": "^20.3.1",
75
+ "@commitlint/config-conventional": "^20.3.1",
76
76
  "@rollup/plugin-alias": "^6.0.0",
77
77
  "@rollup/plugin-commonjs": "^29.0.0",
78
78
  "@rollup/plugin-json": "^6.1.0",
@@ -86,7 +86,7 @@
86
86
  "@semantic-release/npm": "^13.1.3",
87
87
  "@semantic-release/release-notes-generator": "^14.1.0",
88
88
  "@types/core-js": "^2.5.8",
89
- "@types/node": "^25.0.3",
89
+ "@types/node": "^25.0.8",
90
90
  "conventional-changelog-cli": "^5.0.0",
91
91
  "husky": "^9.1.7",
92
92
  "process": "^0.11.10",