Skip to content

Commit

Permalink
perf(accordion): use new version of accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 committed Nov 14, 2023
1 parent 39ceda5 commit be18839
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<script>
initButtonApiExamples();
</script>
<script src="https://cdn.jsdelivr.net/npm/@alaskaairux/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@alaskaairux/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-alert@latest/dist/auro-alert__bundled.js" type="module"></script>

Expand Down
30 changes: 15 additions & 15 deletions demo/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<auro-button variant="tertiary">Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basic.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/basic.html -->
Expand All @@ -91,7 +91,7 @@ This example demonstrates `auro-button` in it's `disabled` state.
<auro-button variant="tertiary" disabled>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabled.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/disabled.html -->
Expand All @@ -111,7 +111,7 @@ This example demonstrates `auro-button` in it's `disabled` state.
<auro-button variant="tertiary" disabled ondark>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabledOnDark.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/disabledOnDark.html -->
Expand All @@ -136,7 +136,7 @@ Use the `slim` attribute with the `auro-button` element for a slim style with le
<auro-button slim variant="tertiary">Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/slim.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/slim.html -->
Expand Down Expand Up @@ -174,7 +174,7 @@ Be sure to use the customColor attribute on the `auro-icon` component to allow c
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/icon.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/icon.html -->
Expand Down Expand Up @@ -218,7 +218,7 @@ Be sure to also use the `customColor` and `customSize` attributes on the `auro-i
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/iconOnly.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/iconOnly.html -->
Expand Down Expand Up @@ -255,7 +255,7 @@ Use the `slim` attribute along with `iconOnly` attribute on the `auro-button` el
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/iconOnlySlim.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/iconOnlySlim.html -->
Expand Down Expand Up @@ -290,7 +290,7 @@ Use the `rounded` attribute in conjunction with the `iconOnly` attribute for an
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/rounded.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/rounded.html -->
Expand All @@ -316,7 +316,7 @@ This example demonstrates a `rounded` `auro-button` with text and an `auro-icon`
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/roundedTextWithIcon.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/roundedTextWithIcon.html -->
Expand All @@ -342,7 +342,7 @@ A `rounded` `auro-button` with text only.
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/roundedTextOnly.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/roundedTextOnly.html -->
Expand All @@ -368,7 +368,7 @@ The `rounded` attribute supports the ability to hide/show the text of the `auro-
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/toggledText.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/toggledText.html -->
Expand Down Expand Up @@ -422,7 +422,7 @@ This example shows a `rounded` `auro-button` that is right-aligned, demonstratin
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/roundedRightAlign.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/roundedRightAlign.html -->
Expand Down Expand Up @@ -475,7 +475,7 @@ In the following example see how the `fluid` attributes alters the shape of the
<auro-button variant="tertiary" fluid>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/fluid.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/fluid.html -->
Expand All @@ -500,7 +500,7 @@ Use the `loading` attribute to alter the content to teh shimmering dots to alert
<auro-button variant="tertiary" loading>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/loading.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/loading.html -->
Expand All @@ -520,7 +520,7 @@ Use the `loading` attribute to alter the content to teh shimmering dots to alert
<auro-button variant="tertiary" ondark loading>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/loadingOnDark.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/loadingOnDark.html -->
Expand Down
14 changes: 7 additions & 7 deletions demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ In cases were the action of the button would not fit the criteria above, it is m
<auro-button variant="tertiary">Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basic.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/basic.html -->
Expand All @@ -62,7 +62,7 @@ These examples illustrate the core button types and a `disabled` state on dark b
<auro-button variant="tertiary" ondark>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/onDark.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/onDark.html -->
Expand All @@ -87,7 +87,7 @@ This example demonstrates `auro-button` in it's `disabled` state.
<auro-button variant="tertiary" disabled>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabled.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/disabled.html -->
Expand All @@ -107,7 +107,7 @@ This example demonstrates `auro-button` in it's `disabled` state.
<auro-button variant="tertiary" disabled ondark>Tertiary</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabledOnDark.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/disabledOnDark.html -->
Expand Down Expand Up @@ -143,7 +143,7 @@ Be sure to use the `customColor` attribute on the auro-icon component to allow c
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/icon.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/icon.html -->
Expand Down Expand Up @@ -177,7 +177,7 @@ These examples illustrate a common use case where a user will want to pass a fun
<auro-button loading onclick="alert('YOU CLICKED ME!');">Primary</auro-button
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/passFunction.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/passFunction.html -->
Expand Down Expand Up @@ -205,7 +205,7 @@ Don't combine `disabled` and `loading` attributes on any single instance of `aur
</auro-alert>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/doAndDont.html) -->
<!-- The below code snippet is automatically added from ./../../apiExamples/doAndDont.html -->
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
});
</script>
<script type="module" src="../index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@alaskaairux/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@alaskaairux/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-alert@latest/dist/auro-alert__bundled.js" type="module"></script>

Expand Down
30 changes: 15 additions & 15 deletions docs/partials/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basic.html) -->
Expand All @@ -27,7 +27,7 @@ This example demonstrates `auro-button` in it's `disabled` state.
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabled.html) -->
Expand All @@ -40,7 +40,7 @@ This example demonstrates `auro-button` in it's `disabled` state.
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabledOnDark.html) -->
Expand All @@ -57,7 +57,7 @@ Use the `slim` attribute with the `auro-button` element for a slim style with le
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/slim.html) -->
Expand All @@ -78,7 +78,7 @@ Be sure to use the customColor attribute on the `auro-icon` component to allow c
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/icon.html) -->
Expand All @@ -100,7 +100,7 @@ Be sure to also use the `customColor` and `customSize` attributes on the `auro-i
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/iconOnly.html) -->
Expand All @@ -117,7 +117,7 @@ Use the `slim` attribute along with `iconOnly` attribute on the `auro-button` el
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/iconOnlySlim.html) -->
Expand All @@ -138,7 +138,7 @@ Use the `rounded` attribute in conjunction with the `iconOnly` attribute for an
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/rounded.html) -->
Expand All @@ -155,7 +155,7 @@ This example demonstrates a `rounded` `auro-button` with text and an `auro-icon`
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/roundedTextWithIcon.html) -->
Expand All @@ -172,7 +172,7 @@ A `rounded` `auro-button` with text only.
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/roundedTextOnly.html) -->
Expand All @@ -189,7 +189,7 @@ The `rounded` attribute supports the ability to hide/show the text of the `auro-
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/toggledText.html) -->
Expand All @@ -209,7 +209,7 @@ This example shows a `rounded` `auro-button` that is right-aligned, demonstratin
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/roundedRightAlign.html) -->
Expand All @@ -229,7 +229,7 @@ In the following example see how the `fluid` attributes alters the shape of the
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/fluid.html) -->
Expand All @@ -246,7 +246,7 @@ Use the `loading` attribute to alter the content to teh shimmering dots to alert
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/loading.html) -->
Expand All @@ -259,7 +259,7 @@ Use the `loading` attribute to alter the content to teh shimmering dots to alert
<!-- AURO-GENERATED-CONTENT:END -->
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alightRight>
<span slot="trigger">See code</span>

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/loadingOnDark.html) -->
Expand Down
Loading

0 comments on commit be18839

Please sign in to comment.