vueless 0.0.630 → 0.0.632

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.
@@ -107,7 +107,7 @@ const SettingsTemplate: StoryFn<VOnClickOutsideArgs> = (args: VOnClickOutsideArg
107
107
  });
108
108
 
109
109
  export const Default = DefaultTemplate.bind({});
110
- Default.args = { callback: () => undefined };
110
+ Default.args = {};
111
111
 
112
112
  export const Settings = SettingsTemplate.bind({});
113
113
  Settings.args = {};
@@ -2,6 +2,8 @@ import type { Meta, StoryFn } from "@storybook/vue3";
2
2
 
3
3
  import UIcon from "../../../ui.image-icon/UIcon.vue";
4
4
  import URow from "../../../ui.container-row/URow.vue";
5
+ import UAlert from "../../../ui.text-alert/UAlert.vue";
6
+ import ULink from "../../../ui.button-link/ULink.vue";
5
7
  import tooltip from "../vTooltip.ts";
6
8
 
7
9
  import type { Props } from "tippy.js";
@@ -10,11 +12,6 @@ interface VTooltipArgs {
10
12
  tooltipOptions: Partial<Props> | string;
11
13
  }
12
14
 
13
- interface VTooltipEnumArgs extends VTooltipArgs {
14
- enum: keyof Props;
15
- options: unknown[];
16
- }
17
-
18
15
  /**
19
16
  * The `v-tooltip` directive. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/directives/tooltip)
20
17
  */
@@ -32,70 +29,34 @@ const DefaultTemplate: StoryFn<VTooltipArgs> = (args: VTooltipArgs) => ({
32
29
  return { args };
33
30
  },
34
31
  template: `
35
- <UIcon interactive name="sentiment_satisfied" v-tooltip="args.tooltipOptions" />
32
+ <UIcon interactive name="sentiment_satisfied" v-tooltip="'Tooltip'" />
36
33
  `,
37
34
  });
38
35
 
39
- const EnumTemplate: StoryFn<VTooltipEnumArgs> = (args: VTooltipEnumArgs) => ({
40
- components: { UIcon, URow },
36
+ const SettingsTemplate: StoryFn<VTooltipArgs> = (args: VTooltipArgs) => ({
37
+ components: { UIcon, URow, UAlert, ULink },
41
38
  directives: { tooltip },
42
39
  setup() {
43
40
  return { args };
44
41
  },
45
42
  template: `
46
- <URow>
47
- <UIcon
48
- v-for="option in args.options"
49
- interactive
50
- name="sentiment_satisfied"
51
- v-tooltip="{ content: option, ...args.tooltipOptions, [args.enum]: option }"
43
+ <URow align="center">
44
+ <UAlert variant="secondary">
45
+ <p>
46
+ See all available settings in <ULink label="Tippy.js docs" href="https://atomiks.github.io/tippyjs/v6/all-props/" underlined />
47
+ </p>
48
+ </UAlert>
49
+ <UIcon
50
+ interactive
51
+ name="sentiment_satisfied"
52
+ v-tooltip="{ content: '<b>Tooltip</b>', placement: 'bottom', allowHTML: true, zIndex: 42 }"
52
53
  />
53
54
  </URow>
54
55
  `,
55
56
  });
56
57
 
57
58
  export const Default = DefaultTemplate.bind({});
58
- Default.args = { tooltipOptions: "Tooltip" };
59
+ Default.args = {};
59
60
 
60
- export const Settings = DefaultTemplate.bind({});
61
- Settings.args = { tooltipOptions: { content: "Tooltip", placement: "right" } };
62
-
63
- Settings.parameters = {
64
- docs: {
65
- source: {
66
- // Do not break this line, this will lead to wrong formatting.
67
- code: `<UIcon interactive name="sentiment_satisfied" v-tooltip="{ content: 'Tooltip', placement: 'right' }">`,
68
- },
69
- },
70
- };
71
-
72
- export const Placement = EnumTemplate.bind({});
73
- Placement.args = {
74
- tooltipOptions: {},
75
- enum: "placement",
76
- options: [
77
- "top",
78
- "top-start",
79
- "top-end",
80
- "right",
81
- "right-start",
82
- "right-end",
83
- "bottom",
84
- "bottom-start",
85
- "bottom-end",
86
- "left",
87
- "left-start",
88
- "left-end",
89
- "auto",
90
- "auto-start",
91
- "auto-end",
92
- ],
93
- };
94
-
95
- Placement.parameters = {
96
- docs: {
97
- source: {
98
- code: `<UIcon interactive name="sentiment_satisfied" v-tooltip="{ content: 'top', placement: 'top' }">`,
99
- },
100
- },
101
- };
61
+ export const Settings = SettingsTemplate.bind({});
62
+ Settings.args = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.630",
3
+ "version": "0.0.632",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/storybook.ts";
2
2
 
3
- import UBoilerplate from "../../ui.boilerplate/UBoilerplate.vue";
3
+ import UBoilerplate from "../UBoilerplate.vue";
4
4
 
5
5
  import type { Meta, StoryFn } from "@storybook/vue3";
6
6
  import type { Props } from "../types.ts";