react-better-html 1.1.156 → 1.1.158

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/index.d.mts CHANGED
@@ -960,6 +960,9 @@ declare const generateRandomString: (stringLength: number, options?: {
960
960
  declare const getBrowser: () => BrowserName | undefined;
961
961
  declare const formatPhoneNumber: (phoneNumber: string) => string;
962
962
  declare const getFormErrorObject: <FormFields extends ReturnType<typeof useForm>["values"]>(formValues: FormFields) => PartialRecord<keyof FormFields, string>;
963
+ declare const eventPreventDefault: (event: React.MouseEvent) => void;
964
+ declare const eventStopPropagation: (event: React.MouseEvent) => void;
965
+ declare const eventPreventStop: (event: React.MouseEvent) => void;
963
966
 
964
967
  declare const lightenColor: (hexColor: string, amount: number) => string;
965
968
  declare const darkenColor: (hexColor: string, amount: number) => string;
@@ -1001,4 +1004,4 @@ type AlertsPluginOptions = {
1001
1004
  declare const defaultAlertsPluginOptions: Required<AlertsPluginOptions>;
1002
1005
  declare const alertsPlugin: BetterHtmlPluginConstructor<AlertsPluginOptions>;
1003
1006
 
1004
- export { type Alert, type AlertType, type AlertsPluginOptions, type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type ComponentHoverStyle, type ComponentMarginProps, type ComponentPaddingProps, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, Tooltip, type TooltipProps, type TooltipRef, type VerticalDividerProps, alertControls, alertsPlugin, colorThemeControls, countries, darkenColor, defaultAlertsPluginOptions, desaturateColor, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useAlertControls, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
1007
+ export { type Alert, type AlertType, type AlertsPluginOptions, type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type ComponentHoverStyle, type ComponentMarginProps, type ComponentPaddingProps, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, Tooltip, type TooltipProps, type TooltipRef, type VerticalDividerProps, alertControls, alertsPlugin, colorThemeControls, countries, darkenColor, defaultAlertsPluginOptions, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useAlertControls, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
package/dist/index.d.ts CHANGED
@@ -960,6 +960,9 @@ declare const generateRandomString: (stringLength: number, options?: {
960
960
  declare const getBrowser: () => BrowserName | undefined;
961
961
  declare const formatPhoneNumber: (phoneNumber: string) => string;
962
962
  declare const getFormErrorObject: <FormFields extends ReturnType<typeof useForm>["values"]>(formValues: FormFields) => PartialRecord<keyof FormFields, string>;
963
+ declare const eventPreventDefault: (event: React.MouseEvent) => void;
964
+ declare const eventStopPropagation: (event: React.MouseEvent) => void;
965
+ declare const eventPreventStop: (event: React.MouseEvent) => void;
963
966
 
964
967
  declare const lightenColor: (hexColor: string, amount: number) => string;
965
968
  declare const darkenColor: (hexColor: string, amount: number) => string;
@@ -1001,4 +1004,4 @@ type AlertsPluginOptions = {
1001
1004
  declare const defaultAlertsPluginOptions: Required<AlertsPluginOptions>;
1002
1005
  declare const alertsPlugin: BetterHtmlPluginConstructor<AlertsPluginOptions>;
1003
1006
 
1004
- export { type Alert, type AlertType, type AlertsPluginOptions, type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type ComponentHoverStyle, type ComponentMarginProps, type ComponentPaddingProps, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, Tooltip, type TooltipProps, type TooltipRef, type VerticalDividerProps, alertControls, alertsPlugin, colorThemeControls, countries, darkenColor, defaultAlertsPluginOptions, desaturateColor, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useAlertControls, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
1007
+ export { type Alert, type AlertType, type AlertsPluginOptions, type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type ComponentHoverStyle, type ComponentMarginProps, type ComponentPaddingProps, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, Tooltip, type TooltipProps, type TooltipRef, type VerticalDividerProps, alertControls, alertsPlugin, colorThemeControls, countries, darkenColor, defaultAlertsPluginOptions, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useAlertControls, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
package/dist/index.js CHANGED
@@ -60,6 +60,9 @@ __export(index_exports, {
60
60
  darkenColor: () => darkenColor,
61
61
  defaultAlertsPluginOptions: () => defaultAlertsPluginOptions,
62
62
  desaturateColor: () => desaturateColor,
63
+ eventPreventDefault: () => eventPreventDefault,
64
+ eventPreventStop: () => eventPreventStop,
65
+ eventStopPropagation: () => eventStopPropagation,
63
66
  formatPhoneNumber: () => formatPhoneNumber,
64
67
  generateRandomString: () => generateRandomString,
65
68
  getBrowser: () => getBrowser,
@@ -1651,10 +1654,24 @@ var import_styled_components = __toESM(require("styled-components"));
1651
1654
  var import_jsx_runtime = require("react/jsx-runtime");
1652
1655
  var import_react2 = require("react");
1653
1656
  var IconElement = import_styled_components.default.svg.withConfig({
1654
- shouldForwardProp: (prop) => !["normalStyle", "hoverStyle"].includes(prop)
1657
+ shouldForwardProp: (prop) => !["theme", "normalStyle", "hoverStyle", "hoverColor"].includes(prop)
1655
1658
  })`
1656
1659
  ${(props) => props.normalStyle}
1657
1660
 
1661
+ path {
1662
+ ${(props) => props.hoverColor ? `transition: ${props.theme.styles.transition};` : ""}
1663
+ }
1664
+
1665
+ &:hover {
1666
+ path.react-better-html-icon-path-with-fill {
1667
+ fill: ${(props) => props.hoverColor};
1668
+ }
1669
+
1670
+ path.react-better-html-icon-path-with-stroke {
1671
+ stroke: ${(props) => props.hoverColor};
1672
+ }
1673
+ }
1674
+
1658
1675
  &:hover {
1659
1676
  ${(props) => props.hoverStyle}
1660
1677
  }
@@ -1667,6 +1684,7 @@ var Icon = (0, import_react.forwardRef)(function Icon2({ name, size = 16, ...pro
1667
1684
  const ariaProps = useComponentPropsWithPrefix(props, "aria");
1668
1685
  const restProps = useComponentPropsWithoutStyle(props);
1669
1686
  const svgColor = props.color ?? theme2.colors.textPrimary;
1687
+ const svgHoverColorColor = props.colorHover;
1670
1688
  (0, import_react.useEffect)(() => {
1671
1689
  if (!icons2[name.toString()])
1672
1690
  console.warn(
@@ -1681,6 +1699,8 @@ var Icon = (0, import_react.forwardRef)(function Icon2({ name, size = 16, ...pro
1681
1699
  viewBox: `0 0 ${icons2[name.toString()]?.width ?? 0} ${icons2[name.toString()]?.height ?? 0}`,
1682
1700
  fill: "none",
1683
1701
  xmlns: "http://www.w3.org/2000/svg",
1702
+ theme: theme2,
1703
+ hoverColor: svgHoverColorColor,
1684
1704
  ...styledComponentStyles,
1685
1705
  ...dataProps,
1686
1706
  ...ariaProps,
@@ -1690,6 +1710,7 @@ var Icon = (0, import_react.forwardRef)(function Icon2({ name, size = 16, ...pro
1690
1710
  "path",
1691
1711
  {
1692
1712
  ...path,
1713
+ className: path.type === "fill" ? "react-better-html-icon-path-with-fill" : "react-better-html-icon-path-with-stroke",
1693
1714
  fill: path.type === "fill" ? svgColor : void 0,
1694
1715
  stroke: path.type === "stroke" ? svgColor : void 0,
1695
1716
  key: path.d
@@ -2705,12 +2726,17 @@ function useStyledComponentStyles(props, theme2, excludeProps) {
2705
2726
  haveHover = true;
2706
2727
  const normalKey = key.slice(0, -5);
2707
2728
  hoverStyle[normalKey] = props[key];
2729
+ if (normalKey === "transition") hoverStyle.WebkitTransition = hoverStyle.transition;
2708
2730
  } else {
2709
2731
  if (!cssProps[key.toLowerCase()]) continue;
2710
2732
  normalStyle[key] = props[key];
2733
+ if (key === "transition") normalStyle.WebkitTransition = normalStyle.transition;
2711
2734
  }
2712
2735
  }
2713
- if (haveHover) normalStyle.transition = theme2?.styles.transition ?? "";
2736
+ if (haveHover) {
2737
+ normalStyle.transition = theme2?.styles.transition ?? "";
2738
+ normalStyle.WebkitTransition = normalStyle.transition;
2739
+ }
2714
2740
  return {
2715
2741
  normalStyle,
2716
2742
  hoverStyle
@@ -4375,13 +4401,15 @@ var countries = [
4375
4401
  name: "Finland",
4376
4402
  code: "FI",
4377
4403
  timeZone: "Europe/Helsinki",
4378
- phoneNumberExtension: "358"
4404
+ phoneNumberExtension: "358",
4405
+ phoneNumberFormat: "XX XXX XX XX"
4379
4406
  },
4380
4407
  {
4381
4408
  name: "France",
4382
4409
  code: "FR",
4383
4410
  timeZone: "Europe/Paris",
4384
- phoneNumberExtension: "33"
4411
+ phoneNumberExtension: "33",
4412
+ phoneNumberFormat: "X XX XX XX XX"
4385
4413
  },
4386
4414
  {
4387
4415
  name: "French Guiana",
@@ -4424,7 +4452,7 @@ var countries = [
4424
4452
  code: "DE",
4425
4453
  timeZone: "Europe/Berlin",
4426
4454
  phoneNumberExtension: "49",
4427
- phoneNumberFormat: "XXXX XXXXXX"
4455
+ phoneNumberFormat: "XXXX XXXXXXX"
4428
4456
  },
4429
4457
  {
4430
4458
  name: "Ghana",
@@ -5461,6 +5489,16 @@ var formatPhoneNumber = (phoneNumber) => {
5461
5489
  var getFormErrorObject = (formValues) => {
5462
5490
  return {};
5463
5491
  };
5492
+ var eventPreventDefault = (event) => {
5493
+ event.preventDefault();
5494
+ };
5495
+ var eventStopPropagation = (event) => {
5496
+ event.stopPropagation();
5497
+ };
5498
+ var eventPreventStop = (event) => {
5499
+ event.preventDefault();
5500
+ event.stopPropagation();
5501
+ };
5464
5502
 
5465
5503
  // src/components/Label.tsx
5466
5504
  var import_react17 = require("react");
@@ -5863,8 +5901,18 @@ var getWeekDayName = (day, short = false) => {
5863
5901
  };
5864
5902
  var weekDaysIndex = [1, 2, 3, 4, 5, 6, 0];
5865
5903
  var yearsRange = Array.from({ length: 100 + 1 + 50 }, (_, index) => index + (/* @__PURE__ */ new Date()).getFullYear() - 100);
5904
+ var SelectWrapperComponent = import_styled_components10.default.div.withConfig({
5905
+ shouldForwardProp: (prop) => !["theme"].includes(prop)
5906
+ })`
5907
+ &:has(select:focus) {
5908
+ outline: auto;
5909
+ outline-color: -webkit-focus-ring-color;
5910
+ outline-style: auto;
5911
+ outline-offset: 2px;
5912
+ }
5913
+ `;
5866
5914
  var SelectComponent = import_styled_components10.default.select.withConfig({
5867
- shouldForwardProp: (prop) => !["normalStyle", "hoverStyle"].includes(prop)
5915
+ shouldForwardProp: (prop) => !["theme"].includes(prop)
5868
5916
  })`
5869
5917
  position: absolute;
5870
5918
  top: 50%;
@@ -5874,6 +5922,7 @@ var SelectComponent = import_styled_components10.default.select.withConfig({
5874
5922
  `;
5875
5923
  function Calendar({ value, minDate, maxDate, onChange }) {
5876
5924
  const theme2 = useTheme();
5925
+ const internalYearSelectId = (0, import_react19.useId)();
5877
5926
  const [currentDate, setCurrentDate] = (0, import_react19.useState)(value ? new Date(value) : void 0);
5878
5927
  const [currentMonth, setCurrentMonth] = (0, import_react19.useState)(currentDate?.getMonth() ?? (/* @__PURE__ */ new Date()).getMonth());
5879
5928
  const [currentYear, setCurrentYear] = (0, import_react19.useState)(currentDate?.getFullYear() ?? (/* @__PURE__ */ new Date()).getFullYear());
@@ -5941,11 +5990,20 @@ function Calendar({ value, minDate, maxDate, onChange }) {
5941
5990
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button_default.icon, { icon: "chevronLeft", onClick: onClickPreviousMonthButton }),
5942
5991
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Div_default.row, { alignItems: "center", gap: 4, children: [
5943
5992
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text_default, { fontWeight: 700, children: getMonthName(currentMonth) }),
5944
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Div_default.row, { position: "relative", alignItems: "center", gap: 2, children: [
5993
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectWrapperComponent, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Div_default.row, { position: "relative", alignItems: "center", gap: 2, children: [
5945
5994
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text_default, { fontWeight: 700, children: currentYear }),
5946
5995
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon_default, { name: "chevronDown", size: 12 }),
5947
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectComponent, { theme: theme2, value: currentYear, onChange: onChangeYearSelect, children: yearsRange.map((year) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { value: year, children: year }, year)) })
5948
- ] })
5996
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5997
+ SelectComponent,
5998
+ {
5999
+ theme: theme2,
6000
+ value: currentYear,
6001
+ onChange: onChangeYearSelect,
6002
+ id: internalYearSelectId,
6003
+ children: yearsRange.map((year) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { value: year, children: year }, year))
6004
+ }
6005
+ )
6006
+ ] }) })
5949
6007
  ] }),
5950
6008
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button_default.icon, { icon: "chevronRight", onClick: onClickNextMonthButton })
5951
6009
  ] }),
@@ -6069,6 +6127,10 @@ var InputElement = import_styled_components11.default.input.withConfig({
6069
6127
  cursor: not-allowed;
6070
6128
  }
6071
6129
 
6130
+ &:read-only {
6131
+ caret-color: transparent;
6132
+ }
6133
+
6072
6134
  &::-webkit-outer-spin-button,
6073
6135
  &::-webkit-inner-spin-button {
6074
6136
  -webkit-appearance: none;
@@ -6725,6 +6787,7 @@ InputFieldComponent.dateTime = (0, import_react20.forwardRef)(function DateTime(
6725
6787
  width: buttonWidth,
6726
6788
  height: `calc(100% - ${16 + theme2.styles.gap / 2}px)`,
6727
6789
  overflowY: "auto",
6790
+ tabIndex: -1,
6728
6791
  children: hours.map((hour) => {
6729
6792
  const isSelected = hour.toString() === valueHour;
6730
6793
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
@@ -6758,6 +6821,7 @@ InputFieldComponent.dateTime = (0, import_react20.forwardRef)(function DateTime(
6758
6821
  width: buttonWidth,
6759
6822
  height: `calc(100% - ${16 + theme2.styles.gap / 2}px)`,
6760
6823
  overflowY: "auto",
6824
+ tabIndex: -1,
6761
6825
  children: minutes.map((minute) => {
6762
6826
  const isSelected = minute.toString() === valueMinute;
6763
6827
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
@@ -6846,46 +6910,66 @@ InputFieldComponent.time = (0, import_react20.forwardRef)(function Time({ ...pro
6846
6910
  userSelect: "none",
6847
6911
  ...insideInputFieldComponentProps,
6848
6912
  children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Div_default.row, { height: "100%", children: [
6849
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Div_default, { className: "react-better-html-no-scrollbar", width: buttonWidth, height: "100%", overflowY: "auto", children: hours.map((hour) => {
6850
- const isSelected = hour.toString() === valueHour;
6851
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6852
- Div_default.row,
6853
- {
6854
- alignItems: "center",
6855
- justifyContent: "center",
6856
- color: isSelected ? theme2.colors.base : theme2.colors.textPrimary,
6857
- backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
6858
- filterHover: "brightness(0.9)",
6859
- cursor: "pointer",
6860
- padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`,
6861
- value: hour,
6862
- onClickWithValue: onClickHour,
6863
- ref: isSelected ? selectedHourRef : void 0,
6864
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { textAlign: "center", children: hour.toString().padStart(2, "0") })
6865
- },
6866
- hour
6867
- );
6868
- }) }),
6869
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Div_default, { className: "react-better-html-no-scrollbar", width: buttonWidth, height: "100%", overflowY: "auto", children: minutes.map((minute) => {
6870
- const isSelected = minute.toString() === valueMinute;
6871
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6872
- Div_default.row,
6873
- {
6874
- alignItems: "center",
6875
- justifyContent: "center",
6876
- color: isSelected ? theme2.colors.base : theme2.colors.textPrimary,
6877
- backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
6878
- filterHover: "brightness(0.9)",
6879
- cursor: "pointer",
6880
- padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`,
6881
- value: minute,
6882
- onClickWithValue: onClickMinute,
6883
- ref: isSelected ? selectedMinuteRef : void 0,
6884
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { textAlign: "center", children: minute.toString().padStart(2, "0") })
6885
- },
6886
- minute
6887
- );
6888
- }) })
6913
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6914
+ Div_default,
6915
+ {
6916
+ className: "react-better-html-no-scrollbar",
6917
+ width: buttonWidth,
6918
+ height: "100%",
6919
+ overflowY: "auto",
6920
+ tabIndex: -1,
6921
+ children: hours.map((hour) => {
6922
+ const isSelected = hour.toString() === valueHour;
6923
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6924
+ Div_default.row,
6925
+ {
6926
+ alignItems: "center",
6927
+ justifyContent: "center",
6928
+ color: isSelected ? theme2.colors.base : theme2.colors.textPrimary,
6929
+ backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
6930
+ filterHover: "brightness(0.9)",
6931
+ cursor: "pointer",
6932
+ padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`,
6933
+ value: hour,
6934
+ onClickWithValue: onClickHour,
6935
+ ref: isSelected ? selectedHourRef : void 0,
6936
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { textAlign: "center", children: hour.toString().padStart(2, "0") })
6937
+ },
6938
+ hour
6939
+ );
6940
+ })
6941
+ }
6942
+ ),
6943
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6944
+ Div_default,
6945
+ {
6946
+ className: "react-better-html-no-scrollbar",
6947
+ width: buttonWidth,
6948
+ height: "100%",
6949
+ overflowY: "auto",
6950
+ tabIndex: -1,
6951
+ children: minutes.map((minute) => {
6952
+ const isSelected = minute.toString() === valueMinute;
6953
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6954
+ Div_default.row,
6955
+ {
6956
+ alignItems: "center",
6957
+ justifyContent: "center",
6958
+ color: isSelected ? theme2.colors.base : theme2.colors.textPrimary,
6959
+ backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
6960
+ filterHover: "brightness(0.9)",
6961
+ cursor: "pointer",
6962
+ padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`,
6963
+ value: minute,
6964
+ onClickWithValue: onClickMinute,
6965
+ ref: isSelected ? selectedMinuteRef : void 0,
6966
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { textAlign: "center", children: minute.toString().padStart(2, "0") })
6967
+ },
6968
+ minute
6969
+ );
6970
+ })
6971
+ }
6972
+ )
6889
6973
  ] })
6890
6974
  }
6891
6975
  ) : void 0,
@@ -9069,6 +9153,9 @@ var Foldable_default = Foldable2;
9069
9153
  darkenColor,
9070
9154
  defaultAlertsPluginOptions,
9071
9155
  desaturateColor,
9156
+ eventPreventDefault,
9157
+ eventPreventStop,
9158
+ eventStopPropagation,
9072
9159
  formatPhoneNumber,
9073
9160
  generateRandomString,
9074
9161
  getBrowser,