@multiplatform.one/components 4.0.2 → 4.0.4
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/cjs/organize/SimpleParagraph/SimpleParagraph.stories.js +32 -0
- package/dist/cjs/organize/SimpleParagraph/SimpleParagraph.stories.js.map +6 -0
- package/dist/cjs/organize/SimpleParagraph/SimpleParagraph.stories.native.js +43 -0
- package/dist/cjs/organize/SimpleParagraph/SimpleParagraph.stories.native.js.map +6 -0
- package/dist/cjs/organize/SimpleParagraph/index.js +45 -0
- package/dist/cjs/organize/SimpleParagraph/index.js.map +6 -0
- package/dist/cjs/organize/SimpleParagraph/index.native.js +124 -0
- package/dist/cjs/organize/SimpleParagraph/index.native.js.map +6 -0
- package/dist/cjs/organize/index.js +1 -0
- package/dist/cjs/organize/index.js.map +1 -1
- package/dist/cjs/organize/index.native.js +3 -1
- package/dist/cjs/organize/index.native.js.map +1 -1
- package/dist/esm/organize/SimpleParagraph/SimpleParagraph.stories.js +18 -0
- package/dist/esm/organize/SimpleParagraph/SimpleParagraph.stories.js.map +6 -0
- package/dist/esm/organize/SimpleParagraph/SimpleParagraph.stories.mjs +20 -0
- package/dist/esm/organize/SimpleParagraph/SimpleParagraph.stories.native.js +26 -0
- package/dist/esm/organize/SimpleParagraph/SimpleParagraph.stories.native.js.map +6 -0
- package/dist/esm/organize/SimpleParagraph/index.js +31 -0
- package/dist/esm/organize/SimpleParagraph/index.js.map +6 -0
- package/dist/esm/organize/SimpleParagraph/index.mjs +54 -0
- package/dist/esm/organize/SimpleParagraph/index.native.js +107 -0
- package/dist/esm/organize/SimpleParagraph/index.native.js.map +6 -0
- package/dist/esm/organize/index.js +1 -0
- package/dist/esm/organize/index.js.map +1 -1
- package/dist/esm/organize/index.mjs +2 -1
- package/dist/esm/organize/index.native.js +1 -0
- package/dist/esm/organize/index.native.js.map +1 -1
- package/dist/jsx/organize/SimpleParagraph/SimpleParagraph.stories.js +18 -0
- package/dist/jsx/organize/SimpleParagraph/SimpleParagraph.stories.js.map +6 -0
- package/dist/jsx/organize/SimpleParagraph/SimpleParagraph.stories.mjs +20 -0
- package/dist/jsx/organize/SimpleParagraph/SimpleParagraph.stories.native.js +26 -0
- package/dist/jsx/organize/SimpleParagraph/SimpleParagraph.stories.native.js.map +6 -0
- package/dist/jsx/organize/SimpleParagraph/index.js +31 -0
- package/dist/jsx/organize/SimpleParagraph/index.js.map +6 -0
- package/dist/jsx/organize/SimpleParagraph/index.mjs +54 -0
- package/dist/jsx/organize/SimpleParagraph/index.native.js +107 -0
- package/dist/jsx/organize/SimpleParagraph/index.native.js.map +6 -0
- package/dist/jsx/organize/index.js +1 -0
- package/dist/jsx/organize/index.js.map +1 -1
- package/dist/jsx/organize/index.mjs +2 -1
- package/dist/jsx/organize/index.native.js +1 -0
- package/dist/jsx/organize/index.native.js.map +1 -1
- package/package.json +3 -3
- package/src/organize/SimpleParagraph/SimpleParagraph.stories.tsx +17 -0
- package/src/organize/SimpleParagraph/index.tsx +84 -0
- package/src/organize/index.ts +1 -0
- package/types/organize/SimpleParagraph/SimpleParagraph.stories.d.ts +13 -0
- package/types/organize/SimpleParagraph/SimpleParagraph.stories.d.ts.map +1 -0
- package/types/organize/SimpleParagraph/index.d.ts +7 -0
- package/types/organize/SimpleParagraph/index.d.ts.map +1 -0
- package/types/organize/index.d.ts +1 -0
- package/types/organize/index.d.ts.map +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var SimpleParagraph_stories_exports = {};
|
|
16
|
+
__export(SimpleParagraph_stories_exports, {
|
|
17
|
+
default: () => SimpleParagraph_stories_default,
|
|
18
|
+
main: () => main
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(SimpleParagraph_stories_exports);
|
|
21
|
+
var import__ = require("."), import_jsx_runtime = require("react/jsx-runtime"), SimpleParagraph_stories_default = {
|
|
22
|
+
title: "Components/SimpleParagraph",
|
|
23
|
+
component: import__.SimpleParagraph,
|
|
24
|
+
parameters: { status: { type: "beta" } }
|
|
25
|
+
};
|
|
26
|
+
const main = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.SimpleParagraph, { children: `
|
|
27
|
+
function helloWorld() {
|
|
28
|
+
console.log("Hello, World!");
|
|
29
|
+
console.log(${(/* @__PURE__ */ new Date()).getTime().toString()})
|
|
30
|
+
}
|
|
31
|
+
` });
|
|
32
|
+
//# sourceMappingURL=SimpleParagraph.stories.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,eAAgC,cAS9B,mDAPK,kCAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,EAAE;AACzC;AAEO,MAAM,OAAO,MAClB,4CAAC,4BAAiB;AAAA;AAAA;AAAA,mCAGc,oBAAI,KAAK,GAAE,QAAQ,EAAE,SAAS,CAAC;AAAA;AAAA,mBAE/C;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var SimpleParagraph_stories_exports = {};
|
|
16
|
+
__export(SimpleParagraph_stories_exports, {
|
|
17
|
+
default: () => SimpleParagraph_stories_default,
|
|
18
|
+
main: () => main
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(SimpleParagraph_stories_exports);
|
|
21
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import__ = require("."), SimpleParagraph_stories_default = {
|
|
22
|
+
title: "Components/SimpleParagraph",
|
|
23
|
+
component: import__.SimpleParagraph,
|
|
24
|
+
parameters: {
|
|
25
|
+
status: {
|
|
26
|
+
type: "beta"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, main = function() {
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.SimpleParagraph, {
|
|
31
|
+
children: `
|
|
32
|
+
function helloWorld() {
|
|
33
|
+
console.log("Hello, World!");
|
|
34
|
+
console.log(`.concat((/* @__PURE__ */ new Date()).getTime().toString(), `)
|
|
35
|
+
}
|
|
36
|
+
`)
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
main
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=SimpleParagraph.stories.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,kBAClB,WAAgC,cAEhC,kCAAe;EACbA,OAAO;EACPC,WAAWC;EACXC,YAAY;IAAEC,QAAQ;MAAEC,MAAM;IAAO;EAAE;AACzC,GAEaC,OAAO,WAAA;SAClB,uCAAAC,KAACL,0BAAAA;cAAkB;;;kCAG6C,QAAhC,oBAAIM,KAAAA,GAAOC,QAAO,EAAGC,SAAQ,GAAG;;iBAAA;;;",
|
|
5
|
+
"names": ["title", "component", "SimpleParagraph", "parameters", "status", "type", "main", "_jsx", "Date", "getTime", "toString"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var SimpleParagraph_exports = {};
|
|
16
|
+
__export(SimpleParagraph_exports, {
|
|
17
|
+
SimpleParagraph: () => SimpleParagraph
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(SimpleParagraph_exports);
|
|
20
|
+
var import_tamagui = require("tamagui"), import_code = require("../../code"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
+
const SimpleParagraph = ({ children, ...props }) => {
|
|
22
|
+
if (typeof children != "string") return null;
|
|
23
|
+
function parseContent(data) {
|
|
24
|
+
const regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g, boldTextRegex = /\*\*(.*?)\*\*/g, segments = data?.match(regex), parsedSegments2 = [];
|
|
25
|
+
return segments?.forEach((segment) => {
|
|
26
|
+
const codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
27
|
+
codeMatch ? parsedSegments2.push({
|
|
28
|
+
type: "code",
|
|
29
|
+
language: codeMatch[1],
|
|
30
|
+
code: codeMatch[2].trim()
|
|
31
|
+
}) : segment.split(`
|
|
32
|
+
`).forEach((line) => {
|
|
33
|
+
let content = [], lastIndex = 0;
|
|
34
|
+
line.replace(boldTextRegex, (match, p1, offset) => (offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Text, { fontWeight: "bold", children: p1 })), lastIndex = offset + match.length, match)), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
35
|
+
type: "text",
|
|
36
|
+
content: content.length === 1 ? content[0] : content,
|
|
37
|
+
isBold: !1
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}), parsedSegments2;
|
|
41
|
+
}
|
|
42
|
+
const parsedSegments = parseContent(children);
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { ...props, children: parsedSegments.map((segment, index) => segment.type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, { overflow: "hidden", fontSize: props.fontSize, color: props.color, children: segment.content }) }, index) : segment.type === "code" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, { flexShrink: 1, scrollEnabled: !0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_code.CodeBlock, { children: segment.code }) }, index) : null) });
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/index.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,qBAA4D,oBAC5D,cAA0B,uBAuCD;AAhClB,MAAM,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,MAA4B;AAC/E,MAAI,OAAO,YAAa,SAAU,QAAO;AAEzC,WAAS,aAAa,MAAM;AAC1B,UAAM,QAAQ,8CACR,gBAAgB,kBAChB,WAAW,MAAM,MAAM,KAAK,GAC5BA,kBAMA,CAAC;AAEP,qBAAU,QAAQ,CAAC,YAAY;AAC7B,YAAM,YAAY,QAAQ,MAAM,yBAAyB;AACzD,MAAI,YACFA,gBAAe,KAAK;AAAA,QAClB,MAAM;AAAA,QACN,UAAU,UAAU,CAAC;AAAA,QACrB,MAAM,UAAU,CAAC,EAAE,KAAK;AAAA,MAC1B,CAAC,IAGD,QAAQ,MAAM;AAAA,CAAI,EAAE,QAAQ,CAAC,SAAS;AACpC,YAAI,UAA6B,CAAC,GAC9B,YAAY;AAChB,aAAK,QAAQ,eAAe,CAAC,OAAO,IAAI,YAClC,SAAS,aACX,QAAQ,KAAK,KAAK,UAAU,WAAW,MAAM,CAAC,GAEhD,QAAQ,KAAK,4CAAC,uBAAK,YAAW,QAAQ,cAAG,CAAO,GAChD,YAAY,SAAS,MAAM,QACpB,MACR,GACG,YAAY,KAAK,UACnB,QAAQ,KAAK,KAAK,UAAU,SAAS,CAAC,GAExCA,gBAAe,KAAK;AAAA,UAClB,MAAM;AAAA,UACN,SAAS,QAAQ,WAAW,IAAI,QAAQ,CAAC,IAAI;AAAA,UAC7C,QAAQ;AAAA,QACV,CAAC;AAAA,MACH,CAAC;AAAA,IAEL,CAAC,GACMA;AAAA,EACT;AAEA,QAAM,iBAAiB,aAAa,QAAQ;AAE5C,SACE,4CAAC,yBAAQ,GAAG,OACT,yBAAe,IAAI,CAAC,SAAS,UACxB,QAAQ,SAAS,SAEjB,4CAAC,yBACC,sDAAC,4BAAU,UAAS,UAAS,UAAU,MAAM,UAAU,OAAO,MAAM,OACjE,kBAAQ,SACX,KAHW,KAIb,IAEO,QAAQ,SAAS,SAExB,4CAAC,6BAAuB,YAAY,GAAG,eAAa,IAClD,sDAAC,yBAAW,kBAAQ,MAAK,KADV,KAEjB,IAGG,IACR,GACH;AAEJ;",
|
|
5
|
+
"names": ["parsedSegments"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var SimpleParagraph_exports = {};
|
|
16
|
+
__export(SimpleParagraph_exports, {
|
|
17
|
+
SimpleParagraph: () => SimpleParagraph
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(SimpleParagraph_exports);
|
|
20
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_tamagui = require("tamagui"), import_code = require("../../code");
|
|
21
|
+
function _define_property(obj, key, value) {
|
|
22
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
23
|
+
value,
|
|
24
|
+
enumerable: !0,
|
|
25
|
+
configurable: !0,
|
|
26
|
+
writable: !0
|
|
27
|
+
}) : obj[key] = value, obj;
|
|
28
|
+
}
|
|
29
|
+
function _object_spread(target) {
|
|
30
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
32
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
33
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
34
|
+
}))), ownKeys2.forEach(function(key) {
|
|
35
|
+
_define_property(target, key, source[key]);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
}
|
|
40
|
+
function ownKeys(object, enumerableOnly) {
|
|
41
|
+
var keys = Object.keys(object);
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
44
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
46
|
+
})), keys.push.apply(keys, symbols);
|
|
47
|
+
}
|
|
48
|
+
return keys;
|
|
49
|
+
}
|
|
50
|
+
function _object_spread_props(target, source) {
|
|
51
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
52
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
53
|
+
}), target;
|
|
54
|
+
}
|
|
55
|
+
function _object_without_properties(source, excluded) {
|
|
56
|
+
if (source == null) return {};
|
|
57
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
58
|
+
if (Object.getOwnPropertySymbols) {
|
|
59
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
60
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
61
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
}
|
|
65
|
+
function _object_without_properties_loose(source, excluded) {
|
|
66
|
+
if (source == null) return {};
|
|
67
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
68
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
69
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
70
|
+
return target;
|
|
71
|
+
}
|
|
72
|
+
var SimpleParagraph = function(_param) {
|
|
73
|
+
var parseContent = function(data) {
|
|
74
|
+
var regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g, boldTextRegex = /\*\*(.*?)\*\*/g, segments = data == null ? void 0 : data.match(regex), parsedSegments2 = [];
|
|
75
|
+
return segments == null || segments.forEach(function(segment) {
|
|
76
|
+
var codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
77
|
+
codeMatch ? parsedSegments2.push({
|
|
78
|
+
type: "code",
|
|
79
|
+
language: codeMatch[1],
|
|
80
|
+
code: codeMatch[2].trim()
|
|
81
|
+
}) : segment.split(`
|
|
82
|
+
`).forEach(function(line) {
|
|
83
|
+
var content = [], lastIndex = 0;
|
|
84
|
+
line.replace(boldTextRegex, function(match, p1, offset) {
|
|
85
|
+
return offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
86
|
+
fontWeight: "bold",
|
|
87
|
+
children: p1
|
|
88
|
+
})), lastIndex = offset + match.length, match;
|
|
89
|
+
}), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
90
|
+
type: "text",
|
|
91
|
+
content: content.length === 1 ? content[0] : content,
|
|
92
|
+
isBold: !1
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}), parsedSegments2;
|
|
96
|
+
}, children = _param.children, props = _object_without_properties(_param, [
|
|
97
|
+
"children"
|
|
98
|
+
]);
|
|
99
|
+
if (typeof children != "string") return null;
|
|
100
|
+
var parsedSegments = parseContent(children);
|
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, _object_spread_props(_object_spread({}, props), {
|
|
102
|
+
children: parsedSegments.map(function(segment, index) {
|
|
103
|
+
return segment.type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
104
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
105
|
+
overflow: "hidden",
|
|
106
|
+
fontSize: props.fontSize,
|
|
107
|
+
color: props.color,
|
|
108
|
+
children: segment.content
|
|
109
|
+
})
|
|
110
|
+
}, index) : segment.type === "code" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
111
|
+
flexShrink: 1,
|
|
112
|
+
scrollEnabled: !0,
|
|
113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_code.CodeBlock, {
|
|
114
|
+
children: segment.code
|
|
115
|
+
})
|
|
116
|
+
}, index) : null;
|
|
117
|
+
})
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
121
|
+
0 && (module.exports = {
|
|
122
|
+
SimpleParagraph
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/SimpleParagraph/index.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,kBAClB,iBAA4D,oBAC5D,cAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOnB,IAAMA,kBAAkB,SAAA,QAAA;MAGpBC,eAAT,SAAsBC,MAAI;AACxB,QAAMC,QAAQ,8CACRC,gBAAgB,kBAChBC,WAAWH,QAAAA,OAAAA,SAAAA,KAAMI,MAAMH,KAAAA,GACvBI,kBAMA,CAAA;AAENF,uBAAAA,QAAAA,SAAUG,QAAQ,SAACC,SAAAA;AACjB,UAAMC,YAAYD,QAAQH,MAAM,yBAAA;AAChC,MAAII,YACFH,gBAAeI,KAAK;QAClBC,MAAM;QACNC,UAAUH,UAAU,CAAA;QACpBI,MAAMJ,UAAU,CAAA,EAAGK,KAAI;MACzB,CAAA,IAGAN,QAAQO,MAAM;CAAA,EAAMR,QAAQ,SAACS,MAAAA;AAC3B,YAAIC,UAA6B,CAAA,GAC7BC,YAAY;AAChBF,aAAKG,QAAQhB,eAAe,SAACE,OAAOe,IAAIC,QAAAA;AACtC,iBAAIA,SAASH,aACXD,QAAQP,KAAKM,KAAKM,UAAUJ,WAAWG,MAAAA,CAAAA,GAEzCJ,QAAQP,KAAK,uCAAAa,KAACC,qBAAAA;YAAKC,YAAW;sBAAQL;eACtCF,YAAYG,SAAShB,MAAMqB,QACpBrB;QACT,CAAA,GACIa,YAAYF,KAAKU,UACnBT,QAAQP,KAAKM,KAAKM,UAAUJ,SAAAA,CAAAA,GAE9BZ,gBAAeI,KAAK;UAClBC,MAAM;UACNM,SAASA,QAAQS,WAAW,IAAIT,QAAQ,CAAA,IAAKA;UAC7CU,QAAQ;QACV,CAAA;MACF,CAAA;IAEJ,CAAA,GACOrB;EACT,GAhDgCsB,WAAAA,OAAAA,UAAaC,QAAAA,2BAAAA,QAAAA;IAAbD;;AAChC,MAAI,OAAOA,YAAa,SAAU,QAAO;AAiDzC,MAAMtB,iBAAiBN,aAAa4B,QAAAA;AAEpC,SACE,uCAAAL,KAACO,uBAAAA,qBAAAA,eAAAA,CAAAA,GAAWD,KAAAA,GAAAA;cACTvB,eAAeyB,IAAI,SAACvB,SAASwB,OAAAA;AAC5B,aAAIxB,QAAQG,SAAS,SAEjB,uCAAAY,KAACU,uBAAAA;kBACC,uCAAAV,KAACW,0BAAAA;UAAUC,UAAS;UAASC,UAAUP,MAAMO;UAAUC,OAAOR,MAAMQ;oBACjE7B,QAAQS;;SAFAe,KAAAA,IAMNxB,QAAQG,SAAS,SAExB,uCAAAY,KAACe,2BAAAA;QAAuBC,YAAY;QAAGC,eAAa;kBAClD,uCAAAjB,KAACkB,uBAAAA;oBAAWjC,QAAQK;;SADLmB,KAAAA,IAKd;IACT,CAAA;;AAGN;",
|
|
5
|
+
"names": ["SimpleParagraph", "parseContent", "data", "regex", "boldTextRegex", "segments", "match", "parsedSegments", "forEach", "segment", "codeMatch", "push", "type", "language", "code", "trim", "split", "line", "content", "lastIndex", "replace", "p1", "offset", "substring", "_jsx", "Text", "fontWeight", "length", "isBold", "children", "props", "YStack", "map", "index", "XStack", "Paragraph", "overflow", "fontSize", "color", "ScrollView", "flexShrink", "scrollEnabled", "CodeBlock"]
|
|
6
|
+
}
|
|
@@ -16,4 +16,5 @@ __reExport(organize_exports, require("./SimpleCarousel"), module.exports);
|
|
|
16
16
|
__reExport(organize_exports, require("./SimpleInput"), module.exports);
|
|
17
17
|
__reExport(organize_exports, require("./SimpleListItem"), module.exports);
|
|
18
18
|
__reExport(organize_exports, require("./SimpleTabs"), module.exports);
|
|
19
|
+
__reExport(organize_exports, require("./SimpleParagraph"), module.exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/organize/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAqBA,6BAAc,8BArBd;AAsBA,6BAAc,6BAtBd;AAuBA,6BAAc,0BAvBd;AAwBA,6BAAc,6BAxBd;AAyBA,6BAAc,yBAzBd;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAqBA,6BAAc,8BArBd;AAsBA,6BAAc,6BAtBd;AAuBA,6BAAc,0BAvBd;AAwBA,6BAAc,6BAxBd;AAyBA,6BAAc,yBAzBd;AA0BA,6BAAc,8BA1Bd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -16,12 +16,14 @@ __reExport(organize_exports, require("./SimpleCarousel"), module.exports);
|
|
|
16
16
|
__reExport(organize_exports, require("./SimpleInput"), module.exports);
|
|
17
17
|
__reExport(organize_exports, require("./SimpleListItem"), module.exports);
|
|
18
18
|
__reExport(organize_exports, require("./SimpleTabs"), module.exports);
|
|
19
|
+
__reExport(organize_exports, require("./SimpleParagraph"), module.exports);
|
|
19
20
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20
21
|
0 && (module.exports = {
|
|
21
22
|
...require("./SimpleAccordion"),
|
|
22
23
|
...require("./SimpleCarousel"),
|
|
23
24
|
...require("./SimpleInput"),
|
|
24
25
|
...require("./SimpleListItem"),
|
|
25
|
-
...require("./SimpleTabs")
|
|
26
|
+
...require("./SimpleTabs"),
|
|
27
|
+
...require("./SimpleParagraph")
|
|
26
28
|
});
|
|
27
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/organize/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;AAAA;;AAqBA,6BAAc,8BArBd;AAsBA,6BAAc,6BAtBd;AAuBA,6BAAc,0BAvBd;AAwBA,6BAAc,6BAxBd;AAyBA,6BAAc,yBAzBd;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;AAAA;;AAqBA,6BAAc,8BArBd;AAsBA,6BAAc,6BAtBd;AAuBA,6BAAc,0BAvBd;AAwBA,6BAAc,6BAxBd;AAyBA,6BAAc,yBAzBd;AA0BA,6BAAc,8BA1Bd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SimpleParagraph } from ".";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
var SimpleParagraph_stories_default = {
|
|
4
|
+
title: "Components/SimpleParagraph",
|
|
5
|
+
component: SimpleParagraph,
|
|
6
|
+
parameters: { status: { type: "beta" } }
|
|
7
|
+
};
|
|
8
|
+
const main = () => /* @__PURE__ */ jsx(SimpleParagraph, { children: `
|
|
9
|
+
function helloWorld() {
|
|
10
|
+
console.log("Hello, World!");
|
|
11
|
+
console.log(${(/* @__PURE__ */ new Date()).getTime().toString()})
|
|
12
|
+
}
|
|
13
|
+
` });
|
|
14
|
+
export {
|
|
15
|
+
SimpleParagraph_stories_default as default,
|
|
16
|
+
main
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SimpleParagraph.stories.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],
|
|
4
|
+
"mappings": "AACA,SAAS,uBAAuB;AAS9B;AAPF,IAAO,kCAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,EAAE;AACzC;AAEO,MAAM,OAAO,MAClB,oBAAC,mBAAiB;AAAA;AAAA;AAAA,mCAGc,oBAAI,KAAK,GAAE,QAAQ,EAAE,SAAS,CAAC;AAAA;AAAA,mBAE/C;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SimpleParagraph } from "./index.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
var SimpleParagraph_stories_default = {
|
|
4
|
+
title: "Components/SimpleParagraph",
|
|
5
|
+
component: SimpleParagraph,
|
|
6
|
+
parameters: {
|
|
7
|
+
status: {
|
|
8
|
+
type: "beta"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const main = () => /* @__PURE__ */jsx(SimpleParagraph, {
|
|
13
|
+
children: `
|
|
14
|
+
function helloWorld() {
|
|
15
|
+
console.log("Hello, World!");
|
|
16
|
+
console.log(${( /* @__PURE__ */new Date()).getTime().toString()})
|
|
17
|
+
}
|
|
18
|
+
`
|
|
19
|
+
});
|
|
20
|
+
export { SimpleParagraph_stories_default as default, main };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SimpleParagraph } from ".";
|
|
4
|
+
var SimpleParagraph_stories_default = {
|
|
5
|
+
title: "Components/SimpleParagraph",
|
|
6
|
+
component: SimpleParagraph,
|
|
7
|
+
parameters: {
|
|
8
|
+
status: {
|
|
9
|
+
type: "beta"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, main = function() {
|
|
13
|
+
return /* @__PURE__ */ _jsx(SimpleParagraph, {
|
|
14
|
+
children: `
|
|
15
|
+
function helloWorld() {
|
|
16
|
+
console.log("Hello, World!");
|
|
17
|
+
console.log(`.concat((/* @__PURE__ */ new Date()).getTime().toString(), `)
|
|
18
|
+
}
|
|
19
|
+
`)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
SimpleParagraph_stories_default as default,
|
|
24
|
+
main
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SimpleParagraph.stories.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],
|
|
4
|
+
"mappings": ";AAAA,OAAkB;AAClB,SAASA,uBAAuB;AAEhC,IAAA,kCAAe;EACbC,OAAO;EACPC,WAAWF;EACXG,YAAY;IAAEC,QAAQ;MAAEC,MAAM;IAAO;EAAE;AACzC,GAEaC,OAAO,WAAA;SAClB,qBAACN,iBAAAA;cAAkB;;;kCAG6C,QAAhC,oBAAIO,KAAAA,GAAOC,QAAO,EAAGC,SAAQ,GAAG;;iBAAA;;;",
|
|
5
|
+
"names": ["SimpleParagraph", "title", "component", "parameters", "status", "type", "main", "Date", "getTime", "toString"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from "tamagui";
|
|
2
|
+
import { CodeBlock } from "../../code";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const SimpleParagraph = ({ children, ...props }) => {
|
|
5
|
+
if (typeof children != "string") return null;
|
|
6
|
+
function parseContent(data) {
|
|
7
|
+
const regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g, boldTextRegex = /\*\*(.*?)\*\*/g, segments = data?.match(regex), parsedSegments2 = [];
|
|
8
|
+
return segments?.forEach((segment) => {
|
|
9
|
+
const codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
10
|
+
codeMatch ? parsedSegments2.push({
|
|
11
|
+
type: "code",
|
|
12
|
+
language: codeMatch[1],
|
|
13
|
+
code: codeMatch[2].trim()
|
|
14
|
+
}) : segment.split(`
|
|
15
|
+
`).forEach((line) => {
|
|
16
|
+
let content = [], lastIndex = 0;
|
|
17
|
+
line.replace(boldTextRegex, (match, p1, offset) => (offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push(/* @__PURE__ */ jsx(Text, { fontWeight: "bold", children: p1 })), lastIndex = offset + match.length, match)), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
18
|
+
type: "text",
|
|
19
|
+
content: content.length === 1 ? content[0] : content,
|
|
20
|
+
isBold: !1
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}), parsedSegments2;
|
|
24
|
+
}
|
|
25
|
+
const parsedSegments = parseContent(children);
|
|
26
|
+
return /* @__PURE__ */ jsx(YStack, { ...props, children: parsedSegments.map((segment, index) => segment.type === "text" ? /* @__PURE__ */ jsx(XStack, { children: /* @__PURE__ */ jsx(Paragraph, { overflow: "hidden", fontSize: props.fontSize, color: props.color, children: segment.content }) }, index) : segment.type === "code" ? /* @__PURE__ */ jsx(ScrollView, { flexShrink: 1, scrollEnabled: !0, children: /* @__PURE__ */ jsx(CodeBlock, { children: segment.code }) }, index) : null) });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
SimpleParagraph
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/index.tsx"],
|
|
4
|
+
"mappings": "AACA,SAAS,QAAQ,QAAQ,WAAW,MAAM,kBAAkB;AAC5D,SAAS,iBAAiB;AAuCD;AAhClB,MAAM,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,MAA4B;AAC/E,MAAI,OAAO,YAAa,SAAU,QAAO;AAEzC,WAAS,aAAa,MAAM;AAC1B,UAAM,QAAQ,8CACR,gBAAgB,kBAChB,WAAW,MAAM,MAAM,KAAK,GAC5BA,kBAMA,CAAC;AAEP,qBAAU,QAAQ,CAAC,YAAY;AAC7B,YAAM,YAAY,QAAQ,MAAM,yBAAyB;AACzD,MAAI,YACFA,gBAAe,KAAK;AAAA,QAClB,MAAM;AAAA,QACN,UAAU,UAAU,CAAC;AAAA,QACrB,MAAM,UAAU,CAAC,EAAE,KAAK;AAAA,MAC1B,CAAC,IAGD,QAAQ,MAAM;AAAA,CAAI,EAAE,QAAQ,CAAC,SAAS;AACpC,YAAI,UAA6B,CAAC,GAC9B,YAAY;AAChB,aAAK,QAAQ,eAAe,CAAC,OAAO,IAAI,YAClC,SAAS,aACX,QAAQ,KAAK,KAAK,UAAU,WAAW,MAAM,CAAC,GAEhD,QAAQ,KAAK,oBAAC,QAAK,YAAW,QAAQ,cAAG,CAAO,GAChD,YAAY,SAAS,MAAM,QACpB,MACR,GACG,YAAY,KAAK,UACnB,QAAQ,KAAK,KAAK,UAAU,SAAS,CAAC,GAExCA,gBAAe,KAAK;AAAA,UAClB,MAAM;AAAA,UACN,SAAS,QAAQ,WAAW,IAAI,QAAQ,CAAC,IAAI;AAAA,UAC7C,QAAQ;AAAA,QACV,CAAC;AAAA,MACH,CAAC;AAAA,IAEL,CAAC,GACMA;AAAA,EACT;AAEA,QAAM,iBAAiB,aAAa,QAAQ;AAE5C,SACE,oBAAC,UAAQ,GAAG,OACT,yBAAe,IAAI,CAAC,SAAS,UACxB,QAAQ,SAAS,SAEjB,oBAAC,UACC,8BAAC,aAAU,UAAS,UAAS,UAAU,MAAM,UAAU,OAAO,MAAM,OACjE,kBAAQ,SACX,KAHW,KAIb,IAEO,QAAQ,SAAS,SAExB,oBAAC,cAAuB,YAAY,GAAG,eAAa,IAClD,8BAAC,aAAW,kBAAQ,MAAK,KADV,KAEjB,IAGG,IACR,GACH;AAEJ;",
|
|
5
|
+
"names": ["parsedSegments"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from "tamagui";
|
|
2
|
+
import { CodeBlock } from "../../code/index.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const SimpleParagraph = ({
|
|
5
|
+
children,
|
|
6
|
+
...props
|
|
7
|
+
}) => {
|
|
8
|
+
if (typeof children != "string") return null;
|
|
9
|
+
function parseContent(data) {
|
|
10
|
+
const regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g,
|
|
11
|
+
boldTextRegex = /\*\*(.*?)\*\*/g,
|
|
12
|
+
segments = data?.match(regex),
|
|
13
|
+
parsedSegments2 = [];
|
|
14
|
+
return segments?.forEach(segment => {
|
|
15
|
+
const codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
16
|
+
codeMatch ? parsedSegments2.push({
|
|
17
|
+
type: "code",
|
|
18
|
+
language: codeMatch[1],
|
|
19
|
+
code: codeMatch[2].trim()
|
|
20
|
+
}) : segment.split(`
|
|
21
|
+
`).forEach(line => {
|
|
22
|
+
let content = [],
|
|
23
|
+
lastIndex = 0;
|
|
24
|
+
line.replace(boldTextRegex, (match, p1, offset) => (offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push( /* @__PURE__ */jsx(Text, {
|
|
25
|
+
fontWeight: "bold",
|
|
26
|
+
children: p1
|
|
27
|
+
})), lastIndex = offset + match.length, match)), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
28
|
+
type: "text",
|
|
29
|
+
content: content.length === 1 ? content[0] : content,
|
|
30
|
+
isBold: !1
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}), parsedSegments2;
|
|
34
|
+
}
|
|
35
|
+
const parsedSegments = parseContent(children);
|
|
36
|
+
return /* @__PURE__ */jsx(YStack, {
|
|
37
|
+
...props,
|
|
38
|
+
children: parsedSegments.map((segment, index) => segment.type === "text" ? /* @__PURE__ */jsx(XStack, {
|
|
39
|
+
children: /* @__PURE__ */jsx(Paragraph, {
|
|
40
|
+
overflow: "hidden",
|
|
41
|
+
fontSize: props.fontSize,
|
|
42
|
+
color: props.color,
|
|
43
|
+
children: segment.content
|
|
44
|
+
})
|
|
45
|
+
}, index) : segment.type === "code" ? /* @__PURE__ */jsx(ScrollView, {
|
|
46
|
+
flexShrink: 1,
|
|
47
|
+
scrollEnabled: !0,
|
|
48
|
+
children: /* @__PURE__ */jsx(CodeBlock, {
|
|
49
|
+
children: segment.code
|
|
50
|
+
})
|
|
51
|
+
}, index) : null)
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
export { SimpleParagraph };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from "tamagui";
|
|
4
|
+
import { CodeBlock } from "../../code";
|
|
5
|
+
function _define_property(obj, key, value) {
|
|
6
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
7
|
+
value,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : obj[key] = value, obj;
|
|
12
|
+
}
|
|
13
|
+
function _object_spread(target) {
|
|
14
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
15
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
16
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
17
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
18
|
+
}))), ownKeys2.forEach(function(key) {
|
|
19
|
+
_define_property(target, key, source[key]);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return target;
|
|
23
|
+
}
|
|
24
|
+
function ownKeys(object, enumerableOnly) {
|
|
25
|
+
var keys = Object.keys(object);
|
|
26
|
+
if (Object.getOwnPropertySymbols) {
|
|
27
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
29
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
30
|
+
})), keys.push.apply(keys, symbols);
|
|
31
|
+
}
|
|
32
|
+
return keys;
|
|
33
|
+
}
|
|
34
|
+
function _object_spread_props(target, source) {
|
|
35
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
36
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37
|
+
}), target;
|
|
38
|
+
}
|
|
39
|
+
function _object_without_properties(source, excluded) {
|
|
40
|
+
if (source == null) return {};
|
|
41
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
45
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
}
|
|
49
|
+
function _object_without_properties_loose(source, excluded) {
|
|
50
|
+
if (source == null) return {};
|
|
51
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
52
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
53
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
var SimpleParagraph = function(_param) {
|
|
57
|
+
var parseContent = function(data) {
|
|
58
|
+
var regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g, boldTextRegex = /\*\*(.*?)\*\*/g, segments = data == null ? void 0 : data.match(regex), parsedSegments2 = [];
|
|
59
|
+
return segments == null || segments.forEach(function(segment) {
|
|
60
|
+
var codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
61
|
+
codeMatch ? parsedSegments2.push({
|
|
62
|
+
type: "code",
|
|
63
|
+
language: codeMatch[1],
|
|
64
|
+
code: codeMatch[2].trim()
|
|
65
|
+
}) : segment.split(`
|
|
66
|
+
`).forEach(function(line) {
|
|
67
|
+
var content = [], lastIndex = 0;
|
|
68
|
+
line.replace(boldTextRegex, function(match, p1, offset) {
|
|
69
|
+
return offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push(/* @__PURE__ */ _jsx(Text, {
|
|
70
|
+
fontWeight: "bold",
|
|
71
|
+
children: p1
|
|
72
|
+
})), lastIndex = offset + match.length, match;
|
|
73
|
+
}), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
74
|
+
type: "text",
|
|
75
|
+
content: content.length === 1 ? content[0] : content,
|
|
76
|
+
isBold: !1
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}), parsedSegments2;
|
|
80
|
+
}, children = _param.children, props = _object_without_properties(_param, [
|
|
81
|
+
"children"
|
|
82
|
+
]);
|
|
83
|
+
if (typeof children != "string") return null;
|
|
84
|
+
var parsedSegments = parseContent(children);
|
|
85
|
+
return /* @__PURE__ */ _jsx(YStack, _object_spread_props(_object_spread({}, props), {
|
|
86
|
+
children: parsedSegments.map(function(segment, index) {
|
|
87
|
+
return segment.type === "text" ? /* @__PURE__ */ _jsx(XStack, {
|
|
88
|
+
children: /* @__PURE__ */ _jsx(Paragraph, {
|
|
89
|
+
overflow: "hidden",
|
|
90
|
+
fontSize: props.fontSize,
|
|
91
|
+
color: props.color,
|
|
92
|
+
children: segment.content
|
|
93
|
+
})
|
|
94
|
+
}, index) : segment.type === "code" ? /* @__PURE__ */ _jsx(ScrollView, {
|
|
95
|
+
flexShrink: 1,
|
|
96
|
+
scrollEnabled: !0,
|
|
97
|
+
children: /* @__PURE__ */ _jsx(CodeBlock, {
|
|
98
|
+
children: segment.code
|
|
99
|
+
})
|
|
100
|
+
}, index) : null;
|
|
101
|
+
})
|
|
102
|
+
}));
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
SimpleParagraph
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/SimpleParagraph/index.tsx"],
|
|
4
|
+
"mappings": ";AAAA,OAAkB;AAClB,SAASA,QAAQC,QAAQC,WAAWC,MAAMC,kBAAkB;AAC5D,SAASC,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOnB,IAAMC,kBAAkB,SAAA,QAAA;MAGpBC,eAAT,SAAsBC,MAAI;AACxB,QAAMC,QAAQ,8CACRC,gBAAgB,kBAChBC,WAAWH,QAAAA,OAAAA,SAAAA,KAAMI,MAAMH,KAAAA,GACvBI,kBAMA,CAAA;AAENF,uBAAAA,QAAAA,SAAUG,QAAQ,SAACC,SAAAA;AACjB,UAAMC,YAAYD,QAAQH,MAAM,yBAAA;AAChC,MAAII,YACFH,gBAAeI,KAAK;QAClBC,MAAM;QACNC,UAAUH,UAAU,CAAA;QACpBI,MAAMJ,UAAU,CAAA,EAAGK,KAAI;MACzB,CAAA,IAGAN,QAAQO,MAAM;CAAA,EAAMR,QAAQ,SAACS,MAAAA;AAC3B,YAAIC,UAA6B,CAAA,GAC7BC,YAAY;AAChBF,aAAKG,QAAQhB,eAAe,SAACE,OAAOe,IAAIC,QAAAA;AACtC,iBAAIA,SAASH,aACXD,QAAQP,KAAKM,KAAKM,UAAUJ,WAAWG,MAAAA,CAAAA,GAEzCJ,QAAQP,KAAK,qBAACd,MAAAA;YAAK2B,YAAW;sBAAQH;eACtCF,YAAYG,SAAShB,MAAMmB,QACpBnB;QACT,CAAA,GACIa,YAAYF,KAAKQ,UACnBP,QAAQP,KAAKM,KAAKM,UAAUJ,SAAAA,CAAAA,GAE9BZ,gBAAeI,KAAK;UAClBC,MAAM;UACNM,SAASA,QAAQO,WAAW,IAAIP,QAAQ,CAAA,IAAKA;UAC7CQ,QAAQ;QACV,CAAA;MACF,CAAA;IAEJ,CAAA,GACOnB;EACT,GAhDgCoB,WAAAA,OAAAA,UAAaC,QAAAA,2BAAAA,QAAAA;IAAbD;;AAChC,MAAI,OAAOA,YAAa,SAAU,QAAO;AAiDzC,MAAMpB,iBAAiBN,aAAa0B,QAAAA;AAEpC,SACE,qBAACjC,QAAAA,qBAAAA,eAAAA,CAAAA,GAAWkC,KAAAA,GAAAA;cACTrB,eAAesB,IAAI,SAACpB,SAASqB,OAAAA;AAC5B,aAAIrB,QAAQG,SAAS,SAEjB,qBAACjB,QAAAA;kBACC,qBAACC,WAAAA;UAAUmC,UAAS;UAASC,UAAUJ,MAAMI;UAAUC,OAAOL,MAAMK;oBACjExB,QAAQS;;SAFAY,KAAAA,IAMNrB,QAAQG,SAAS,SAExB,qBAACd,YAAAA;QAAuBoC,YAAY;QAAGC,eAAa;kBAClD,qBAACpC,WAAAA;oBAAWU,QAAQK;;SADLgB,KAAAA,IAKd;IACT,CAAA;;AAGN;",
|
|
5
|
+
"names": ["YStack", "XStack", "Paragraph", "Text", "ScrollView", "CodeBlock", "SimpleParagraph", "parseContent", "data", "regex", "boldTextRegex", "segments", "match", "parsedSegments", "forEach", "segment", "codeMatch", "push", "type", "language", "code", "trim", "split", "line", "content", "lastIndex", "replace", "p1", "offset", "substring", "fontWeight", "length", "isBold", "children", "props", "map", "index", "overflow", "fontSize", "color", "flexShrink", "scrollEnabled"]
|
|
6
|
+
}
|
|
@@ -2,4 +2,5 @@ export * from "./SimpleAccordion/index.mjs";
|
|
|
2
2
|
export * from "./SimpleCarousel/index.mjs";
|
|
3
3
|
export * from "./SimpleInput/index.mjs";
|
|
4
4
|
export * from "./SimpleListItem/index.mjs";
|
|
5
|
-
export * from "./SimpleTabs/index.mjs";
|
|
5
|
+
export * from "./SimpleTabs/index.mjs";
|
|
6
|
+
export * from "./SimpleParagraph/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/organize/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/index.ts"],
|
|
4
|
-
"mappings": "AAqBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
4
|
+
"mappings": "AAqBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SimpleParagraph } from ".";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
var SimpleParagraph_stories_default = {
|
|
4
|
+
title: "Components/SimpleParagraph",
|
|
5
|
+
component: SimpleParagraph,
|
|
6
|
+
parameters: { status: { type: "beta" } }
|
|
7
|
+
};
|
|
8
|
+
const main = () => /* @__PURE__ */ jsx(SimpleParagraph, { children: `
|
|
9
|
+
function helloWorld() {
|
|
10
|
+
console.log("Hello, World!");
|
|
11
|
+
console.log(${(/* @__PURE__ */ new Date()).getTime().toString()})
|
|
12
|
+
}
|
|
13
|
+
` });
|
|
14
|
+
export {
|
|
15
|
+
SimpleParagraph_stories_default as default,
|
|
16
|
+
main
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SimpleParagraph.stories.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],
|
|
4
|
+
"mappings": "AACA,SAAS,uBAAuB;AAS9B;AAPF,IAAO,kCAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,EAAE;AACzC;AAEO,MAAM,OAAO,MAClB,oBAAC,mBAAiB;AAAA;AAAA;AAAA,mCAGc,oBAAI,KAAK,GAAE,QAAQ,EAAE,SAAS,CAAC;AAAA;AAAA,mBAE/C;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SimpleParagraph } from "./index.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
var SimpleParagraph_stories_default = {
|
|
4
|
+
title: "Components/SimpleParagraph",
|
|
5
|
+
component: SimpleParagraph,
|
|
6
|
+
parameters: {
|
|
7
|
+
status: {
|
|
8
|
+
type: "beta"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const main = () => /* @__PURE__ */jsx(SimpleParagraph, {
|
|
13
|
+
children: `
|
|
14
|
+
function helloWorld() {
|
|
15
|
+
console.log("Hello, World!");
|
|
16
|
+
console.log(${( /* @__PURE__ */new Date()).getTime().toString()})
|
|
17
|
+
}
|
|
18
|
+
`
|
|
19
|
+
});
|
|
20
|
+
export { SimpleParagraph_stories_default as default, main };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SimpleParagraph } from ".";
|
|
4
|
+
var SimpleParagraph_stories_default = {
|
|
5
|
+
title: "Components/SimpleParagraph",
|
|
6
|
+
component: SimpleParagraph,
|
|
7
|
+
parameters: {
|
|
8
|
+
status: {
|
|
9
|
+
type: "beta"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, main = function() {
|
|
13
|
+
return /* @__PURE__ */ _jsx(SimpleParagraph, {
|
|
14
|
+
children: `
|
|
15
|
+
function helloWorld() {
|
|
16
|
+
console.log("Hello, World!");
|
|
17
|
+
console.log(`.concat((/* @__PURE__ */ new Date()).getTime().toString(), `)
|
|
18
|
+
}
|
|
19
|
+
`)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
SimpleParagraph_stories_default as default,
|
|
24
|
+
main
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SimpleParagraph.stories.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],
|
|
4
|
+
"mappings": ";AAAA,OAAkB;AAClB,SAASA,uBAAuB;AAEhC,IAAA,kCAAe;EACbC,OAAO;EACPC,WAAWF;EACXG,YAAY;IAAEC,QAAQ;MAAEC,MAAM;IAAO;EAAE;AACzC,GAEaC,OAAO,WAAA;SAClB,qBAACN,iBAAAA;cAAkB;;;kCAG6C,QAAhC,oBAAIO,KAAAA,GAAOC,QAAO,EAAGC,SAAQ,GAAG;;iBAAA;;;",
|
|
5
|
+
"names": ["SimpleParagraph", "title", "component", "parameters", "status", "type", "main", "Date", "getTime", "toString"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from "tamagui";
|
|
2
|
+
import { CodeBlock } from "../../code";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const SimpleParagraph = ({ children, ...props }) => {
|
|
5
|
+
if (typeof children != "string") return null;
|
|
6
|
+
function parseContent(data) {
|
|
7
|
+
const regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g, boldTextRegex = /\*\*(.*?)\*\*/g, segments = data?.match(regex), parsedSegments2 = [];
|
|
8
|
+
return segments?.forEach((segment) => {
|
|
9
|
+
const codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
10
|
+
codeMatch ? parsedSegments2.push({
|
|
11
|
+
type: "code",
|
|
12
|
+
language: codeMatch[1],
|
|
13
|
+
code: codeMatch[2].trim()
|
|
14
|
+
}) : segment.split(`
|
|
15
|
+
`).forEach((line) => {
|
|
16
|
+
let content = [], lastIndex = 0;
|
|
17
|
+
line.replace(boldTextRegex, (match, p1, offset) => (offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push(/* @__PURE__ */ jsx(Text, { fontWeight: "bold", children: p1 })), lastIndex = offset + match.length, match)), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
18
|
+
type: "text",
|
|
19
|
+
content: content.length === 1 ? content[0] : content,
|
|
20
|
+
isBold: !1
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}), parsedSegments2;
|
|
24
|
+
}
|
|
25
|
+
const parsedSegments = parseContent(children);
|
|
26
|
+
return /* @__PURE__ */ jsx(YStack, { ...props, children: parsedSegments.map((segment, index) => segment.type === "text" ? /* @__PURE__ */ jsx(XStack, { children: /* @__PURE__ */ jsx(Paragraph, { overflow: "hidden", fontSize: props.fontSize, color: props.color, children: segment.content }) }, index) : segment.type === "code" ? /* @__PURE__ */ jsx(ScrollView, { flexShrink: 1, scrollEnabled: !0, children: /* @__PURE__ */ jsx(CodeBlock, { children: segment.code }) }, index) : null) });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
SimpleParagraph
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/index.tsx"],
|
|
4
|
+
"mappings": "AACA,SAAS,QAAQ,QAAQ,WAAW,MAAM,kBAAkB;AAC5D,SAAS,iBAAiB;AAuCD;AAhClB,MAAM,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,MAA4B;AAC/E,MAAI,OAAO,YAAa,SAAU,QAAO;AAEzC,WAAS,aAAa,MAAM;AAC1B,UAAM,QAAQ,8CACR,gBAAgB,kBAChB,WAAW,MAAM,MAAM,KAAK,GAC5BA,kBAMA,CAAC;AAEP,qBAAU,QAAQ,CAAC,YAAY;AAC7B,YAAM,YAAY,QAAQ,MAAM,yBAAyB;AACzD,MAAI,YACFA,gBAAe,KAAK;AAAA,QAClB,MAAM;AAAA,QACN,UAAU,UAAU,CAAC;AAAA,QACrB,MAAM,UAAU,CAAC,EAAE,KAAK;AAAA,MAC1B,CAAC,IAGD,QAAQ,MAAM;AAAA,CAAI,EAAE,QAAQ,CAAC,SAAS;AACpC,YAAI,UAA6B,CAAC,GAC9B,YAAY;AAChB,aAAK,QAAQ,eAAe,CAAC,OAAO,IAAI,YAClC,SAAS,aACX,QAAQ,KAAK,KAAK,UAAU,WAAW,MAAM,CAAC,GAEhD,QAAQ,KAAK,oBAAC,QAAK,YAAW,QAAQ,cAAG,CAAO,GAChD,YAAY,SAAS,MAAM,QACpB,MACR,GACG,YAAY,KAAK,UACnB,QAAQ,KAAK,KAAK,UAAU,SAAS,CAAC,GAExCA,gBAAe,KAAK;AAAA,UAClB,MAAM;AAAA,UACN,SAAS,QAAQ,WAAW,IAAI,QAAQ,CAAC,IAAI;AAAA,UAC7C,QAAQ;AAAA,QACV,CAAC;AAAA,MACH,CAAC;AAAA,IAEL,CAAC,GACMA;AAAA,EACT;AAEA,QAAM,iBAAiB,aAAa,QAAQ;AAE5C,SACE,oBAAC,UAAQ,GAAG,OACT,yBAAe,IAAI,CAAC,SAAS,UACxB,QAAQ,SAAS,SAEjB,oBAAC,UACC,8BAAC,aAAU,UAAS,UAAS,UAAU,MAAM,UAAU,OAAO,MAAM,OACjE,kBAAQ,SACX,KAHW,KAIb,IAEO,QAAQ,SAAS,SAExB,oBAAC,cAAuB,YAAY,GAAG,eAAa,IAClD,8BAAC,aAAW,kBAAQ,MAAK,KADV,KAEjB,IAGG,IACR,GACH;AAEJ;",
|
|
5
|
+
"names": ["parsedSegments"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from "tamagui";
|
|
2
|
+
import { CodeBlock } from "../../code/index.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const SimpleParagraph = ({
|
|
5
|
+
children,
|
|
6
|
+
...props
|
|
7
|
+
}) => {
|
|
8
|
+
if (typeof children != "string") return null;
|
|
9
|
+
function parseContent(data) {
|
|
10
|
+
const regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g,
|
|
11
|
+
boldTextRegex = /\*\*(.*?)\*\*/g,
|
|
12
|
+
segments = data?.match(regex),
|
|
13
|
+
parsedSegments2 = [];
|
|
14
|
+
return segments?.forEach(segment => {
|
|
15
|
+
const codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
16
|
+
codeMatch ? parsedSegments2.push({
|
|
17
|
+
type: "code",
|
|
18
|
+
language: codeMatch[1],
|
|
19
|
+
code: codeMatch[2].trim()
|
|
20
|
+
}) : segment.split(`
|
|
21
|
+
`).forEach(line => {
|
|
22
|
+
let content = [],
|
|
23
|
+
lastIndex = 0;
|
|
24
|
+
line.replace(boldTextRegex, (match, p1, offset) => (offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push( /* @__PURE__ */jsx(Text, {
|
|
25
|
+
fontWeight: "bold",
|
|
26
|
+
children: p1
|
|
27
|
+
})), lastIndex = offset + match.length, match)), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
28
|
+
type: "text",
|
|
29
|
+
content: content.length === 1 ? content[0] : content,
|
|
30
|
+
isBold: !1
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}), parsedSegments2;
|
|
34
|
+
}
|
|
35
|
+
const parsedSegments = parseContent(children);
|
|
36
|
+
return /* @__PURE__ */jsx(YStack, {
|
|
37
|
+
...props,
|
|
38
|
+
children: parsedSegments.map((segment, index) => segment.type === "text" ? /* @__PURE__ */jsx(XStack, {
|
|
39
|
+
children: /* @__PURE__ */jsx(Paragraph, {
|
|
40
|
+
overflow: "hidden",
|
|
41
|
+
fontSize: props.fontSize,
|
|
42
|
+
color: props.color,
|
|
43
|
+
children: segment.content
|
|
44
|
+
})
|
|
45
|
+
}, index) : segment.type === "code" ? /* @__PURE__ */jsx(ScrollView, {
|
|
46
|
+
flexShrink: 1,
|
|
47
|
+
scrollEnabled: !0,
|
|
48
|
+
children: /* @__PURE__ */jsx(CodeBlock, {
|
|
49
|
+
children: segment.code
|
|
50
|
+
})
|
|
51
|
+
}, index) : null)
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
export { SimpleParagraph };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from "tamagui";
|
|
4
|
+
import { CodeBlock } from "../../code";
|
|
5
|
+
function _define_property(obj, key, value) {
|
|
6
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
7
|
+
value,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : obj[key] = value, obj;
|
|
12
|
+
}
|
|
13
|
+
function _object_spread(target) {
|
|
14
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
15
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
16
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
17
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
18
|
+
}))), ownKeys2.forEach(function(key) {
|
|
19
|
+
_define_property(target, key, source[key]);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return target;
|
|
23
|
+
}
|
|
24
|
+
function ownKeys(object, enumerableOnly) {
|
|
25
|
+
var keys = Object.keys(object);
|
|
26
|
+
if (Object.getOwnPropertySymbols) {
|
|
27
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
29
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
30
|
+
})), keys.push.apply(keys, symbols);
|
|
31
|
+
}
|
|
32
|
+
return keys;
|
|
33
|
+
}
|
|
34
|
+
function _object_spread_props(target, source) {
|
|
35
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
36
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37
|
+
}), target;
|
|
38
|
+
}
|
|
39
|
+
function _object_without_properties(source, excluded) {
|
|
40
|
+
if (source == null) return {};
|
|
41
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
45
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
}
|
|
49
|
+
function _object_without_properties_loose(source, excluded) {
|
|
50
|
+
if (source == null) return {};
|
|
51
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
52
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
53
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
var SimpleParagraph = function(_param) {
|
|
57
|
+
var parseContent = function(data) {
|
|
58
|
+
var regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g, boldTextRegex = /\*\*(.*?)\*\*/g, segments = data == null ? void 0 : data.match(regex), parsedSegments2 = [];
|
|
59
|
+
return segments == null || segments.forEach(function(segment) {
|
|
60
|
+
var codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
61
|
+
codeMatch ? parsedSegments2.push({
|
|
62
|
+
type: "code",
|
|
63
|
+
language: codeMatch[1],
|
|
64
|
+
code: codeMatch[2].trim()
|
|
65
|
+
}) : segment.split(`
|
|
66
|
+
`).forEach(function(line) {
|
|
67
|
+
var content = [], lastIndex = 0;
|
|
68
|
+
line.replace(boldTextRegex, function(match, p1, offset) {
|
|
69
|
+
return offset > lastIndex && content.push(line.substring(lastIndex, offset)), content.push(/* @__PURE__ */ _jsx(Text, {
|
|
70
|
+
fontWeight: "bold",
|
|
71
|
+
children: p1
|
|
72
|
+
})), lastIndex = offset + match.length, match;
|
|
73
|
+
}), lastIndex < line.length && content.push(line.substring(lastIndex)), parsedSegments2.push({
|
|
74
|
+
type: "text",
|
|
75
|
+
content: content.length === 1 ? content[0] : content,
|
|
76
|
+
isBold: !1
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}), parsedSegments2;
|
|
80
|
+
}, children = _param.children, props = _object_without_properties(_param, [
|
|
81
|
+
"children"
|
|
82
|
+
]);
|
|
83
|
+
if (typeof children != "string") return null;
|
|
84
|
+
var parsedSegments = parseContent(children);
|
|
85
|
+
return /* @__PURE__ */ _jsx(YStack, _object_spread_props(_object_spread({}, props), {
|
|
86
|
+
children: parsedSegments.map(function(segment, index) {
|
|
87
|
+
return segment.type === "text" ? /* @__PURE__ */ _jsx(XStack, {
|
|
88
|
+
children: /* @__PURE__ */ _jsx(Paragraph, {
|
|
89
|
+
overflow: "hidden",
|
|
90
|
+
fontSize: props.fontSize,
|
|
91
|
+
color: props.color,
|
|
92
|
+
children: segment.content
|
|
93
|
+
})
|
|
94
|
+
}, index) : segment.type === "code" ? /* @__PURE__ */ _jsx(ScrollView, {
|
|
95
|
+
flexShrink: 1,
|
|
96
|
+
scrollEnabled: !0,
|
|
97
|
+
children: /* @__PURE__ */ _jsx(CodeBlock, {
|
|
98
|
+
children: segment.code
|
|
99
|
+
})
|
|
100
|
+
}, index) : null;
|
|
101
|
+
})
|
|
102
|
+
}));
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
SimpleParagraph
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/organize/SimpleParagraph/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/SimpleParagraph/index.tsx"],
|
|
4
|
+
"mappings": ";AAAA,OAAkB;AAClB,SAASA,QAAQC,QAAQC,WAAWC,MAAMC,kBAAkB;AAC5D,SAASC,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOnB,IAAMC,kBAAkB,SAAA,QAAA;MAGpBC,eAAT,SAAsBC,MAAI;AACxB,QAAMC,QAAQ,8CACRC,gBAAgB,kBAChBC,WAAWH,QAAAA,OAAAA,SAAAA,KAAMI,MAAMH,KAAAA,GACvBI,kBAMA,CAAA;AAENF,uBAAAA,QAAAA,SAAUG,QAAQ,SAACC,SAAAA;AACjB,UAAMC,YAAYD,QAAQH,MAAM,yBAAA;AAChC,MAAII,YACFH,gBAAeI,KAAK;QAClBC,MAAM;QACNC,UAAUH,UAAU,CAAA;QACpBI,MAAMJ,UAAU,CAAA,EAAGK,KAAI;MACzB,CAAA,IAGAN,QAAQO,MAAM;CAAA,EAAMR,QAAQ,SAACS,MAAAA;AAC3B,YAAIC,UAA6B,CAAA,GAC7BC,YAAY;AAChBF,aAAKG,QAAQhB,eAAe,SAACE,OAAOe,IAAIC,QAAAA;AACtC,iBAAIA,SAASH,aACXD,QAAQP,KAAKM,KAAKM,UAAUJ,WAAWG,MAAAA,CAAAA,GAEzCJ,QAAQP,KAAK,qBAACd,MAAAA;YAAK2B,YAAW;sBAAQH;eACtCF,YAAYG,SAAShB,MAAMmB,QACpBnB;QACT,CAAA,GACIa,YAAYF,KAAKQ,UACnBP,QAAQP,KAAKM,KAAKM,UAAUJ,SAAAA,CAAAA,GAE9BZ,gBAAeI,KAAK;UAClBC,MAAM;UACNM,SAASA,QAAQO,WAAW,IAAIP,QAAQ,CAAA,IAAKA;UAC7CQ,QAAQ;QACV,CAAA;MACF,CAAA;IAEJ,CAAA,GACOnB;EACT,GAhDgCoB,WAAAA,OAAAA,UAAaC,QAAAA,2BAAAA,QAAAA;IAAbD;;AAChC,MAAI,OAAOA,YAAa,SAAU,QAAO;AAiDzC,MAAMpB,iBAAiBN,aAAa0B,QAAAA;AAEpC,SACE,qBAACjC,QAAAA,qBAAAA,eAAAA,CAAAA,GAAWkC,KAAAA,GAAAA;cACTrB,eAAesB,IAAI,SAACpB,SAASqB,OAAAA;AAC5B,aAAIrB,QAAQG,SAAS,SAEjB,qBAACjB,QAAAA;kBACC,qBAACC,WAAAA;UAAUmC,UAAS;UAASC,UAAUJ,MAAMI;UAAUC,OAAOL,MAAMK;oBACjExB,QAAQS;;SAFAY,KAAAA,IAMNrB,QAAQG,SAAS,SAExB,qBAACd,YAAAA;QAAuBoC,YAAY;QAAGC,eAAa;kBAClD,qBAACpC,WAAAA;oBAAWU,QAAQK;;SADLgB,KAAAA,IAKd;IACT,CAAA;;AAGN;",
|
|
5
|
+
"names": ["YStack", "XStack", "Paragraph", "Text", "ScrollView", "CodeBlock", "SimpleParagraph", "parseContent", "data", "regex", "boldTextRegex", "segments", "match", "parsedSegments", "forEach", "segment", "codeMatch", "push", "type", "language", "code", "trim", "split", "line", "content", "lastIndex", "replace", "p1", "offset", "substring", "fontWeight", "length", "isBold", "children", "props", "map", "index", "overflow", "fontSize", "color", "flexShrink", "scrollEnabled"]
|
|
6
|
+
}
|
|
@@ -2,4 +2,5 @@ export * from "./SimpleAccordion/index.mjs";
|
|
|
2
2
|
export * from "./SimpleCarousel/index.mjs";
|
|
3
3
|
export * from "./SimpleInput/index.mjs";
|
|
4
4
|
export * from "./SimpleListItem/index.mjs";
|
|
5
|
-
export * from "./SimpleTabs/index.mjs";
|
|
5
|
+
export * from "./SimpleTabs/index.mjs";
|
|
6
|
+
export * from "./SimpleParagraph/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/organize/home/dharmendraboddeda/Projects/bitspur/multiplatform.one/multiplatform.one/packages/components/src/organize/index.ts"],
|
|
4
|
-
"mappings": "AAqBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
4
|
+
"mappings": "AAqBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/components",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@mdx-js/mdx": "^3.0.1",
|
|
39
39
|
"@mdx-js/react": "^3.0.1",
|
|
40
|
-
"@multiplatform.one/locales": "1.0.
|
|
40
|
+
"@multiplatform.one/locales": "1.0.34",
|
|
41
41
|
"@tamagui/font-inter": "^1.100.3",
|
|
42
42
|
"@tamagui/logo": "^1.100.3",
|
|
43
43
|
"@tamagui/react-native-media-driver": "^1.100.3",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"gray-matter": "^4.0.3",
|
|
51
51
|
"hast-util-to-html": "8.0.4",
|
|
52
52
|
"immer": "^10.1.1",
|
|
53
|
-
"multiplatform.one": "1.0.
|
|
53
|
+
"multiplatform.one": "1.0.34",
|
|
54
54
|
"parse-numeric-range": "^1.3.0",
|
|
55
55
|
"react-native-svg": "15.2.0",
|
|
56
56
|
"refractor": "^4.8.1",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SimpleParagraph } from '.';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/SimpleParagraph',
|
|
6
|
+
component: SimpleParagraph,
|
|
7
|
+
parameters: { status: { type: 'beta' } },
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const main = () => (
|
|
11
|
+
<SimpleParagraph>{`
|
|
12
|
+
function helloWorld() {
|
|
13
|
+
console.log("Hello, World!");
|
|
14
|
+
console.log(${new Date().getTime().toString()})
|
|
15
|
+
}
|
|
16
|
+
`}</SimpleParagraph>
|
|
17
|
+
);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { YStack, XStack, Paragraph, Text, ScrollView } from 'tamagui';
|
|
3
|
+
import { CodeBlock } from '../../code';
|
|
4
|
+
import type { YStackProps, ParagraphProps } from 'tamagui';
|
|
5
|
+
|
|
6
|
+
export interface SimpleParagraphProps extends YStackProps, Pick<ParagraphProps, 'color' | 'fontSize'> {
|
|
7
|
+
children: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const SimpleParagraph = ({ children, ...props }: SimpleParagraphProps) => {
|
|
11
|
+
if (typeof children !== 'string') return null;
|
|
12
|
+
|
|
13
|
+
function parseContent(data) {
|
|
14
|
+
const regex = /```(.*?)\n([\s\S]*?)```|[\s\S]+?(?=```|$)/g;
|
|
15
|
+
const boldTextRegex = /\*\*(.*?)\*\*/g;
|
|
16
|
+
const segments = data?.match(regex);
|
|
17
|
+
const parsedSegments: {
|
|
18
|
+
type: string;
|
|
19
|
+
content?: React.ReactNode;
|
|
20
|
+
language?: string;
|
|
21
|
+
code?: string;
|
|
22
|
+
isBold?: boolean;
|
|
23
|
+
}[] = [];
|
|
24
|
+
|
|
25
|
+
segments?.forEach((segment) => {
|
|
26
|
+
const codeMatch = segment.match(/```(.*?)\n([\s\S]*?)```/);
|
|
27
|
+
if (codeMatch) {
|
|
28
|
+
parsedSegments.push({
|
|
29
|
+
type: 'code',
|
|
30
|
+
language: codeMatch[1],
|
|
31
|
+
code: codeMatch[2].trim(),
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
// Splitting the text segment by new lines and treating each new line as a separate text segment
|
|
35
|
+
segment.split('\n').forEach((line) => {
|
|
36
|
+
let content: React.ReactNode[] = [];
|
|
37
|
+
let lastIndex = 0;
|
|
38
|
+
line.replace(boldTextRegex, (match, p1, offset) => {
|
|
39
|
+
if (offset > lastIndex) {
|
|
40
|
+
content.push(line.substring(lastIndex, offset));
|
|
41
|
+
}
|
|
42
|
+
content.push(<Text fontWeight="bold">{p1}</Text>);
|
|
43
|
+
lastIndex = offset + match.length;
|
|
44
|
+
return match; // This return is not used but necessary for replace function
|
|
45
|
+
});
|
|
46
|
+
if (lastIndex < line.length) {
|
|
47
|
+
content.push(line.substring(lastIndex));
|
|
48
|
+
}
|
|
49
|
+
parsedSegments.push({
|
|
50
|
+
type: 'text',
|
|
51
|
+
content: content.length === 1 ? content[0] : content,
|
|
52
|
+
isBold: false,
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return parsedSegments;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const parsedSegments = parseContent(children);
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<YStack {...props}>
|
|
64
|
+
{parsedSegments.map((segment, index) => {
|
|
65
|
+
if (segment.type === 'text') {
|
|
66
|
+
return (
|
|
67
|
+
<XStack key={index}>
|
|
68
|
+
<Paragraph overflow="hidden" fontSize={props.fontSize} color={props.color}>
|
|
69
|
+
{segment.content}
|
|
70
|
+
</Paragraph>
|
|
71
|
+
</XStack>
|
|
72
|
+
);
|
|
73
|
+
} else if (segment.type === 'code') {
|
|
74
|
+
return (
|
|
75
|
+
<ScrollView key={index} flexShrink={1} scrollEnabled>
|
|
76
|
+
<CodeBlock>{segment.code}</CodeBlock>
|
|
77
|
+
</ScrollView>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
})}
|
|
82
|
+
</YStack>
|
|
83
|
+
);
|
|
84
|
+
};
|
package/src/organize/index.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, ...props }: import(".").SimpleParagraphProps) => React.JSX.Element | null;
|
|
5
|
+
parameters: {
|
|
6
|
+
status: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const main: () => React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=SimpleParagraph.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleParagraph.stories.d.ts","sourceRoot":"","sources":["../../../src/organize/SimpleParagraph/SimpleParagraph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;AAG1B,wBAIE;AAEF,eAAO,MAAM,IAAI,yBAOhB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { YStackProps, ParagraphProps } from 'tamagui';
|
|
3
|
+
export interface SimpleParagraphProps extends YStackProps, Pick<ParagraphProps, 'color' | 'fontSize'> {
|
|
4
|
+
children: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SimpleParagraph: ({ children, ...props }: SimpleParagraphProps) => React.JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organize/SimpleParagraph/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC;IACnG,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,2BAA4B,oBAAoB,6BA0E3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organize/index.ts"],"names":[],"mappings":"AAqBA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organize/index.ts"],"names":[],"mappings":"AAqBA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|