@star-insure/sdk 4.3.4 → 4.3.5
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/dist/sdk.cjs.development.js +17 -7
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +17 -7
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/DateOfBirthField.tsx +16 -4
package/dist/sdk.esm.js
CHANGED
|
@@ -1867,17 +1867,25 @@ function DateOfBirthField(_ref) {
|
|
|
1867
1867
|
day = _ref2[2];
|
|
1868
1868
|
|
|
1869
1869
|
var isValidDate = year && month && day && !isNaN(Date.parse(year + "-" + month + "-" + day));
|
|
1870
|
+
var styleReq = {
|
|
1871
|
+
backgroundPosition: 'top 10px right 3px, center right 10px'
|
|
1872
|
+
};
|
|
1873
|
+
var style = {
|
|
1874
|
+
backgroundPosition: 'right 0.5rem center',
|
|
1875
|
+
paddingRight: '1.5rem'
|
|
1876
|
+
};
|
|
1870
1877
|
return React__default.createElement("span", {
|
|
1871
1878
|
className: "flex flex-col gap-2"
|
|
1872
1879
|
}, React__default.createElement("span", {
|
|
1873
|
-
className: "flex
|
|
1880
|
+
className: "flex w-full border border-gray-300 rounded-lg bg-white"
|
|
1874
1881
|
}, React__default.createElement("select", {
|
|
1875
1882
|
name: name + "_day",
|
|
1876
1883
|
id: id + "_day",
|
|
1877
1884
|
value: day,
|
|
1878
|
-
className: "flex-grow focus:outline-none border-0",
|
|
1885
|
+
className: "flex-grow focus:outline-none border-0 !mr-[3px] lg:pl-4 xl:pl-2",
|
|
1879
1886
|
onChange: handleChange,
|
|
1880
|
-
required: isRequired
|
|
1887
|
+
required: isRequired,
|
|
1888
|
+
style: isRequired ? styleReq : style
|
|
1881
1889
|
}, React__default.createElement("option", {
|
|
1882
1890
|
value: ""
|
|
1883
1891
|
}, "Day"), dayOptions.map(function (option) {
|
|
@@ -1889,9 +1897,10 @@ function DateOfBirthField(_ref) {
|
|
|
1889
1897
|
name: name + "_month",
|
|
1890
1898
|
id: id + "_month",
|
|
1891
1899
|
value: month,
|
|
1892
|
-
className: "flex-grow focus:outline-none border-0",
|
|
1900
|
+
className: "flex-grow focus:outline-none border-0 !mr-[3px] lg:pl-4 xl:pl-2",
|
|
1893
1901
|
onChange: handleChange,
|
|
1894
|
-
required: isRequired
|
|
1902
|
+
required: isRequired,
|
|
1903
|
+
style: isRequired ? styleReq : style
|
|
1895
1904
|
}, React__default.createElement("option", {
|
|
1896
1905
|
value: ""
|
|
1897
1906
|
}, "Month"), monthOptions.map(function (option) {
|
|
@@ -1903,9 +1912,10 @@ function DateOfBirthField(_ref) {
|
|
|
1903
1912
|
name: name + "_year",
|
|
1904
1913
|
id: id + "_year",
|
|
1905
1914
|
value: year,
|
|
1906
|
-
className: "flex-grow focus:outline-none border-0",
|
|
1915
|
+
className: "flex-grow focus:outline-none border-0 !mr-[3px] lg:pl-4 xl:pl-2",
|
|
1907
1916
|
onChange: handleChange,
|
|
1908
|
-
required: isRequired
|
|
1917
|
+
required: isRequired,
|
|
1918
|
+
style: isRequired ? styleReq : style
|
|
1909
1919
|
}, React__default.createElement("option", {
|
|
1910
1920
|
value: ""
|
|
1911
1921
|
}, "Year"), yearOptions.map(function (option) {
|