|
1 | 1 | import { default as ActionButtonStories } from "@spectrum-css/actionbutton/stories/actionbutton.stories.js"; |
| 2 | +import { default as Popover } from "@spectrum-css/popover/stories/popover.stories.js"; |
2 | 3 | import { disableDefaultModes } from "@spectrum-css/preview/modes"; |
3 | | -import metadata from "../dist/metadata.json"; |
4 | | -import packageJson from "../package.json"; |
5 | 4 | import { ContextualHelpGroup } from "./contextualhelp.test.js"; |
6 | 5 | import { Template } from "./template.js"; |
7 | 6 |
|
| 7 | +import metadata from "../dist/metadata.json"; |
| 8 | +import packageJson from "../package.json"; |
| 9 | + |
8 | 10 | /** |
9 | 11 | * Contextual help shows a user extra information in relation to another component or view. |
10 | 12 | */ |
@@ -42,39 +44,8 @@ export default { |
42 | 44 | }, |
43 | 45 | iconSet: { table: { disable: true } }, |
44 | 46 | popoverPlacement: { |
45 | | - name: "Popover Placement", |
46 | | - type: { name: "string", required: true }, |
47 | | - defaultValue: "bottom-start", |
48 | | - table: { |
49 | | - type: { summary: "string" }, |
50 | | - category: "Component", |
51 | | - defaultValue: { summary: "Info" }, |
52 | | - }, |
53 | | - options: [ |
54 | | - "top", |
55 | | - "top-left", |
56 | | - "top-right", |
57 | | - "top-start", |
58 | | - "top-end", |
59 | | - "bottom", |
60 | | - "bottom-left", |
61 | | - "bottom-right", |
62 | | - "bottom-start", |
63 | | - "bottom-end", |
64 | | - "left", |
65 | | - "left-top", |
66 | | - "left-bottom", |
67 | | - "start", |
68 | | - "start-top", |
69 | | - "start-bottom", |
70 | | - "right", |
71 | | - "right-top", |
72 | | - "right-bottom", |
73 | | - "end", |
74 | | - "end-top", |
75 | | - "end-bottom", |
76 | | - ], |
77 | | - control: "select", |
| 47 | + ...Popover.argTypes.position, |
| 48 | + name: "Popover placement", |
78 | 49 | }, |
79 | 50 | link: { |
80 | 51 | name: "Has link", |
@@ -107,11 +78,6 @@ export default { |
107 | 78 | }, |
108 | 79 | packageJson, |
109 | 80 | metadata, |
110 | | - docs: { |
111 | | - story: { |
112 | | - height: "200px", |
113 | | - }, |
114 | | - }, |
115 | 81 | status: { |
116 | 82 | type: "migrated", |
117 | 83 | }, |
@@ -151,17 +117,9 @@ export const TopPopover = Template.bind({}); |
151 | 117 | TopPopover.tags = ["!dev"]; |
152 | 118 | TopPopover.args = { |
153 | 119 | popoverPlacement: "top", |
154 | | - customStyles: { |
155 | | - "margin-top": "170px", |
156 | | - }, |
157 | 120 | }; |
158 | 121 | TopPopover.parameters = { |
159 | 122 | chromatic: { disableSnapshot: true }, |
160 | | - docs: { |
161 | | - story: { |
162 | | - height: "auto", |
163 | | - }, |
164 | | - }, |
165 | 123 | }; |
166 | 124 | TopPopover.storyName = "Default - top popover"; |
167 | 125 |
|
|
0 commit comments