@mobileaction/action-kit 1.48.0 → 1.48.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.
@@ -1,4 +1,4 @@
1
- import { g as tr } from "./index-DUot5siP.js";
1
+ import { g as tr } from "./index-BxRqc15d.js";
2
2
  function ir(ne, Ze) {
3
3
  for (var S = 0; S < Ze.length; S++) {
4
4
  const Y = Ze[S];
@@ -1,4 +1,4 @@
1
- import { g as st } from "./index-DUot5siP.js";
1
+ import { g as st } from "./index-BxRqc15d.js";
2
2
  function at(te, pe) {
3
3
  for (var K = 0; K < pe.length; K++) {
4
4
  const _ = pe[K];
@@ -8,3 +8,4 @@ export declare const Closable: StoryFn;
8
8
  export declare const Collapse: StoryFn;
9
9
  export declare const AllSlots: StoryFn;
10
10
  export declare const Small: StoryFn;
11
+ export declare const Nested: StoryFn;
@@ -1,18 +1,84 @@
1
1
  import { Popover2TriggerType, Popover2Placement } from './types';
2
2
  export interface MaPopover2Props {
3
- visible?: boolean | undefined;
3
+ /**
4
+ * Controls the visibility of the popover.
5
+ * Bind with `v-model:visible`.
6
+ * @default false
7
+ */
8
+ visible?: boolean;
9
+ /**
10
+ * The events that trigger the popover to open.
11
+ * e.g. `['click']`, `['hover']`, `['focus']`, or any combination.
12
+ * @default ['click']
13
+ */
4
14
  trigger?: Popover2TriggerType[];
15
+ /**
16
+ * Whether the popover should automatically hide when clicking outside.
17
+ * @default true
18
+ */
5
19
  autoHide?: boolean;
20
+ /**
21
+ * Placement of the popover relative to its reference element.
22
+ * e.g. `'bottom-start'`, `'top'`, `'right-end'`, etc.
23
+ * @default 'bottom-start'
24
+ */
6
25
  placement?: Popover2Placement;
26
+ /**
27
+ * Disables the popover (it will not open).
28
+ * @default false
29
+ */
7
30
  disabled?: boolean;
31
+ /**
32
+ * Disables Popper.js positioning logic (useful for mobile layouts).
33
+ * @default false
34
+ */
8
35
  isMobile?: boolean;
36
+ /**
37
+ * Additional CSS class name to apply to the popover container.
38
+ */
9
39
  overlayClassName?: string;
40
+ /**
41
+ * Whether to display the little arrow pointing at the trigger.
42
+ * @default false
43
+ */
10
44
  showArrow?: boolean;
45
+ /**
46
+ * Removes the default padding inside the popover content.
47
+ * @default false
48
+ */
11
49
  noPadding?: boolean;
50
+ /**
51
+ * The container in which to mount the popover (portal).
52
+ * Can be an `HTMLElement`, a selector string, or `null`.
53
+ * @default 'body'
54
+ */
12
55
  popupContainer?: HTMLElement | null | string;
56
+ /**
57
+ * Disable automatic focus on the popover when it opens.
58
+ * @default false
59
+ */
13
60
  noAutoFocus?: boolean;
61
+ /**
62
+ * Delay in milliseconds before hiding the popover after a hide trigger.
63
+ * @default 0
64
+ */
14
65
  hideDelay?: number;
66
+ /**
67
+ * Delay in milliseconds before showing the popover after a show trigger.
68
+ * @default 0
69
+ */
15
70
  showDelay?: number;
71
+ /**
72
+ * Enable Popper’s `preventOverflow` modifier to keep the popover within its boundary.
73
+ * @default false
74
+ */
75
+ preventOverflow?: boolean;
76
+ /**
77
+ * Enable automatic max-sizing based on viewport boundaries.
78
+ * The popover will be clipped to fit and become scrollable if its content is too large.
79
+ * @default false
80
+ */
81
+ autoBoundaryMaxSize?: boolean;
16
82
  }
17
83
  declare function __VLS_template(): {
18
84
  attrs: Partial<{}>;
@@ -35,7 +101,7 @@ declare const __VLS_component: import("vue").DefineComponent<MaPopover2Props, {}
35
101
  placement: Popover2Placement;
36
102
  trigger: Popover2TriggerType[];
37
103
  overlayClassName: string;
38
- visible: boolean | undefined;
104
+ visible: boolean;
39
105
  autoHide: boolean;
40
106
  isMobile: boolean;
41
107
  showArrow: boolean;
@@ -44,6 +110,8 @@ declare const __VLS_component: import("vue").DefineComponent<MaPopover2Props, {}
44
110
  noAutoFocus: boolean;
45
111
  hideDelay: number;
46
112
  showDelay: number;
113
+ preventOverflow: boolean;
114
+ autoBoundaryMaxSize: boolean;
47
115
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
48
116
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
117
  export default _default;
@@ -9,3 +9,5 @@ export declare const Placements: Story;
9
9
  export declare const Mobile: Story;
10
10
  export declare const FooterExample: Story;
11
11
  export declare const NestedUsage: Story;
12
+ export declare const Overflow: Story;
13
+ export declare const ModalOverflow: Story;
@@ -1,4 +1,4 @@
1
- import { g as ua } from "./index-DUot5siP.js";
1
+ import { g as ua } from "./index-BxRqc15d.js";
2
2
  function ca(Dt, te) {
3
3
  for (var H = 0; H < te.length; H++) {
4
4
  const et = te[H];