@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
|
@@ -16,6 +16,10 @@ export declare function usePendingButton(props: UsePendingButtonProps): {
|
|
|
16
16
|
loading: boolean | undefined;
|
|
17
17
|
disabled: boolean | undefined;
|
|
18
18
|
stateProps: {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
slot?: string | undefined | undefined;
|
|
21
|
+
style?: React.CSSProperties | undefined;
|
|
22
|
+
title?: string | undefined | undefined;
|
|
19
23
|
defaultChecked?: boolean | undefined | undefined;
|
|
20
24
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
21
25
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -24,20 +28,17 @@ export declare function usePendingButton(props: UsePendingButtonProps): {
|
|
|
24
28
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
25
29
|
autoFocus?: boolean | undefined | undefined;
|
|
26
30
|
className?: string | undefined | undefined;
|
|
27
|
-
contentEditable?: "inherit" | (boolean | "
|
|
31
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
28
32
|
contextMenu?: string | undefined | undefined;
|
|
29
33
|
dir?: string | undefined | undefined;
|
|
30
|
-
draggable?: (boolean | "
|
|
34
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
31
35
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
32
36
|
hidden?: boolean | undefined | undefined;
|
|
33
37
|
id?: string | undefined | undefined;
|
|
34
38
|
lang?: string | undefined | undefined;
|
|
35
39
|
nonce?: string | undefined | undefined;
|
|
36
|
-
|
|
37
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
38
|
-
style?: React.CSSProperties | undefined;
|
|
40
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
39
41
|
tabIndex?: number | undefined | undefined;
|
|
40
|
-
title?: string | undefined | undefined;
|
|
41
42
|
translate?: "yes" | "no" | undefined | undefined;
|
|
42
43
|
radioGroup?: string | undefined | undefined;
|
|
43
44
|
role?: React.AriaRole | undefined;
|
|
@@ -72,11 +73,11 @@ export declare function usePendingButton(props: UsePendingButtonProps): {
|
|
|
72
73
|
exportparts?: string | undefined | undefined;
|
|
73
74
|
part?: string | undefined | undefined;
|
|
74
75
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
75
|
-
"aria-atomic"?: (boolean | "
|
|
76
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
76
77
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
77
78
|
"aria-braillelabel"?: string | undefined | undefined;
|
|
78
79
|
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
79
|
-
"aria-busy"?: (boolean | "
|
|
80
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
80
81
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
81
82
|
"aria-colcount"?: number | undefined | undefined;
|
|
82
83
|
"aria-colindex"?: number | undefined | undefined;
|
|
@@ -87,44 +88,43 @@ export declare function usePendingButton(props: UsePendingButtonProps): {
|
|
|
87
88
|
"aria-describedby"?: string | undefined | undefined;
|
|
88
89
|
"aria-description"?: string | undefined | undefined;
|
|
89
90
|
"aria-details"?: string | undefined | undefined;
|
|
90
|
-
"aria-disabled"?: (boolean | "
|
|
91
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
91
92
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
92
93
|
"aria-errormessage"?: string | undefined | undefined;
|
|
93
|
-
"aria-expanded"?: (boolean | "
|
|
94
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
94
95
|
"aria-flowto"?: string | undefined | undefined;
|
|
95
|
-
"aria-grabbed"?: (boolean | "
|
|
96
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
96
97
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
97
|
-
"aria-hidden"?: (boolean | "
|
|
98
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
98
99
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
99
100
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
100
101
|
"aria-label"?: string | undefined | undefined;
|
|
101
102
|
"aria-labelledby"?: string | undefined | undefined;
|
|
102
103
|
"aria-level"?: number | undefined | undefined;
|
|
103
104
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
104
|
-
"aria-modal"?: (boolean | "
|
|
105
|
-
"aria-multiline"?: (boolean | "
|
|
106
|
-
"aria-multiselectable"?: (boolean | "
|
|
105
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
107
108
|
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
108
109
|
"aria-owns"?: string | undefined | undefined;
|
|
109
110
|
"aria-placeholder"?: string | undefined | undefined;
|
|
110
111
|
"aria-posinset"?: number | undefined | undefined;
|
|
111
112
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
112
|
-
"aria-readonly"?: (boolean | "
|
|
113
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
113
114
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
114
|
-
"aria-required"?: (boolean | "
|
|
115
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
115
116
|
"aria-roledescription"?: string | undefined | undefined;
|
|
116
117
|
"aria-rowcount"?: number | undefined | undefined;
|
|
117
118
|
"aria-rowindex"?: number | undefined | undefined;
|
|
118
119
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
119
120
|
"aria-rowspan"?: number | undefined | undefined;
|
|
120
|
-
"aria-selected"?: (boolean | "
|
|
121
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
121
122
|
"aria-setsize"?: number | undefined | undefined;
|
|
122
123
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
123
124
|
"aria-valuemax"?: number | undefined | undefined;
|
|
124
125
|
"aria-valuemin"?: number | undefined | undefined;
|
|
125
126
|
"aria-valuenow"?: number | undefined | undefined;
|
|
126
127
|
"aria-valuetext"?: string | undefined | undefined;
|
|
127
|
-
children?: React.ReactNode;
|
|
128
128
|
dangerouslySetInnerHTML?: {
|
|
129
129
|
__html: string | TrustedHTML;
|
|
130
130
|
} | undefined | undefined;
|
|
@@ -302,6 +302,10 @@ export declare const PendingButtonProvider: React.Provider<{
|
|
|
302
302
|
loading: boolean | undefined;
|
|
303
303
|
disabled: boolean | undefined;
|
|
304
304
|
stateProps: {
|
|
305
|
+
children?: React.ReactNode;
|
|
306
|
+
slot?: string | undefined | undefined;
|
|
307
|
+
style?: React.CSSProperties | undefined;
|
|
308
|
+
title?: string | undefined | undefined;
|
|
305
309
|
defaultChecked?: boolean | undefined | undefined;
|
|
306
310
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
307
311
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -310,20 +314,17 @@ export declare const PendingButtonProvider: React.Provider<{
|
|
|
310
314
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
311
315
|
autoFocus?: boolean | undefined | undefined;
|
|
312
316
|
className?: string | undefined | undefined;
|
|
313
|
-
contentEditable?: "inherit" | (boolean | "
|
|
317
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
314
318
|
contextMenu?: string | undefined | undefined;
|
|
315
319
|
dir?: string | undefined | undefined;
|
|
316
|
-
draggable?: (boolean | "
|
|
320
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
317
321
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
318
322
|
hidden?: boolean | undefined | undefined;
|
|
319
323
|
id?: string | undefined | undefined;
|
|
320
324
|
lang?: string | undefined | undefined;
|
|
321
325
|
nonce?: string | undefined | undefined;
|
|
322
|
-
|
|
323
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
324
|
-
style?: React.CSSProperties | undefined;
|
|
326
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
325
327
|
tabIndex?: number | undefined | undefined;
|
|
326
|
-
title?: string | undefined | undefined;
|
|
327
328
|
translate?: "yes" | "no" | undefined | undefined;
|
|
328
329
|
radioGroup?: string | undefined | undefined;
|
|
329
330
|
role?: React.AriaRole | undefined;
|
|
@@ -358,11 +359,11 @@ export declare const PendingButtonProvider: React.Provider<{
|
|
|
358
359
|
exportparts?: string | undefined | undefined;
|
|
359
360
|
part?: string | undefined | undefined;
|
|
360
361
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
361
|
-
"aria-atomic"?: (boolean | "
|
|
362
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
362
363
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
363
364
|
"aria-braillelabel"?: string | undefined | undefined;
|
|
364
365
|
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
365
|
-
"aria-busy"?: (boolean | "
|
|
366
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
366
367
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
367
368
|
"aria-colcount"?: number | undefined | undefined;
|
|
368
369
|
"aria-colindex"?: number | undefined | undefined;
|
|
@@ -373,44 +374,43 @@ export declare const PendingButtonProvider: React.Provider<{
|
|
|
373
374
|
"aria-describedby"?: string | undefined | undefined;
|
|
374
375
|
"aria-description"?: string | undefined | undefined;
|
|
375
376
|
"aria-details"?: string | undefined | undefined;
|
|
376
|
-
"aria-disabled"?: (boolean | "
|
|
377
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
377
378
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
378
379
|
"aria-errormessage"?: string | undefined | undefined;
|
|
379
|
-
"aria-expanded"?: (boolean | "
|
|
380
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
380
381
|
"aria-flowto"?: string | undefined | undefined;
|
|
381
|
-
"aria-grabbed"?: (boolean | "
|
|
382
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
382
383
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
383
|
-
"aria-hidden"?: (boolean | "
|
|
384
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
384
385
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
385
386
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
386
387
|
"aria-label"?: string | undefined | undefined;
|
|
387
388
|
"aria-labelledby"?: string | undefined | undefined;
|
|
388
389
|
"aria-level"?: number | undefined | undefined;
|
|
389
390
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
390
|
-
"aria-modal"?: (boolean | "
|
|
391
|
-
"aria-multiline"?: (boolean | "
|
|
392
|
-
"aria-multiselectable"?: (boolean | "
|
|
391
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
392
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
393
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
393
394
|
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
394
395
|
"aria-owns"?: string | undefined | undefined;
|
|
395
396
|
"aria-placeholder"?: string | undefined | undefined;
|
|
396
397
|
"aria-posinset"?: number | undefined | undefined;
|
|
397
398
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
398
|
-
"aria-readonly"?: (boolean | "
|
|
399
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
399
400
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
400
|
-
"aria-required"?: (boolean | "
|
|
401
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
401
402
|
"aria-roledescription"?: string | undefined | undefined;
|
|
402
403
|
"aria-rowcount"?: number | undefined | undefined;
|
|
403
404
|
"aria-rowindex"?: number | undefined | undefined;
|
|
404
405
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
405
406
|
"aria-rowspan"?: number | undefined | undefined;
|
|
406
|
-
"aria-selected"?: (boolean | "
|
|
407
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
407
408
|
"aria-setsize"?: number | undefined | undefined;
|
|
408
409
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
409
410
|
"aria-valuemax"?: number | undefined | undefined;
|
|
410
411
|
"aria-valuemin"?: number | undefined | undefined;
|
|
411
412
|
"aria-valuenow"?: number | undefined | undefined;
|
|
412
413
|
"aria-valuetext"?: string | undefined | undefined;
|
|
413
|
-
children?: React.ReactNode;
|
|
414
414
|
dangerouslySetInnerHTML?: {
|
|
415
415
|
__html: string | TrustedHTML;
|
|
416
416
|
} | undefined | undefined;
|
|
@@ -588,6 +588,10 @@ export declare const usePendingButtonContext: () => {
|
|
|
588
588
|
loading: boolean | undefined;
|
|
589
589
|
disabled: boolean | undefined;
|
|
590
590
|
stateProps: {
|
|
591
|
+
children?: React.ReactNode;
|
|
592
|
+
slot?: string | undefined | undefined;
|
|
593
|
+
style?: React.CSSProperties | undefined;
|
|
594
|
+
title?: string | undefined | undefined;
|
|
591
595
|
defaultChecked?: boolean | undefined | undefined;
|
|
592
596
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
593
597
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -596,20 +600,17 @@ export declare const usePendingButtonContext: () => {
|
|
|
596
600
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
597
601
|
autoFocus?: boolean | undefined | undefined;
|
|
598
602
|
className?: string | undefined | undefined;
|
|
599
|
-
contentEditable?: "inherit" | (boolean | "
|
|
603
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
600
604
|
contextMenu?: string | undefined | undefined;
|
|
601
605
|
dir?: string | undefined | undefined;
|
|
602
|
-
draggable?: (boolean | "
|
|
606
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
603
607
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
604
608
|
hidden?: boolean | undefined | undefined;
|
|
605
609
|
id?: string | undefined | undefined;
|
|
606
610
|
lang?: string | undefined | undefined;
|
|
607
611
|
nonce?: string | undefined | undefined;
|
|
608
|
-
|
|
609
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
610
|
-
style?: React.CSSProperties | undefined;
|
|
612
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
611
613
|
tabIndex?: number | undefined | undefined;
|
|
612
|
-
title?: string | undefined | undefined;
|
|
613
614
|
translate?: "yes" | "no" | undefined | undefined;
|
|
614
615
|
radioGroup?: string | undefined | undefined;
|
|
615
616
|
role?: React.AriaRole | undefined;
|
|
@@ -644,11 +645,11 @@ export declare const usePendingButtonContext: () => {
|
|
|
644
645
|
exportparts?: string | undefined | undefined;
|
|
645
646
|
part?: string | undefined | undefined;
|
|
646
647
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
647
|
-
"aria-atomic"?: (boolean | "
|
|
648
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
648
649
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
649
650
|
"aria-braillelabel"?: string | undefined | undefined;
|
|
650
651
|
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
651
|
-
"aria-busy"?: (boolean | "
|
|
652
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
652
653
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
653
654
|
"aria-colcount"?: number | undefined | undefined;
|
|
654
655
|
"aria-colindex"?: number | undefined | undefined;
|
|
@@ -659,44 +660,43 @@ export declare const usePendingButtonContext: () => {
|
|
|
659
660
|
"aria-describedby"?: string | undefined | undefined;
|
|
660
661
|
"aria-description"?: string | undefined | undefined;
|
|
661
662
|
"aria-details"?: string | undefined | undefined;
|
|
662
|
-
"aria-disabled"?: (boolean | "
|
|
663
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
663
664
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
664
665
|
"aria-errormessage"?: string | undefined | undefined;
|
|
665
|
-
"aria-expanded"?: (boolean | "
|
|
666
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
666
667
|
"aria-flowto"?: string | undefined | undefined;
|
|
667
|
-
"aria-grabbed"?: (boolean | "
|
|
668
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
668
669
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
669
|
-
"aria-hidden"?: (boolean | "
|
|
670
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
670
671
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
671
672
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
672
673
|
"aria-label"?: string | undefined | undefined;
|
|
673
674
|
"aria-labelledby"?: string | undefined | undefined;
|
|
674
675
|
"aria-level"?: number | undefined | undefined;
|
|
675
676
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
676
|
-
"aria-modal"?: (boolean | "
|
|
677
|
-
"aria-multiline"?: (boolean | "
|
|
678
|
-
"aria-multiselectable"?: (boolean | "
|
|
677
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
678
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
679
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
679
680
|
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
680
681
|
"aria-owns"?: string | undefined | undefined;
|
|
681
682
|
"aria-placeholder"?: string | undefined | undefined;
|
|
682
683
|
"aria-posinset"?: number | undefined | undefined;
|
|
683
684
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
684
|
-
"aria-readonly"?: (boolean | "
|
|
685
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
685
686
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
686
|
-
"aria-required"?: (boolean | "
|
|
687
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
687
688
|
"aria-roledescription"?: string | undefined | undefined;
|
|
688
689
|
"aria-rowcount"?: number | undefined | undefined;
|
|
689
690
|
"aria-rowindex"?: number | undefined | undefined;
|
|
690
691
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
691
692
|
"aria-rowspan"?: number | undefined | undefined;
|
|
692
|
-
"aria-selected"?: (boolean | "
|
|
693
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
693
694
|
"aria-setsize"?: number | undefined | undefined;
|
|
694
695
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
695
696
|
"aria-valuemax"?: number | undefined | undefined;
|
|
696
697
|
"aria-valuemin"?: number | undefined | undefined;
|
|
697
698
|
"aria-valuenow"?: number | undefined | undefined;
|
|
698
699
|
"aria-valuetext"?: string | undefined | undefined;
|
|
699
|
-
children?: React.ReactNode;
|
|
700
700
|
dangerouslySetInnerHTML?: {
|
|
701
701
|
__html: string | TrustedHTML;
|
|
702
702
|
} | undefined | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
4
|
const require_createWithStateProps = require("../../utils/createWithStateProps.cjs");
|
|
5
|
+
const require_withScaleFeedback = require("../../utils/withScaleFeedback.cjs");
|
|
5
6
|
let _seed_design_react_dialog = require("@seed-design/react-dialog");
|
|
6
7
|
let _seed_design_react_primitive = require("@seed-design/react-primitive");
|
|
7
8
|
let clsx = require("clsx");
|
|
@@ -125,7 +126,7 @@ var MenuSheetFooter = withContext(withStateProps(_seed_design_react_primitive.Pr
|
|
|
125
126
|
/**
|
|
126
127
|
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
127
128
|
*/
|
|
128
|
-
var MenuSheetCloseButton = withContext(_seed_design_react_dialog.Dialog.CloseButton, "closeButton");
|
|
129
|
+
var MenuSheetCloseButton = require_withScaleFeedback.withScaleFeedback(withContext(_seed_design_react_dialog.Dialog.CloseButton, "closeButton"));
|
|
129
130
|
//#endregion
|
|
130
131
|
exports.MenuSheetBackdrop = MenuSheetBackdrop;
|
|
131
132
|
exports.MenuSheetCloseButton = MenuSheetCloseButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuSheet.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSheet/MenuSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuSheet.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSheet/MenuSheet.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext.js";
|
|
3
3
|
import { createWithStateProps } from "../../utils/createWithStateProps.js";
|
|
4
|
+
import { withScaleFeedback } from "../../utils/withScaleFeedback.js";
|
|
4
5
|
import { Dialog, useDialogContext } from "@seed-design/react-dialog";
|
|
5
6
|
import { Primitive } from "@seed-design/react-primitive";
|
|
6
7
|
import clsx$1 from "clsx";
|
|
@@ -122,6 +123,6 @@ var MenuSheetFooter = withContext(withStateProps(Primitive.div), "footer");
|
|
|
122
123
|
/**
|
|
123
124
|
* @deprecated Use `SwipeableMenuSheet` instead.
|
|
124
125
|
*/
|
|
125
|
-
var MenuSheetCloseButton = withContext(Dialog.CloseButton, "closeButton");
|
|
126
|
+
var MenuSheetCloseButton = withScaleFeedback(withContext(Dialog.CloseButton, "closeButton"));
|
|
126
127
|
//#endregion
|
|
127
128
|
export { MenuSheetBackdrop, MenuSheetCloseButton, MenuSheetContent, MenuSheetDescription, MenuSheetFooter, MenuSheetGroup, MenuSheetHeader, MenuSheetItem, MenuSheetItemContent, MenuSheetItemDescription, MenuSheetItemLabel, MenuSheetList, MenuSheetPositioner, MenuSheetRoot, MenuSheetTitle, MenuSheetTrigger };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_createSlotRecipeContext = require("../../utils/createSlotRecipeContext.cjs");
|
|
4
|
+
const require_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 clsx = require("clsx");
|
|
@@ -27,8 +28,8 @@ var PageBannerContent = withContext(_seed_design_react_primitive.Primitive.div,
|
|
|
27
28
|
var PageBannerBody = withContext(_seed_design_react_primitive.Primitive.div, "body");
|
|
28
29
|
var PageBannerTitle = withContext(_seed_design_react_primitive.Primitive.span, "title");
|
|
29
30
|
var PageBannerDescription = withContext(_seed_design_react_primitive.Primitive.span, "description");
|
|
30
|
-
var PageBannerButton = withContext(_seed_design_react_primitive.Primitive.button, "button");
|
|
31
|
-
var PageBannerCloseButton = withContext(require_useDismissible.DismissibleCloseButton, "closeButton");
|
|
31
|
+
var PageBannerButton = require_withScaleFeedback.withScaleFeedback(withContext(_seed_design_react_primitive.Primitive.button, "button"));
|
|
32
|
+
var PageBannerCloseButton = require_withScaleFeedback.withScaleFeedback(withContext(require_useDismissible.DismissibleCloseButton, "closeButton"));
|
|
32
33
|
//#endregion
|
|
33
34
|
exports.PageBannerBody = PageBannerBody;
|
|
34
35
|
exports.PageBannerButton = PageBannerButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageBanner.d.ts","sourceRoot":"","sources":["../../../src/components/PageBanner/PageBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"PageBanner.d.ts","sourceRoot":"","sources":["../../../src/components/PageBanner/PageBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9E,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAKnC,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB,EAAE,oBAAoB;CAAG;AAE5F,eAAO,MAAM,cAAc,4FAiB1B,CAAC;AAuBF,MAAM,WAAW,sBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,iBAAiB,+FAG7B,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEpG,eAAO,MAAM,cAAc,4FAG1B,CAAC;AAEF,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,eAAe,8FAG3B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,qBAAqB,oGAGjC,CAAC;AAEF,MAAM,WAAW,qBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,gBAAgB,iGAE5B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,qBAAqB,sGAEjC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
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 clsx$1 from "clsx";
|
|
@@ -25,7 +26,7 @@ var PageBannerContent = withContext(Primitive.div, "content");
|
|
|
25
26
|
var PageBannerBody = withContext(Primitive.div, "body");
|
|
26
27
|
var PageBannerTitle = withContext(Primitive.span, "title");
|
|
27
28
|
var PageBannerDescription = withContext(Primitive.span, "description");
|
|
28
|
-
var PageBannerButton = withContext(Primitive.button, "button");
|
|
29
|
-
var PageBannerCloseButton = withContext(DismissibleCloseButton, "closeButton");
|
|
29
|
+
var PageBannerButton = withScaleFeedback(withContext(Primitive.button, "button"));
|
|
30
|
+
var PageBannerCloseButton = withScaleFeedback(withContext(DismissibleCloseButton, "closeButton"));
|
|
30
31
|
//#endregion
|
|
31
32
|
export { PageBannerBody, PageBannerButton, PageBannerCloseButton, PageBannerContent, PageBannerDescription, PageBannerRoot, PageBannerTitle };
|
|
@@ -9,6 +9,8 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
9
9
|
let react = require("react");
|
|
10
10
|
react = require_runtime.__toESM(react);
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
13
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
12
14
|
let _seed_design_dom_utils = require("@seed-design/dom-utils");
|
|
13
15
|
let _seed_design_react_quantity_picker = require("@seed-design/react-quantity-picker");
|
|
14
16
|
let _seed_design_css_recipes_quantity_picker = require("@seed-design/css/recipes/quantity-picker");
|
|
@@ -71,9 +73,10 @@ var QuantityPickerDecrementButton = react.forwardRef(({ children, className, ico
|
|
|
71
73
|
const { decrementIconProps, decrementLoading, isRemoveButton } = (0, _seed_design_react_quantity_picker.useQuantityPickerContext)();
|
|
72
74
|
const content = decrementLoading ? loadingIndicator : isRemoveButton ? removeIcon ?? icon : icon;
|
|
73
75
|
const contentIsIcon = content !== null && content !== void 0;
|
|
76
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
74
77
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_quantity_picker.QuantityPicker.DecrementButton, {
|
|
75
|
-
ref,
|
|
76
|
-
className: (0, clsx.default)(classNames.decrementButton, className),
|
|
78
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
79
|
+
className: (0, clsx.default)(classNames.decrementButton, scaleFeedbackClassName, className),
|
|
77
80
|
...props,
|
|
78
81
|
children: renderIcon(content ?? children, classNames.decrementIcon, decrementIconProps, contentIsIcon)
|
|
79
82
|
});
|
|
@@ -103,9 +106,10 @@ var QuantityPickerIncrementButton = react.forwardRef(({ children, className, ico
|
|
|
103
106
|
const { incrementIconProps, incrementLoading } = (0, _seed_design_react_quantity_picker.useQuantityPickerContext)();
|
|
104
107
|
const content = incrementLoading ? loadingIndicator : icon;
|
|
105
108
|
const contentIsIcon = content !== null && content !== void 0;
|
|
109
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
106
110
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_quantity_picker.QuantityPicker.IncrementButton, {
|
|
107
|
-
ref,
|
|
108
|
-
className: (0, clsx.default)(classNames.incrementButton, className),
|
|
111
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
112
|
+
className: (0, clsx.default)(classNames.incrementButton, scaleFeedbackClassName, className),
|
|
109
113
|
...props,
|
|
110
114
|
children: renderIcon(content ?? children, classNames.incrementIcon, incrementIconProps, contentIsIcon)
|
|
111
115
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantityPicker.d.ts","sourceRoot":"","sources":["../../../src/components/QuantityPicker/QuantityPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,cAAc,IAAI,uBAAuB,EAE1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"QuantityPicker.d.ts","sourceRoot":"","sources":["../../../src/components/QuantityPicker/QuantityPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,cAAc,IAAI,uBAAuB,EAE1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoE/B,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,0BAA0B,EAAE,MAAM,GAAG,QAAQ,CAAC,GACvF,uBAAuB,CAAC,SAAS,GAAG;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;CAC/C,CAAC;AAEJ,eAAO,MAAM,kBAAkB,gGAkC9B,CAAC;AAGF,UAAU,yBACR,SAAQ,cAAc,EACpB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC1E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,kCACf,SAAQ,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,EAAE,UAAU,CAAC,EACpE,yBAAyB;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,6BAA6B,8GAuBxC,CAAC;AAGH,MAAM,WAAW,+BACf,SAAQ,uBAAuB,CAAC,iBAAiB;CAAG;AAEtD,eAAO,MAAM,0BAA0B,6JAuBtC,CAAC;AAGF,MAAM,WAAW,kCACf,SAAQ,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,EAAE,UAAU,CAAC,EACpE,yBAAyB;CAAG;AAEhC,eAAO,MAAM,6BAA6B,8GAmBxC,CAAC;AAGH,MAAM,WAAW,8BAA+B,SAAQ,uBAAuB,CAAC,gBAAgB;CAAG;AAEnG,eAAO,MAAM,yBAAyB,mHAAsC,CAAC"}
|
|
@@ -6,6 +6,8 @@ import { Primitive } from "@seed-design/react-primitive";
|
|
|
6
6
|
import clsx$1 from "clsx";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import { jsx, jsxs } 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 { mergeProps } from "@seed-design/dom-utils";
|
|
10
12
|
import { QuantityPicker, useQuantityPickerContext } from "@seed-design/react-quantity-picker";
|
|
11
13
|
import { quantityPicker } from "@seed-design/css/recipes/quantity-picker";
|
|
@@ -68,9 +70,10 @@ var QuantityPickerDecrementButton = React$1.forwardRef(({ children, className, i
|
|
|
68
70
|
const { decrementIconProps, decrementLoading, isRemoveButton } = useQuantityPickerContext();
|
|
69
71
|
const content = decrementLoading ? loadingIndicator : isRemoveButton ? removeIcon ?? icon : icon;
|
|
70
72
|
const contentIsIcon = content !== null && content !== void 0;
|
|
73
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
71
74
|
return /* @__PURE__ */ jsx(QuantityPicker.DecrementButton, {
|
|
72
|
-
ref,
|
|
73
|
-
className: clsx$1(classNames.decrementButton, className),
|
|
75
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
76
|
+
className: clsx$1(classNames.decrementButton, scaleFeedbackClassName, className),
|
|
74
77
|
...props,
|
|
75
78
|
children: renderIcon(content ?? children, classNames.decrementIcon, decrementIconProps, contentIsIcon)
|
|
76
79
|
});
|
|
@@ -100,9 +103,10 @@ var QuantityPickerIncrementButton = React$1.forwardRef(({ children, className, i
|
|
|
100
103
|
const { incrementIconProps, incrementLoading } = useQuantityPickerContext();
|
|
101
104
|
const content = incrementLoading ? loadingIndicator : icon;
|
|
102
105
|
const contentIsIcon = content !== null && content !== void 0;
|
|
106
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
103
107
|
return /* @__PURE__ */ jsx(QuantityPicker.IncrementButton, {
|
|
104
|
-
ref,
|
|
105
|
-
className: clsx$1(classNames.incrementButton, className),
|
|
108
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
109
|
+
className: clsx$1(classNames.incrementButton, scaleFeedbackClassName, className),
|
|
106
110
|
...props,
|
|
107
111
|
children: renderIcon(content ?? children, classNames.incrementIcon, incrementIconProps, contentIsIcon)
|
|
108
112
|
});
|
|
@@ -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_radio_group = require("@seed-design/react-radio-group");
|
|
@@ -40,7 +41,7 @@ var RadioGroupItem = Object.assign((0, react.forwardRef)(({ className, ...props
|
|
|
40
41
|
});
|
|
41
42
|
}), { Primitive: _seed_design_react_radio_group.RadioGroup.Item });
|
|
42
43
|
var RadioGroupItemLabel = withContext(withStateProps(_seed_design_react_primitive.Primitive.span), "label");
|
|
43
|
-
var RadioGroupItemControl = withRadiomarkProvider(_seed_design_react_radio_group.RadioGroup.ItemControl, "root");
|
|
44
|
+
var RadioGroupItemControl = require_withScaleFeedback.withScaleFeedback(withRadiomarkProvider(_seed_design_react_radio_group.RadioGroup.ItemControl, "root"));
|
|
44
45
|
var RadioGroupItemIndicator = (0, react.forwardRef)(({ unchecked: uncheckedSvg, checked: checkedSvg, ...otherProps }, ref) => {
|
|
45
46
|
const { stateProps, checked } = (0, _seed_design_react_radio_group.useRadioGroupItemContext)();
|
|
46
47
|
const mergedProps = (0, _seed_design_dom_utils.mergeProps)(stateProps, { className: useRadiomarkClassNames().icon }, otherProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3F,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3F,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAqB9E,MAAM,WAAW,mBACf,SAAQ,sBAAsB,EAC5B,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,cAAc,gHAAuE,CAAC;AAInG,MAAM,WAAW,mBACf,SAAQ,iBAAiB,EACvB,qBAAqB,EACrB,mBAAmB,CAAC,SAAS;CAAG;AAEpC,eAAO,MAAM,cAAc;;CAsB1B,CAAC;AAIF,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,mBAAmB,sHAG/B,CAAC;AAIF,MAAM,WAAW,0BACf,SAAQ,qBAAqB,EAC3B,mBAAmB,CAAC,gBAAgB;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAKjC,CAAC;AAIF,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IACtF;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,wHA4BnC,CAAC;AAKF,MAAM,WAAW,8BAA+B,SAAQ,mBAAmB,CAAC,oBAAoB;CAAG;AAEnG,eAAO,MAAM,yBAAyB,uIAAsC,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 { RadioGroup, useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
@@ -38,7 +39,7 @@ var RadioGroupItem = Object.assign(forwardRef(({ className, ...props }, ref) =>
|
|
|
38
39
|
});
|
|
39
40
|
}), { Primitive: RadioGroup.Item });
|
|
40
41
|
var RadioGroupItemLabel = withContext(withStateProps(Primitive.span), "label");
|
|
41
|
-
var RadioGroupItemControl = withRadiomarkProvider(RadioGroup.ItemControl, "root");
|
|
42
|
+
var RadioGroupItemControl = withScaleFeedback(withRadiomarkProvider(RadioGroup.ItemControl, "root"));
|
|
42
43
|
var RadioGroupItemIndicator = forwardRef(({ unchecked: uncheckedSvg, checked: checkedSvg, ...otherProps }, ref) => {
|
|
43
44
|
const { stateProps, checked } = useRadioGroupItemContext();
|
|
44
45
|
const mergedProps = mergeProps(stateProps, { className: useRadiomarkClassNames().icon }, otherProps);
|
|
@@ -7,6 +7,8 @@ clsx = require_runtime.__toESM(clsx);
|
|
|
7
7
|
let react = require("react");
|
|
8
8
|
react = require_runtime.__toESM(react);
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let _radix_ui_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
11
|
+
let _seed_design_react_scale_feedback = require("@seed-design/react-scale-feedback");
|
|
10
12
|
let _seed_design_css_recipes_reaction_button = require("@seed-design/css/recipes/reaction-button");
|
|
11
13
|
//#region src/components/ReactionButton/ReactionButton.tsx
|
|
12
14
|
var ReactionButton = react.forwardRef(({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
@@ -15,11 +17,12 @@ var ReactionButton = react.forwardRef(({ size = "small", loading = false, classN
|
|
|
15
17
|
loading,
|
|
16
18
|
disabled: otherProps.disabled
|
|
17
19
|
});
|
|
20
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = (0, _seed_design_react_scale_feedback.useScaleFeedback)();
|
|
18
21
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_usePendingButton.PendingButtonProvider, {
|
|
19
22
|
value: api,
|
|
20
23
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_seed_design_react_toggle.Toggle.Root, {
|
|
21
|
-
ref,
|
|
22
|
-
className: (0, clsx.default)(recipeClassName, className),
|
|
24
|
+
ref: (0, _radix_ui_react_compose_refs.useComposedRefs)(scaleFeedbackRef, ref),
|
|
25
|
+
className: (0, clsx.default)(recipeClassName, scaleFeedbackClassName, className),
|
|
23
26
|
...api.stateProps,
|
|
24
27
|
...otherProps
|
|
25
28
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ReactionButton/ReactionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"ReactionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ReactionButton/ReactionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,mBACf,SAAQ,0BAA0B,EAChC,qBAAqB,EACrB,eAAe,CAAC,SAAS;CAAG;AAEhC,eAAO,MAAM,cAAc,+FAiB1B,CAAC"}
|
|
@@ -4,6 +4,8 @@ import { Toggle } from "@seed-design/react-toggle";
|
|
|
4
4
|
import clsx$1 from "clsx";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
|
8
|
+
import { useScaleFeedback } from "@seed-design/react-scale-feedback";
|
|
7
9
|
import { reactionButton } from "@seed-design/css/recipes/reaction-button";
|
|
8
10
|
//#region src/components/ReactionButton/ReactionButton.tsx
|
|
9
11
|
var ReactionButton = React$1.forwardRef(({ size = "small", loading = false, className, ...otherProps }, ref) => {
|
|
@@ -12,11 +14,12 @@ var ReactionButton = React$1.forwardRef(({ size = "small", loading = false, clas
|
|
|
12
14
|
loading,
|
|
13
15
|
disabled: otherProps.disabled
|
|
14
16
|
});
|
|
17
|
+
const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback();
|
|
15
18
|
return /* @__PURE__ */ jsx(PendingButtonProvider, {
|
|
16
19
|
value: api,
|
|
17
20
|
children: /* @__PURE__ */ jsx(Toggle.Root, {
|
|
18
|
-
ref,
|
|
19
|
-
className: clsx$1(recipeClassName, className),
|
|
21
|
+
ref: useComposedRefs(scaleFeedbackRef, ref),
|
|
22
|
+
className: clsx$1(recipeClassName, scaleFeedbackClassName, className),
|
|
20
23
|
...api.stateProps,
|
|
21
24
|
...otherProps
|
|
22
25
|
})
|