@blocklet/discuss-kit-ux 2.3.94 → 2.3.95

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.
@@ -4,7 +4,7 @@ import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangeP
4
4
  import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
5
5
  import { SafeAreaPlugin } from "@blocklet/editor/lib/ext/SafeAreaPlugin";
6
6
  import { lazyRetry } from "@arcblock/ux/lib/Util";
7
- import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-Cdy8-Zg8.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-5yTRBbbn.mjs";
8
8
  const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -1266,7 +1266,6 @@ function ProfileCard({ user, click, ...rest }) {
1266
1266
  borderRadius: 1,
1267
1267
  fontSize: 14,
1268
1268
  color: "grey.700",
1269
- boxShadow: "0 8px 24px rgba(140,149,159,0.2);",
1270
1269
  bgcolor: "background.paper"
1271
1270
  },
1272
1271
  ...rest,
@@ -5093,7 +5092,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
5093
5092
  }
5094
5093
  const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 14L21 3m0 0l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1z" }) });
5095
5094
  const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M14 15.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0-7 0M3 19V8.5a3.5 3.5 0 0 1 7 0V19m-7-6h7m11-1v7" }) });
5096
- const Editor = lazyRetry(() => import("./editor-B-PsBOgd.mjs"));
5095
+ const Editor = lazyRetry(() => import("./editor-varp6jK_.mjs"));
5097
5096
  function LazyEditor(props) {
5098
5097
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
5099
5098
  /* @__PURE__ */ jsx(Skeleton, {}),
@@ -12563,7 +12562,19 @@ function SegmentedControl({ value, options, onChange, sx, ...rest }) {
12563
12562
  }
12564
12563
  },
12565
12564
  children: options.map((x) => {
12566
- return /* @__PURE__ */ jsx(ToggleButton, { value: x.value, children: x.label }, x.value);
12565
+ return /* @__PURE__ */ jsx(
12566
+ ToggleButton,
12567
+ {
12568
+ value: x.value,
12569
+ sx: {
12570
+ "&.Mui-selected": {
12571
+ backgroundColor: "action.hover"
12572
+ }
12573
+ },
12574
+ children: x.label
12575
+ },
12576
+ x.value
12577
+ );
12567
12578
  })
12568
12579
  }
12569
12580
  ) });
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { W, o, Y, aQ, A, n, af, B, G, N, L, O, ar, _, Z, a1, $, a0, a3, x, C, y, z, F, a7, a8, aj, aa, T, U, ae, D, ai, ah, K, H, J, aG, aH, b, m, ag, M, P, aC, aq, w, aR, aS, v, aE, aF, R, S, ab, as, aD, q, aP, a4, a6, ak, an, am, aM, aI, aA, at, Q, ao, aK, au, aJ, ax, ay, aN, aL, l, az, h, p, r, k, aw, t, j, ac, aB, X, aT, c, a2, E, a9, ad, aV, e, u, ap, d, av, aU, aO, a5, al, f } from "./index-Cdy8-Zg8.mjs";
2
+ import { W, o, Y, aQ, A, n, af, B, G, N, L, O, ar, _, Z, a1, $, a0, a3, x, C, y, z, F, a7, a8, aj, aa, T, U, ae, D, ai, ah, K, H, J, aG, aH, b, m, ag, M, P, aC, aq, w, aR, aS, v, aE, aF, R, S, ab, as, aD, q, aP, a4, a6, ak, an, am, aM, aI, aA, at, Q, ao, aK, au, aJ, ax, ay, aN, aL, l, az, h, p, r, k, aw, t, j, ac, aB, X, aT, c, a2, E, a9, ad, aV, e, u, ap, d, av, aU, aO, a5, al, f } from "./index-5yTRBbbn.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -1183,7 +1183,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1183
1183
  borderRadius: 1,
1184
1184
  fontSize: 14,
1185
1185
  color: "grey.700",
1186
- boxShadow: "0 8px 24px rgba(140,149,159,0.2);",
1187
1186
  bgcolor: "background.paper"
1188
1187
  },
1189
1188
  ...rest,
@@ -12480,7 +12479,19 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
12480
12479
  }
12481
12480
  },
12482
12481
  children: options.map((x) => {
12483
- return /* @__PURE__ */ jsxRuntime.jsx(material.ToggleButton, { value: x.value, children: x.label }, x.value);
12482
+ return /* @__PURE__ */ jsxRuntime.jsx(
12483
+ material.ToggleButton,
12484
+ {
12485
+ value: x.value,
12486
+ sx: {
12487
+ "&.Mui-selected": {
12488
+ backgroundColor: "action.hover"
12489
+ }
12490
+ },
12491
+ children: x.label
12492
+ },
12493
+ x.value
12494
+ );
12484
12495
  })
12485
12496
  }
12486
12497
  ) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.3.94",
3
+ "version": "2.3.95",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -48,8 +48,8 @@
48
48
  "unstated-next": "^1.1.0",
49
49
  "url-join": "^4.0.1",
50
50
  "zustand": "^4.5.5",
51
- "@blocklet/editor": "^2.3.94",
52
- "@blocklet/labels": "^2.3.94"
51
+ "@blocklet/editor": "^2.3.95",
52
+ "@blocklet/labels": "^2.3.95"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@arcblock/did-connect": "^2.10.36",