@sunyard-szyy-ui/components 0.2.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.
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";
@@ -0,0 +1 @@
1
+ import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";
package/es/css.css ADDED
@@ -0,0 +1 @@
1
+ .sy-search-bar{display:flex;gap:8px;align-items:center}.sy-search-bar__input{flex:1;min-width:0}.sy-search-bar__button{flex:none}
package/es/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './search-bar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
package/es/index.mjs ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+ export * from './src/search-bar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search-bar/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,118 @@
1
+ declare const SearchBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ placeholder: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ buttonText: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ placeholder: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ buttonText: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ onSearch?: ((...args: any[]) => any) | undefined;
32
+ }>, {
33
+ modelValue: string;
34
+ placeholder: string;
35
+ buttonText: string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ export declare const SySearchBar: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
38
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
39
+ modelValue: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ placeholder: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ buttonText: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ }>> & Readonly<{
52
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
+ onSearch?: ((...args: any[]) => any) | undefined;
54
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], import("vue").PublicProps, {
57
+ modelValue: string;
58
+ placeholder: string;
59
+ buttonText: string;
60
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly<import("vue").ExtractPropTypes<{
68
+ modelValue: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ placeholder: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ buttonText: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{
81
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
+ onSearch?: ((...args: any[]) => any) | undefined;
83
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
84
+ [key: string]: any;
85
+ }>, {}, {}, {}, {
86
+ modelValue: string;
87
+ placeholder: string;
88
+ buttonText: string;
89
+ }>;
90
+ __isFragment?: never;
91
+ __isTeleport?: never;
92
+ __isSuspense?: never;
93
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
94
+ modelValue: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ placeholder: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ buttonText: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ }>> & Readonly<{
107
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
108
+ onSearch?: ((...args: any[]) => any) | undefined;
109
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
110
+ [key: string]: any;
111
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", {
112
+ modelValue: string;
113
+ placeholder: string;
114
+ buttonText: string;
115
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
116
+ export type SySearchBarInstance = InstanceType<typeof SearchBar>;
117
+ export {};
118
+ //# sourceMappingURL=search-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../src/search-bar/src/search-bar.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA0Db,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wOAAyB,CAAC;AAClD,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import '../../../../theme-chalk/dist/search-bar.css';
4
+ //# sourceMappingURL=css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/search-bar/style/css.ts"],"names":[],"mappings":"AACA,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,6CAA6C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import '../../../../theme-chalk/src/search-bar.scss';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/search-bar/style/index.ts"],"names":[],"mappings":"AAEA,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,6CAA6C,CAAC"}
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");
@@ -0,0 +1 @@
1
+ "use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");
package/lib/css.css ADDED
@@ -0,0 +1 @@
1
+ .sy-search-bar{display:flex;gap:8px;align-items:center}.sy-search-bar__input{flex:1;min-width:0}.sy-search-bar__button{flex:none}
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './search-bar';
2
+ //# sourceMappingURL=index.d.ts.map
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ export * from './src/search-bar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,118 @@
1
+ declare const SearchBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ placeholder: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ buttonText: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ placeholder: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ buttonText: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ onSearch?: ((...args: any[]) => any) | undefined;
32
+ }>, {
33
+ modelValue: string;
34
+ placeholder: string;
35
+ buttonText: string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ export declare const SySearchBar: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
38
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
39
+ modelValue: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ placeholder: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ buttonText: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ }>> & Readonly<{
52
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
+ onSearch?: ((...args: any[]) => any) | undefined;
54
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], import("vue").PublicProps, {
57
+ modelValue: string;
58
+ placeholder: string;
59
+ buttonText: string;
60
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly<import("vue").ExtractPropTypes<{
68
+ modelValue: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ placeholder: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ buttonText: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{
81
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
+ onSearch?: ((...args: any[]) => any) | undefined;
83
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
84
+ [key: string]: any;
85
+ }>, {}, {}, {}, {
86
+ modelValue: string;
87
+ placeholder: string;
88
+ buttonText: string;
89
+ }>;
90
+ __isFragment?: never;
91
+ __isTeleport?: never;
92
+ __isSuspense?: never;
93
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
94
+ modelValue: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ placeholder: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ buttonText: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ }>> & Readonly<{
107
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
108
+ onSearch?: ((...args: any[]) => any) | undefined;
109
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
110
+ [key: string]: any;
111
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", {
112
+ modelValue: string;
113
+ placeholder: string;
114
+ buttonText: string;
115
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
116
+ export type SySearchBarInstance = InstanceType<typeof SearchBar>;
117
+ export {};
118
+ //# sourceMappingURL=search-bar.d.ts.map
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import '../../../../theme-chalk/dist/search-bar.css';
4
+ //# sourceMappingURL=css.d.ts.map
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import '../../../../theme-chalk/src/search-bar.scss';
4
+ //# sourceMappingURL=index.d.ts.map
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@sunyard-szyy-ui/components",
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "main": "lib/index.js",
6
+ "module": "es/index.mjs",
7
+ "types": "es/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./es/index.d.ts",
11
+ "import": "./es/index.mjs",
12
+ "require": "./lib/index.js"
13
+ },
14
+ "./es": {
15
+ "types": "./es/index.d.ts",
16
+ "import": "./es/index.mjs"
17
+ },
18
+ "./lib": {
19
+ "types": "./lib/index.d.ts",
20
+ "require": "./lib/index.js"
21
+ },
22
+ "./es/*": {
23
+ "types": [
24
+ "./es/*.d.ts",
25
+ "./es/*/index.d.ts"
26
+ ],
27
+ "import": "./es/*.mjs"
28
+ },
29
+ "./lib/*": {
30
+ "types": [
31
+ "./lib/*.d.ts",
32
+ "./lib/*/index.d.ts"
33
+ ],
34
+ "require": "./lib/*.js"
35
+ }
36
+ },
37
+ "files": [
38
+ "es",
39
+ "lib"
40
+ ],
41
+ "sideEffects": false,
42
+ "peerDependencies": {
43
+ "element-plus": "^2.0.0",
44
+ "vue": "^3.0.0"
45
+ },
46
+ "dependencies": {
47
+ "@sunyard-szyy-ui/hooks": "workspace:*",
48
+ "@sunyard-szyy-ui/utils": "workspace:*"
49
+ },
50
+ "scripts": {
51
+ "clean": "rimraf es lib",
52
+ "build": "pnpm --filter @sunyard-szyy-ui/build build",
53
+ "typecheck": "tsc -p tsconfig.json --noEmit"
54
+ }
55
+ }