@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.
@@ -6,12 +6,12 @@
6
6
  },
7
7
  "index.html": {
8
8
  "css": [
9
- "assets/index-HuzVlez9.css"
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-tHug5tbN.js",
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(Typography$1, { className: "components-explorer-collapsed-description", style: descriptionExpandable ? { boxShadow: "inset 0 -8px 6px -6px rgb(0 0 0 / 20%)" } : {}, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: descriptionRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Markdown, { className: "components-explorer-markdown", remarkPlugins: [remarkGfm], children: selectedComponent.info.descriptionLong }) }) }),
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 _a22;
69052
- const offsetHeight = (_a22 = descriptionRef.current) == null ? void 0 : _a22.offsetHeight;
69053
- if (offsetHeight && !descriptionExpandable) {
69054
- setDescriptionExpandable(offsetHeight > 44);
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, (_a3 = descriptionRef.current) == null ? void 0 : _a3.offsetHeight]);
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: 44px;
86
- overflow: hidden;
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-tHug5tbN.js"></script>
20
- <link rel="stylesheet" crossorigin href="./assets/index-HuzVlez9.css">
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>
@@ -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-UUnaDy2L.js"></script>
20
- <link rel="stylesheet" crossorigin href="./assets/index-_9UZNNtx.css">
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>