reshaped 3.9.0-canary.1 → 3.9.0-canary.3

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.
Files changed (150) hide show
  1. package/dist/bundle.css +1 -1
  2. package/dist/bundle.js +2 -31
  3. package/dist/cli/theming/index.js +4 -4
  4. package/dist/cli/theming/reshaped.config.js +1 -1
  5. package/dist/components/Accordion/Accordion.types.d.ts +1 -1
  6. package/dist/components/Accordion/AccordionControlled.js +2 -2
  7. package/dist/components/Accordion/AccordionTrigger.js +2 -2
  8. package/dist/components/Accordion/index.d.ts +1 -1
  9. package/dist/components/Accordion/index.js +1 -1
  10. package/dist/components/ActionBar/ActionBar.js +1 -1
  11. package/dist/components/ActionBar/ActionBar.types.d.ts +1 -1
  12. package/dist/components/Actionable/Actionable.js +1 -1
  13. package/dist/components/Alert/Alert.js +1 -1
  14. package/dist/components/Alert/Alert.types.d.ts +1 -1
  15. package/dist/components/Autocomplete/Autocomplete.js +6 -6
  16. package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -3
  17. package/dist/components/Avatar/Avatar.js +2 -2
  18. package/dist/components/Badge/Badge.js +4 -4
  19. package/dist/components/Badge/Badge.types.d.ts +1 -1
  20. package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -3
  21. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
  22. package/dist/components/Breadcrumbs/BreadcrumbsItem.js +1 -1
  23. package/dist/components/Button/Button.js +2 -2
  24. package/dist/components/Button/Button.types.d.ts +3 -3
  25. package/dist/components/Calendar/Calendar.types.d.ts +22 -5
  26. package/dist/components/Calendar/CalendarControlled.js +45 -10
  27. package/dist/components/Calendar/CalendarControls.js +11 -11
  28. package/dist/components/Calendar/CalendarDate.js +5 -5
  29. package/dist/components/Calendar/CalendarMonth.js +3 -3
  30. package/dist/components/Calendar/CalendarYear.js +1 -1
  31. package/dist/components/Calendar/useCalendarKeyboardNavigation.js +1 -1
  32. package/dist/components/Card/Card.js +2 -2
  33. package/dist/components/Card/Card.types.d.ts +1 -1
  34. package/dist/components/Carousel/Carousel.js +4 -4
  35. package/dist/components/Carousel/Carousel.types.d.ts +1 -1
  36. package/dist/components/Carousel/CarouselControl.d.ts +1 -1
  37. package/dist/components/Carousel/CarouselControl.js +3 -3
  38. package/dist/components/Checkbox/Checkbox.js +3 -3
  39. package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +1 -1
  40. package/dist/components/Container/Container.js +1 -1
  41. package/dist/components/Container/Container.types.d.ts +1 -1
  42. package/dist/components/ContextMenu/ContextMenu.js +1 -1
  43. package/dist/components/Dismissible/Dismissible.js +1 -1
  44. package/dist/components/Divider/Divider.d.ts +1 -1
  45. package/dist/components/Divider/Divider.js +1 -1
  46. package/dist/components/DropdownMenu/DropdownMenu.js +5 -5
  47. package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +4 -4
  48. package/dist/components/FileUpload/FileUpload.js +2 -2
  49. package/dist/components/FileUpload/FileUpload.types.d.ts +1 -1
  50. package/dist/components/Flyout/Flyout.js +1 -1
  51. package/dist/components/Flyout/Flyout.module.css +1 -1
  52. package/dist/components/Flyout/Flyout.types.d.ts +3 -1
  53. package/dist/components/Flyout/FlyoutContent.js +6 -5
  54. package/dist/components/Flyout/FlyoutControlled.js +8 -7
  55. package/dist/components/Flyout/index.d.ts +1 -1
  56. package/dist/components/Flyout/index.js +1 -1
  57. package/dist/components/Flyout/useFlyout.d.ts +1 -1
  58. package/dist/components/Flyout/useFlyout.js +1 -1
  59. package/dist/components/Flyout/utilities/flyout.d.ts +1 -1
  60. package/dist/components/Flyout/utilities/flyout.js +1 -1
  61. package/dist/components/FormControl/FormControlCaption.js +1 -1
  62. package/dist/components/FormControl/FormControlLabel.js +1 -1
  63. package/dist/components/FormControl/index.d.ts +2 -2
  64. package/dist/components/FormControl/index.js +2 -2
  65. package/dist/components/Grid/Grid.js +1 -1
  66. package/dist/components/Grid/Grid.types.d.ts +2 -2
  67. package/dist/components/Icon/Icon.js +1 -1
  68. package/dist/components/Image/Image.js +1 -1
  69. package/dist/components/Image/Image.types.d.ts +1 -1
  70. package/dist/components/Link/Link.js +1 -1
  71. package/dist/components/MenuItem/MenuItem.js +1 -1
  72. package/dist/components/MenuItem/MenuItem.types.d.ts +2 -2
  73. package/dist/components/Modal/Modal.js +7 -7
  74. package/dist/components/Modal/Modal.types.d.ts +1 -1
  75. package/dist/components/NumberField/NumberFieldControlled.js +7 -7
  76. package/dist/components/Overlay/Overlay.js +8 -8
  77. package/dist/components/PinField/PinFieldControlled.js +4 -4
  78. package/dist/components/Popover/Popover.js +3 -3
  79. package/dist/components/Popover/Popover.module.css +1 -1
  80. package/dist/components/Popover/Popover.types.d.ts +2 -2
  81. package/dist/components/Radio/Radio.js +3 -3
  82. package/dist/components/RadioGroup/RadioGroup.types.d.ts +1 -1
  83. package/dist/components/Reshaped/Reshaped.js +4 -4
  84. package/dist/components/Reshaped/Reshaped.types.d.ts +1 -1
  85. package/dist/components/Resizable/Resizable.js +2 -2
  86. package/dist/components/Resizable/Resizable.types.d.ts +1 -1
  87. package/dist/components/Resizable/ResizableHandle.js +1 -1
  88. package/dist/components/ScrollArea/ScrollArea.js +4 -4
  89. package/dist/components/Select/Select.types.d.ts +3 -3
  90. package/dist/components/Select/SelectCustomControlled.js +6 -3
  91. package/dist/components/Select/SelectEndContent.js +1 -1
  92. package/dist/components/Select/SelectGroup.js +1 -1
  93. package/dist/components/Select/SelectNative.js +2 -2
  94. package/dist/components/Select/SelectRoot.js +1 -1
  95. package/dist/components/Select/SelectTrigger.js +1 -1
  96. package/dist/components/Select/index.d.ts +1 -1
  97. package/dist/components/Select/index.js +1 -1
  98. package/dist/components/Skeleton/Skeleton.js +1 -1
  99. package/dist/components/Slider/SliderControlled.js +7 -7
  100. package/dist/components/Slider/SliderThumb.js +3 -3
  101. package/dist/components/Stepper/Stepper.js +4 -4
  102. package/dist/components/Switch/Switch.js +1 -1
  103. package/dist/components/Table/Table.js +2 -2
  104. package/dist/components/Tabs/Tabs.types.d.ts +1 -1
  105. package/dist/components/Tabs/TabsItem.js +2 -2
  106. package/dist/components/Tabs/TabsList.js +8 -8
  107. package/dist/components/Tabs/TabsPanel.js +2 -2
  108. package/dist/components/Text/Text.js +1 -1
  109. package/dist/components/Text/Text.module.css +1 -1
  110. package/dist/components/TextArea/TextArea.js +1 -1
  111. package/dist/components/TextArea/TextArea.types.d.ts +1 -1
  112. package/dist/components/TextField/TextField.js +2 -2
  113. package/dist/components/TextField/TextField.types.d.ts +2 -2
  114. package/dist/components/Theme/GlobalColorMode.js +1 -1
  115. package/dist/components/Theme/Theme.js +2 -2
  116. package/dist/components/Timeline/Timeline.js +1 -1
  117. package/dist/components/Toast/Toast.js +2 -2
  118. package/dist/components/Toast/Toast.types.d.ts +1 -1
  119. package/dist/components/Toast/ToastContainer.js +3 -3
  120. package/dist/components/Toast/ToastProvider.js +1 -1
  121. package/dist/components/Toast/ToastRegion.js +2 -2
  122. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.types.d.ts +1 -1
  123. package/dist/components/ToggleButtonGroup/ToggleButtonGroupControlled.js +1 -1
  124. package/dist/components/Tooltip/Tooltip.js +5 -3
  125. package/dist/components/View/View.js +2 -2
  126. package/dist/components/View/View.types.d.ts +1 -1
  127. package/dist/components/_private/Expandable/Expandable.js +2 -2
  128. package/dist/components/_private/Portal/Portal.js +1 -1
  129. package/dist/config/tailwind.js +2 -2
  130. package/dist/hooks/_private/useDrag.js +4 -4
  131. package/dist/hooks/_private/useFadeSide.js +1 -1
  132. package/dist/hooks/useResponsiveClientValue.js +1 -1
  133. package/dist/styles/mixin.js +1 -1
  134. package/dist/tests/ThemesPlayground.js +16 -16
  135. package/dist/themes/_generator/definitions/slate.js +1 -1
  136. package/dist/themes/_generator/tokens/color/utilities/generateColors.d.ts +1 -1
  137. package/dist/themes/_generator/tokens/color/utilities/generateMetaColors.d.ts +1 -1
  138. package/dist/themes/_generator/tokens/color/utilities/generateMetaColors.js +1 -1
  139. package/dist/themes/_generator/tokens/font/font.types.d.ts +2 -2
  140. package/dist/themes/_generator/tokens/transforms.js +1 -1
  141. package/dist/themes/_generator/tokens/types.d.ts +3 -3
  142. package/dist/themes/_generator/transform.d.ts +1 -1
  143. package/dist/themes/_generator/transform.js +3 -3
  144. package/dist/themes/index.d.ts +1 -1
  145. package/dist/types/config.d.ts +1 -1
  146. package/dist/utilities/a11y/TrapFocus.js +4 -4
  147. package/dist/utilities/scroll/lock.js +1 -1
  148. package/dist/utilities/scroll/lockStandard.js +1 -1
  149. package/dist/utilities/storybook/Example.js +1 -1
  150. package/package.json +4 -2
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { classNames, responsiveVariables, responsiveClassNames } from "../../utilities/props.js";
5
- import { rafThrottle } from "../../utilities/helpers.js";
6
4
  import View from "../View/index.js";
7
- import useRTL from "../../hooks/useRTL.js";
8
5
  import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
9
- import CarouselControl from "./CarouselControl.js";
6
+ import useRTL from "../../hooks/useRTL.js";
7
+ import { rafThrottle } from "../../utilities/helpers.js";
8
+ import { classNames, responsiveVariables, responsiveClassNames } from "../../utilities/props.js";
10
9
  import s from "./Carousel.module.css";
10
+ import CarouselControl from "./CarouselControl.js";
11
11
  const Carousel = (props) => {
12
12
  const { children, gap = 3, visibleItems, bleed, navigationDisplay, onChange, onScroll, instanceRef, className, attributes, } = props;
13
13
  const currentIndexRef = React.useRef(0);
@@ -1,6 +1,6 @@
1
+ import type { ActionableRef } from "../Actionable";
1
2
  import type React from "react";
2
3
  import type * as G from "../../types/global";
3
- import type { ActionableRef } from "../Actionable";
4
4
  export type Instance = {
5
5
  /** Scroll to the previous item */
6
6
  navigateBack: () => void;
@@ -1,4 +1,4 @@
1
- import type { ActionableRef } from "../Actionable";
2
1
  import * as T from "./Carousel.types";
2
+ import type { ActionableRef } from "../Actionable";
3
3
  declare const CarouselControl: import("react").ForwardRefExoticComponent<T.ControlProps & import("react").RefAttributes<ActionableRef>>;
4
4
  export default CarouselControl;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { forwardRef, useState } from "react";
4
- import { classNames } from "../../utilities/props.js";
5
4
  import Button from "../Button/index.js";
6
- import IconChevronRight from "../../icons/ChevronRight.js";
7
- import IconChevronLeft from "../../icons/ChevronLeft.js";
8
5
  import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
6
+ import IconChevronLeft from "../../icons/ChevronLeft.js";
7
+ import IconChevronRight from "../../icons/ChevronRight.js";
8
+ import { classNames } from "../../utilities/props.js";
9
9
  import s from "./Carousel.module.css";
10
10
  const CarouselControl = forwardRef((props, ref) => {
11
11
  const { type, scrollElRef, oppositeControlElRef, scrollPosition, onClick, isRTL, mounted } = props;
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
5
- import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
6
4
  import HiddenInput from "../_private/HiddenInput/index.js";
7
- import { useFormControl } from "../FormControl/index.js";
8
5
  import { useCheckboxGroup } from "../CheckboxGroup/index.js";
6
+ import { useFormControl } from "../FormControl/index.js";
9
7
  import Icon from "../Icon/index.js";
10
8
  import Text from "../Text/index.js";
9
+ import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
11
10
  import IconCheckmark from "../../icons/Checkmark.js";
11
+ import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
12
12
  import s from "./Checkbox.module.css";
13
13
  const Checkbox = (props) => {
14
14
  const { children, value, onChange, onFocus, onBlur, indeterminate, size = "medium", className, attributes, inputAttributes, } = props;
@@ -1,6 +1,6 @@
1
+ import type { CheckboxProps } from "../Checkbox";
1
2
  import type React from "react";
2
3
  import type * as G from "../../types/global";
3
- import type { CheckboxProps } from "../Checkbox";
4
4
  type BaseProps = {
5
5
  /** Component id attribute */
6
6
  id?: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { classNames } from "../../utilities/props.js";
3
2
  import View from "../View/index.js";
3
+ import { classNames } from "../../utilities/props.js";
4
4
  import s from "./Container.module.css";
5
5
  const Container = (props) => {
6
6
  const { children, padding = 4, width, align, justify, height, maxHeight, className, attributes, } = props;
@@ -1,5 +1,5 @@
1
- import type React from "react";
2
1
  import type { ViewProps } from "../View";
2
+ import type React from "react";
3
3
  import type * as G from "../../types/global";
4
4
  export type Props = Pick<ViewProps, "align" | "justify" | "height" | "maxHeight"> & {
5
5
  /** Component inline padding */
@@ -2,9 +2,9 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import DropdownMenu from "../DropdownMenu/index.js";
5
+ import useHandlerRef from "../../hooks/useHandlerRef.js";
5
6
  import useScrollLock from "../../hooks/useScrollLock.js";
6
7
  import s from "./ContextMenu.module.css";
7
- import useHandlerRef from "../../hooks/useHandlerRef.js";
8
8
  const ContextMenu = (props) => {
9
9
  const { position = "end-top", onOpen, onClose, ...dropdownMenuProps } = props;
10
10
  const [coordinates, setCoordinates] = React.useState();
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { classNames } from "../../utilities/props.js";
4
3
  import Button from "../Button/index.js";
5
4
  import IconClose from "../../icons/Close.js";
5
+ import { classNames } from "../../utilities/props.js";
6
6
  import s from "./Dismissible.module.css";
7
7
  const Dismissible = (props) => {
8
8
  const { children, align, onClose, hideCloseButton, variant, closeAriaLabel, className, attributes, } = props;
@@ -1,4 +1,4 @@
1
- import type React from "react";
2
1
  import type * as T from "./Divider.types";
2
+ import type React from "react";
3
3
  declare const Divider: React.FC<T.Props>;
4
4
  export default Divider;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { classNames, responsiveClassNames } from "../../utilities/props.js";
3
2
  import Text from "../Text/index.js";
3
+ import { classNames, responsiveClassNames } from "../../utilities/props.js";
4
4
  import s from "./Divider.module.css";
5
5
  const Divider = (props) => {
6
6
  const { vertical, blank, children, contentPosition = "center", color, offset, className, attributes, } = props;
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import Popover from "../Popover/index.js";
5
- import MenuItem from "../MenuItem/index.js";
6
- import Icon from "../Icon/index.js";
7
4
  import { useFlyoutContext } from "../Flyout/index.js";
8
- import IconChevronRight from "../../icons/ChevronRight.js";
5
+ import Icon from "../Icon/index.js";
6
+ import MenuItem from "../MenuItem/index.js";
7
+ import Popover from "../Popover/index.js";
8
+ import * as keys from "../../constants/keys.js";
9
9
  import useHotkeys from "../../hooks/useHotkeys.js";
10
10
  import useRTL from "../../hooks/useRTL.js";
11
+ import IconChevronRight from "../../icons/ChevronRight.js";
11
12
  import { classNames } from "../../utilities/props.js";
12
- import * as keys from "../../constants/keys.js";
13
13
  import s from "./DropdownMenu.module.css";
14
14
  const DropdownMenuSubContext = React.createContext(null);
15
15
  const DropdownMenuSubTriggerContext = React.createContext(false);
@@ -1,9 +1,9 @@
1
- import type React from "react";
2
- import type { PopoverProps, PopoverInstance } from "../Popover";
3
- import type { MenuItemProps } from "../MenuItem";
4
1
  import type { FlyoutContentProps } from "../Flyout";
2
+ import type { MenuItemProps } from "../MenuItem";
3
+ import type { PopoverProps, PopoverInstance } from "../Popover";
4
+ import type React from "react";
5
5
  export type Instance = PopoverInstance;
6
- export type Props = Pick<PopoverProps, "children" | "position" | "forcePosition" | "fallbackPositions" | "fallbackAdjustLayout" | "fallbackMinWidth" | "fallbackMinHeight" | "triggerType" | "contentGap" | "contentShift" | "onOpen" | "onClose" | "active" | "defaultActive" | "width" | "disableHideAnimation" | "disableCloseOnOutsideClick" | "instanceRef" | "containerRef" | "positionRef" | "originCoordinates" | "borderRadius" | "elevation" | "initialFocusRef"> & {
6
+ export type Props = Pick<PopoverProps, "children" | "position" | "forcePosition" | "fallbackPositions" | "fallbackAdjustLayout" | "fallbackMinWidth" | "fallbackMinHeight" | "triggerType" | "contentGap" | "contentShift" | "contentMaxHeight" | "onOpen" | "onClose" | "active" | "defaultActive" | "width" | "disableHideAnimation" | "disableCloseOnOutsideClick" | "instanceRef" | "containerRef" | "positionRef" | "originCoordinates" | "borderRadius" | "elevation" | "initialFocusRef"> & {
7
7
  /** Change component trap focus keyboard behavior and shortcuts */
8
8
  trapFocusMode?: Extract<PopoverProps["trapFocusMode"], "action-menu" | "selection-menu"> | false;
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { classNames } from "../../utilities/props.js";
4
- import View from "../View/index.js";
5
3
  import HiddenVisually from "../HiddenVisually/index.js";
4
+ import View from "../View/index.js";
6
5
  import useToggle from "../../hooks/useToggle.js";
6
+ import { classNames } from "../../utilities/props.js";
7
7
  import s from "./FileUpload.module.css";
8
8
  export const FileUploadTrigger = (props) => {
9
9
  const { children } = props;
@@ -1,5 +1,5 @@
1
- import type React from "react";
2
1
  import type { ViewProps } from "../View";
2
+ import type React from "react";
3
3
  import type * as G from "../../types/global";
4
4
  export type Props = {
5
5
  /** Name of the input element */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import FlyoutUncontrolled from "./FlyoutUncontrolled.js";
3
2
  import FlyoutControlled from "./FlyoutControlled.js";
3
+ import FlyoutUncontrolled from "./FlyoutUncontrolled.js";
4
4
  const Flyout = (props) => {
5
5
  const { active } = props;
6
6
  if (typeof active === "boolean")
@@ -1 +1 @@
1
- .content{--rs-flyout-gap:0;--rs-flyout-origin-x:50%;--rs-flyout-origin-y:50%;isolation:isolate;pointer-events:none;position:absolute}.content.--hover{pointer-events:all}.content.--hover-disabled,.content.--hover-disabled .inner{pointer-events:none}.inner{backface-visibility:hidden;height:100%;max-height:100%;max-width:100%;opacity:0;outline:none;overflow:auto;pointer-events:all;transform:scale(.92) translateY(0);transform-origin:var(--rs-flyout-origin-x) var(--rs-flyout-origin-y);transition:1ms var(--rs-easing-accelerate)}[data-rs-keyboard] .inner:focus{box-shadow:var(--rs-shadow-focus)}.content.--width-trigger .inner{transform:scale(1) translateY(var(--rs-unit-x2))}.content.--position-top,.content.--position-top-end,.content.--position-top-start{--rs-flyout-origin-y:100%;padding-bottom:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-bottom,.content.--position-bottom-end,.content.--position-bottom-start{--rs-flyout-origin-y:0%;padding-top:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-bottom-start,.content.--position-top-start{--rs-flyout-origin-x:0%}.content.--position-bottom-end,.content.--position-top-end{--rs-flyout-origin-x:100%}.content.--position-start,.content.--position-start-bottom,.content.--position-start-top{--rs-flyout-origin-x:100%;padding-right:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-end,.content.--position-end-bottom,.content.--position-end-top{--rs-flyout-origin-x:0%;padding-left:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-end-top,.content.--position-start-top{--rs-flyout-origin-y:0%}.content.--position-end-bottom,.content.--position-start-bottom{--rs-flyout-origin-y:100%}.content.--visible .inner{opacity:1;transform:scale(1) translateY(0)}.content.--animated .inner{transition-duration:var(--rs-duration-rapid);transition-property:opacity,transform}.content.--animated.--visible .inner{transition-duration:var(--rs-duration-fast);transition-timing-function:var(--rs-easing-decelerate)}
1
+ .content{--rs-flyout-gap:0;--rs-flyout-max-h:100%;--rs-flyout-origin-x:50%;--rs-flyout-origin-y:50%;isolation:isolate;pointer-events:none;position:absolute}.content.--hover{pointer-events:all}.content.--hover-disabled,.content.--hover-disabled .inner{pointer-events:none}.inner{backface-visibility:hidden;height:100%;max-height:var(--rs-flyout-max-h);max-width:100%;opacity:0;outline:none;overflow:auto;pointer-events:all;transform:scale(.92) translateY(0);transform-origin:var(--rs-flyout-origin-x) var(--rs-flyout-origin-y);transition:1ms var(--rs-easing-accelerate)}[data-rs-keyboard] .inner:focus{box-shadow:var(--rs-shadow-focus)}.content.--width-trigger .inner{transform:scale(1) translateY(var(--rs-unit-x2))}.content.--position-top,.content.--position-top-end,.content.--position-top-start{--rs-flyout-origin-y:100%;padding-bottom:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-bottom,.content.--position-bottom-end,.content.--position-bottom-start{--rs-flyout-origin-y:0%;padding-top:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-bottom-start,.content.--position-top-start{--rs-flyout-origin-x:0%}.content.--position-bottom-end,.content.--position-top-end{--rs-flyout-origin-x:100%}.content.--position-start,.content.--position-start-bottom,.content.--position-start-top{--rs-flyout-origin-x:100%;padding-right:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-end,.content.--position-end-bottom,.content.--position-end-top{--rs-flyout-origin-x:0%;padding-left:calc(var(--rs-unit-x1) * var(--rs-flyout-gap))}.content.--position-end-top,.content.--position-start-top{--rs-flyout-origin-y:0%}.content.--position-end-bottom,.content.--position-start-bottom{--rs-flyout-origin-y:100%}.content.--visible .inner{opacity:1;transform:scale(1) translateY(0)}.content.--animated .inner{transition-duration:var(--rs-duration-rapid);transition-property:opacity,transform}.content.--animated.--visible .inner{transition-duration:var(--rs-duration-fast);transition-timing-function:var(--rs-easing-decelerate)}
@@ -132,6 +132,8 @@ type BaseProps = {
132
132
  contentGap?: number;
133
133
  /** Shift the content on the secondary axis, relative to its original position */
134
134
  contentShift?: number;
135
+ /** Maximum height for the content */
136
+ contentMaxHeight?: string;
135
137
  /** Additional classname for the content element */
136
138
  contentClassName?: string;
137
139
  /** Additional attributes for the content element */
@@ -189,7 +191,7 @@ export type ContextProps = {
189
191
  handleContentMouseDown: () => void;
190
192
  handleContentMouseUp: () => void;
191
193
  isSubmenu: boolean;
192
- } & Pick<Props, "triggerType" | "contentClassName" | "contentAttributes" | "contentGap" | "trapFocusMode" | "containerRef" | "disableContentHover" | "autoFocus">;
194
+ } & Pick<Props, "triggerType" | "contentClassName" | "contentAttributes" | "contentGap" | "contentMaxHeight" | "trapFocusMode" | "containerRef" | "disableContentHover" | "autoFocus">;
193
195
  export type TriggerContextProps = {
194
196
  elRef?: ContextProps["triggerElRef"];
195
197
  };
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { classNames } from "../../utilities/props.js";
5
- import { rafThrottle } from "../../utilities/helpers.js";
6
- import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
7
4
  import Portal from "../_private/Portal/index.js";
5
+ import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
8
6
  import { findClosestPositionContainer, findClosestScrollableContainer } from "../../utilities/dom/index.js";
9
- import cooldown from "./utilities/cooldown.js";
7
+ import { rafThrottle } from "../../utilities/helpers.js";
8
+ import { classNames } from "../../utilities/props.js";
10
9
  import { useFlyoutContext, ContentProvider } from "./Flyout.context.js";
11
10
  import s from "./Flyout.module.css";
11
+ import cooldown from "./utilities/cooldown.js";
12
12
  const FlyoutContent = (props) => {
13
13
  const { children, className, attributes } = props;
14
- const { flyout, id, flyoutElRef, triggerElRef, handleClose, handleTransitionEnd, handleTransitionStart, triggerType, handleMouseEnter, handleMouseLeave, handleContentMouseDown, handleContentMouseUp, contentClassName, contentAttributes, contentGap, trapFocusMode, disableContentHover, autoFocus, width, containerRef: passedContainerRef, isSubmenu, } = useFlyoutContext();
14
+ const { flyout, id, flyoutElRef, triggerElRef, handleClose, handleTransitionEnd, handleTransitionStart, triggerType, handleMouseEnter, handleMouseLeave, handleContentMouseDown, handleContentMouseUp, contentClassName, contentAttributes, contentGap, contentMaxHeight, trapFocusMode, disableContentHover, autoFocus, width, containerRef: passedContainerRef, isSubmenu, } = useFlyoutContext();
15
15
  const { styles, status, position } = flyout;
16
16
  const [mounted, setMounted] = React.useState(false);
17
17
  const closestFixedContainer = React.useMemo(() => {
@@ -97,6 +97,7 @@ const FlyoutContent = (props) => {
97
97
  const content = (_jsx(ContentProvider, { value: { elRef: flyoutElRef }, children: _jsx("div", { className: rootClassNames, style: {
98
98
  ...styles,
99
99
  "--rs-flyout-gap": contentGap,
100
+ "--rs-flyout-max-h": contentMaxHeight,
100
101
  }, ref: flyoutElRef, onTransitionEnd: handleTransitionEnd, onMouseEnter: triggerType === "hover" ? handleMouseEnter : undefined, onMouseLeave: triggerType === "hover" ? handleMouseLeave : undefined, onMouseDown: handleContentMouseDown, onTouchStart: handleContentMouseDown, onMouseUp: handleContentMouseUp, onTouchEnd: handleContentMouseUp, children: _jsx("div", { role: role, ...attributes, id: id, tabIndex: !autoFocus ? -1 : undefined, "aria-modal": role === "dialog" ? true : undefined, style: { ...attributes?.style, ...contentAttributes?.style }, className: innerClassNames, children: children }) }) }));
101
102
  return _jsx(Portal, { targetRef: containerRef, children: content });
102
103
  };
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { TrapFocus, checkKeyboardMode } from "../../utilities/a11y/index.js";
5
4
  import useIsDismissible from "../../hooks/_private/useIsDismissible.js";
6
5
  import useElementId from "../../hooks/useElementId.js";
7
- import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
6
+ import useHandlerRef from "../../hooks/useHandlerRef.js";
8
7
  import useHotkeys from "../../hooks/useHotkeys.js";
8
+ import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
9
9
  import useOnClickOutside from "../../hooks/useOnClickOutside.js";
10
10
  import useRTL from "../../hooks/useRTL.js";
11
+ import { TrapFocus, checkKeyboardMode } from "../../utilities/a11y/index.js";
11
12
  import { checkTransitions, onNextFrame } from "../../utilities/animation.js";
12
- import useFlyout from "./useFlyout.js";
13
13
  import * as timeouts from "./Flyout.constants.js";
14
- import cooldown from "./utilities/cooldown.js";
15
14
  import { Provider, useFlyoutTriggerContext, useFlyoutContext, useFlyoutContentContext, } from "./Flyout.context.js";
16
- import useHandlerRef from "../../hooks/useHandlerRef.js";
15
+ import useFlyout from "./useFlyout.js";
16
+ import cooldown from "./utilities/cooldown.js";
17
17
  const FlyoutControlled = (props) => {
18
- const { triggerType = "click", groupTimeouts, onOpen, onClose, children, disabled, forcePosition, fallbackAdjustLayout, fallbackMinWidth, fallbackMinHeight, trapFocusMode = "dialog", width, disableHideAnimation, disableContentHover, disableCloseOnOutsideClick, autoFocus = true, originCoordinates, contentGap = 2, contentShift, contentClassName, contentAttributes, position: passedPosition, active: passedActive, id: passedId, instanceRef, containerRef, initialFocusRef, positionRef, } = props;
18
+ const { triggerType = "click", groupTimeouts, onOpen, onClose, children, disabled, forcePosition, fallbackAdjustLayout, fallbackMinWidth, fallbackMinHeight, trapFocusMode = "dialog", width, disableHideAnimation, disableContentHover, disableCloseOnOutsideClick, autoFocus = true, originCoordinates, contentGap = 2, contentShift, contentMaxHeight, contentClassName, contentAttributes, position: passedPosition, active: passedActive, id: passedId, instanceRef, containerRef, initialFocusRef, positionRef, } = props;
19
19
  const fallbackPositions = props.fallbackPositions === false || forcePosition ? [] : props.fallbackPositions;
20
20
  const onOpenRef = useHandlerRef(onOpen);
21
21
  const onCloseRef = useHandlerRef(onClose);
@@ -305,7 +305,7 @@ const FlyoutControlled = (props) => {
305
305
  shouldReturnFocusRef.current = false;
306
306
  handleClose({ reason: "outside-click" });
307
307
  }, {
308
- disabled: Boolean(status !== "visible" || disableCloseOnOutsideClick),
308
+ disabled: !isRendered || disableCloseOnOutsideClick,
309
309
  });
310
310
  return (_jsx(Provider, { value: {
311
311
  id,
@@ -331,6 +331,7 @@ const FlyoutControlled = (props) => {
331
331
  contentClassName,
332
332
  contentAttributes,
333
333
  contentGap,
334
+ contentMaxHeight,
334
335
  containerRef,
335
336
  disableContentHover,
336
337
  autoFocus,
@@ -1,6 +1,6 @@
1
1
  import Flyout from "./Flyout";
2
- import FlyoutTrigger from "./FlyoutTrigger";
3
2
  import FlyoutContent from "./FlyoutContent";
3
+ import FlyoutTrigger from "./FlyoutTrigger";
4
4
  declare const FlyoutRoot: typeof Flyout & {
5
5
  Trigger: typeof FlyoutTrigger;
6
6
  Content: typeof FlyoutContent;
@@ -1,6 +1,6 @@
1
1
  import Flyout from "./Flyout.js";
2
- import FlyoutTrigger from "./FlyoutTrigger.js";
3
2
  import FlyoutContent from "./FlyoutContent.js";
3
+ import FlyoutTrigger from "./FlyoutTrigger.js";
4
4
  const FlyoutRoot = Flyout;
5
5
  FlyoutRoot.Trigger = FlyoutTrigger;
6
6
  FlyoutRoot.Content = FlyoutContent;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import type * as G from "../../types/global";
3
2
  import type * as T from "./Flyout.types";
3
+ import type * as G from "../../types/global";
4
4
  type UseFlyout = (args: Pick<T.Props, "width" | "position" | "defaultActive" | "fallbackAdjustLayout" | "fallbackMinWidth" | "fallbackMinHeight" | "contentGap" | "contentShift"> & {
5
5
  fallbackPositions?: T.Position[];
6
6
  container?: HTMLElement | null;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import useRTL from "../../hooks/useRTL.js";
3
- import flyout from "./utilities/flyout.js";
4
3
  import { defaultStyles, resetStyles } from "./Flyout.constants.js";
4
+ import flyout from "./utilities/flyout.js";
5
5
  const flyoutReducer = (state, action) => {
6
6
  switch (action.type) {
7
7
  case "render":
@@ -1,5 +1,5 @@
1
- import type * as G from "../../../types/global";
2
1
  import type * as T from "../Flyout.types";
2
+ import type * as G from "../../../types/global";
3
3
  /**
4
4
  * Set position of the target element to fit on the screen
5
5
  */
@@ -1,8 +1,8 @@
1
1
  import { getRectFromCoordinates, getShadowRoot, findClosestPositionContainer } from "../../../utilities/dom/index.js";
2
+ import { resetStyles } from "../Flyout.constants.js";
2
3
  import calculatePosition from "./calculatePosition.js";
3
4
  import getPositionFallbacks from "./getPositionFallbacks.js";
4
5
  import isFullyVisible from "./isFullyVisible.js";
5
- import { resetStyles } from "../Flyout.constants.js";
6
6
  /**
7
7
  * Set position of the target element to fit on the screen
8
8
  */
@@ -2,8 +2,8 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import Text from "../Text/index.js";
4
4
  import { useFormControlPrivate } from "./FormControl.context.js";
5
- import { getCaptionId } from "./FormControl.utilities.js";
6
5
  import s from "./FormControl.module.css";
6
+ import { getCaptionId } from "./FormControl.utilities.js";
7
7
  const FormControlCaption = (props) => {
8
8
  const { children, variant, disabled } = props;
9
9
  const { attributes, size, helperRef, errorRef } = useFormControlPrivate();
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useFormControlPrivate } from "./FormControl.context.js";
4
3
  import Text from "../Text/index.js";
4
+ import { useFormControlPrivate } from "./FormControl.context.js";
5
5
  import s from "./FormControl.module.css";
6
6
  const FormControlLabel = (props) => {
7
7
  const { children } = props;
@@ -1,7 +1,7 @@
1
1
  import FormControl from "./FormControl";
2
- import FormControlLabel from "./FormControlLabel";
3
- import FormControlHelper from "./FormControlHelper";
4
2
  import FormControlError from "./FormControlError";
3
+ import FormControlHelper from "./FormControlHelper";
4
+ import FormControlLabel from "./FormControlLabel";
5
5
  declare const FormControlRoot: typeof FormControl & {
6
6
  Label: typeof FormControlLabel;
7
7
  Helper: typeof FormControlHelper;
@@ -1,7 +1,7 @@
1
1
  import FormControl from "./FormControl.js";
2
- import FormControlLabel from "./FormControlLabel.js";
3
- import FormControlHelper from "./FormControlHelper.js";
4
2
  import FormControlError from "./FormControlError.js";
3
+ import FormControlHelper from "./FormControlHelper.js";
4
+ import FormControlLabel from "./FormControlLabel.js";
5
5
  const FormControlRoot = FormControl;
6
6
  FormControlRoot.Label = FormControlLabel;
7
7
  FormControlRoot.Helper = FormControlHelper;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { classNames, responsiveVariables, responsivePropDependency } from "../../utilities/props.js";
3
2
  import { resolveMixin } from "../../styles/mixin.js";
3
+ import { classNames, responsiveVariables, responsivePropDependency } from "../../utilities/props.js";
4
4
  import s from "./Grid.module.css";
5
5
  export const GridItem = (props) => {
6
6
  const { area, colStart, colEnd, colSpan, rowStart, rowEnd, rowSpan, children, className,
@@ -1,7 +1,7 @@
1
- import type React from "react";
2
1
  import type { Property } from "csstype";
3
- import type * as G from "../../types/global";
2
+ import type React from "react";
4
3
  import type * as TStyles from "../../styles/types";
4
+ import type * as G from "../../types/global";
5
5
  export type Props<TagName extends keyof React.JSX.IntrinsicElements = "div"> = {
6
6
  /** Gap between grid items */
7
7
  gap?: G.Responsive<number>;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
- import { classNames } from "../../utilities/props.js";
4
3
  import { resolveMixin } from "../../styles/mixin.js";
4
+ import { classNames } from "../../utilities/props.js";
5
5
  import s from "./Icon.module.css";
6
6
  const Icon = (props) => {
7
7
  const { svg: Component, className, color, size = "1em", autoWidth, attributes } = props;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { classNames } from "../../utilities/props.js";
5
4
  import { resolveMixin } from "../../styles/mixin.js";
5
+ import { classNames } from "../../utilities/props.js";
6
6
  import s from "./Image.module.css";
7
7
  const Image = (props) => {
8
8
  const { src, alt, width, maxWidth, height, aspectRatio, onLoad, onError, fallback, displayMode = "cover", borderRadius, className, attributes, imageAttributes: passedImageAttributes, renderImage, } = props;
@@ -1,6 +1,6 @@
1
1
  import type React from "react";
2
- import type * as G from "../../types/global";
3
2
  import type * as TStyles from "../../styles/types";
3
+ import type * as G from "../../types/global";
4
4
  export type Props = {
5
5
  /** Image URL */
6
6
  src?: string;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { classNames } from "../../utilities/props.js";
4
3
  import Actionable from "../Actionable/index.js";
5
4
  import Icon from "../Icon/index.js";
5
+ import { classNames } from "../../utilities/props.js";
6
6
  import s from "./Link.module.css";
7
7
  const Link = forwardRef((props, ref) => {
8
8
  const { icon, disabled, href, color = "primary", variant = "underline", className, children, attributes, type, onClick, stopPropagation, render, } = props;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
4
3
  import Actionable from "../Actionable/index.js";
5
4
  import Icon from "../Icon/index.js";
6
5
  import View from "../View/index.js";
6
+ import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
7
7
  import s from "./MenuItem.module.css";
8
8
  const MenuItem = forwardRef((props, ref) => {
9
9
  const { icon, startSlot, endSlot, children, color = "primary", selected, highlighted, disabled, onClick, href, size = "medium", roundedCorners, stopPropagation, as, render, className, attributes, } = props;
@@ -1,6 +1,6 @@
1
- import type React from "react";
2
- import type { IconProps } from "../Icon";
3
1
  import type { ActionableProps } from "../Actionable";
2
+ import type { IconProps } from "../Icon";
3
+ import type React from "react";
4
4
  import type * as G from "../../types/global";
5
5
  export type Size = "small" | "medium" | "large";
6
6
  export type Props = Pick<ActionableProps, "attributes" | "className" | "disabled" | "children" | "href" | "onClick" | "as" | "stopPropagation" | "render"> & {
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { classNames, responsiveVariables, responsiveClassNames, responsivePropDependency, } from "../../utilities/props.js";
5
- import { enableUserSelect, disableUserSelect } from "../../utilities/dom/index.js";
6
- import { enableScroll, disableScroll } from "../../utilities/scroll/index.js";
7
- import useResponsiveClientValue from "../../hooks/useResponsiveClientValue.js";
8
- import Text from "../Text/index.js";
9
4
  import Overlay from "../Overlay/index.js";
5
+ import Text from "../Text/index.js";
10
6
  import useElementId from "../../hooks/useElementId.js";
11
- import s from "./Modal.module.css";
12
- import { resolveMixin } from "../../styles/mixin.js";
13
7
  import useHandlerRef from "../../hooks/useHandlerRef.js";
8
+ import useResponsiveClientValue from "../../hooks/useResponsiveClientValue.js";
9
+ import { resolveMixin } from "../../styles/mixin.js";
10
+ import { enableUserSelect, disableUserSelect } from "../../utilities/dom/index.js";
11
+ import { classNames, responsiveVariables, responsiveClassNames, responsivePropDependency, } from "../../utilities/props.js";
12
+ import { enableScroll, disableScroll } from "../../utilities/scroll/index.js";
13
+ import s from "./Modal.module.css";
14
14
  const DRAG_THRESHOLD = 32;
15
15
  const DRAG_OPPOSITE_THRESHOLD = 100;
16
16
  const DRAG_EDGE_BOUNDARY = 32;
@@ -1,6 +1,6 @@
1
+ import type { OverlayProps, OverlayCloseReason } from "../Overlay";
1
2
  import type React from "react";
2
3
  import type * as G from "../../types/global";
3
- import type { OverlayProps, OverlayCloseReason } from "../Overlay";
4
4
  export type Context = {
5
5
  id: string;
6
6
  titleMounted: boolean;
@@ -2,17 +2,17 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import Actionable from "../Actionable/index.js";
5
+ import { useFormControl } from "../FormControl/index.js";
5
6
  import Icon from "../Icon/index.js";
6
7
  import TextField from "../TextField/index.js";
7
- import { useFormControl } from "../FormControl/index.js";
8
- import IconChevronUp from "../../icons/ChevronUp.js";
9
- import IconChevronDown from "../../icons/ChevronDown.js";
10
- import IconPlus from "../../icons/Plus.js";
11
- import IconMinus from "../../icons/Minus.js";
8
+ import * as keys from "../../constants/keys.js";
12
9
  import useElementId from "../../hooks/useElementId.js";
13
- import useHotkeys from "../../hooks/useHotkeys.js";
14
10
  import useHandlerRef from "../../hooks/useHandlerRef.js";
15
- import * as keys from "../../constants/keys.js";
11
+ import useHotkeys from "../../hooks/useHotkeys.js";
12
+ import IconChevronDown from "../../icons/ChevronDown.js";
13
+ import IconChevronUp from "../../icons/ChevronUp.js";
14
+ import IconMinus from "../../icons/Minus.js";
15
+ import IconPlus from "../../icons/Plus.js";
16
16
  import { responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
17
17
  import s from "./NumberField.module.css";
18
18
  const NumberFieldControlled = (props) => {
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { onNextFrame } from "../../utilities/animation.js";
5
- import { classNames } from "../../utilities/props.js";
6
- import { TrapFocus } from "../../utilities/a11y/index.js";
7
- import useToggle from "../../hooks/useToggle.js";
8
- import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
4
+ import Portal from "../_private/Portal/index.js";
5
+ import useIsDismissible from "../../hooks/_private/useIsDismissible.js";
6
+ import useHandlerRef from "../../hooks/useHandlerRef.js";
9
7
  import useHotkeys from "../../hooks/useHotkeys.js";
8
+ import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
10
9
  import useScrollLock from "../../hooks/useScrollLock.js";
11
- import useIsDismissible from "../../hooks/_private/useIsDismissible.js";
12
- import Portal from "../_private/Portal/index.js";
10
+ import useToggle from "../../hooks/useToggle.js";
11
+ import { TrapFocus } from "../../utilities/a11y/index.js";
12
+ import { onNextFrame } from "../../utilities/animation.js";
13
+ import { classNames } from "../../utilities/props.js";
13
14
  import s from "./Overlay.module.css";
14
- import useHandlerRef from "../../hooks/useHandlerRef.js";
15
15
  const Overlay = (props) => {
16
16
  const { active, children, transparent, blurred, overflow, onClose, onOpen, onAfterClose, onAfterOpen, disableCloseOnClick, containerRef, className, attributes, } = props;
17
17
  // Selectors wrapped with refs to simplify working with useEffect dependency array
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import { responsivePropDependency } from "../../utilities/props.js";
5
- import View from "../View/index.js";
4
+ import { useFormControl } from "../FormControl/index.js";
6
5
  import Text from "../Text/index.js";
6
+ import View from "../View/index.js";
7
+ import * as keys from "../../constants/keys.js";
7
8
  import useHotkeys from "../../hooks/useHotkeys.js";
8
- import { useFormControl } from "../FormControl/index.js";
9
9
  import { onNextFrame } from "../../utilities/animation.js";
10
- import * as keys from "../../constants/keys.js";
10
+ import { responsivePropDependency } from "../../utilities/props.js";
11
11
  import { regExpNumericChar, regExpAlphabeticChar, regExpAlphaNumericChar, } from "./PinField.constants.js";
12
12
  import s from "./PinField.module.css";
13
13
  const sizeMap = {