dsh-plugin-core-demo 0.12.0 → 0.12.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.
- package/dist/client.js +23 -22
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -3804,11 +3804,11 @@ function blockNodes() {
|
|
|
3804
3804
|
return cells.map((i2) => (0, import_react8.createElement)("rect", {
|
|
3805
3805
|
key: i2,
|
|
3806
3806
|
className: "dshpc-loader__node",
|
|
3807
|
-
x:
|
|
3808
|
-
y:
|
|
3809
|
-
width:
|
|
3810
|
-
height: 6
|
|
3811
|
-
rx: 1.
|
|
3807
|
+
x: 0.6 + i2 * 7.8,
|
|
3808
|
+
y: 9,
|
|
3809
|
+
width: 7.2,
|
|
3810
|
+
height: 6,
|
|
3811
|
+
rx: 1.5,
|
|
3812
3812
|
fill: "currentColor"
|
|
3813
3813
|
}));
|
|
3814
3814
|
}
|
|
@@ -6597,14 +6597,17 @@ function LoaderBar(props) {
|
|
|
6597
6597
|
}, (0, import_react27.createElement)(
|
|
6598
6598
|
"defs",
|
|
6599
6599
|
null,
|
|
6600
|
-
//
|
|
6601
|
-
|
|
6600
|
+
// 直接拿「蓝色段」自己的路径当裁剪区:它左端是圆的、**右端是平直的**
|
|
6601
|
+
// (进度刚走到一大半,右边界是一条切面,不能带弧度)。
|
|
6602
|
+
// 早先用 rect + rx 裁,四个角都是圆的 ⇒ 右端被裁成弧形,看着像走满了。
|
|
6603
|
+
(0, import_react27.createElement)("clipPath", { id: clipId }, (0, import_react27.createElement)("path", { d: fill.d }))
|
|
6602
6604
|
), (0, import_react27.createElement)("path", { d: track.d, fill: track.fill }), (0, import_react27.createElement)("path", { d: fill.d, fill: fill.fill }), (0, import_react27.createElement)("g", { clipPath: `url(#${clipId})` }, (0, import_react27.createElement)(
|
|
6603
6605
|
"g",
|
|
6604
6606
|
{ className: "dshpc-loader-bar__stripe" },
|
|
6605
|
-
(0, import_react27.createElement)("
|
|
6606
|
-
|
|
6607
|
-
|
|
6607
|
+
...[0, 1, 2].map((step) => (0, import_react27.createElement)("g", {
|
|
6608
|
+
key: step,
|
|
6609
|
+
transform: step === 0 ? void 0 : `translate(${String(-STRIPE_PERIOD * step)} 0)`
|
|
6610
|
+
}, (0, import_react27.createElement)("path", { d: stripe.d, fill: stripe.fill })))
|
|
6608
6611
|
)));
|
|
6609
6612
|
}
|
|
6610
6613
|
|
|
@@ -60467,9 +60470,8 @@ var CODE_LOADER = `// \u53EA\u753B\u56FE\u6807\uFF1A\u65E0\u80CC\u666F\u3001\u65
|
|
|
60467
60470
|
// \u989C\u8272\u8DDF currentColor \u8D70\uFF0C\u4E0D\u7528\u4F20 color
|
|
60468
60471
|
<span style={{ color: 'var(--dshpc-business)' }}><Loader variant="ring" /></span>
|
|
60469
60472
|
|
|
60470
|
-
// \u540C\u65CF\u7684\u80F6\u56CA\u4E0D\u5B9A\u8FDB\u5EA6\uFF08\u540C\u6837\u53EA\u753B\u56FE\u5F62\uFF1B\u84DD\u8272\u6BB5\u56FA\u5B9A\uFF0C\u659C\u7EB9\
|
|
60471
|
-
<LoaderBar size="md"
|
|
60472
|
-
<LoaderBar size="md" animated={false} /> // \u505C\u4F4F\uFF08\u622A\u56FE / \u6253\u5370\uFF09`;
|
|
60473
|
+
// \u540C\u65CF\u7684\u80F6\u56CA\u4E0D\u5B9A\u8FDB\u5EA6\uFF08\u540C\u6837\u53EA\u753B\u56FE\u5F62\uFF1B\u84DD\u8272\u6BB5\u56FA\u5B9A\uFF0C\u659C\u7EB9\u5411\u53F3\u6D41\u52A8\uFF09
|
|
60474
|
+
<LoaderBar size="md" />`;
|
|
60473
60475
|
var CODE_LOADING = `// \u547D\u4EE4\u5F0F\uFF1A\u5168\u5C40\u53EA\u6709\u4E00\u5F20\u5361\uFF08\u540E\u4E00\u6B21\u9876\u6389\u524D\u4E00\u6B21\uFF09\uFF0C\u4E14\u4E0D\u4F1A\u81EA\u5DF1\u6D88\u5931 \u2014\u2014 \u4E00\u5B9A\u8981 close()
|
|
60474
60476
|
const loading = showLoading({ text: '\u6B63\u5728\u52A0\u8F7D\u6570\u636E\u2026' })
|
|
60475
60477
|
loading.close() // \u9ED8\u8BA4\u5C4F\u5E55\u4E0B\u65B9\u5C45\u4E2D\uFF0C\u4E0E Toast \u540C\u5C4F\u4F4D
|
|
@@ -60847,14 +60849,13 @@ function FeedbackPage() {
|
|
|
60847
60849
|
),
|
|
60848
60850
|
(0, import_react61.createElement)("span", { style: { color: "var(--dshpc-business)" } }, (0, import_react61.createElement)(Loader, { size: "lg" }))
|
|
60849
60851
|
),
|
|
60850
|
-
// 同族的胶囊不定进度:三档尺寸
|
|
60852
|
+
// 同族的胶囊不定进度:三档尺寸
|
|
60851
60853
|
(0, import_react61.createElement)(
|
|
60852
60854
|
"div",
|
|
60853
60855
|
{ style: { display: "flex", alignItems: "center", gap: "20px", flexWrap: "wrap" } },
|
|
60854
60856
|
(0, import_react61.createElement)(LoaderBar, { size: "sm" }),
|
|
60855
60857
|
(0, import_react61.createElement)(LoaderBar, { size: "md" }),
|
|
60856
|
-
(0, import_react61.createElement)(LoaderBar, { size: "lg" })
|
|
60857
|
-
(0, import_react61.createElement)(LoaderBar, { size: "lg", animated: false })
|
|
60858
|
+
(0, import_react61.createElement)(LoaderBar, { size: "lg" })
|
|
60858
60859
|
)
|
|
60859
60860
|
)
|
|
60860
60861
|
),
|
|
@@ -62948,9 +62949,9 @@ function ReferencePage() {
|
|
|
62948
62949
|
"tbody",
|
|
62949
62950
|
null,
|
|
62950
62951
|
[
|
|
62951
|
-
[t3("buildCore"), `v${"0.12.
|
|
62952
|
-
[t3("buildDemo"), `v${"0.12.
|
|
62953
|
-
[t3("buildStamp"), "261030-
|
|
62952
|
+
[t3("buildCore"), `v${"0.12.1"}`],
|
|
62953
|
+
[t3("buildDemo"), `v${"0.12.1"}`],
|
|
62954
|
+
[t3("buildStamp"), "261030-072641-278"]
|
|
62954
62955
|
].map(
|
|
62955
62956
|
([label, value]) => (0, import_react71.createElement)(
|
|
62956
62957
|
"tr",
|
|
@@ -63272,9 +63273,9 @@ function DemoPage() {
|
|
|
63272
63273
|
lineHeight: "14px"
|
|
63273
63274
|
}
|
|
63274
63275
|
},
|
|
63275
|
-
(0, import_react73.createElement)("span", null, `core v${"0.12.
|
|
63276
|
-
(0, import_react73.createElement)("span", null, `demo v${"0.12.
|
|
63277
|
-
(0, import_react73.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261030-
|
|
63276
|
+
(0, import_react73.createElement)("span", null, `core v${"0.12.1"}`),
|
|
63277
|
+
(0, import_react73.createElement)("span", null, `demo v${"0.12.1"}`),
|
|
63278
|
+
(0, import_react73.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261030-072641-278")
|
|
63278
63279
|
)
|
|
63279
63280
|
)
|
|
63280
63281
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-core-demo",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "The shared UI foundation for DSH plugins, with a live component preview: design tokens, common controls, workspace browsing and notifications maintained in one place — install it to preview every component in a real host.",
|
|
5
5
|
"icon": "./assets/icon-components.svg",
|
|
6
6
|
"keywords": [
|