diff --git a/packages/website/src/components/Button.tsx b/packages/website/src/components/Button.tsx index 72c9775..303c064 100644 --- a/packages/website/src/components/Button.tsx +++ b/packages/website/src/components/Button.tsx @@ -7,7 +7,7 @@ export function Button(props: ParentProps>) { let mergedProps = mergeProps({ type: "button" }, newProps) return ( - ); diff --git a/packages/website/src/components/MainSection/EditorSection/EditorButtons.tsx b/packages/website/src/components/MainSection/EditorSection/EditorButtons.tsx index f98cfaa..809b1d5 100644 --- a/packages/website/src/components/MainSection/EditorSection/EditorButtons.tsx +++ b/packages/website/src/components/MainSection/EditorSection/EditorButtons.tsx @@ -109,12 +109,12 @@ export function EditorButtons() { return (
- -
+
+
-
- + +
); } diff --git a/packages/website/src/components/MainSection/EditorSection/Tabs.tsx b/packages/website/src/components/MainSection/EditorSection/Tabs.tsx index c454034..977c452 100644 --- a/packages/website/src/components/MainSection/EditorSection/Tabs.tsx +++ b/packages/website/src/components/MainSection/EditorSection/Tabs.tsx @@ -57,15 +57,15 @@ export function Tabs(props?: ComponentProps<'div'>) { return (
- -
- - - -
-
+
+ + + + + +
) } diff --git a/packages/website/src/components/MainSection/SearchSection/SearchContainer.tsx b/packages/website/src/components/MainSection/SearchSection/SearchContainer.tsx index 6c1ab43..607fd55 100644 --- a/packages/website/src/components/MainSection/SearchSection/SearchContainer.tsx +++ b/packages/website/src/components/MainSection/SearchSection/SearchContainer.tsx @@ -4,10 +4,10 @@ import { createSignal } from "solid-js"; import SearchInput, { setQuery, getQuery } from "./SearchInput"; import SearchResults from "./SearchResults"; -export function SearchContainer(props?: ComponentProps<'div'>) { +export function SearchContainer(props?: ComponentProps<'dialog'>) { const [open, setOpen] = createSignal(false); - let ref: HTMLDivElement & { open?: boolean } = null; + let ref: HTMLDialogElement = null; function onClick(e?: MouseEvent) { let target = e.target as HTMLElement; @@ -53,8 +53,7 @@ export function SearchContainer(props?: ComponentProps<'div'>) {
- {/* {...props} */} - +
diff --git a/packages/website/src/hooks/tooltip.tsx b/packages/website/src/hooks/tooltip.tsx index a19197e..8992c79 100644 --- a/packages/website/src/hooks/tooltip.tsx +++ b/packages/website/src/hooks/tooltip.tsx @@ -109,7 +109,7 @@ export function SingletonToolTip(props?: ComponentProps & { tooltip?: Creat let [newProps, attrs] = splitProps(props, ["tooltip", "target", "as", "ref"]); let mergedProps = mergeProps({ - target: "[custom-button]", + // target: "[custom-button]", as: "span" }, newProps); @@ -121,11 +121,12 @@ export function SingletonToolTip(props?: ComponentProps & { tooltip?: Creat } as Partial, mergedProps.tooltip ?? {}); onMount(() => { - let els = Array.from(ref.children ?? []); + let els = Array.from((mergedProps.target ? ref.querySelectorAll(mergedProps.target) : ref.children) ?? []); let tippyTargets = els.map(el => { return tippy(el as HTMLElement); }); + console.log(tippyTargets) instance = createSingleton(tippyTargets, tippyProps); }); diff --git a/packages/website/src/pages/index.astro b/packages/website/src/pages/index.astro index cd492a1..5e7b92b 100644 --- a/packages/website/src/pages/index.astro +++ b/packages/website/src/pages/index.astro @@ -14,7 +14,7 @@ import { default as Content } from "../snippets/analysis.md"; diff --git a/packages/website/src/styles/base.scss b/packages/website/src/styles/base.scss index 1d72fe0..84bab7f 100644 --- a/packages/website/src/styles/base.scss +++ b/packages/website/src/styles/base.scss @@ -312,6 +312,7 @@ details { @apply border-b border-b-gray-300 dark:border-b-quaternary rounded-none; } -dynamic-el { +dynamic-el { + all: inherit; display: contents; } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b14e8db..dc25cac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -205,9 +205,9 @@ importers: prettier-plugin-astro: 0.5.4 rollup: 2.79.0 sass: 1.54.9 - tailwindcss: 3.1.8 + tailwindcss: 3.1.8_postcss@8.4.16 ultra-runner: 3.10.5 - unplugin-icons: 0.14.10_rollup@2.79.0+vite@3.1.3 + unplugin-icons: 0.14.10 vite: 3.1.3_sass@1.54.9 vitest: 0.23.4_sass@1.54.9 @@ -221,8 +221,8 @@ packages: '@jridgewell/trace-mapping': 0.3.15 dev: true - /@antfu/install-pkg/0.1.0: - resolution: {integrity: sha512-VaIJd3d1o7irZfK1U0nvBsHMyjkuyMP3HKYVV53z8DKyulkHKmjhhtccXO51WSPeeSHIeoJEoNOKavYpS7jkZw==} + /@antfu/install-pkg/0.1.1: + resolution: {integrity: sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==} dependencies: execa: 5.1.1 find-up: 5.0.0 @@ -371,7 +371,7 @@ packages: '@proload/core': 0.3.3 autoprefixer: 10.4.12_postcss@8.4.16 postcss: 8.4.16 - tailwindcss: 3.1.8 + tailwindcss: 3.1.8_postcss@8.4.16 dev: true /@astrojs/telemetry/1.0.0: @@ -1804,12 +1804,12 @@ packages: /@esbuild-kit/cjs-loader/2.3.3: resolution: {integrity: sha512-Rt4O1mXlPEDVxvjsHLgbtHVdUXYK9C1/6ThpQnt7FaXIjUOsI6qhHYMgALhNnlIMZffag44lXd6Dqgx3xALbpQ==} dependencies: - '@esbuild-kit/core-utils': 2.3.1 + '@esbuild-kit/core-utils': 2.3.2 get-tsconfig: 4.2.0 dev: true - /@esbuild-kit/core-utils/2.3.1: - resolution: {integrity: sha512-y2ThiUw/AkKCS7mIBF/EGce79aHIomOVFAIFmF5Z0DRZTNXVg9uFDXBkhAu7PAj64Po1ELfKJN9R7/zs3PIEAg==} + /@esbuild-kit/core-utils/2.3.2: + resolution: {integrity: sha512-aQwy1Hdd02ymjyMyyrhtyuZGv5W+mVZmj3DTKFV0TnB1AUgMBV40tXySpsGySe8vLvSe0c0TaqTc2FUo8/YlNQ==} dependencies: esbuild: 0.15.8 source-map-support: 0.5.21 @@ -1818,7 +1818,7 @@ packages: /@esbuild-kit/esm-loader/2.4.2: resolution: {integrity: sha512-N9dPKAj8WOx6djVnStgILWXip4fjDcBk9L7azO0/uQDpu8Ee0eaL78mkN4Acid9BzvNAKWwdYXFJZnsVahNEew==} dependencies: - '@esbuild-kit/core-utils': 2.3.1 + '@esbuild-kit/core-utils': 2.3.2 get-tsconfig: 4.2.0 dev: true @@ -1863,7 +1863,7 @@ packages: /@iconify/utils/2.0.0: resolution: {integrity: sha512-thvwZ6m3frWJiOYwRdHPSPGC25rmyvDl0vXdQ8ocRJZx31m8Pn4y7V1mTc5UReR6MiAj+hrV2UPZQjx7zI960g==} dependencies: - '@antfu/install-pkg': 0.1.0 + '@antfu/install-pkg': 0.1.1 '@antfu/utils': 0.5.2 '@iconify/types': 2.0.0 debug: 4.3.4 @@ -3069,7 +3069,7 @@ packages: postcss: ^8.1.0 dependencies: browserslist: 4.21.4 - caniuse-lite: 1.0.30001407 + caniuse-lite: 1.0.30001409 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -3083,8 +3083,8 @@ packages: object.assign: 4.1.4 dev: true - /babel-plugin-jsx-dom-expressions/0.34.9_@babel+core@7.19.1: - resolution: {integrity: sha512-MXDbbzq7hjJun7Icxnc9u+SxnArcJ500lKPD6v8cRxi4ul89F1GUwqH47iituB+dWUFFEB8NLiJbh2VN3mlZZQ==} + /babel-plugin-jsx-dom-expressions/0.34.10_@babel+core@7.19.1: + resolution: {integrity: sha512-YTuTvhpGWuD67JTgb/oFDkQMEzsAG7GKBSl+WNTMkmD9tUBkDNZoKijsDRA2R+zV2VJz2aPaXu3gwPkIIbhMtg==} peerDependencies: '@babel/core': ^7.0.0 dependencies: @@ -3137,7 +3137,7 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.19.1 - babel-plugin-jsx-dom-expressions: 0.34.9_@babel+core@7.19.1 + babel-plugin-jsx-dom-expressions: 0.34.10_@babel+core@7.19.1 dev: true /bail/2.0.2: @@ -3220,7 +3220,7 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001407 + caniuse-lite: 1.0.30001409 electron-to-chromium: 1.4.256 node-releases: 2.0.6 update-browserslist-db: 1.0.9_browserslist@4.21.4 @@ -3305,8 +3305,8 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite/1.0.30001407: - resolution: {integrity: sha512-4ydV+t4P7X3zH83fQWNDX/mQEzYomossfpViCOx9zHBSMV+rIe3LFqglHHtVyvNl1FhTNxPxs3jei82iqOW04w==} + /caniuse-lite/1.0.30001409: + resolution: {integrity: sha512-V0mnJ5dwarmhYv8/MzhJ//aW68UpvnQBXv8lJ2QUsvn2pHcmAuNtu8hQEDz37XnA1iE+lRR9CIfGWWpgJ5QedQ==} dev: true /cardinal/2.1.1: @@ -3595,8 +3595,8 @@ packages: engines: {node: '>=10'} hasBin: true dependencies: - is-text-path: 1.0.1 JSONStream: 1.3.5 + is-text-path: 1.0.1 lodash: 4.17.21 meow: 8.1.2 split2: 3.2.2 @@ -5482,8 +5482,8 @@ packages: safer-buffer: 2.1.2 dev: false - /idb/7.0.2: - resolution: {integrity: sha512-jjKrT1EnyZewQ/gCBb/eyiYrhGzws2FeY92Yx8qT9S9GeQAmo4JFVIiWRIfKW/6Ob9A+UDAOW9j9jn58fy2HIg==} + /idb/7.1.0: + resolution: {integrity: sha512-Wsk07aAxDsntgYJY4h0knZJuTxM73eQ4reRAO+Z1liOh8eMCJ/MoDS8fCui1vGT9mnjtl1sOu3I2i/W1swPYZg==} dev: true /ieee754/1.2.1: @@ -8559,10 +8559,12 @@ packages: tslib: 2.4.0 dev: true - /tailwindcss/3.1.8: + /tailwindcss/3.1.8_postcss@8.4.16: resolution: {integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==} engines: {node: '>=12.13.0'} hasBin: true + peerDependencies: + postcss: ^8.0.9 dependencies: arg: 5.0.2 chokidar: 3.5.3 @@ -8798,7 +8800,7 @@ packages: hasBin: true dependencies: '@esbuild-kit/cjs-loader': 2.3.3 - '@esbuild-kit/core-utils': 2.3.1 + '@esbuild-kit/core-utils': 2.3.2 '@esbuild-kit/esm-loader': 2.4.2 optionalDependencies: fsevents: 2.3.2 @@ -9090,7 +9092,7 @@ packages: engines: {node: '>= 10.0.0'} dev: true - /unplugin-icons/0.14.10_rollup@2.79.0+vite@3.1.3: + /unplugin-icons/0.14.10: resolution: {integrity: sha512-K4KTnsiBnSPDKQS4KylOxmGYp/ALPgfN520IXhOuB2OKD5Ub5N3bNmpvMZgiMK0g3kAQdZrRRNATMSM558a3Zg==} peerDependencies: '@svgr/core': '>=5.5.0' @@ -9107,42 +9109,22 @@ packages: vue-template-es2015-compiler: optional: true dependencies: - '@antfu/install-pkg': 0.1.0 + '@antfu/install-pkg': 0.1.1 '@antfu/utils': 0.5.2 '@iconify/utils': 2.0.0 debug: 4.3.4 kolorist: 1.6.0 local-pkg: 0.4.2 - unplugin: 0.9.5_rollup@2.79.0+vite@3.1.3 + unplugin: 0.9.6 transitivePeerDependencies: - - esbuild - - rollup - supports-color - - vite - - webpack dev: true - /unplugin/0.9.5_rollup@2.79.0+vite@3.1.3: - resolution: {integrity: sha512-luraheyfxwtvkvHpsOvMNv7IjLdORTWKZp0gWYNHGLi2ImON3iIZOj464qEyyEwLA/EMt12fC415HW9zRpOfTg==} - peerDependencies: - esbuild: '>=0.13' - rollup: ^2.50.0 - vite: ^2.3.0 || ^3.0.0-0 - webpack: 4 || 5 - peerDependenciesMeta: - esbuild: - optional: true - rollup: - optional: true - vite: - optional: true - webpack: - optional: true + /unplugin/0.9.6: + resolution: {integrity: sha512-YYLtfoNiie/lxswy1GOsKXgnLJTE27la/PeCGznSItk+8METYZErO+zzV9KQ/hXhPwzIJsfJ4s0m1Rl7ZCWZ4Q==} dependencies: acorn: 8.8.0 chokidar: 3.5.3 - rollup: 2.79.0 - vite: 3.1.3_sass@1.54.9 webpack-sources: 3.2.3 webpack-virtual-modules: 0.4.5 dev: true @@ -9553,7 +9535,7 @@ packages: /workbox-background-sync/6.5.4: resolution: {integrity: sha512-0r4INQZMyPky/lj4Ou98qxcThrETucOde+7mRGJl13MPJugQNKeZQOdIJe/1AchOP23cTqHcN/YVpD6r8E6I8g==} dependencies: - idb: 7.0.2 + idb: 7.1.0 workbox-core: 6.5.4 dev: true @@ -9621,7 +9603,7 @@ packages: /workbox-expiration/6.5.4: resolution: {integrity: sha512-jUP5qPOpH1nXtjGGh1fRBa1wJL2QlIb5mGpct3NzepjGG2uFFBn4iiEBiI9GUmfAFR2ApuRhDydjcRmYXddiEQ==} dependencies: - idb: 7.0.2 + idb: 7.1.0 workbox-core: 6.5.4 dev: true