Skip to content

Commit

Permalink
docs: input button group search example & description improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-J-M committed Sep 13, 2024
1 parent a4df5a0 commit 1f6a006
Showing 1 changed file with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { html } from 'lit';

export default {
component: 'diamond-input-button-group',
parameters: {
docs: {
description: {
component:
'This composition allows for an input control to be paired with a button, handling scaling and alignment of both elements.',
},
},
},
};

export const InputButtonGroup: StoryObj = {

Check warning on line 16 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

You have a misspelled word: Obj on Identifier
Expand All @@ -25,8 +33,7 @@ export const InputButtonGroup: StoryObj = {
InputButtonGroup.parameters = {
docs: {
description: {
story: `A composition of an input and a button, styled to look
like a single component.`,
story: `A composition of an input and a button.`,
},
},
};
Expand Down Expand Up @@ -69,3 +76,19 @@ InputButtonGroupSelect.parameters = {
},
},
};

export const InputButtonGroupSearch: StoryObj = {

Check warning on line 80 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

You have a misspelled word: Obj on Identifier
render: () => html`
<diamond-input-button-group>
<diamond-input>

Check failure on line 83 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor">

Check failure on line 84 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `··<svg·xmlns="http://www.w3.org/2000/svg"·height="24px"·viewBox="0·-960·960·960"·width="24px"·fill="currentColor">` with `<svg⏎··········xmlns="http://www.w3.org/2000/svg"⏎··········height="24px"⏎··········viewBox="0·-960·960·960"⏎··········width="24px"⏎··········fill="currentColor"`
<path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/>

Check failure on line 85 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `············<path·d="M784-120·532-372q-30·24-69·38t-83·14q-109·0-184.5-75.5T120-580q0-109·75.5-184.5T380-840q109·0·184.5·75.5T640-580q0·44-14·83t-38·69l252·252-56·56ZM380-400q75·0·127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75·0-127.5·52.5T200-580q0·75·52.5·127.5T380-400Z"` with `········>⏎··········<path⏎············d="M784-120·532-372q-30·24-69·38t-83·14q-109·0-184.5-75.5T120-580q0-109·75.5-184.5T380-840q109·0·184.5·75.5T640-580q0·44-14·83t-38·69l252·252-56·56ZM380-400q75·0·127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75·0-127.5·52.5T200-580q0·75·52.5·127.5T380-400Z"⏎··········`
</svg>

Check failure on line 86 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
<input value="" placeholder="Search..." />

Check failure on line 87 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
</diamond-input>

Check failure on line 88 in components/composition/InputButtonGroup/InputButtonGroup.stories.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
<diamond-button>
<button type="button">Submit</button>
</diamond-button>
</diamond-input-button-group>
`,
};

0 comments on commit 1f6a006

Please sign in to comment.