@next-bricks/basic-bricks 1.192.2 → 1.194.1

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,37 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="105px" height="55px" viewBox="0 0 105 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>basic-bricks.easy-view</title>
4
+ <g id="lydia" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="构件概览图二" transform="translate(-719.000000, -537.000000)">
6
+ <g id="basic-bricks.easy-view" transform="translate(719.000000, 537.000000)">
7
+ <rect id="矩形备份-117" fill="#FFFFFF" x="0" y="0" width="105" height="55" rx="4"></rect>
8
+ <rect id="矩形备份-76" fill="#778DC3" x="22" y="11" width="1" height="4"></rect>
9
+ <rect id="矩形备份-90" fill="#778DC3" x="22.8202564" y="11" width="1" height="4"></rect>
10
+ <rect id="矩形备份-91" fill="#778DC3" x="23.6405128" y="11" width="1" height="4"></rect>
11
+ <rect id="矩形备份-92" fill="#778DC3" x="24.4607692" y="11" width="1" height="4"></rect>
12
+ <rect id="矩形备份-93" fill="#778DC3" x="25.2810256" y="11" width="1" height="4"></rect>
13
+ <rect id="矩形备份-94" fill="#778DC3" x="26.1012821" y="11" width="1" height="4"></rect>
14
+ <rect id="矩形备份-95" fill="#778DC3" x="26.9215385" y="11" width="1" height="4"></rect>
15
+ <rect id="矩形备份-96" fill="#778DC3" x="27.7417949" y="11" width="1" height="4"></rect>
16
+ <rect id="矩形备份-97" fill="#778DC3" x="28.5620513" y="11" width="1" height="4"></rect>
17
+ <rect id="矩形备份-98" fill="#778DC3" x="30.2025641" y="11" width="1" height="4"></rect>
18
+ <rect id="矩形备份-99" fill="#778DC3" x="37.5848718" y="11" width="1" height="4"></rect>
19
+ <rect id="矩形备份-100" fill="#778DC3" x="29.3823077" y="11" width="1" height="4"></rect>
20
+ <rect id="矩形备份-101" fill="#778DC3" x="31.0228205" y="11" width="1" height="4"></rect>
21
+ <rect id="矩形备份-102" fill="#778DC3" x="31.8430769" y="11" width="1" height="4"></rect>
22
+ <rect id="矩形备份-103" fill="#778DC3" x="32.6633333" y="11" width="1" height="4"></rect>
23
+ <rect id="矩形备份-104" fill="#778DC3" x="33.4835897" y="11" width="1" height="4"></rect>
24
+ <rect id="矩形备份-105" fill="#778DC3" x="34.3038462" y="11" width="1" height="4"></rect>
25
+ <rect id="矩形备份-106" fill="#778DC3" x="35.1241026" y="11" width="1" height="4"></rect>
26
+ <rect id="矩形备份-107" fill="#778DC3" x="35.944359" y="11" width="1" height="4"></rect>
27
+ <rect id="矩形备份-108" fill="#778DC3" x="36.7646154" y="11" width="1" height="4"></rect>
28
+ <rect id="矩形备份-43" fill="#1A7AFF" x="88" y="11" width="12" height="5" rx="1"></rect>
29
+ <rect id="矩形" fill="#F4F5F9" x="22" y="17" width="21.5454545" height="35" rx="2"></rect>
30
+ <rect id="矩形备份-122" fill="#F4F5F9" x="45.5974026" y="32.2564103" width="54" height="19.7435897" rx="2"></rect>
31
+ <rect id="矩形备份-123" fill="#F4F5F9" x="46" y="17" width="54" height="13.4615385" rx="2"></rect>
32
+ <path d="M4,0 L18,0 L18,0 L18,55 L4,55 C1.790861,55 2.705415e-16,53.209139 0,51 L0,4 C-2.705415e-16,1.790861 1.790861,2.18216909e-15 4,0 Z" id="矩形备份-117" fill="#D6DBEC"></path>
33
+ <path d="M4,0 L101,0 C103.209139,-4.05812251e-16 105,1.790861 105,4 L105,9 L105,9 L0,9 L0,4 C-2.705415e-16,1.790861 1.790861,4.05812251e-16 4,0 Z" id="矩形备份-117" fill="#778DC3"></path>
34
+ </g>
35
+ </g>
36
+ </g>
37
+ </svg>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="105px" height="55px" viewBox="0 0 105 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>basic-bricks.general-button</title>
4
+ <g id="nora" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="构件概览图一" transform="translate(-48.000000, -105.000000)">
6
+ <g id="basic-bricks.general-button" transform="translate(48.000000, 105.000000)">
7
+ <rect id="矩形备份-22" x="0" y="0" width="105" height="55" rx="4"></rect>
8
+ <g id="编组-2备份" transform="translate(22.000000, 13.000000)">
9
+ <rect id="矩形" fill="#1A7AFF" x="0" y="0" width="60" height="28" rx="6"></rect>
10
+ <text id="按钮" font-family="PingFangSC-Regular, PingFang SC" font-size="14" font-weight="normal" fill="#FFFFFF">
11
+ <tspan x="16" y="19">按钮</tspan>
12
+ </text>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="105px" height="55px" viewBox="0 0 105 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>basic-bricks.micro-view</title>
4
+ <g id="nora" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="构件概览图一" transform="translate(-552.000000, -104.000000)">
6
+ <g id="basic-bricks.micro-view" transform="translate(552.000000, 104.000000)">
7
+ <rect id="矩形" x="0" y="0" width="105" height="55" rx="4"></rect>
8
+ <g id="编组-2" transform="translate(4.000000, 4.000000)">
9
+ <rect id="矩形" fill="#F4F5F9" x="0" y="26" width="97" height="21" rx="1"></rect>
10
+ <rect id="矩形备份-23" fill="#F4F5F9" x="0" y="8" width="97" height="14" rx="1"></rect>
11
+ <g id="编组-4" fill="#778DC3">
12
+ <rect id="矩形备份-76" x="0.82025641" y="0" width="1" height="4"></rect>
13
+ <rect id="矩形备份-90" x="1.64051282" y="0" width="1" height="4"></rect>
14
+ <rect id="矩形备份-91" x="2.46076923" y="0" width="1" height="4"></rect>
15
+ <rect id="矩形备份-92" x="3.28102564" y="0" width="1" height="4"></rect>
16
+ <rect id="矩形备份-93" x="0" y="0" width="1" height="4"></rect>
17
+ <rect id="矩形备份-94" x="4.10128205" y="0" width="1" height="4"></rect>
18
+ <rect id="矩形备份-95" x="4.92153846" y="0" width="1" height="4"></rect>
19
+ <rect id="矩形备份-96" x="5.74179487" y="0" width="1" height="4"></rect>
20
+ <rect id="矩形备份-97" x="6.56205128" y="0" width="1" height="4"></rect>
21
+ <rect id="矩形备份-98" x="8.2025641" y="0" width="1" height="4"></rect>
22
+ <rect id="矩形备份-99" x="15.5848718" y="0" width="1" height="4"></rect>
23
+ <rect id="矩形备份-100" x="7.38230769" y="0" width="1" height="4"></rect>
24
+ <rect id="矩形备份-101" x="9.02282051" y="0" width="1" height="4"></rect>
25
+ <rect id="矩形备份-102" x="9.84307692" y="0" width="1" height="4"></rect>
26
+ <rect id="矩形备份-103" x="10.6633333" y="0" width="1" height="4"></rect>
27
+ <rect id="矩形备份-104" x="11.4835897" y="0" width="1" height="4"></rect>
28
+ <rect id="矩形备份-105" x="12.3038462" y="0" width="1" height="4"></rect>
29
+ <rect id="矩形备份-106" x="13.1241026" y="0" width="1" height="4"></rect>
30
+ <rect id="矩形备份-107" x="13.944359" y="0" width="1" height="4"></rect>
31
+ <rect id="矩形备份-108" x="14.7646154" y="0" width="1" height="4"></rect>
32
+ </g>
33
+ <rect id="矩形备份-24" fill="#D6DBEC" x="86" y="0" width="12" height="4" rx="1"></rect>
34
+ <rect id="矩形备份-26" fill="#F7BF05" x="72" y="0" width="12" height="4" rx="1"></rect>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </svg>
package/dist/stories.json CHANGED
@@ -301,8 +301,7 @@
301
301
  "zh": "基于网格的简易布局容器,可以根据 grid-area 名称自动生成对应的插槽"
302
302
  },
303
303
  "icon": {
304
- "lib": "fa",
305
- "icon": "th"
304
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.easy-view.15ba2e385acf5e9a.svg"
306
305
  },
307
306
  "conf": {
308
307
  "brick": "basic-bricks.easy-view",
@@ -988,8 +987,7 @@
988
987
  "zh": "可发送点击事件、可配置按钮名称、按钮跳转链接等"
989
988
  },
990
989
  "icon": {
991
- "lib": "fa",
992
- "icon": "pencil-alt"
990
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-button.7c984d49a9a7220c.svg"
993
991
  },
994
992
  "conf": [
995
993
  {
@@ -2043,7 +2041,7 @@
2043
2041
  {
2044
2042
  "description": {
2045
2043
  "title": "组合按钮1",
2046
- "message": "位置为页面的右上角区域。使用形态为图标+文字按钮,默认放置三个,其中一个为主按钮,放于所有按钮的最左侧;≥3 的情况下,展示出两个,其他按钮用下拉按钮收起,收纳在\"···\"的更多按钮中。"
2044
+ "message": "位置为页面的右上角区域。使用形态为图标+文字按钮,默认放置三个,其中一个为主按钮,放于所有按钮的最左侧;≥3 的情况下,默认展示出两个,其他按钮用下拉按钮收起,收纳在\"···\"的更多按钮中。"
2047
2045
  },
2048
2046
  "brick": "basic-bricks.general-custom-buttons",
2049
2047
  "properties": {
@@ -2310,7 +2308,7 @@
2310
2308
  {
2311
2309
  "description": {
2312
2310
  "title": "仅在卡片内部使用按钮",
2313
- "message": "仅在卡片内部操作区使用按钮时,使用圆形图标按钮的样式。内容卡片无标题和内容卡片有标题,图标置于标题分割线之下的场景,使用文字按钮/图标【常见的次级操作如刷新、设置、刷新、导出等】,默认放置四个。≥4 的情况,展示出三个,其他按钮用【···】收起。"
2311
+ "message": "仅在卡片内部操作区使用按钮时,使用圆形图标按钮的样式。图标置于标题分割线之下的场景,使用文字按钮/图标,默认放置四个。≥4 的情况,展示出三个,其他按钮用【···】收起。"
2314
2312
  },
2315
2313
  "brick": "basic-bricks.general-card",
2316
2314
  "properties": {
@@ -2432,7 +2430,7 @@
2432
2430
  {
2433
2431
  "description": {
2434
2432
  "title": "仅在卡片右上角操作区使用按钮",
2435
- "message": "仅在卡片右上角操作区使用按钮时,使用圆形图标按钮的样式。内容卡片无标题和内容卡片有标题,图标置于标题分割线之下的场景,使用文字按钮/图标【常见的次级操作如刷新、设置、刷新、导出等】,默认放置四个。≥4 的情况,展示出三个,其他按钮用【···】收起。"
2433
+ "message": "仅在卡片右上角操作区使用按钮时,使用圆形图标按钮的样式。内容卡片有标题,图标置于标题分割线之上的场景,使用文字按钮/图标,默认放置四个。≥4 的情况,展示出三个,其他按钮用【···】收起。"
2436
2434
  },
2437
2435
  "brick": "basic-bricks.general-card",
2438
2436
  "properties": {
@@ -2458,6 +2456,10 @@
2458
2456
  "properties": {
2459
2457
  "alignment": "end",
2460
2458
  "customButtons": [
2459
+ {
2460
+ "eventName": "default-button",
2461
+ "text": "次按钮"
2462
+ },
2461
2463
  {
2462
2464
  "buttonShape": "circle",
2463
2465
  "buttonType": "icon",
@@ -3227,18 +3229,19 @@
3227
3229
  "brick": "basic-bricks.general-custom-buttons",
3228
3230
  "properties": {
3229
3231
  "style": {
3230
- "marginRight": "var(--page-card-gap)"
3232
+ "marginRight": "var(--page-card-gap)",
3233
+ "marginLeft": "15px"
3231
3234
  },
3232
3235
  "alignment": "start",
3233
3236
  "customButtons": [
3234
3237
  {
3235
- "text": "取消",
3236
- "buttonType": "text",
3238
+ "buttonType": "primary",
3239
+ "text": "保存",
3237
3240
  "eventName": "drawer.close"
3238
3241
  },
3239
3242
  {
3240
- "buttonType": "primary",
3241
- "text": "保存",
3243
+ "text": "取消",
3244
+ "buttonType": "text",
3242
3245
  "eventName": "drawer.close"
3243
3246
  }
3244
3247
  ]
@@ -5257,8 +5260,7 @@
5257
5260
  "zh": "提供了 titleBar、toolbar、content、subMenu、banner、bannerTitleBar、bannerToolbar 插槽(也可通过 easy-view 的 snippet 直接使用)"
5258
5261
  },
5259
5262
  "icon": {
5260
- "lib": "fa",
5261
- "icon": "box"
5263
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.micro-view.34d279238a384ff1.svg"
5262
5264
  },
5263
5265
  "conf": [
5264
5266
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/basic-bricks",
3
- "version": "1.192.2",
3
+ "version": "1.194.1",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "https://github.com/easyops-cn/next-basics/tree/master/bricks/basic-bricks",
6
6
  "license": "GPL-3.0",
@@ -23,7 +23,7 @@
23
23
  "build:webpack": "npm run build:webpack:main && npm run build:webpack:editors",
24
24
  "build:webpack:main": "webpack --config webpack.config.js",
25
25
  "build:webpack:editors": "webpack --config webpack.editors.js",
26
- "build:stories": "if [ -d stories ];then tsc stories/index.ts --module commonjs --esModuleInterop --allowSyntheticDefaultImports --skipLibCheck --outDir dist/stories; else echo \" no stories \"; fi",
26
+ "build:stories": "if [ -d stories ];then rollup --config rollup.stories.js; else echo \" no stories \"; fi",
27
27
  "build:snippets": "if [ -d snippets ]; then rollup --config rollup.snippets.js; else echo \"no snippets.\"; fi",
28
28
  "postbuild": "ENABLE_GENERATE_DOC=true node scripts/post-build.js",
29
29
  "test": "cross-env NODE_ENV='test' jest",
@@ -39,5 +39,5 @@
39
39
  "immutability-helper": "^3.1.1"
40
40
  },
41
41
  "sideEffects": true,
42
- "gitHead": "58221f9d5fbf3fc99727cd62d428f00583d8c94c"
42
+ "gitHead": "42d6310f79751c12b3b28c2f6409d9c3e8e1da03"
43
43
  }