reshaped 3.9.1-canary.2 → 3.10.0-canary.4
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/bundle.css +1 -1
- package/dist/bundle.d.ts +2 -2
- package/dist/bundle.js +2 -2
- package/dist/components/Accordion/AccordionControlled.js +1 -1
- package/dist/components/Accordion/AccordionTrigger.js +1 -1
- package/dist/components/ActionBar/ActionBar.js +2 -1
- package/dist/components/Avatar/Avatar.js +2 -1
- package/dist/components/Badge/Badge.js +6 -5
- package/dist/components/Badge/Badge.module.css +1 -1
- package/dist/components/Badge/BadgeContainer.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Button/Button.js +2 -1
- package/dist/components/Button/ButtonGroup.js +1 -1
- package/dist/components/Calendar/CalendarDate.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Carousel/Carousel.js +3 -2
- package/dist/components/Carousel/CarouselControl.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +2 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Dismissible/Dismissible.js +1 -1
- package/dist/components/Divider/Divider.js +2 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/Flyout/Flyout.types.d.ts +1 -1
- package/dist/components/Flyout/FlyoutContent.js +3 -12
- package/dist/components/Flyout/FlyoutControlled.js +2 -1
- package/dist/components/Grid/Grid.js +2 -1
- package/dist/components/Hidden/Hidden.js +2 -1
- package/dist/components/HiddenInput/HiddenInput.js +1 -1
- package/dist/components/Hotkey/Hotkey.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/Loader/Loader.js +2 -1
- package/dist/components/MenuItem/MenuItem.js +2 -1
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/Overlay/Overlay.js +2 -2
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/dist/components/Radio/Radio.js +2 -1
- package/dist/components/Reshaped/Reshaped.js +1 -1
- package/dist/components/Resizable/Resizable.js +1 -1
- package/dist/components/Resizable/ResizableHandle.js +1 -1
- package/dist/components/Scrim/Scrim.js +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +2 -2
- package/dist/components/Select/SelectNative.js +1 -1
- package/dist/components/Select/SelectRoot.js +2 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Slider/Slider.utilities.d.ts +7 -0
- package/dist/components/Slider/Slider.utilities.js +11 -0
- package/dist/components/Slider/SliderControlled.js +15 -6
- package/dist/components/Slider/SliderThumb.js +1 -1
- package/dist/components/Switch/Switch.js +2 -1
- package/dist/components/Table/Table.js +2 -1
- package/dist/components/Tabs/TabsItem.js +2 -2
- package/dist/components/Tabs/TabsList.js +1 -1
- package/dist/components/Tabs/TabsPanel.js +2 -2
- package/dist/components/Text/Text.js +2 -1
- package/dist/components/TextArea/TextArea.js +2 -1
- package/dist/components/TextField/TextField.js +2 -1
- package/dist/components/Theme/Theme.js +1 -1
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Toast/ToastContainer.js +3 -2
- package/dist/components/Toast/ToastRegion.js +2 -2
- package/dist/components/View/View.js +2 -1
- package/dist/components/_private/Aligner/Aligner.js +1 -1
- package/dist/components/_private/Expandable/Expandable.js +1 -1
- package/dist/core/Actionable/Actionable.js +1 -1
- package/dist/hooks/_private/useDrag.js +1 -1
- package/dist/hooks/_private/useFadeSide.js +1 -1
- package/dist/hooks/_private/useSingletonKeyboardMode.js +1 -1
- package/dist/hooks/useKeyboardArrowNavigation.js +1 -1
- package/dist/hooks/useScrollLock.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utilities/helpers.d.ts +0 -1
- package/dist/utilities/helpers.js +0 -14
- package/dist/utilities/props.d.ts +0 -4
- package/dist/utilities/props.js +0 -18
- package/package.json +4 -4
- package/dist/utilities/Chain.d.ts +0 -20
- package/dist/utilities/Chain.js +0 -60
- package/dist/utilities/a11y/TrapFocus.d.ts +0 -28
- package/dist/utilities/a11y/TrapFocus.js +0 -162
- package/dist/utilities/a11y/TrapScreenReader.d.ts +0 -15
- package/dist/utilities/a11y/TrapScreenReader.js +0 -42
- package/dist/utilities/a11y/focus.d.ts +0 -38
- package/dist/utilities/a11y/focus.js +0 -101
- package/dist/utilities/a11y/index.d.ts +0 -4
- package/dist/utilities/a11y/index.js +0 -3
- package/dist/utilities/a11y/keyboardMode.d.ts +0 -3
- package/dist/utilities/a11y/keyboardMode.js +0 -10
- package/dist/utilities/a11y/types.d.ts +0 -24
- package/dist/utilities/a11y/types.js +0 -1
- package/dist/utilities/css.d.ts +0 -7
- package/dist/utilities/css.js +0 -18
- package/dist/utilities/dom/event.d.ts +0 -7
- package/dist/utilities/dom/event.js +0 -11
- package/dist/utilities/dom/find.d.ts +0 -10
- package/dist/utilities/dom/find.js +0 -37
- package/dist/utilities/dom/index.d.ts +0 -3
- package/dist/utilities/dom/index.js +0 -3
- package/dist/utilities/dom/shadowDom.d.ts +0 -1
- package/dist/utilities/dom/shadowDom.js +0 -4
- package/dist/utilities/platform.d.ts +0 -1
- package/dist/utilities/platform.js +0 -16
- package/dist/utilities/scroll/disable.d.ts +0 -7
- package/dist/utilities/scroll/disable.js +0 -15
- package/dist/utilities/scroll/helpers.d.ts +0 -1
- package/dist/utilities/scroll/helpers.js +0 -17
- package/dist/utilities/scroll/index.d.ts +0 -2
- package/dist/utilities/scroll/index.js +0 -2
- package/dist/utilities/scroll/lock.d.ts +0 -5
- package/dist/utilities/scroll/lock.js +0 -32
- package/dist/utilities/scroll/lockSafari.d.ts +0 -2
- package/dist/utilities/scroll/lockSafari.js +0 -20
- package/dist/utilities/scroll/lockStandard.d.ts +0 -4
- package/dist/utilities/scroll/lockStandard.js +0 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import useElementId from "../../hooks/useElementId.js";
|
|
5
6
|
import useHandlerRef from "../../hooks/useHandlerRef.js";
|
|
6
|
-
import { classNames } from "../../utilities/props.js";
|
|
7
7
|
import AccordionContext from "./Accordion.context.js";
|
|
8
8
|
const AccordionControlled = (props) => {
|
|
9
9
|
const { children, onToggle, active, iconPosition, iconSize, gap, className, attributes } = props;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import Actionable from "../Actionable/index.js";
|
|
5
6
|
import Icon from "../Icon/index.js";
|
|
6
7
|
import View from "../View/index.js";
|
|
7
8
|
import IconChevronDown from "../../icons/ChevronDown.js";
|
|
8
|
-
import { classNames } from "../../utilities/props.js";
|
|
9
9
|
import AccordionContext from "./Accordion.context.js";
|
|
10
10
|
import s from "./Accordion.module.css";
|
|
11
11
|
const AccordionTrigger = (props) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import View from "../View/index.js";
|
|
3
|
-
import {
|
|
4
|
+
import { responsiveVariables } from "../../utilities/props.js";
|
|
4
5
|
import s from "./ActionBar.module.css";
|
|
5
6
|
const fullWidthPositions = ["top", "bottom"];
|
|
6
7
|
const ActionBar = (props) => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import Icon from "../Icon/index.js";
|
|
3
4
|
import Image from "../Image/index.js";
|
|
4
5
|
import View from "../View/index.js";
|
|
5
6
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
6
|
-
import {
|
|
7
|
+
import { responsivePropDependency } from "../../utilities/props.js";
|
|
7
8
|
import s from "./Avatar.module.css";
|
|
8
9
|
const Avatar = (props) => {
|
|
9
10
|
const { color = "neutral", variant, src, size = 12, squared, initials, icon, className, renderImage, imageAttributes, attributes, } = props;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
4
|
import Actionable from "../Actionable/index.js";
|
|
4
5
|
import Icon from "../Icon/index.js";
|
|
5
6
|
import Text from "../Text/index.js";
|
|
6
7
|
import IconClose from "../../icons/Close.js";
|
|
7
|
-
import { classNames } from "../../utilities/props.js";
|
|
8
8
|
import s from "./Badge.module.css";
|
|
9
9
|
const Badge = forwardRef((props, ref) => {
|
|
10
10
|
const { children, color, rounded, size = "medium", icon, endIcon, variant, hidden, highlighted, href, onClick, onDismiss, dismissAriaLabel, className, attributes, as, } = props;
|
|
11
11
|
const isActionable = !!(onClick || href);
|
|
12
12
|
const iconSize = size === "small" ? 3 : 4;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const empty = !children && !icon && !endIcon;
|
|
14
|
+
const rootClassName = classNames(s.root, className, rounded && s["--rounded"], hidden && s["--hidden"], size && s[`--size-${size}`], color && s[`--color-${color}`], variant && s[`--variant-${variant}`], isActionable && s["--actionable"], highlighted && s["--highlighted"], empty && s["--empty"]);
|
|
15
|
+
const handleDismiss = (e) => {
|
|
15
16
|
e.stopPropagation();
|
|
16
17
|
onDismiss?.();
|
|
17
18
|
};
|
|
18
|
-
return (_jsxs(Actionable, { onClick: onClick, href: href, className: rootClassName, attributes: attributes, ref: ref, as: as, touchHitbox:
|
|
19
|
+
return (_jsxs(Actionable, { onClick: onClick, href: href, className: rootClassName, attributes: attributes, ref: ref, as: as, touchHitbox: isActionable, children: [icon && _jsx(Icon, { svg: icon, autoWidth: true, size: iconSize, className: s.icon }), children && (_jsx(Text, { variant: size === "large" ? "body-3" : "caption-1", weight: "medium", attributes: {
|
|
19
20
|
"aria-hidden": hidden ? "true" : undefined,
|
|
20
|
-
}, children: children })), endIcon && _jsx(Icon, { svg: endIcon, autoWidth: true, size: iconSize, className: s.icon }), onDismiss && (_jsx(Actionable, { onClick:
|
|
21
|
+
}, children: children })), endIcon && _jsx(Icon, { svg: endIcon, autoWidth: true, size: iconSize, className: s.icon }), onDismiss && (_jsx(Actionable, { onClick: handleDismiss, className: s.dismiss, as: "span", attributes: { "aria-label": dismissAriaLabel }, touchHitbox: true, children: _jsx(Icon, { svg: IconClose, size: iconSize }) }))] }));
|
|
21
22
|
});
|
|
22
23
|
Badge.displayName = "Badge";
|
|
23
24
|
export default Badge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.root{--rs-badge-border-color:transparent;align-items:center;backface-visibility:hidden;background:var(--rs-color-background-neutral);border-radius:var(--rs-radius-small);box-shadow:0 0 0 1px var(--rs-badge-border-color) inset;box-sizing:border-box;color:var(--rs-color-foreground-neutral);display:inline-flex;gap:var(--rs-badge-gap);justify-content:center;min-height:calc(var(--rs-badge-line-height) + (var(--rs-badge-p-v) * 2));min-width:calc(var(--rs-badge-line-height) + (var(--rs-badge-p-v) * 2));padding:var(--rs-badge-p-v) var(--rs-badge-p-h);transition:var(--rs-duration-medium) var(--rs-easing-standard);transition-property:transform,opacity,box-shadow,background-color;vertical-align:top}.root
|
|
1
|
+
.root{--rs-badge-border-color:transparent;align-items:center;backface-visibility:hidden;background:var(--rs-color-background-neutral);border-radius:var(--rs-radius-small);box-shadow:0 0 0 1px var(--rs-badge-border-color) inset;box-sizing:border-box;color:var(--rs-color-foreground-neutral);display:inline-flex;gap:var(--rs-badge-gap);justify-content:center;min-height:calc(var(--rs-badge-line-height) + (var(--rs-badge-p-v) * 2));min-width:calc(var(--rs-badge-line-height) + (var(--rs-badge-p-v) * 2));padding:var(--rs-badge-p-v) var(--rs-badge-p-h);transition:var(--rs-duration-medium) var(--rs-easing-standard);transition-property:transform,opacity,box-shadow,background-color;vertical-align:top}.root.--empty{height:var(--rs-badge-empty-size);min-height:auto;min-width:auto;padding:0;width:var(--rs-badge-empty-size)}.icon:only-child{margin-inline:calc(var(--rs-unit-x1) * -1)}.dismiss{border-radius:var(--rs-radius-small);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity}.root.--highlighted{opacity:.8}@media (hover:hover) and (pointer:fine){.root .dismiss:hover,.root.--actionable:hover:not(:has(.dismiss:hover)){opacity:.8}}.root.--variant-faded{background:var(--rs-color-background-neutral-faded);color:var(--rs-color-foreground-neutral-faded)}.root.--variant-outline{--rs-badge-border-color:var(--rs-color-border-neutral);background:none}.root.--color-positive{background:var(--rs-color-background-positive);color:var(--rs-color-on-background-positive)}.root.--color-positive.--variant-faded{background:var(--rs-color-background-positive-faded);color:var(--rs-color-foreground-positive)}.root.--color-positive.--variant-outline{--rs-badge-border-color:var(--rs-color-border-positive-faded);background:none;color:var(--rs-color-foreground-positive)}.root.--color-critical{background:var(--rs-color-background-critical);color:var(--rs-color-on-background-critical)}.root.--color-critical.--variant-faded{background:var(--rs-color-background-critical-faded);color:var(--rs-color-foreground-critical)}.root.--color-critical.--variant-outline{--rs-badge-border-color:var(--rs-color-border-critical-faded);background:none;color:var(--rs-color-foreground-critical)}.root.--color-warning{background:var(--rs-color-background-warning);color:var(--rs-color-on-background-warning)}.root.--color-warning.--variant-faded{background:var(--rs-color-background-warning-faded);color:var(--rs-color-foreground-warning)}.root.--color-warning.--variant-outline{--rs-badge-border-color:var(--rs-color-border-warning-faded);background:none;color:var(--rs-color-foreground-warning)}.root.--color-primary{background:var(--rs-color-background-primary);color:var(--rs-color-on-background-primary)}.root.--color-primary.--variant-faded{background:var(--rs-color-background-primary-faded);color:var(--rs-color-foreground-primary)}.root.--color-primary.--variant-outline{--rs-badge-border-color:var(--rs-color-border-primary-faded);background:none;color:var(--rs-color-foreground-primary)}.root.--size-small{--rs-badge-p-v:calc(var(--rs-unit-x1) / 2);--rs-badge-p-h:var(--rs-unit-x1);--rs-badge-line-height:var(--rs-line-height-caption-1);--rs-badge-empty-size:var(--rs-unit-x2);--rs-badge-gap:calc(var(--rs-unit-x1) / 2)}.root.--size-medium{--rs-badge-p-v:var(--rs-unit-x1);--rs-badge-p-h:var(--rs-unit-x2);--rs-badge-line-height:var(--rs-line-height-caption-1);--rs-badge-empty-size:var(--rs-unit-x3);--rs-badge-gap:var(--rs-unit-x1)}.root.--size-large{--rs-badge-p-v:var(--rs-unit-x1);--rs-badge-p-h:var(--rs-unit-x2);--rs-badge-line-height:var(--rs-line-height-body-3);--rs-badge-empty-size:var(--rs-unit-x4);--rs-badge-gap:var(--rs-unit-x1)}.root.--rounded{border-radius:var(--rs-radius-circular)}.root.--hidden{opacity:0;transform:scale(.2)}.container{display:inline-block;position:relative;vertical-align:top}.container .root{inset-inline-end:0;position:absolute;transform:translate(50%,var(--rs-badge-translate-y)) scale(1);user-select:none;z-index:10}.container .root.--hidden{transform:translate(50%,var(--rs-badge-translate-y)) scale(.2)}[dir=rtl] .container .root{transform:translate(-50%,var(--rs-badge-translate-y)) scale(1)}[dir=rtl] .container .root.--hidden{transform:translate(-50%,var(--rs-badge-translate-y)) scale(.2)}.--container-overlap .root{inset-inline-end:14%}.--container-position-top-end .root{--rs-badge-translate-y:-50%;top:0}.--container-position-top-end.--container-overlap .root{top:14%}.--container-position-bottom-end .root{--rs-badge-translate-y:50%;bottom:0}.--container-position-bottom-end.--container-overlap .root{bottom:14%}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { classNames } from "
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
3
|
import s from "./Badge.module.css";
|
|
4
4
|
const BadgeContainer = (props) => {
|
|
5
5
|
const { children, position = "top-end", overlap, className, attributes } = props;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import Button from "../Button/index.js";
|
|
5
6
|
import Icon from "../Icon/index.js";
|
|
@@ -7,7 +8,6 @@ import Text from "../Text/index.js";
|
|
|
7
8
|
import View from "../View/index.js";
|
|
8
9
|
import IconChevronRight from "../../icons/ChevronRight.js";
|
|
9
10
|
import IconDotsHorizontal from "../../icons/DotsHorizontal.js";
|
|
10
|
-
import { classNames } from "../../utilities/props.js";
|
|
11
11
|
const Breadcrumbs = (props) => {
|
|
12
12
|
const { children, separator, color, defaultVisibleItems, expandAriaLabel, disableExpand, ariaLabel, className, attributes, } = props;
|
|
13
13
|
const visibleItems = defaultVisibleItems && defaultVisibleItems >= 2 ? defaultVisibleItems : null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
4
|
import Actionable from "../Actionable/index.js";
|
|
4
5
|
import Icon from "../Icon/index.js";
|
|
5
6
|
import Loader from "../Loader/index.js";
|
|
6
|
-
import {
|
|
7
|
+
import { responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
|
|
7
8
|
import s from "./Button.module.css";
|
|
8
9
|
const Button = forwardRef((props, ref) => {
|
|
9
10
|
const { variant = "solid", color = "neutral", elevated, highlighted, fullWidth, loading, loadingAriaLabel, disabled, type, href, size = "medium", children, rounded, onClick, icon, endIcon, stopPropagation, as, render, className, attributes, } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { classNames } from "
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
3
|
import s from "./Button.module.css";
|
|
4
4
|
const ButtonGroup = (props) => {
|
|
5
5
|
const { children, className, attributes } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import Actionable from "../Actionable/index.js";
|
|
4
|
-
import { classNames } from "../../utilities/props.js";
|
|
5
5
|
import s from "./Calendar.module.css";
|
|
6
6
|
import { getLocalISODate } from "./Calendar.utils.js";
|
|
7
7
|
const CalendarDate = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
4
|
import Actionable from "../Actionable/index.js";
|
|
4
5
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
5
|
-
import { classNames } from "../../utilities/props.js";
|
|
6
6
|
import s from "./Card.module.css";
|
|
7
7
|
const Card = forwardRef((props, ref) => {
|
|
8
8
|
const { padding = 4 } = props;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
4
|
+
import { rafThrottle } from "@reshaped/utilities/internal";
|
|
3
5
|
import React from "react";
|
|
4
6
|
import View from "../View/index.js";
|
|
5
7
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
6
8
|
import useRTL from "../../hooks/useRTL.js";
|
|
7
|
-
import {
|
|
8
|
-
import { classNames, responsiveVariables, responsiveClassNames } from "../../utilities/props.js";
|
|
9
|
+
import { responsiveVariables, responsiveClassNames } from "../../utilities/props.js";
|
|
9
10
|
import s from "./Carousel.module.css";
|
|
10
11
|
import CarouselControl from "./CarouselControl.js";
|
|
11
12
|
const Carousel = (props) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import { forwardRef, useState } from "react";
|
|
4
5
|
import Button from "../Button/index.js";
|
|
5
6
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
6
7
|
import IconChevronLeft from "../../icons/ChevronLeft.js";
|
|
7
8
|
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,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { useCheckboxGroup } from "../CheckboxGroup/index.js";
|
|
5
6
|
import { useFormControl } from "../FormControl/index.js";
|
|
@@ -8,7 +9,7 @@ import Icon from "../Icon/index.js";
|
|
|
8
9
|
import Text from "../Text/index.js";
|
|
9
10
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
10
11
|
import IconCheckmark from "../../icons/Checkmark.js";
|
|
11
|
-
import {
|
|
12
|
+
import { responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
|
|
12
13
|
import s from "./Checkbox.module.css";
|
|
13
14
|
const Checkbox = (props) => {
|
|
14
15
|
const { children, value, onChange, onFocus, onBlur, indeterminate, size = "medium", className, attributes, inputAttributes, } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
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,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import Button from "../Button/index.js";
|
|
4
5
|
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,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import Text from "../Text/index.js";
|
|
3
|
-
import {
|
|
4
|
+
import { responsiveClassNames } from "../../utilities/props.js";
|
|
4
5
|
import s from "./Divider.module.css";
|
|
5
6
|
const Divider = (props) => {
|
|
6
7
|
const { vertical, blank, children, contentPosition = "center", color, offset, className, attributes, } = props;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { useFlyoutContext } from "../Flyout/index.js";
|
|
5
6
|
import Icon from "../Icon/index.js";
|
|
@@ -9,7 +10,6 @@ import * as keys from "../../constants/keys.js";
|
|
|
9
10
|
import useHotkeys from "../../hooks/useHotkeys.js";
|
|
10
11
|
import useRTL from "../../hooks/useRTL.js";
|
|
11
12
|
import IconChevronRight from "../../icons/ChevronRight.js";
|
|
12
|
-
import { classNames } from "../../utilities/props.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
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import HiddenVisually from "../HiddenVisually/index.js";
|
|
4
5
|
import View from "../View/index.js";
|
|
5
6
|
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,26 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import Portal from "../_private/Portal/index.js";
|
|
5
6
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
6
|
-
import { findClosestPositionContainer } from "../../utilities/dom/index.js";
|
|
7
|
-
import { classNames } from "../../utilities/props.js";
|
|
8
7
|
import { useFlyoutContext, ContentProvider } from "./Flyout.context.js";
|
|
9
8
|
import s from "./Flyout.module.css";
|
|
10
9
|
import cooldown from "./utilities/cooldown.js";
|
|
11
10
|
const FlyoutContent = (props) => {
|
|
12
11
|
const { children, className, attributes } = props;
|
|
13
|
-
const { flyout, id, flyoutElRef,
|
|
12
|
+
const { flyout, id, flyoutElRef, handleTransitionEnd, triggerType, handleContentMouseEnter, handleMouseLeave, handleContentMouseDown, handleContentMouseUp, contentClassName, contentAttributes, contentMaxHeight, contentMaxWidth, trapFocusMode, disableContentHover, autoFocus, width, isSubmenu, } = useFlyoutContext();
|
|
14
13
|
const { status, position } = flyout;
|
|
15
14
|
const [mounted, setMounted] = React.useState(false);
|
|
16
|
-
const closestFixedContainer = React.useMemo(() => {
|
|
17
|
-
if (!mounted)
|
|
18
|
-
return null;
|
|
19
|
-
if (!triggerElRef)
|
|
20
|
-
return null;
|
|
21
|
-
return findClosestPositionContainer({ el: triggerElRef.current });
|
|
22
|
-
}, [mounted, triggerElRef]);
|
|
23
|
-
const containerRef = passedContainerRef || { current: closestFixedContainer };
|
|
24
15
|
useIsomorphicLayoutEffect(() => {
|
|
25
16
|
setMounted(true);
|
|
26
17
|
}, []);
|
|
@@ -53,7 +44,7 @@ const FlyoutContent = (props) => {
|
|
|
53
44
|
"--rs-flyout-max-h": contentMaxHeight,
|
|
54
45
|
"--rs-flyout-max-w": contentMaxWidth,
|
|
55
46
|
}, ref: flyoutElRef, onTransitionEnd: handleTransitionEnd, onMouseEnter: triggerType === "hover" ? handleContentMouseEnter : 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 }) }) }));
|
|
56
|
-
return _jsx(Portal, {
|
|
47
|
+
return _jsx(Portal, { children: content });
|
|
57
48
|
};
|
|
58
49
|
FlyoutContent.displayName = "Flyout.Content";
|
|
59
50
|
export default FlyoutContent;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { TrapFocus } from "@reshaped/utilities";
|
|
4
|
+
import { checkKeyboardMode } from "@reshaped/utilities/internal";
|
|
3
5
|
import React from "react";
|
|
4
6
|
import useIsDismissible from "../../hooks/_private/useIsDismissible.js";
|
|
5
7
|
import usePrevious from "../../hooks/_private/usePrevious.js";
|
|
@@ -8,7 +10,6 @@ import useHandlerRef from "../../hooks/useHandlerRef.js";
|
|
|
8
10
|
import useHotkeys from "../../hooks/useHotkeys.js";
|
|
9
11
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
10
12
|
import useOnClickOutside from "../../hooks/useOnClickOutside.js";
|
|
11
|
-
import { TrapFocus, checkKeyboardMode } from "../../utilities/a11y/index.js";
|
|
12
13
|
import { checkTransitions } from "../../utilities/animation.js";
|
|
13
14
|
import * as timeouts from "./Flyout.constants.js";
|
|
14
15
|
import { Provider, useFlyoutTriggerContext, useFlyoutContext, useFlyoutContentContext, } from "./Flyout.context.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
3
|
-
import {
|
|
4
|
+
import { responsiveVariables, responsivePropDependency } from "../../utilities/props.js";
|
|
4
5
|
import s from "./Grid.module.css";
|
|
5
6
|
export const GridItem = (props) => {
|
|
6
7
|
const { area, colStart, colEnd, colSpan, rowStart, rowEnd, rowSpan, children, className,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { classNames
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
|
+
import { responsiveClassNames } from "../../utilities/props.js";
|
|
3
4
|
import s from "./Hidden.module.css";
|
|
4
5
|
const Hidden = (props) => {
|
|
5
6
|
const { as: TagName = "div", children, visibility, hide } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { useCheckboxGroup } from "../CheckboxGroup/index.js";
|
|
3
4
|
import { useFormControl } from "../FormControl/index.js";
|
|
4
5
|
import { useRadioGroup } from "../RadioGroup/index.js";
|
|
5
|
-
import { classNames } from "../../utilities/props.js";
|
|
6
6
|
import s from "./HiddenInput.module.css";
|
|
7
7
|
const HiddenInput = (props) => {
|
|
8
8
|
const { type, value, className, onBlur, onFocus, onChange, attributes } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import Text from "../Text/index.js";
|
|
3
|
-
import { classNames } from "../../utilities/props.js";
|
|
4
4
|
import s from "./Hotkey.module.css";
|
|
5
5
|
const Hotkey = (props) => {
|
|
6
6
|
const { children, active, className, attributes } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import React from "react";
|
|
3
4
|
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
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
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, outline, displayMode = "cover", borderRadius, className, attributes, imageAttributes: passedImageAttributes, renderImage, } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
4
|
import Actionable from "../Actionable/index.js";
|
|
4
5
|
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,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { classNames
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
|
+
import { responsiveClassNames } from "../../utilities/props.js";
|
|
3
4
|
import s from "./Loader.module.css";
|
|
4
5
|
const Loader = (props) => {
|
|
5
6
|
const { size = "small", color = "primary", className, attributes } = props;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
4
|
import Actionable from "../Actionable/index.js";
|
|
4
5
|
import Icon from "../Icon/index.js";
|
|
5
6
|
import View from "../View/index.js";
|
|
6
|
-
import {
|
|
7
|
+
import { responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
|
|
7
8
|
import s from "./MenuItem.module.css";
|
|
8
9
|
const MenuItem = forwardRef((props, ref) => {
|
|
9
10
|
const { icon, startSlot, endSlot, children, color = "primary", selected, highlighted, disabled, onClick, href, size = "medium", roundedCorners, stopPropagation, as, render, className, attributes, } = props;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
4
|
+
import { enableScroll, disableScroll } from "@reshaped/utilities/internal";
|
|
3
5
|
import React from "react";
|
|
4
6
|
import Overlay from "../Overlay/index.js";
|
|
5
7
|
import Text from "../Text/index.js";
|
|
@@ -7,8 +9,7 @@ import useElementId from "../../hooks/useElementId.js";
|
|
|
7
9
|
import useHandlerRef from "../../hooks/useHandlerRef.js";
|
|
8
10
|
import useResponsiveClientValue from "../../hooks/useResponsiveClientValue.js";
|
|
9
11
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
10
|
-
import {
|
|
11
|
-
import { enableScroll, disableScroll } from "../../utilities/scroll/index.js";
|
|
12
|
+
import { responsiveVariables, responsiveClassNames } from "../../utilities/props.js";
|
|
12
13
|
import s from "./Modal.module.css";
|
|
13
14
|
const DRAG_THRESHOLD = 32;
|
|
14
15
|
const DRAG_OPPOSITE_THRESHOLD = 100;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { TrapFocus } from "@reshaped/utilities";
|
|
4
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
5
|
import React from "react";
|
|
4
6
|
import Portal from "../_private/Portal/index.js";
|
|
5
7
|
import useIsDismissible from "../../hooks/_private/useIsDismissible.js";
|
|
@@ -8,9 +10,7 @@ import useHotkeys from "../../hooks/useHotkeys.js";
|
|
|
8
10
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
9
11
|
import useScrollLock from "../../hooks/useScrollLock.js";
|
|
10
12
|
import useToggle from "../../hooks/useToggle.js";
|
|
11
|
-
import { TrapFocus } from "../../utilities/a11y/index.js";
|
|
12
13
|
import { onNextFrame } from "../../utilities/animation.js";
|
|
13
|
-
import { classNames } from "../../utilities/props.js";
|
|
14
14
|
import s from "./Overlay.module.css";
|
|
15
15
|
const Overlay = (props) => {
|
|
16
16
|
const { active, children, transparent, blurred, overflow, onClose, onOpen, onAfterClose, onAfterOpen, disableCloseOnClick, containerRef, className, attributes, } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import Dismissible from "../Dismissible/index.js";
|
|
3
4
|
import Flyout, { useFlyoutContext } from "../Flyout/index.js";
|
|
4
5
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
5
|
-
import { classNames } from "../../utilities/props.js";
|
|
6
6
|
import s from "./Popover.module.css";
|
|
7
7
|
const Popover = (props) => {
|
|
8
8
|
const { width, variant = "elevated", triggerType = "click", position = "bottom", elevation, borderRadius, ...flyoutProps } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { classNames } from "
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
3
|
import s from "./Progress.module.css";
|
|
4
4
|
const Progress = (props) => {
|
|
5
5
|
const { value = 0, min = 0, max = 100, color = "primary", size = "medium", duration, ariaLabel, className, attributes, } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { classNames } from "
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
4
4
|
import s from "./ProgressIndicator.module.css";
|
|
5
5
|
const VISIBLE_ITEMS = 7;
|
|
6
6
|
const HALF_ITEMS = Math.floor(VISIBLE_ITEMS / 2);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import { useFormControl } from "../FormControl/index.js";
|
|
4
5
|
import HiddenInput from "../HiddenInput/index.js";
|
|
5
6
|
import { useRadioGroup } from "../RadioGroup/index.js";
|
|
6
7
|
import Text from "../Text/index.js";
|
|
7
|
-
import {
|
|
8
|
+
import { responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
|
|
8
9
|
import s from "./Radio.module.css";
|
|
9
10
|
const Radio = (props) => {
|
|
10
11
|
const { children, value, onChange, onFocus, onBlur, size = "medium", className, attributes, inputAttributes, } = props;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { GlobalColorMode, PrivateTheme } from "../Theme/index.js";
|
|
5
6
|
import { useGlobalColorMode } from "../Theme/useTheme.js";
|
|
@@ -7,7 +8,6 @@ import { ToastProvider } from "../Toast/index.js";
|
|
|
7
8
|
import { SingletonEnvironmentContext, useSingletonEnvironment, } from "../../hooks/_private/useSingletonEnvironment.js";
|
|
8
9
|
import { SingletonHotkeysProvider } from "../../hooks/_private/useSingletonHotkeys.js";
|
|
9
10
|
import { SingletonKeyboardModeProvider } from "../../hooks/_private/useSingletonKeyboardMode.js";
|
|
10
|
-
import { classNames } from "../../utilities/props.js";
|
|
11
11
|
import s from "./Reshaped.module.css";
|
|
12
12
|
import "./Reshaped.css";
|
|
13
13
|
const ReshapedInner = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import View from "../View/index.js";
|
|
5
|
-
import { classNames } from "../../utilities/props.js";
|
|
6
6
|
import s from "./Resizable.module.css";
|
|
7
7
|
import { ResizableHandleContext } from "./ResizableHandle.js";
|
|
8
8
|
export const ResizableItem = () => null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import View from "../View/index.js";
|
|
5
6
|
import useDrag from "../../hooks/_private/useDrag.js";
|
|
6
|
-
import { classNames } from "../../utilities/props.js";
|
|
7
7
|
import s from "./Resizable.module.css";
|
|
8
8
|
export const ResizableHandleContext = React.createContext({});
|
|
9
9
|
const ResizableHandle = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@reshaped/utilities";
|
|
2
3
|
import View from "../View/index.js";
|
|
3
|
-
import { classNames } from "../../utilities/props.js";
|
|
4
4
|
import s from "./Scrim.module.css";
|
|
5
5
|
const Scrim = (props) => {
|
|
6
6
|
const { children, backgroundSlot, position = "cover", paddingInline, paddingBlock, padding, borderRadius, attributes, className, scrimClassName, } = props;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
4
|
+
import { disableScroll, enableScroll } from "@reshaped/utilities/internal";
|
|
3
5
|
import React, { forwardRef } from "react";
|
|
4
6
|
import useHandlerRef from "../../hooks/useHandlerRef.js";
|
|
5
7
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
6
8
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
7
|
-
import { classNames } from "../../utilities/props.js";
|
|
8
|
-
import { disableScroll, enableScroll } from "../../utilities/scroll/index.js";
|
|
9
9
|
import s from "./ScrollArea.module.css";
|
|
10
10
|
const ScrollAreaBar = (props) => {
|
|
11
11
|
const { ratio, position, vertical, onThumbMove } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import React from "react";
|
|
4
|
-
import { classNames } from "../../utilities/props.js";
|
|
5
5
|
import s from "./Select.module.css";
|
|
6
6
|
import SelectEndContent from "./SelectEndContent.js";
|
|
7
7
|
import SelectStartContent from "./SelectStartContent.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@reshaped/utilities";
|
|
3
4
|
import { useFormControl } from "../FormControl/index.js";
|
|
4
5
|
import useElementId from "../../hooks/useElementId.js";
|
|
5
|
-
import {
|
|
6
|
+
import { responsiveClassNames } from "../../utilities/props.js";
|
|
6
7
|
import s from "./Select.module.css";
|
|
7
8
|
const SelectRoot = (passedProps) => {
|
|
8
9
|
const formControl = useFormControl();
|