@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
package/lib/index.cjs
CHANGED
|
@@ -146,7 +146,10 @@ const require_TextField_namespace = require("./components/TextField/TextField.na
|
|
|
146
146
|
const require_TimePicker = require("./components/TimePicker/TimePicker.cjs");
|
|
147
147
|
const require_ToggleButton = require("./components/ToggleButton/ToggleButton.cjs");
|
|
148
148
|
const require_VisuallyHidden = require("./components/VisuallyHidden/VisuallyHidden.cjs");
|
|
149
|
+
const require_WheelPicker = require("./components/WheelPicker/WheelPicker.cjs");
|
|
150
|
+
const require_WheelPicker_namespace = require("./components/WheelPicker/WheelPicker.namespace.cjs");
|
|
149
151
|
const require_BreakpointProvider = require("./providers/BreakpointProvider.cjs");
|
|
152
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
150
153
|
let _seed_design_react_portal = require("@seed-design/react-portal");
|
|
151
154
|
let _seed_design_react_date_picker = require("@seed-design/react-date-picker");
|
|
152
155
|
let _seed_design_react_pull_to_refresh = require("@seed-design/react-pull-to-refresh");
|
|
@@ -764,6 +767,12 @@ exports.ResponsiveSidePanelPositioner = require_ResponsiveSidePanel.ResponsiveSi
|
|
|
764
767
|
exports.ResponsiveSidePanelRoot = require_ResponsiveSidePanel.ResponsiveSidePanelRoot;
|
|
765
768
|
exports.ResponsiveSidePanelTitle = require_ResponsiveSidePanel.ResponsiveSidePanelTitle;
|
|
766
769
|
exports.ResponsiveSidePanelTrigger = require_ResponsiveSidePanel.ResponsiveSidePanelTrigger;
|
|
770
|
+
Object.defineProperty(exports, "ScaleFeedback", {
|
|
771
|
+
enumerable: true,
|
|
772
|
+
get: function() {
|
|
773
|
+
return _seed_design_react_scale_feedback.ScaleFeedback;
|
|
774
|
+
}
|
|
775
|
+
});
|
|
767
776
|
exports.ScrollFog = require_ScrollFog.ScrollFog;
|
|
768
777
|
Object.defineProperty(exports, "SegmentedControl", {
|
|
769
778
|
enumerable: true,
|
|
@@ -951,6 +960,15 @@ exports.TwoMonthDatePicker = require_DatePicker.TwoMonthDatePicker;
|
|
|
951
960
|
exports.VStack = require_Stack.VStack;
|
|
952
961
|
exports.VisuallyHidden = require_VisuallyHidden.VisuallyHidden;
|
|
953
962
|
exports.WeekDatePicker = require_DatePicker.WeekDatePicker;
|
|
963
|
+
Object.defineProperty(exports, "WheelPicker", {
|
|
964
|
+
enumerable: true,
|
|
965
|
+
get: function() {
|
|
966
|
+
return require_WheelPicker_namespace.WheelPicker_namespace_exports;
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
exports.WheelPickerColumn = require_WheelPicker.WheelPickerColumn;
|
|
970
|
+
exports.WheelPickerItemLabel = require_WheelPicker.WheelPickerItemLabel;
|
|
971
|
+
exports.WheelPickerRoot = require_WheelPicker.WheelPickerRoot;
|
|
954
972
|
Object.defineProperty(exports, "compareDates", {
|
|
955
973
|
enumerable: true,
|
|
956
974
|
get: function() {
|
|
@@ -1021,6 +1039,12 @@ exports.useBreakpoint = require_useBreakpoint.useBreakpoint;
|
|
|
1021
1039
|
exports.useBreakpointValue = require_useBreakpointValue.useBreakpointValue;
|
|
1022
1040
|
exports.useResponsiveDialogContext = require_ResponsiveDialog.useResponsiveDialogContext;
|
|
1023
1041
|
exports.useResponsiveSidePanelContext = require_ResponsiveSidePanel.useResponsiveSidePanelContext;
|
|
1042
|
+
Object.defineProperty(exports, "useScaleFeedback", {
|
|
1043
|
+
enumerable: true,
|
|
1044
|
+
get: function() {
|
|
1045
|
+
return _seed_design_react_scale_feedback.useScaleFeedback;
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1024
1048
|
exports.useSnackbarAdapter = require_useSnackbarAdapter.useSnackbarAdapter;
|
|
1025
1049
|
Object.defineProperty(exports, "useSnackbarContext", {
|
|
1026
1050
|
enumerable: true,
|
package/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type { ResponsiveValue, UnwrapResponsive, BreakpointThreshold } from './t
|
|
|
3
3
|
export { useBreakpoint } from './hooks/useBreakpoint';
|
|
4
4
|
export type { UseBreakpointOptions } from './hooks/useBreakpoint';
|
|
5
5
|
export { useBreakpointValue } from './hooks/useBreakpointValue';
|
|
6
|
+
export { useScaleFeedback, ScaleFeedback } from '@seed-design/react-scale-feedback';
|
|
7
|
+
export type { ScaleFeedbackProps } from '@seed-design/react-scale-feedback';
|
|
6
8
|
export { BreakpointProvider } from './providers/BreakpointProvider';
|
|
7
9
|
export type { BreakpointProviderProps } from './providers/BreakpointProvider';
|
|
8
10
|
export type { StyleProps as unstable_StyleProps } from './utils/styled';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEjG,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,YAAY,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEjG,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACpF,YAAY,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,YAAY,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -149,5 +149,8 @@ import { TextField_namespace_exports } from "./components/TextField/TextField.na
|
|
|
149
149
|
import { TimePicker } from "./components/TimePicker/TimePicker.js";
|
|
150
150
|
import { ToggleButton } from "./components/ToggleButton/ToggleButton.js";
|
|
151
151
|
import { VisuallyHidden } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
152
|
+
import { WheelPickerColumn, WheelPickerItemLabel, WheelPickerRoot } from "./components/WheelPicker/WheelPicker.js";
|
|
153
|
+
import { WheelPicker_namespace_exports } from "./components/WheelPicker/WheelPicker.namespace.js";
|
|
152
154
|
import { BreakpointProvider } from "./providers/BreakpointProvider.js";
|
|
153
|
-
export { Accordion_namespace_exports as Accordion, AccordionBody, AccordionContent, AccordionDescription, AccordionHeader, AccordionItem, AccordionPrefix, AccordionRoot, AccordionSuffixIcon, AccordionTitle, AccordionTrigger, ActionButton, ActionChip, ActionSheet_namespace_exports as ActionSheet, ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger, Article, AspectRatio, AttachmentDisplay_namespace_exports as AttachmentDisplay, AttachmentDisplayContainer, AttachmentDisplayContext, AttachmentDisplayControl, AttachmentDisplayDescription, AttachmentDisplayErrorMessage, AttachmentDisplayFooter, AttachmentDisplayHeader, AttachmentDisplayIndicatorText, AttachmentDisplayItem, AttachmentDisplayItemActionButton, AttachmentDisplayItemBackdrop, AttachmentDisplayItemBadge, AttachmentDisplayItemGroup, AttachmentDisplayItemImage, AttachmentDisplayItemMetadata, AttachmentDisplayItemRemoveButton, AttachmentDisplayItemThumbnail, AttachmentDisplayLabel, AttachmentDisplayRequiredIndicator, AttachmentDisplayRoot, AttachmentDisplayTrigger, AttachmentDisplayTriggerIcon, AttachmentDisplayTriggerItemCount, AttachmentInput_namespace_exports as AttachmentInput, AttachmentInputContainer, AttachmentInputContext, AttachmentInputDropzone, AttachmentInputDropzoneLabel, AttachmentInputHiddenInput, AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemGroup, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail, AttachmentInputRoot, AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount, Avatar_namespace_exports as Avatar, AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, Badge, BottomSheet_namespace_exports as BottomSheet, BottomSheetBackdrop, BottomSheetBody, BottomSheetCloseButton, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetPositioner, BottomSheetRoot, BottomSheetTitle, BottomSheetTrigger, Box, BreakpointProvider, Callout_namespace_exports as Callout, CalloutCloseButton, CalloutContent, CalloutDescription, CalloutLink, CalloutRoot, CalloutTitle, Celsius, CheckSelectBox_namespace_exports as CheckSelectBox, CheckSelectBoxBody, CheckSelectBoxCheckmarkControl, CheckSelectBoxCheckmarkIcon, CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxFooter, CheckSelectBoxGroup, CheckSelectBoxHiddenInput, CheckSelectBoxLabel, CheckSelectBoxRoot, CheckSelectBoxTrigger, Checkbox_namespace_exports as Checkbox, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, CheckboxIndicator, CheckboxLabel, CheckboxRoot, Chip_namespace_exports as Chip, ChipLabel, ChipPrefixAvatar, ChipPrefixIcon, ChipRoot, ChipSuffixIcon, ChipTabs_namespace_exports as ChipTabs, ChipTabsCarousel, ChipTabsCarouselCamera, ChipTabsContent, ChipTabsList, ChipTabsRoot, ChipTabsTrigger, Column, Columns, ConsistentWidth, ContentDialog_namespace_exports as ContentDialog, ContentDialogAction, ContentDialogBackdrop, ContentDialogBody, ContentDialogCloseButton, ContentDialogContent, ContentDialogDescription, ContentDialogFooter, ContentDialogHeader, ContentDialogPositioner, ContentDialogRoot, ContentDialogTitle, ContentDialogTrigger, ContentPlaceholder_namespace_exports as ContentPlaceholder, ContentPlaceholderAsset, ContentPlaceholderRoot, ContextualFloatingButton, ContinuousDatePicker, ControlChip, Count, DatePicker, Dialog_namespace_exports as Dialog, DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger, Divider, ExtendedActionSheet_namespace_exports as ExtendedActionSheet, ExtendedActionSheetBackdrop, ExtendedActionSheetCloseButton, ExtendedActionSheetContent, ExtendedActionSheetFooter, ExtendedActionSheetGroup, ExtendedActionSheetHeader, ExtendedActionSheetItem, ExtendedActionSheetList, ExtendedActionSheetPositioner, ExtendedActionSheetRoot, ExtendedActionSheetTitle, ExtendedActionSheetTrigger, ExtendedFab, Fab, Field_namespace_exports as Field, FieldButton_namespace_exports as FieldButton, FieldButtonButton, FieldButtonClearButton, FieldButtonControl, FieldButtonDescription, FieldButtonErrorMessage, FieldButtonFooter, FieldButtonHeader, FieldButtonHiddenInput, FieldButtonIndicatorText, FieldButtonLabel, FieldButtonPlaceholder, FieldButtonPrefixIcon, FieldButtonPrefixText, FieldButtonRequiredIndicator, FieldButtonRoot, FieldButtonSuffixIcon, FieldButtonSuffixText, FieldButtonValue, FieldCharacterCount, FieldDescription, FieldErrorMessage, FieldFooter, FieldHeader, FieldIndicatorText, FieldLabel, FieldRequiredIndicator, FieldRoot, Fieldset_namespace_exports as Fieldset, FieldsetDescription, FieldsetErrorMessage, FieldsetFooter, FieldsetHeader, FieldsetIndicatorText, FieldsetLabel, FieldsetRequiredIndicator, FieldsetRoot, Flex, Float, FloatingActionButton_namespace_exports as FloatingActionButton, FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot, Footer_namespace_exports as Footer, FooterLinkText, Grid, GridItem, HStack, HelpBubble_namespace_exports as HelpBubble, HelpBubbleAnchor, HelpBubbleArrow, HelpBubbleArrowTip, HelpBubbleBody, HelpBubbleCloseButton, HelpBubbleContent, HelpBubbleDescription, HelpBubblePositioner, HelpBubblePositionerPortal, HelpBubbleRoot, HelpBubbleTitle, HelpBubbleTooltip_namespace_exports as HelpBubbleTooltip, HelpBubbleTooltipArrow, HelpBubbleTooltipArrowTip, HelpBubbleTooltipBody, HelpBubbleTooltipContent, HelpBubbleTooltipDelayGroup, HelpBubbleTooltipDescription, HelpBubbleTooltipPositioner, HelpBubbleTooltipPositionerPortal, HelpBubbleTooltipRoot, HelpBubbleTooltipTitle, HelpBubbleTooltipTrigger, HelpBubbleTrigger, Icon, IdentityPlaceholder_namespace_exports as IdentityPlaceholder, IdentityPlaceholderImage, IdentityPlaceholderRoot, ImageFrame, ImageFrameBadge, ImageFrameFloater, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton, Inline, InlineBanner_namespace_exports as InlineBanner, InlineBannerCloseButton, InlineBannerContent, InlineBannerDescription, InlineBannerLink, InlineBannerRoot, InlineBannerTitle, Layout_namespace_exports as Layout, LayoutContent, LayoutRoot, LinkContent, List_namespace_exports as List, ListContent, ListDetail, ListHeader, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle, LoadingIndicator, MannerTemp, MannerTempBadge, MannerTempEmote, Menu_namespace_exports as Menu, MenuAnchor, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemBody, MenuItemDescription, MenuItemLabel, MenuPositioner, MenuRoot, MenuScrollArea, MenuSheet_namespace_exports as MenuSheet, MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetDescription, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetItemContent, MenuSheetItemDescription, MenuSheetItemLabel, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger, MenuTrigger, NavigationMenu_namespace_exports as NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger, NotificationBadge, NotificationBadgePositioner, PageBanner_namespace_exports as PageBanner, PageBannerBody, PageBannerButton, PageBannerCloseButton, PageBannerContent, PageBannerDescription, PageBannerRoot, PageBannerTitle, Portal, PrefixIcon, ProgressCircle_namespace_exports as ProgressCircle, ProgressCircleRange, ProgressCircleRoot, ProgressCircleTrack, PullToRefresh_namespace_exports as PullToRefresh, PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot, QuantityPicker_namespace_exports as QuantityPicker, QuantityPickerDecrementButton, QuantityPickerHiddenInput, QuantityPickerIncrementButton, QuantityPickerRoot, QuantityPickerValueDisplay, RadioGroup_namespace_exports as RadioGroup, RadioGroupField_namespace_exports as RadioGroupField, RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot, RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot, RadioSelectBox_namespace_exports as RadioSelectBox, RadioSelectBoxBody, RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxFooter, RadioSelectBoxGroup, RadioSelectBoxHiddenInput, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxTrigger, ReactionButton, ResponsiveDialog_namespace_exports as ResponsiveDialog, ResponsiveDialogAction, ResponsiveDialogBackdrop, ResponsiveDialogBody, ResponsiveDialogCloseButton, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHandle, ResponsiveDialogHeader, ResponsiveDialogPositioner, ResponsiveDialogRoot, ResponsiveDialogTitle, ResponsiveDialogTrigger, ResponsivePair, ResponsiveSidePanel_namespace_exports as ResponsiveSidePanel, ResponsiveSidePanelBackdrop, ResponsiveSidePanelBody, ResponsiveSidePanelCloseButton, ResponsiveSidePanelContent, ResponsiveSidePanelDescription, ResponsiveSidePanelFooter, ResponsiveSidePanelHandle, ResponsiveSidePanelHeader, ResponsiveSidePanelPositioner, ResponsiveSidePanelRoot, ResponsiveSidePanelTitle, ResponsiveSidePanelTrigger, ScrollFog, SegmentedControl_namespace_exports as SegmentedControl, SegmentedControlIndicator, SegmentedControlItem, SegmentedControlItemHiddenInput, SegmentedControlRoot, Select_namespace_exports as Select, SelectContent, SelectGroup, SelectGroupLabel, SelectHiddenSelect, SelectItem, SelectItemBody, SelectItemDescription, SelectItemIndicator, SelectItemLabel, SelectItemPrefixIcon, SelectPlaceholder, SelectPositioner, SelectPrefixIcon, SelectRoot, SelectScrollArea, SelectSuffixIcon, SelectTrigger, SelectValue, SideNavigation_namespace_exports as SideNavigation, SideNavigationContent, SideNavigationFooter, SideNavigationGroup, SideNavigationGroupLabel, SideNavigationHeader, SideNavigationInset, SideNavigationItem, SideNavigationItemCollapsibleContent, SideNavigationItemCollapsibleRoot, SideNavigationItemCollapsibleTrigger, SideNavigationItemLabel, SideNavigationItemPrefixIcon, SideNavigationItemSuffixIcon, SideNavigationProvider, SideNavigationRoot, SideNavigationTrigger, SidePanel_namespace_exports as SidePanel, SidePanelBackdrop, SidePanelBody, SidePanelCloseButton, SidePanelContent, SidePanelDescription, SidePanelFooter, SidePanelHeader, SidePanelPositioner, SidePanelRoot, SidePanelTitle, SidePanelTrigger, Skeleton, Slider_namespace_exports as Slider, SliderControl, SliderHiddenInput, SliderMarker, SliderMarkers, SliderRange, SliderRoot, SliderThumb, SliderTick, SliderTrack, SliderValueIndicatorArrow, SliderValueIndicatorArrowTip, SliderValueIndicatorLabel, SliderValueIndicatorRoot, Snackbar_namespace_exports as Snackbar, SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider, Stack, SuffixIcon, SwipeableMenuSheet_namespace_exports as SwipeableMenuSheet, SwipeableMenuSheetBackdrop, SwipeableMenuSheetCloseButton, SwipeableMenuSheetContent, SwipeableMenuSheetDescription, SwipeableMenuSheetFooter, SwipeableMenuSheetGroup, SwipeableMenuSheetHandle, SwipeableMenuSheetHeader, SwipeableMenuSheetItem, SwipeableMenuSheetItemContent, SwipeableMenuSheetItemDescription, SwipeableMenuSheetItemLabel, SwipeableMenuSheetList, SwipeableMenuSheetPositioner, SwipeableMenuSheetRoot, SwipeableMenuSheetTitle, SwipeableMenuSheetTrigger, Switch_namespace_exports as Switch, SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, Tabs_namespace_exports as Tabs, TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TagGroup_namespace_exports as TagGroup, TagGroupItem, TagGroupItemLabel, TagGroupRoot, Text, TextField_namespace_exports as TextField, TextFieldInput, TextFieldPrefixIcon, TextFieldPrefixText, TextFieldRoot, TextFieldSuffixIcon, TextFieldSuffixText, TextFieldTextarea, TimePicker, ToggleButton, TwoMonthDatePicker, VStack, VisuallyHidden, WeekDatePicker, compareDates, dateKey, dateOnOrAfter, dateOnOrBefore, excludeDates, isSameDate, maxSelectionCount, pullToRefreshPreventPull, rangeDayCountAtLeast, rangeDayCountAtMost, tabsCarouselPreventDrag, useBreakpoint, useBreakpointValue, useResponsiveDialogContext, useResponsiveSidePanelContext, useSnackbarAdapter, useSnackbarContext, useTextFieldWithGraphemes };
|
|
155
|
+
import { ScaleFeedback, useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
156
|
+
export { Accordion_namespace_exports as Accordion, AccordionBody, AccordionContent, AccordionDescription, AccordionHeader, AccordionItem, AccordionPrefix, AccordionRoot, AccordionSuffixIcon, AccordionTitle, AccordionTrigger, ActionButton, ActionChip, ActionSheet_namespace_exports as ActionSheet, ActionSheetBackdrop, ActionSheetCloseButton, ActionSheetContent, ActionSheetDescription, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetPositioner, ActionSheetRoot, ActionSheetTitle, ActionSheetTrigger, Article, AspectRatio, AttachmentDisplay_namespace_exports as AttachmentDisplay, AttachmentDisplayContainer, AttachmentDisplayContext, AttachmentDisplayControl, AttachmentDisplayDescription, AttachmentDisplayErrorMessage, AttachmentDisplayFooter, AttachmentDisplayHeader, AttachmentDisplayIndicatorText, AttachmentDisplayItem, AttachmentDisplayItemActionButton, AttachmentDisplayItemBackdrop, AttachmentDisplayItemBadge, AttachmentDisplayItemGroup, AttachmentDisplayItemImage, AttachmentDisplayItemMetadata, AttachmentDisplayItemRemoveButton, AttachmentDisplayItemThumbnail, AttachmentDisplayLabel, AttachmentDisplayRequiredIndicator, AttachmentDisplayRoot, AttachmentDisplayTrigger, AttachmentDisplayTriggerIcon, AttachmentDisplayTriggerItemCount, AttachmentInput_namespace_exports as AttachmentInput, AttachmentInputContainer, AttachmentInputContext, AttachmentInputDropzone, AttachmentInputDropzoneLabel, AttachmentInputHiddenInput, AttachmentInputItem, AttachmentInputItemActionButton, AttachmentInputItemBackdrop, AttachmentInputItemBadge, AttachmentInputItemGroup, AttachmentInputItemImage, AttachmentInputItemMetadata, AttachmentInputItemName, AttachmentInputItemRemoveButton, AttachmentInputItemSize, AttachmentInputItemThumbnail, AttachmentInputRoot, AttachmentInputTrigger, AttachmentInputTriggerIcon, AttachmentInputTriggerItemCount, Avatar_namespace_exports as Avatar, AvatarBadge, AvatarFallback, AvatarImage, AvatarRoot, AvatarStack, Badge, BottomSheet_namespace_exports as BottomSheet, BottomSheetBackdrop, BottomSheetBody, BottomSheetCloseButton, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetPositioner, BottomSheetRoot, BottomSheetTitle, BottomSheetTrigger, Box, BreakpointProvider, Callout_namespace_exports as Callout, CalloutCloseButton, CalloutContent, CalloutDescription, CalloutLink, CalloutRoot, CalloutTitle, Celsius, CheckSelectBox_namespace_exports as CheckSelectBox, CheckSelectBoxBody, CheckSelectBoxCheckmarkControl, CheckSelectBoxCheckmarkIcon, CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxFooter, CheckSelectBoxGroup, CheckSelectBoxHiddenInput, CheckSelectBoxLabel, CheckSelectBoxRoot, CheckSelectBoxTrigger, Checkbox_namespace_exports as Checkbox, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, CheckboxIndicator, CheckboxLabel, CheckboxRoot, Chip_namespace_exports as Chip, ChipLabel, ChipPrefixAvatar, ChipPrefixIcon, ChipRoot, ChipSuffixIcon, ChipTabs_namespace_exports as ChipTabs, ChipTabsCarousel, ChipTabsCarouselCamera, ChipTabsContent, ChipTabsList, ChipTabsRoot, ChipTabsTrigger, Column, Columns, ConsistentWidth, ContentDialog_namespace_exports as ContentDialog, ContentDialogAction, ContentDialogBackdrop, ContentDialogBody, ContentDialogCloseButton, ContentDialogContent, ContentDialogDescription, ContentDialogFooter, ContentDialogHeader, ContentDialogPositioner, ContentDialogRoot, ContentDialogTitle, ContentDialogTrigger, ContentPlaceholder_namespace_exports as ContentPlaceholder, ContentPlaceholderAsset, ContentPlaceholderRoot, ContextualFloatingButton, ContinuousDatePicker, ControlChip, Count, DatePicker, Dialog_namespace_exports as Dialog, DialogAction, DialogBackdrop, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogRoot, DialogTitle, DialogTrigger, Divider, ExtendedActionSheet_namespace_exports as ExtendedActionSheet, ExtendedActionSheetBackdrop, ExtendedActionSheetCloseButton, ExtendedActionSheetContent, ExtendedActionSheetFooter, ExtendedActionSheetGroup, ExtendedActionSheetHeader, ExtendedActionSheetItem, ExtendedActionSheetList, ExtendedActionSheetPositioner, ExtendedActionSheetRoot, ExtendedActionSheetTitle, ExtendedActionSheetTrigger, ExtendedFab, Fab, Field_namespace_exports as Field, FieldButton_namespace_exports as FieldButton, FieldButtonButton, FieldButtonClearButton, FieldButtonControl, FieldButtonDescription, FieldButtonErrorMessage, FieldButtonFooter, FieldButtonHeader, FieldButtonHiddenInput, FieldButtonIndicatorText, FieldButtonLabel, FieldButtonPlaceholder, FieldButtonPrefixIcon, FieldButtonPrefixText, FieldButtonRequiredIndicator, FieldButtonRoot, FieldButtonSuffixIcon, FieldButtonSuffixText, FieldButtonValue, FieldCharacterCount, FieldDescription, FieldErrorMessage, FieldFooter, FieldHeader, FieldIndicatorText, FieldLabel, FieldRequiredIndicator, FieldRoot, Fieldset_namespace_exports as Fieldset, FieldsetDescription, FieldsetErrorMessage, FieldsetFooter, FieldsetHeader, FieldsetIndicatorText, FieldsetLabel, FieldsetRequiredIndicator, FieldsetRoot, Flex, Float, FloatingActionButton_namespace_exports as FloatingActionButton, FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot, Footer_namespace_exports as Footer, FooterLinkText, Grid, GridItem, HStack, HelpBubble_namespace_exports as HelpBubble, HelpBubbleAnchor, HelpBubbleArrow, HelpBubbleArrowTip, HelpBubbleBody, HelpBubbleCloseButton, HelpBubbleContent, HelpBubbleDescription, HelpBubblePositioner, HelpBubblePositionerPortal, HelpBubbleRoot, HelpBubbleTitle, HelpBubbleTooltip_namespace_exports as HelpBubbleTooltip, HelpBubbleTooltipArrow, HelpBubbleTooltipArrowTip, HelpBubbleTooltipBody, HelpBubbleTooltipContent, HelpBubbleTooltipDelayGroup, HelpBubbleTooltipDescription, HelpBubbleTooltipPositioner, HelpBubbleTooltipPositionerPortal, HelpBubbleTooltipRoot, HelpBubbleTooltipTitle, HelpBubbleTooltipTrigger, HelpBubbleTrigger, Icon, IdentityPlaceholder_namespace_exports as IdentityPlaceholder, IdentityPlaceholderImage, IdentityPlaceholderRoot, ImageFrame, ImageFrameBadge, ImageFrameFloater, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton, Inline, InlineBanner_namespace_exports as InlineBanner, InlineBannerCloseButton, InlineBannerContent, InlineBannerDescription, InlineBannerLink, InlineBannerRoot, InlineBannerTitle, Layout_namespace_exports as Layout, LayoutContent, LayoutRoot, LinkContent, List_namespace_exports as List, ListContent, ListDetail, ListHeader, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle, LoadingIndicator, MannerTemp, MannerTempBadge, MannerTempEmote, Menu_namespace_exports as Menu, MenuAnchor, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemBody, MenuItemDescription, MenuItemLabel, MenuPositioner, MenuRoot, MenuScrollArea, MenuSheet_namespace_exports as MenuSheet, MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetDescription, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetItemContent, MenuSheetItemDescription, MenuSheetItemLabel, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger, MenuTrigger, NavigationMenu_namespace_exports as NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuItemBody, NavigationMenuItemDescription, NavigationMenuItemLabel, NavigationMenuPositioner, NavigationMenuProvider, NavigationMenuRoot, NavigationMenuScrollArea, NavigationMenuTrigger, NotificationBadge, NotificationBadgePositioner, PageBanner_namespace_exports as PageBanner, PageBannerBody, PageBannerButton, PageBannerCloseButton, PageBannerContent, PageBannerDescription, PageBannerRoot, PageBannerTitle, Portal, PrefixIcon, ProgressCircle_namespace_exports as ProgressCircle, ProgressCircleRange, ProgressCircleRoot, ProgressCircleTrack, PullToRefresh_namespace_exports as PullToRefresh, PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot, QuantityPicker_namespace_exports as QuantityPicker, QuantityPickerDecrementButton, QuantityPickerHiddenInput, QuantityPickerIncrementButton, QuantityPickerRoot, QuantityPickerValueDisplay, RadioGroup_namespace_exports as RadioGroup, RadioGroupField_namespace_exports as RadioGroupField, RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot, RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot, RadioSelectBox_namespace_exports as RadioSelectBox, RadioSelectBoxBody, RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxFooter, RadioSelectBoxGroup, RadioSelectBoxHiddenInput, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxTrigger, ReactionButton, ResponsiveDialog_namespace_exports as ResponsiveDialog, ResponsiveDialogAction, ResponsiveDialogBackdrop, ResponsiveDialogBody, ResponsiveDialogCloseButton, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHandle, ResponsiveDialogHeader, ResponsiveDialogPositioner, ResponsiveDialogRoot, ResponsiveDialogTitle, ResponsiveDialogTrigger, ResponsivePair, ResponsiveSidePanel_namespace_exports as ResponsiveSidePanel, ResponsiveSidePanelBackdrop, ResponsiveSidePanelBody, ResponsiveSidePanelCloseButton, ResponsiveSidePanelContent, ResponsiveSidePanelDescription, ResponsiveSidePanelFooter, ResponsiveSidePanelHandle, ResponsiveSidePanelHeader, ResponsiveSidePanelPositioner, ResponsiveSidePanelRoot, ResponsiveSidePanelTitle, ResponsiveSidePanelTrigger, ScaleFeedback, ScrollFog, SegmentedControl_namespace_exports as SegmentedControl, SegmentedControlIndicator, SegmentedControlItem, SegmentedControlItemHiddenInput, SegmentedControlRoot, Select_namespace_exports as Select, SelectContent, SelectGroup, SelectGroupLabel, SelectHiddenSelect, SelectItem, SelectItemBody, SelectItemDescription, SelectItemIndicator, SelectItemLabel, SelectItemPrefixIcon, SelectPlaceholder, SelectPositioner, SelectPrefixIcon, SelectRoot, SelectScrollArea, SelectSuffixIcon, SelectTrigger, SelectValue, SideNavigation_namespace_exports as SideNavigation, SideNavigationContent, SideNavigationFooter, SideNavigationGroup, SideNavigationGroupLabel, SideNavigationHeader, SideNavigationInset, SideNavigationItem, SideNavigationItemCollapsibleContent, SideNavigationItemCollapsibleRoot, SideNavigationItemCollapsibleTrigger, SideNavigationItemLabel, SideNavigationItemPrefixIcon, SideNavigationItemSuffixIcon, SideNavigationProvider, SideNavigationRoot, SideNavigationTrigger, SidePanel_namespace_exports as SidePanel, SidePanelBackdrop, SidePanelBody, SidePanelCloseButton, SidePanelContent, SidePanelDescription, SidePanelFooter, SidePanelHeader, SidePanelPositioner, SidePanelRoot, SidePanelTitle, SidePanelTrigger, Skeleton, Slider_namespace_exports as Slider, SliderControl, SliderHiddenInput, SliderMarker, SliderMarkers, SliderRange, SliderRoot, SliderThumb, SliderTick, SliderTrack, SliderValueIndicatorArrow, SliderValueIndicatorArrowTip, SliderValueIndicatorLabel, SliderValueIndicatorRoot, Snackbar_namespace_exports as Snackbar, SnackbarActionButton, SnackbarAvoidOverlap, SnackbarHiddenCloseButton, SnackbarMessage, SnackbarPrefixIcon, SnackbarRegion, SnackbarRenderer, SnackbarRoot, SnackbarRootProvider, Stack, SuffixIcon, SwipeableMenuSheet_namespace_exports as SwipeableMenuSheet, SwipeableMenuSheetBackdrop, SwipeableMenuSheetCloseButton, SwipeableMenuSheetContent, SwipeableMenuSheetDescription, SwipeableMenuSheetFooter, SwipeableMenuSheetGroup, SwipeableMenuSheetHandle, SwipeableMenuSheetHeader, SwipeableMenuSheetItem, SwipeableMenuSheetItemContent, SwipeableMenuSheetItemDescription, SwipeableMenuSheetItemLabel, SwipeableMenuSheetList, SwipeableMenuSheetPositioner, SwipeableMenuSheetRoot, SwipeableMenuSheetTitle, SwipeableMenuSheetTrigger, Switch_namespace_exports as Switch, SwitchControl, SwitchHiddenInput, SwitchLabel, SwitchRoot, SwitchThumb, Tabs_namespace_exports as Tabs, TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, TagGroup_namespace_exports as TagGroup, TagGroupItem, TagGroupItemLabel, TagGroupRoot, Text, TextField_namespace_exports as TextField, TextFieldInput, TextFieldPrefixIcon, TextFieldPrefixText, TextFieldRoot, TextFieldSuffixIcon, TextFieldSuffixText, TextFieldTextarea, TimePicker, ToggleButton, TwoMonthDatePicker, VStack, VisuallyHidden, WeekDatePicker, WheelPicker_namespace_exports as WheelPicker, WheelPickerColumn, WheelPickerItemLabel, WheelPickerRoot, compareDates, dateKey, dateOnOrAfter, dateOnOrBefore, excludeDates, isSameDate, maxSelectionCount, pullToRefreshPreventPull, rangeDayCountAtLeast, rangeDayCountAtMost, tabsCarouselPreventDrag, useBreakpoint, useBreakpointValue, useResponsiveDialogContext, useResponsiveSidePanelContext, useScaleFeedback, useSnackbarAdapter, useSnackbarContext, useTextFieldWithGraphemes };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let clsx = require("clsx");
|
|
4
|
+
clsx = require_runtime.__toESM(clsx);
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_runtime.__toESM(react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
9
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
10
|
+
//#region src/utils/withScaleFeedback.tsx
|
|
11
|
+
function withScaleFeedback(Component) {
|
|
12
|
+
const Pressable = react.forwardRef((props, ref) => {
|
|
13
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
14
|
+
const composedRef = (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref);
|
|
15
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
16
|
+
...props,
|
|
17
|
+
ref: composedRef,
|
|
18
|
+
className: (0, clsx.default)(scaleFeedbackClassName, props.className)
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
Pressable.displayName = Component.displayName;
|
|
22
|
+
return Pressable;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.withScaleFeedback = withScaleFeedback;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Wraps a component so its element opts into scale feedback — for one-liner
|
|
4
|
+
* factory components (`withContext`/`withProvider` results). Hand-written
|
|
5
|
+
* forwardRef components call `useScaleFeedback` directly instead.
|
|
6
|
+
*/
|
|
7
|
+
export declare function withScaleFeedback<P>(Component: React.ForwardRefExoticComponent<P>): React.ForwardRefExoticComponent<P>;
|
|
8
|
+
//# sourceMappingURL=withScaleFeedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withScaleFeedback.d.ts","sourceRoot":"","sources":["../../src/utils/withScaleFeedback.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,SAAS,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,GAC5C,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
6
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
7
|
+
//#region src/utils/withScaleFeedback.tsx
|
|
8
|
+
function withScaleFeedback(Component) {
|
|
9
|
+
const Pressable = React$1.forwardRef((props, ref) => {
|
|
10
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
11
|
+
const composedRef = useComposedRefs(scaleFeedbackRef, ref);
|
|
12
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
13
|
+
...props,
|
|
14
|
+
ref: composedRef,
|
|
15
|
+
className: clsx$1(scaleFeedbackClassName, props.className)
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
Pressable.displayName = Component.displayName;
|
|
19
|
+
return Pressable;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { withScaleFeedback };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@seed-design/react-checkbox": "^2.0.1",
|
|
50
50
|
"@seed-design/react-collapsible": "^1.0.1",
|
|
51
51
|
"@seed-design/react-dialog": "^2.0.3",
|
|
52
|
-
"@seed-design/react-date-picker": "^1.
|
|
52
|
+
"@seed-design/react-date-picker": "^1.2.0",
|
|
53
53
|
"@seed-design/react-drawer": "^2.0.6",
|
|
54
54
|
"@seed-design/react-field": "^2.0.1",
|
|
55
55
|
"@seed-design/react-field-button": "^2.0.1",
|
|
@@ -63,9 +63,10 @@
|
|
|
63
63
|
"@seed-design/react-portal": "^2.0.1",
|
|
64
64
|
"@seed-design/react-primitive": "^2.0.1",
|
|
65
65
|
"@seed-design/react-progress": "^2.0.1",
|
|
66
|
-
"@seed-design/react-pull-to-refresh": "^2.0
|
|
66
|
+
"@seed-design/react-pull-to-refresh": "^2.1.0",
|
|
67
67
|
"@seed-design/react-quantity-picker": "^1.0.0",
|
|
68
68
|
"@seed-design/react-radio-group": "^2.0.1",
|
|
69
|
+
"@seed-design/react-scale-feedback": "^1.0.0",
|
|
69
70
|
"@seed-design/react-segmented-control": "^2.0.2",
|
|
70
71
|
"@seed-design/react-select": "^1.0.1",
|
|
71
72
|
"@seed-design/react-side-navigation": "^1.0.1",
|
|
@@ -77,12 +78,12 @@
|
|
|
77
78
|
"@seed-design/react-time-picker": "^1.0.0",
|
|
78
79
|
"@seed-design/react-toggle": "^2.0.1",
|
|
79
80
|
"@seed-design/react-tooltip": "^1.0.1",
|
|
80
|
-
"@seed-design/react-wheel-picker": "^1.
|
|
81
|
+
"@seed-design/react-wheel-picker": "^1.1.0",
|
|
81
82
|
"clsx": "^2.1.1",
|
|
82
83
|
"unicode-segmenter": "^0.17.3"
|
|
83
84
|
},
|
|
84
85
|
"peerDependencies": {
|
|
85
|
-
"@seed-design/css": "^2.
|
|
86
|
+
"@seed-design/css": "^2.6.0",
|
|
86
87
|
"react": ">=18.0.0",
|
|
87
88
|
"react-dom": ">=18.0.0"
|
|
88
89
|
},
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
actionButton,
|
|
3
3
|
type ActionButtonVariantProps,
|
|
4
4
|
} from "@seed-design/css/recipes/action-button";
|
|
5
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
5
6
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
6
7
|
import clsx from "clsx";
|
|
7
8
|
import * as React from "react";
|
|
9
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
8
10
|
import { handleColor, useStyleProps, type StyleProps } from "../../utils/styled";
|
|
9
11
|
import { IconRequired } from "../Icon/Icon";
|
|
10
12
|
import {
|
|
@@ -58,6 +60,7 @@ export const ActionButton = React.forwardRef<HTMLButtonElement, ActionButtonProp
|
|
|
58
60
|
const recipeClassName = actionButton({ variant, layout, size });
|
|
59
61
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
60
62
|
const { style, restProps } = useStyleProps(otherProps);
|
|
63
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
61
64
|
|
|
62
65
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
63
66
|
console.warn(
|
|
@@ -69,8 +72,8 @@ export const ActionButton = React.forwardRef<HTMLButtonElement, ActionButtonProp
|
|
|
69
72
|
<PendingButtonProvider value={api}>
|
|
70
73
|
<IconRequired enabled={layout === "iconOnly"}>
|
|
71
74
|
<Primitive.button
|
|
72
|
-
ref={ref}
|
|
73
|
-
className={clsx(recipeClassName, className)}
|
|
75
|
+
ref={useComposedRefs(scaleFeedbackRef, ref)}
|
|
76
|
+
className={clsx(recipeClassName, scaleFeedbackClassName, className)}
|
|
74
77
|
// NOTE: Should we handle color as a style prop?
|
|
75
78
|
style={
|
|
76
79
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
attachmentInputItem,
|
|
5
5
|
type AttachmentInputItemVariantProps,
|
|
6
6
|
} from "@seed-design/css/recipes/attachment-input-item";
|
|
7
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
7
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
8
8
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
9
9
|
import {
|
|
10
10
|
AttachmentDisplay as AttachmentDisplayPrimitive,
|
|
@@ -18,6 +18,8 @@ import clsx from "clsx";
|
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext";
|
|
20
20
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
21
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
22
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
21
23
|
|
|
22
24
|
const { useClassNames, ClassNamesProvider, withContext } =
|
|
23
25
|
createSlotRecipeContext(attachmentInputItem);
|
|
@@ -44,14 +46,15 @@ export const AttachmentDisplayItem = React.forwardRef<HTMLLIElement, AttachmentD
|
|
|
44
46
|
});
|
|
45
47
|
|
|
46
48
|
const classNames = attachmentInputItem(variantProps);
|
|
49
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
47
50
|
|
|
48
51
|
return (
|
|
49
52
|
<ClassNamesProvider value={classNames}>
|
|
50
53
|
<AttachmentDisplayItemProvider value={api}>
|
|
51
54
|
<overlayTracker.Provider>
|
|
52
55
|
<Primitive.li
|
|
53
|
-
ref={ref}
|
|
54
|
-
className={clsx(classNames.root, className)}
|
|
56
|
+
ref={useComposedRefs(scaleFeedbackRef, ref)}
|
|
57
|
+
className={clsx(classNames.root, scaleFeedbackClassName, className)}
|
|
55
58
|
{...stateProps}
|
|
56
59
|
{...otherProps}
|
|
57
60
|
/>
|
|
@@ -181,12 +184,13 @@ export const AttachmentDisplayItemActionButton = React.forwardRef<
|
|
|
181
184
|
AttachmentDisplayItemActionButtonProps
|
|
182
185
|
>(({ className, ...props }, ref) => {
|
|
183
186
|
const classNames = useClassNames();
|
|
187
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
184
188
|
|
|
185
189
|
return (
|
|
186
190
|
<Primitive.button
|
|
187
191
|
type="button"
|
|
188
|
-
ref={ref}
|
|
189
|
-
className={clsx(classNames.actionButton, className)}
|
|
192
|
+
ref={useComposedRefs(scaleFeedbackRef, ref)}
|
|
193
|
+
className={clsx(classNames.actionButton, scaleFeedbackClassName, className)}
|
|
190
194
|
{...props}
|
|
191
195
|
/>
|
|
192
196
|
);
|
|
@@ -198,7 +202,9 @@ AttachmentDisplayItemActionButton.displayName = "AttachmentDisplayItemActionButt
|
|
|
198
202
|
export interface AttachmentDisplayItemRemoveButtonProps
|
|
199
203
|
extends AttachmentDisplayPrimitive.ItemRemoveButtonProps {}
|
|
200
204
|
|
|
201
|
-
export const AttachmentDisplayItemRemoveButton =
|
|
202
|
-
HTMLButtonElement,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
export const AttachmentDisplayItemRemoveButton = withScaleFeedback(
|
|
206
|
+
withContext<HTMLButtonElement, AttachmentDisplayItemRemoveButtonProps>(
|
|
207
|
+
AttachmentDisplayPrimitive.ItemRemoveButton,
|
|
208
|
+
"removeButton",
|
|
209
|
+
),
|
|
210
|
+
);
|
|
@@ -14,6 +14,7 @@ import clsx from "clsx";
|
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import { InternalIcon } from "../private/Icon";
|
|
16
16
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
17
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
17
18
|
|
|
18
19
|
const { withProvider, useClassNames } = createSlotRecipeContext(attachmentInputTrigger);
|
|
19
20
|
|
|
@@ -22,10 +23,12 @@ export interface AttachmentDisplayTriggerProps
|
|
|
22
23
|
PrimitiveProps,
|
|
23
24
|
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
24
25
|
|
|
25
|
-
export const AttachmentDisplayTrigger =
|
|
26
|
-
HTMLButtonElement,
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
export const AttachmentDisplayTrigger = withScaleFeedback(
|
|
27
|
+
withProvider<HTMLButtonElement, AttachmentDisplayTriggerProps>(
|
|
28
|
+
AttachmentDisplayPrimitive.Trigger,
|
|
29
|
+
"root",
|
|
30
|
+
),
|
|
31
|
+
);
|
|
29
32
|
|
|
30
33
|
// Display currently only supports image content. The parametric form mirrors
|
|
31
34
|
// AttachmentInput.TriggerIcon so future expansion (e.g., "general") can be added
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
attachmentInputItem,
|
|
6
6
|
type AttachmentInputItemVariantProps,
|
|
7
7
|
} from "@seed-design/css/recipes/attachment-input-item";
|
|
8
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
8
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
9
9
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
10
10
|
import {
|
|
11
11
|
FileUpload as FileUploadPrimitive,
|
|
@@ -21,6 +21,8 @@ import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
|
21
21
|
import clsx from "clsx";
|
|
22
22
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext";
|
|
23
23
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
24
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
25
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
24
26
|
|
|
25
27
|
const { useClassNames, ClassNamesProvider, withContext } =
|
|
26
28
|
createSlotRecipeContext(attachmentInputItem);
|
|
@@ -45,14 +47,15 @@ export const AttachmentInputItem = React.forwardRef<HTMLLIElement, AttachmentInp
|
|
|
45
47
|
});
|
|
46
48
|
|
|
47
49
|
const classNames = attachmentInputItem(variantProps);
|
|
50
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
48
51
|
|
|
49
52
|
return (
|
|
50
53
|
<ClassNamesProvider value={classNames}>
|
|
51
54
|
<FileUploadItemProvider value={api}>
|
|
52
55
|
<overlayTracker.Provider>
|
|
53
56
|
<Primitive.li
|
|
54
|
-
ref={ref}
|
|
55
|
-
className={clsx(classNames.root, className)}
|
|
57
|
+
ref={useComposedRefs(scaleFeedbackRef, ref)}
|
|
58
|
+
className={clsx(classNames.root, scaleFeedbackClassName, className)}
|
|
56
59
|
{...stateProps}
|
|
57
60
|
{...otherProps}
|
|
58
61
|
/>
|
|
@@ -115,10 +118,12 @@ AttachmentInputItemSize.displayName = "AttachmentInputItemSize";
|
|
|
115
118
|
export interface AttachmentInputItemRemoveButtonProps
|
|
116
119
|
extends FileUploadPrimitive.ItemRemoveButtonProps {}
|
|
117
120
|
|
|
118
|
-
export const AttachmentInputItemRemoveButton =
|
|
119
|
-
HTMLButtonElement,
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
export const AttachmentInputItemRemoveButton = withScaleFeedback(
|
|
122
|
+
withContext<HTMLButtonElement, AttachmentInputItemRemoveButtonProps>(
|
|
123
|
+
FileUploadPrimitive.ItemRemoveButton,
|
|
124
|
+
"removeButton",
|
|
125
|
+
),
|
|
126
|
+
);
|
|
122
127
|
|
|
123
128
|
export interface AttachmentInputItemImageProps extends FileUploadPrimitive.ItemImageProps {}
|
|
124
129
|
|
|
@@ -184,12 +189,13 @@ export const AttachmentInputItemActionButton = React.forwardRef<
|
|
|
184
189
|
AttachmentInputItemActionButtonProps
|
|
185
190
|
>(({ className, ...props }, ref) => {
|
|
186
191
|
const classNames = useClassNames();
|
|
192
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
187
193
|
|
|
188
194
|
return (
|
|
189
195
|
<Primitive.button
|
|
190
196
|
type="button"
|
|
191
|
-
ref={ref}
|
|
192
|
-
className={clsx(classNames.actionButton, className)}
|
|
197
|
+
ref={useComposedRefs(scaleFeedbackRef, ref)}
|
|
198
|
+
className={clsx(classNames.actionButton, scaleFeedbackClassName, className)}
|
|
193
199
|
{...props}
|
|
194
200
|
/>
|
|
195
201
|
);
|
|
@@ -16,6 +16,7 @@ import { mergeProps } from "@seed-design/dom-utils";
|
|
|
16
16
|
import clsx from "clsx";
|
|
17
17
|
import { InternalIcon } from "../private/Icon";
|
|
18
18
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
19
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
19
20
|
|
|
20
21
|
const { withProvider, useClassNames } = createSlotRecipeContext(attachmentInputTrigger);
|
|
21
22
|
|
|
@@ -24,9 +25,8 @@ export interface AttachmentInputTriggerProps
|
|
|
24
25
|
PrimitiveProps,
|
|
25
26
|
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
26
27
|
|
|
27
|
-
export const AttachmentInputTrigger =
|
|
28
|
-
FileUploadPrimitive.Trigger,
|
|
29
|
-
"root",
|
|
28
|
+
export const AttachmentInputTrigger = withScaleFeedback(
|
|
29
|
+
withProvider<HTMLButtonElement, AttachmentInputTriggerProps>(FileUploadPrimitive.Trigger, "root"),
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
export type AttachmentInputTriggerIconProps = React.SVGAttributes<SVGElement> & {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { bottomSheet, type BottomSheetVariantProps } from "@seed-design/css/recipes/bottom-sheet";
|
|
2
|
-
import {
|
|
2
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
3
3
|
import { dataAttr } from "@seed-design/dom-utils";
|
|
4
4
|
import { Drawer } from "@seed-design/react-drawer";
|
|
5
5
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
8
9
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext";
|
|
9
10
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
10
11
|
import { withStyleProps, type StyleProps } from "../../utils/styled";
|
|
@@ -144,11 +145,12 @@ export const BottomSheetCloseButton = forwardRef<HTMLButtonElement, BottomSheetC
|
|
|
144
145
|
({ className, ...props }, ref) => {
|
|
145
146
|
const classNames = useClassNames();
|
|
146
147
|
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
148
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
147
149
|
|
|
148
150
|
return (
|
|
149
151
|
<Drawer.CloseButton
|
|
150
|
-
ref={
|
|
151
|
-
className={clsx(classNames.closeButton, className)}
|
|
152
|
+
ref={useComposedRefs(scaleFeedbackRef, ref, trackRef)}
|
|
153
|
+
className={clsx(classNames.closeButton, scaleFeedbackClassName, className)}
|
|
152
154
|
{...props}
|
|
153
155
|
/>
|
|
154
156
|
);
|
|
@@ -3,6 +3,7 @@ import type * as React from "react";
|
|
|
3
3
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
4
4
|
import { callout, type CalloutVariantProps } from "@seed-design/css/recipes/callout";
|
|
5
5
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
6
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
6
7
|
import {
|
|
7
8
|
DismissibleCloseButton,
|
|
8
9
|
DismissibleRoot,
|
|
@@ -13,7 +14,12 @@ const { withContext, withProvider } = createSlotRecipeContext(callout);
|
|
|
13
14
|
|
|
14
15
|
export interface CalloutRootProps extends CalloutVariantProps, DismissibleRootProps {}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
// The root only scales when the consumer makes it actionable (`asChild` with a
|
|
18
|
+
// button or anchor) — the recipe gates the scale on `:is(button, a)`. Publishing
|
|
19
|
+
// the size vars unconditionally costs a plain callout nothing.
|
|
20
|
+
export const CalloutRoot = withScaleFeedback(
|
|
21
|
+
withProvider<HTMLDivElement, CalloutRootProps>(DismissibleRoot, "root"),
|
|
22
|
+
);
|
|
17
23
|
|
|
18
24
|
export interface CalloutContentProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {}
|
|
19
25
|
|
|
@@ -51,7 +57,6 @@ export interface CalloutCloseButtonProps
|
|
|
51
57
|
extends PrimitiveProps,
|
|
52
58
|
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
53
59
|
|
|
54
|
-
export const CalloutCloseButton =
|
|
55
|
-
DismissibleCloseButton,
|
|
56
|
-
"closeButton",
|
|
60
|
+
export const CalloutCloseButton = withScaleFeedback(
|
|
61
|
+
withContext<HTMLButtonElement, CalloutCloseButtonProps>(DismissibleCloseButton, "closeButton"),
|
|
57
62
|
);
|
|
@@ -8,6 +8,7 @@ import clsx from "clsx";
|
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
10
10
|
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
11
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
11
12
|
import { InternalIcon } from "../private/Icon";
|
|
12
13
|
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
13
14
|
import {
|
|
@@ -75,9 +76,8 @@ export interface CheckboxControlProps
|
|
|
75
76
|
extends CheckmarkVariantProps,
|
|
76
77
|
CheckboxPrimitive.ControlProps {}
|
|
77
78
|
|
|
78
|
-
export const CheckboxControl =
|
|
79
|
-
CheckboxPrimitive.Control,
|
|
80
|
-
"root",
|
|
79
|
+
export const CheckboxControl = withScaleFeedback(
|
|
80
|
+
withCheckmarkProvider<HTMLDivElement, CheckboxControlProps>(CheckboxPrimitive.Control, "root"),
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -2,6 +2,7 @@ import { chip, type ChipVariantProps } from "@seed-design/css/recipes/chip";
|
|
|
2
2
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
5
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
5
6
|
import { withIconRequired } from "../Icon/Icon";
|
|
6
7
|
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
7
8
|
import { useCheckboxContext } from "@seed-design/react-checkbox";
|
|
@@ -21,7 +22,7 @@ export interface ChipRootProps
|
|
|
21
22
|
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
22
23
|
|
|
23
24
|
export const ChipRoot = withIconRequired(
|
|
24
|
-
withProvider<HTMLButtonElement, ChipRootProps>(Primitive.button, "root"),
|
|
25
|
+
withScaleFeedback(withProvider<HTMLButtonElement, ChipRootProps>(Primitive.button, "root")),
|
|
25
26
|
(props: ChipRootProps) => props.layout === "iconOnly",
|
|
26
27
|
);
|
|
27
28
|
ChipRoot.displayName = "Chip.Root";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { chipTabs, type ChipTabsVariantProps } from "@seed-design/css/recipes/chip-tabs";
|
|
2
2
|
import { Tabs as TabsPrimitive } from "@seed-design/react-tabs";
|
|
3
3
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback";
|
|
4
5
|
import { forwardRef } from "react";
|
|
5
6
|
import clsx from "clsx";
|
|
6
7
|
|
|
@@ -41,9 +42,8 @@ export const ChipTabsList = withContext<HTMLDivElement, ChipTabsListProps>(
|
|
|
41
42
|
|
|
42
43
|
export interface ChipTabsTriggerProps extends TabsPrimitive.TriggerProps {}
|
|
43
44
|
|
|
44
|
-
export const ChipTabsTrigger =
|
|
45
|
-
TabsPrimitive.Trigger,
|
|
46
|
-
"trigger",
|
|
45
|
+
export const ChipTabsTrigger = withScaleFeedback(
|
|
46
|
+
withContext<HTMLButtonElement, ChipTabsTriggerProps>(TabsPrimitive.Trigger, "trigger"),
|
|
47
47
|
);
|
|
48
48
|
|
|
49
49
|
////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { composeRefs } from "@radix-ui/react-compose-refs";
|
|
1
|
+
import { composeRefs, useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
2
2
|
import {
|
|
3
3
|
contentDialog,
|
|
4
4
|
type ContentDialogVariantProps,
|
|
@@ -10,6 +10,7 @@ import clsx from "clsx";
|
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { createRenderTrackingContext } from "../../utils/createRenderTrackingContext";
|
|
12
12
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
13
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
13
14
|
import { useStyleProps, withStyleProps, type StyleProps } from "../../utils/styled";
|
|
14
15
|
|
|
15
16
|
const { withContext, useClassNames, ClassNamesProvider } = createSlotRecipeContext(contentDialog);
|
|
@@ -209,11 +210,12 @@ export const ContentDialogCloseButton = React.forwardRef<
|
|
|
209
210
|
>(({ className, ...props }, ref) => {
|
|
210
211
|
const classNames = useClassNames();
|
|
211
212
|
const { trackRef } = closeButtonTracker.useRenderTracking();
|
|
213
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
212
214
|
|
|
213
215
|
return (
|
|
214
216
|
<DialogPrimitive.CloseButton
|
|
215
|
-
ref={
|
|
216
|
-
className={clsx(classNames.closeButton, className)}
|
|
217
|
+
ref={useComposedRefs(scaleFeedbackRef, ref, trackRef)}
|
|
218
|
+
className={clsx(classNames.closeButton, scaleFeedbackClassName, className)}
|
|
217
219
|
{...props}
|
|
218
220
|
/>
|
|
219
221
|
);
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
contextualFloatingButton,
|
|
3
3
|
type ContextualFloatingButtonVariantProps,
|
|
4
4
|
} from "@seed-design/css/recipes/contextual-floating-button";
|
|
5
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
5
6
|
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
6
7
|
import clsx from "clsx";
|
|
7
8
|
import * as React from "react";
|
|
9
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
8
10
|
import { IconRequired } from "../Icon/Icon";
|
|
9
11
|
import {
|
|
10
12
|
PendingButtonProvider,
|
|
@@ -24,6 +26,7 @@ export const ContextualFloatingButton = React.forwardRef<
|
|
|
24
26
|
>(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
25
27
|
const recipeClassName = contextualFloatingButton({ variant, layout });
|
|
26
28
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
29
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
27
30
|
|
|
28
31
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
29
32
|
console.warn(
|
|
@@ -35,8 +38,8 @@ export const ContextualFloatingButton = React.forwardRef<
|
|
|
35
38
|
<PendingButtonProvider value={api}>
|
|
36
39
|
<IconRequired enabled={layout === "iconOnly"}>
|
|
37
40
|
<Primitive.button
|
|
38
|
-
ref={ref}
|
|
39
|
-
className={clsx(recipeClassName, className)}
|
|
41
|
+
ref={useComposedRefs(scaleFeedbackRef, ref)}
|
|
42
|
+
className={clsx(recipeClassName, scaleFeedbackClassName, className)}
|
|
40
43
|
{...api.stateProps}
|
|
41
44
|
{...otherProps}
|
|
42
45
|
>
|