@qxs-bns/components-wc 0.0.30 → 0.0.31
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/es/editor/blocksuite-editor.mjs +166 -357
- package/es/editor/blocksuite-editor.mjs.map +1 -1
- package/es/editor/toolbar.mjs +2 -0
- package/es/editor/toolbar.mjs.map +1 -0
- package/es/subject/action.mjs +7 -8
- package/es/subject/action.mjs.map +1 -1
- package/es/subject/blank-fill.mjs +243 -132
- package/es/subject/blank-fill.mjs.map +1 -1
- package/es/subject/layout.mjs +4 -4
- package/es/subject/layout.mjs.map +1 -1
- package/es/subject/page-end.mjs +1 -1
- package/es/subject/page-end.mjs.map +1 -1
- package/es/subject/scale.mjs +165 -126
- package/es/subject/scale.mjs.map +1 -1
- package/es/subject/shared-methods.mjs +2 -0
- package/es/subject/shared-methods.mjs.map +1 -0
- package/es/subject/shared-styles.mjs +75 -0
- package/es/subject/shared-styles.mjs.map +1 -0
- package/es/subject/single.mjs +243 -187
- package/es/subject/single.mjs.map +1 -1
- package/es/subject/sortable.mjs +7 -7
- package/es/subject/sortable.mjs.map +1 -1
- package/es/subject/text-fill.mjs +273 -138
- package/es/subject/text-fill.mjs.map +1 -1
- package/lib/editor/blocksuite-editor.cjs +166 -357
- package/lib/editor/blocksuite-editor.cjs.map +1 -1
- package/lib/editor/toolbar.cjs +2 -0
- package/lib/editor/toolbar.cjs.map +1 -0
- package/lib/subject/action.cjs +33 -34
- package/lib/subject/action.cjs.map +1 -1
- package/lib/subject/blank-fill.cjs +247 -136
- package/lib/subject/blank-fill.cjs.map +1 -1
- package/lib/subject/layout.cjs +2 -2
- package/lib/subject/layout.cjs.map +1 -1
- package/lib/subject/page-end.cjs +2 -2
- package/lib/subject/page-end.cjs.map +1 -1
- package/lib/subject/scale.cjs +165 -126
- package/lib/subject/scale.cjs.map +1 -1
- package/lib/subject/shared-methods.cjs +2 -0
- package/lib/subject/shared-methods.cjs.map +1 -0
- package/lib/subject/shared-styles.cjs +75 -0
- package/lib/subject/shared-styles.cjs.map +1 -0
- package/lib/subject/single.cjs +243 -187
- package/lib/subject/single.cjs.map +1 -1
- package/lib/subject/sortable.cjs +1 -1
- package/lib/subject/sortable.cjs.map +1 -1
- package/lib/subject/text-fill.cjs +273 -138
- package/lib/subject/text-fill.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import{css as e}from"lit";const i=e`
|
|
2
|
+
*, ::before, ::after { box-sizing: border-box; }
|
|
3
|
+
input[type="radio"], input[type="checkbox"] { margin: 0; }
|
|
4
|
+
`,t=e`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
color: #5a5a5a;
|
|
10
|
+
}
|
|
11
|
+
`,o=e`
|
|
12
|
+
.preview { padding: 10px 0 4px; }
|
|
13
|
+
.preview-header { display: flex; flex-direction: column; gap: 12px; }
|
|
14
|
+
.preview-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
|
|
15
|
+
.preview .title { font-size: 16px; line-height: 1.75; font-weight: 600; color: #303133; }
|
|
16
|
+
.preview-type { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }
|
|
17
|
+
.preview .rich-text { font-size: 14px; line-height: 1.8; color: #4b5563; }
|
|
18
|
+
.preview .rich-text p { margin: 0; }
|
|
19
|
+
.preview .rich-text p + p { margin-top: 0.75em; }
|
|
20
|
+
.preview .rich-text img { max-width: 100%; }
|
|
21
|
+
.preview .rich-text img[data-align="left"] { display: block !important; margin: 0 auto 0 0 !important; }
|
|
22
|
+
.preview .rich-text img[data-align="center"] { display: block !important; margin: 0 auto !important; }
|
|
23
|
+
.preview .rich-text img[data-align="right"] { display: block !important; margin: 0 0 0 auto !important; }
|
|
24
|
+
.preview-section { margin-top: 18px; }
|
|
25
|
+
.preview-section-label { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; }
|
|
26
|
+
.preview-section-body { margin-top: 8px; }
|
|
27
|
+
`,r=e`
|
|
28
|
+
.label { min-width: 72px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }
|
|
29
|
+
|
|
30
|
+
.edit-form { display: flex; flex-direction: column; gap: 16px; }
|
|
31
|
+
.edit-row,
|
|
32
|
+
.section-row {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
gap: 16px;
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
}
|
|
38
|
+
.edit-row > .label,
|
|
39
|
+
.section-row > .label {
|
|
40
|
+
padding-top: 8px;
|
|
41
|
+
}
|
|
42
|
+
.row-body {
|
|
43
|
+
flex: 1;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
}
|
|
46
|
+
`,p=e`
|
|
47
|
+
textarea {
|
|
48
|
+
border: 1px solid #dcdfe6;
|
|
49
|
+
border-radius: 6px;
|
|
50
|
+
padding: 7px 11px;
|
|
51
|
+
font-size: 13px;
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
width: 100%;
|
|
54
|
+
resize: none;
|
|
55
|
+
transition: border-color .2s;
|
|
56
|
+
line-height: 1.5;
|
|
57
|
+
display: block;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
}
|
|
60
|
+
textarea:focus { border-color: #3D61E3; outline: none; }
|
|
61
|
+
textarea:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }
|
|
62
|
+
|
|
63
|
+
.el-input { position: relative; display: block; }
|
|
64
|
+
.el-input textarea { padding-bottom: 24px; }
|
|
65
|
+
.el-input .char-counter {
|
|
66
|
+
position: absolute;
|
|
67
|
+
right: 12px;
|
|
68
|
+
bottom: 8px;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
color: #909399;
|
|
71
|
+
line-height: 1;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
`;export{i as subjectControlResetStyles,r as subjectFormBaseStyles,t as subjectHostStyles,o as subjectPreviewBaseStyles,p as subjectTextareaStyles};
|
|
75
|
+
//# sourceMappingURL=shared-styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-styles.mjs","sources":["../../../../packages/components-wc/src/subject/shared-styles.ts"],"sourcesContent":["import { css } from 'lit'\n\nexport const subjectControlResetStyles = css`\n *, ::before, ::after { box-sizing: border-box; }\n input[type=\"radio\"], input[type=\"checkbox\"] { margin: 0; }\n`\n\nexport const subjectHostStyles = css`\n :host {\n display: block;\n font-family: inherit;\n font-size: 12px;\n color: #5a5a5a;\n }\n`\n\nexport const subjectPreviewBaseStyles = css`\n .preview { padding: 10px 0 4px; }\n .preview-header { display: flex; flex-direction: column; gap: 12px; }\n .preview-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }\n .preview .title { font-size: 16px; line-height: 1.75; font-weight: 600; color: #303133; }\n .preview-type { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }\n .preview .rich-text { font-size: 14px; line-height: 1.8; color: #4b5563; }\n .preview .rich-text p { margin: 0; }\n .preview .rich-text p + p { margin-top: 0.75em; }\n .preview .rich-text img { max-width: 100%; }\n .preview .rich-text img[data-align=\"left\"] { display: block !important; margin: 0 auto 0 0 !important; }\n .preview .rich-text img[data-align=\"center\"] { display: block !important; margin: 0 auto !important; }\n .preview .rich-text img[data-align=\"right\"] { display: block !important; margin: 0 0 0 auto !important; }\n .preview-section { margin-top: 18px; }\n .preview-section-label { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; }\n .preview-section-body { margin-top: 8px; }\n`\n\nexport const subjectFormBaseStyles = css`\n .label { min-width: 72px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }\n\n .edit-form { display: flex; flex-direction: column; gap: 16px; }\n .edit-row,\n .section-row {\n display: flex;\n align-items: flex-start;\n gap: 16px;\n margin-top: 0;\n }\n .edit-row > .label,\n .section-row > .label {\n padding-top: 8px;\n }\n .row-body {\n flex: 1;\n min-width: 0;\n }\n`\n\nexport const subjectTextareaStyles = css`\n textarea {\n border: 1px solid #dcdfe6;\n border-radius: 6px;\n padding: 7px 11px;\n font-size: 13px;\n font-family: inherit;\n width: 100%;\n resize: none;\n transition: border-color .2s;\n line-height: 1.5;\n display: block;\n box-sizing: border-box;\n }\n textarea:focus { border-color: #3D61E3; outline: none; }\n textarea:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }\n\n .el-input { position: relative; display: block; }\n .el-input textarea { padding-bottom: 24px; }\n .el-input .char-counter {\n position: absolute;\n right: 12px;\n bottom: 8px;\n font-size: 12px;\n color: #909399;\n line-height: 1;\n pointer-events: none;\n }\n`\n"],"names":["subjectControlResetStyles","css","subjectHostStyles","subjectPreviewBaseStyles","subjectFormBaseStyles","subjectTextareaStyles"],"mappings":"0BAEO,MAAMA,EAA4BC,CAAA;;;EAK5BC,EAAoBD,CAAA;;;;;;;EASpBE,EAA2BF,CAAA;;;;;;;;;;;;;;;;EAkB3BG,EAAwBH,CAAA;;;;;;;;;;;;;;;;;;;EAqBxBI,EAAwBJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|