@theguild/components 9.12.0-alpha-20251204140849-33f2cded35360019d44f4277a3dc63b6799e421e → 9.12.0-alpha-20251205171114-496b47b3a0386560d83c9699b5ea856ed3a7d951
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.
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { isValidElement, useMemo, useState } from "react";
|
|
4
4
|
import fuzzy from "fuzzy";
|
|
5
|
-
import { Tabs } from "./tabs";
|
|
6
5
|
import { cn } from "../cn";
|
|
7
6
|
import { Heading } from "./heading";
|
|
8
7
|
import { CloseIcon, SearchIcon } from "./icons";
|
|
9
8
|
import { MarketplaceList } from "./marketplace-list";
|
|
9
|
+
import { Tabs } from "./tabs";
|
|
10
10
|
import { Tag, TagsContainer } from "./tag";
|
|
11
11
|
const renderQueryPlaceholder = (placeholder, query) => {
|
|
12
12
|
if (!query || isValidElement(placeholder)) {
|
|
@@ -149,13 +149,6 @@ function useActiveTabFromURL(tabPanelsRef, items, searchParamKey, setSelectedInd
|
|
|
149
149
|
const tabIndexFromSearchParams = items.findIndex(
|
|
150
150
|
(_, index) => tabsInSearchParams.includes(getTabKey(items, index, id))
|
|
151
151
|
);
|
|
152
|
-
console.log({
|
|
153
|
-
searchParams,
|
|
154
|
-
tabIndexFromSearchParams,
|
|
155
|
-
tabsInSearchParams,
|
|
156
|
-
items,
|
|
157
|
-
id
|
|
158
|
-
});
|
|
159
152
|
useIsomorphicLayoutEffect(() => {
|
|
160
153
|
const tabPanel = hash ? tabPanelsRef.current?.querySelector(`[role=tabpanel]:has([id="${hash}"])`) : null;
|
|
161
154
|
if (tabPanel) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theguild/components",
|
|
3
|
-
"version": "9.12.0-alpha-
|
|
3
|
+
"version": "9.12.0-alpha-20251205171114-496b47b3a0386560d83c9699b5ea856ed3a7d951",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/the-guild-org/docs",
|
|
6
6
|
"directory": "packages/components"
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"style.css"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
+
"@headlessui/react": "2.2.0",
|
|
41
42
|
"@theguild/tailwind-config": "^0.6.3",
|
|
42
43
|
"next": "^13 || ^14 || ^15.0.0",
|
|
43
44
|
"react": "^18.2.0",
|
|
44
|
-
"react-dom": "^18.2.0"
|
|
45
|
-
"@headlessui/react": "2.2.0"
|
|
45
|
+
"react-dom": "^18.2.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@giscus/react": "3.1.0",
|