diff --git a/apps/docs/content/components/collections/Listbox.mdx b/apps/docs/content/components/collections/Listbox.mdx index 4b9560939..f57446e5c 100644 --- a/apps/docs/content/components/collections/Listbox.mdx +++ b/apps/docs/content/components/collections/Listbox.mdx @@ -35,7 +35,7 @@ links: A `ListBox` uses the following components. - + ## Usage @@ -170,6 +170,10 @@ List box items can vary in sizes. +### ListBoxSection + + + ### ListBoxItem diff --git a/apps/docs/content/components/collections/Section.mdx b/apps/docs/content/components/collections/Section.mdx deleted file mode 100644 index f4ac59823..000000000 --- a/apps/docs/content/components/collections/Section.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: Section -description: A Section serves as a versatile container component, encapsulating an HTML section element. -category: "collections" -links: - source: https://github.com/gsoft-inc/wl-hopper/blob/main/packages/components/src/Section/src/Section.tsx ---- - -Section is a subcomponent of [Listbox](./Listbox), it's used within [Combobox](./ComboBox) and [Select](./Select). - - - - - ## Guidelines - - TODO: If we have some guidelines about this component's usage - - ### Accessibility ? - - TODO: If we have some guidelines about this component and accessibility - - -## Anatomy - -### Composed Components - -A `Section` is used in the following components. - - - - - - TODO: We have anatomy screenshots from the Figma, we could most likely use them here - - ### Concepts - - TODO: links to related concepts - - - - ## Advanced customization - - ### Contexts - TODO: Example of context + content about the context - - ### Custom Children - - TODO: Example of passing custom childrens to the components to fake a slot - - ### Custom Component - - TODO: Example of creating a custom version of this component - - -## Props - - diff --git a/apps/docs/content/components/pickers/ComboBox.mdx b/apps/docs/content/components/pickers/ComboBox.mdx index 218de98c8..6c39f259b 100644 --- a/apps/docs/content/components/pickers/ComboBox.mdx +++ b/apps/docs/content/components/pickers/ComboBox.mdx @@ -42,7 +42,7 @@ The Section component represents a `section` within a Hopper container. A `ComboBox` uses the following components. - + ## Usage @@ -197,5 +197,15 @@ A combo box item can have a description. ## Props +### ComboBox + +### ComboBoxSection + + + +### ComboBoxItem + + + diff --git a/apps/docs/content/components/pickers/Select.mdx b/apps/docs/content/components/pickers/Select.mdx index df304820c..b36b72a3f 100644 --- a/apps/docs/content/components/pickers/Select.mdx +++ b/apps/docs/content/components/pickers/Select.mdx @@ -41,7 +41,7 @@ The Section component represents a `section` within a Hopper container. A `Select` uses the following components. - + ## Usage @@ -198,8 +198,18 @@ A select item can have a description. ## Props +### Select + +### SelectSection + + + +### SelectItem + + + ## Migration Notes diff --git a/apps/docs/examples/Preview.ts b/apps/docs/examples/Preview.ts index 754b7a66a..75e6cf828 100644 --- a/apps/docs/examples/Preview.ts +++ b/apps/docs/examples/Preview.ts @@ -152,9 +152,6 @@ export const Previews: Record = { "ListBox/docs/multipleSizes": { component: lazy(() => import("@/../../packages/components/src/ListBox/docs/multipleSizes.tsx")) }, - "Section/docs/preview": { - component: lazy(() => import("@/../../packages/components/src/Section/docs/preview.tsx")) - }, "tag/docs/preview": { component: lazy(() => import("@/../../packages/components/src/tag/docs/preview.tsx")) }, diff --git a/packages/components/src/ListBoxSection/docs/preview.tsx b/packages/components/src/ListBoxSection/docs/preview.tsx deleted file mode 100644 index 0cdc97040..000000000 --- a/packages/components/src/ListBoxSection/docs/preview.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { Header, ListBox, ListBoxItem, ListBoxSection } from "@hopper-ui/components"; - -export default function Example() { - return ( - - -
Creative Department
- Designer - Copywriter - UX Researcher -
-
- ); -}