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