From bf09c9b0b83834a2456901f6e95b724eff4e2ee2 Mon Sep 17 00:00:00 2001 From: dharini Date: Sun, 16 Jan 2022 16:37:55 -0800 Subject: [PATCH] more updates --- .../rose/form/radio/radio-card/index.js | 2 +- .../form/radio/radio-card/index.stories.mdx | 120 ++++++++++++++++++ .../rose/form/radio/radio/index.hbs | 4 +- .../styles/rose/components/form/_index.scss | 2 +- .../rose/components/form/_radioCard.scss | 87 ++++++++++--- .../scopes/scope/auth-methods/index.hbs | 1 + 6 files changed, 194 insertions(+), 22 deletions(-) create mode 100644 addons/rose/addon/components/rose/form/radio/radio-card/index.stories.mdx diff --git a/addons/rose/addon/components/rose/form/radio/radio-card/index.js b/addons/rose/addon/components/rose/form/radio/radio-card/index.js index 235f017f6..67337301e 100644 --- a/addons/rose/addon/components/rose/form/radio/radio-card/index.js +++ b/addons/rose/addon/components/rose/form/radio/radio-card/index.js @@ -4,4 +4,4 @@ export default class RoseFormRadioRadioCardComponent extends RoseFormRadioRadioC // =attributes className = 'rose-form-radio-card'; -} \ No newline at end of file +} diff --git a/addons/rose/addon/components/rose/form/radio/radio-card/index.stories.mdx b/addons/rose/addon/components/rose/form/radio/radio-card/index.stories.mdx new file mode 100644 index 000000000..35a81b942 --- /dev/null +++ b/addons/rose/addon/components/rose/form/radio/radio-card/index.stories.mdx @@ -0,0 +1,120 @@ +import { Meta, Story, Preview } from '@storybook/addon-docs/blocks'; +import { hbs } from 'ember-cli-htmlbars'; +import { text, boolean, select } from '@storybook/addon-knobs'; + + + +# Form Radiofield + +Renders a form radiofield. + +```htmlbars + +``` + + + {{ + template: hbs` + + `, + context: { + label: text('text', 'Radiofield'), + error: boolean('error', false), + value: text('value', 'value and selectedValue must match to select radiofield'), + selectedValue: text( + 'selectedValue', + 'value and selectedValue must match to select radiofield' + ), + disabled: boolean('disabled', false), + icon: select( + 'icon', + { + 'none': null, + 'flight-icons/svg/org-16': 'flight-icons/svg/org-16', + 'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16', + }, + null + ), + } + }} + + + +```htmlbars + +``` + + + {{ + template: hbs` + + + + `, + context: { + error: boolean('error', false), + value: text('value', 'value and selectedValue must match to select radiofield'), + selectedValue: text( + 'selectedValue', + 'value and selectedValue must match to select radiofield' + ), + disabled: boolean('disabled', false), + icon: select( + 'icon', + { + 'none': null, + 'flight-icons/svg/org-16': 'flight-icons/svg/org-16', + 'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16', + }, + null + ), + inline: boolean('inline', false) + } + }} + diff --git a/addons/rose/addon/components/rose/form/radio/radio/index.hbs b/addons/rose/addon/components/rose/form/radio/radio/index.hbs index 47621405d..8537a4d00 100644 --- a/addons/rose/addon/components/rose/form/radio/radio/index.hbs +++ b/addons/rose/addon/components/rose/form/radio/radio/index.hbs @@ -1,5 +1,5 @@
- + - +