@stackshift-ui/text-component 6.0.5 → 6.0.6-beta.1
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/helper/index.js +1 -88
- package/dist/helper/index.mjs +1 -6
- package/dist/index.js +1 -262
- package/dist/index.mjs +1 -20
- package/dist/text-component.js +1 -249
- package/dist/text-component.mjs +1 -6
- package/dist/text_a.js +1 -112
- package/dist/text_a.mjs +1 -8
- package/dist/text_b.js +1 -119
- package/dist/text_b.mjs +1 -8
- package/dist/text_c.js +1 -135
- package/dist/text_c.mjs +1 -8
- package/dist/types.js +1 -18
- package/package.json +10 -10
- package/dist/chunk-D2JQMMRZ.mjs +0 -64
- package/dist/chunk-ML53FG6K.mjs +0 -35
- package/dist/chunk-VO3MEELM.mjs +0 -26
- package/dist/chunk-XK6JAR4U.mjs +0 -51
- package/dist/chunk-YDPBE4DN.mjs +0 -28
package/dist/helper/index.js
CHANGED
|
@@ -1,88 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/helper/index.tsx
|
|
21
|
-
var helper_exports = {};
|
|
22
|
-
__export(helper_exports, {
|
|
23
|
-
textComponentBlockStyling: () => textComponentBlockStyling
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(helper_exports);
|
|
26
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
var textComponentBlockStyling = {
|
|
28
|
-
block: {
|
|
29
|
-
h1: ({ children }) => {
|
|
30
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "mb-6 leading-loose text-gray-900 text-7xl", children });
|
|
31
|
-
},
|
|
32
|
-
h2: ({ children }) => {
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "mb-6 text-5xl leading-loose text-gray-900", children });
|
|
34
|
-
},
|
|
35
|
-
h3: ({ children }) => {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "mb-6 text-3xl leading-loose text-gray-900", children });
|
|
37
|
-
},
|
|
38
|
-
h4: ({ children }) => {
|
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { className: "mb-6 text-xl leading-loose text-gray-900", children });
|
|
40
|
-
},
|
|
41
|
-
normal: ({ children }) => {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mb-5 leading-relaxed text-justify text-gray-900", children });
|
|
43
|
-
},
|
|
44
|
-
blockquote: ({ children }) => {
|
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("blockquote", { className: "mb-6 italic leading-loose text-gray-500 px-14", children: [
|
|
46
|
-
"- ",
|
|
47
|
-
children
|
|
48
|
-
] });
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
code: ({ value }) => {
|
|
52
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { "data-language": value.language, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children: value.code }) });
|
|
53
|
-
},
|
|
54
|
-
list: {
|
|
55
|
-
bullet: ({ children }) => {
|
|
56
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "pl-10 mb-6 leading-loose text-gray-900 list-disc", children });
|
|
57
|
-
},
|
|
58
|
-
number: ({ children }) => {
|
|
59
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: "mb-6 leading-loose text-gray-900 list-decimal", children });
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
listItem: {
|
|
63
|
-
bullet: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "mb-6 leading-loose text-gray-900", children })
|
|
64
|
-
},
|
|
65
|
-
marks: {
|
|
66
|
-
strong: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children }),
|
|
67
|
-
em: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("em", { children }),
|
|
68
|
-
code: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children }),
|
|
69
|
-
link: ({ children, value }) => {
|
|
70
|
-
var _a;
|
|
71
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
-
"a",
|
|
73
|
-
{
|
|
74
|
-
"aria-label": (_a = value.href) != null ? _a : "external link",
|
|
75
|
-
className: "text-primary hover:text-secondary",
|
|
76
|
-
href: value == null ? void 0 : value.href,
|
|
77
|
-
target: "_blank",
|
|
78
|
-
rel: "noopener noreferrer",
|
|
79
|
-
children
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
86
|
-
0 && (module.exports = {
|
|
87
|
-
textComponentBlockStyling
|
|
88
|
-
});
|
|
1
|
+
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var c=(e,l)=>{for(var r in l)o(e,r,{get:l[r],enumerable:!0})},x=(e,l,r,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let a of m(l))!g.call(e,a)&&a!==r&&o(e,a,{get:()=>l[a],enumerable:!(s=n(l,a))||s.enumerable});return e};var i=e=>x(o({},"__esModule",{value:!0}),e);var b={};c(b,{textComponentBlockStyling:()=>d});module.exports=i(b);var t=require("react/jsx-runtime"),d={block:{h1:({children:e})=>(0,t.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,t.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,t.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,t.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,t.jsx)("pre",{"data-language":e.language,children:(0,t.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,t.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,t.jsx)("strong",{children:e}),em:({children:e})=>(0,t.jsx)("em",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),link:({children:e,value:l})=>{var r;return(0,t.jsx)("a",{"aria-label":(r=l.href)!=null?r:"external link",className:"text-primary hover:text-secondary",href:l==null?void 0:l.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};0&&(module.exports={textComponentBlockStyling});
|
package/dist/helper/index.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,263 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
var
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __esm = (fn, res) => function __init() {
|
|
8
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
9
|
-
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
|
|
24
|
-
// src/helper/index.tsx
|
|
25
|
-
var import_jsx_runtime, textComponentBlockStyling;
|
|
26
|
-
var init_helper = __esm({
|
|
27
|
-
"src/helper/index.tsx"() {
|
|
28
|
-
"use strict";
|
|
29
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
textComponentBlockStyling = {
|
|
31
|
-
block: {
|
|
32
|
-
h1: ({ children }) => {
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "mb-6 leading-loose text-gray-900 text-7xl", children });
|
|
34
|
-
},
|
|
35
|
-
h2: ({ children }) => {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "mb-6 text-5xl leading-loose text-gray-900", children });
|
|
37
|
-
},
|
|
38
|
-
h3: ({ children }) => {
|
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "mb-6 text-3xl leading-loose text-gray-900", children });
|
|
40
|
-
},
|
|
41
|
-
h4: ({ children }) => {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { className: "mb-6 text-xl leading-loose text-gray-900", children });
|
|
43
|
-
},
|
|
44
|
-
normal: ({ children }) => {
|
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mb-5 leading-relaxed text-justify text-gray-900", children });
|
|
46
|
-
},
|
|
47
|
-
blockquote: ({ children }) => {
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("blockquote", { className: "mb-6 italic leading-loose text-gray-500 px-14", children: [
|
|
49
|
-
"- ",
|
|
50
|
-
children
|
|
51
|
-
] });
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
code: ({ value }) => {
|
|
55
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { "data-language": value.language, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children: value.code }) });
|
|
56
|
-
},
|
|
57
|
-
list: {
|
|
58
|
-
bullet: ({ children }) => {
|
|
59
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "pl-10 mb-6 leading-loose text-gray-900 list-disc", children });
|
|
60
|
-
},
|
|
61
|
-
number: ({ children }) => {
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: "mb-6 leading-loose text-gray-900 list-decimal", children });
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
listItem: {
|
|
66
|
-
bullet: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "mb-6 leading-loose text-gray-900", children })
|
|
67
|
-
},
|
|
68
|
-
marks: {
|
|
69
|
-
strong: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children }),
|
|
70
|
-
em: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("em", { children }),
|
|
71
|
-
code: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children }),
|
|
72
|
-
link: ({ children, value }) => {
|
|
73
|
-
var _a;
|
|
74
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
|
-
"a",
|
|
76
|
-
{
|
|
77
|
-
"aria-label": (_a = value.href) != null ? _a : "external link",
|
|
78
|
-
className: "text-primary hover:text-secondary",
|
|
79
|
-
href: value == null ? void 0 : value.href,
|
|
80
|
-
target: "_blank",
|
|
81
|
-
rel: "noopener noreferrer",
|
|
82
|
-
children
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
// src/text_a.tsx
|
|
92
|
-
var text_a_exports = {};
|
|
93
|
-
__export(text_a_exports, {
|
|
94
|
-
TextComponent_A: () => TextComponent_A,
|
|
95
|
-
default: () => TextComponent_A
|
|
96
|
-
});
|
|
97
|
-
function TextComponent_A({ heading, firstColumn }) {
|
|
98
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_container.Container, { maxWidth: 1280, children: [
|
|
99
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_heading.Heading, { fontSize: "xl", className: "mb-5 text-center", children: heading }),
|
|
100
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_flex.Flex, { wrap: true, justify: "center", className: "mx-auto", children: firstColumn && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
101
|
-
import_react.PortableText,
|
|
102
|
-
{
|
|
103
|
-
value: firstColumn,
|
|
104
|
-
components: textComponentBlockStyling,
|
|
105
|
-
onMissingComponent: false
|
|
106
|
-
}
|
|
107
|
-
) }) })
|
|
108
|
-
] }) });
|
|
109
|
-
}
|
|
110
|
-
var import_react, import_container, import_flex, import_heading, import_section, import_jsx_runtime2;
|
|
111
|
-
var init_text_a = __esm({
|
|
112
|
-
"src/text_a.tsx"() {
|
|
113
|
-
"use strict";
|
|
114
|
-
import_react = require("@portabletext/react");
|
|
115
|
-
import_container = require("@stackshift-ui/container");
|
|
116
|
-
import_flex = require("@stackshift-ui/flex");
|
|
117
|
-
import_heading = require("@stackshift-ui/heading");
|
|
118
|
-
import_section = require("@stackshift-ui/section");
|
|
119
|
-
init_helper();
|
|
120
|
-
import_jsx_runtime2 = require("react/jsx-runtime");
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
// src/text_b.tsx
|
|
125
|
-
var text_b_exports = {};
|
|
126
|
-
__export(text_b_exports, {
|
|
127
|
-
TextComponent_B: () => TextComponent_B,
|
|
128
|
-
default: () => TextComponent_B
|
|
129
|
-
});
|
|
130
|
-
function TextComponent_B({
|
|
131
|
-
heading,
|
|
132
|
-
firstColumn,
|
|
133
|
-
secondColumn
|
|
134
|
-
}) {
|
|
135
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_section2.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_container2.Container, { maxWidth: 1280, children: [
|
|
136
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_heading2.Heading, { fontSize: "xl", className: "w-full mb-4 text-center", children: heading }),
|
|
137
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_flex2.Flex, { wrap: true, justify: "center", className: "mx-auto ", children: [
|
|
138
|
-
firstColumn && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.PortableText, { value: firstColumn, components: textComponentBlockStyling }) }),
|
|
139
|
-
secondColumn && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
140
|
-
import_react2.PortableText,
|
|
141
|
-
{
|
|
142
|
-
value: secondColumn,
|
|
143
|
-
components: textComponentBlockStyling,
|
|
144
|
-
onMissingComponent: false
|
|
145
|
-
}
|
|
146
|
-
) })
|
|
147
|
-
] })
|
|
148
|
-
] }) });
|
|
149
|
-
}
|
|
150
|
-
var import_react2, import_container2, import_flex2, import_heading2, import_section2, import_jsx_runtime3;
|
|
151
|
-
var init_text_b = __esm({
|
|
152
|
-
"src/text_b.tsx"() {
|
|
153
|
-
"use strict";
|
|
154
|
-
import_react2 = require("@portabletext/react");
|
|
155
|
-
import_container2 = require("@stackshift-ui/container");
|
|
156
|
-
import_flex2 = require("@stackshift-ui/flex");
|
|
157
|
-
import_heading2 = require("@stackshift-ui/heading");
|
|
158
|
-
import_section2 = require("@stackshift-ui/section");
|
|
159
|
-
init_helper();
|
|
160
|
-
import_jsx_runtime3 = require("react/jsx-runtime");
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
// src/text_c.tsx
|
|
165
|
-
var text_c_exports = {};
|
|
166
|
-
__export(text_c_exports, {
|
|
167
|
-
TextComponent_C: () => TextComponent_C,
|
|
168
|
-
default: () => TextComponent_C
|
|
169
|
-
});
|
|
170
|
-
function TextComponent_C({
|
|
171
|
-
heading,
|
|
172
|
-
firstColumn,
|
|
173
|
-
secondColumn,
|
|
174
|
-
thirdColumn
|
|
175
|
-
}) {
|
|
176
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_section3.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_container3.Container, { className: "container px-4 mx-auto", maxWidth: 1280, children: [
|
|
177
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_heading3.Heading, { fontSize: "xl", className: "w-full mb-5 text-center", children: heading }),
|
|
178
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_flex3.Flex, { wrap: true, justify: "center", className: "mx-auto", children: [
|
|
179
|
-
firstColumn && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
180
|
-
import_react3.PortableText,
|
|
181
|
-
{
|
|
182
|
-
value: firstColumn,
|
|
183
|
-
components: textComponentBlockStyling,
|
|
184
|
-
onMissingComponent: false
|
|
185
|
-
}
|
|
186
|
-
) }),
|
|
187
|
-
secondColumn && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
188
|
-
import_react3.PortableText,
|
|
189
|
-
{
|
|
190
|
-
value: secondColumn,
|
|
191
|
-
components: textComponentBlockStyling,
|
|
192
|
-
onMissingComponent: false
|
|
193
|
-
}
|
|
194
|
-
) }),
|
|
195
|
-
thirdColumn && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
196
|
-
import_react3.PortableText,
|
|
197
|
-
{
|
|
198
|
-
value: thirdColumn,
|
|
199
|
-
components: textComponentBlockStyling,
|
|
200
|
-
onMissingComponent: false
|
|
201
|
-
}
|
|
202
|
-
) })
|
|
203
|
-
] })
|
|
204
|
-
] }) });
|
|
205
|
-
}
|
|
206
|
-
var import_react3, import_container3, import_flex3, import_heading3, import_section3, import_jsx_runtime4;
|
|
207
|
-
var init_text_c = __esm({
|
|
208
|
-
"src/text_c.tsx"() {
|
|
209
|
-
"use strict";
|
|
210
|
-
import_react3 = require("@portabletext/react");
|
|
211
|
-
import_container3 = require("@stackshift-ui/container");
|
|
212
|
-
import_flex3 = require("@stackshift-ui/flex");
|
|
213
|
-
import_heading3 = require("@stackshift-ui/heading");
|
|
214
|
-
import_section3 = require("@stackshift-ui/section");
|
|
215
|
-
init_helper();
|
|
216
|
-
import_jsx_runtime4 = require("react/jsx-runtime");
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
// src/index.ts
|
|
221
|
-
var src_exports = {};
|
|
222
|
-
__export(src_exports, {
|
|
223
|
-
TextComponent: () => TextComponent,
|
|
224
|
-
TextComponent_A: () => TextComponent_A,
|
|
225
|
-
TextComponent_B: () => TextComponent_B,
|
|
226
|
-
TextComponent_C: () => TextComponent_C
|
|
227
|
-
});
|
|
228
|
-
module.exports = __toCommonJS(src_exports);
|
|
229
|
-
|
|
230
|
-
// src/text-component.tsx
|
|
231
|
-
var import_react4 = require("react");
|
|
232
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
233
|
-
var Variants = {
|
|
234
|
-
variant_a: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_text_a(), text_a_exports))),
|
|
235
|
-
variant_b: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_text_b(), text_b_exports))),
|
|
236
|
-
variant_c: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_text_c(), text_c_exports)))
|
|
237
|
-
};
|
|
238
|
-
var displayName = "TextComponent";
|
|
239
|
-
var TextComponent = ({ data }) => {
|
|
240
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
241
|
-
const variant = data == null ? void 0 : data.variant;
|
|
242
|
-
const Variant = variant && Variants[variant];
|
|
243
|
-
const props = {
|
|
244
|
-
heading: (_b = (_a = data == null ? void 0 : data.variants) == null ? void 0 : _a.title) != null ? _b : void 0,
|
|
245
|
-
firstColumn: (_d = (_c = data == null ? void 0 : data.variants) == null ? void 0 : _c.firstColumn) != null ? _d : void 0,
|
|
246
|
-
secondColumn: (_f = (_e = data == null ? void 0 : data.variants) == null ? void 0 : _e.secondColumn) != null ? _f : void 0,
|
|
247
|
-
thirdColumn: (_h = (_g = data == null ? void 0 : data.variants) == null ? void 0 : _g.thirdColumn) != null ? _h : void 0
|
|
248
|
-
};
|
|
249
|
-
return Variant ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Variant, { ...props }) : null;
|
|
250
|
-
};
|
|
251
|
-
TextComponent.displayName = displayName;
|
|
252
|
-
|
|
253
|
-
// src/index.ts
|
|
254
|
-
init_text_a();
|
|
255
|
-
init_text_b();
|
|
256
|
-
init_text_c();
|
|
257
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
258
|
-
0 && (module.exports = {
|
|
259
|
-
TextComponent,
|
|
260
|
-
TextComponent_A,
|
|
261
|
-
TextComponent_B,
|
|
262
|
-
TextComponent_C
|
|
263
|
-
});
|
|
2
|
+
"use strict";var b=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of U(t))!X.call(e,m)&&m!==n&&b(e,m,{get:()=>t[m],enumerable:!(a=Q(t,m))||a.enumerable});return e};var Z=e=>Y(b({},"__esModule",{value:!0}),e);var o,i,g=x(()=>{"use strict";o=require("react/jsx-runtime"),i={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var n;return(0,o.jsx)("a",{"aria-label":(n=t.href)!=null?n:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}}});var z={};p(z,{TextComponent_A:()=>d,default:()=>d});function d({heading:e,firstColumn:t}){return(0,s.jsx)(j.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(_.Container,{maxWidth:1280,children:[e&&(0,s.jsx)(D.Heading,{fontSize:"xl",className:"mb-5 text-center",children:e}),(0,s.jsx)(H.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:t&&(0,s.jsx)("div",{className:"mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base",children:(0,s.jsx)(M.PortableText,{value:t,components:i,onMissingComponent:!1})})})]})})}var M,_,H,D,j,s,u=x(()=>{"use strict";M=require("@portabletext/react"),_=require("@stackshift-ui/container"),H=require("@stackshift-ui/flex"),D=require("@stackshift-ui/heading"),j=require("@stackshift-ui/section");g();s=require("react/jsx-runtime")});var I={};p(I,{TextComponent_B:()=>C,default:()=>C});function C({heading:e,firstColumn:t,secondColumn:n}){return(0,l.jsx)(j.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(_.Container,{maxWidth:1280,children:[e&&(0,l.jsx)(D.Heading,{fontSize:"xl",className:"w-full mb-4 text-center",children:e}),(0,l.jsxs)(H.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:[t&&(0,l.jsx)("div",{className:"px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base",children:(0,l.jsx)(y.PortableText,{value:t,components:i})}),n&&(0,l.jsx)("div",{className:"px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base",children:(0,l.jsx)(y.PortableText,{value:n,components:i,onMissingComponent:!1})})]})]})})}var y,_,H,D,j,l,N=x(()=>{"use strict";y=require("@portabletext/react");g();l=require("react/jsx-runtime")});var K={};p(K,{TextComponent_C:()=>h,default:()=>h});function h({heading:e,firstColumn:t,secondColumn:n,thirdColumn:a}){return(0,r.jsx)(j.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(_.Container,{className:"container px-4 mx-auto",maxWidth:1280,children:[e&&(0,r.jsx)(D.Heading,{fontSize:"xl",className:"w-full mb-5 text-center",children:e}),(0,r.jsxs)(H.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:[t&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:t,components:i,onMissingComponent:!1})}),n&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:n,components:i,onMissingComponent:!1})}),a&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:a,components:i,onMissingComponent:!1})})]})]})})}var c,_,H,D,j,r,k=x(()=>{"use strict";c=require("@portabletext/react");g();r=require("react/jsx-runtime")});var te={};p(te,{TextComponent:()=>L,TextComponent_A:()=>d,TextComponent_B:()=>C,TextComponent_C:()=>h});module.exports=Z(te);var f=require("react"),O=require("react/jsx-runtime"),$={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(u(),z))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(N(),I))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(k(),K)))},ee="TextComponent",L=({data:e})=>{var m,v,w,T,P,S,B,F;let t=e==null?void 0:e.variant,n=t&&$[t],a={heading:(v=(m=e==null?void 0:e.variants)==null?void 0:m.title)!=null?v:void 0,firstColumn:(T=(w=e==null?void 0:e.variants)==null?void 0:w.firstColumn)!=null?T:void 0,secondColumn:(S=(P=e==null?void 0:e.variants)==null?void 0:P.secondColumn)!=null?S:void 0,thirdColumn:(F=(B=e==null?void 0:e.variants)==null?void 0:B.thirdColumn)!=null?F:void 0};return n?(0,O.jsx)(n,{...a}):null};L.displayName=ee;u();N();k();0&&(module.exports={TextComponent,TextComponent_A,TextComponent_B,TextComponent_C});
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
TextComponent
|
|
5
|
-
} from "./chunk-VO3MEELM.mjs";
|
|
6
|
-
import {
|
|
7
|
-
TextComponent_A
|
|
8
|
-
} from "./chunk-YDPBE4DN.mjs";
|
|
9
|
-
import {
|
|
10
|
-
TextComponent_B
|
|
11
|
-
} from "./chunk-ML53FG6K.mjs";
|
|
12
|
-
import {
|
|
13
|
-
TextComponent_C
|
|
14
|
-
} from "./chunk-XK6JAR4U.mjs";
|
|
15
|
-
import "./chunk-D2JQMMRZ.mjs";
|
|
16
|
-
export {
|
|
17
|
-
TextComponent,
|
|
18
|
-
TextComponent_A,
|
|
19
|
-
TextComponent_B,
|
|
20
|
-
TextComponent_C
|
|
21
|
-
};
|
|
2
|
+
"use strict";import{a as t}from"./chunk-B6YHA4AD.mjs";import{a as o}from"./chunk-3E7L5HFT.mjs";import{a as r}from"./chunk-O4GIIQJP.mjs";import{a as e}from"./chunk-5UXS6XWN.mjs";import"./chunk-CBIPJS7L.mjs";export{t as TextComponent,o as TextComponent_A,r as TextComponent_B,e as TextComponent_C};
|
package/dist/text-component.js
CHANGED
|
@@ -1,249 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __esm = (fn, res) => function __init() {
|
|
7
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
8
|
-
};
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
-
|
|
23
|
-
// src/helper/index.tsx
|
|
24
|
-
var import_jsx_runtime, textComponentBlockStyling;
|
|
25
|
-
var init_helper = __esm({
|
|
26
|
-
"src/helper/index.tsx"() {
|
|
27
|
-
"use strict";
|
|
28
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
textComponentBlockStyling = {
|
|
30
|
-
block: {
|
|
31
|
-
h1: ({ children }) => {
|
|
32
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "mb-6 leading-loose text-gray-900 text-7xl", children });
|
|
33
|
-
},
|
|
34
|
-
h2: ({ children }) => {
|
|
35
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "mb-6 text-5xl leading-loose text-gray-900", children });
|
|
36
|
-
},
|
|
37
|
-
h3: ({ children }) => {
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "mb-6 text-3xl leading-loose text-gray-900", children });
|
|
39
|
-
},
|
|
40
|
-
h4: ({ children }) => {
|
|
41
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { className: "mb-6 text-xl leading-loose text-gray-900", children });
|
|
42
|
-
},
|
|
43
|
-
normal: ({ children }) => {
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mb-5 leading-relaxed text-justify text-gray-900", children });
|
|
45
|
-
},
|
|
46
|
-
blockquote: ({ children }) => {
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("blockquote", { className: "mb-6 italic leading-loose text-gray-500 px-14", children: [
|
|
48
|
-
"- ",
|
|
49
|
-
children
|
|
50
|
-
] });
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
code: ({ value }) => {
|
|
54
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { "data-language": value.language, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children: value.code }) });
|
|
55
|
-
},
|
|
56
|
-
list: {
|
|
57
|
-
bullet: ({ children }) => {
|
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "pl-10 mb-6 leading-loose text-gray-900 list-disc", children });
|
|
59
|
-
},
|
|
60
|
-
number: ({ children }) => {
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: "mb-6 leading-loose text-gray-900 list-decimal", children });
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
listItem: {
|
|
65
|
-
bullet: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "mb-6 leading-loose text-gray-900", children })
|
|
66
|
-
},
|
|
67
|
-
marks: {
|
|
68
|
-
strong: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children }),
|
|
69
|
-
em: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("em", { children }),
|
|
70
|
-
code: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children }),
|
|
71
|
-
link: ({ children, value }) => {
|
|
72
|
-
var _a;
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
-
"a",
|
|
75
|
-
{
|
|
76
|
-
"aria-label": (_a = value.href) != null ? _a : "external link",
|
|
77
|
-
className: "text-primary hover:text-secondary",
|
|
78
|
-
href: value == null ? void 0 : value.href,
|
|
79
|
-
target: "_blank",
|
|
80
|
-
rel: "noopener noreferrer",
|
|
81
|
-
children
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
// src/text_a.tsx
|
|
91
|
-
var text_a_exports = {};
|
|
92
|
-
__export(text_a_exports, {
|
|
93
|
-
TextComponent_A: () => TextComponent_A,
|
|
94
|
-
default: () => TextComponent_A
|
|
95
|
-
});
|
|
96
|
-
function TextComponent_A({ heading, firstColumn }) {
|
|
97
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_container.Container, { maxWidth: 1280, children: [
|
|
98
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_heading.Heading, { fontSize: "xl", className: "mb-5 text-center", children: heading }),
|
|
99
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_flex.Flex, { wrap: true, justify: "center", className: "mx-auto", children: firstColumn && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
100
|
-
import_react.PortableText,
|
|
101
|
-
{
|
|
102
|
-
value: firstColumn,
|
|
103
|
-
components: textComponentBlockStyling,
|
|
104
|
-
onMissingComponent: false
|
|
105
|
-
}
|
|
106
|
-
) }) })
|
|
107
|
-
] }) });
|
|
108
|
-
}
|
|
109
|
-
var import_react, import_container, import_flex, import_heading, import_section, import_jsx_runtime2;
|
|
110
|
-
var init_text_a = __esm({
|
|
111
|
-
"src/text_a.tsx"() {
|
|
112
|
-
"use strict";
|
|
113
|
-
import_react = require("@portabletext/react");
|
|
114
|
-
import_container = require("@stackshift-ui/container");
|
|
115
|
-
import_flex = require("@stackshift-ui/flex");
|
|
116
|
-
import_heading = require("@stackshift-ui/heading");
|
|
117
|
-
import_section = require("@stackshift-ui/section");
|
|
118
|
-
init_helper();
|
|
119
|
-
import_jsx_runtime2 = require("react/jsx-runtime");
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
// src/text_b.tsx
|
|
124
|
-
var text_b_exports = {};
|
|
125
|
-
__export(text_b_exports, {
|
|
126
|
-
TextComponent_B: () => TextComponent_B,
|
|
127
|
-
default: () => TextComponent_B
|
|
128
|
-
});
|
|
129
|
-
function TextComponent_B({
|
|
130
|
-
heading,
|
|
131
|
-
firstColumn,
|
|
132
|
-
secondColumn
|
|
133
|
-
}) {
|
|
134
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_section2.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_container2.Container, { maxWidth: 1280, children: [
|
|
135
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_heading2.Heading, { fontSize: "xl", className: "w-full mb-4 text-center", children: heading }),
|
|
136
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_flex2.Flex, { wrap: true, justify: "center", className: "mx-auto ", children: [
|
|
137
|
-
firstColumn && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.PortableText, { value: firstColumn, components: textComponentBlockStyling }) }),
|
|
138
|
-
secondColumn && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
139
|
-
import_react2.PortableText,
|
|
140
|
-
{
|
|
141
|
-
value: secondColumn,
|
|
142
|
-
components: textComponentBlockStyling,
|
|
143
|
-
onMissingComponent: false
|
|
144
|
-
}
|
|
145
|
-
) })
|
|
146
|
-
] })
|
|
147
|
-
] }) });
|
|
148
|
-
}
|
|
149
|
-
var import_react2, import_container2, import_flex2, import_heading2, import_section2, import_jsx_runtime3;
|
|
150
|
-
var init_text_b = __esm({
|
|
151
|
-
"src/text_b.tsx"() {
|
|
152
|
-
"use strict";
|
|
153
|
-
import_react2 = require("@portabletext/react");
|
|
154
|
-
import_container2 = require("@stackshift-ui/container");
|
|
155
|
-
import_flex2 = require("@stackshift-ui/flex");
|
|
156
|
-
import_heading2 = require("@stackshift-ui/heading");
|
|
157
|
-
import_section2 = require("@stackshift-ui/section");
|
|
158
|
-
init_helper();
|
|
159
|
-
import_jsx_runtime3 = require("react/jsx-runtime");
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
// src/text_c.tsx
|
|
164
|
-
var text_c_exports = {};
|
|
165
|
-
__export(text_c_exports, {
|
|
166
|
-
TextComponent_C: () => TextComponent_C,
|
|
167
|
-
default: () => TextComponent_C
|
|
168
|
-
});
|
|
169
|
-
function TextComponent_C({
|
|
170
|
-
heading,
|
|
171
|
-
firstColumn,
|
|
172
|
-
secondColumn,
|
|
173
|
-
thirdColumn
|
|
174
|
-
}) {
|
|
175
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_section3.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_container3.Container, { className: "container px-4 mx-auto", maxWidth: 1280, children: [
|
|
176
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_heading3.Heading, { fontSize: "xl", className: "w-full mb-5 text-center", children: heading }),
|
|
177
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_flex3.Flex, { wrap: true, justify: "center", className: "mx-auto", children: [
|
|
178
|
-
firstColumn && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
179
|
-
import_react3.PortableText,
|
|
180
|
-
{
|
|
181
|
-
value: firstColumn,
|
|
182
|
-
components: textComponentBlockStyling,
|
|
183
|
-
onMissingComponent: false
|
|
184
|
-
}
|
|
185
|
-
) }),
|
|
186
|
-
secondColumn && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
187
|
-
import_react3.PortableText,
|
|
188
|
-
{
|
|
189
|
-
value: secondColumn,
|
|
190
|
-
components: textComponentBlockStyling,
|
|
191
|
-
onMissingComponent: false
|
|
192
|
-
}
|
|
193
|
-
) }),
|
|
194
|
-
thirdColumn && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
195
|
-
import_react3.PortableText,
|
|
196
|
-
{
|
|
197
|
-
value: thirdColumn,
|
|
198
|
-
components: textComponentBlockStyling,
|
|
199
|
-
onMissingComponent: false
|
|
200
|
-
}
|
|
201
|
-
) })
|
|
202
|
-
] })
|
|
203
|
-
] }) });
|
|
204
|
-
}
|
|
205
|
-
var import_react3, import_container3, import_flex3, import_heading3, import_section3, import_jsx_runtime4;
|
|
206
|
-
var init_text_c = __esm({
|
|
207
|
-
"src/text_c.tsx"() {
|
|
208
|
-
"use strict";
|
|
209
|
-
import_react3 = require("@portabletext/react");
|
|
210
|
-
import_container3 = require("@stackshift-ui/container");
|
|
211
|
-
import_flex3 = require("@stackshift-ui/flex");
|
|
212
|
-
import_heading3 = require("@stackshift-ui/heading");
|
|
213
|
-
import_section3 = require("@stackshift-ui/section");
|
|
214
|
-
init_helper();
|
|
215
|
-
import_jsx_runtime4 = require("react/jsx-runtime");
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
// src/text-component.tsx
|
|
220
|
-
var text_component_exports = {};
|
|
221
|
-
__export(text_component_exports, {
|
|
222
|
-
TextComponent: () => TextComponent
|
|
223
|
-
});
|
|
224
|
-
module.exports = __toCommonJS(text_component_exports);
|
|
225
|
-
var import_react4 = require("react");
|
|
226
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
227
|
-
var Variants = {
|
|
228
|
-
variant_a: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_text_a(), text_a_exports))),
|
|
229
|
-
variant_b: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_text_b(), text_b_exports))),
|
|
230
|
-
variant_c: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_text_c(), text_c_exports)))
|
|
231
|
-
};
|
|
232
|
-
var displayName = "TextComponent";
|
|
233
|
-
var TextComponent = ({ data }) => {
|
|
234
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
235
|
-
const variant = data == null ? void 0 : data.variant;
|
|
236
|
-
const Variant = variant && Variants[variant];
|
|
237
|
-
const props = {
|
|
238
|
-
heading: (_b = (_a = data == null ? void 0 : data.variants) == null ? void 0 : _a.title) != null ? _b : void 0,
|
|
239
|
-
firstColumn: (_d = (_c = data == null ? void 0 : data.variants) == null ? void 0 : _c.firstColumn) != null ? _d : void 0,
|
|
240
|
-
secondColumn: (_f = (_e = data == null ? void 0 : data.variants) == null ? void 0 : _e.secondColumn) != null ? _f : void 0,
|
|
241
|
-
thirdColumn: (_h = (_g = data == null ? void 0 : data.variants) == null ? void 0 : _g.thirdColumn) != null ? _h : void 0
|
|
242
|
-
};
|
|
243
|
-
return Variant ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Variant, { ...props }) : null;
|
|
244
|
-
};
|
|
245
|
-
TextComponent.displayName = displayName;
|
|
246
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
247
|
-
0 && (module.exports = {
|
|
248
|
-
TextComponent
|
|
249
|
-
});
|
|
1
|
+
"use strict";var b=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of U(t))!X.call(e,m)&&m!==n&&b(e,m,{get:()=>t[m],enumerable:!(a=Q(t,m))||a.enumerable});return e};var Z=e=>Y(b({},"__esModule",{value:!0}),e);var o,i,g=x(()=>{"use strict";o=require("react/jsx-runtime"),i={block:{h1:({children:e})=>(0,o.jsx)("h1",{className:"mb-6 leading-loose text-gray-900 text-7xl",children:e}),h2:({children:e})=>(0,o.jsx)("h2",{className:"mb-6 text-5xl leading-loose text-gray-900",children:e}),h3:({children:e})=>(0,o.jsx)("h3",{className:"mb-6 text-3xl leading-loose text-gray-900",children:e}),h4:({children:e})=>(0,o.jsx)("h4",{className:"mb-6 text-xl leading-loose text-gray-900",children:e}),normal:({children:e})=>(0,o.jsx)("p",{className:"mb-5 leading-relaxed text-justify text-gray-900",children:e}),blockquote:({children:e})=>(0,o.jsxs)("blockquote",{className:"mb-6 italic leading-loose text-gray-500 px-14",children:["- ",e]})},code:({value:e})=>(0,o.jsx)("pre",{"data-language":e.language,children:(0,o.jsx)("code",{children:e.code})}),list:{bullet:({children:e})=>(0,o.jsx)("ul",{className:"pl-10 mb-6 leading-loose text-gray-900 list-disc",children:e}),number:({children:e})=>(0,o.jsx)("ol",{className:"mb-6 leading-loose text-gray-900 list-decimal",children:e})},listItem:{bullet:({children:e})=>(0,o.jsx)("li",{className:"mb-6 leading-loose text-gray-900",children:e})},marks:{strong:({children:e})=>(0,o.jsx)("strong",{children:e}),em:({children:e})=>(0,o.jsx)("em",{children:e}),code:({children:e})=>(0,o.jsx)("code",{children:e}),link:({children:e,value:t})=>{var n;return(0,o.jsx)("a",{"aria-label":(n=t.href)!=null?n:"external link",className:"text-primary hover:text-secondary",href:t==null?void 0:t.href,target:"_blank",rel:"noopener noreferrer",children:e})}}}});var M={};p(M,{TextComponent_A:()=>F,default:()=>F});function F({heading:e,firstColumn:t}){return(0,s.jsx)(B.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(T.Container,{maxWidth:1280,children:[e&&(0,s.jsx)(S.Heading,{fontSize:"xl",className:"mb-5 text-center",children:e}),(0,s.jsx)(P.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:t&&(0,s.jsx)("div",{className:"mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base",children:(0,s.jsx)(w.PortableText,{value:t,components:i,onMissingComponent:!1})})})]})})}var w,T,P,S,B,s,_=x(()=>{"use strict";w=require("@portabletext/react"),T=require("@stackshift-ui/container"),P=require("@stackshift-ui/flex"),S=require("@stackshift-ui/heading"),B=require("@stackshift-ui/section");g();s=require("react/jsx-runtime")});var V={};p(V,{TextComponent_B:()=>q,default:()=>q});function q({heading:e,firstColumn:t,secondColumn:n}){return(0,l.jsx)(B.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(T.Container,{maxWidth:1280,children:[e&&(0,l.jsx)(S.Heading,{fontSize:"xl",className:"w-full mb-4 text-center",children:e}),(0,l.jsxs)(P.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:[t&&(0,l.jsx)("div",{className:"px-5 mb-3 text-xs leading-relaxed text-justify text-gray-500 lg:mb-6 lg:w-1/2 lg:text-base",children:(0,l.jsx)(d.PortableText,{value:t,components:i})}),n&&(0,l.jsx)("div",{className:"px-5 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/2 lg:text-base",children:(0,l.jsx)(d.PortableText,{value:n,components:i,onMissingComponent:!1})})]})]})})}var d,T,P,S,B,l,W=x(()=>{"use strict";d=require("@portabletext/react");g();l=require("react/jsx-runtime")});var J={};p(J,{TextComponent_C:()=>G,default:()=>G});function G({heading:e,firstColumn:t,secondColumn:n,thirdColumn:a}){return(0,r.jsx)(B.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(T.Container,{className:"container px-4 mx-auto",maxWidth:1280,children:[e&&(0,r.jsx)(S.Heading,{fontSize:"xl",className:"w-full mb-5 text-center",children:e}),(0,r.jsxs)(P.Flex,{wrap:!0,justify:"center",className:"mx-auto",children:[t&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:t,components:i,onMissingComponent:!1})}),n&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:n,components:i,onMissingComponent:!1})}),a&&(0,r.jsx)("div",{className:"px-3 mb-6 text-xs leading-relaxed text-justify text-gray-500 md:mb-0 lg:w-1/3 lg:text-base",children:(0,r.jsx)(c.PortableText,{value:a,components:i,onMissingComponent:!1})})]})]})})}var c,T,P,S,B,r,K=x(()=>{"use strict";c=require("@portabletext/react");g();r=require("react/jsx-runtime")});var te={};p(te,{TextComponent:()=>L});module.exports=Z(te);var f=require("react"),O=require("react/jsx-runtime"),$={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(_(),M))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(W(),V))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(K(),J)))},ee="TextComponent",L=({data:e})=>{var m,u,y,C,N,h,k,v;let t=e==null?void 0:e.variant,n=t&&$[t],a={heading:(u=(m=e==null?void 0:e.variants)==null?void 0:m.title)!=null?u:void 0,firstColumn:(C=(y=e==null?void 0:e.variants)==null?void 0:y.firstColumn)!=null?C:void 0,secondColumn:(h=(N=e==null?void 0:e.variants)==null?void 0:N.secondColumn)!=null?h:void 0,thirdColumn:(v=(k=e==null?void 0:e.variants)==null?void 0:k.thirdColumn)!=null?v:void 0};return n?(0,O.jsx)(n,{...a}):null};L.displayName=ee;0&&(module.exports={TextComponent});
|