@surflane/ui 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/accordion.d.ts +33 -17
- package/dist/accordion.js +10 -11
- package/dist/alert-dialog.d.ts +8 -4
- package/dist/alert-dialog.js +3 -4
- package/dist/app-shell.d.ts +81 -44
- package/dist/app-shell.js +67 -29
- package/dist/autocomplete.d.ts +117 -61
- package/dist/autocomplete.js +8 -8
- package/dist/avatar.d.ts +34 -17
- package/dist/avatar.js +8 -9
- package/dist/badge.d.ts +6 -10
- package/dist/badge.js +5 -6
- package/dist/bottom-navigation.d.ts +11 -41
- package/dist/bottom-navigation.js +9 -10
- package/dist/breadcrumbs.d.ts +21 -5
- package/dist/breadcrumbs.js +12 -14
- package/dist/button.d.ts +15 -8
- package/dist/button.js +8 -9
- package/dist/card.d.ts +610 -35
- package/dist/card.js +12 -12
- package/dist/chart.d.ts +9 -32
- package/dist/chart.js +65 -26
- package/dist/checkbox-group.d.ts +4 -1
- package/dist/checkbox-group.js +3 -4
- package/dist/checkbox.d.ts +13 -4
- package/dist/checkbox.js +6 -6
- package/dist/choice-label.d.ts +3 -11
- package/dist/choice-label.js +4 -4
- package/dist/class-names.d.ts +6 -0
- package/dist/class-names.js +18 -0
- package/dist/code.d.ts +13 -10
- package/dist/code.js +8 -5
- package/dist/collapsible.d.ts +25 -12
- package/dist/collapsible.js +7 -8
- package/dist/combobox.d.ts +145 -73
- package/dist/combobox.js +27 -27
- package/dist/context-menu.d.ts +106 -54
- package/dist/context-menu.js +4 -5
- package/dist/css/accordion.css +1 -1
- package/dist/css/alert-dialog.css +2 -2
- package/dist/css/all.css +7 -5
- package/dist/css/app-shell.css +1 -1
- package/dist/css/autocomplete.css +1 -1
- package/dist/css/avatar.css +2 -2
- package/dist/css/badge.css +2 -2
- package/dist/css/bottom-navigation.css +1 -1
- package/dist/css/breadcrumbs.css +3 -3
- package/dist/css/button.css +1 -1
- package/dist/css/card.css +3 -3
- package/dist/css/chart.css +2 -2
- package/dist/css/checkbox-group.css +1 -1
- package/dist/css/checkbox.css +1 -1
- package/dist/css/choice-label.css +1 -1
- package/dist/css/code.css +2 -2
- package/dist/css/collapsible.css +1 -1
- package/dist/css/combobox.css +1 -1
- package/dist/css/context-menu.css +1 -1
- package/dist/css/date-picker.css +1 -1
- package/dist/css/dialog.css +2 -2
- package/dist/css/drawer.css +2 -2
- package/dist/css/empty-state.css +2 -2
- package/dist/css/field.css +1 -1
- package/dist/css/fieldset.css +1 -1
- package/dist/css/file-upload.css +2 -2
- package/dist/css/filter-bar.css +1 -1
- package/dist/css/form.css +1 -1
- package/dist/css/icon.css +1 -1
- package/dist/css/inline-message.css +2 -2
- package/dist/css/input.css +1 -1
- package/dist/css/layout.css +2 -2
- package/dist/css/link.css +2 -2
- package/dist/css/list.css +2 -2
- package/dist/css/markdown.css +4 -4
- package/dist/css/menu.css +1 -1
- package/dist/css/menubar.css +1 -1
- package/dist/css/meter.css +1 -1
- package/dist/css/native-select.css +1 -1
- package/dist/css/navigation-menu.css +1 -1
- package/dist/css/number-field.css +1 -1
- package/dist/css/otp-field.css +1 -1
- package/dist/css/page-header.css +3 -3
- package/dist/css/pagination.css +2 -2
- package/dist/css/popover.css +1 -1
- package/dist/css/preview-card.css +2 -2
- package/dist/css/progress.css +1 -1
- package/dist/css/radio-group.css +1 -1
- package/dist/css/rules/accordion.css +5 -5
- package/dist/css/rules/alert-dialog.css +9 -9
- package/dist/css/rules/app-shell.css +274 -82
- package/dist/css/rules/avatar.css +7 -7
- package/dist/css/rules/badge.css +6 -6
- package/dist/css/rules/bar.css +11 -11
- package/dist/css/rules/base.css +30 -30
- package/dist/css/rules/bottom-navigation.css +57 -56
- package/dist/css/rules/breadcrumbs.css +2 -2
- package/dist/css/rules/button.css +66 -65
- package/dist/css/rules/card.css +3 -3
- package/dist/css/rules/chart.css +134 -124
- package/dist/css/rules/checkbox.css +5 -5
- package/dist/css/rules/choice-label.css +19 -18
- package/dist/css/rules/choice.css +65 -60
- package/dist/css/rules/code.css +2 -2
- package/dist/css/rules/collapsible.css +2 -2
- package/dist/css/rules/combobox.css +87 -83
- package/dist/css/rules/context-menu.css +1 -1
- package/dist/css/rules/date-picker.css +150 -144
- package/dist/css/rules/dialog.css +85 -79
- package/dist/css/rules/disclosure.css +49 -47
- package/dist/css/rules/drawer.css +6 -6
- package/dist/css/rules/empty-state.css +2 -2
- package/dist/css/rules/field-control.css +51 -42
- package/dist/css/rules/field.css +26 -24
- package/dist/css/rules/fieldset.css +8 -8
- package/dist/css/rules/file-upload.css +73 -72
- package/dist/css/rules/filter-bar.css +19 -18
- package/dist/css/rules/form.css +3 -3
- package/dist/css/rules/gauge.css +22 -22
- package/dist/css/rules/icon.css +16 -11
- package/dist/css/rules/inline-message.css +3 -3
- package/dist/css/rules/input-group.css +44 -43
- package/dist/css/rules/input.css +11 -11
- package/dist/css/rules/item.css +7 -7
- package/dist/css/rules/link.css +2 -2
- package/dist/css/rules/list.css +3 -3
- package/dist/css/rules/markdown.css +27 -27
- package/dist/css/rules/menu.css +45 -42
- package/dist/css/rules/menubar.css +6 -6
- package/dist/css/rules/navigation-menu.css +69 -66
- package/dist/css/rules/number-field.css +22 -21
- package/dist/css/rules/otp-field.css +28 -27
- package/dist/css/rules/panel.css +105 -100
- package/dist/css/rules/popover.css +23 -20
- package/dist/css/rules/popup.css +15 -14
- package/dist/css/rules/preview-card.css +20 -19
- package/dist/css/rules/progress.css +3 -3
- package/dist/css/rules/radio-group.css +8 -8
- package/dist/css/rules/scroll-area.css +50 -39
- package/dist/css/rules/select.css +39 -36
- package/dist/css/rules/sizing.css +119 -116
- package/dist/css/rules/skeleton.css +11 -11
- package/dist/css/rules/slider.css +43 -43
- package/dist/css/rules/sparkline.css +21 -21
- package/dist/css/rules/spinner.css +9 -9
- package/dist/css/rules/stat.css +32 -32
- package/dist/css/rules/switch.css +28 -21
- package/dist/css/rules/syntax-highlighter.css +37 -36
- package/dist/css/rules/table.css +10 -10
- package/dist/css/rules/tabs.css +53 -52
- package/dist/css/rules/textarea.css +9 -7
- package/dist/css/rules/toast.css +94 -90
- package/dist/css/rules/toggle.css +12 -12
- package/dist/css/rules/toolbar.css +27 -27
- package/dist/css/rules/tooltip.css +14 -14
- package/dist/css/rules/tree.css +38 -38
- package/dist/css/scroll-area.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/css/separator.css +2 -2
- package/dist/css/sheet.css +2 -2
- package/dist/css/sizing.css +1 -1
- package/dist/css/skeleton.css +1 -1
- package/dist/css/slider.css +1 -1
- package/dist/css/sparkline.css +1 -1
- package/dist/css/spinner.css +1 -1
- package/dist/css/stat.css +1 -1
- package/dist/css/styles.css +17 -17
- package/dist/css/switch.css +1 -1
- package/dist/css/syntax-highlighter.css +1 -1
- package/dist/css/table.css +2 -2
- package/dist/css/tabs.css +1 -1
- package/dist/css/textarea.css +1 -1
- package/dist/css/toast.css +1 -1
- package/dist/css/toggle-group.css +1 -1
- package/dist/css/toggle.css +1 -1
- package/dist/css/toolbar.css +1 -1
- package/dist/css/tooltip.css +1 -1
- package/dist/css/tree.css +1 -1
- package/dist/css/typography.css +2 -2
- package/dist/date-picker.js +28 -8
- package/dist/dialog.d.ts +20 -8
- package/dist/dialog.js +11 -12
- package/dist/drawer.d.ts +12 -4
- package/dist/drawer.js +5 -5
- package/dist/element-part.d.ts +8 -0
- package/dist/element-part.js +21 -0
- package/dist/empty-state.d.ts +602 -24
- package/dist/empty-state.js +9 -9
- package/dist/field.d.ts +60 -36
- package/dist/field.js +6 -6
- package/dist/fieldset.d.ts +19 -11
- package/dist/fieldset.js +2 -2
- package/dist/file-upload.d.ts +8 -23
- package/dist/file-upload.js +21 -16
- package/dist/filter-bar.d.ts +30 -10
- package/dist/filter-bar.js +16 -18
- package/dist/form.js +1 -1
- package/dist/icon.d.ts +9 -2
- package/dist/icon.js +6 -6
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -3
- package/dist/inline-message.d.ts +51 -27
- package/dist/inline-message.js +10 -11
- package/dist/input.d.ts +4 -2
- package/dist/input.js +3 -4
- package/dist/layout.d.ts +24 -12
- package/dist/layout.js +27 -27
- package/dist/link.d.ts +3 -1
- package/dist/link.js +3 -4
- package/dist/list.d.ts +43 -27
- package/dist/list.js +12 -13
- package/dist/markdown.d.ts +14 -6
- package/dist/markdown.js +28 -11
- package/dist/menu.d.ts +113 -57
- package/dist/menu.js +24 -25
- package/dist/menubar.d.ts +5 -3
- package/dist/menubar.js +1 -1
- package/dist/meter.d.ts +46 -26
- package/dist/meter.js +5 -5
- package/dist/native-select.d.ts +4 -2
- package/dist/native-select.js +2 -2
- package/dist/navigation-menu.d.ts +76 -40
- package/dist/navigation-menu.js +15 -16
- package/dist/number-field.d.ts +44 -19
- package/dist/number-field.js +12 -13
- package/dist/otp-field.d.ts +26 -9
- package/dist/otp-field.js +10 -11
- package/dist/page-header.js +3 -4
- package/dist/pagination.d.ts +11 -8
- package/dist/pagination.js +4 -5
- package/dist/panel.d.ts +3 -1
- package/dist/panel.js +5 -6
- package/dist/parts.d.ts +5 -7
- package/dist/parts.js +8 -16
- package/dist/popover.d.ts +20 -12
- package/dist/popover.js +3 -3
- package/dist/preview-card.d.ts +22 -10
- package/dist/preview-card.js +7 -8
- package/dist/progress.d.ts +46 -26
- package/dist/progress.js +5 -5
- package/dist/radio-group.d.ts +16 -8
- package/dist/radio-group.js +5 -5
- package/dist/scroll-area.d.ts +4 -2
- package/dist/scroll-area.js +6 -6
- package/dist/select.d.ts +3 -1
- package/dist/select.js +5 -5
- package/dist/separator.d.ts +5 -2
- package/dist/separator.js +3 -4
- package/dist/sheet.d.ts +12 -4
- package/dist/sheet.js +5 -5
- package/dist/size.d.ts +7 -0
- package/dist/size.js +9 -0
- package/dist/sizing.d.ts +8 -3
- package/dist/sizing.js +8 -10
- package/dist/skeleton.d.ts +3 -3
- package/dist/skeleton.js +4 -6
- package/dist/slider.d.ts +55 -31
- package/dist/slider.js +7 -7
- package/dist/sparkline.d.ts +5 -20
- package/dist/sparkline.js +5 -7
- package/dist/spinner.d.ts +4 -6
- package/dist/spinner.js +7 -8
- package/dist/stat.d.ts +34 -42
- package/dist/stat.js +9 -10
- package/dist/status.js +0 -1
- package/dist/switch.d.ts +17 -8
- package/dist/switch.js +4 -5
- package/dist/syntax-engine.js +9 -1
- package/dist/syntax-highlighter.d.ts +3 -7
- package/dist/syntax-highlighter.js +4 -4
- package/dist/syntax-highlighting.js +2 -2
- package/dist/table.d.ts +111 -75
- package/dist/table.js +32 -33
- package/dist/tabs.d.ts +46 -26
- package/dist/tabs.js +5 -5
- package/dist/textarea.d.ts +4 -2
- package/dist/textarea.js +3 -4
- package/dist/toast.d.ts +76 -42
- package/dist/toast.js +28 -28
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tone-transition.d.ts +1 -1
- package/dist/tone-transition.js +9 -8
- package/dist/toolbar.d.ts +55 -31
- package/dist/toolbar.js +6 -6
- package/dist/tooltip.d.ts +4 -1
- package/dist/tooltip.js +2 -2
- package/dist/tree.d.ts +12 -1
- package/dist/tree.js +13 -9
- package/dist/typography.d.ts +3 -1
- package/dist/typography.js +6 -8
- package/package.json +6 -5
package/dist/combobox.d.ts
CHANGED
|
@@ -4,53 +4,89 @@ declare function ComboboxRoot<Value, Multiple extends boolean | undefined = fals
|
|
|
4
4
|
export declare const Combobox: {
|
|
5
5
|
Root: typeof ComboboxRoot;
|
|
6
6
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
Content:
|
|
7
|
+
Content: ({ side, align, sideOffset, collisionPadding, positionerProps, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.Popup> & Pick<React.ComponentPropsWithoutRef<typeof BaseCombobox.Positioner>, "side" | "align" | "sideOffset" | "collisionPadding"> & {
|
|
8
8
|
/** @deprecated Pass side, align, sideOffset and collisionPadding directly. */
|
|
9
9
|
positionerProps?: React.ComponentPropsWithoutRef<typeof BaseCombobox.Positioner>;
|
|
10
|
-
} &
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} & React.RefAttributes<HTMLDivElement
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} & React.RefAttributes<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
size?: import("./
|
|
47
|
-
} &
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} & React.RefAttributes<HTMLDivElement
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
10
|
+
} & {
|
|
11
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
Popup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
14
|
+
size?: import("./size.js").ComponentSize;
|
|
15
|
+
} & {
|
|
16
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
17
|
+
}) => React.JSX.Element;
|
|
18
|
+
Positioner: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
19
|
+
size?: import("./size.js").ComponentSize;
|
|
20
|
+
} & {
|
|
21
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
Trigger: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.Trigger> & {
|
|
24
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
25
|
+
}) => React.JSX.Element;
|
|
26
|
+
Clear: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.Clear> & {
|
|
27
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
|
+
ItemIndicator: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.ItemIndicator> & {
|
|
30
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
|
+
ChipRemove: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.ChipRemove> & {
|
|
33
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
34
|
+
}) => React.JSX.Element;
|
|
35
|
+
Input: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxInputProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref">, "size"> & {
|
|
36
|
+
size?: import("./size.js").ComponentSize;
|
|
37
|
+
} & {
|
|
38
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
39
|
+
}) => React.JSX.Element;
|
|
40
|
+
InputGroup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxInputGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
41
|
+
size?: import("./size.js").ComponentSize;
|
|
42
|
+
} & {
|
|
43
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
44
|
+
}) => React.JSX.Element;
|
|
45
|
+
List: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
46
|
+
size?: import("./size.js").ComponentSize;
|
|
47
|
+
} & {
|
|
48
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
49
|
+
}) => React.JSX.Element;
|
|
50
|
+
Item: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxItemProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
51
|
+
size?: import("./size.js").ComponentSize;
|
|
52
|
+
} & {
|
|
53
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
54
|
+
}) => React.JSX.Element;
|
|
55
|
+
Empty: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
56
|
+
size?: import("./size.js").ComponentSize;
|
|
57
|
+
} & {
|
|
58
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
59
|
+
}) => React.JSX.Element;
|
|
60
|
+
Status: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxStatusProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
61
|
+
size?: import("./size.js").ComponentSize;
|
|
62
|
+
} & {
|
|
63
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
64
|
+
}) => React.JSX.Element;
|
|
65
|
+
Group: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
66
|
+
size?: import("./size.js").ComponentSize;
|
|
67
|
+
} & {
|
|
68
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
69
|
+
}) => React.JSX.Element;
|
|
70
|
+
GroupLabel: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
71
|
+
size?: import("./size.js").ComponentSize;
|
|
72
|
+
} & {
|
|
73
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
74
|
+
}) => React.JSX.Element;
|
|
75
|
+
Separator: ({ ref, ...props }: Omit<Omit<import("@base-ui/react/combobox").ComboboxSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
76
|
+
size?: import("./size.js").ComponentSize;
|
|
77
|
+
} & {
|
|
78
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
79
|
+
}) => React.JSX.Element;
|
|
80
|
+
Chips: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
81
|
+
size?: import("./size.js").ComponentSize;
|
|
82
|
+
} & {
|
|
83
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
84
|
+
}) => React.JSX.Element;
|
|
85
|
+
Chip: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
86
|
+
size?: import("./size.js").ComponentSize;
|
|
87
|
+
} & {
|
|
88
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
89
|
+
}) => React.JSX.Element;
|
|
54
90
|
Label: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
55
91
|
Value: typeof BaseCombobox.Value;
|
|
56
92
|
Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -63,33 +99,69 @@ export declare const Combobox: {
|
|
|
63
99
|
createItems: typeof BaseCombobox.createItems;
|
|
64
100
|
};
|
|
65
101
|
export { ComboboxRoot };
|
|
66
|
-
export declare const ComboboxArrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxBackdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxChip:
|
|
67
|
-
size?: import("./
|
|
68
|
-
} &
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
size?: import("./
|
|
74
|
-
} &
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
size?: import("./
|
|
80
|
-
} &
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
size?: import("./
|
|
84
|
-
} &
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
size?: import("./
|
|
88
|
-
} &
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
size?: import("./
|
|
92
|
-
} &
|
|
102
|
+
export declare const ComboboxArrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxBackdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxChip: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
103
|
+
size?: import("./size.js").ComponentSize;
|
|
104
|
+
} & {
|
|
105
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
106
|
+
}) => React.JSX.Element, ComboboxChipRemove: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.ChipRemove> & {
|
|
107
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
108
|
+
}) => React.JSX.Element, ComboboxChips: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
109
|
+
size?: import("./size.js").ComponentSize;
|
|
110
|
+
} & {
|
|
111
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
112
|
+
}) => React.JSX.Element, ComboboxClear: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.Clear> & {
|
|
113
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
114
|
+
}) => React.JSX.Element, ComboboxCollection: typeof BaseCombobox.Collection, ComboboxEmpty: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
115
|
+
size?: import("./size.js").ComponentSize;
|
|
116
|
+
} & {
|
|
117
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
118
|
+
}) => React.JSX.Element, ComboboxGroup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
119
|
+
size?: import("./size.js").ComponentSize;
|
|
120
|
+
} & {
|
|
121
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
122
|
+
}) => React.JSX.Element, ComboboxGroupLabel: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
123
|
+
size?: import("./size.js").ComponentSize;
|
|
124
|
+
} & {
|
|
125
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
126
|
+
}) => React.JSX.Element, ComboboxIcon: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxIconProps, "ref"> & React.RefAttributes<HTMLSpanElement>>, ComboboxInput: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxInputProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref">, "size"> & {
|
|
127
|
+
size?: import("./size.js").ComponentSize;
|
|
128
|
+
} & {
|
|
129
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
130
|
+
}) => React.JSX.Element, ComboboxInputGroup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxInputGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
131
|
+
size?: import("./size.js").ComponentSize;
|
|
132
|
+
} & {
|
|
133
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
134
|
+
}) => React.JSX.Element, ComboboxItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxItemProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
135
|
+
size?: import("./size.js").ComponentSize;
|
|
136
|
+
} & {
|
|
137
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
138
|
+
}) => React.JSX.Element, ComboboxItemIndicator: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.ItemIndicator> & {
|
|
139
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
140
|
+
}) => React.JSX.Element, ComboboxLabel: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxList: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
141
|
+
size?: import("./size.js").ComponentSize;
|
|
142
|
+
} & {
|
|
143
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
144
|
+
}) => React.JSX.Element, ComboboxPopup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
145
|
+
size?: import("./size.js").ComponentSize;
|
|
146
|
+
} & {
|
|
147
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
148
|
+
}) => React.JSX.Element, ComboboxPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxPositioner: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
149
|
+
size?: import("./size.js").ComponentSize;
|
|
150
|
+
} & {
|
|
151
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
152
|
+
}) => React.JSX.Element, ComboboxRow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/combobox").ComboboxRowProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ComboboxSeparator: ({ ref, ...props }: Omit<Omit<import("@base-ui/react/combobox").ComboboxSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
153
|
+
size?: import("./size.js").ComponentSize;
|
|
154
|
+
} & {
|
|
155
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
156
|
+
}) => React.JSX.Element, ComboboxStatus: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/combobox").ComboboxStatusProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
157
|
+
size?: import("./size.js").ComponentSize;
|
|
158
|
+
} & {
|
|
159
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
160
|
+
}) => React.JSX.Element, ComboboxTrigger: ({ children, className, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.Trigger> & {
|
|
161
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
162
|
+
}) => React.JSX.Element, ComboboxValue: typeof BaseCombobox.Value, ComboboxContent: ({ side, align, sideOffset, collisionPadding, positionerProps, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseCombobox.Popup> & Pick<React.ComponentPropsWithoutRef<typeof BaseCombobox.Positioner>, "side" | "align" | "sideOffset" | "collisionPadding"> & {
|
|
93
163
|
/** @deprecated Pass side, align, sideOffset and collisionPadding directly. */
|
|
94
164
|
positionerProps?: React.ComponentPropsWithoutRef<typeof BaseCombobox.Positioner>;
|
|
95
|
-
} &
|
|
165
|
+
} & {
|
|
166
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
167
|
+
}) => React.JSX.Element;
|
package/dist/combobox.js
CHANGED
|
@@ -12,23 +12,23 @@ function ComboboxRoot({ children, form, ...props }) {
|
|
|
12
12
|
const [, , revision] = useResetValue(true, true, anchor, form);
|
|
13
13
|
return (_jsxs(BaseCombobox.Root, { ...props, form: form, children: [_jsx("span", { hidden: true, ref: anchor }), children] }, revision));
|
|
14
14
|
}
|
|
15
|
-
const ComboPopup = /* @__PURE__ */ part(BaseCombobox.Popup, '
|
|
16
|
-
const ComboPositioner = /* @__PURE__ */ part(BaseCombobox.Positioner, '
|
|
17
|
-
const ComboContent =
|
|
15
|
+
const ComboPopup = /* @__PURE__ */ part(BaseCombobox.Popup, 'surf-combobox-popup', { portal: true });
|
|
16
|
+
const ComboPositioner = /* @__PURE__ */ part(BaseCombobox.Positioner, 'surf-positioner', { portal: true });
|
|
17
|
+
const ComboContent = function ComboContent({ side, align, sideOffset, collisionPadding, positionerProps, ref, ...props }) {
|
|
18
18
|
return (_jsx(OwnPortal, { portal: BaseCombobox.Portal, children: _jsx(ComboPositioner, { sideOffset: 6, ...positionerProps, ...defined({ side, align, sideOffset, collisionPadding }), children: _jsx(ComboPopup, { ...props, ref: ref }) }) }));
|
|
19
|
-
}
|
|
20
|
-
const ComboTrigger =
|
|
21
|
-
return (_jsx(BaseCombobox.Trigger, { "aria-label": 'Show options', ...props, ref: ref, className: skin('
|
|
22
|
-
}
|
|
23
|
-
const ComboClear =
|
|
24
|
-
return (_jsx(BaseCombobox.Clear, { "aria-label": 'Clear selection', ...props, ref: ref, className: skin('
|
|
25
|
-
}
|
|
26
|
-
const ComboIndicator =
|
|
27
|
-
return (_jsx(BaseCombobox.ItemIndicator, { keepMounted: true, ...props, ref: ref, className: skin('
|
|
28
|
-
}
|
|
29
|
-
const ComboRemove =
|
|
30
|
-
return (_jsx(BaseCombobox.ChipRemove, { ...props, ref: ref, className: skin('
|
|
31
|
-
}
|
|
19
|
+
};
|
|
20
|
+
const ComboTrigger = function ComboTrigger({ children, className, ref, ...props }) {
|
|
21
|
+
return (_jsx(BaseCombobox.Trigger, { "aria-label": 'Show options', ...props, ref: ref, className: skin('surf-combobox-action', className), children: children ?? _jsx(Icon, { name: 'chevron-down' }) }));
|
|
22
|
+
};
|
|
23
|
+
const ComboClear = function ComboClear({ children, className, ref, ...props }) {
|
|
24
|
+
return (_jsx(BaseCombobox.Clear, { "aria-label": 'Clear selection', ...props, ref: ref, className: skin('surf-combobox-action', className), children: children ?? _jsx(Icon, { name: 'close' }) }));
|
|
25
|
+
};
|
|
26
|
+
const ComboIndicator = function ComboIndicator({ children, className, ref, ...props }) {
|
|
27
|
+
return (_jsx(BaseCombobox.ItemIndicator, { keepMounted: true, ...props, ref: ref, className: skin('surf-combobox-indicator', className), children: children ?? _jsx(Icon, { name: 'check' }) }));
|
|
28
|
+
};
|
|
29
|
+
const ComboRemove = function ComboRemove({ children, className, ref, ...props }) {
|
|
30
|
+
return (_jsx(BaseCombobox.ChipRemove, { ...props, ref: ref, className: skin('surf-combobox-chip-remove', className), children: children ?? _jsx(Icon, { name: 'close' }) }));
|
|
31
|
+
};
|
|
32
32
|
export const Combobox = {
|
|
33
33
|
...BaseCombobox,
|
|
34
34
|
Root: ComboboxRoot,
|
|
@@ -40,17 +40,17 @@ export const Combobox = {
|
|
|
40
40
|
Clear: ComboClear,
|
|
41
41
|
ItemIndicator: ComboIndicator,
|
|
42
42
|
ChipRemove: ComboRemove,
|
|
43
|
-
Input: /* @__PURE__ */ part(BaseCombobox.Input, '
|
|
44
|
-
InputGroup: /* @__PURE__ */ part(BaseCombobox.InputGroup, '
|
|
45
|
-
List: /* @__PURE__ */ part(BaseCombobox.List, '
|
|
46
|
-
Item: /* @__PURE__ */ part(BaseCombobox.Item, '
|
|
47
|
-
Empty: /* @__PURE__ */ part(BaseCombobox.Empty, '
|
|
48
|
-
Status: /* @__PURE__ */ part(BaseCombobox.Status, '
|
|
49
|
-
Group: /* @__PURE__ */ part(BaseCombobox.Group, '
|
|
50
|
-
GroupLabel: /* @__PURE__ */ part(BaseCombobox.GroupLabel, '
|
|
51
|
-
Separator: /* @__PURE__ */ part(BaseCombobox.Separator, '
|
|
52
|
-
Chips: /* @__PURE__ */ part(BaseCombobox.Chips, '
|
|
53
|
-
Chip: /* @__PURE__ */ part(BaseCombobox.Chip, '
|
|
43
|
+
Input: /* @__PURE__ */ part(BaseCombobox.Input, 'surf-input surf-combobox-input'),
|
|
44
|
+
InputGroup: /* @__PURE__ */ part(BaseCombobox.InputGroup, 'surf-combobox-group'),
|
|
45
|
+
List: /* @__PURE__ */ part(BaseCombobox.List, 'surf-combobox-list'),
|
|
46
|
+
Item: /* @__PURE__ */ part(BaseCombobox.Item, 'surf-combobox-item'),
|
|
47
|
+
Empty: /* @__PURE__ */ part(BaseCombobox.Empty, 'surf-combobox-empty'),
|
|
48
|
+
Status: /* @__PURE__ */ part(BaseCombobox.Status, 'surf-combobox-status'),
|
|
49
|
+
Group: /* @__PURE__ */ part(BaseCombobox.Group, 'surf-combobox-section'),
|
|
50
|
+
GroupLabel: /* @__PURE__ */ part(BaseCombobox.GroupLabel, 'surf-combobox-section-label'),
|
|
51
|
+
Separator: /* @__PURE__ */ part(BaseCombobox.Separator, 'surf-combobox-separator'),
|
|
52
|
+
Chips: /* @__PURE__ */ part(BaseCombobox.Chips, 'surf-combobox-chips'),
|
|
53
|
+
Chip: /* @__PURE__ */ part(BaseCombobox.Chip, 'surf-combobox-chip'),
|
|
54
54
|
};
|
|
55
55
|
// Flat names for React Server Components, which cannot dot into client exports.
|
|
56
56
|
export { ComboboxRoot };
|
package/dist/context-menu.d.ts
CHANGED
|
@@ -3,43 +3,69 @@ import { ContextMenu as BaseContextMenu } from '@base-ui/react/context-menu';
|
|
|
3
3
|
import { type Placement } from './parts.js';
|
|
4
4
|
/** Same menu anatomy and styling, with the context-specific cursor positioner. */
|
|
5
5
|
export declare const ContextMenu: {
|
|
6
|
-
Trigger:
|
|
7
|
-
size?: import("./
|
|
8
|
-
} &
|
|
6
|
+
Trigger: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuTriggerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
7
|
+
size?: import("./size.js").ComponentSize;
|
|
8
|
+
} & {
|
|
9
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
10
|
+
}) => React.JSX.Element;
|
|
9
11
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
Positioner:
|
|
11
|
-
size?: import("./
|
|
12
|
-
} &
|
|
13
|
-
|
|
12
|
+
Positioner: ({ ref, ...props }: Omit<Omit<import("@base-ui/react/context-menu").ContextMenuPositionerProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
13
|
+
size?: import("./size.js").ComponentSize;
|
|
14
|
+
} & {
|
|
15
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
Content: ({ side, align, sideOffset, collisionPadding, positionerProps, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.Popup> & Placement<typeof BaseContextMenu.Positioner> & {
|
|
14
18
|
/** @deprecated Pass side, align, sideOffset and collisionPadding directly. */
|
|
15
19
|
positionerProps?: React.ComponentPropsWithoutRef<typeof BaseContextMenu.Positioner>;
|
|
16
|
-
} &
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} & React.RefAttributes<HTMLDivElement
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
size?: import("./
|
|
36
|
-
} &
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
20
|
+
} & {
|
|
21
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
Popup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
24
|
+
size?: import("./size.js").ComponentSize;
|
|
25
|
+
} & {
|
|
26
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
27
|
+
}) => React.JSX.Element;
|
|
28
|
+
Item: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "size"> & {
|
|
29
|
+
size?: import("./size.js").ComponentSize;
|
|
30
|
+
} & {
|
|
31
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
32
|
+
}) => React.JSX.Element;
|
|
33
|
+
LinkItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>, "ref">, "size"> & {
|
|
34
|
+
size?: import("./size.js").ComponentSize;
|
|
35
|
+
} & {
|
|
36
|
+
ref?: React.Ref<HTMLAnchorElement> | undefined;
|
|
37
|
+
}) => React.JSX.Element;
|
|
38
|
+
CheckboxItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "size"> & {
|
|
39
|
+
size?: import("./size.js").ComponentSize;
|
|
40
|
+
} & {
|
|
41
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
42
|
+
}) => React.JSX.Element;
|
|
43
|
+
CheckboxItemIndicator: ({ className, children, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.CheckboxItemIndicator> & {
|
|
44
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
45
|
+
}) => React.JSX.Element;
|
|
46
|
+
RadioItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "size"> & {
|
|
47
|
+
size?: import("./size.js").ComponentSize;
|
|
48
|
+
} & {
|
|
49
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
50
|
+
}) => React.JSX.Element;
|
|
51
|
+
RadioItemIndicator: ({ className, children, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.RadioItemIndicator> & {
|
|
52
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
53
|
+
}) => React.JSX.Element;
|
|
54
|
+
GroupLabel: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
55
|
+
size?: import("./size.js").ComponentSize;
|
|
56
|
+
} & {
|
|
57
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
58
|
+
}) => React.JSX.Element;
|
|
59
|
+
Separator: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
60
|
+
size?: import("./size.js").ComponentSize;
|
|
61
|
+
} & {
|
|
62
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
63
|
+
}) => React.JSX.Element;
|
|
64
|
+
SubmenuTrigger: ({ className, children, indicator, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.SubmenuTrigger> & {
|
|
41
65
|
indicator?: React.ReactNode;
|
|
42
|
-
} &
|
|
66
|
+
} & {
|
|
67
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
68
|
+
}) => React.JSX.Element;
|
|
43
69
|
Root: typeof BaseContextMenu.Root;
|
|
44
70
|
Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
71
|
Arrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -47,27 +73,53 @@ export declare const ContextMenu: {
|
|
|
47
73
|
RadioGroup: React.NamedExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
48
74
|
SubmenuRoot: typeof BaseContextMenu.SubmenuRoot;
|
|
49
75
|
};
|
|
50
|
-
export declare const ContextMenuArrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuBackdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuCheckboxItem:
|
|
51
|
-
size?: import("./
|
|
52
|
-
} &
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
} & React.RefAttributes<HTMLDivElement>>,
|
|
57
|
-
size?: import("./
|
|
58
|
-
} &
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
size?: import("./
|
|
62
|
-
} &
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
size?: import("./
|
|
66
|
-
} &
|
|
76
|
+
export declare const ContextMenuArrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuBackdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuCheckboxItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "size"> & {
|
|
77
|
+
size?: import("./size.js").ComponentSize;
|
|
78
|
+
} & {
|
|
79
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
80
|
+
}) => React.JSX.Element, ContextMenuCheckboxItemIndicator: ({ className, children, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.CheckboxItemIndicator> & {
|
|
81
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
82
|
+
}) => React.JSX.Element, ContextMenuGroup: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuGroupLabel: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
83
|
+
size?: import("./size.js").ComponentSize;
|
|
84
|
+
} & {
|
|
85
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
86
|
+
}) => React.JSX.Element, ContextMenuItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "size"> & {
|
|
87
|
+
size?: import("./size.js").ComponentSize;
|
|
88
|
+
} & {
|
|
89
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
90
|
+
}) => React.JSX.Element, ContextMenuLinkItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>, "ref">, "size"> & {
|
|
91
|
+
size?: import("./size.js").ComponentSize;
|
|
92
|
+
} & {
|
|
93
|
+
ref?: React.Ref<HTMLAnchorElement> | undefined;
|
|
94
|
+
}) => React.JSX.Element, ContextMenuPopup: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
95
|
+
size?: import("./size.js").ComponentSize;
|
|
96
|
+
} & {
|
|
97
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
98
|
+
}) => React.JSX.Element, ContextMenuPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuPositioner: ({ ref, ...props }: Omit<Omit<import("@base-ui/react/context-menu").ContextMenuPositionerProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
99
|
+
size?: import("./size.js").ComponentSize;
|
|
100
|
+
} & {
|
|
101
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
102
|
+
}) => React.JSX.Element, ContextMenuRadioGroup: React.NamedExoticComponent<Omit<import("@base-ui/react/context-menu").ContextMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>, ContextMenuRadioItem: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref">, "size"> & {
|
|
103
|
+
size?: import("./size.js").ComponentSize;
|
|
104
|
+
} & {
|
|
105
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
106
|
+
}) => React.JSX.Element, ContextMenuRadioItemIndicator: ({ className, children, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.RadioItemIndicator> & {
|
|
107
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
108
|
+
}) => React.JSX.Element, ContextMenuRoot: typeof BaseContextMenu.Root, ContextMenuSeparator: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
109
|
+
size?: import("./size.js").ComponentSize;
|
|
110
|
+
} & {
|
|
111
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
112
|
+
}) => React.JSX.Element, ContextMenuSubmenuRoot: typeof BaseContextMenu.SubmenuRoot, ContextMenuSubmenuTrigger: ({ className, children, indicator, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.SubmenuTrigger> & {
|
|
67
113
|
indicator?: React.ReactNode;
|
|
68
|
-
} &
|
|
69
|
-
|
|
70
|
-
}
|
|
114
|
+
} & {
|
|
115
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
116
|
+
}) => React.JSX.Element, ContextMenuTrigger: ({ ref, ...props }: Omit<Omit<Omit<import("@base-ui/react/context-menu").ContextMenuTriggerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & {
|
|
117
|
+
size?: import("./size.js").ComponentSize;
|
|
118
|
+
} & {
|
|
119
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
120
|
+
}) => React.JSX.Element, ContextMenuContent: ({ side, align, sideOffset, collisionPadding, positionerProps, ref, ...props }: React.ComponentPropsWithoutRef<typeof BaseContextMenu.Popup> & Placement<typeof BaseContextMenu.Positioner> & {
|
|
71
121
|
/** @deprecated Pass side, align, sideOffset and collisionPadding directly. */
|
|
72
122
|
positionerProps?: React.ComponentPropsWithoutRef<typeof BaseContextMenu.Positioner>;
|
|
73
|
-
} &
|
|
123
|
+
} & {
|
|
124
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
125
|
+
}) => React.JSX.Element;
|
package/dist/context-menu.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { ContextMenu as BaseContextMenu } from '@base-ui/react/context-menu';
|
|
5
4
|
import { Menu } from './menu.js';
|
|
6
5
|
import { OwnPortal, defined, part, scopedPortal, } from './parts.js';
|
|
7
|
-
const ContextPositioner = /* @__PURE__ */ part(BaseContextMenu.Positioner, '
|
|
8
|
-
const ContextContent =
|
|
6
|
+
const ContextPositioner = /* @__PURE__ */ part(BaseContextMenu.Positioner, 'surf-positioner', { portal: true });
|
|
7
|
+
const ContextContent = function ContextContent({ side, align, sideOffset, collisionPadding, positionerProps, ref, ...props }) {
|
|
9
8
|
return (_jsx(OwnPortal, { portal: BaseContextMenu.Portal, children: _jsx(ContextPositioner, { ...positionerProps, ...defined({ side, align, sideOffset, collisionPadding }), children: _jsx(Menu.Popup, { ...props, ref: ref }) }) }));
|
|
10
|
-
}
|
|
9
|
+
};
|
|
11
10
|
/** Same menu anatomy and styling, with the context-specific cursor positioner. */
|
|
12
11
|
export const ContextMenu = {
|
|
13
12
|
...BaseContextMenu,
|
|
14
|
-
Trigger: /* @__PURE__ */ part(BaseContextMenu.Trigger, '
|
|
13
|
+
Trigger: /* @__PURE__ */ part(BaseContextMenu.Trigger, 'surf-context-trigger'),
|
|
15
14
|
Portal: /* @__PURE__ */ scopedPortal(BaseContextMenu.Portal),
|
|
16
15
|
Positioner: ContextPositioner,
|
|
17
16
|
Content: ContextContent,
|
package/dist/css/accordion.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
|
|
3
3
|
surflane.sizes;
|
|
4
4
|
@import '@surflane/design-tokens/tokens.css';
|
|
5
|
-
@import '@surflane/
|
|
5
|
+
@import '@surflane/css/presentation/base.css';
|
|
6
6
|
@import './rules/base.css';
|
|
7
7
|
@import './rules/sizing.css';
|
|
8
8
|
@import './rules/icon.css';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
@layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
|
|
3
3
|
surflane.sizes;
|
|
4
4
|
@import '@surflane/design-tokens/tokens.css';
|
|
5
|
-
@import '@surflane/
|
|
5
|
+
@import '@surflane/css/presentation/base.css';
|
|
6
6
|
@import './rules/base.css';
|
|
7
7
|
@import './rules/sizing.css';
|
|
8
8
|
@import './rules/icon.css';
|
|
9
|
-
@import '@surflane/
|
|
9
|
+
@import '@surflane/css/controls.css';
|
|
10
10
|
@import './rules/dialog.css';
|
|
11
11
|
@import './rules/alert-dialog.css';
|