@invana/ui 0.0.11 → 0.0.13
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/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -804,6 +804,14 @@ interface RichSelectProps {
|
|
|
804
804
|
renderValue?: (selected: RichSelectOption[]) => React$1.ReactNode;
|
|
805
805
|
/** Menu alignment relative to the trigger. Default `'start'`. */
|
|
806
806
|
align?: "start" | "center" | "end";
|
|
807
|
+
/**
|
|
808
|
+
* Side the menu opens toward, relative to the trigger. Default `'bottom'`.
|
|
809
|
+
* Use `'top'` when the trigger sits in a footer so options open upward.
|
|
810
|
+
* Radix still flips on collision if the chosen side lacks space.
|
|
811
|
+
*/
|
|
812
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
813
|
+
/** Gap in px between the trigger and the menu. Default `4`. */
|
|
814
|
+
sideOffset?: number;
|
|
807
815
|
/** Trigger tooltip content; omit to disable the tooltip. */
|
|
808
816
|
tooltip?: React$1.ReactNode;
|
|
809
817
|
/** Side the trigger tooltip is placed on. Default `'top'`. */
|
|
@@ -822,7 +830,7 @@ interface RichSelectProps {
|
|
|
822
830
|
* the trigger are fully customizable via `renderOption` / `renderValue`.
|
|
823
831
|
* Supports single (radio) and multi (checkbox) selection via `multiple`.
|
|
824
832
|
*/
|
|
825
|
-
declare function RichSelect({ options, value, onChange, multiple, label, placeholder, renderOption, renderValue, align, tooltip, tooltipSide, disabled, triggerClassName, contentClassName, className, }: RichSelectProps): react_jsx_runtime.JSX.Element;
|
|
833
|
+
declare function RichSelect({ options, value, onChange, multiple, label, placeholder, renderOption, renderValue, align, side, sideOffset, tooltip, tooltipSide, disabled, triggerClassName, contentClassName, className, }: RichSelectProps): react_jsx_runtime.JSX.Element;
|
|
826
834
|
|
|
827
835
|
interface TabConfig {
|
|
828
836
|
/** Unique identifier for the tab */
|
package/dist/index.d.ts
CHANGED
|
@@ -804,6 +804,14 @@ interface RichSelectProps {
|
|
|
804
804
|
renderValue?: (selected: RichSelectOption[]) => React$1.ReactNode;
|
|
805
805
|
/** Menu alignment relative to the trigger. Default `'start'`. */
|
|
806
806
|
align?: "start" | "center" | "end";
|
|
807
|
+
/**
|
|
808
|
+
* Side the menu opens toward, relative to the trigger. Default `'bottom'`.
|
|
809
|
+
* Use `'top'` when the trigger sits in a footer so options open upward.
|
|
810
|
+
* Radix still flips on collision if the chosen side lacks space.
|
|
811
|
+
*/
|
|
812
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
813
|
+
/** Gap in px between the trigger and the menu. Default `4`. */
|
|
814
|
+
sideOffset?: number;
|
|
807
815
|
/** Trigger tooltip content; omit to disable the tooltip. */
|
|
808
816
|
tooltip?: React$1.ReactNode;
|
|
809
817
|
/** Side the trigger tooltip is placed on. Default `'top'`. */
|
|
@@ -822,7 +830,7 @@ interface RichSelectProps {
|
|
|
822
830
|
* the trigger are fully customizable via `renderOption` / `renderValue`.
|
|
823
831
|
* Supports single (radio) and multi (checkbox) selection via `multiple`.
|
|
824
832
|
*/
|
|
825
|
-
declare function RichSelect({ options, value, onChange, multiple, label, placeholder, renderOption, renderValue, align, tooltip, tooltipSide, disabled, triggerClassName, contentClassName, className, }: RichSelectProps): react_jsx_runtime.JSX.Element;
|
|
833
|
+
declare function RichSelect({ options, value, onChange, multiple, label, placeholder, renderOption, renderValue, align, side, sideOffset, tooltip, tooltipSide, disabled, triggerClassName, contentClassName, className, }: RichSelectProps): react_jsx_runtime.JSX.Element;
|
|
826
834
|
|
|
827
835
|
interface TabConfig {
|
|
828
836
|
/** Unique identifier for the tab */
|
package/dist/index.js
CHANGED
|
@@ -2924,6 +2924,8 @@ function RichSelect({
|
|
|
2924
2924
|
renderOption,
|
|
2925
2925
|
renderValue,
|
|
2926
2926
|
align = "start",
|
|
2927
|
+
side = "bottom",
|
|
2928
|
+
sideOffset = 4,
|
|
2927
2929
|
tooltip,
|
|
2928
2930
|
tooltipSide = "top",
|
|
2929
2931
|
disabled,
|
|
@@ -2978,6 +2980,8 @@ function RichSelect({
|
|
|
2978
2980
|
DropdownMenuContent,
|
|
2979
2981
|
{
|
|
2980
2982
|
align,
|
|
2983
|
+
side,
|
|
2984
|
+
sideOffset,
|
|
2981
2985
|
className: cn("min-w-[14rem] bg-popover", contentClassName),
|
|
2982
2986
|
children: [
|
|
2983
2987
|
label && /* @__PURE__ */ jsxs(Fragment, { children: [
|