diff --git a/docs/form/single-select.mdx b/docs/form/single-select.mdx new file mode 100644 index 0000000..1d8d3b0 --- /dev/null +++ b/docs/form/single-select.mdx @@ -0,0 +1,166 @@ +--- +product: dd360-ds +title: React SingleSelect component +components: SingleSelect +--- +import { DynamicHeroIcon } from 'dd360-ds' + +
+
+ + + +# + +The SingleSelect component allows you to create a modern and functional option selector, ideal for forms and web applications that require option selection. + +
+ +##### Imports + +The first alternative is recommended as it can reduce the application bundle + + + + +##### Usage + +The SingleSelect component requires at least the `optionsList` property that defines the available options for selection. + + + + + +The following code shows how to use the SingleSelect component: + + +`}/> + +
+ +##### Label + +The property allows you to add a descriptive label to the selector. + + + + + + +`}/> + +
+ +##### Large + +The property allows you to increase the size of the selector. + + + + + + +`}/> + +
+ +##### Disabled + +The property allows you to disable the selector. + + + + + + +`}/> + +
+ +##### API Reference + + void'] } + ]} +/> + +Note: This documentation assumes that the user has basic knowledge of React and how to use components in React applications. + + diff --git a/package-lock.json b/package-lock.json index 4f579a0..80b105f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@algolia/autocomplete-core": "^1.8.3", "@docsearch/react": "^3.5.1", "@vercel/analytics": "^1.0.1", - "dd360-ds": "6.38.0", + "dd360-ds": "6.39.1", "dd360-utils": "18.1.0", "gray-matter": "^4.0.3", "i18next": "^22.4.9", @@ -1526,9 +1526,9 @@ "dev": true }, "node_modules/dd360-ds": { - "version": "6.38.0", - "resolved": "https://registry.npmjs.org/dd360-ds/-/dd360-ds-6.38.0.tgz", - "integrity": "sha512-iFnUotZAaHR+zbKwXTrpL1Gt2rmOTD4yw8OB0Rej3PZ/O5BQlAMRVU5AS/ISur5bilR2XtFxPbv0wMcc//AcVQ==", + "version": "6.39.1", + "resolved": "https://registry.npmjs.org/dd360-ds/-/dd360-ds-6.39.1.tgz", + "integrity": "sha512-vKKwo3f4x5i+bLrHjFX+ZXWNrska7jdPTFbdi3WDpoOJ39GsjXl7ncG7OGZwcWDuLqubaSDcSNcqrcE3nKKcUQ==", "license": "MIT", "dependencies": { "@heroicons/react": "^1.0.6", @@ -8009,9 +8009,9 @@ "dev": true }, "dd360-ds": { - "version": "6.38.0", - "resolved": "https://registry.npmjs.org/dd360-ds/-/dd360-ds-6.38.0.tgz", - "integrity": "sha512-iFnUotZAaHR+zbKwXTrpL1Gt2rmOTD4yw8OB0Rej3PZ/O5BQlAMRVU5AS/ISur5bilR2XtFxPbv0wMcc//AcVQ==", + "version": "6.39.1", + "resolved": "https://registry.npmjs.org/dd360-ds/-/dd360-ds-6.39.1.tgz", + "integrity": "sha512-vKKwo3f4x5i+bLrHjFX+ZXWNrska7jdPTFbdi3WDpoOJ39GsjXl7ncG7OGZwcWDuLqubaSDcSNcqrcE3nKKcUQ==", "requires": { "@heroicons/react": "^1.0.6", "@popperjs/core": "2.11.8", diff --git a/package.json b/package.json index 9f5a292..61718bc 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@algolia/autocomplete-core": "^1.8.3", "@docsearch/react": "^3.5.1", "@vercel/analytics": "^1.0.1", - "dd360-ds": "6.38.0", + "dd360-ds": "6.39.1", "dd360-utils": "18.1.0", "gray-matter": "^4.0.3", "i18next": "^22.4.9", diff --git a/src/components/Layout/SideBarDocs.tsx b/src/components/Layout/SideBarDocs.tsx index 6e4447f..843890f 100644 --- a/src/components/Layout/SideBarDocs.tsx +++ b/src/components/Layout/SideBarDocs.tsx @@ -97,7 +97,8 @@ export const components: ComponentObjectProps = { }, { label: 'Filter Bar Button', - pathname: 'filter-bar-button' + pathname: 'filter-bar-button', + badge: BADGE_TYPES.new } ] }, @@ -193,6 +194,11 @@ export const components: ComponentObjectProps = { label: 'Select', pathname: 'select' }, + { + label: 'Single Select', + pathname: 'single-select', + badge: BADGE_TYPES.new + }, { label: 'Text Area', pathname: 'textarea'