@micro-lc/preview 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/website/.vite/manifest.json +2 -2
- package/website/assets/{index-UUnaDy2L.js → index-Da1xwVn-.js} +30 -30
- package/website/assets/{index-_9UZNNtx.css → index-KArLGziQ.css} +1 -1
- package/website/development/.vite/manifest.json +2 -2
- package/website/development/assets/{index-tHug5tbN.js → index-1ITDJKPY.js} +15 -7
- package/website/development/assets/{index-HuzVlez9.css → index-q8Oea728.css} +6 -2
- package/website/development/index.html +2 -2
- package/website/index.html +2 -2
@@ -6,12 +6,12 @@
|
|
6
6
|
},
|
7
7
|
"index.html": {
|
8
8
|
"css": [
|
9
|
-
"assets/index-
|
9
|
+
"assets/index-q8Oea728.css"
|
10
10
|
],
|
11
11
|
"dynamicImports": [
|
12
12
|
"../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
|
13
13
|
],
|
14
|
-
"file": "assets/index-
|
14
|
+
"file": "assets/index-1ITDJKPY.js",
|
15
15
|
"isEntry": true,
|
16
16
|
"src": "index.html"
|
17
17
|
}
|
@@ -68819,7 +68819,6 @@ const getComponentLabel = (component) => {
|
|
68819
68819
|
return (_a3 = component.info.label) != null ? _a3 : beautifyTag(component.tag);
|
68820
68820
|
};
|
68821
68821
|
const ComponentsExplorer = ({ info$, hide: hide2 }) => {
|
68822
|
-
var _a3;
|
68823
68822
|
const [searchValue, setSearchValue] = reactExports.useState("");
|
68824
68823
|
const [libraryFilter, setLibraryFilter] = reactExports.useState([]);
|
68825
68824
|
const [selectedComponent, setSelectedComponent] = reactExports.useState();
|
@@ -69008,7 +69007,16 @@ const ComponentsExplorer = ({ info$, hide: hide2 }) => {
|
|
69008
69007
|
}
|
69009
69008
|
)
|
69010
69009
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
69011
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
69010
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
69011
|
+
Typography$1,
|
69012
|
+
{
|
69013
|
+
className: [
|
69014
|
+
"components-explorer-collapsed-description",
|
69015
|
+
descriptionExpandable ? "components-explorer-expandable-description" : ""
|
69016
|
+
].join(" "),
|
69017
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: descriptionRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Markdown, { className: "components-explorer-markdown", remarkPlugins: [remarkGfm], children: selectedComponent.info.descriptionLong }) })
|
69018
|
+
}
|
69019
|
+
),
|
69012
69020
|
descriptionExpandable && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
69013
69021
|
Button$1,
|
69014
69022
|
{
|
@@ -69048,12 +69056,12 @@ const ComponentsExplorer = ({ info$, hide: hide2 }) => {
|
|
69048
69056
|
};
|
69049
69057
|
}, [componentContent, componentTitle, menuContent, menuTitle, selectedComponent]);
|
69050
69058
|
reactExports.useEffect(() => {
|
69051
|
-
var
|
69052
|
-
const offsetHeight = (
|
69053
|
-
if (offsetHeight && !descriptionExpandable) {
|
69054
|
-
setDescriptionExpandable(offsetHeight >
|
69059
|
+
var _a3;
|
69060
|
+
const offsetHeight = (_a3 = descriptionRef.current) == null ? void 0 : _a3.offsetHeight;
|
69061
|
+
if (selectedComponent && offsetHeight && !descriptionExpandable) {
|
69062
|
+
setDescriptionExpandable(offsetHeight > 80);
|
69055
69063
|
}
|
69056
|
-
}, [descriptionExpandable,
|
69064
|
+
}, [descriptionExpandable, selectedComponent]);
|
69057
69065
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "components-explorer-container", children: [
|
69058
69066
|
explorerData.title,
|
69059
69067
|
explorerData.content
|
@@ -82,8 +82,12 @@
|
|
82
82
|
}.components-explorer-container .components-explorer-comp-detail-section > span {
|
83
83
|
font-weight: 600;
|
84
84
|
}.components-explorer-container .components-explorer-comp-detail-section .components-explorer-collapsed-description {
|
85
|
-
max-height:
|
86
|
-
overflow:
|
85
|
+
max-height: 80px;
|
86
|
+
overflow: clip;
|
87
|
+
}.components-explorer-container .components-explorer-comp-detail-section .components-explorer-expandable-description {
|
88
|
+
color: transparent;
|
89
|
+
background: linear-gradient(#666, rgb(102 102 102 / 0%));
|
90
|
+
background-clip: text;
|
87
91
|
}.components-explorer-container .components-explorer-comp-detail-section .components-explorer-markdown blockquote {
|
88
92
|
padding: 8px;
|
89
93
|
background-color: #eee;
|
@@ -16,8 +16,8 @@
|
|
16
16
|
}
|
17
17
|
</style>
|
18
18
|
<script src="https://unpkg.com/zone.js"></script>
|
19
|
-
<script type="module" crossorigin src="./assets/index-
|
20
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
19
|
+
<script type="module" crossorigin src="./assets/index-1ITDJKPY.js"></script>
|
20
|
+
<link rel="stylesheet" crossorigin href="./assets/index-q8Oea728.css">
|
21
21
|
</head>
|
22
22
|
<body></body>
|
23
23
|
</html>
|
package/website/index.html
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
}
|
17
17
|
</style>
|
18
18
|
<script src="https://unpkg.com/zone.js"></script>
|
19
|
-
<script type="module" crossorigin src="./assets/index-
|
20
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
19
|
+
<script type="module" crossorigin src="./assets/index-Da1xwVn-.js"></script>
|
20
|
+
<link rel="stylesheet" crossorigin href="./assets/index-KArLGziQ.css">
|
21
21
|
</head>
|
22
22
|
<body></body>
|
23
23
|
</html>
|