@seed-design/react 2.3.0 → 2.4.1
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 +10 -6
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.d.ts.map +1 -1
- package/lib/components/AttachmentDisplay/AttachmentDisplayItem.js +10 -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 +10 -6
- package/lib/components/AttachmentInput/AttachmentInputItem.d.ts.map +1 -1
- package/lib/components/AttachmentInput/AttachmentInputItem.js +10 -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 +24 -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/withScaleFeedback.cjs +25 -0
- package/lib/utils/withScaleFeedback.d.ts +8 -0
- package/lib/utils/withScaleFeedback.d.ts.map +1 -0
- package/lib/utils/withScaleFeedback.js +22 -0
- package/package.json +6 -5
- package/src/components/ActionButton/ActionButton.tsx +5 -2
- package/src/components/AttachmentDisplay/AttachmentDisplayItem.tsx +15 -9
- package/src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx +7 -4
- package/src/components/AttachmentInput/AttachmentInputItem.tsx +15 -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/withScaleFeedback.tsx +34 -0
|
@@ -11,6 +11,8 @@ let react = require("react");
|
|
|
11
11
|
react = require_runtime.__toESM(react);
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
let _seed_design_css_recipes_action_button = require("@seed-design/css/recipes/action-button");
|
|
14
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
15
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
14
16
|
//#region src/components/ActionButton/ActionButton.tsx
|
|
15
17
|
var ActionButton = react.forwardRef(({ variant, size, loading = false, layout = "withText", color, fontWeight, className, children, ...otherProps }, ref) => {
|
|
16
18
|
const recipeClassName = (0, _seed_design_css_recipes_action_button.actionButton)({
|
|
@@ -23,14 +25,15 @@ var ActionButton = react.forwardRef(({ variant, size, loading = false, layout =
|
|
|
23
25
|
disabled: otherProps.disabled
|
|
24
26
|
});
|
|
25
27
|
const { style, restProps } = require_styled.useStyleProps(otherProps);
|
|
28
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
26
29
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) console.warn("When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided.");
|
|
27
30
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_usePendingButton.PendingButtonProvider, {
|
|
28
31
|
value: api,
|
|
29
32
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.IconRequired, {
|
|
30
33
|
enabled: layout === "iconOnly",
|
|
31
34
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.button, {
|
|
32
|
-
ref,
|
|
33
|
-
className: (0, clsx.default)(recipeClassName, className),
|
|
35
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
36
|
+
className: (0, clsx.default)(recipeClassName, scaleFeedbackClassName, className),
|
|
34
37
|
style: {
|
|
35
38
|
...style,
|
|
36
39
|
...color && { "--seed-box-color": require_styled.handleColor(color) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAA8B,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAEhB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,iBACf,SAAQ,wBAAwB,EAC9B,qBAAqB,EACrB,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC,EAC5D,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,kBAAkB,CAAC;IAE3C;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,6FAiDxB,CAAC"}
|
|
@@ -8,6 +8,8 @@ import clsx$1 from "clsx";
|
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import { actionButton } from "@seed-design/css/recipes/action-button";
|
|
11
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
12
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
11
13
|
//#region src/components/ActionButton/ActionButton.tsx
|
|
12
14
|
var ActionButton = React$1.forwardRef(({ variant, size, loading = false, layout = "withText", color, fontWeight, className, children, ...otherProps }, ref) => {
|
|
13
15
|
const recipeClassName = actionButton({
|
|
@@ -20,14 +22,15 @@ var ActionButton = React$1.forwardRef(({ variant, size, loading = false, layout
|
|
|
20
22
|
disabled: otherProps.disabled
|
|
21
23
|
});
|
|
22
24
|
const { style, restProps } = useStyleProps(otherProps);
|
|
25
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
23
26
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) console.warn("When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided.");
|
|
24
27
|
return /* @__PURE__ */ jsx(PendingButtonProvider, {
|
|
25
28
|
value: api,
|
|
26
29
|
children: /* @__PURE__ */ jsx(IconRequired, {
|
|
27
30
|
enabled: layout === "iconOnly",
|
|
28
31
|
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
29
|
-
ref,
|
|
30
|
-
className: clsx$1(recipeClassName, className),
|
|
32
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
33
|
+
className: clsx$1(recipeClassName, scaleFeedbackClassName, className),
|
|
31
34
|
style: {
|
|
32
35
|
...style,
|
|
33
36
|
...color && { "--seed-box-color": handleColor(color) },
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
4
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
5
|
const require_createRenderTrackingContext = require("../../utils/createRenderTrackingContext.cjs");
|
|
6
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
6
7
|
let _seed_design_react_attachment_display = require("@seed-design/react-attachment-display");
|
|
7
8
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
8
9
|
let clsx = require("clsx");
|
|
@@ -10,8 +11,9 @@ 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_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
16
|
+
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
15
17
|
let _seed_design_css_recipes_attachment_input_item = require("@seed-design/css/recipes/attachment-input-item");
|
|
16
18
|
//#region src/components/AttachmentDisplay/AttachmentDisplayItem.tsx
|
|
17
19
|
var { useClassNames, ClassNamesProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_attachment_input_item.attachmentInputItem);
|
|
@@ -24,13 +26,14 @@ var AttachmentDisplayItem = react.forwardRef(({ className, entry, ...props }, re
|
|
|
24
26
|
...props
|
|
25
27
|
});
|
|
26
28
|
const classNames = (0, _seed_design_css_recipes_attachment_input_item.attachmentInputItem)(variantProps);
|
|
29
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
27
30
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClassNamesProvider, {
|
|
28
31
|
value: classNames,
|
|
29
32
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_attachment_display.AttachmentDisplayItemProvider, {
|
|
30
33
|
value: api,
|
|
31
34
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(overlayTracker.Provider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.li, {
|
|
32
|
-
ref,
|
|
33
|
-
className: (0, clsx.default)(classNames.root, className),
|
|
35
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
36
|
+
className: (0, clsx.default)(classNames.root, scaleFeedbackClassName, className),
|
|
34
37
|
...stateProps,
|
|
35
38
|
...otherProps
|
|
36
39
|
}) })
|
|
@@ -90,15 +93,16 @@ var AttachmentDisplayItemBadge = react.forwardRef(({ className, children, ...pro
|
|
|
90
93
|
AttachmentDisplayItemBadge.displayName = "AttachmentDisplayItemBadge";
|
|
91
94
|
var AttachmentDisplayItemActionButton = react.forwardRef(({ className, ...props }, ref) => {
|
|
92
95
|
const classNames = useClassNames();
|
|
96
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
93
97
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.button, {
|
|
94
98
|
type: "button",
|
|
95
|
-
ref,
|
|
96
|
-
className: (0, clsx.default)(classNames.actionButton, className),
|
|
99
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
100
|
+
className: (0, clsx.default)(classNames.actionButton, scaleFeedbackClassName, className),
|
|
97
101
|
...props
|
|
98
102
|
});
|
|
99
103
|
});
|
|
100
104
|
AttachmentDisplayItemActionButton.displayName = "AttachmentDisplayItemActionButton";
|
|
101
|
-
var AttachmentDisplayItemRemoveButton = withContext(_seed_design_react_attachment_display.AttachmentDisplay.ItemRemoveButton, "removeButton");
|
|
105
|
+
var AttachmentDisplayItemRemoveButton = require_withScaleFeedback.withScaleFeedback(withContext(_seed_design_react_attachment_display.AttachmentDisplay.ItemRemoveButton, "removeButton"));
|
|
102
106
|
//#endregion
|
|
103
107
|
exports.AttachmentDisplayItem = AttachmentDisplayItem;
|
|
104
108
|
exports.AttachmentDisplayItemActionButton = AttachmentDisplayItemActionButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentDisplayItem.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentDisplay/AttachmentDisplayItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAI/C,KAAK,gBAAgB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentDisplayItem.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentDisplay/AttachmentDisplayItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAI/C,KAAK,gBAAgB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,+BAA+B,EAAE,MAAM,CAAC,EACnD,cAAc,EACd,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACvC,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,kGA4BjC,CAAC;AAKF,MAAM,WAAW,+BACf,SAAQ,0BAA0B,CAAC,cAAc;CAAG;AAEtD,eAAO,MAAM,0BAA0B,0GAGS,CAAC;AAIjD,MAAM,WAAW,mCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,8BAA8B,4GAiBzC,CAAC;AAMH,MAAM,WAAW,kCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,6BAA6B,2GAiBxC,CAAC;AAMH,MAAM,WAAW,kCACf,SAAQ,0BAA0B,CAAC,iBAAiB;CAAG;AAEzD,eAAO,MAAM,6BAA6B,2GAcxC,CAAC;AAMH,MAAM,WAAW,+BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,0BAA0B,wGAWrC,CAAC;AAKH,MAAM,WAAW,sCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,iCAAiC,kHAe5C,CAAC;AAKH,MAAM,WAAW,sCACf,SAAQ,0BAA0B,CAAC,qBAAqB;CAAG;AAE7D,eAAO,MAAM,iCAAiC,kHAK7C,CAAC"}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
4
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext.js";
|
|
5
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
5
6
|
import { AttachmentDisplay, AttachmentDisplayItemProvider, useAttachmentDisplayContext, useAttachmentDisplayItem } from "@seed-design/react-attachment-display";
|
|
6
7
|
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";
|
|
12
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
10
13
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
11
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
12
14
|
import { attachmentInputItem } from "@seed-design/css/recipes/attachment-input-item";
|
|
13
15
|
//#region src/components/AttachmentDisplay/AttachmentDisplayItem.tsx
|
|
14
16
|
var { useClassNames, ClassNamesProvider, withContext } = createSlotRecipeContext(attachmentInputItem);
|
|
@@ -21,13 +23,14 @@ var AttachmentDisplayItem = React$1.forwardRef(({ className, entry, ...props },
|
|
|
21
23
|
...props
|
|
22
24
|
});
|
|
23
25
|
const classNames = attachmentInputItem(variantProps);
|
|
26
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
24
27
|
return /* @__PURE__ */ jsx(ClassNamesProvider, {
|
|
25
28
|
value: classNames,
|
|
26
29
|
children: /* @__PURE__ */ jsx(AttachmentDisplayItemProvider, {
|
|
27
30
|
value: api,
|
|
28
31
|
children: /* @__PURE__ */ jsx(overlayTracker.Provider, { children: /* @__PURE__ */ jsx(Primitive.li, {
|
|
29
|
-
ref,
|
|
30
|
-
className: clsx$1(classNames.root, className),
|
|
32
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
33
|
+
className: clsx$1(classNames.root, scaleFeedbackClassName, className),
|
|
31
34
|
...stateProps,
|
|
32
35
|
...otherProps
|
|
33
36
|
}) })
|
|
@@ -87,14 +90,15 @@ var AttachmentDisplayItemBadge = React$1.forwardRef(({ className, children, ...p
|
|
|
87
90
|
AttachmentDisplayItemBadge.displayName = "AttachmentDisplayItemBadge";
|
|
88
91
|
var AttachmentDisplayItemActionButton = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
89
92
|
const classNames = useClassNames();
|
|
93
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
90
94
|
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
91
95
|
type: "button",
|
|
92
|
-
ref,
|
|
93
|
-
className: clsx$1(classNames.actionButton, className),
|
|
96
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
97
|
+
className: clsx$1(classNames.actionButton, scaleFeedbackClassName, className),
|
|
94
98
|
...props
|
|
95
99
|
});
|
|
96
100
|
});
|
|
97
101
|
AttachmentDisplayItemActionButton.displayName = "AttachmentDisplayItemActionButton";
|
|
98
|
-
var AttachmentDisplayItemRemoveButton = withContext(AttachmentDisplay.ItemRemoveButton, "removeButton");
|
|
102
|
+
var AttachmentDisplayItemRemoveButton = withScaleFeedback(withContext(AttachmentDisplay.ItemRemoveButton, "removeButton"));
|
|
99
103
|
//#endregion
|
|
100
104
|
export { AttachmentDisplayItem, AttachmentDisplayItemActionButton, AttachmentDisplayItemBackdrop, AttachmentDisplayItemBadge, AttachmentDisplayItemImage, AttachmentDisplayItemMetadata, AttachmentDisplayItemRemoveButton, AttachmentDisplayItemThumbnail };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
4
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
5
6
|
const require_Icon = require("../private/Icon.cjs");
|
|
6
7
|
let _seed_design_react_attachment_display = require("@seed-design/react-attachment-display");
|
|
7
8
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -14,7 +15,7 @@ let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
|
14
15
|
let _seed_design_css_recipes_attachment_input_trigger = require("@seed-design/css/recipes/attachment-input-trigger");
|
|
15
16
|
//#region src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx
|
|
16
17
|
var { withProvider, useClassNames } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_attachment_input_trigger.attachmentInputTrigger);
|
|
17
|
-
var AttachmentDisplayTrigger = withProvider(_seed_design_react_attachment_display.AttachmentDisplay.Trigger, "root");
|
|
18
|
+
var AttachmentDisplayTrigger = require_withScaleFeedback.withScaleFeedback(withProvider(_seed_design_react_attachment_display.AttachmentDisplay.Trigger, "root"));
|
|
18
19
|
var AttachmentDisplayTriggerIcon = react.forwardRef(({ image, ...props }, ref) => {
|
|
19
20
|
const { stateProps } = (0, _seed_design_react_attachment_display.useAttachmentDisplayContext)();
|
|
20
21
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.InternalIcon, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentDisplayTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,mDAAmD,CAAC;AAM3D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentDisplayTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,mDAAmD,CAAC;AAM3D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,6BACf,SAAQ,kCAAkC,EACxC,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,wBAAwB,yGAKpC,CAAC;AAKF,KAAK,iBAAiB,GAAG,OAAO,CAAC;AAEjC,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG;KAC/E,CAAC,IAAI,iBAAiB,GAAG,KAAK,CAAC,SAAS;CAC1C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;uCAcvC,CAAC;AAGH,MAAM,WAAW,sCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iCAAiC,+GAqB5C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
4
5
|
import { InternalIcon } from "../private/Icon.js";
|
|
5
6
|
import { AttachmentDisplay, useAttachmentDisplayContext } from "@seed-design/react-attachment-display";
|
|
6
7
|
import { Primitive } from "@seed-design/react-primitive";
|
|
@@ -11,7 +12,7 @@ import { mergeProps } from "@seed-design/dom-utils";
|
|
|
11
12
|
import { attachmentInputTrigger } from "@seed-design/css/recipes/attachment-input-trigger";
|
|
12
13
|
//#region src/components/AttachmentDisplay/AttachmentDisplayTrigger.tsx
|
|
13
14
|
var { withProvider, useClassNames } = createSlotRecipeContext(attachmentInputTrigger);
|
|
14
|
-
var AttachmentDisplayTrigger = withProvider(AttachmentDisplay.Trigger, "root");
|
|
15
|
+
var AttachmentDisplayTrigger = withScaleFeedback(withProvider(AttachmentDisplay.Trigger, "root"));
|
|
15
16
|
var AttachmentDisplayTriggerIcon = React$1.forwardRef(({ image, ...props }, ref) => {
|
|
16
17
|
const { stateProps } = useAttachmentDisplayContext();
|
|
17
18
|
return /* @__PURE__ */ jsx(InternalIcon, {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
4
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
5
|
const require_createRenderTrackingContext = require("../../utils/createRenderTrackingContext.cjs");
|
|
6
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
6
7
|
let _seed_design_react_file_upload = require("@seed-design/react-file-upload");
|
|
7
8
|
let _seed_design_react_middle_truncate = require("@seed-design/react-middle-truncate");
|
|
8
9
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -11,8 +12,9 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
11
12
|
let react = require("react");
|
|
12
13
|
react = require_runtime.__toESM(react);
|
|
13
14
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
-
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
15
15
|
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
16
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
17
|
+
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
16
18
|
let _seed_design_css_recipes_attachment_input_item = require("@seed-design/css/recipes/attachment-input-item");
|
|
17
19
|
//#region src/components/AttachmentInput/AttachmentInputItem.tsx
|
|
18
20
|
var { useClassNames, ClassNamesProvider, withContext } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_attachment_input_item.attachmentInputItem);
|
|
@@ -25,13 +27,14 @@ var AttachmentInputItem = react.forwardRef(({ className, fileEntry, ...props },
|
|
|
25
27
|
...props
|
|
26
28
|
});
|
|
27
29
|
const classNames = (0, _seed_design_css_recipes_attachment_input_item.attachmentInputItem)(variantProps);
|
|
30
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
28
31
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClassNamesProvider, {
|
|
29
32
|
value: classNames,
|
|
30
33
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_file_upload.FileUploadItemProvider, {
|
|
31
34
|
value: api,
|
|
32
35
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(overlayTracker.Provider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.li, {
|
|
33
|
-
ref,
|
|
34
|
-
className: (0, clsx.default)(classNames.root, className),
|
|
36
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
37
|
+
className: (0, clsx.default)(classNames.root, scaleFeedbackClassName, className),
|
|
35
38
|
...stateProps,
|
|
36
39
|
...otherProps
|
|
37
40
|
}) })
|
|
@@ -64,7 +67,7 @@ var AttachmentInputItemSize = react.forwardRef(({ className, ...props }, ref) =>
|
|
|
64
67
|
});
|
|
65
68
|
});
|
|
66
69
|
AttachmentInputItemSize.displayName = "AttachmentInputItemSize";
|
|
67
|
-
var AttachmentInputItemRemoveButton = withContext(_seed_design_react_file_upload.FileUpload.ItemRemoveButton, "removeButton");
|
|
70
|
+
var AttachmentInputItemRemoveButton = require_withScaleFeedback.withScaleFeedback(withContext(_seed_design_react_file_upload.FileUpload.ItemRemoveButton, "removeButton"));
|
|
68
71
|
var AttachmentInputItemImage = withContext(_seed_design_react_file_upload.FileUpload.ItemImage, "image");
|
|
69
72
|
var AttachmentInputItemThumbnail = react.forwardRef(({ className, ...props }, ref) => {
|
|
70
73
|
const classNames = useClassNames();
|
|
@@ -94,10 +97,11 @@ var AttachmentInputItemBadge = react.forwardRef(({ className, children, ...props
|
|
|
94
97
|
AttachmentInputItemBadge.displayName = "AttachmentInputItemBadge";
|
|
95
98
|
var AttachmentInputItemActionButton = react.forwardRef(({ className, ...props }, ref) => {
|
|
96
99
|
const classNames = useClassNames();
|
|
100
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
97
101
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_primitive.Primitive.button, {
|
|
98
102
|
type: "button",
|
|
99
|
-
ref,
|
|
100
|
-
className: (0, clsx.default)(classNames.actionButton, className),
|
|
103
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
104
|
+
className: (0, clsx.default)(classNames.actionButton, scaleFeedbackClassName, className),
|
|
101
105
|
...props
|
|
102
106
|
});
|
|
103
107
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentInputItem.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentInput/AttachmentInputItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,UAAU,IAAI,mBAAmB,EAKjC,KAAK,SAAS,EAEf,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentInputItem.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentInput/AttachmentInputItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,UAAU,IAAI,mBAAmB,EAKjC,KAAK,SAAS,EAEf,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAY9E,MAAM,WAAW,wBACf,SAAQ,+BAA+B,EACrC,cAAc,EACd,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACvC,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,gGA4B/B,CAAC;AAKF,MAAM,WAAW,4BACf,SAAQ,cAAc,EACpB,mBAAmB,CAAC,aAAa;CAAG;AAExC,eAAO,MAAM,uBAAuB,sGAiBlC,CAAC;AAKH,MAAM,WAAW,4BAA6B,SAAQ,mBAAmB,CAAC,aAAa;CAAG;AAE1F,eAAO,MAAM,uBAAuB,sGAalC,CAAC;AAKH,MAAM,WAAW,oCACf,SAAQ,mBAAmB,CAAC,qBAAqB;CAAG;AAEtD,eAAO,MAAM,+BAA+B,gHAK3C,CAAC;AAEF,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,CAAC,cAAc;CAAG;AAE5F,eAAO,MAAM,wBAAwB,wGAGI,CAAC;AAE1C,MAAM,WAAW,iCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAG3C,eAAO,MAAM,4BAA4B,0GAiBvC,CAAC;AAMH,MAAM,WAAW,6BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,wBAAwB,sGAWnC,CAAC;AAKH,MAAM,WAAW,oCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,+BAA+B,gHAe1C,CAAC;AAKH,MAAM,WAAW,gCAAiC,SAAQ,mBAAmB,CAAC,iBAAiB;CAAG;AAElG,eAAO,MAAM,2BAA2B,yGActC,CAAC;AAMH,MAAM,WAAW,gCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,2BAA2B,yGAiBtC,CAAC"}
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
4
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext.js";
|
|
5
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
5
6
|
import { FileUpload, FileUploadItemProvider, splitFileName, useFileUploadContext, useFileUploadItem, useFileUploadItemContext } from "@seed-design/react-file-upload";
|
|
6
7
|
import { MiddleTruncate } from "@seed-design/react-middle-truncate";
|
|
7
8
|
import { Primitive } from "@seed-design/react-primitive";
|
|
8
9
|
import clsx$1 from "clsx";
|
|
9
10
|
import * as React$1 from "react";
|
|
10
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
13
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
11
14
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
12
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
13
15
|
import { attachmentInputItem } from "@seed-design/css/recipes/attachment-input-item";
|
|
14
16
|
//#region src/components/AttachmentInput/AttachmentInputItem.tsx
|
|
15
17
|
var { useClassNames, ClassNamesProvider, withContext } = createSlotRecipeContext(attachmentInputItem);
|
|
@@ -22,13 +24,14 @@ var AttachmentInputItem = React$1.forwardRef(({ className, fileEntry, ...props }
|
|
|
22
24
|
...props
|
|
23
25
|
});
|
|
24
26
|
const classNames = attachmentInputItem(variantProps);
|
|
27
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
25
28
|
return /* @__PURE__ */ jsx(ClassNamesProvider, {
|
|
26
29
|
value: classNames,
|
|
27
30
|
children: /* @__PURE__ */ jsx(FileUploadItemProvider, {
|
|
28
31
|
value: api,
|
|
29
32
|
children: /* @__PURE__ */ jsx(overlayTracker.Provider, { children: /* @__PURE__ */ jsx(Primitive.li, {
|
|
30
|
-
ref,
|
|
31
|
-
className: clsx$1(classNames.root, className),
|
|
33
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
34
|
+
className: clsx$1(classNames.root, scaleFeedbackClassName, className),
|
|
32
35
|
...stateProps,
|
|
33
36
|
...otherProps
|
|
34
37
|
}) })
|
|
@@ -61,7 +64,7 @@ var AttachmentInputItemSize = React$1.forwardRef(({ className, ...props }, ref)
|
|
|
61
64
|
});
|
|
62
65
|
});
|
|
63
66
|
AttachmentInputItemSize.displayName = "AttachmentInputItemSize";
|
|
64
|
-
var AttachmentInputItemRemoveButton = withContext(FileUpload.ItemRemoveButton, "removeButton");
|
|
67
|
+
var AttachmentInputItemRemoveButton = withScaleFeedback(withContext(FileUpload.ItemRemoveButton, "removeButton"));
|
|
65
68
|
var AttachmentInputItemImage = withContext(FileUpload.ItemImage, "image");
|
|
66
69
|
var AttachmentInputItemThumbnail = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
67
70
|
const classNames = useClassNames();
|
|
@@ -91,10 +94,11 @@ var AttachmentInputItemBadge = React$1.forwardRef(({ className, children, ...pro
|
|
|
91
94
|
AttachmentInputItemBadge.displayName = "AttachmentInputItemBadge";
|
|
92
95
|
var AttachmentInputItemActionButton = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
93
96
|
const classNames = useClassNames();
|
|
97
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
94
98
|
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
95
99
|
type: "button",
|
|
96
|
-
ref,
|
|
97
|
-
className: clsx$1(classNames.actionButton, className),
|
|
100
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
101
|
+
className: clsx$1(classNames.actionButton, scaleFeedbackClassName, className),
|
|
98
102
|
...props
|
|
99
103
|
});
|
|
100
104
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
4
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
5
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
5
6
|
const require_Icon = require("../private/Icon.cjs");
|
|
6
7
|
let _seed_design_react_file_upload = require("@seed-design/react-file-upload");
|
|
7
8
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -14,7 +15,7 @@ let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
|
14
15
|
let _seed_design_css_recipes_attachment_input_trigger = require("@seed-design/css/recipes/attachment-input-trigger");
|
|
15
16
|
//#region src/components/AttachmentInput/AttachmentInputTrigger.tsx
|
|
16
17
|
var { withProvider, useClassNames } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_attachment_input_trigger.attachmentInputTrigger);
|
|
17
|
-
var AttachmentInputTrigger = withProvider(_seed_design_react_file_upload.FileUpload.Trigger, "root");
|
|
18
|
+
var AttachmentInputTrigger = require_withScaleFeedback.withScaleFeedback(withProvider(_seed_design_react_file_upload.FileUpload.Trigger, "root"));
|
|
18
19
|
var AttachmentInputTriggerIcon = react.forwardRef(({ image, general, ...props }, ref) => {
|
|
19
20
|
const { acceptType, stateProps } = (0, _seed_design_react_file_upload.useFileUploadContext)();
|
|
20
21
|
const mergedProps = (0, _seed_design_dom_utils.mergeProps)(stateProps, { className: useClassNames().icon }, props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentInputTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentInput/AttachmentInputTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentInputTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentInput/AttachmentInputTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAS9E,MAAM,WAAW,2BACf,SAAQ,kCAAkC,EACxC,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,sBAAsB,uGAElC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG;KAC7E,CAAC,IAAI,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS;CACrD,GAAG;IACF,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;aAH5B,KAAK,CAAC,SAAS;uCAuBxB,CAAC;AAEH,MAAM,WAAW,oCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,+BAA+B,6GAqB1C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
4
5
|
import { InternalIcon } from "../private/Icon.js";
|
|
5
6
|
import { FileUpload, useFileUploadContext } from "@seed-design/react-file-upload";
|
|
6
7
|
import { Primitive } from "@seed-design/react-primitive";
|
|
@@ -11,7 +12,7 @@ import { mergeProps } from "@seed-design/dom-utils";
|
|
|
11
12
|
import { attachmentInputTrigger } from "@seed-design/css/recipes/attachment-input-trigger";
|
|
12
13
|
//#region src/components/AttachmentInput/AttachmentInputTrigger.tsx
|
|
13
14
|
var { withProvider, useClassNames } = createSlotRecipeContext(attachmentInputTrigger);
|
|
14
|
-
var AttachmentInputTrigger = withProvider(FileUpload.Trigger, "root");
|
|
15
|
+
var AttachmentInputTrigger = withScaleFeedback(withProvider(FileUpload.Trigger, "root"));
|
|
15
16
|
var AttachmentInputTriggerIcon = React$1.forwardRef(({ image, general, ...props }, ref) => {
|
|
16
17
|
const { acceptType, stateProps } = useFileUploadContext();
|
|
17
18
|
const mergedProps = mergeProps(stateProps, { className: useClassNames().icon }, props);
|
|
@@ -8,9 +8,10 @@ let clsx = require("clsx");
|
|
|
8
8
|
clsx = require_runtime.__toESM(clsx);
|
|
9
9
|
let react = require("react");
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
12
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
11
13
|
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
12
14
|
let _seed_design_css_recipes_bottom_sheet = require("@seed-design/css/recipes/bottom-sheet");
|
|
13
|
-
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
14
15
|
let _seed_design_react_drawer = require("@seed-design/react-drawer");
|
|
15
16
|
//#region src/components/BottomSheet/BottomSheet.tsx
|
|
16
17
|
var { withContext, useClassNames, ClassNamesProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_bottom_sheet.bottomSheet);
|
|
@@ -49,9 +50,10 @@ var BottomSheetFooter = withContext(_seed_design_react_primitive.Primitive.div,
|
|
|
49
50
|
var BottomSheetCloseButton = (0, react.forwardRef)(({ className, ...props }, ref) => {
|
|
50
51
|
const classNames = useClassNames();
|
|
51
52
|
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
53
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
52
54
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_drawer.Drawer.CloseButton, {
|
|
53
|
-
ref: (0, _radix_ui_react_compose_refs.
|
|
54
|
-
className: (0, clsx.default)(classNames.closeButton, className),
|
|
55
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref, trackRef),
|
|
56
|
+
className: (0, clsx.default)(classNames.closeButton, scaleFeedbackClassName, className),
|
|
55
57
|
...props
|
|
56
58
|
});
|
|
57
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAGlG,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAGlG,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAM9E,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQrE,MAAM,WAAW,oBACf,SAAQ,uBAAuB,EAC7B,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC;CAAG;AAE1C,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAgB1D;AAID,MAAM,WAAW,uBAAwB,SAAQ,MAAM,CAAC,YAAY;CAAG;AAEvE,eAAO,MAAM,kBAAkB,mHAAiB,CAAC;AAIjD,MAAM,WAAW,0BAA2B,SAAQ,MAAM,CAAC,eAAe;CAAG;AAE7E,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,MAAM,CAAC,aAAa;CAAG;AAEzE,eAAO,MAAM,mBAAmB,qHAG/B,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,MAAM,CAAC,YAAY;CAAG;AAEvE,eAAO,MAAM,kBAAkB,oHAG9B,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,MAAM,CAAC,WAAW;CAAG;AAErE,eAAO,MAAM,iBAAiB,mHAG7B,CAAC;AAIF,MAAM,WAAW,qBAAsB,SAAQ,MAAM,CAAC,UAAU;CAAG;AAEnE,eAAO,MAAM,gBAAgB,sHAc5B,CAAC;AAMF,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,gBAAgB;CAAG;AAE/E,eAAO,MAAM,sBAAsB,8HAGC,CAAC;AAIrC,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,IAAI,CACF,UAAU,EACV,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CACpF,EACD,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,mHAG7B,CAAC;AAIF,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,gBAAgB;CAAG;AAE/E,eAAO,MAAM,sBAAsB,2HAclC,CAAC"}
|
|
@@ -6,9 +6,10 @@ import { Primitive } from "@seed-design/react-primitive";
|
|
|
6
6
|
import clsx$1 from "clsx";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
10
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
9
11
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
10
12
|
import { bottomSheet } from "@seed-design/css/recipes/bottom-sheet";
|
|
11
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
12
13
|
import { Drawer } from "@seed-design/react-drawer";
|
|
13
14
|
//#region src/components/BottomSheet/BottomSheet.tsx
|
|
14
15
|
var { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(bottomSheet);
|
|
@@ -47,9 +48,10 @@ var BottomSheetFooter = withContext(Primitive.div, "footer");
|
|
|
47
48
|
var BottomSheetCloseButton = forwardRef(({ className, ...props }, ref) => {
|
|
48
49
|
const classNames = useClassNames();
|
|
49
50
|
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
51
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
50
52
|
return /* @__PURE__ */ jsx(Drawer.CloseButton, {
|
|
51
|
-
ref:
|
|
52
|
-
className: clsx$1(classNames.closeButton, className),
|
|
53
|
+
ref: useComposedRefs(scaleFeedbackRef, ref, trackRef),
|
|
54
|
+
className: clsx$1(classNames.closeButton, scaleFeedbackClassName, className),
|
|
53
55
|
...props
|
|
54
56
|
});
|
|
55
57
|
});
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
4
5
|
const require_useDismissible = require("../private/useDismissible.cjs");
|
|
5
6
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
6
7
|
let _seed_design_css_recipes_callout = require("@seed-design/css/recipes/callout");
|
|
7
8
|
//#region src/components/Callout/Callout.tsx
|
|
8
9
|
var { withContext, withProvider } = require_createSlotRecipeContext.createSlotRecipeContext(_seed_design_css_recipes_callout.callout);
|
|
9
|
-
var CalloutRoot = withProvider(require_useDismissible.DismissibleRoot, "root");
|
|
10
|
+
var CalloutRoot = require_withScaleFeedback.withScaleFeedback(withProvider(require_useDismissible.DismissibleRoot, "root"));
|
|
10
11
|
var CalloutContent = withContext(_seed_design_react_primitive.Primitive.div, "content");
|
|
11
12
|
var CalloutTitle = withContext(_seed_design_react_primitive.Primitive.span, "title");
|
|
12
13
|
var CalloutDescription = withContext(_seed_design_react_primitive.Primitive.span, "description");
|
|
13
14
|
var CalloutLink = withContext(_seed_design_react_primitive.Primitive.button, "link");
|
|
14
|
-
var CalloutCloseButton = withContext(require_useDismissible.DismissibleCloseButton, "closeButton");
|
|
15
|
+
var CalloutCloseButton = require_withScaleFeedback.withScaleFeedback(withContext(require_useDismissible.DismissibleCloseButton, "closeButton"));
|
|
15
16
|
//#endregion
|
|
16
17
|
exports.CalloutCloseButton = CalloutCloseButton;
|
|
17
18
|
exports.CalloutContent = CalloutContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../../../src/components/Callout/Callout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../../../src/components/Callout/Callout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAInC,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,oBAAoB;CAAG;AAKtF,eAAO,MAAM,WAAW,yFAEvB,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEpG,eAAO,MAAM,cAAc,4FAG1B,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAEnG,eAAO,MAAM,YAAY,2FAGxB,CAAC;AAEF,MAAM,WAAW,uBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,kBAAkB,iGAG9B,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,WAAW,4FAGvB,CAAC;AAEF,MAAM,WAAW,uBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,kBAAkB,mGAE9B,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
3
4
|
import { DismissibleCloseButton, DismissibleRoot } from "../private/useDismissible.js";
|
|
4
5
|
import { Primitive } from "@seed-design/react-primitive";
|
|
5
6
|
import { callout } from "@seed-design/css/recipes/callout";
|
|
6
7
|
//#region src/components/Callout/Callout.tsx
|
|
7
8
|
var { withContext, withProvider } = createSlotRecipeContext(callout);
|
|
8
|
-
var CalloutRoot = withProvider(DismissibleRoot, "root");
|
|
9
|
+
var CalloutRoot = withScaleFeedback(withProvider(DismissibleRoot, "root"));
|
|
9
10
|
var CalloutContent = withContext(Primitive.div, "content");
|
|
10
11
|
var CalloutTitle = withContext(Primitive.span, "title");
|
|
11
12
|
var CalloutDescription = withContext(Primitive.span, "description");
|
|
12
13
|
var CalloutLink = withContext(Primitive.button, "link");
|
|
13
|
-
var CalloutCloseButton = withContext(DismissibleCloseButton, "closeButton");
|
|
14
|
+
var CalloutCloseButton = withScaleFeedback(withContext(DismissibleCloseButton, "closeButton"));
|
|
14
15
|
//#endregion
|
|
15
16
|
export { CalloutCloseButton, CalloutContent, CalloutDescription, CalloutLink, CalloutRoot, CalloutTitle };
|
|
@@ -3,6 +3,7 @@ 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
5
|
const require_createRecipeContext = require("../../utils/createRecipeContext.cjs");
|
|
6
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
6
7
|
const require_splitMultipleVariantsProps = require("../../utils/splitMultipleVariantsProps.cjs");
|
|
7
8
|
const require_Icon = require("../private/Icon.cjs");
|
|
8
9
|
let _seed_design_react_checkbox = require("@seed-design/react-checkbox");
|
|
@@ -39,7 +40,7 @@ var CheckboxRoot = Object.assign((0, react.forwardRef)(({ className, ...props },
|
|
|
39
40
|
})
|
|
40
41
|
});
|
|
41
42
|
}), { Primitive: _seed_design_react_checkbox.Checkbox.Root });
|
|
42
|
-
var CheckboxControl = withCheckmarkProvider(_seed_design_react_checkbox.Checkbox.Control, "root");
|
|
43
|
+
var CheckboxControl = require_withScaleFeedback.withScaleFeedback(withCheckmarkProvider(_seed_design_react_checkbox.Checkbox.Control, "root"));
|
|
43
44
|
var CheckboxIndicator = (0, react.forwardRef)(({ unchecked: uncheckedSvg, checked: checkedSvg, indeterminate: indeterminateSvg, ...otherProps }, ref) => {
|
|
44
45
|
const { stateProps, checked, indeterminate } = (0, _seed_design_react_checkbox.useCheckboxContext)();
|
|
45
46
|
const mergedProps = (0, _seed_design_dom_utils.mergeProps)(stateProps, { className: useCheckmarkClassNames().icon }, otherProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3F,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3F,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9E,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAC;AAajD,MAAM,WAAW,kBACf,SAAQ,yBAAyB,EAC/B,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,aAAa,+GAAsE,CAAC;AAIjG,MAAM,WAAW,iBACf,SAAQ,oBAAoB,EAC1B,qBAAqB,EACrB,iBAAiB,CAAC,SAAS;CAAG;AAElC,eAAO,MAAM,YAAY;;CAsBxB,CAAC;AAIF;;;GAGG;AAEH,MAAM,WAAW,oBACf,SAAQ,qBAAqB,EAC3B,iBAAiB,CAAC,YAAY;CAAG;AAErC,eAAO,MAAM,eAAe,iHAE3B,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IAChF;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED,eAAO,MAAM,iBAAiB,kHA8B7B,CAAC;AAKF,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAEpG,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,CAAC,gBAAgB;CAAG;AAEvF,eAAO,MAAM,mBAAmB,iIAAgC,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
4
|
import { createRecipeContext } from "../../utils/createRecipeContext.js";
|
|
5
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
5
6
|
import { splitMultipleVariantsProps } from "../../utils/splitMultipleVariantsProps.js";
|
|
6
7
|
import { InternalIcon } from "../private/Icon.js";
|
|
7
8
|
import { Checkbox, useCheckboxContext } from "@seed-design/react-checkbox";
|
|
@@ -37,7 +38,7 @@ var CheckboxRoot = Object.assign(forwardRef(({ className, ...props }, ref) => {
|
|
|
37
38
|
})
|
|
38
39
|
});
|
|
39
40
|
}), { Primitive: Checkbox.Root });
|
|
40
|
-
var CheckboxControl = withCheckmarkProvider(Checkbox.Control, "root");
|
|
41
|
+
var CheckboxControl = withScaleFeedback(withCheckmarkProvider(Checkbox.Control, "root"));
|
|
41
42
|
var CheckboxIndicator = forwardRef(({ unchecked: uncheckedSvg, checked: checkedSvg, indeterminate: indeterminateSvg, ...otherProps }, ref) => {
|
|
42
43
|
const { stateProps, checked, indeterminate } = useCheckboxContext();
|
|
43
44
|
const mergedProps = mergeProps(stateProps, { className: useCheckmarkClassNames().icon }, otherProps);
|
|
@@ -3,6 +3,7 @@ require("../../_virtual/_rolldown/runtime.cjs");
|
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
5
|
const require_Icon = require("../Icon/Icon.cjs");
|
|
6
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
6
7
|
let _seed_design_react_checkbox = require("@seed-design/react-checkbox");
|
|
7
8
|
let _seed_design_react_radio_group = require("@seed-design/react-radio-group");
|
|
8
9
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
@@ -16,7 +17,7 @@ var withStateProps = require_createWithStateProps.createWithStateProps([{
|
|
|
16
17
|
useContext: _seed_design_react_radio_group.useRadioGroupItemContext,
|
|
17
18
|
strict: false
|
|
18
19
|
}]);
|
|
19
|
-
var ChipRoot = require_Icon.withIconRequired(withProvider(_seed_design_react_primitive.Primitive.button, "root"), (props) => props.layout === "iconOnly");
|
|
20
|
+
var ChipRoot = require_Icon.withIconRequired(require_withScaleFeedback.withScaleFeedback(withProvider(_seed_design_react_primitive.Primitive.button, "root")), (props) => props.layout === "iconOnly");
|
|
20
21
|
ChipRoot.displayName = "Chip.Root";
|
|
21
22
|
var ChipLabel = withContext(withStateProps(_seed_design_react_primitive.Primitive.span), "label");
|
|
22
23
|
ChipLabel.displayName = "Chip.Label";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAgBpC,MAAM,WAAW,aACf,SAAQ,cAAc,EACpB,gBAAgB,EAChB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,QAAQ,+IAGpB,CAAC;AAKF,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAEhG,eAAO,MAAM,SAAS,wFAGrB,CAAC;AAKF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AACpG,eAAO,MAAM,cAAc,4FAG1B,CAAC;AAKF,MAAM,WAAW,qBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,gBAAgB,8FAG5B,CAAC;AAKF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AACpG,eAAO,MAAM,cAAc,4FAG1B,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
4
|
import { withIconRequired } from "../Icon/Icon.js";
|
|
5
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
5
6
|
import { useCheckboxContext } from "@seed-design/react-checkbox";
|
|
6
7
|
import { useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
7
8
|
import { Primitive } from "@seed-design/react-primitive";
|
|
@@ -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";
|