@seed-design/react 2.3.0 → 2.4.0
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/lib/components/ActionButton/ActionButton.cjs +5 -2
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -1
- package/lib/components/ActionButton/ActionButton.js +5 -2
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.cjs +9 -6
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.js +9 -6
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.cjs +2 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayTrigger.js +2 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.cjs +9 -6
- package/lib/components/AttachmentInput/AttachmentInputItem.d.ts.map +1 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.js +9 -6
- package/lib/components/AttachmentInput/AttachmentInputTrigger.cjs +2 -1
- package/lib/components/AttachmentInput/AttachmentInputTrigger.d.ts.map +1 -1
- package/lib/components/AttachmentInput/AttachmentInputTrigger.js +2 -1
- package/lib/components/BottomSheet/BottomSheet.cjs +5 -3
- package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/components/BottomSheet/BottomSheet.js +5 -3
- package/lib/components/Callout/Callout.cjs +3 -2
- package/lib/components/Callout/Callout.d.ts.map +1 -1
- package/lib/components/Callout/Callout.js +3 -2
- package/lib/components/Checkbox/Checkbox.cjs +2 -1
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +2 -1
- package/lib/components/Chip/Chip.cjs +2 -1
- package/lib/components/Chip/Chip.d.ts.map +1 -1
- package/lib/components/Chip/Chip.js +2 -1
- package/lib/components/ChipTabs/ChipTabs.cjs +2 -1
- package/lib/components/ChipTabs/ChipTabs.d.ts.map +1 -1
- package/lib/components/ChipTabs/ChipTabs.js +2 -1
- package/lib/components/ContentDialog/ContentDialog.cjs +5 -3
- package/lib/components/ContentDialog/ContentDialog.d.ts.map +1 -1
- package/lib/components/ContentDialog/ContentDialog.js +5 -3
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +5 -2
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts.map +1 -1
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +5 -2
- package/lib/components/DatePicker/DatePicker.cjs +2 -2
- package/lib/components/DatePicker/DatePicker.d.ts +10 -4
- package/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +2 -2
- package/lib/components/DatePicker/index.d.ts +1 -1
- package/lib/components/DatePicker/index.d.ts.map +1 -1
- package/lib/components/FieldButton/FieldButton.cjs +2 -1
- package/lib/components/FieldButton/FieldButton.d.ts.map +1 -1
- package/lib/components/FieldButton/FieldButton.js +2 -1
- package/lib/components/FloatingActionButton/FloatingActionButton.cjs +2 -1
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts.map +1 -1
- package/lib/components/FloatingActionButton/FloatingActionButton.js +2 -1
- package/lib/components/HelpBubble/HelpBubble.cjs +2 -1
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +2 -1
- package/lib/components/ImageFrame/ImageFrame.cjs +5 -2
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +1 -1
- package/lib/components/ImageFrame/ImageFrame.js +5 -2
- package/lib/components/LoadingIndicator/usePendingButton.d.ts +57 -57
- package/lib/components/MenuSheet/MenuSheet.cjs +2 -1
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.js +2 -1
- package/lib/components/PageBanner/PageBanner.cjs +3 -2
- package/lib/components/PageBanner/PageBanner.d.ts.map +1 -1
- package/lib/components/PageBanner/PageBanner.js +3 -2
- package/lib/components/QuantityPicker/QuantityPicker.cjs +8 -4
- package/lib/components/QuantityPicker/QuantityPicker.d.ts.map +1 -1
- package/lib/components/QuantityPicker/QuantityPicker.js +8 -4
- package/lib/components/RadioGroup/RadioGroup.cjs +2 -1
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.js +2 -1
- package/lib/components/ReactionButton/ReactionButton.cjs +5 -2
- package/lib/components/ReactionButton/ReactionButton.d.ts.map +1 -1
- package/lib/components/ReactionButton/ReactionButton.js +5 -2
- package/lib/components/ScrollFog/ScrollFog.d.ts +4 -6
- package/lib/components/ScrollFog/ScrollFog.d.ts.map +1 -1
- package/lib/components/ScrollFog/ScrollFog.test.d.ts +2 -0
- package/lib/components/ScrollFog/ScrollFog.test.d.ts.map +1 -0
- package/lib/components/SideNavigation/SideNavigation.cjs +1 -1
- package/lib/components/SideNavigation/SideNavigation.js +1 -1
- package/lib/components/SidePanel/SidePanel.cjs +5 -3
- package/lib/components/SidePanel/SidePanel.d.ts.map +1 -1
- package/lib/components/SidePanel/SidePanel.js +5 -3
- package/lib/components/Slider/Slider.cjs +1 -1
- package/lib/components/Slider/Slider.js +1 -1
- package/lib/components/Snackbar/Snackbar.cjs +2 -1
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/lib/components/Snackbar/Snackbar.js +2 -1
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.cjs +2 -1
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.d.ts.map +1 -1
- package/lib/components/SwipeableMenuSheet/SwipeableMenuSheet.js +2 -1
- package/lib/components/Switch/Switch.cjs +2 -1
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +2 -1
- package/lib/components/Tabs/Tabs.cjs +2 -1
- package/lib/components/Tabs/Tabs.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.js +2 -1
- package/lib/components/TextField/TextField.cjs +1 -1
- package/lib/components/TextField/TextField.js +1 -1
- package/lib/components/ToggleButton/ToggleButton.cjs +5 -2
- package/lib/components/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +5 -2
- package/lib/components/WheelPicker/WheelPicker.cjs +94 -0
- package/lib/components/WheelPicker/WheelPicker.d.ts +56 -0
- package/lib/components/WheelPicker/WheelPicker.d.ts.map +1 -0
- package/lib/components/WheelPicker/WheelPicker.js +89 -0
- package/lib/components/WheelPicker/WheelPicker.namespace.cjs +15 -0
- package/lib/components/WheelPicker/WheelPicker.namespace.d.ts +2 -0
- package/lib/components/WheelPicker/WheelPicker.namespace.d.ts.map +1 -0
- package/lib/components/WheelPicker/WheelPicker.namespace.js +10 -0
- package/lib/components/WheelPicker/WheelPicker.test.d.ts +2 -0
- package/lib/components/WheelPicker/WheelPicker.test.d.ts.map +1 -0
- package/lib/components/WheelPicker/index.cjs +12 -0
- package/lib/components/WheelPicker/index.d.ts +3 -0
- package/lib/components/WheelPicker/index.d.ts.map +1 -0
- package/lib/components/WheelPicker/index.js +3 -0
- package/lib/components/index.cjs +11 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +3 -1
- package/lib/components/private/WheelPicker.cjs +2 -3
- package/lib/components/private/WheelPicker.d.ts +3 -3
- package/lib/components/private/WheelPicker.d.ts.map +1 -1
- package/lib/components/private/WheelPicker.js +3 -3
- package/lib/components/private/useDismissible.d.ts +123 -123
- package/lib/index.cjs +14 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -1
- package/lib/utils/elementSizeVars.cjs +76 -0
- package/lib/utils/elementSizeVars.d.ts +15 -0
- package/lib/utils/elementSizeVars.d.ts.map +1 -0
- package/lib/utils/elementSizeVars.js +74 -0
- package/lib/utils/scaleFeedback.cjs +99 -0
- package/lib/utils/scaleFeedback.d.ts +58 -0
- package/lib/utils/scaleFeedback.d.ts.map +1 -0
- package/lib/utils/scaleFeedback.js +94 -0
- package/package.json +4 -4
- package/src/components/ActionButton/ActionButton.tsx +5 -2
- package/src/components/AttachmentDisplay/AttachmentDisplayItem.tsx +14 -9
- package/src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx +7 -4
- package/src/components/AttachmentInput/AttachmentInputItem.tsx +14 -9
- package/src/components/AttachmentInput/AttachmentInputTrigger.tsx +3 -3
- package/src/components/BottomSheet/BottomSheet.tsx +5 -3
- package/src/components/Callout/Callout.tsx +9 -4
- package/src/components/Checkbox/Checkbox.tsx +3 -3
- package/src/components/Chip/Chip.tsx +2 -1
- package/src/components/ChipTabs/ChipTabs.tsx +3 -3
- package/src/components/ContentDialog/ContentDialog.tsx +5 -3
- package/src/components/ContextualFloatingButton/ContextualFloatingButton.tsx +5 -2
- package/src/components/DatePicker/DatePicker.test.tsx +20 -0
- package/src/components/DatePicker/DatePicker.tsx +14 -2
- package/src/components/DatePicker/index.ts +2 -0
- package/src/components/FieldButton/FieldButton.tsx +6 -3
- package/src/components/FloatingActionButton/FloatingActionButton.tsx +4 -4
- package/src/components/HelpBubble/HelpBubble.tsx +7 -4
- package/src/components/HelpBubbleTooltip/HelpBubbleTooltip.tsx +1 -1
- package/src/components/ImageFrame/ImageFrame.tsx +8 -1
- package/src/components/MenuSheet/MenuSheet.tsx +6 -3
- package/src/components/PageBanner/PageBanner.tsx +5 -6
- package/src/components/QuantityPicker/QuantityPicker.tsx +8 -4
- package/src/components/RadioGroup/RadioGroup.tsx +7 -4
- package/src/components/ReactionButton/ReactionButton.tsx +5 -2
- package/src/components/ScrollFog/ScrollFog.test.tsx +13 -0
- package/src/components/ScrollFog/ScrollFog.tsx +5 -7
- package/src/components/SidePanel/SidePanel.tsx +5 -3
- package/src/components/Snackbar/Snackbar.tsx +6 -3
- package/src/components/SwipeableMenuSheet/SwipeableMenuSheet.tsx +7 -4
- package/src/components/Switch/Switch.tsx +3 -3
- package/src/components/Tabs/Tabs.tsx +3 -3
- package/src/components/ToggleButton/ToggleButton.tsx +5 -2
- package/src/components/WheelPicker/WheelPicker.namespace.ts +9 -0
- package/src/components/WheelPicker/WheelPicker.test.tsx +270 -0
- package/src/components/WheelPicker/WheelPicker.tsx +210 -0
- package/src/components/WheelPicker/index.ts +11 -0
- package/src/components/index.ts +1 -0
- package/src/components/private/WheelPicker.test.tsx +1 -0
- package/src/components/private/WheelPicker.tsx +6 -6
- package/src/index.ts +2 -0
- package/src/utils/elementSizeVars.tsx +112 -0
- package/src/utils/scaleFeedback.tsx +128 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
4
5
|
import { withIconRequired } from "../Icon/Icon.js";
|
|
5
6
|
import { useCheckboxContext } from "@seed-design/react-checkbox";
|
|
6
7
|
import { useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
@@ -15,7 +16,7 @@ var withStateProps = createWithStateProps([{
|
|
|
15
16
|
useContext: useRadioGroupItemContext,
|
|
16
17
|
strict: false
|
|
17
18
|
}]);
|
|
18
|
-
var ChipRoot = withIconRequired(withProvider(Primitive.button, "root"), (props) => props.layout === "iconOnly");
|
|
19
|
+
var ChipRoot = withIconRequired(withScaleFeedback(withProvider(Primitive.button, "root")), (props) => props.layout === "iconOnly");
|
|
19
20
|
ChipRoot.displayName = "Chip.Root";
|
|
20
21
|
var ChipLabel = withContext(withStateProps(Primitive.span), "label");
|
|
21
22
|
ChipLabel.displayName = "Chip.Label";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
4
5
|
let _seed_design_react_tabs = require("@seed-design/react-tabs");
|
|
5
6
|
let clsx = require("clsx");
|
|
6
7
|
clsx = require_runtime.__toESM(clsx);
|
|
@@ -23,7 +24,7 @@ var ChipTabsRoot = (0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
|
23
24
|
});
|
|
24
25
|
ChipTabsRoot.displayName = "ChipTabsRoot";
|
|
25
26
|
var ChipTabsList = withContext(_seed_design_react_tabs.Tabs.List, "list");
|
|
26
|
-
var ChipTabsTrigger = withContext(_seed_design_react_tabs.Tabs.Trigger, "trigger");
|
|
27
|
+
var ChipTabsTrigger = require_scaleFeedback.withScaleFeedback(withContext(_seed_design_react_tabs.Tabs.Trigger, "trigger"));
|
|
27
28
|
var ChipTabsContent = withContext(_seed_design_react_tabs.Tabs.Content, "content");
|
|
28
29
|
var ChipTabsCarousel = withContext(_seed_design_react_tabs.Tabs.Carousel, "carousel");
|
|
29
30
|
var ChipTabsCarouselCamera = withContext(_seed_design_react_tabs.Tabs.CarouselCamera, "carouselCamera");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipTabs.d.ts","sourceRoot":"","sources":["../../../src/components/ChipTabs/ChipTabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChipTabs.d.ts","sourceRoot":"","sources":["../../../src/components/ChipTabs/ChipTabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAUhE,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,EAAE,aAAa,CAAC,SAAS;CAAG;AAE3F,eAAO,MAAM,YAAY,8GAexB,CAAC;AAKF,MAAM,WAAW,iBAAkB,SAAQ,aAAa,CAAC,SAAS;CAAG;AAErE,eAAO,MAAM,YAAY,8GAGxB,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,aAAa,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,eAAe,oHAE3B,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,aAAa,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,eAAe,kHAG3B,CAAC;AAIF,MAAM,WAAW,qBAAsB,SAAQ,aAAa,CAAC,aAAa;CAAG;AAE7E,eAAO,MAAM,gBAAgB,kHAG5B,CAAC;AAIF,MAAM,WAAW,2BAA4B,SAAQ,aAAa,CAAC,mBAAmB;CAAG;AAEzF,eAAO,MAAM,sBAAsB,wHAGlC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { withScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
3
4
|
import { Tabs } from "@seed-design/react-tabs";
|
|
4
5
|
import clsx$1 from "clsx";
|
|
5
6
|
import { forwardRef } from "react";
|
|
@@ -21,7 +22,7 @@ var ChipTabsRoot = forwardRef(({ className, ...props }, ref) => {
|
|
|
21
22
|
});
|
|
22
23
|
ChipTabsRoot.displayName = "ChipTabsRoot";
|
|
23
24
|
var ChipTabsList = withContext(Tabs.List, "list");
|
|
24
|
-
var ChipTabsTrigger = withContext(Tabs.Trigger, "trigger");
|
|
25
|
+
var ChipTabsTrigger = withScaleFeedback(withContext(Tabs.Trigger, "trigger"));
|
|
25
26
|
var ChipTabsContent = withContext(Tabs.Content, "content");
|
|
26
27
|
var ChipTabsCarousel = withContext(Tabs.Carousel, "carousel");
|
|
27
28
|
var ChipTabsCarouselCamera = withContext(Tabs.CarouselCamera, "carouselCamera");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
4
5
|
const require_styled = require("../../utils/styled.cjs");
|
|
5
6
|
const require_createRenderTrackingContext = require("../../utils/createRenderTrackingContext.cjs");
|
|
6
7
|
let _seed_design_react_dialog = require("@seed-design/react-dialog");
|
|
@@ -10,8 +11,8 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
10
11
|
let react = require("react");
|
|
11
12
|
react = require_runtime.__toESM(react);
|
|
12
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
-
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
14
14
|
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
15
|
+
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
15
16
|
let _seed_design_css_recipes_content_dialog = require("@seed-design/css/recipes/content-dialog");
|
|
16
17
|
//#region src/components/ContentDialog/ContentDialog.tsx
|
|
17
18
|
var { withContext, useClassNames, ClassNamesProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_content_dialog.contentDialog);
|
|
@@ -83,9 +84,10 @@ var ContentDialogAction = _seed_design_react_dialog.Dialog.CloseButton;
|
|
|
83
84
|
var ContentDialogCloseButton = react.forwardRef(({ className, ...props }, ref) => {
|
|
84
85
|
const classNames = useClassNames();
|
|
85
86
|
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
87
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = require_scaleFeedback.useScaleFeedback();
|
|
86
88
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_dialog.Dialog.CloseButton, {
|
|
87
|
-
ref: (0, _radix_ui_react_compose_refs.
|
|
88
|
-
className: (0, clsx.default)(classNames.closeButton, className),
|
|
89
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref, trackRef),
|
|
90
|
+
className: (0, clsx.default)(classNames.closeButton, scaleFeedbackClassName, className),
|
|
89
91
|
...props
|
|
90
92
|
});
|
|
91
93
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ContentDialog/ContentDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ContentDialog/ContentDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQpF,MAAM,WAAW,sBACf,SAAQ,yBAAyB,EAC/B,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACnD;;OAEG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;CAC5D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAe9D;AAID,MAAM,WAAW,yBAA0B,SAAQ,eAAe,CAAC,YAAY;CAAG;AAElF,eAAO,MAAM,oBAAo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BAAwB,yGAenC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { useScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
3
4
|
import { useStyleProps, withStyleProps } from "../../utils/styled.js";
|
|
4
5
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext.js";
|
|
5
6
|
import { Dialog } from "@seed-design/react-dialog";
|
|
@@ -7,8 +8,8 @@ import { Primitive } from "@seed-design/react-primitive";
|
|
|
7
8
|
import clsx$1 from "clsx";
|
|
8
9
|
import * as React$1 from "react";
|
|
9
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
10
12
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
11
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
12
13
|
import { contentDialog } from "@seed-design/css/recipes/content-dialog";
|
|
13
14
|
//#region src/components/ContentDialog/ContentDialog.tsx
|
|
14
15
|
var { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(contentDialog);
|
|
@@ -80,9 +81,10 @@ var ContentDialogAction = Dialog.CloseButton;
|
|
|
80
81
|
var ContentDialogCloseButton = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
81
82
|
const classNames = useClassNames();
|
|
82
83
|
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
84
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
83
85
|
return /* @__PURE__ */ jsx(Dialog.CloseButton, {
|
|
84
|
-
ref:
|
|
85
|
-
className: clsx$1(classNames.closeButton, className),
|
|
86
|
+
ref: useComposedRefs(scaleFeedbackRef, ref, trackRef),
|
|
87
|
+
className: clsx$1(classNames.closeButton, scaleFeedbackClassName, className),
|
|
86
88
|
...props
|
|
87
89
|
});
|
|
88
90
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
3
4
|
const require_Icon = require("../Icon/Icon.cjs");
|
|
4
5
|
const require_usePendingButton = require("../LoadingIndicator/usePendingButton.cjs");
|
|
5
6
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -8,6 +9,7 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
8
9
|
let react = require("react");
|
|
9
10
|
react = require_runtime.__toESM(react);
|
|
10
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
11
13
|
let _seed_design_css_recipes_contextual_floating_button = require("@seed-design/css/recipes/contextual-floating-button");
|
|
12
14
|
//#region src/components/ContextualFloatingButton/ContextualFloatingButton.tsx
|
|
13
15
|
var ContextualFloatingButton = react.forwardRef(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
@@ -19,14 +21,15 @@ var ContextualFloatingButton = react.forwardRef(({ variant, loading = false, lay
|
|
|
19
21
|
loading,
|
|
20
22
|
disabled: otherProps.disabled
|
|
21
23
|
});
|
|
24
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = require_scaleFeedback.useScaleFeedback();
|
|
22
25
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) console.warn("When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided.");
|
|
23
26
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_usePendingButton.PendingButtonProvider, {
|
|
24
27
|
value: api,
|
|
25
28
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.IconRequired, {
|
|
26
29
|
enabled: layout === "iconOnly",
|
|
27
30
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.button, {
|
|
28
|
-
ref,
|
|
29
|
-
className: (0, clsx.default)(recipeClassName, className),
|
|
31
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
32
|
+
className: (0, clsx.default)(recipeClassName, scaleFeedbackClassName, className),
|
|
30
33
|
...api.stateProps,
|
|
31
34
|
...otherProps,
|
|
32
35
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextualFloatingButton.d.ts","sourceRoot":"","sources":["../../../src/components/ContextualFloatingButton/ContextualFloatingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oCAAoC,EAC1C,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextualFloatingButton.d.ts","sourceRoot":"","sources":["../../../src/components/ContextualFloatingButton/ContextualFloatingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oCAAoC,EAC1C,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,6BACf,SAAQ,oCAAoC,EAC1C,qBAAqB,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,wBAAwB,yGA4BnC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
2
3
|
import { IconRequired } from "../Icon/Icon.js";
|
|
3
4
|
import { PendingButtonProvider, usePendingButton } from "../LoadingIndicator/usePendingButton.js";
|
|
4
5
|
import { Primitive } from "@seed-design/react-primitive";
|
|
5
6
|
import clsx$1 from "clsx";
|
|
6
7
|
import * as React$1 from "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
8
10
|
import { contextualFloatingButton } from "@seed-design/css/recipes/contextual-floating-button";
|
|
9
11
|
//#region src/components/ContextualFloatingButton/ContextualFloatingButton.tsx
|
|
10
12
|
var ContextualFloatingButton = React$1.forwardRef(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
@@ -16,14 +18,15 @@ var ContextualFloatingButton = React$1.forwardRef(({ variant, loading = false, l
|
|
|
16
18
|
loading,
|
|
17
19
|
disabled: otherProps.disabled
|
|
18
20
|
});
|
|
21
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
19
22
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) console.warn("When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided.");
|
|
20
23
|
return /* @__PURE__ */ jsx(PendingButtonProvider, {
|
|
21
24
|
value: api,
|
|
22
25
|
children: /* @__PURE__ */ jsx(IconRequired, {
|
|
23
26
|
enabled: layout === "iconOnly",
|
|
24
27
|
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
25
|
-
ref,
|
|
26
|
-
className: clsx$1(recipeClassName, className),
|
|
28
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
29
|
+
className: clsx$1(recipeClassName, scaleFeedbackClassName, className),
|
|
27
30
|
...api.stateProps,
|
|
28
31
|
...otherProps,
|
|
29
32
|
children
|
|
@@ -11,8 +11,8 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
11
11
|
let react = require("react");
|
|
12
12
|
react = require_runtime.__toESM(react);
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
-
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
15
14
|
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
15
|
+
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
16
16
|
let _seed_design_css_recipes_date_picker = require("@seed-design/css/recipes/date-picker");
|
|
17
17
|
let _seed_design_react_date_picker = require("@seed-design/react-date-picker");
|
|
18
18
|
//#region src/components/DatePicker/DatePicker.tsx
|
|
@@ -229,7 +229,7 @@ var DatePickerImplementation = react.forwardRef((props, forwardedRef) => {
|
|
|
229
229
|
...variantProps,
|
|
230
230
|
visibleRange: api.visibleRange
|
|
231
231
|
});
|
|
232
|
-
const { renderDateCellContent, renderDateCellSupplement, actionsRef, selectionMode: _selectionMode, value: _value, defaultValue: _defaultValue, onValueChange: _onValueChange, viewDate: _viewDate, defaultViewDate: _defaultViewDate, onViewDateChange: _onViewDateChange, today: _today, locale: _locale, weekStartsOn: _weekStartsOn, yearRange: _yearRange, constraints: _constraints, disabled: _disabled, readOnly: _readOnly, rangeStartReadOnly: _rangeStartReadOnly, ariaLabels: _ariaLabels, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...styleAndRootProps } = otherProps;
|
|
232
|
+
const { renderDateCellContent, renderDateCellSupplement, actionsRef, selectionMode: _selectionMode, value: _value, defaultValue: _defaultValue, onValueChange: _onValueChange, viewDate: _viewDate, defaultViewDate: _defaultViewDate, onViewDateChange: _onViewDateChange, today: _today, locale: _locale, weekStartsOn: _weekStartsOn, yearRange: _yearRange, monthRange: _monthRange, constraints: _constraints, disabled: _disabled, readOnly: _readOnly, rangeStartReadOnly: _rangeStartReadOnly, ariaLabels: _ariaLabels, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...styleAndRootProps } = otherProps;
|
|
233
233
|
const { style: styleProps, restProps: rootProps } = require_styled.useStyleProps(styleAndRootProps);
|
|
234
234
|
const rootRef = react.useRef(null);
|
|
235
235
|
const hasContinuousSizeConstraint = props.height !== void 0 || props.minHeight !== void 0 || props.maxHeight !== void 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DatePickerActions, DatePickerCellState, UseDatePickerProps } from '@seed-design/react-date-picker';
|
|
1
|
+
import { DatePickerActions, DatePickerCellState, DatePickerMonthRange, UseDatePickerProps } from '@seed-design/react-date-picker';
|
|
2
2
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
3
|
import { StyleProps } from '../../utils/styled';
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
type DatePickerRootProps = PrimitiveProps & Pick<StyleProps, "height" | "minHeight" | "maxHeight"> & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "defaultValue" | "onChange" | "onValueChange">;
|
|
6
6
|
export interface DatePickerCellContentRenderProps extends DatePickerCellState {
|
|
7
7
|
}
|
|
8
|
-
type DatePickerBehaviorProps = UseDatePickerProps extends infer Props ? Props extends UseDatePickerProps ? Omit<Props, "visibleRange"> : never : never;
|
|
8
|
+
type DatePickerBehaviorProps = UseDatePickerProps extends infer Props ? Props extends UseDatePickerProps ? Omit<Props, "visibleRange" | "monthRange"> : never : never;
|
|
9
9
|
type DatePickerCellCustomization = {
|
|
10
10
|
/**
|
|
11
11
|
* 기본 날짜 숫자 아래에 부가 콘텐츠를 추가합니다.
|
|
@@ -30,10 +30,16 @@ export type DatePickerProps = DatePickerSharedProps;
|
|
|
30
30
|
export type TwoMonthDatePickerProps = DatePickerSharedProps;
|
|
31
31
|
export type WeekDatePickerProps = DatePickerSharedProps;
|
|
32
32
|
type DatePickerPropsWithoutSize<Props = DatePickerSharedProps> = Props extends DatePickerSharedProps ? Omit<Props, "height" | "minHeight" | "maxHeight"> : never;
|
|
33
|
-
export type ContinuousDatePickerProps = DatePickerPropsWithoutSize & ContinuousSizeConstraint
|
|
33
|
+
export type ContinuousDatePickerProps = DatePickerPropsWithoutSize & ContinuousSizeConstraint & {
|
|
34
|
+
/**
|
|
35
|
+
* 노출하고 이동할 수 있는 월 범위입니다. 양끝 월을 포함합니다.
|
|
36
|
+
* 생략하면 `yearRange.start`의 1월부터 `yearRange.end`의 12월까지 노출합니다.
|
|
37
|
+
*/
|
|
38
|
+
monthRange?: DatePickerMonthRange;
|
|
39
|
+
};
|
|
34
40
|
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerSharedProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
41
|
export declare const TwoMonthDatePicker: React.ForwardRefExoticComponent<DatePickerSharedProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
42
|
export declare const WeekDatePicker: React.ForwardRefExoticComponent<DatePickerSharedProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
43
|
export declare const ContinuousDatePicker: React.ForwardRefExoticComponent<ContinuousDatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
export type { DatePickerActions, DatePickerAriaLabels, DatePickerConstraint, DatePickerConstraintContext, DatePickerDate, DatePickerMultipleProps, DatePickerRangeProps, DatePickerRangeValue, DatePickerSelectionMode, DatePickerSingleProps, DatePickerValue, } from '@seed-design/react-date-picker';
|
|
44
|
+
export type { DatePickerActions, DatePickerAriaLabels, DatePickerConstraint, DatePickerConstraintContext, DatePickerDate, DatePickerMonthRange, DatePickerMultipleProps, DatePickerRangeProps, DatePickerRangeValue, DatePickerSelectionMode, DatePickerSingleProps, DatePickerValue, DatePickerYearMonth, } from '@seed-design/react-date-picker';
|
|
39
45
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAEzB,KAAK,kBAAkB,EACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAA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AAQ,GAAG,WAAW,CAAC,CAAC,GACpF,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC;AAEzF,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC;AACpD,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACxD,KAAK,0BAA0B,CAAC,KAAK,GAAG,qBAAqB,IAAI,KAAK,SAAS,qBAAqB,GAChG,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC,GACjD,KAAK,CAAC;AACV,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,GAChE,wBAAwB,GAAG;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;CACnC,CAAC;AAgcJ,eAAO,MAAM,UAAU,8FAErB,CAAC;AAGH,eAAO,MAAM,kBAAkB,8FAE9B,CAAC;AAGF,eAAO,MAAM,cAAc,8FAE1B,CAAC;AAGF,eAAO,MAAM,oBAAoB,kGAEhC,CAAC;AAGF,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,gCAAgC,CAAC"}
|
|
@@ -8,8 +8,8 @@ import { Primitive } from "@seed-design/react-primitive";
|
|
|
8
8
|
import clsx$1 from "clsx";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { mergeProps } from "@seed-design/dom-utils";
|
|
12
11
|
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
12
|
+
import { mergeProps } from "@seed-design/dom-utils";
|
|
13
13
|
import { datePicker } from "@seed-design/css/recipes/date-picker";
|
|
14
14
|
import { useDatePicker } from "@seed-design/react-date-picker";
|
|
15
15
|
//#region src/components/DatePicker/DatePicker.tsx
|
|
@@ -226,7 +226,7 @@ var DatePickerImplementation = React$1.forwardRef((props, forwardedRef) => {
|
|
|
226
226
|
...variantProps,
|
|
227
227
|
visibleRange: api.visibleRange
|
|
228
228
|
});
|
|
229
|
-
const { renderDateCellContent, renderDateCellSupplement, actionsRef, selectionMode: _selectionMode, value: _value, defaultValue: _defaultValue, onValueChange: _onValueChange, viewDate: _viewDate, defaultViewDate: _defaultViewDate, onViewDateChange: _onViewDateChange, today: _today, locale: _locale, weekStartsOn: _weekStartsOn, yearRange: _yearRange, constraints: _constraints, disabled: _disabled, readOnly: _readOnly, rangeStartReadOnly: _rangeStartReadOnly, ariaLabels: _ariaLabels, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...styleAndRootProps } = otherProps;
|
|
229
|
+
const { renderDateCellContent, renderDateCellSupplement, actionsRef, selectionMode: _selectionMode, value: _value, defaultValue: _defaultValue, onValueChange: _onValueChange, viewDate: _viewDate, defaultViewDate: _defaultViewDate, onViewDateChange: _onViewDateChange, today: _today, locale: _locale, weekStartsOn: _weekStartsOn, yearRange: _yearRange, monthRange: _monthRange, constraints: _constraints, disabled: _disabled, readOnly: _readOnly, rangeStartReadOnly: _rangeStartReadOnly, ariaLabels: _ariaLabels, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...styleAndRootProps } = otherProps;
|
|
230
230
|
const { style: styleProps, restProps: rootProps } = useStyleProps(styleAndRootProps);
|
|
231
231
|
const rootRef = React$1.useRef(null);
|
|
232
232
|
const hasContinuousSizeConstraint = props.height !== void 0 || props.minHeight !== void 0 || props.maxHeight !== void 0;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ContinuousDatePicker, DatePicker, TwoMonthDatePicker, WeekDatePicker, type ContinuousDatePickerProps, type DatePickerActions, type DatePickerAriaLabels, type DatePickerCellContentRenderProps, type DatePickerConstraint, type DatePickerConstraintContext, type DatePickerDate, type DatePickerMultipleProps, type DatePickerProps, type DatePickerRangeProps, type DatePickerRangeValue, type DatePickerSelectionMode, type DatePickerSingleProps, type DatePickerValue, type TwoMonthDatePickerProps, type WeekDatePickerProps, } from './DatePicker';
|
|
1
|
+
export { ContinuousDatePicker, DatePicker, TwoMonthDatePicker, WeekDatePicker, type ContinuousDatePickerProps, type DatePickerActions, type DatePickerAriaLabels, type DatePickerCellContentRenderProps, type DatePickerConstraint, type DatePickerConstraintContext, type DatePickerDate, type DatePickerMonthRange, type DatePickerMultipleProps, type DatePickerProps, type DatePickerRangeProps, type DatePickerRangeValue, type DatePickerSelectionMode, type DatePickerSingleProps, type DatePickerValue, type DatePickerYearMonth, type TwoMonthDatePickerProps, type WeekDatePickerProps, } from './DatePicker';
|
|
2
2
|
export { compareDates, dateKey, dateOnOrAfter, dateOnOrBefore, excludeDates, isSameDate, maxSelectionCount, rangeDayCountAtLeast, rangeDayCountAtMost, } from '@seed-design/react-date-picker';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,EACZ,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,EACZ,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,gCAAgC,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
5
6
|
const require_splitMultipleVariantsProps = require("../../utils/splitMultipleVariantsProps.cjs");
|
|
6
7
|
const require_Icon = require("../private/Icon.cjs");
|
|
7
8
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -91,7 +92,7 @@ var FieldButtonErrorMessage = withFieldContext(_seed_design_react_field_button.F
|
|
|
91
92
|
var FieldButtonHiddenInput = _seed_design_react_field_button.FieldButton.HiddenInput;
|
|
92
93
|
var FieldButtonButton = withContext(_seed_design_react_field_button.FieldButton.Button, "button");
|
|
93
94
|
var FieldButtonControl = withProvider(withStateProps(_seed_design_react_primitive.Primitive.div), "root");
|
|
94
|
-
var FieldButtonClearButton = withContext(_seed_design_react_field_button.FieldButton.ClearButton, "clearButton");
|
|
95
|
+
var FieldButtonClearButton = require_scaleFeedback.withScaleFeedback(withContext(_seed_design_react_field_button.FieldButton.ClearButton, "clearButton"));
|
|
95
96
|
var FieldButtonValue = react.forwardRef(({ className, ...props }, ref) => {
|
|
96
97
|
const { stateProps } = (0, _seed_design_react_field_button.useFieldButtonContext)();
|
|
97
98
|
const { value } = useClassNames();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldButton.d.ts","sourceRoot":"","sources":["../../../src/components/FieldButton/FieldButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAyB,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldButton.d.ts","sourceRoot":"","sources":["../../../src/components/FieldButton/FieldButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAyB,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,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;AAE3C,eAAO,MAAM,iBAAiB,+FAG7B,CAAC;AAEF,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,gBAAgB;CAAG;AAEpF,eAAO,MAAM,sBAAsB,qGAGM,CAAC;AAE1C,MAAM,WAAW,4BAA6B,SAAQ,WAAW,CAAC,iBAAiB;CAAG;AAEtF,eAAO,MAAM,uBAAuB,sGAGO,CAAC;AAI5C,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,gBAAgB;CAAG;AAEpF,eAAO,MAAM,sBAAsB,uGAA0B,CAAC;AAE9D,MAAM,WAAW,sBAAuB,SAAQ,WAAW,CAAC,WAAW;CAAG;AAE1E,eAAO,MAAM,iBAAiB,kGAG7B,CAAC;AAEF,MAAM,WAAW,uBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,kBAAkB,gGAG9B,CAAC;AAEF,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,gBAAgB;CAAG;AAEpF,eAAO,MAAM,sBAAsB,uGAKlC,CAAC;AAEF,MAAM,WAAW,qBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,gBAAgB,8FAe5B,CAAC;AAGF,MAAM,WAAW,2BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,sBAAsB,oGAelC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
4
5
|
import { splitMultipleVariantsProps } from "../../utils/splitMultipleVariantsProps.js";
|
|
5
6
|
import { InternalIcon } from "../private/Icon.js";
|
|
6
7
|
import { Primitive } from "@seed-design/react-primitive";
|
|
@@ -89,7 +90,7 @@ var FieldButtonErrorMessage = withFieldContext(FieldButton.ErrorMessage, "errorM
|
|
|
89
90
|
var FieldButtonHiddenInput = FieldButton.HiddenInput;
|
|
90
91
|
var FieldButtonButton = withContext(FieldButton.Button, "button");
|
|
91
92
|
var FieldButtonControl = withProvider(withStateProps(Primitive.div), "root");
|
|
92
|
-
var FieldButtonClearButton = withContext(FieldButton.ClearButton, "clearButton");
|
|
93
|
+
var FieldButtonClearButton = withScaleFeedback(withContext(FieldButton.ClearButton, "clearButton"));
|
|
93
94
|
var FieldButtonValue = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
94
95
|
const { stateProps } = useFieldButtonContext();
|
|
95
96
|
const { value } = useClassNames();
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
4
5
|
const require_Icon = require("../private/Icon.cjs");
|
|
5
6
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
6
7
|
let _seed_design_css_recipes_floating_action_button = require("@seed-design/css/recipes/floating-action-button");
|
|
7
8
|
//#region src/components/FloatingActionButton/FloatingActionButton.tsx
|
|
8
9
|
var { withProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_floating_action_button.floatingActionButton);
|
|
9
|
-
var FloatingActionButtonRoot = withProvider(_seed_design_react_primitive.Primitive.button, "root");
|
|
10
|
+
var FloatingActionButtonRoot = require_scaleFeedback.withScaleFeedback(withProvider(_seed_design_react_primitive.Primitive.button, "root"));
|
|
10
11
|
var FloatingActionButtonIcon = withContext(require_Icon.InternalIcon, "icon");
|
|
11
12
|
var FloatingActionButtonLabel = withContext(_seed_design_react_primitive.Primitive.span, "label");
|
|
12
13
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/FloatingActionButton/FloatingActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FloatingActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/FloatingActionButton/FloatingActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMvE,MAAM,WAAW,6BACf,SAAQ,gCAAgC,EACtC,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,wBAAwB,yGAEpC,CAAC;AAEF,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;CAAG;AAE3E,eAAO,MAAM,wBAAwB,yGAGd,CAAC;AAExB,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,yBAAyB,wGAGZ,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { withScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
3
4
|
import { InternalIcon } from "../private/Icon.js";
|
|
4
5
|
import { Primitive } from "@seed-design/react-primitive";
|
|
5
6
|
import { floatingActionButton } from "@seed-design/css/recipes/floating-action-button";
|
|
6
7
|
//#region src/components/FloatingActionButton/FloatingActionButton.tsx
|
|
7
8
|
var { withProvider, withContext } = createSlotRecipeContext(floatingActionButton);
|
|
8
|
-
var FloatingActionButtonRoot = withProvider(Primitive.button, "root");
|
|
9
|
+
var FloatingActionButtonRoot = withScaleFeedback(withProvider(Primitive.button, "root"));
|
|
9
10
|
var FloatingActionButtonIcon = withContext(InternalIcon, "icon");
|
|
10
11
|
var FloatingActionButtonLabel = withContext(Primitive.span, "label");
|
|
11
12
|
//#endregion
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
5
6
|
const require_styled = require("../../utils/styled.cjs");
|
|
6
7
|
const require_getHelpBubbleArrowTipPath = require("../../utils/getHelpBubbleArrowTipPath.cjs");
|
|
7
8
|
let _seed_design_react_popover = require("@seed-design/react-popover");
|
|
@@ -47,7 +48,7 @@ var HelpBubbleArrowTip = (0, react.forwardRef)((props, ref) => {
|
|
|
47
48
|
});
|
|
48
49
|
});
|
|
49
50
|
HelpBubbleArrowTip.displayName = "HelpBubbleArrowTip";
|
|
50
|
-
var HelpBubbleCloseButton = withContext(_seed_design_react_popover.Popover.CloseButton, "closeButton");
|
|
51
|
+
var HelpBubbleCloseButton = require_scaleFeedback.withScaleFeedback(withContext(_seed_design_react_popover.Popover.CloseButton, "closeButton"));
|
|
51
52
|
var HelpBubbleBody = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "body");
|
|
52
53
|
var HelpBubbleTitle = withContext(withStateProps(_seed_design_react_primitive.Primitive.span), "title");
|
|
53
54
|
var HelpBubbleDescription = withContext(withStateProps(_seed_design_react_primitive.Primitive.div), "description");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAqB,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAqB,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAK/F,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUrE,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB,EAAE,gBAAgB,CAAC,SAAS;IAC7F;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC9C;;OAEG;IACH,eAAe,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAChE;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,cAAc,gEAOzB,CAAC;AAIH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,WAAW;CAAG;AAE9E,eAAO,MAAM,gBAAgB,yHAA0B,CAAC;AAIxD,MAAM,WAAW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1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
4
5
|
import { withStyleProps } from "../../utils/styled.js";
|
|
5
6
|
import { getHelpBubbleArrowTipPath } from "../../utils/getHelpBubbleArrowTipPath.js";
|
|
6
7
|
import { Popover, usePopoverContext } from "@seed-design/react-popover";
|
|
@@ -45,7 +46,7 @@ var HelpBubbleArrowTip = forwardRef((props, ref) => {
|
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
48
|
HelpBubbleArrowTip.displayName = "HelpBubbleArrowTip";
|
|
48
|
-
var HelpBubbleCloseButton = withContext(Popover.CloseButton, "closeButton");
|
|
49
|
+
var HelpBubbleCloseButton = withScaleFeedback(withContext(Popover.CloseButton, "closeButton"));
|
|
49
50
|
var HelpBubbleBody = withContext(withStateProps(Primitive.div), "body");
|
|
50
51
|
var HelpBubbleTitle = withContext(withStateProps(Primitive.span), "title");
|
|
51
52
|
var HelpBubbleDescription = withContext(withStateProps(Primitive.div), "description");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_scaleFeedback = require("../../utils/scaleFeedback.cjs");
|
|
4
5
|
const require_Icon = require("../Icon/Icon.cjs");
|
|
5
6
|
const require_AspectRatio = require("../AspectRatio/AspectRatio.cjs");
|
|
6
7
|
const require_Badge = require("../Badge/Badge.cjs");
|
|
@@ -12,6 +13,7 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
12
13
|
let react = require("react");
|
|
13
14
|
react = require_runtime.__toESM(react);
|
|
14
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
15
17
|
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
16
18
|
let _seed_design_react_image = require("@seed-design/react-image");
|
|
17
19
|
let _seed_design_css_recipes_image_frame = require("@seed-design/css/recipes/image-frame");
|
|
@@ -150,11 +152,12 @@ var ReactionButtonIcon = () => {
|
|
|
150
152
|
};
|
|
151
153
|
var ImageFrameReactionButton = react.forwardRef(({ className, ...rest }, ref) => {
|
|
152
154
|
const classNames = (0, _seed_design_css_recipes_image_frame_reaction_button.imageFrameReactionButton)();
|
|
155
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = require_scaleFeedback.useScaleFeedback();
|
|
153
156
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageFrameReactionButtonClassNamesProvider, {
|
|
154
157
|
value: classNames,
|
|
155
158
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_toggle.Toggle.Root, {
|
|
156
|
-
ref,
|
|
157
|
-
className: (0, clsx.default)(classNames.root, className),
|
|
159
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
160
|
+
className: (0, clsx.default)(classNames.root, scaleFeedbackClassName, className),
|
|
158
161
|
...rest,
|
|
159
162
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ReactionButtonIcon, {})
|
|
160
163
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageFrame.d.ts","sourceRoot":"","sources":["../../../src/components/ImageFrame/ImageFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AAIxD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC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AiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEJ,eAAO,MAAM,UAAU,wFAsDtB,CAAC;AAMF,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAE7D;;GAEG;AACH,eAAO,MAAM,iBAAiB,+FAI7B,CAAC;AAMF,MAAM,WAAW,oBAAqB,SAAQ,UAAU;CAAG;AAE3D,eAAO,MAAM,eAAe,8FAI3B,CAAC;AAMF,MAAM,WAAW,mBACf,SAAQ,0BAA0B,EAChC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACzD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,6FAQ1B,CAAC;AAMF,MAAM,WAAW,wBACf,SAAQ,+BAA+B,EACrC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,kGAQ/B,CAAC;AAoEF,MAAM,WAAW,6BACf,SAAQ,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,UAAU,CAAC;CAAG;AAYxD,eAAO,MAAM,wBAAwB,yGAkBnC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { useScaleFeedback } from "../../utils/scaleFeedback.js";
|
|
3
4
|
import { Icon } from "../Icon/Icon.js";
|
|
4
5
|
import { AspectRatio } from "../AspectRatio/AspectRatio.js";
|
|
5
6
|
import { Badge } from "../Badge/Badge.js";
|
|
@@ -9,6 +10,7 @@ import { Toggle, useToggleContext } from "@seed-design/react-toggle";
|
|
|
9
10
|
import clsx$1 from "clsx";
|
|
10
11
|
import * as React$1 from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
12
14
|
import { mergeProps } from "@seed-design/dom-utils";
|
|
13
15
|
import { Image } from "@seed-design/react-image";
|
|
14
16
|
import { imageFrame } from "@seed-design/css/recipes/image-frame";
|
|
@@ -147,11 +149,12 @@ var ReactionButtonIcon = () => {
|
|
|
147
149
|
};
|
|
148
150
|
var ImageFrameReactionButton = React$1.forwardRef(({ className, ...rest }, ref) => {
|
|
149
151
|
const classNames = imageFrameReactionButton();
|
|
152
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
150
153
|
return /* @__PURE__ */ jsx(ImageFrameReactionButtonClassNamesProvider, {
|
|
151
154
|
value: classNames,
|
|
152
155
|
children: /* @__PURE__ */ jsx(Toggle.Root, {
|
|
153
|
-
ref,
|
|
154
|
-
className: clsx$1(classNames.root, className),
|
|
156
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
157
|
+
className: clsx$1(classNames.root, scaleFeedbackClassName, className),
|
|
155
158
|
...rest,
|
|
156
159
|
children: /* @__PURE__ */ jsx(ReactionButtonIcon, {})
|
|
157
160
|
})
|