@pronto-tools-and-more/components 6.29.0 → 6.30.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js
CHANGED
@@ -111,6 +111,35 @@ var PostContentBody = () => {
|
|
111
111
|
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
112
112
|
};
|
113
113
|
|
114
|
+
// src/parts/PublicationToggle/PublicationToggle.tsx
|
115
|
+
var PublicationToggle = () => {
|
116
|
+
const json = {
|
117
|
+
content: [
|
118
|
+
{
|
119
|
+
content: {
|
120
|
+
type: "button",
|
121
|
+
buttonClass: "PublicationToggleButton",
|
122
|
+
tap: {
|
123
|
+
key: "activePublication",
|
124
|
+
type: "setUserAttribute",
|
125
|
+
value: "$context.publication.id"
|
126
|
+
},
|
127
|
+
message: "$context.publication.name"
|
128
|
+
},
|
129
|
+
dataSource: {
|
130
|
+
type: "publication",
|
131
|
+
filter: {}
|
132
|
+
},
|
133
|
+
type: "list",
|
134
|
+
class: "Toggle storefront-toggle"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
type: "section",
|
138
|
+
class: "toggle-publication"
|
139
|
+
};
|
140
|
+
return /* @__PURE__ */ React.createElement("div", { className: "PublicationToggle" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
141
|
+
};
|
142
|
+
|
114
143
|
// src/parts/SearchField/SearchField.tsx
|
115
144
|
var SearchField = () => {
|
116
145
|
const json = {
|
@@ -363,6 +392,7 @@ export {
|
|
363
392
|
Login,
|
364
393
|
MenuItems,
|
365
394
|
PostContentBody,
|
395
|
+
PublicationToggle,
|
366
396
|
SearchField,
|
367
397
|
SearchLink,
|
368
398
|
SearchResults,
|
@@ -8,6 +8,7 @@ export * from "../Link/Link.tsx";
|
|
8
8
|
export * from "../Login/Login.tsx";
|
9
9
|
export * from "../MenuItems/MenuItems.tsx";
|
10
10
|
export * from "../PostContentBody/PostContentBody.tsx";
|
11
|
+
export * from "../PublicationToggle/PublicationToggle.tsx";
|
11
12
|
export * from "../SearchField/SearchField.tsx";
|
12
13
|
export * from "../SearchLink/SearchLink.tsx";
|
13
14
|
export * from "../SearchResults/SearchResults.tsx";
|