@pronto-tools-and-more/components 6.29.0 → 6.31.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js
CHANGED
@@ -70,7 +70,11 @@ var HeaderMenuItems = ({
|
|
70
70
|
};
|
71
71
|
|
72
72
|
// src/parts/Link/Link.tsx
|
73
|
-
var Link = ({
|
73
|
+
var Link = ({
|
74
|
+
to,
|
75
|
+
message,
|
76
|
+
className
|
77
|
+
}) => {
|
74
78
|
const json = {
|
75
79
|
type: "button",
|
76
80
|
tap: {
|
@@ -79,7 +83,9 @@ var Link = ({ to, message }) => {
|
|
79
83
|
},
|
80
84
|
message
|
81
85
|
};
|
82
|
-
|
86
|
+
const extraClassname = className || "";
|
87
|
+
const fullClassName = `Link ${extraClassname}`;
|
88
|
+
return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
83
89
|
};
|
84
90
|
|
85
91
|
// src/parts/Login/Login.tsx
|
@@ -111,6 +117,35 @@ var PostContentBody = () => {
|
|
111
117
|
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
112
118
|
};
|
113
119
|
|
120
|
+
// src/parts/PublicationToggle/PublicationToggle.tsx
|
121
|
+
var PublicationToggle = () => {
|
122
|
+
const json = {
|
123
|
+
content: [
|
124
|
+
{
|
125
|
+
content: {
|
126
|
+
type: "button",
|
127
|
+
buttonClass: "PublicationToggleButton",
|
128
|
+
tap: {
|
129
|
+
key: "activePublication",
|
130
|
+
type: "setUserAttribute",
|
131
|
+
value: "$context.publication.id"
|
132
|
+
},
|
133
|
+
message: "$context.publication.name"
|
134
|
+
},
|
135
|
+
dataSource: {
|
136
|
+
type: "publication",
|
137
|
+
filter: {}
|
138
|
+
},
|
139
|
+
type: "list",
|
140
|
+
class: "Toggle storefront-toggle"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
type: "section",
|
144
|
+
class: "toggle-publication"
|
145
|
+
};
|
146
|
+
return /* @__PURE__ */ React.createElement("div", { className: "PublicationToggle" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
147
|
+
};
|
148
|
+
|
114
149
|
// src/parts/SearchField/SearchField.tsx
|
115
150
|
var SearchField = () => {
|
116
151
|
const json = {
|
@@ -352,17 +387,39 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
352
387
|
};
|
353
388
|
return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
354
389
|
};
|
390
|
+
|
391
|
+
// src/parts/Heading/Heading.tsx
|
392
|
+
var Heading = ({
|
393
|
+
level,
|
394
|
+
size,
|
395
|
+
text,
|
396
|
+
className = ""
|
397
|
+
}) => {
|
398
|
+
const fullClassName = `Heading Heading${size} ${className}`;
|
399
|
+
if (level === 1) {
|
400
|
+
return /* @__PURE__ */ React.createElement("h1", { className: fullClassName }, text);
|
401
|
+
}
|
402
|
+
if (level === 2) {
|
403
|
+
return /* @__PURE__ */ React.createElement("h2", { className: fullClassName }, text);
|
404
|
+
}
|
405
|
+
if (level === 3) {
|
406
|
+
return /* @__PURE__ */ React.createElement("h3", { className: fullClassName }, text);
|
407
|
+
}
|
408
|
+
return /* @__PURE__ */ React.createElement("h4", { className: fullClassName }, text);
|
409
|
+
};
|
355
410
|
export {
|
356
411
|
ContentBody,
|
357
412
|
ContentTitle,
|
358
413
|
EPaperLink,
|
359
414
|
FooterItemsList,
|
360
415
|
HeaderMenuItems,
|
416
|
+
Heading,
|
361
417
|
JsonComponent,
|
362
418
|
Link,
|
363
419
|
Login,
|
364
420
|
MenuItems,
|
365
421
|
PostContentBody,
|
422
|
+
PublicationToggle,
|
366
423
|
SearchField,
|
367
424
|
SearchLink,
|
368
425
|
SearchResults,
|
@@ -8,7 +8,9 @@ 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";
|
14
15
|
export * from "../SubscriptionLink/SubscriptionLink.tsx";
|
16
|
+
export * from "../Heading/Heading.tsx";
|