vanjs-jsf 0.3.0 → 0.3.2
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/README.md +210 -72
- package/dist/VanJsfField.d.ts +2 -1
- package/dist/VanJsfField.js +5 -2
- package/dist/VanJsfForm.js +7 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +2 -2
- package/dist/jsf-defaults.css +42 -0
- package/dist/theme.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.jsf-hidden { display: none; }
|
|
2
|
+
|
|
3
|
+
.jsf-dropzone {
|
|
4
|
+
border: 2px dashed #ccc;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
padding: 24px;
|
|
7
|
+
text-align: center;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition: border-color 0.2s;
|
|
10
|
+
}
|
|
11
|
+
.jsf-dropzone-active {
|
|
12
|
+
border-color: #4a90d9;
|
|
13
|
+
background: #f0f7ff;
|
|
14
|
+
}
|
|
15
|
+
.jsf-dropzone-text {
|
|
16
|
+
margin: 0;
|
|
17
|
+
color: #666;
|
|
18
|
+
}
|
|
19
|
+
.jsf-file-info {
|
|
20
|
+
margin-top: 8px;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 8px;
|
|
24
|
+
}
|
|
25
|
+
.jsf-file-size {
|
|
26
|
+
color: #888;
|
|
27
|
+
}
|
|
28
|
+
.jsf-file-clear {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background: none;
|
|
31
|
+
border: 1px solid #ccc;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
padding: 2px 8px;
|
|
34
|
+
font-size: 0.85em;
|
|
35
|
+
}
|
|
36
|
+
.jsf-file-clear:hover {
|
|
37
|
+
background: #f0f0f0;
|
|
38
|
+
}
|
|
39
|
+
.jsf-file-reading {
|
|
40
|
+
margin-top: 8px;
|
|
41
|
+
color: #666;
|
|
42
|
+
}
|
package/dist/theme.d.ts
CHANGED
|
@@ -22,5 +22,7 @@ export interface JsfTheme {
|
|
|
22
22
|
fileReading?: string;
|
|
23
23
|
requiredIndicator?: string;
|
|
24
24
|
}
|
|
25
|
+
/** Maps field names to extra CSS classes for their container div */
|
|
26
|
+
export type JsfLayout = Record<string, string>;
|
|
25
27
|
/** Resolve a class: field class > theme class > empty string */
|
|
26
28
|
export declare const resolve: (fieldClass: string | undefined, themeClass: string | undefined) => string;
|