dce-reactkit 4.1.5 → 4.1.7
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 +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/types/LogAction.d.ts +2 -0
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/types/LogAction.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/SimpleDateChooser.tsx +2 -2
- package/src/components/SimpleTimeChooser.tsx +1 -1
- package/src/types/LogAction.ts +4 -0
package/dist/esm/index.js
CHANGED
|
@@ -2870,12 +2870,12 @@ const SimpleDateChooser = (props) => {
|
|
|
2870
2870
|
});
|
|
2871
2871
|
// Create body
|
|
2872
2872
|
body = (React__default.createElement("div", { className: "SimpleDateChooser-inner-container d-inline-block", "aria-label": `date chooser with selected date: ${month}/${day}/${year}` },
|
|
2873
|
-
React__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) => {
|
|
2873
|
+
React__default.createElement("select", { "aria-label": `month for ${ariaLabel}`, className: "custom-select form-select d-inline-block mr-1", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-month`, value: `${month}-${year}`, onChange: (e) => {
|
|
2874
2874
|
const choice = choices[e.target.selectedIndex];
|
|
2875
2875
|
// Change day, month, and year
|
|
2876
2876
|
onChange(choice.month, choice.days[0], choice.year);
|
|
2877
2877
|
} }, monthOptions),
|
|
2878
|
-
React__default.createElement("select", { "aria-label": `day for ${ariaLabel}`, className: "custom-select d-inline-block", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-day`, value: day, onChange: (e) => {
|
|
2878
|
+
React__default.createElement("select", { "aria-label": `day for ${ariaLabel}`, className: "custom-select form-select d-inline-block", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-day`, value: day, onChange: (e) => {
|
|
2879
2879
|
// Only change the day
|
|
2880
2880
|
onChange(month, Number.parseInt(e.target.value, 10), year);
|
|
2881
2881
|
} }, dayOptions)));
|
|
@@ -3008,7 +3008,7 @@ const SimpleTimeChooser = (props) => {
|
|
|
3008
3008
|
return (React__default.createElement("option", { key: numMinutesForChoice, value: numMinutesForChoice, "aria-label": `choose ${timeString}` }, timeString));
|
|
3009
3009
|
});
|
|
3010
3010
|
return (React__default.createElement("div", { className: "SimpleTimeChooser-container", "aria-label": `time chooser with selected time: ${formatTime(selectedTimeMin)}` },
|
|
3011
|
-
React__default.createElement("select", { "aria-label": `time for ${ariaLabel}`, className: "custom-select d-inline-block", style: { width: 'auto' }, id: `SimpleTimeChooser-${name}-time`, value: selectedTimeMin, onChange: (e) => {
|
|
3011
|
+
React__default.createElement("select", { "aria-label": `time for ${ariaLabel}`, className: "custom-select form-select d-inline-block", style: { width: 'auto' }, id: `SimpleTimeChooser-${name}-time`, value: selectedTimeMin, onChange: (e) => {
|
|
3012
3012
|
// Parse selector value (string)
|
|
3013
3013
|
const newTime = Number.parseInt(e.target.value, 10);
|
|
3014
3014
|
// Convert minutes since midnight to hour and minute
|
|
@@ -3848,6 +3848,10 @@ var LogAction;
|
|
|
3848
3848
|
LogAction["Jump"] = "Jump";
|
|
3849
3849
|
// Post a submission/message/etc. into the target
|
|
3850
3850
|
LogAction["Post"] = "Post";
|
|
3851
|
+
// Like something
|
|
3852
|
+
LogAction["Like"] = "Like";
|
|
3853
|
+
// Dislike something
|
|
3854
|
+
LogAction["Dislike"] = "Dislike";
|
|
3851
3855
|
// Unknown action
|
|
3852
3856
|
LogAction["Unknown"] = "Unknown";
|
|
3853
3857
|
})(LogAction || (LogAction = {}));
|