@muonic/muon 0.0.2-experimental-128-ff1cfa2.0 → 0.0.2-experimental-131-9e6a9a4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components/cta/story.js
CHANGED
|
@@ -20,9 +20,11 @@ const ButtonTemplate = (args) => {
|
|
|
20
20
|
|
|
21
21
|
return staticHTML`<${tag} ${dArgs} ._isButton=${true}>${args.text}</${tag}>`;
|
|
22
22
|
};
|
|
23
|
+
|
|
23
24
|
const FormTemplate = (args) => staticHTML`<form>${StandardTemplate(args)}</form>`;
|
|
24
25
|
const WithinLinkTemplate = (args) => staticHTML`<a href="${args.link}">${StandardTemplate(args)}</a>`;
|
|
25
26
|
const WithinButtonTemplate = (args) => staticHTML`<button>${StandardTemplate(args)}</button>`;
|
|
27
|
+
const WithinDisabledButtonTemplate = (args) => staticHTML`<button disabled>${StandardTemplate(args)}</button>`;
|
|
26
28
|
|
|
27
29
|
export const Standard = StandardTemplate.bind({});
|
|
28
30
|
Standard.args = { text: 'Highpoint' };
|
|
@@ -88,7 +90,7 @@ export const StandardWithinButton = WithinButtonTemplate.bind({});
|
|
|
88
90
|
StandardWithinButton.storyName = 'Standard [within button]';
|
|
89
91
|
StandardWithinButton.args = { text: 'Highpoint', link: '#!' };
|
|
90
92
|
|
|
91
|
-
export const DisabledWithinButton =
|
|
93
|
+
export const DisabledWithinButton = WithinDisabledButtonTemplate.bind({});
|
|
92
94
|
DisabledWithinButton.storyName = 'Disabled [within button]';
|
|
93
95
|
DisabledWithinButton.args = { text: 'Highpoint', disabled: true, link: '#!' };
|
|
94
96
|
|
|
@@ -171,11 +171,11 @@ Textarea.args = {
|
|
|
171
171
|
|
|
172
172
|
const innerMultiple = (args) => staticHTML`
|
|
173
173
|
<input type="${args.inputtype}" name="${args.name}" value="${args.value}" ${unsafeStatic(args.states?.join(' ') ?? '')} id="${args.id}">
|
|
174
|
-
<label for="${args.id}">${unsafeStatic(args.label)}</label
|
|
175
|
-
|
|
174
|
+
<label for="${args.id}">${unsafeStatic(args.label)}</label>`;
|
|
175
|
+
|
|
176
176
|
const multiTemplate = (args) => staticHTML`
|
|
177
177
|
${args.options?.map((option, i) => {
|
|
178
|
-
const id = `${args.inputtype}
|
|
178
|
+
const id = `${args.inputtype}-0${i + 1}`;
|
|
179
179
|
return staticHTML`${innerMultiple({
|
|
180
180
|
...args,
|
|
181
181
|
value: option.value,
|