@fiscozen/dropdown 0.1.0
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/.eslintrc.cjs +18 -0
- package/.prettierrc.js +5 -0
- package/README.md +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/FzTopbar.vue.d.ts +92 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/topbar.js +5285 -0
- package/dist/topbar.umd.cjs +763 -0
- package/package.json +45 -0
- package/src/FzDropdown.vue +45 -0
- package/src/__tests__/FzDropdown.spec.ts +45 -0
- package/src/__tests__/__snapshots__/FzDropdown.spec.ts.snap +26 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +4 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +35 -0
- package/vitest.config.ts +19 -0
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
root: true,
|
|
6
|
+
'extends': ['@fiscozen/eslint-config', 'plugin:storybook/recommended'],
|
|
7
|
+
overrides: [
|
|
8
|
+
{
|
|
9
|
+
files: [
|
|
10
|
+
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
|
|
11
|
+
'cypress/support/**/*.{js,ts,jsx,tsx}'
|
|
12
|
+
],
|
|
13
|
+
'extends': [
|
|
14
|
+
'plugin:cypress/recommended'
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/.prettierrc.js
ADDED
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/index'
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/**
|
|
5
|
+
* Type of the topbar which dictates the appearance
|
|
6
|
+
*/
|
|
7
|
+
type?: "danger" | "default" | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Style which dictates the action rendered
|
|
10
|
+
*/
|
|
11
|
+
style?: "button" | "link" | "none" | "icon-button" | "hybrid" | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Action label
|
|
14
|
+
*/
|
|
15
|
+
actionLabel?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Action tooltip
|
|
18
|
+
*/
|
|
19
|
+
actionTooltip?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Action link
|
|
22
|
+
*/
|
|
23
|
+
actionLink?: RouteLocationRaw | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Action link
|
|
26
|
+
*/
|
|
27
|
+
actionIcon?: string | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
type: string;
|
|
30
|
+
style: string;
|
|
31
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
actionClick: (...args: any[]) => void;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
34
|
+
/**
|
|
35
|
+
* Type of the topbar which dictates the appearance
|
|
36
|
+
*/
|
|
37
|
+
type?: "danger" | "default" | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Style which dictates the action rendered
|
|
40
|
+
*/
|
|
41
|
+
style?: "button" | "link" | "none" | "icon-button" | "hybrid" | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Action label
|
|
44
|
+
*/
|
|
45
|
+
actionLabel?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Action tooltip
|
|
48
|
+
*/
|
|
49
|
+
actionTooltip?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Action link
|
|
52
|
+
*/
|
|
53
|
+
actionLink?: RouteLocationRaw | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Action link
|
|
56
|
+
*/
|
|
57
|
+
actionIcon?: string | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
type: string;
|
|
60
|
+
style: string;
|
|
61
|
+
}>>> & {
|
|
62
|
+
onActionClick?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
type: "danger" | "default";
|
|
65
|
+
style: "button" | "link" | "none" | "icon-button" | "hybrid";
|
|
66
|
+
}, {}>, {
|
|
67
|
+
default?(_: {}): any;
|
|
68
|
+
action?(_: {}): any;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
72
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
73
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
74
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
75
|
+
} : {
|
|
76
|
+
type: import('vue').PropType<T[K]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
type __VLS_WithDefaults<P, D> = {
|
|
81
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
82
|
+
default: D[K];
|
|
83
|
+
}> : P[K];
|
|
84
|
+
};
|
|
85
|
+
type __VLS_Prettify<T> = {
|
|
86
|
+
[K in keyof T]: T[K];
|
|
87
|
+
} & {};
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FzTopbar } from './FzTopbar.vue';
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.temporary-bg-red:hover{background-color:#aa2f2f}.temporary-bg-red:disabled{background-color:#f8baba}.temporary-border-red:focus{border-color:#aa2f2f}.temporary-bg-green:hover{background-color:#0b7763}.temporary-bg-green:disabled{background-color:#b5d8ce}.temporary-border-green:focus{border-color:#0b7763}.bg-white-smoke[data-v-ea8a7c6d]{background-color:#f7f6f3}.bg-danger[data-v-ea8a7c6d]{background-color:#fef3f3}
|