dolphin-components 2.0.1 → 2.0.2

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 CHANGED
@@ -19,7 +19,7 @@ npm install dolphin-components
19
19
  Make sure to import the CSS styles in your main entry file (e.g., `main.css`):
20
20
 
21
21
  ```css
22
- @import 'dolphin-components/dolphin-components.css' layer(base);
22
+ @import 'dolphin-components/dolphin-components.css';
23
23
  ```
24
24
 
25
25
  ### 2. Register Components
@@ -51,7 +51,7 @@ app.mount('#app');
51
51
 
52
52
  **Props:**
53
53
  - `title` (Array of `ContentTitle[]`, required) - Defines the content titles with optional links.
54
- - `action` (Array of `ContentAction[]`, optional) - Defines actions with a title, emit event, and optional class.
54
+ - `actions` (Array of `ContentAction[]`, optional) - Defines actions with a title, emit event, and optional class.
55
55
  - `bodyClass` (String, optional) - Additional class for the body.
56
56
  - `titleClass` (String, optional) - Additional class for the title.
57
57
 
@@ -59,7 +59,7 @@ app.mount('#app');
59
59
 
60
60
  **Props:**
61
61
  - `title` (Array of `ModalTitle[]`, required) - Defines modal titles with optional links.
62
- - `action` (Array of `ModalAction[]`, required) - Defines actions with an emit event and optional class.
62
+ - `actions` (Array of `ModalAction[]`, required) - Defines actions with an emit event and optional class.
63
63
  - `show` (Boolean, required) - Controls modal visibility.
64
64
  - `width` (String, optional) - Defines modal width.
65
65
 
@@ -96,7 +96,7 @@ app.mount('#app');
96
96
  **Props:**
97
97
  - `show` (Boolean, required) - Controls visibility.
98
98
  - `title` (Array of `TowserTitle[]`, required) - Defines the titles with optional links.
99
- - `action` (Array of `TowserAction[]`, optional) - Defines actions.
99
+ - `actions` (Array of `TowserAction[]`, optional) - Defines actions.
100
100
  - `double` (Boolean, optional) - Enables double-pane layout.
101
101
  - `bodyWidth` (Number, optional) - Width of the main body.
102
102
  - `body2Width` (Number, optional) - Width of the secondary body.
@@ -30,7 +30,6 @@ declare const __VLS_self: import("vue").DefineComponent<ContentProps, {
30
30
  [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
31
31
  }>, {
32
32
  title: import("../types").ContentTitle[];
33
- action: ContentAction[];
34
33
  bodyClass: string;
35
34
  titleClass: string;
36
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -40,7 +39,6 @@ declare const __VLS_component: import("vue").DefineComponent<ContentProps, {}, {
40
39
  [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
41
40
  }>, {
42
41
  title: import("../types").ContentTitle[];
43
- action: ContentAction[];
44
42
  bodyClass: string;
45
43
  titleClass: string;
46
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,6 +7,15 @@ declare const screenHeight: import("vue").Ref<number, number>;
7
7
  declare const dynamicDiv: import("vue").Ref<HTMLElement, HTMLElement>;
8
8
  declare const shouldApplyOverflow: import("vue").Ref<boolean, boolean>;
9
9
  declare const handleAction: (action: ModalAction) => void;
10
+ declare const currentActions: import("vue").Ref<{
11
+ emit: string;
12
+ title: string;
13
+ class?: string;
14
+ }[], ModalAction[] | {
15
+ emit: string;
16
+ title: string;
17
+ class?: string;
18
+ }[]>;
10
19
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
11
20
  declare var __VLS_9: {};
12
21
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
@@ -18,6 +27,7 @@ declare const __VLS_self: import("vue").DefineComponent<ModalProps, {
18
27
  dynamicDiv: typeof dynamicDiv;
19
28
  shouldApplyOverflow: typeof shouldApplyOverflow;
20
29
  handleAction: typeof handleAction;
30
+ currentActions: typeof currentActions;
21
31
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
32
  [x: string]: never;
23
33
  }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
@@ -26,6 +36,7 @@ declare const __VLS_self: import("vue").DefineComponent<ModalProps, {
26
36
  show: boolean;
27
37
  width: string;
28
38
  title: import("../types").ModalTitle[];
39
+ actions: ModalAction[];
29
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
41
  declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
42
  [x: string]: never;
@@ -35,6 +46,7 @@ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {},
35
46
  show: boolean;
36
47
  width: string;
37
48
  title: import("../types").ModalTitle[];
49
+ actions: ModalAction[];
38
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
51
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
40
52
  export default _default;
@@ -22,8 +22,6 @@ declare const __VLS_self: import("vue").DefineComponent<TowserProps, {
22
22
  [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
23
23
  }>, {
24
24
  show: boolean;
25
- title: import("../types").TowserTitle[];
26
- action: import("../types").TowserAction[];
27
25
  double: boolean;
28
26
  bodyWidth: number;
29
27
  body2Width: number;
@@ -34,8 +32,6 @@ declare const __VLS_component: import("vue").DefineComponent<TowserProps, {}, {}
34
32
  [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
35
33
  }>, {
36
34
  show: boolean;
37
- title: import("../types").TowserTitle[];
38
- action: import("../types").TowserAction[];
39
35
  double: boolean;
40
36
  bodyWidth: number;
41
37
  body2Width: number;