dce-reactkit 3.9.7 → 3.9.9

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/cjs/index.js CHANGED
@@ -937,6 +937,11 @@ const shared = `
937
937
  .tooltip {
938
938
  z-index: 9000000000 !important;
939
939
  }
940
+
941
+ /* Tooltip White Text */
942
+ .tooltip .tooltip-inner {
943
+ color: white !important;
944
+ }
940
945
  `;
941
946
 
942
947
  /**
@@ -1934,7 +1939,13 @@ const SimpleDateChooser = (props) => {
1934
1939
  }
1935
1940
  const monthName = getMonthName(month).full;
1936
1941
  // Year is start year +1 for each 12 months
1937
- const year = (startYear + (Math.floor(unmoddedMonth / 12)));
1942
+ let yearsToAdd = 0;
1943
+ let monthsOfYearsToAdd = unmoddedMonth;
1944
+ while (monthsOfYearsToAdd > 12) {
1945
+ monthsOfYearsToAdd -= 12;
1946
+ yearsToAdd += 1;
1947
+ }
1948
+ const year = startYear + yearsToAdd;
1938
1949
  // Figure out which days are allowed
1939
1950
  const days = [];
1940
1951
  const numDaysInMonth = (new Date(year, month, 0)).getDate();
@@ -1985,7 +1996,7 @@ const SimpleDateChooser = (props) => {
1985
1996
  });
1986
1997
  }
1987
1998
  });
1988
- return (React__default["default"].createElement("div", { className: "SimpleDateChooser d-inline-block", "aria-label": `date chooser with selected date: ${month} ${day}, ${year}` },
1999
+ return (React__default["default"].createElement("div", { className: "SimpleDateChooser d-inline-block", "aria-label": `date chooser with selected date: ${month}/${day}/${year}` },
1989
2000
  React__default["default"].createElement("select", { "aria-label": `month for ${ariaLabel}`, className: "custom-select d-inline-block mr-1", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-month`, value: `${month}-${year}`, onChange: (e) => {
1990
2001
  const choice = choices[e.target.selectedIndex];
1991
2002
  // Change day, month, and year