@qyu/reactcmp-dropdown 1.0.1 → 1.1.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.
@@ -404,7 +404,7 @@ const CmpListFix = r.memo(r.forwardRef((props, ref) => {
404
404
  }
405
405
  return null;
406
406
  }, [nprop_lazy, visible, ctxstate.open, props.children]);
407
- return jsx("div", { ref: mref, className: cl("__qyuddn", props.className, nprop_style.listfix, ctxstate.open && nprop_style.listfix_open, ((nprop_align === "end" && !revalign) || (nprop_align === "start" && revalign)) && nprop_style.listfix_align_end, ((nprop_align === "start" && !revalign) || (nprop_align === "end" && revalign)) && nprop_style.listfix_align_start, nprop_align === "center" && nprop_style.listfix_align_center, ((nprop_justify === "end") !== revjustify) && nprop_style.listfix_justify_end, ((nprop_justify === "start") !== revjustify) && nprop_style.listfix_justify_start, nprop_direction === "hor" && nprop_style.listfix_horizontal, nprop_direction === "ver" && nprop_style.listfix_vertical), style: {
407
+ return jsx("div", { ref: mref, tabIndex: props.tabIndex, className: cl("__qyuddn", props.className, nprop_style.listfix, ctxstate.open && nprop_style.listfix_open, ((nprop_align === "end" && !revalign) || (nprop_align === "start" && revalign)) && nprop_style.listfix_align_end, ((nprop_align === "start" && !revalign) || (nprop_align === "end" && revalign)) && nprop_style.listfix_align_start, nprop_align === "center" && nprop_style.listfix_align_center, ((nprop_justify === "end") !== revjustify) && nprop_style.listfix_justify_end, ((nprop_justify === "start") !== revjustify) && nprop_style.listfix_justify_start, nprop_direction === "hor" && nprop_style.listfix_horizontal, nprop_direction === "ver" && nprop_style.listfix_vertical), style: {
408
408
  ["--gap"]: `${nprop_gap}px`,
409
409
  top: top !== null ? `${top}px` : null,
410
410
  left: left !== null ? `${left}px` : null,
@@ -610,7 +610,7 @@ const CmpListAbs = r.memo(r.forwardRef((props, ref) => {
610
610
  }
611
611
  return null;
612
612
  }, [nprop_lazy, visible, ctxstate.open, props.children]);
613
- return jsx("div", { ref: mref, className: cl("__qyuddn", props.className, nprop_style.listabs, ctxstate.open && nprop_style.listabs_open, ((nprop_align === "end" && !revalign) || (nprop_align === "start" && revalign)) && nprop_style.listabs_align_end, ((nprop_align === "start" && !revalign) || (nprop_align === "end" && revalign)) && nprop_style.listabs_align_start, nprop_align === "center" && nprop_style.listabs_align_center, ((nprop_justify === "end") !== revjustify) && nprop_style.listabs_justify_end, ((nprop_justify === "start") !== revjustify) && nprop_style.listabs_justify_start, nprop_direction === "hor" && nprop_style.listabs_horizontal, nprop_direction === "ver" && nprop_style.listabs_vertical), style: {
613
+ return jsx("div", { ref: mref, tabIndex: props.tabIndex, className: cl("__qyuddn", props.className, nprop_style.listabs, ctxstate.open && nprop_style.listabs_open, ((nprop_align === "end" && !revalign) || (nprop_align === "start" && revalign)) && nprop_style.listabs_align_end, ((nprop_align === "start" && !revalign) || (nprop_align === "end" && revalign)) && nprop_style.listabs_align_start, nprop_align === "center" && nprop_style.listabs_align_center, ((nprop_justify === "end") !== revjustify) && nprop_style.listabs_justify_end, ((nprop_justify === "start") !== revjustify) && nprop_style.listabs_justify_start, nprop_direction === "hor" && nprop_style.listabs_horizontal, nprop_direction === "ver" && nprop_style.listabs_vertical), style: {
614
614
  ["--gap"]: `${nprop_gap}px`,
615
615
  maxWidth: maxwidth === null ? undefined : `${maxwidth}px`,
616
616
  maxHeight: maxheight === null ? undefined : `${maxheight}px`,
@@ -18,6 +18,7 @@ export type CmpListAbs_Props = Readonly<{
18
18
  gap?: number;
19
19
  lazy?: boolean;
20
20
  align?: AlignRaw;
21
+ tabIndex?: number;
21
22
  justify?: JustifyRaw;
22
23
  direction?: DirectionRaw;
23
24
  className?: string;
@@ -28,6 +29,7 @@ export declare const CmpListAbs: r.NamedExoticComponent<Readonly<{
28
29
  gap?: number;
29
30
  lazy?: boolean;
30
31
  align?: AlignRaw;
32
+ tabIndex?: number;
31
33
  justify?: JustifyRaw;
32
34
  direction?: DirectionRaw;
33
35
  className?: string;
@@ -18,6 +18,7 @@ export type CmpListFix_Props = Readonly<{
18
18
  gap?: number;
19
19
  lazy?: boolean;
20
20
  align?: AlignRaw;
21
+ tabIndex?: number;
21
22
  justify?: JustifyRaw;
22
23
  direction?: DirectionRaw;
23
24
  className?: string;
@@ -28,6 +29,7 @@ export declare const CmpListFix: r.NamedExoticComponent<Readonly<{
28
29
  gap?: number;
29
30
  lazy?: boolean;
30
31
  align?: AlignRaw;
32
+ tabIndex?: number;
31
33
  justify?: JustifyRaw;
32
34
  direction?: DirectionRaw;
33
35
  className?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qyu/reactcmp-dropdown",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "main": "./build/bundle/entry/index.js",
6
6
  "description": "React Components for Dropdown Positioning",
7
7
  "keywords": [