From 717f7080d17df72d2b21409a3f4e8aa62cdb65cd Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Sat, 18 Oct 2025 22:41:50 +0100 Subject: [PATCH] Fixes on icons Signed-off-by: Charles de Dreuille --- docs-ui/src/app/iconography/page.mdx | 24 ------------- .../components/CustomTheme/customTheme.tsx | 9 +++-- .../components/IconLibrary/IconLibrary.tsx | 22 ------------ docs-ui/src/components/IconLibrary/index.ts | 1 - .../components/IconLibrary/styles.module.css | 28 --------------- .../src/components/PropsTable/PropsTable.tsx | 7 ++-- docs-ui/src/content/components/icon.mdx | 36 ------------------- docs-ui/src/content/components/icon.props.ts | 25 ------------- docs-ui/src/utils/data.ts | 4 --- docs-ui/src/utils/playground-context.tsx | 2 +- 10 files changed, 10 insertions(+), 148 deletions(-) delete mode 100644 docs-ui/src/app/iconography/page.mdx delete mode 100644 docs-ui/src/components/IconLibrary/IconLibrary.tsx delete mode 100644 docs-ui/src/components/IconLibrary/index.ts delete mode 100644 docs-ui/src/components/IconLibrary/styles.module.css delete mode 100644 docs-ui/src/content/components/icon.mdx delete mode 100644 docs-ui/src/content/components/icon.props.ts diff --git a/docs-ui/src/app/iconography/page.mdx b/docs-ui/src/app/iconography/page.mdx deleted file mode 100644 index b4b1aa2183..0000000000 --- a/docs-ui/src/app/iconography/page.mdx +++ /dev/null @@ -1,24 +0,0 @@ -import { CodeBlock } from '@/components/CodeBlock'; -import { IconLibrary } from '@/components/IconLibrary'; - -# Iconography - -All our default icons are provided by [Remix Icon](https://remixicon.com/). We -don't import all icons to reduce the bundle size but we cherry pick a nice -selection for you to use in your application. The list of names is set down -below. To use an icon, you can use the `Icon` component and pass the name of -the icon you want to use. - -`} /> - -## Icon overrides - -You can override any icons in our library by using the `IconProvider` at the root of your application. - -
Custom Icon
}} />`} -/> - -## Icon library - - diff --git a/docs-ui/src/components/CustomTheme/customTheme.tsx b/docs-ui/src/components/CustomTheme/customTheme.tsx index c70d59173a..ae765d7d88 100644 --- a/docs-ui/src/components/CustomTheme/customTheme.tsx +++ b/docs-ui/src/components/CustomTheme/customTheme.tsx @@ -6,9 +6,9 @@ import { sass } from '@codemirror/lang-sass'; import styles from './styles.module.css'; import { usePlayground } from '@/utils/playground-context'; import { AnimatePresence, motion } from 'motion/react'; -import { Icon } from '../../../../packages/ui'; import { createTheme } from '@uiw/codemirror-themes'; import { tags as t } from '@lezer/highlight'; +import { RiArrowDownSLine } from '@remixicon/react'; const defaultTheme = `:root { --bui-bg-solid: #000; @@ -125,7 +125,12 @@ export const CustomTheme = () => { className={styles.buttonClose} onClick={() => setOpen(!open)} > - +