@volverjs/ui-vue 0.0.1-beta.2 → 0.0.1-beta.5
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/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/stories/Button/Button.test.d.ts +11 -0
- package/dist/test/expect.d.ts +13 -0
- package/dist/ui-vue.es.js +3 -3
- package/dist/ui-vue.umd.js +1 -1
- package/package.json +4 -2
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +0 -1
- package/src/stories/Button/Button.stories.mdx +2 -8
- package/src/stories/Button/Button.test.ts +57 -0
- package/src/stories/Button/ButtonBadge.stories.mdx +2 -1
- package/src/stories/Button/ButtonIcon.stories.mdx +3 -11
- package/src/stories/Button/ButtonIconPosition.stories.mdx +17 -14
- package/src/stories/Button/ButtonLink.stories.mdx +13 -44
- package/src/stories/Button/ButtonLoading.stories.mdx +22 -3
- package/src/stories/Button/ButtonModifiers.stories.mdx +30 -44
- package/src/stories/Button/ButtonVariant.stories.mdx +33 -51
- package/src/stories/volver-ui-vue.stories.mdx +2 -1
- package/src/test/expect.ts +52 -0
- package/src/test/types.d.ts +3 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PlayAttributes } from '@/test/types';
|
|
2
|
+
interface ButtonConfig {
|
|
3
|
+
isClickDisabled?: boolean;
|
|
4
|
+
className?: string | string[] | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function testButton({ canvasElement }?: PlayAttributes, { isClickDisabled, className }?: ButtonConfig): Promise<void>;
|
|
7
|
+
export declare function testButtonWithBadge({ canvasElement }: PlayAttributes): Promise<void>;
|
|
8
|
+
export declare function testButtonWithIconLeft({ canvasElement }: PlayAttributes): Promise<void>;
|
|
9
|
+
export declare function testButtonWithIconOnly({ canvasElement }: PlayAttributes): Promise<void>;
|
|
10
|
+
export declare function testButtonLink({ canvasElement }: PlayAttributes, { isClickDisabled, className }?: ButtonConfig): Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { expect } from '@storybook/jest';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace jest {
|
|
5
|
+
interface Matchers<R> {
|
|
6
|
+
toBeClicked: (expected?: HTMLElement) => CustomMatcherResult;
|
|
7
|
+
}
|
|
8
|
+
interface Matchers<R> {
|
|
9
|
+
toHaveClass: (className: string | string[], expected?: HTMLElement) => CustomMatcherResult;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export { expect };
|
package/dist/ui-vue.es.js
CHANGED
|
@@ -1088,7 +1088,7 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
|
|
|
1088
1088
|
], 2);
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
|
-
}), x0 = "simple", Z0 =
|
|
1091
|
+
}), x0 = "simple", Z0 = 1668072348, A0 = {
|
|
1092
1092
|
add: {
|
|
1093
1093
|
body: '<path fill="none" stroke="currentColor" stroke-linecap="round" d="M.5 8h15M8 .5v15"/>'
|
|
1094
1094
|
},
|
|
@@ -1755,7 +1755,7 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
|
|
|
1755
1755
|
prefix: x0,
|
|
1756
1756
|
lastModified: Z0,
|
|
1757
1757
|
icons: A0
|
|
1758
|
-
}, H0 = "normal", V0 =
|
|
1758
|
+
}, H0 = "normal", V0 = 1668072348, j0 = {
|
|
1759
1759
|
add: {
|
|
1760
1760
|
body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 12h16m-8-8v16"/>'
|
|
1761
1761
|
},
|
|
@@ -2361,7 +2361,7 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
|
|
|
2361
2361
|
icons: j0,
|
|
2362
2362
|
width: L0,
|
|
2363
2363
|
height: _0
|
|
2364
|
-
}, S0 = "detailed", $0 =
|
|
2364
|
+
}, S0 = "detailed", $0 = 1668072348, B0 = {
|
|
2365
2365
|
add: {
|
|
2366
2366
|
body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 15.999h24m-12-12v24"/>'
|
|
2367
2367
|
},
|