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 +13 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/stylesheets/shared.css.d.ts +1 -1
- package/dist/esm/index.js +13 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/stylesheets/shared.css.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/SimpleDateChooser.tsx +8 -2
- package/src/stylesheets/shared.css.ts +5 -0
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Universal stylesheet
|
|
3
3
|
* @author Gabe Abrams
|
|
4
4
|
*/
|
|
5
|
-
declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n";
|
|
5
|
+
declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n\n/* Tooltip White Text */\n.tooltip .tooltip-inner {\n color: white !important;\n}\n";
|
|
6
6
|
export default shared;
|
package/package.json
CHANGED
|
@@ -94,7 +94,13 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
94
94
|
}
|
|
95
95
|
const monthName = getMonthName(month).full;
|
|
96
96
|
// Year is start year +1 for each 12 months
|
|
97
|
-
|
|
97
|
+
let yearsToAdd = 0;
|
|
98
|
+
let monthsOfYearsToAdd = unmoddedMonth;
|
|
99
|
+
while (monthsOfYearsToAdd > 12) {
|
|
100
|
+
monthsOfYearsToAdd -= 12;
|
|
101
|
+
yearsToAdd += 1;
|
|
102
|
+
}
|
|
103
|
+
const year = startYear + yearsToAdd;
|
|
98
104
|
|
|
99
105
|
// Figure out which days are allowed
|
|
100
106
|
const days = [];
|
|
@@ -174,7 +180,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
174
180
|
return (
|
|
175
181
|
<div
|
|
176
182
|
className="SimpleDateChooser d-inline-block"
|
|
177
|
-
aria-label={`date chooser with selected date: ${month}
|
|
183
|
+
aria-label={`date chooser with selected date: ${month}/${day}/${year}`}
|
|
178
184
|
>
|
|
179
185
|
{/* Month Chooser */}
|
|
180
186
|
<select
|