diff --git a/addons/rose/addon/components/rose/form/radio/card/index.js b/addons/rose/addon/components/rose/form/radio/card/index.js index c05cf1a5b..f4aaab3bb 100644 --- a/addons/rose/addon/components/rose/form/radio/card/index.js +++ b/addons/rose/addon/components/rose/form/radio/card/index.js @@ -1,7 +1,25 @@ import RoseFormRadioRadioComponent from '../radio'; +import { deprecate } from '@ember/debug'; export default class RoseFormRadioCardComponent extends RoseFormRadioRadioComponent { // =attributes layout = this.args.layout; className = `rose-form-radio-card ${this.layout}`; + + constructor() { + super(...arguments); + deprecate( + `Rose Form/Radio/Card component is deprecated, use HDS Form/RadioCard instead. For more info, refer to `, + false, + { + id: 'rose.form.radio.card', + until: '4.8.0', + for: 'rose', + since: { + enabled: '3.28.8', + }, + url: 'https://boundary-ui-storybook.vercel.app/?path=/docs/rose-form-radio-radio-card--card', + } + ); + } } diff --git a/addons/rose/addon/components/rose/form/radio/card/index.stories.mdx b/addons/rose/addon/components/rose/form/radio/card/index.stories.mdx index 6c5e3c2d6..5cd8de8ab 100644 --- a/addons/rose/addon/components/rose/form/radio/card/index.stories.mdx +++ b/addons/rose/addon/components/rose/form/radio/card/index.stories.mdx @@ -1,25 +1,55 @@ import { Meta, Story, Preview } from '@storybook/addon-docs'; import { hbs } from 'ember-cli-htmlbars'; - + + +# HDS::Form::RadioCard (Recommended) + +> **_NOTE:_** Replaces the deprecated Rose/Form/Radio/Card. + +Refer to the [HDS Form::RadioCard +documentation](https://design-system-components-hashicorp.vercel.app/components/form/radio-card) +for a complete overview + +```handlebars + + HDS Radio Card + + Quick peering with quick links will provide the fastest way to + connect to your providers’ network. + +``` + +export const HDSTemplate = (args) => ({ + template: hbs` + + {{label}} + + {{description}} + + `, + context: args, +}); + + + + {HDSTemplate.bind({})} + + + +# Rose/Form/Radio/Card (Deprecated) + +Rose/Form/Radio/Card has been deprecated in favor of [HDS::Form::RadioCard](https://design-system-components-hashicorp.vercel.app/components/form/radio-card) + +### usage: # Form Radiofield in a wide format @@ -68,10 +98,22 @@ export const Template = (args) => ({ {Template.bind({})} diff --git a/addons/rose/addon/components/rose/form/radio/group/index.stories.mdx b/addons/rose/addon/components/rose/form/radio/group/index.stories.mdx index 60137a9b1..a698fedda 100644 --- a/addons/rose/addon/components/rose/form/radio/group/index.stories.mdx +++ b/addons/rose/addon/components/rose/form/radio/group/index.stories.mdx @@ -75,6 +75,78 @@ export const Template = (args) => ({ +# HDS::Form::RadioCard::Group (Recommended) + +> **_NOTE:_** Replaces the deprecated Rose/Form/Radio/Group/Card. + +```handlebars + + Create connection + + + Quick peering with Quick Links + + Quick peering with quick links will provide the fastest way + to connect to your providers’ network. + + + + Manual peering using AWS CLI + + Provide you AWS CLI template to apply connection settings. + + + + Manual peering using HCP and AWS web console + + Manually follow UI instructions to complete configuring a + connection at provider side. + + +``` + +export const HDSTemplate = (args) => ({ + template: hbs` + + Create connection + + {{firstlabel}} + + {{firstdescription}} + + + {{secondlabel}} + + {{seconddescription}} + + `, + context: args, +}); + + + + {HDSTemplate.bind({})} + + + +# Rose::Form::Radio::Group::Card (Deprecated) + ```handlebars ({ ``` -```handlebars - - - - -``` - -export const CardTemplate = (args) => ({ +export const RoseTemplate = (args) => ({ template: hbs` - - - - `, + @disabled={{disabled}} + @name={{name}} + @selectedValue={{selectedValue}} + @changed={{changed}} + as |radioGroup| + > + + + `, context: args, }); - {CardTemplate.bind({})} + {RoseTemplate.bind({})}