react-blockkit 0.3.2 → 0.3.3
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/README.md +3 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +45 -17
- package/dist/index.js.map +1 -1
- package/dist/styles.css +24 -0
- package/dist/styles.d.ts +1 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/text/Markdown.d.ts.map +1 -1
- package/dist/text/Mrkdwn.d.ts +7 -1
- package/dist/text/Mrkdwn.d.ts.map +1 -1
- package/docs/slack-style-baseline.md +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -673,6 +673,26 @@ var Se = {
|
|
|
673
673
|
kZCmMZ: "x1j7nfk9",
|
|
674
674
|
$$css: !0
|
|
675
675
|
},
|
|
676
|
+
listItemTask: {
|
|
677
|
+
kGNEyG: "x1cy8zhl",
|
|
678
|
+
k1xSpc: "x78zum5",
|
|
679
|
+
kH6xsr: "x3ct3a4",
|
|
680
|
+
keTefX: "x9pbi5e",
|
|
681
|
+
$$css: !0
|
|
682
|
+
},
|
|
683
|
+
listTaskCheckbox: {
|
|
684
|
+
kGNEyG: "x6s0dn4",
|
|
685
|
+
k1xSpc: "x3nfvp2",
|
|
686
|
+
kmuXW: "x2lah0s",
|
|
687
|
+
kZKoxP: "xx3o462",
|
|
688
|
+
kjj79g: "xl56j7k",
|
|
689
|
+
k1K539: "xat24cr",
|
|
690
|
+
keoZOQ: "x7r5mf7",
|
|
691
|
+
k71WvV: "xbelrpt",
|
|
692
|
+
keTefX: "x1xkedpm",
|
|
693
|
+
kzqmXN: "x17z2i9w",
|
|
694
|
+
$$css: !0
|
|
695
|
+
},
|
|
676
696
|
listBullet: {
|
|
677
697
|
k3DiCg: "x14alfy",
|
|
678
698
|
kuPSpR: "xo40evb",
|
|
@@ -3075,12 +3095,14 @@ function It({ token: e }) {
|
|
|
3075
3095
|
}
|
|
3076
3096
|
return _(e);
|
|
3077
3097
|
}
|
|
3078
|
-
function I({ className: e,
|
|
3079
|
-
let
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3098
|
+
function I({ className: e, inline: t = !1, text: n }) {
|
|
3099
|
+
let r = g(O.text), i = {
|
|
3100
|
+
...r,
|
|
3101
|
+
className: A(r.className, e)
|
|
3102
|
+
}, a = Ft(n).map((e, t) => /* @__PURE__ */ u(It, { token: e }, `${e.kind}-${String(t)}`));
|
|
3103
|
+
return u(t ? "span" : "div", {
|
|
3104
|
+
...i,
|
|
3105
|
+
children: a
|
|
3084
3106
|
});
|
|
3085
3107
|
}
|
|
3086
3108
|
//#endregion
|
|
@@ -3234,21 +3256,27 @@ function Wt({ token: e }) {
|
|
|
3234
3256
|
children: e.text
|
|
3235
3257
|
});
|
|
3236
3258
|
case "list": {
|
|
3237
|
-
let n = e.
|
|
3238
|
-
...g(n),
|
|
3239
|
-
key: `${
|
|
3240
|
-
},
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3259
|
+
let n = e.items.map((n, r) => /* @__PURE__ */ t("li", {
|
|
3260
|
+
...g(e.ordered ? O.listItemOrdered : n.task ? O.listItemTask : [O.listItemBullet, O.listBullet]),
|
|
3261
|
+
key: `${n.text}-${String(r)}`
|
|
3262
|
+
}, n.task ? /* @__PURE__ */ u("span", {
|
|
3263
|
+
...g(O.listTaskCheckbox),
|
|
3264
|
+
children: /* @__PURE__ */ u("input", {
|
|
3265
|
+
checked: n.checked,
|
|
3266
|
+
disabled: !0,
|
|
3267
|
+
readOnly: !0,
|
|
3268
|
+
type: "checkbox"
|
|
3269
|
+
})
|
|
3270
|
+
}) : null, /* @__PURE__ */ u(I, {
|
|
3271
|
+
inline: !0,
|
|
3272
|
+
text: Ht(n.text)
|
|
3273
|
+
})));
|
|
3246
3274
|
return e.ordered ? /* @__PURE__ */ u("ol", {
|
|
3247
3275
|
...g(O.list, O.listOrdered),
|
|
3248
|
-
children:
|
|
3276
|
+
children: n
|
|
3249
3277
|
}) : /* @__PURE__ */ u("ul", {
|
|
3250
3278
|
...g(O.list),
|
|
3251
|
-
children:
|
|
3279
|
+
children: n
|
|
3252
3280
|
});
|
|
3253
3281
|
}
|
|
3254
3282
|
case "table": return /* @__PURE__ */ u("div", {
|