@lax-wp/design-system 0.9.4 → 0.9.6
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/index.es.js +13 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6686,13 +6686,14 @@ const R7 = io(null), MN = R7.Provider, oo = () => {
|
|
|
6686
6686
|
/* @__PURE__ */ l(
|
|
6687
6687
|
"button",
|
|
6688
6688
|
{
|
|
6689
|
+
type: "button",
|
|
6689
6690
|
onClick: () => y(N),
|
|
6690
6691
|
className: `mr-1 p-0.5 flex items-center justify-center rounded ${o ? "hover:bg-black-700 text-neutral-200" : "hover:bg-neutral-300 text-neutral-600"}`,
|
|
6691
6692
|
children: /* @__PURE__ */ l(qN, { isExpanded: P })
|
|
6692
6693
|
}
|
|
6693
6694
|
),
|
|
6694
6695
|
/* @__PURE__ */ l("span", { className: z(o ? "text-neutral-400" : "text-neutral-900", "text-sm font-medium"), children: P ? k === Ce.ARRAY ? `[${x.length} items]` : `{${Object.keys(x).length} items}` : k === Ce.ARRAY ? `[${x.length} items]` : "{...}" }),
|
|
6695
|
-
!d && /* @__PURE__ */ l("button", { className: "ml-2", onClick: () => f([N]), children: /* @__PURE__ */ l(VN, {}) })
|
|
6696
|
+
!d && /* @__PURE__ */ l("button", { type: "button", className: "ml-2", onClick: () => f([N]), children: /* @__PURE__ */ l(VN, {}) })
|
|
6696
6697
|
] }),
|
|
6697
6698
|
P && (Array.isArray(x) && x?.length > 0 || Object.keys(x).length > 0) && /* @__PURE__ */ l("div", { className: "ml-1.5 mt-3", children: /* @__PURE__ */ l(I7, { data: x, path: N, onChange: b }) })
|
|
6698
6699
|
] }) : /* @__PURE__ */ l(BN, { value: x, path: N, onChange: b, isDarkMode: o }) })
|
|
@@ -6709,6 +6710,7 @@ const R7 = io(null), MN = R7.Provider, oo = () => {
|
|
|
6709
6710
|
children: /* @__PURE__ */ l(
|
|
6710
6711
|
"button",
|
|
6711
6712
|
{
|
|
6713
|
+
type: "button",
|
|
6712
6714
|
onClick: () => c(N),
|
|
6713
6715
|
className: "p-1 rounded hover:bg-neutral-100 dark:hover:bg-black-700",
|
|
6714
6716
|
children: /* @__PURE__ */ l(WN, {})
|
|
@@ -7225,6 +7227,7 @@ const KN = () => /* @__PURE__ */ l("svg", { width: "16", height: "16", viewBox:
|
|
|
7225
7227
|
title: "New Key",
|
|
7226
7228
|
parentContainer: r,
|
|
7227
7229
|
width: 351,
|
|
7230
|
+
asForm: !0,
|
|
7228
7231
|
footer: /* @__PURE__ */ l("div", { className: "flex justify-end mt-5 gap-4", children: /* @__PURE__ */ l(
|
|
7229
7232
|
mt,
|
|
7230
7233
|
{
|
|
@@ -10634,11 +10637,12 @@ const Sa = z(
|
|
|
10634
10637
|
se === "Grid" && a && d && /* @__PURE__ */ l("span", { className: "flex items-center justify-center border-r border-neutral-200 dark:border-neutral-700 mr-1.5 pr-1.5", children: /* @__PURE__ */ l(He, { title: "Add key", children: /* @__PURE__ */ l(
|
|
10635
10638
|
"button",
|
|
10636
10639
|
{
|
|
10640
|
+
type: "button",
|
|
10637
10641
|
id: "btn-code-editor-json-grid-up",
|
|
10638
10642
|
onClick: () => ke(!0),
|
|
10639
10643
|
className: z(
|
|
10640
10644
|
"p-0.5 rounded-md flex items-center justify-center",
|
|
10641
|
-
"hover:bg-
|
|
10645
|
+
"hover:bg-primary-100 hover:dark:bg-neutral-800 text-primary-600 dark:text-neutral-100"
|
|
10642
10646
|
),
|
|
10643
10647
|
children: /* @__PURE__ */ l(HD, { fontSize: 16 })
|
|
10644
10648
|
}
|
|
@@ -10647,6 +10651,7 @@ const Sa = z(
|
|
|
10647
10651
|
/* @__PURE__ */ l(He, { title: "Collapse all", children: /* @__PURE__ */ l(
|
|
10648
10652
|
"button",
|
|
10649
10653
|
{
|
|
10654
|
+
type: "button",
|
|
10650
10655
|
id: "btn-code-editor-json-grid-up",
|
|
10651
10656
|
onClick: () => _(!1),
|
|
10652
10657
|
className: ze,
|
|
@@ -10656,6 +10661,7 @@ const Sa = z(
|
|
|
10656
10661
|
/* @__PURE__ */ l(He, { title: "Expand all", children: /* @__PURE__ */ l(
|
|
10657
10662
|
"button",
|
|
10658
10663
|
{
|
|
10664
|
+
type: "button",
|
|
10659
10665
|
id: "btn-code-editor-json-grid-down",
|
|
10660
10666
|
onClick: () => _(!0),
|
|
10661
10667
|
className: ze,
|
|
@@ -10666,6 +10672,7 @@ const Sa = z(
|
|
|
10666
10672
|
se === "JSON" && d ? /* @__PURE__ */ l(He, { title: "Format", children: /* @__PURE__ */ l(
|
|
10667
10673
|
"button",
|
|
10668
10674
|
{
|
|
10675
|
+
type: "button",
|
|
10669
10676
|
id: "btn-code-editor-format-code",
|
|
10670
10677
|
onClick: ie,
|
|
10671
10678
|
className: ze,
|
|
@@ -10679,6 +10686,7 @@ const Sa = z(
|
|
|
10679
10686
|
children: /* @__PURE__ */ l(
|
|
10680
10687
|
"button",
|
|
10681
10688
|
{
|
|
10689
|
+
type: "button",
|
|
10682
10690
|
id: "btn-code-editor-with-theme",
|
|
10683
10691
|
onClick: () => P(D === "vs" ? "vs-dark" : "vs"),
|
|
10684
10692
|
className: ze,
|
|
@@ -10690,6 +10698,7 @@ const Sa = z(
|
|
|
10690
10698
|
(s === "python" || s === "json") && A ? /* @__PURE__ */ l(He, { title: "Copy", children: /* @__PURE__ */ l(
|
|
10691
10699
|
"button",
|
|
10692
10700
|
{
|
|
10701
|
+
type: "button",
|
|
10693
10702
|
id: "btn-code-editor-copy-code",
|
|
10694
10703
|
onClick: tt,
|
|
10695
10704
|
className: ze,
|
|
@@ -10699,6 +10708,7 @@ const Sa = z(
|
|
|
10699
10708
|
(s === "python" || s === "json") && u ? /* @__PURE__ */ l(He, { title: "Download", children: /* @__PURE__ */ l(
|
|
10700
10709
|
"button",
|
|
10701
10710
|
{
|
|
10711
|
+
type: "button",
|
|
10702
10712
|
id: "btn-code-editor-download-code",
|
|
10703
10713
|
onClick: ot,
|
|
10704
10714
|
className: ze,
|
|
@@ -10709,6 +10719,7 @@ const Sa = z(
|
|
|
10709
10719
|
"button",
|
|
10710
10720
|
{
|
|
10711
10721
|
onClick: Ue,
|
|
10722
|
+
type: "button",
|
|
10712
10723
|
id: "btn-code-editor-fullscreen",
|
|
10713
10724
|
className: ze,
|
|
10714
10725
|
children: /* @__PURE__ */ l(BD, { fontSize: 14 })
|