@multiplatform.one/components 0.2.0 → 0.2.2
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/ErrorBoundary/index.js +12 -5
- package/dist/cjs/ErrorBoundary/index.js.map +2 -2
- package/dist/cjs/code/CodeBlock/index.js +12 -2
- package/dist/cjs/code/CodeBlock/index.js.map +2 -2
- package/dist/cjs/forms/FormCheckBox/FormCheckBox.stories.js +12 -1
- package/dist/cjs/forms/FormCheckBox/FormCheckBox.stories.js.map +2 -2
- package/dist/cjs/forms/FormCheckBox/index.js +78 -49
- package/dist/cjs/forms/FormCheckBox/index.js.map +2 -2
- package/dist/cjs/forms/FormField.js +12 -10
- package/dist/cjs/forms/FormField.js.map +2 -2
- package/dist/cjs/forms/FormInput/FormInput.stories.js +12 -4
- package/dist/cjs/forms/FormInput/FormInput.stories.js.map +2 -2
- package/dist/cjs/forms/FormInput/index.js +49 -29
- package/dist/cjs/forms/FormInput/index.js.map +2 -2
- package/dist/cjs/forms/FormRadioGroup/FormRadioGroup.stories.js +25 -11
- package/dist/cjs/forms/FormRadioGroup/FormRadioGroup.stories.js.map +2 -2
- package/dist/cjs/forms/FormRadioGroup/index.js +47 -29
- package/dist/cjs/forms/FormRadioGroup/index.js.map +2 -2
- package/dist/cjs/forms/FormSelectSimple/FormSelectSimple.stories.js +12 -6
- package/dist/cjs/forms/FormSelectSimple/FormSelectSimple.stories.js.map +2 -2
- package/dist/cjs/forms/FormSelectSimple/index.js +44 -24
- package/dist/cjs/forms/FormSelectSimple/index.js.map +2 -2
- package/dist/cjs/forms/FormSlider/FormSlider.stories.js +12 -1
- package/dist/cjs/forms/FormSlider/FormSlider.stories.js.map +2 -2
- package/dist/cjs/forms/FormSlider/index.js +57 -40
- package/dist/cjs/forms/FormSlider/index.js.map +2 -2
- package/dist/cjs/forms/FormSubmitButton/FormSubmitButton.stories.js +12 -1
- package/dist/cjs/forms/FormSubmitButton/FormSubmitButton.stories.js.map +2 -2
- package/dist/cjs/forms/FormSubmitButton/index.js +25 -11
- package/dist/cjs/forms/FormSubmitButton/index.js.map +2 -2
- package/dist/cjs/forms/FormSwitch/FormSwitch.stories.js +12 -1
- package/dist/cjs/forms/FormSwitch/FormSwitch.stories.js.map +2 -2
- package/dist/cjs/forms/FormSwitch/index.js +51 -30
- package/dist/cjs/forms/FormSwitch/index.js.map +2 -2
- package/dist/cjs/forms/FormTextArea/FormTextArea.stories.js +12 -1
- package/dist/cjs/forms/FormTextArea/FormTextArea.stories.js.map +2 -2
- package/dist/cjs/forms/FormTextArea/index.js +49 -29
- package/dist/cjs/forms/FormTextArea/index.js.map +2 -2
- package/dist/cjs/forms/RadioSimple/RadioSimple.stories.js +12 -1
- package/dist/cjs/forms/RadioSimple/RadioSimple.stories.js.map +2 -2
- package/dist/cjs/forms/RadioSimple/index.js +12 -8
- package/dist/cjs/forms/RadioSimple/index.js.map +2 -2
- package/dist/cjs/forms/SelectButton/OptionButton.js +31 -18
- package/dist/cjs/forms/SelectButton/OptionButton.js.map +2 -2
- package/dist/cjs/forms/SelectButton/SelectButton.stories.js +13 -12
- package/dist/cjs/forms/SelectButton/SelectButton.stories.js.map +2 -2
- package/dist/cjs/forms/SelectButton/index.js +12 -2
- package/dist/cjs/forms/SelectButton/index.js.map +2 -2
- package/dist/cjs/forms/SelectSimple/SelectSimple.stories.js +12 -6
- package/dist/cjs/forms/SelectSimple/SelectSimple.stories.js.map +2 -2
- package/dist/cjs/forms/SelectSimple/index.js +12 -8
- package/dist/cjs/forms/SelectSimple/index.js.map +2 -2
- package/dist/cjs/forms/SimpleForm/SimpleForm.stories.js +12 -14
- package/dist/cjs/forms/SimpleForm/SimpleForm.stories.js.map +2 -2
- package/dist/cjs/forms/SimpleForm/index.js +12 -1
- package/dist/cjs/forms/SimpleForm/index.js.map +2 -2
- package/dist/cjs/helpers.js +12 -1
- package/dist/cjs/helpers.js.map +2 -2
- package/dist/cjs/images/SimpleImage/index.js +34 -18
- package/dist/cjs/images/SimpleImage/index.js.map +2 -2
- package/dist/cjs/images/SimpleImage/index.stories.js +25 -11
- package/dist/cjs/images/SimpleImage/index.stories.js.map +2 -2
- package/dist/cjs/images/Svg/Svg.stories.js +21 -7
- package/dist/cjs/images/Svg/Svg.stories.js.map +2 -2
- package/dist/cjs/images/SvgUri/index.js +12 -1
- package/dist/cjs/images/SvgUri/index.js.map +2 -2
- package/dist/cjs/layouts/Debug/DebugLayout.stories.js +13 -2
- package/dist/cjs/layouts/Debug/DebugLayout.stories.js.map +2 -2
- package/dist/cjs/layouts/Debug/index.js +49 -43
- package/dist/cjs/layouts/Debug/index.js.map +2 -2
- package/dist/cjs/mdx/ExternalIcon/ExternalIcon.stories.js +12 -1
- package/dist/cjs/mdx/ExternalIcon/ExternalIcon.stories.js.map +2 -2
- package/dist/cjs/mdx/ExternalIcon/index.js +18 -4
- package/dist/cjs/mdx/ExternalIcon/index.js.map +2 -2
- package/dist/cjs/mdx/HR/HR.stories.js +12 -1
- package/dist/cjs/mdx/HR/HR.stories.js.map +2 -2
- package/dist/cjs/mdx/HR/index.js +12 -4
- package/dist/cjs/mdx/HR/index.js.map +2 -2
- package/dist/cjs/mdx/MDX/MDX.stories.js +12 -1
- package/dist/cjs/mdx/MDX/MDX.stories.js.map +2 -2
- package/dist/cjs/mdx/MDX/index.js +22 -8
- package/dist/cjs/mdx/MDX/index.js.map +2 -2
- package/dist/cjs/mdx/MDXCodeBlock/MDXCodeBlock.stories.js +12 -36
- package/dist/cjs/mdx/MDXCodeBlock/MDXCodeBlock.stories.js.map +2 -2
- package/dist/cjs/mdx/MDXCodeBlock/index.js +82 -56
- package/dist/cjs/mdx/MDXCodeBlock/index.js.map +2 -2
- package/dist/cjs/mdx/UL/UL.stories.js +12 -1
- package/dist/cjs/mdx/UL/UL.stories.js.map +2 -2
- package/dist/cjs/mdx/components.js +68 -69
- package/dist/cjs/mdx/components.js.map +1 -1
- package/dist/cjs/panels/SimpleAlertDialog/SImpleAlertDialog.stories.js +21 -6
- package/dist/cjs/panels/SimpleAlertDialog/SImpleAlertDialog.stories.js.map +2 -2
- package/dist/cjs/panels/SimpleAlertDialog/index.js +34 -28
- package/dist/cjs/panels/SimpleAlertDialog/index.js.map +2 -2
- package/dist/cjs/panels/SimpleDialog/SimpleDialog.stories.js +19 -4
- package/dist/cjs/panels/SimpleDialog/SimpleDialog.stories.js.map +2 -2
- package/dist/cjs/panels/SimpleDialog/index.js +34 -31
- package/dist/cjs/panels/SimpleDialog/index.js.map +2 -2
- package/dist/cjs/panels/SimplePopover/SimplePopover.stories.js +12 -1
- package/dist/cjs/panels/SimplePopover/SimplePopover.stories.js.map +2 -2
- package/dist/cjs/panels/SimplePopover/index.js +28 -25
- package/dist/cjs/panels/SimplePopover/index.js.map +2 -2
- package/dist/cjs/panels/SimpleSheet/SimpleSheet.stories.js +12 -1
- package/dist/cjs/panels/SimpleSheet/SimpleSheet.stories.js.map +2 -2
- package/dist/cjs/panels/SimpleSheet/index.js +51 -48
- package/dist/cjs/panels/SimpleSheet/index.js.map +2 -2
- package/dist/cjs/panels/SimpleTooltip/SimpleTooltip.stories.js +18 -3
- package/dist/cjs/panels/SimpleTooltip/SimpleTooltip.stories.js.map +2 -2
- package/dist/cjs/panels/SimpleTooltip/index.js +26 -16
- package/dist/cjs/panels/SimpleTooltip/index.js.map +2 -2
- package/dist/cjs/providers/AnimationDriverTogglerContextProvider.js +12 -1
- package/dist/cjs/providers/AnimationDriverTogglerContextProvider.js.map +2 -2
- package/dist/cjs/table/Table/Table.stories.js +12 -44
- package/dist/cjs/table/Table/Table.stories.js.map +2 -2
- package/dist/cjs/table/Table/index.js +12 -4
- package/dist/cjs/table/Table/index.js.map +2 -2
- package/dist/esm/ErrorBoundary/index.js +2 -5
- package/dist/esm/ErrorBoundary/index.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.js +2 -2
- package/dist/esm/code/CodeBlock/index.js.map +1 -1
- package/dist/esm/forms/FormCheckBox/FormCheckBox.stories.js +2 -1
- package/dist/esm/forms/FormCheckBox/FormCheckBox.stories.js.map +1 -1
- package/dist/esm/forms/FormCheckBox/index.js +68 -49
- package/dist/esm/forms/FormCheckBox/index.js.map +1 -1
- package/dist/esm/forms/FormField.js +2 -10
- package/dist/esm/forms/FormField.js.map +1 -1
- package/dist/esm/forms/FormInput/FormInput.stories.js +2 -4
- package/dist/esm/forms/FormInput/FormInput.stories.js.map +1 -1
- package/dist/esm/forms/FormInput/index.js +39 -29
- package/dist/esm/forms/FormInput/index.js.map +1 -1
- package/dist/esm/forms/FormRadioGroup/FormRadioGroup.stories.js +15 -11
- package/dist/esm/forms/FormRadioGroup/FormRadioGroup.stories.js.map +1 -1
- package/dist/esm/forms/FormRadioGroup/index.js +37 -29
- package/dist/esm/forms/FormRadioGroup/index.js.map +1 -1
- package/dist/esm/forms/FormSelectSimple/FormSelectSimple.stories.js +2 -6
- package/dist/esm/forms/FormSelectSimple/FormSelectSimple.stories.js.map +1 -1
- package/dist/esm/forms/FormSelectSimple/index.js +34 -24
- package/dist/esm/forms/FormSelectSimple/index.js.map +1 -1
- package/dist/esm/forms/FormSlider/FormSlider.stories.js +2 -1
- package/dist/esm/forms/FormSlider/FormSlider.stories.js.map +1 -1
- package/dist/esm/forms/FormSlider/index.js +47 -40
- package/dist/esm/forms/FormSlider/index.js.map +1 -1
- package/dist/esm/forms/FormSubmitButton/FormSubmitButton.stories.js +2 -1
- package/dist/esm/forms/FormSubmitButton/FormSubmitButton.stories.js.map +1 -1
- package/dist/esm/forms/FormSubmitButton/index.js +15 -11
- package/dist/esm/forms/FormSubmitButton/index.js.map +1 -1
- package/dist/esm/forms/FormSwitch/FormSwitch.stories.js +2 -1
- package/dist/esm/forms/FormSwitch/FormSwitch.stories.js.map +1 -1
- package/dist/esm/forms/FormSwitch/index.js +41 -30
- package/dist/esm/forms/FormSwitch/index.js.map +1 -1
- package/dist/esm/forms/FormTextArea/FormTextArea.stories.js +2 -1
- package/dist/esm/forms/FormTextArea/FormTextArea.stories.js.map +1 -1
- package/dist/esm/forms/FormTextArea/index.js +39 -29
- package/dist/esm/forms/FormTextArea/index.js.map +1 -1
- package/dist/esm/forms/RadioSimple/RadioSimple.stories.js +2 -1
- package/dist/esm/forms/RadioSimple/RadioSimple.stories.js.map +1 -1
- package/dist/esm/forms/RadioSimple/index.js +2 -8
- package/dist/esm/forms/RadioSimple/index.js.map +1 -1
- package/dist/esm/forms/SelectButton/OptionButton.js +21 -18
- package/dist/esm/forms/SelectButton/OptionButton.js.map +1 -1
- package/dist/esm/forms/SelectButton/SelectButton.stories.js +3 -12
- package/dist/esm/forms/SelectButton/SelectButton.stories.js.map +1 -1
- package/dist/esm/forms/SelectButton/index.js +2 -2
- package/dist/esm/forms/SelectButton/index.js.map +1 -1
- package/dist/esm/forms/SelectSimple/SelectSimple.stories.js +2 -6
- package/dist/esm/forms/SelectSimple/SelectSimple.stories.js.map +1 -1
- package/dist/esm/forms/SelectSimple/index.js +2 -8
- package/dist/esm/forms/SelectSimple/index.js.map +1 -1
- package/dist/esm/forms/SimpleForm/SimpleForm.stories.js +2 -14
- package/dist/esm/forms/SimpleForm/SimpleForm.stories.js.map +1 -1
- package/dist/esm/forms/SimpleForm/index.js +2 -1
- package/dist/esm/forms/SimpleForm/index.js.map +1 -1
- package/dist/esm/helpers.js +2 -1
- package/dist/esm/helpers.js.map +1 -1
- package/dist/esm/images/SimpleImage/index.js +24 -18
- package/dist/esm/images/SimpleImage/index.js.map +1 -1
- package/dist/esm/images/SimpleImage/index.stories.js +15 -11
- package/dist/esm/images/SimpleImage/index.stories.js.map +1 -1
- package/dist/esm/images/Svg/Svg.stories.js +11 -7
- package/dist/esm/images/Svg/Svg.stories.js.map +1 -1
- package/dist/esm/images/SvgUri/index.js +2 -1
- package/dist/esm/images/SvgUri/index.js.map +1 -1
- package/dist/esm/layouts/Debug/DebugLayout.stories.js +3 -2
- package/dist/esm/layouts/Debug/DebugLayout.stories.js.map +1 -1
- package/dist/esm/layouts/Debug/index.js +39 -43
- package/dist/esm/layouts/Debug/index.js.map +1 -1
- package/dist/esm/mdx/ExternalIcon/ExternalIcon.stories.js +2 -1
- package/dist/esm/mdx/ExternalIcon/ExternalIcon.stories.js.map +1 -1
- package/dist/esm/mdx/ExternalIcon/index.js +8 -4
- package/dist/esm/mdx/ExternalIcon/index.js.map +1 -1
- package/dist/esm/mdx/HR/HR.stories.js +2 -1
- package/dist/esm/mdx/HR/HR.stories.js.map +1 -1
- package/dist/esm/mdx/HR/index.js +2 -4
- package/dist/esm/mdx/HR/index.js.map +1 -1
- package/dist/esm/mdx/MDX/MDX.stories.js +2 -1
- package/dist/esm/mdx/MDX/MDX.stories.js.map +1 -1
- package/dist/esm/mdx/MDX/index.js +12 -8
- package/dist/esm/mdx/MDX/index.js.map +1 -1
- package/dist/esm/mdx/MDXCodeBlock/MDXCodeBlock.stories.js +2 -36
- package/dist/esm/mdx/MDXCodeBlock/MDXCodeBlock.stories.js.map +1 -1
- package/dist/esm/mdx/MDXCodeBlock/index.js +72 -56
- package/dist/esm/mdx/MDXCodeBlock/index.js.map +1 -1
- package/dist/esm/mdx/UL/UL.stories.js +2 -1
- package/dist/esm/mdx/UL/UL.stories.js.map +1 -1
- package/dist/esm/mdx/components.js +68 -69
- package/dist/esm/mdx/components.js.map +1 -1
- package/dist/esm/panels/SimpleAlertDialog/SImpleAlertDialog.stories.js +11 -6
- package/dist/esm/panels/SimpleAlertDialog/SImpleAlertDialog.stories.js.map +1 -1
- package/dist/esm/panels/SimpleAlertDialog/index.js +24 -28
- package/dist/esm/panels/SimpleAlertDialog/index.js.map +1 -1
- package/dist/esm/panels/SimpleDialog/SimpleDialog.stories.js +9 -4
- package/dist/esm/panels/SimpleDialog/SimpleDialog.stories.js.map +1 -1
- package/dist/esm/panels/SimpleDialog/index.js +24 -31
- package/dist/esm/panels/SimpleDialog/index.js.map +1 -1
- package/dist/esm/panels/SimplePopover/SimplePopover.stories.js +2 -1
- package/dist/esm/panels/SimplePopover/SimplePopover.stories.js.map +1 -1
- package/dist/esm/panels/SimplePopover/index.js +18 -25
- package/dist/esm/panels/SimplePopover/index.js.map +1 -1
- package/dist/esm/panels/SimpleSheet/SimpleSheet.stories.js +2 -1
- package/dist/esm/panels/SimpleSheet/SimpleSheet.stories.js.map +1 -1
- package/dist/esm/panels/SimpleSheet/index.js +41 -48
- package/dist/esm/panels/SimpleSheet/index.js.map +1 -1
- package/dist/esm/panels/SimpleTooltip/SimpleTooltip.stories.js +8 -3
- package/dist/esm/panels/SimpleTooltip/SimpleTooltip.stories.js.map +1 -1
- package/dist/esm/panels/SimpleTooltip/index.js +16 -16
- package/dist/esm/panels/SimpleTooltip/index.js.map +1 -1
- package/dist/esm/providers/AnimationDriverTogglerContextProvider.js +2 -1
- package/dist/esm/providers/AnimationDriverTogglerContextProvider.js.map +1 -1
- package/dist/esm/table/Table/Table.stories.js +2 -44
- package/dist/esm/table/Table/Table.stories.js.map +1 -1
- package/dist/esm/table/Table/index.js +2 -4
- package/dist/esm/table/Table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,12 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
var MDX_exports = {};
|
|
19
29
|
__export(MDX_exports, {
|
|
20
30
|
MDX: () => MDX
|
|
21
31
|
});
|
|
22
32
|
module.exports = __toCommonJS(MDX_exports);
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
23
34
|
var import_components = require("../components");
|
|
24
35
|
var import_hooks = require("../hooks");
|
|
25
36
|
var import_react2 = require("@mdx-js/react");
|
|
@@ -28,18 +39,21 @@ function MDX({ children, debug, ...props }) {
|
|
|
28
39
|
const components = (0, import_react2.useMDXComponents)();
|
|
29
40
|
const { Component, code, frontmatter } = (0, import_hooks.useCompileAndEvaluateMdx)(children);
|
|
30
41
|
if (!Component)
|
|
31
|
-
return
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
|
|
32
43
|
if (debug) {
|
|
33
44
|
logger.debug("MDX", { frontmatter });
|
|
34
45
|
logger.debug(code);
|
|
35
46
|
}
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
Component,
|
|
49
|
+
{
|
|
50
|
+
components: {
|
|
51
|
+
...import_components.mdxComponents,
|
|
52
|
+
...components,
|
|
53
|
+
...props.components
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
);
|
|
43
57
|
}
|
|
44
58
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
59
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mdx/MDX/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["import_react"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAGlB,wBAA8B;AAC9B,mBAAyC;AACzC,IAAAA,gBAAiC;AAQjC,MAAM,SAAS;AAER,SAAS,IAAI,EAAE,UAAU,OAAO,GAAG,MAAM,GAAa;AAC3D,QAAM,iBAAa,gCAAiB;AACpC,QAAM,EAAE,WAAW,MAAM,YAAY,QAAI,uCAAyB,QAAQ;AAC1E,MAAI,CAAC;AAAW,WAAO,6BAAAC,QAAA,2BAAAA,QAAA,cAAI;AAC3B,MAAI,OAAO;AACT,WAAO,MAAM,OAAO,EAAE,YAAY,CAAC;AACnC,WAAO,MAAM,IAAI;AAAA,EACnB;AACA,SACE,6BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,QACV,GAAG;AAAA,QACH,GAAG;AAAA,QACH,GAAG,MAAM;AAAA,MACX;AAAA;AAAA,EACF;AAEJ;",
|
|
5
|
+
"names": ["import_react", "React"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
var MDXCodeBlock_stories_exports = {};
|
|
19
29
|
__export(MDXCodeBlock_stories_exports, {
|
|
@@ -21,6 +31,7 @@ __export(MDXCodeBlock_stories_exports, {
|
|
|
21
31
|
main: () => main
|
|
22
32
|
});
|
|
23
33
|
module.exports = __toCommonJS(MDXCodeBlock_stories_exports);
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
24
35
|
var import_index = require("./index");
|
|
25
36
|
var import_tamagui = require("tamagui");
|
|
26
37
|
const meta = {
|
|
@@ -35,42 +46,7 @@ const main = {
|
|
|
35
46
|
isCollapsible: false,
|
|
36
47
|
bg: "$color3"
|
|
37
48
|
},
|
|
38
|
-
render: (args) =>
|
|
39
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
40
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
41
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
42
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
43
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
44
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
45
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
46
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
47
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
48
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
49
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
50
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
51
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
52
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
53
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
54
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
55
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
56
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
57
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
58
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
59
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
60
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
61
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
62
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
63
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
64
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
65
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
66
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
67
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
68
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
69
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
70
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
71
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
72
|
-
<import_tamagui.XStack><import_tamagui.Text>const hello = "world"</import_tamagui.Text></import_tamagui.XStack>
|
|
73
|
-
</import_index.MDXCodeBlock>
|
|
49
|
+
render: (args) => /* @__PURE__ */ import_react.default.createElement(import_index.MDXCodeBlock, { ...args }, /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')), /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, null, 'const hello = "world"')))
|
|
74
50
|
};
|
|
75
51
|
var MDXCodeBlock_stories_default = meta;
|
|
76
52
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mdx/MDXCodeBlock/MDXCodeBlock.stories.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAElB,mBAA6B;AAC7B,qBAA6B;AAE7B,MAAM,OAAa;AAAA,EACjB,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ,EAAE,MAAM,OAAO;AAAA,EACzB;AACF;AAEO,MAAM,OAAsC;AAAA,EACjD,MAAM;AAAA,IACJ,eAAe;AAAA,IACf,IAAI;AAAA,EACN;AAAA,EACA,QAAQ,CAAC,SACP,6BAAAA,QAAA,cAAC,6BAAc,GAAG,QAChB,6BAAAA,QAAA,cAAC,6BACC,6BAAAA,QAAA,cAAC,2BAAK,uBAA+B,CACvC,GACA,6BAAAA,QAAA,cAAC,6BACC,6BAAAA,QAAA,cAAC,2BAAK,uBAA+B,CACvC,GACA,6BAAAA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1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,13 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
var MDXCodeBlock_exports = {};
|
|
19
29
|
__export(MDXCodeBlock_exports, {
|
|
20
30
|
MDXCodeBlock: () => MDXCodeBlock
|
|
21
31
|
});
|
|
22
32
|
module.exports = __toCommonJS(MDXCodeBlock_exports);
|
|
23
|
-
var import_react = require("react");
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
24
34
|
var import_tamagui = require("tamagui");
|
|
25
35
|
var import_lucide_icons = require("@tamagui/lucide-icons");
|
|
26
36
|
var import_Code = require("../../code/Code");
|
|
@@ -63,62 +73,78 @@ function MDXCodeBlock(props) {
|
|
|
63
73
|
} catch {
|
|
64
74
|
}
|
|
65
75
|
}, [preRef]);
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
76
|
+
return /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, { position: "relative", mb: "$4" }, /* @__PURE__ */ import_react.default.createElement(import_ErrorBoundary.ErrorBoundary, null, /* @__PURE__ */ import_react.default.createElement(
|
|
77
|
+
import_tamagui.YStack,
|
|
78
|
+
{
|
|
79
|
+
position: "relative",
|
|
80
|
+
...isCutoff && {
|
|
81
|
+
maxHeight: 400,
|
|
82
|
+
ov: "hidden",
|
|
83
|
+
br: "$4"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
(!isCollapsed || !isCollapsible) && isCutoff && /* @__PURE__ */ import_react.default.createElement(
|
|
87
|
+
import_linear_gradient.LinearGradient,
|
|
88
|
+
{
|
|
89
|
+
pos: "absolute",
|
|
90
|
+
b: 0,
|
|
91
|
+
l: 0,
|
|
92
|
+
r: 0,
|
|
93
|
+
height: 200,
|
|
94
|
+
colors: ["$backgroundTransparent", "$background"],
|
|
95
|
+
zi: 1e3
|
|
96
|
+
},
|
|
97
|
+
/* @__PURE__ */ import_react.default.createElement(import_tamagui.Spacer, { f: 1 }),
|
|
98
|
+
/* @__PURE__ */ import_react.default.createElement(import_tamagui.Button, { onPress: () => setIsCutoff(!isCutoff), als: "center" }, "Show more"),
|
|
99
|
+
/* @__PURE__ */ import_react.default.createElement(import_tamagui.Spacer, { size: "$4" })
|
|
100
|
+
),
|
|
101
|
+
(!isCollapsed || !isCollapsible) && /* @__PURE__ */ import_react.default.createElement(
|
|
102
|
+
import_Pre.Pre,
|
|
103
|
+
{
|
|
104
|
+
ref: preRef,
|
|
105
|
+
"data-invert-line-highlight": isHighlightingLines,
|
|
106
|
+
"data-line-numbers": showLineNumbers,
|
|
107
|
+
className,
|
|
108
|
+
p: 0,
|
|
109
|
+
mb: 0,
|
|
110
|
+
id
|
|
111
|
+
},
|
|
112
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
113
|
+
import_react_native.ScrollView,
|
|
114
|
+
{
|
|
115
|
+
style: { width: "100%" },
|
|
116
|
+
contentContainerStyle: { minWidth: "100%" },
|
|
117
|
+
horizontal: true,
|
|
118
|
+
showsHorizontalScrollIndicator: false
|
|
119
|
+
},
|
|
120
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
121
|
+
import_Code.Code,
|
|
122
|
+
{
|
|
123
|
+
backgroundColor: "transparent",
|
|
124
|
+
className,
|
|
125
|
+
f: 1,
|
|
126
|
+
lineHeight: tokens.space[size || "$5"],
|
|
127
|
+
p: "$4",
|
|
128
|
+
size: size ?? "$5",
|
|
129
|
+
...codeProps
|
|
130
|
+
},
|
|
131
|
+
children
|
|
132
|
+
)
|
|
133
|
+
)
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, { position: "absolute", top: "$3", right: "$3", space: "$3" }, (!isCollapsed || !isCollapsible) && !disableCopy && /* @__PURE__ */ import_react.default.createElement(import_tamagui.TooltipSimple, { label: hasCopied ? "Copied" : "Copy to clipboard" }, /* @__PURE__ */ import_react.default.createElement(
|
|
136
|
+
import_tamagui.Button,
|
|
137
|
+
{
|
|
138
|
+
"aria-label": "Copy code to clipboard",
|
|
139
|
+
size: "$2",
|
|
140
|
+
icon: hasCopied ? import_lucide_icons.CheckCircle : import_lucide_icons.Clipboard,
|
|
141
|
+
onPress: onCopy,
|
|
142
|
+
$xs: {
|
|
116
143
|
display: "none"
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
</import_tamagui.YStack></import_ErrorBoundary.ErrorBoundary></import_tamagui.YStack>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
)), isCollapsible && /* @__PURE__ */ import_react.default.createElement(import_tamagui.Button, { accessibilityLabel: "Show or hide code", size: "$2", onPress: () => setIsCollapsed((x) => !x) }, isCollapsed ? "Show code" : "Hide code"))
|
|
147
|
+
)));
|
|
122
148
|
}
|
|
123
149
|
// Annotate the CommonJS export names for ESM import in node:
|
|
124
150
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mdx/MDXCodeBlock/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["code"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA+D;AAE/D,qBAAyE;AACzE,0BAAuC;AACvC,kBAAqB;AACrB,2BAA8B;AAC9B,6BAA+B;AAC/B,iCAAoC;AACpC,iBAAoB;AACpB,0BAA2B;AAC3B,0BAA6B;AAOtB,SAAS,aAAa,OAA0B;AACrD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB;AAAA,IACA,GAAG;AAAA,EACL,IAAI,EAAE,OAAG,yBAAW,8CAAmB,GAAG,GAAG,MAAM;AACnD,QAAM,QAAQ,MAAM,QAAQ,QAAQ,IAAI,SAAS,SAAS;AAC1D,QAAM,k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8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
var UL_stories_exports = {};
|
|
19
29
|
__export(UL_stories_exports, {
|
|
@@ -21,13 +31,14 @@ __export(UL_stories_exports, {
|
|
|
21
31
|
main: () => main
|
|
22
32
|
});
|
|
23
33
|
module.exports = __toCommonJS(UL_stories_exports);
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
24
35
|
var import_index = require("./index");
|
|
25
36
|
var UL_stories_default = {
|
|
26
37
|
title: "mdx/UL",
|
|
27
38
|
component: import_index.UL,
|
|
28
39
|
parameters: { status: { type: "beta" } }
|
|
29
40
|
};
|
|
30
|
-
const main = () =>
|
|
41
|
+
const main = () => /* @__PURE__ */ import_react.default.createElement(import_index.UL, null);
|
|
31
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
43
|
0 && (module.exports = {
|
|
33
44
|
main
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mdx/UL/UL.stories.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,mBAAmB;AAEnB,IAAO,qBAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,EAAE;AACzC;AAEO,MAAM,OAAO,MAAM,6BAAAA,QAAA,cAAC,qBAAG;",
|
|
5
|
+
"names": ["React"]
|
|
6
6
|
}
|
|
@@ -44,93 +44,92 @@ var import_UL = require("./UL");
|
|
|
44
44
|
var import_unwrapText = require("../utils/unwrapText");
|
|
45
45
|
const code = ({ hero, line, scrollable, className, children, id, showLineNumbers, collapsible, ...props }) => {
|
|
46
46
|
if (!className)
|
|
47
|
-
return
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Code.CodeInline, null, (0, import_unwrapText.unwrapText)(children));
|
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, { marginTop: "$3" }, /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
+
import_MDXCodeBlock.MDXCodeBlock,
|
|
50
|
+
{
|
|
51
|
+
className,
|
|
52
|
+
isHighlightingLines: line !== void 0,
|
|
53
|
+
showLineNumbers: showLineNumbers !== void 0,
|
|
54
|
+
...sanitizeProps(props)
|
|
55
|
+
},
|
|
56
|
+
children
|
|
57
|
+
));
|
|
54
58
|
};
|
|
55
59
|
const TableHighlight = (0, import_tamagui.styled)(import_tamagui.YStack, {
|
|
56
60
|
backgroundColor: "$yellow1",
|
|
57
61
|
fullscreen: true
|
|
58
62
|
});
|
|
59
63
|
const mdxComponents = {
|
|
60
|
-
h1: (props) =>
|
|
61
|
-
h2: (props) =>
|
|
62
|
-
h3: ({ children, id, ...props }) =>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
h5: (props) => <import_tamagui.H5 marginTop="$4" {...sanitizeProps(props)} />,
|
|
68
|
-
h6: (props) => <import_tamagui.H6 marginTop="$4" {...sanitizeProps(props)} />,
|
|
69
|
-
p: (props) => <import_tamagui.Paragraph size="$6" marginVertical="$2.5" {...sanitizeProps(props)} />,
|
|
64
|
+
h1: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.H1, { marginBottom: "$2", ...sanitizeProps(props) }),
|
|
65
|
+
h2: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.H2, { paddingTop: "$8", marginTop: "$-4", marginBottom: "$2", "data-heading": true, ...sanitizeProps(props) }),
|
|
66
|
+
h3: ({ children, id, ...props }) => /* @__PURE__ */ import_react.default.createElement(LinkHeading, { paddingTop: "$8", marginTop: "$-4", marginBottom: "$1", id }, /* @__PURE__ */ import_react.default.createElement(import_tamagui.H3, { nativeID: id, ...sanitizeProps(props) }, children), getNonTextChildren(children)),
|
|
67
|
+
h4: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.H4, { marginTop: "$4", marginBottom: "$3", ...sanitizeProps(props) }),
|
|
68
|
+
h5: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.H5, { marginTop: "$4", ...sanitizeProps(props) }),
|
|
69
|
+
h6: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.H6, { marginTop: "$4", ...sanitizeProps(props) }),
|
|
70
|
+
p: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.Paragraph, { size: "$6", marginVertical: "$2.5", ...sanitizeProps(props) }),
|
|
70
71
|
a: ({ href = "", children, ...props }) => {
|
|
71
|
-
return
|
|
72
|
-
{children}
|
|
73
|
-
{
|
|
74
|
-
/* {typeof href === 'string' && href.startsWith('http') ? (
|
|
75
|
-
<>
|
|
76
|
-
<Text> </Text>
|
|
77
|
-
<Text fontSize="inherit" display="inline-flex" y={2} ml={-1}>
|
|
78
|
-
<ExternalIcon />
|
|
79
|
-
</Text>
|
|
80
|
-
</>
|
|
81
|
-
) : null} */
|
|
82
|
-
}
|
|
83
|
-
</import_tamagui.Paragraph></import_link.Link>;
|
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement(import_link.Link, { href }, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Paragraph, { fontSize: "inherit", display: "inline", cursor: "pointer", ...sanitizeProps(props) }, children));
|
|
84
73
|
},
|
|
85
|
-
hr: (props) =>
|
|
86
|
-
ul: ({ children }) =>
|
|
87
|
-
ol: (props) =>
|
|
88
|
-
li: (props) =>
|
|
89
|
-
strong: (props) =>
|
|
90
|
-
img: ({ ...props }) =>
|
|
91
|
-
pre: ({ children }) =>
|
|
74
|
+
hr: (props) => /* @__PURE__ */ import_react.default.createElement(import_HR.HR, { ...sanitizeProps(props) }),
|
|
75
|
+
ul: ({ children }) => /* @__PURE__ */ import_react.default.createElement(import_UL.UL, { marginVertical: "$4" }, import_react.default.Children.toArray(children).map((x) => typeof x === "string" ? null : x)),
|
|
76
|
+
ol: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, { ...sanitizeProps(props), marginBottom: "$3" }),
|
|
77
|
+
li: (props) => /* @__PURE__ */ import_react.default.createElement(import_LI.LI, { size: "$6", marginVertical: "$1.5", className: "docs-paragraph" }, props.children),
|
|
78
|
+
strong: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.Paragraph, { fontSize: "inherit", ...sanitizeProps(props), fontWeight: "700" }),
|
|
79
|
+
img: ({ ...props }) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, { marginVertical: "$6" }, /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, { ...sanitizeProps(props), maxWidth: "100%" })),
|
|
80
|
+
pre: ({ children }) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, children),
|
|
92
81
|
code,
|
|
93
|
-
blockquote: ({ children, ...props }) =>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
82
|
+
blockquote: ({ children, ...props }) => /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
import_tamagui.YStack,
|
|
84
|
+
{
|
|
85
|
+
borderColor: "$borderColor",
|
|
86
|
+
borderLeftWidth: 1,
|
|
87
|
+
justifyContent: "center",
|
|
88
|
+
marginLeft: "$3",
|
|
89
|
+
marginVertical: "$4",
|
|
90
|
+
paddingHorizontal: "$6",
|
|
91
|
+
...sanitizeProps(props)
|
|
92
|
+
},
|
|
93
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
94
|
+
import_tamagui.Paragraph,
|
|
95
|
+
{
|
|
96
|
+
color: "$color",
|
|
97
|
+
fontFamily: "$silkscreen",
|
|
98
|
+
fontWeight: "300",
|
|
99
|
+
lineHeight: "$9",
|
|
100
|
+
letterSpacing: "$0",
|
|
101
|
+
opacity: 0.65,
|
|
102
|
+
size: "$8",
|
|
103
|
+
whiteSpace: "revert"
|
|
104
|
+
},
|
|
105
|
+
(0, import_unwrapText.unwrapText)(children)
|
|
106
|
+
)
|
|
107
|
+
),
|
|
111
108
|
...import_react_native.Platform.OS === "web" ? {} : {
|
|
112
|
-
div: (props) =>
|
|
109
|
+
div: (props) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, { ...sanitizeProps(props) }),
|
|
113
110
|
span: (props) => {
|
|
114
111
|
let color;
|
|
115
112
|
if (/^token punctuation/g.test((props == null ? void 0 : props.className) || "")) {
|
|
116
113
|
color = "$red10";
|
|
117
114
|
}
|
|
118
|
-
return
|
|
115
|
+
return /* @__PURE__ */ import_react.default.createElement(import_tamagui.Text, { color, ...sanitizeProps(props) });
|
|
119
116
|
}
|
|
120
117
|
}
|
|
121
118
|
};
|
|
122
|
-
const LinkHeading = ({ id, children, ...props }) =>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
119
|
+
const LinkHeading = ({ id, children, ...props }) => /* @__PURE__ */ import_react.default.createElement(
|
|
120
|
+
import_tamagui.XStack,
|
|
121
|
+
{
|
|
122
|
+
href: `#${id}`,
|
|
123
|
+
id,
|
|
124
|
+
"data-id": id,
|
|
125
|
+
display: "inline-flex",
|
|
126
|
+
alignItems: "center",
|
|
127
|
+
space: true,
|
|
128
|
+
...sanitizeProps(props)
|
|
129
|
+
},
|
|
130
|
+
children,
|
|
131
|
+
/* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, { opacity: 0.3 }, /* @__PURE__ */ import_react.default.createElement(import_lucide_icons.Link, { size: 12, color: "var(--color)", "aria-hidden": true }))
|
|
132
|
+
);
|
|
134
133
|
const getNonTextChildren = (children) => {
|
|
135
134
|
return import_react.default.Children.map(children, (x) => {
|
|
136
135
|
if (typeof x === "string")
|