@lets-events/react 12.11.8 → 12.11.10
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lets-events/react@12.11.
|
|
3
|
+
> @lets-events/react@12.11.10 build
|
|
4
4
|
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
5
|
|
|
6
6
|
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
[34mCLI[39m Target: es6
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m440.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m424.
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m440.38 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 517ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m424.23 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 522ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
18
|
+
DTS ⚡️ Build success in -390813ms
|
|
19
19
|
DTS dist/index.d.mts 411.35 KB
|
|
20
20
|
DTS dist/index.d.ts 411.35 KB
|
|
21
21
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3164,6 +3164,9 @@ var import_themes9 = require("@radix-ui/themes");
|
|
|
3164
3164
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
3165
3165
|
var CheckboxGroupStyled = styled(import_themes9.CheckboxGroup.Root, {
|
|
3166
3166
|
fontFamily: "$default",
|
|
3167
|
+
display: "flex",
|
|
3168
|
+
flexDirection: "column",
|
|
3169
|
+
gap: "$8",
|
|
3167
3170
|
svg: {
|
|
3168
3171
|
display: "none"
|
|
3169
3172
|
},
|
|
@@ -14046,6 +14049,7 @@ var TimePickerFormField = (_a) => {
|
|
|
14046
14049
|
var import_react_hook_form16 = require("react-hook-form");
|
|
14047
14050
|
var import_react31 = require("react");
|
|
14048
14051
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
14052
|
+
var padTwoDigits = (value) => value < 10 ? `0${value}` : String(value);
|
|
14049
14053
|
var DateAndTimeFormField = (_a) => {
|
|
14050
14054
|
var _b = _a, {
|
|
14051
14055
|
name,
|
|
@@ -14124,8 +14128,8 @@ var DateAndTimeFormField = (_a) => {
|
|
|
14124
14128
|
if (isNaN(date.getTime())) {
|
|
14125
14129
|
return { selectedDateFromIso: void 0, selectedTimeFromIso: void 0 };
|
|
14126
14130
|
}
|
|
14127
|
-
const hours =
|
|
14128
|
-
const minutes =
|
|
14131
|
+
const hours = padTwoDigits(date.getHours());
|
|
14132
|
+
const minutes = padTwoDigits(date.getMinutes());
|
|
14129
14133
|
const time = `${hours}:${minutes}`;
|
|
14130
14134
|
return { selectedDateFromIso: date, selectedTimeFromIso: time };
|
|
14131
14135
|
} catch (e) {
|
package/dist/index.mjs
CHANGED
|
@@ -3043,6 +3043,9 @@ import { CheckboxGroup as CheckboxGroupRadix } from "@radix-ui/themes";
|
|
|
3043
3043
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
3044
3044
|
var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
|
|
3045
3045
|
fontFamily: "$default",
|
|
3046
|
+
display: "flex",
|
|
3047
|
+
flexDirection: "column",
|
|
3048
|
+
gap: "$8",
|
|
3046
3049
|
svg: {
|
|
3047
3050
|
display: "none"
|
|
3048
3051
|
},
|
|
@@ -13938,6 +13941,7 @@ var TimePickerFormField = (_a) => {
|
|
|
13938
13941
|
import { useController as useController7 } from "react-hook-form";
|
|
13939
13942
|
import { useCallback as useCallback9, useEffect as useEffect14, useMemo as useMemo5, useState as useState18 } from "react";
|
|
13940
13943
|
import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
13944
|
+
var padTwoDigits = (value) => value < 10 ? `0${value}` : String(value);
|
|
13941
13945
|
var DateAndTimeFormField = (_a) => {
|
|
13942
13946
|
var _b = _a, {
|
|
13943
13947
|
name,
|
|
@@ -14016,8 +14020,8 @@ var DateAndTimeFormField = (_a) => {
|
|
|
14016
14020
|
if (isNaN(date.getTime())) {
|
|
14017
14021
|
return { selectedDateFromIso: void 0, selectedTimeFromIso: void 0 };
|
|
14018
14022
|
}
|
|
14019
|
-
const hours =
|
|
14020
|
-
const minutes =
|
|
14023
|
+
const hours = padTwoDigits(date.getHours());
|
|
14024
|
+
const minutes = padTwoDigits(date.getMinutes());
|
|
14021
14025
|
const time = `${hours}:${minutes}`;
|
|
14022
14026
|
return { selectedDateFromIso: date, selectedTimeFromIso: time };
|
|
14023
14027
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -7,6 +7,9 @@ import { TimePicker, TimePickerProps } from "../TimePicker";
|
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState, type SyntheticEvent } from "react";
|
|
8
8
|
import { useToast } from "../Toast/hooks/useToast";
|
|
9
9
|
|
|
10
|
+
const padTwoDigits = (value: number) =>
|
|
11
|
+
value < 10 ? `0${value}` : String(value);
|
|
12
|
+
|
|
10
13
|
export type DateAndTimeFormFieldProps = Omit<
|
|
11
14
|
CalendarProps,
|
|
12
15
|
"selected" | "setSelected"
|
|
@@ -105,8 +108,8 @@ export const DateAndTimeFormField = ({
|
|
|
105
108
|
return { selectedDateFromIso: undefined, selectedTimeFromIso: undefined };
|
|
106
109
|
}
|
|
107
110
|
|
|
108
|
-
const hours =
|
|
109
|
-
const minutes =
|
|
111
|
+
const hours = padTwoDigits(date.getHours());
|
|
112
|
+
const minutes = padTwoDigits(date.getMinutes());
|
|
110
113
|
const time = `${hours}:${minutes}`;
|
|
111
114
|
|
|
112
115
|
return { selectedDateFromIso: date, selectedTimeFromIso: time };
|