@whitesev/pops 2.1.5 → 2.1.7

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.
Files changed (41) hide show
  1. package/dist/index.amd.js +101 -49
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +101 -49
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +101 -49
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +101 -49
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +101 -49
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +101 -49
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +13 -0
  14. package/dist/types/src/types/button.d.ts +8 -39
  15. package/package.json +3 -2
  16. package/src/Pops.ts +14 -1
  17. package/src/components/alert/index.css +0 -47
  18. package/src/components/alert/index.ts +2 -2
  19. package/src/components/confirm/index.css +0 -47
  20. package/src/components/confirm/index.ts +4 -4
  21. package/src/components/drawer/index.css +0 -17
  22. package/src/components/drawer/index.ts +2 -3
  23. package/src/components/folder/config.ts +23 -9
  24. package/src/components/folder/index.css +67 -62
  25. package/src/components/folder/index.ts +4 -4
  26. package/src/components/iframe/index.css +3 -33
  27. package/src/components/iframe/index.ts +5 -5
  28. package/src/components/loading/index.css +17 -12
  29. package/src/components/loading/index.ts +5 -5
  30. package/src/components/panel/handlerComponents.ts +12 -1
  31. package/src/components/panel/index.css +136 -63
  32. package/src/components/panel/index.ts +2 -2
  33. package/src/components/prompt/index.css +23 -51
  34. package/src/components/prompt/index.ts +6 -6
  35. package/src/components/rightClickMenu/index.css +14 -3
  36. package/src/components/searchSuggestion/index.ts +20 -5
  37. package/src/components/tooltip/index.css +39 -19
  38. package/src/css/button.css +354 -98
  39. package/src/css/index.css +88 -16
  40. package/src/handler/PopsElementHandler.ts +2 -2
  41. package/src/types/button.d.ts +8 -39
@@ -21070,7 +21070,20 @@ declare class Pops {
21070
21070
  };
21071
21071
  /**
21072
21072
  * 搜索建议
21073
+ *
21074
+ * 注意:调用后需要主动调用.init()和.setAllEvent()进行初始化
21073
21075
  * @param details 配置
21076
+ * @example
21077
+ * let $input = document.querySelector("#input");
21078
+ * let searchSuggestion = pops.searchSuggestion({
21079
+ * target: $input,
21080
+ * inputTarget: $input,
21081
+ * getItemHTML: function (item) {
21082
+ * return item.value;
21083
+ * }
21084
+ * });
21085
+ * searchSuggestion.init();
21086
+ * searchSuggestion.setAllEvent();
21074
21087
  */
21075
21088
  searchSuggestion: <T = any>(details: PopsSearchSuggestionDetails<T>) => {
21076
21089
  selfDocument: ShadowRoot | Document | (ShadowRoot | Document)[];
@@ -16,7 +16,8 @@ export type PopsButtonStyleType =
16
16
  | "success"
17
17
  | "info"
18
18
  | "warning"
19
- | "danger";
19
+ | "danger"
20
+ | "violet";
20
21
 
21
22
  /**
22
23
  * 按钮大小
@@ -118,48 +119,16 @@ export interface PopsButtonDetails<T = {}> {
118
119
  /**
119
120
  * 按钮配置(匹配任意类型)
120
121
  */
121
- export interface PopsButtonDetailsAnyType<T = {}> {
122
- /**
123
- * 是否启用按钮
124
- */
125
- enable: boolean;
126
- /**
127
- * 图标按钮,如果名字为内置的,则使用内置的,否则为自定义的svg
128
- */
129
- icon: PopsIconType;
130
- /**
131
- * 图标按钮是否放在右边
132
- */
133
- rightIcon: boolean;
134
- /**
135
- * 图标按钮是否是旋转360°
136
- * @default false
137
- */
138
- iconIsLoading: boolean;
139
- /**
140
- * 按钮尺寸大小
141
- * @default ""
142
- */
143
- size: PopsButtonSize;
122
+ export type PopsButtonDetailsAnyType<T = {}> = Omit<
123
+ PopsButtonDetails<T>,
124
+ "type"
125
+ > & {
144
126
  /**
145
127
  * 按钮样式类型
128
+ * @default "default"
146
129
  */
147
130
  type: string;
148
- /**
149
- * 按钮文字
150
- * @default ""
151
- */
152
- text: string;
153
- /**
154
- * 按钮点击的回调
155
- *
156
- * 如果传入该值,那么将不会自动关闭弹窗
157
- */
158
- callback(
159
- eventDetails: PopsHandlerEventDetails & T,
160
- event: PointerEvent | MouseEvent
161
- ): void;
162
- }
131
+ };
163
132
 
164
133
  /** prompt的点击回调 */
165
134
  export interface PopsPromptButtonDetails extends PopsButtonDetails {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@whitesev/pops",
4
- "version": "2.1.5",
4
+ "version": "2.1.7",
5
5
  "type": "module",
6
6
  "description": "弹窗库",
7
7
  "main": "dist/index.cjs.js",
@@ -42,7 +42,8 @@
42
42
  "devDependencies": {
43
43
  "@rollup/plugin-commonjs": "^28.0.6",
44
44
  "@rollup/plugin-node-resolve": "^16.0.1",
45
- "@rollup/plugin-typescript": "^12.1.2",
45
+ "@rollup/plugin-typescript": "12.1.4",
46
+ "rollup": "^4.44.2",
46
47
  "rollup-plugin-clear": "^2.0.7",
47
48
  "rollup-plugin-import-css": "^4.0.1",
48
49
  "tslib": "^2.8.1",
package/src/Pops.ts CHANGED
@@ -36,7 +36,7 @@ class Pops {
36
36
  /** 配置 */
37
37
  config = {
38
38
  /** 版本号 */
39
- version: "2025.7.1",
39
+ version: "2025.7.7",
40
40
  cssText: PopsCSS,
41
41
  /** icon图标的svg代码 */
42
42
  iconSVG: PopsIcon.$data,
@@ -183,7 +183,20 @@ class Pops {
183
183
 
184
184
  /**
185
185
  * 搜索建议
186
+ *
187
+ * 注意:调用后需要主动调用.init()和.setAllEvent()进行初始化
186
188
  * @param details 配置
189
+ * @example
190
+ * let $input = document.querySelector("#input");
191
+ * let searchSuggestion = pops.searchSuggestion({
192
+ * target: $input,
193
+ * inputTarget: $input,
194
+ * getItemHTML: function (item) {
195
+ * return item.value;
196
+ * }
197
+ * });
198
+ * searchSuggestion.init();
199
+ * searchSuggestion.setAllEvent();
187
200
  */
188
201
  searchSuggestion = <T = any>(details: PopsSearchSuggestionDetails<T>) => {
189
202
  let popsSearchSuggestion = PopsSearchSuggestion.init(details);
@@ -1,47 +0,0 @@
1
- .pops[type-value] .pops-alert-title {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- }
6
- .pops[type-value="alert"] .pops-alert-title {
7
- width: 100%;
8
- height: var(--container-title-height);
9
- border-bottom: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
10
- }
11
- .pops[type-value="alert"] .pops-alert-title p[pops] {
12
- width: 100%;
13
- overflow: hidden;
14
- color: rgb(51, 51, 51);
15
- text-indent: 15px;
16
- text-overflow: ellipsis;
17
- white-space: nowrap;
18
- font-weight: 500;
19
- line-height: normal;
20
- }
21
- .pops[type-value="alert"] .pops-alert-content {
22
- width: 100%;
23
- /*height: calc(
24
- 100% - var(--container-title-height) - var(--container-bottom-btn-height)
25
- );*/
26
- flex: 1;
27
- overflow: auto;
28
- word-break: break-word;
29
- }
30
- .pops[type-value="alert"] .pops-alert-content p[pops] {
31
- padding: 5px 10px;
32
- color: rgb(51, 51, 51);
33
- text-indent: 15px;
34
- }
35
- .pops[type-value="alert"] .pops-alert-btn {
36
- /*position: absolute;
37
- bottom: 0;*/
38
- display: flex;
39
- padding: 10px 10px 10px 10px;
40
- width: 100%;
41
- height: var(--container-bottom-btn-height);
42
- max-height: var(--container-bottom-btn-height);
43
- line-height: normal;
44
- border-top: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
45
- text-align: right;
46
- align-items: center;
47
- }
@@ -48,14 +48,14 @@ export const PopsAlert = {
48
48
  PopsType,
49
49
  config,
50
50
  /*html*/ `
51
- <div class="pops-alert-title" style="text-align: ${
51
+ <div class="pops-title pops-${PopsType}-title" style="text-align: ${
52
52
  config.title.position
53
53
  };${headerStyle}">${
54
54
  config.title.html
55
55
  ? config.title.text
56
56
  : `<p pops style="${headerPStyle}">${config.title.text}</p>`
57
57
  }${headerBtnHTML}</div>
58
- <div class="pops-alert-content" style="${contentStyle}">${
58
+ <div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${
59
59
  config.content.html
60
60
  ? config.content.text
61
61
  : `<p pops style="${contentPStyle}">${config.content.text}</p>`
@@ -1,47 +0,0 @@
1
- .pops[type-value] .pops-confirm-title {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- }
6
- .pops[type-value="confirm"] .pops-confirm-title {
7
- width: 100%;
8
- height: var(--container-title-height);
9
- border-bottom: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
10
- }
11
- .pops[type-value="confirm"] .pops-confirm-title p[pops] {
12
- width: 100%;
13
- overflow: hidden;
14
- color: rgb(51, 51, 51);
15
- text-indent: 15px;
16
- text-overflow: ellipsis;
17
- white-space: nowrap;
18
- font-weight: 500;
19
- line-height: normal;
20
- }
21
- .pops[type-value="confirm"] .pops-confirm-content {
22
- width: 100%;
23
- /*height: calc(
24
- 100% - var(--container-title-height) - var(--container-bottom-btn-height)
25
- );*/
26
- flex: 1;
27
- overflow: auto;
28
- word-break: break-word;
29
- }
30
- .pops[type-value="confirm"] .pops-confirm-content p[pops] {
31
- padding: 5px 10px;
32
- color: rgb(51, 51, 51);
33
- text-indent: 15px;
34
- }
35
- .pops[type-value="confirm"] .pops-confirm-btn {
36
- /*position: absolute;
37
- bottom: 0;*/
38
- display: flex;
39
- padding: 10px 10px 10px 10px;
40
- width: 100%;
41
- height: var(--container-bottom-btn-height);
42
- max-height: var(--container-bottom-btn-height);
43
- line-height: normal;
44
- border-top: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
45
- text-align: right;
46
- align-items: center;
47
- }
@@ -48,14 +48,14 @@ export const PopsConfirm = {
48
48
  PopsType,
49
49
  config,
50
50
  /*html*/ `
51
- <div class="pops-confirm-title" style="text-align: ${
52
- config.title.position
53
- };${headerStyle}">${
51
+ <div class="pops-title pops-${PopsType}-title" style="text-align: ${
52
+ config.title.position
53
+ };${headerStyle}">${
54
54
  config.title.html
55
55
  ? config.title.text
56
56
  : `<p pops style="${headerPStyle}">${config.title.text}</p>`
57
57
  }${headerBtnHTML}</div>
58
- <div class="pops-confirm-content" style="${contentStyle}">${
58
+ <div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${
59
59
  config.content.html
60
60
  ? config.content.text
61
61
  : `<p pops style="${contentPStyle}">${config.content.text}</p>`
@@ -8,24 +8,7 @@
8
8
  overflow: hidden;
9
9
  transition: all 0.3s;
10
10
  }
11
- .pops[type-value] .pops-drawer-title {
12
- display: flex;
13
- align-items: center;
14
- justify-content: space-between;
15
- }
16
- .pops[type-value] .pops-drawer-title p[pops] {
17
- line-height: normal;
18
- align-content: center;
19
- }
20
11
 
21
- .pops-drawer-content {
22
- flex: 1;
23
- overflow: auto;
24
- }
25
- .pops[type-value="drawer"] .pops-drawer-btn {
26
- padding-top: 10px;
27
- padding-bottom: 10px;
28
- }
29
12
  .pops[type-value="drawer"][direction="top"] {
30
13
  width: 100%;
31
14
  left: 0;
@@ -49,15 +49,14 @@ export const PopsDrawer = {
49
49
  /*html*/ `
50
50
  ${
51
51
  config.title.enable
52
- ? /*html*/ `
53
- <div class="pops-${PopsType}-title" style="${headerStyle}">${
52
+ ? /*html*/ `<div class="pops-title pops-${PopsType}-title" style="${headerStyle}">${
54
53
  config.title.html
55
54
  ? config.title.text
56
55
  : /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`
57
56
  }${headerBtnHTML}</div>`
58
57
  : ""
59
58
  }
60
- <div class="pops-${PopsType}-content" style="${contentStyle}">${
59
+ <div class="pops-content pops-${PopsType}-content" style="${contentStyle}">${
61
60
  config.content.html
62
61
  ? config.content.text
63
62
  : `<p pops style="${contentPStyle}">${config.content.text}</p>`
@@ -27,16 +27,30 @@ export const PopsFolderConfig = (): DeepRequired<PopsFolderDetails> => {
27
27
  clickEvent() {
28
28
  return [
29
29
  {
30
- fileName: "内部-测试文件.zip",
31
- fileSize: 1025000,
32
- fileType: "zip",
33
- createTime: 1702038410440,
34
- latestTime: 1702039602126,
35
- isFolder: false,
36
- index: 1,
30
+ fileName: "测试文件夹2222",
31
+ fileSize: 0,
32
+ fileType: "",
33
+ createTime: 0,
34
+ latestTime: 0,
35
+ isFolder: true,
36
+ index: 0,
37
+ // @ts-ignore
37
38
  clickEvent() {
38
- console.log("下载文件:", this.fileName);
39
- return "https://update.greasyfork.org/scripts/456485/pops.js";
39
+ return [
40
+ {
41
+ fileName: "内部-测试文件.zip",
42
+ fileSize: 1025000,
43
+ fileType: "zip",
44
+ createTime: 1702038410440,
45
+ latestTime: 1702039602126,
46
+ isFolder: false,
47
+ index: 1,
48
+ clickEvent() {
49
+ console.log("下载文件:", this.fileName);
50
+ return "https://update.greasyfork.org/scripts/456485/pops.js";
51
+ },
52
+ },
53
+ ];
40
54
  },
41
55
  },
42
56
  ];
@@ -1,49 +1,21 @@
1
- .pops[type-value] .pops-folder-title {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- }
6
- .pops[type-value="folder"] .pops-folder-title {
7
- width: 100%;
8
- height: var(--container-title-height);
9
- border-bottom: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
10
- }
11
- .pops[type-value="folder"] .pops-folder-title p[pops] {
12
- width: 100%;
13
- overflow: hidden;
14
- color: rgb(51, 51, 51);
15
- text-indent: 15px;
16
- text-overflow: ellipsis;
17
- white-space: nowrap;
18
- font-weight: 500;
19
- line-height: normal;
20
- }
21
- .pops[type-value="folder"] .pops-folder-content p[pops] {
22
- padding: 5px 10px;
23
- color: rgb(51, 51, 51);
24
- text-indent: 15px;
25
- }
26
- .pops[type-value="folder"] .pops-folder-content {
27
- width: 100%;
28
- /*height: calc(
29
- 100% - var(--container-title-height) - var(--container-bottom-btn-height)
30
- );*/
31
- flex: 1;
32
- overflow: auto;
33
- word-break: break-word;
34
- }
35
- .pops[type-value="folder"] .pops-folder-btn {
36
- /*position: absolute;
37
- bottom: 0;*/
38
- display: flex;
39
- padding: 10px 10px 10px 10px;
40
- width: 100%;
41
- height: var(--container-bottom-btn-height);
42
- max-height: var(--container-bottom-btn-height);
43
- line-height: normal;
44
- border-top: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
45
- text-align: right;
46
- align-items: center;
1
+ .pops-folder-list {
2
+ --folder-arrow-fill-color: #d4d7de;
3
+ --folder-arrow-active-fill-color: #06a7ff;
4
+ --header-breadcrumb-text-color: #06a7ff;
5
+ --header-breadcrumb-all-files-text-color: var(--header-breadcrumb-text-color);
6
+ --header-breadcrumb-all-files-first-text-color: var(
7
+ --header-breadcrumb-text-color
8
+ );
9
+ --header-breadcrumb-all-files-last-text-color: #999999;
10
+ --table-header-row-text-color: #818999;
11
+ --table-body-td-text-color: rgb(247, 248, 250, var(--pops-bg-opacity));
12
+ --table-body-th-text-color: rgb(247, 248, 250, var(--pops-bg-opacity));
13
+ --table-body-row-text-color: #05082c;
14
+ --table-body-row-file-name-text-color: #05082c;
15
+ --table-body-row-hover-bd-color: rgb(245, 246, 247, var(--pops-bg-opacity));
16
+ --table-body-row-hover-bg-color: rgb(245, 246, 247, var(--pops-bg-opacity));
17
+ --table-body-row-file-name-hover-text-color: #06a7ff;
18
+ --table-body-row-content-text-color: #818999;
47
19
  }
48
20
  .pops-folder-list .cursor-p {
49
21
  cursor: pointer;
@@ -52,7 +24,7 @@
52
24
  background: 0 0;
53
25
  text-decoration: none;
54
26
  -webkit-tap-highlight-color: transparent;
55
- color: #05082c;
27
+ color: var(--header-breadcrumb-text-color);
56
28
  }
57
29
  table.pops-folder-list-table__body,
58
30
  table.pops-folder-list-table__header {
@@ -88,11 +60,9 @@ table.pops-folder-list-table__body {
88
60
  height: 50px;
89
61
  line-height: normal;
90
62
  align-content: center;
91
- color: rgb(129, 137, 153);
63
+ color: var(--table-header-row-text-color);
92
64
  text-align: left;
93
65
  font-size: 12px;
94
- }
95
- .pops-folder-list-table__header-row {
96
66
  -webkit-user-select: none;
97
67
  -moz-user-select: none;
98
68
  -ms-user-select: none;
@@ -102,19 +72,22 @@ table.pops-folder-list-table__body {
102
72
  height: 50px;
103
73
  line-height: normal;
104
74
  align-content: center;
105
- color: #03081a;
75
+ color: var(--table-body-row-text-color);
106
76
  font-size: 12px;
107
77
  }
108
78
  .pops-folder-list-table__body-row:hover {
109
- background: rgb(245, 246, 247, var(--pops-bg-opacity));
79
+ background-color: var(--table-body-row-hover-bg-color);
80
+ border-color: var(--table-body-row-hover-bd-color);
81
+ border: 0;
82
+ outline: none;
110
83
  }
111
84
  .pops-folder-list table th {
112
85
  border: 0;
113
- border-bottom: 1px solid rgb(247, 248, 250, var(--pops-bg-opacity));
86
+ border-bottom: 1px solid var(--table-body-th-text-color);
114
87
  }
115
88
  .pops-folder-list table td {
116
89
  border: 0;
117
- border-bottom: 1px solid rgb(247, 248, 250, var(--pops-bg-opacity));
90
+ border-bottom: 1px solid var(--table-body-td-text-color);
118
91
  position: relative;
119
92
  }
120
93
  .pops-folder-list .list-name-text {
@@ -187,9 +160,12 @@ table.pops-folder-list-table__body {
187
160
  display: none;
188
161
  }
189
162
 
190
- .pops-folder-list-file-name-title-text:hover {
163
+ .pops-folder-list .pops-folder-list-file-name-title-text {
164
+ color: var(--table-body-row-file-name-text-color);
165
+ }
166
+ .pops-folder-list .pops-folder-list-file-name-title-text:hover {
191
167
  text-decoration: none;
192
- color: rgb(6, 167, 255);
168
+ color: var(--table-body-row-file-name-hover-text-color);
193
169
  }
194
170
  .pops-folder-list .text-ellip {
195
171
  overflow: hidden;
@@ -197,7 +173,7 @@ table.pops-folder-list-table__body {
197
173
  text-overflow: ellipsis;
198
174
  }
199
175
  .pops-folder-list .content {
200
- color: rgb(129, 137, 153);
176
+ color: var(--table-body-row-content-text-color);
201
177
  position: relative;
202
178
  width: 100%;
203
179
  text-align: left;
@@ -251,10 +227,10 @@ table.pops-folder-list-table__body {
251
227
  .pops-folder-list .pops-folder-icon-arrow {
252
228
  width: 10px;
253
229
  height: 10px;
254
- fill: rgb(212, 215, 222);
230
+ fill: var(--folder-arrow-fill-color);
255
231
  }
256
232
  .pops-folder-list .pops-folder-icon-active {
257
- fill: rgb(6, 167, 255);
233
+ fill: var(--folder-arrow-active-fill-color);
258
234
  }
259
235
  .pops-folder-list .pops-folder-file-list-breadcrumb {
260
236
  padding: 4px 20px;
@@ -281,7 +257,7 @@ table.pops-folder-list-table__body {
281
257
  }
282
258
  .pops-folder-list .pops-folder-file-list-breadcrumb-allFiles {
283
259
  font-size: 12px;
284
- color: #333;
260
+ color: var(--header-breadcrumb-all-files-text-color);
285
261
  line-height: normal;
286
262
  align-content: center;
287
263
  font-weight: 700;
@@ -293,11 +269,11 @@ table.pops-folder-list-table__body {
293
269
  word-wrap: normal;
294
270
  }
295
271
  .pops-folder-list .pops-folder-file-list-breadcrumb-allFiles:last-child a {
296
- color: rgb(153, 153, 153);
272
+ color: var(--header-breadcrumb-all-files-last-text-color);
297
273
  }
298
274
  .pops-folder-list .pops-folder-file-list-breadcrumb-allFiles:first-child a {
299
275
  font-size: 14px;
300
- color: rgb(18, 22, 26);
276
+ color: var(--header-breadcrumb-all-files-first-text-color);
301
277
  }
302
278
  .pops-folder-list .pops-folder-file-list-breadcrumb .iconArrow {
303
279
  width: 16px;
@@ -307,3 +283,32 @@ table.pops-folder-list-table__body {
307
283
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAASCAMAAABYd88+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABFUExURUdwTOLi4uLi4t7e3uPj49/f397e3t3d3f///97e3vDw8N3d3d7e3t3d3d3d3ejo6N/f397e3t7e3t3d3d/f393d3d3d3RK+NoEAAAAWdFJOUwAnM4YPU/iQA+UIeMDaHhY41i7zX7UebpjFAAAAUElEQVQI15XOORaAIAwE0LATXHCd+x9VfCiksXCq+UUWou8oZ1vXHrt7YVBiYkW4gdMKYFIC4CSATWCNHWPuM6HuHkr1x3N0ZrBu/9gl0b9c3+kF7C7hS1YAAAAASUVORK5CYII=)
308
284
  55% 50%/6px 9px no-repeat;
309
285
  }
286
+
287
+ @media (prefers-color-scheme: dark) {
288
+ .pops[type-value="folder"] {
289
+ --pops-title-border-color: rgb(73, 83, 102, var(--pops-bg-opacity));
290
+ --pops-bottom-btn-controls-border-color: rgb(
291
+ 73,
292
+ 83,
293
+ 102,
294
+ var(--pops-bg-opacity)
295
+ );
296
+ }
297
+ .pops-folder-list {
298
+ --header-breadcrumb-text-color: #06a7ff;
299
+ --header-breadcrumb-all-files-text-color: var(
300
+ --header-breadcrumb-text-color
301
+ );
302
+ --header-breadcrumb-all-files-first-text-color: var(
303
+ --header-breadcrumb-text-color
304
+ );
305
+ --header-breadcrumb-all-files-last-text-color: #818999;
306
+ --table-body-row-text-color: #f7f8fa;
307
+ --table-body-td-text-color: rgb(73, 83, 102, var(--pops-bg-opacity));
308
+ --table-body-th-text-color: rgb(73, 83, 102, var(--pops-bg-opacity));
309
+ --table-body-td-text-color: #495366;
310
+ --table-body-row-hover-bd-color: #1f2022;
311
+ --table-body-row-hover-bg-color: #1f2022;
312
+ --table-body-row-file-name-text-color: #f7f8fa;
313
+ }
314
+ }
@@ -122,14 +122,14 @@ export const PopsFolder = {
122
122
  PopsType,
123
123
  config,
124
124
  /*html*/ `
125
- <div class="pops-folder-title" style="text-align: ${
126
- config.title.position
127
- };${headerStyle}">${
125
+ <div class="pops-title pops-${PopsType}-title" style="text-align: ${
126
+ config.title.position
127
+ };${headerStyle}">${
128
128
  config.title.html
129
129
  ? config.title.text
130
130
  : `<p pops style="${headerPStyle}">${config.title.text}</p>`
131
131
  }${headerBtnHTML}</div>
132
- <div class="pops-folder-content ${
132
+ <div class="pops-content pops-${PopsType}-content ${
133
133
  popsUtils.isPhone() ? "pops-mobile-folder-content" : ""
134
134
  }">
135
135
  <div class="pops-folder-list">
@@ -2,38 +2,8 @@
2
2
  --container-title-height: 55px;
3
3
  transition: width 0.35s ease, height 0.35s ease;
4
4
  }
5
- .pops[type-value] .pops-iframe-title {
6
- display: flex;
7
- align-items: center;
8
- justify-content: space-between;
9
- }
10
- .pops[type-value="iframe"] .pops-iframe-title {
11
- width: calc(100% - 0px);
12
- height: var(--container-title-height);
13
- border-bottom: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
14
- }
15
- .pops[type-value="iframe"] .pops-iframe-title p[pops] {
16
- width: 100%;
17
- overflow: hidden;
18
- color: rgb(51, 51, 51);
19
- text-indent: 15px;
20
- text-overflow: ellipsis;
21
- white-space: nowrap;
22
- font-weight: 500;
23
- line-height: normal;
24
- align-content: center;
25
- }
26
- .pops[type-value="iframe"] .pops-iframe-content {
27
- width: 100%;
28
- /*height: calc(100% - var(--container-title-height));*/
29
- flex: 1;
5
+ .pops[type-value="iframe"] .pops-content {
30
6
  overflow: hidden;
31
- word-break: break-word;
32
- }
33
- .pops[type-value="iframe"] .pops-iframe-content p[pops] {
34
- padding: 5px 10px;
35
- color: #333;
36
- text-indent: 15px;
37
7
  }
38
8
  .pops-loading {
39
9
  position: absolute;
@@ -85,8 +55,8 @@
85
55
  height: 100% !important;
86
56
  }
87
57
  .pops[type-value="iframe"] iframe[pops] {
88
- width: calc(100% - 4px);
89
- height: calc(100% - 4px);
58
+ width: 100%;
59
+ height: 100%;
90
60
  border: 0;
91
61
  }
92
62
  .pops-iframe-content-global-loading {
@@ -58,15 +58,15 @@ export const PopsIframe = {
58
58
  PopsType,
59
59
  config,
60
60
  /*html*/ `
61
- <div class="pops-iframe-title" style="text-align: ${
62
- config.title.position
63
- };${headerStyle}">${
61
+ <div class="pops-title pops-${PopsType}-title" style="text-align: ${
62
+ config.title.position
63
+ };${headerStyle}">${
64
64
  config.title.html
65
65
  ? titleText
66
66
  : `<p pops style="${headerPStyle}">${titleText}</p>`
67
67
  }${headerBtnHTML}</div>
68
- <div class="pops-iframe-content">
69
- <div class="pops-iframe-content-global-loading"></div>
68
+ <div class="pops-content pops-${PopsType}-content">
69
+ <div class="pops-${PopsType}-content-global-loading"></div>
70
70
  <iframe src="${config.url}" pops ${
71
71
  config.sandbox
72
72
  ? "sandbox='allow-forms allow-same-origin allow-scripts'"