@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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- > @lets-events/react@12.11.8 build
3
+ > @lets-events/react@12.11.10 build
4
4
  > tsup src/index.tsx --format esm,cjs --dts --external react
5
5
 
6
6
  CLI Building entry: src/index.tsx
@@ -10,12 +10,12 @@
10
10
  CLI Target: es6
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 440.27 KB
14
- CJS ⚡️ Build success in 291ms
15
- ESM dist/index.mjs 424.13 KB
16
- ESM ⚡️ Build success in 292ms
13
+ CJS dist/index.js 440.38 KB
14
+ CJS ⚡️ Build success in 517ms
15
+ ESM dist/index.mjs 424.23 KB
16
+ ESM ⚡️ Build success in 522ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 6808ms
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
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.11.10
4
+
5
+ ### Patch Changes
6
+
7
+ - CheckboxGroup gap
8
+
9
+ ## 12.11.9
10
+
11
+ ### Patch Changes
12
+
13
+ - fix ES2015
14
+
3
15
  ## 12.11.8
4
16
 
5
17
  ### Patch Changes
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 = String(date.getHours()).padStart(2, "0");
14128
- const minutes = String(date.getMinutes()).padStart(2, "0");
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 = String(date.getHours()).padStart(2, "0");
14020
- const minutes = String(date.getMinutes()).padStart(2, "0");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.11.8",
3
+ "version": "12.11.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -5,6 +5,9 @@ import { typographyLabelValues } from "../types/typographyValues";
5
5
 
6
6
  export const CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
7
7
  fontFamily: "$default",
8
+ display: "flex",
9
+ flexDirection: "column",
10
+ gap: "$8",
8
11
  svg: {
9
12
  display: "none",
10
13
  },
@@ -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 = String(date.getHours()).padStart(2, "0");
109
- const minutes = String(date.getMinutes()).padStart(2, "0");
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 };