@stackshift-ui/text-component 6.0.5 → 6.0.6-beta.0

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.
@@ -1,51 +0,0 @@
1
- import {
2
- textComponentBlockStyling
3
- } from "./chunk-D2JQMMRZ.mjs";
4
-
5
- // src/text_c.tsx
6
- import { PortableText } from "@portabletext/react";
7
- import { Container } from "@stackshift-ui/container";
8
- import { Flex } from "@stackshift-ui/flex";
9
- import { Heading } from "@stackshift-ui/heading";
10
- import { Section } from "@stackshift-ui/section";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- function TextComponent_C({
13
- heading,
14
- firstColumn,
15
- secondColumn,
16
- thirdColumn
17
- }) {
18
- return /* @__PURE__ */ jsx(Section, { className: "py-20 bg-background", children: /* @__PURE__ */ jsxs(Container, { className: "container px-4 mx-auto", maxWidth: 1280, children: [
19
- heading && /* @__PURE__ */ jsx(Heading, { fontSize: "xl", className: "w-full mb-5 text-center", children: heading }),
20
- /* @__PURE__ */ jsxs(Flex, { wrap: true, justify: "center", className: "mx-auto", children: [
21
- firstColumn && /* @__PURE__ */ 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__ */ jsx(
22
- PortableText,
23
- {
24
- value: firstColumn,
25
- components: textComponentBlockStyling,
26
- onMissingComponent: false
27
- }
28
- ) }),
29
- secondColumn && /* @__PURE__ */ 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__ */ jsx(
30
- PortableText,
31
- {
32
- value: secondColumn,
33
- components: textComponentBlockStyling,
34
- onMissingComponent: false
35
- }
36
- ) }),
37
- thirdColumn && /* @__PURE__ */ 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__ */ jsx(
38
- PortableText,
39
- {
40
- value: thirdColumn,
41
- components: textComponentBlockStyling,
42
- onMissingComponent: false
43
- }
44
- ) })
45
- ] })
46
- ] }) });
47
- }
48
-
49
- export {
50
- TextComponent_C
51
- };
@@ -1,28 +0,0 @@
1
- import {
2
- textComponentBlockStyling
3
- } from "./chunk-D2JQMMRZ.mjs";
4
-
5
- // src/text_a.tsx
6
- import { PortableText } from "@portabletext/react";
7
- import { Container } from "@stackshift-ui/container";
8
- import { Flex } from "@stackshift-ui/flex";
9
- import { Heading } from "@stackshift-ui/heading";
10
- import { Section } from "@stackshift-ui/section";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- function TextComponent_A({ heading, firstColumn }) {
13
- return /* @__PURE__ */ jsx(Section, { className: "py-20 bg-background", children: /* @__PURE__ */ jsxs(Container, { maxWidth: 1280, children: [
14
- heading && /* @__PURE__ */ jsx(Heading, { fontSize: "xl", className: "mb-5 text-center", children: heading }),
15
- /* @__PURE__ */ jsx(Flex, { wrap: true, justify: "center", className: "mx-auto", children: firstColumn && /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs md:mb-0 md:w-1/2 lg:text-base", children: /* @__PURE__ */ jsx(
16
- PortableText,
17
- {
18
- value: firstColumn,
19
- components: textComponentBlockStyling,
20
- onMissingComponent: false
21
- }
22
- ) }) })
23
- ] }) });
24
- }
25
-
26
- export {
27
- TextComponent_A
28
- };