@aurodesignsystem/auro-button
Advanced tools
Comparing version 7.0.1 to 7.1.0
# Semantic Release Automated Changelog | ||
# [7.1.0](https://github.com/AlaskaAirlines/auro-button/compare/v7.0.1...v7.1.0) (2023-07-11) | ||
### Bug Fixes | ||
* **animation:** fix hide/show text animation on rounded button ([0378046](https://github.com/AlaskaAirlines/auro-button/commit/0378046ded92cbecf2ebc86a095a52274fe4deec)) | ||
### Features | ||
* **rounded:** implement new rounded button [#212](https://github.com/AlaskaAirlines/auro-button/issues/212) ([838a186](https://github.com/AlaskaAirlines/auro-button/commit/838a18665921f7c20a8ea43821078d8cd1b2b2c7)) | ||
### Performance Improvements | ||
* **stylelint:** update to modern stylelint practices ([750dc5d](https://github.com/AlaskaAirlines/auro-button/commit/750dc5d11bdfd844012f15e485204d9fda36dec5)) | ||
## [7.0.1](https://github.com/AlaskaAirlines/auro-button/compare/v7.0.0...v7.0.1) (2023-06-06) | ||
@@ -4,0 +21,0 @@ |
604
demo/demo.md
@@ -1,43 +0,25 @@ | ||
<style> | ||
.auro_containedButtons { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.auro_containedButtons > * { | ||
margin-bottom: 1rem; | ||
} | ||
.auro_containedButtons > *:last-child { | ||
margin-bottom: 0; | ||
} | ||
<!-- | ||
The demo.md file is a compiled document. No edits should be made directly to this file. | ||
README.md is created by running `npm run build:docs`. | ||
This file is generated based on a template fetched from `./docs/partials/demo.md` | ||
--> | ||
@media screen and (min-width: 768px) { | ||
.auro_containedButtons { | ||
flex-direction: row; | ||
} | ||
.auro_containedButtons > * { | ||
margin-bottom: 0; | ||
margin-left: 1rem; | ||
} | ||
.auro_containedButtons > *:first-child { | ||
margin-left: 0; | ||
} | ||
} | ||
</style> | ||
# Button | ||
The Auro Design System fully supports a wide range of buttons styles and use cases. The following examples illustrate common button uses followed up by code examples. | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./description.md) --> | ||
<!-- The below content is automatically added from ./description.md --> | ||
`<auro-button>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose being a clickable element to trigger a specific action. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
See [install instructions](https://www.alaskaair.com/components/auro/button/install) for more information as how to install and full API for the `auro-button` Auro base element. | ||
## Auro-Button use cases | ||
Illustrated in this example is a stand-alone use of `auro-button`. | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./useCases.md) --> | ||
<!-- The below content is automatically added from ./useCases.md --> | ||
The auro-button element should be used in situations where users may: | ||
## Button use cases | ||
The `auro-button` element should be used in situations where users may: | ||
* submit a form | ||
* begin a new task | ||
* trigger a new UI element to appear on the page | ||
* specify a new or next step in a process | ||
* trigger a new UI element to appear to the page | ||
* specificy a new or next step in a process | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
@@ -48,153 +30,96 @@ ## Buttons are not Hyperlinks | ||
## Default types | ||
## Default Example | ||
<div class="exampleWrapper"> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basic.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/basic.html --> | ||
<auro-button>Primary</auro-button> | ||
<auro-button disabled>Primary</auro-button> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<auro-button>Primary</auro-button> | ||
<auro-button disabled>Primary</auro-button> | ||
``` | ||
```html | ||
<auro-button>Primary</auro-button> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
<div class="exampleWrapper"> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="secondary" disabled>Secondary</auro-button> | ||
</div> | ||
## On Dark | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
These examples illustrate the core button types and a `disabled` state on dark backgrounds using the `onDark` attribute. | ||
```html | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="secondary" disabled>Secondary</auro-button> | ||
``` | ||
</auro-accordion> | ||
<div class="exampleWrapper"> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
<auro-button variant="tertiary" disabled>Tertiary</auro-button> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/onDark.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/onDark.html --> | ||
<auro-button ondark>Primary</auro-button> | ||
<auro-button variant="secondary" ondark>Secondary</auro-button> | ||
<auro-button variant="tertiary" ondark>Tertiary</auro-button> | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
<auro-button variant="tertiary" disabled>Tertiary</auro-button> | ||
``` | ||
```html | ||
<auro-button ondark>Primary</auro-button> | ||
<auro-button variant="secondary" ondark>Secondary</auro-button> | ||
<auro-button variant="tertiary" ondark>Tertiary</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
For default spacing of elements in a row, use the [.auro_containedButtons](https://alaskaairlines.github.io/WebCoreStyleSheets/#utility-auro-css-#{$scope}.auro_containedButtons) predefined selector in the [WC Style Sheets](https://auro.alaskaair.com/webcorestylesheets) lib. | ||
## Disabled | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button>Primary</auro-button> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
</div> | ||
This example demonstrates `auro-button` in it's `disabled` state. | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button>Primary</auro-button> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
</div> | ||
``` | ||
</auro-accordion> | ||
## Slim style | ||
Use the `slim` attribute with the `auro-button` element for a slim style with less padding. The slim style is used to establish the lowest level of hierarchy. Slim buttons have the least emphasis and significance on a page. | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button slim>Primary</auro-button> | ||
<auro-button slim variant="secondary">Secondary</auro-button> | ||
<auro-button slim variant="tertiary">Tertiary</auro-button> | ||
<div class="exampleWrapper"> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/disabled.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/disabled.html --> | ||
<auro-button disabled>Primary</auro-button> | ||
<auro-button variant="secondary" disabled>Secondary</auro-button> | ||
<auro-button variant="tertiary" disabled>Tertiary</auro-button> | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button slim>Primary</auro-button> | ||
<auro-button slim variant="secondary">Secondary</auro-button> | ||
<auro-button slim variant="tertiary">Tertiary</auro-button> | ||
</div> | ||
``` | ||
```html | ||
<auro-button disabled>Primary</auro-button> | ||
<auro-button variant="secondary" disabled>Secondary</auro-button> | ||
<auro-button variant="tertiary" disabled>Tertiary</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button slim> | ||
Activate WiFi | ||
<auro-icon style="width: var(--auro-size-md)" | ||
customSize | ||
customcolor | ||
category="in-flight" name="wifi"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button slim variant="secondary"> | ||
<auro-icon style="width: var(--auro-size-md)" | ||
customSize | ||
customcolor | ||
category="interface" name="arrow-left"></auro-icon> | ||
Previous action | ||
</auro-button> | ||
<auro-button slim variant="tertiary"> | ||
Love this ... | ||
<auro-icon style="width: var(--auro-size-md)" | ||
customSize | ||
customcolor | ||
category="interface" name="heart-filled"></auro-icon> | ||
</auro-button> | ||
<div class="exampleWrapper"> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/disabledOnDark.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/disabledOnDark.html --> | ||
<auro-button disabled ondark>Primary</auro-button> | ||
<auro-button variant="secondary" disabled ondark>Secondary</auro-button> | ||
<auro-button variant="tertiary" disabled ondark>Tertiary</auro-button> | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<auro-button slim> | ||
Activate WiFi | ||
<auro-icon style="width: var(--auro-size-md)" | ||
customSize | ||
customcolor | ||
category="in-flight" name="wifi"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button slim variant="secondary"> | ||
<auro-icon style="width: var(--auro-size-md)" | ||
customSize | ||
customcolor | ||
category="interface" name="arrow-left"></auro-icon> | ||
Previous action | ||
</auro-button> | ||
<auro-button slim variant="tertiary"> | ||
Love this ... | ||
<auro-icon style="width: var(--auro-size-md)" | ||
customSize | ||
customcolor | ||
category="interface" name="heart-filled"></auro-icon> | ||
</auro-button> | ||
``` | ||
```html | ||
<auro-button disabled ondark>Primary</auro-button> | ||
<auro-button variant="secondary" disabled ondark>Secondary</auro-button> | ||
<auro-button variant="tertiary" disabled ondark>Tertiary</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
## Icon support | ||
## Icon Support | ||
@@ -205,312 +130,64 @@ Adding icons to the auro-button component is as easy as nesting any other HTML. The [auro-icon component](https://www.alaskaair.com/components/auro/icon) has access to all the icons listed in the [Auro Icons library](https://www.alaskaair.com/icons/usage) for quick and easy use. | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button> | ||
<div class="exampleWrapper"> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/icon.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/icon.html --> | ||
<auro-button aria-label="wifi"> | ||
Activate WiFi | ||
<auro-icon customColor category="in-flight" name="wifi"></auro-icon> | ||
<auro-icon customColor category="in-flight" name="wifi" slot="icon"></auro-icon> | ||
</auro-button> | ||
<auro-button variant="secondary"> | ||
<auro-icon customcolor category="interface" name="arrow-left"></auro-icon> | ||
<auro-button variant="secondary" aria-label="arrow-left"> | ||
Previous action | ||
<auro-icon customcolor category="interface" name="arrow-left" slot="icon"></auro-icon> | ||
</auro-button> | ||
<auro-button variant="tertiary"> | ||
<auro-button variant="tertiary" aria-label="heart-filled"> | ||
Love this ... | ||
<auro-icon customcolor category="interface" name="heart-filled"></auro-icon> | ||
<auro-icon customcolor category="interface" name="heart-filled" slot="icon"></auro-icon> | ||
</auro-button> | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<auro-button> | ||
Activate WiFi | ||
<auro-icon customColor category="in-flight" name="wifi"></auro-icon> | ||
</auro-button> | ||
<auro-button variant="secondary"> | ||
<auro-icon customcolor category="interface" name="arrow-left"></auro-icon> | ||
Previous action | ||
</auro-button> | ||
<auro-button variant="tertiary"> | ||
Love this ... | ||
<auro-icon customcolor category="interface" name="heart-filled"></auro-icon> | ||
</auro-button> | ||
``` | ||
```html | ||
<auro-button aria-label="wifi"> | ||
Activate WiFi | ||
<auro-icon customColor category="in-flight" name="wifi" slot="icon"></auro-icon> | ||
</auro-button> | ||
<auro-button variant="secondary" aria-label="arrow-left"> | ||
Previous action | ||
<auro-icon customcolor category="interface" name="arrow-left" slot="icon"></auro-icon> | ||
</auro-button> | ||
<auro-button variant="tertiary" aria-label="heart-filled"> | ||
Love this ... | ||
<auro-icon customcolor category="interface" name="heart-filled" slot="icon"></auro-icon> | ||
</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
## Pass a Function to Button | ||
These examples illustrate a common use case where a user will want to pass a function into a button to support a click event. See the code examples for how this is achieved. | ||
#### Icon only button | ||
Use the `iconOnly` attribute with the `auro-button` element for a style specific to having only an `auro-icon` as the button's content. | ||
Be sure to also use the `customColor` and `customSize` attributes on the `auro-icon` component to allow colors set in your parent element to pass through to the icon. | ||
**Recommended**: We strongly encourage the users of the icon only `auro-button` to use the `aria-label` attribute. Without this attribute, the screenreaders will not properly describe the button content to it's users. | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button aria-label="home-filled" iconOnly> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="home-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="arrow-left" variant="secondary" iconOnly> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="arrow-left"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="heart-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button aria-label="home-filled" iconOnly> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="home-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="arrow-left" variant="secondary" iconOnly> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="arrow-left"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="heart-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
``` | ||
</auro-accordion> | ||
#### Icon only button - Slim | ||
Use the `slim` attribute along with `iconOnly` attribute on the `auro-button` element for a slimmer icon only button with less padding. | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button aria-label="home-filled" iconOnly slim> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="home-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="arrow-left" variant="secondary" iconOnly slim> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="arrow-left"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly slim> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="heart-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button aria-label="home-filled" iconOnly slim> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="home-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="arrow-left" variant="secondary" iconOnly slim> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="arrow-left"> | ||
</auro-icon> | ||
</auro-button> | ||
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly slim> | ||
<auro-icon | ||
customColor | ||
customSize | ||
category="interface" | ||
name="heart-filled"> | ||
</auro-icon> | ||
</auro-button> | ||
``` | ||
</auro-accordion> | ||
## Fluid | ||
In the following example see how the `fluid` attributes alters the shape of the button to be full width of its parent container. | ||
<div class="exampleWrapper"> | ||
<auro-button fluid>Primary</auro-button> | ||
<auro-button variant="secondary" fluid>Secondary</auro-button> | ||
<auro-button variant="tertiary" fluid>Tertiary</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button fluid>Primary</auro-button> | ||
<auro-button variant="secondary" fluid>Secondary</auro-button> | ||
<auro-button variant="tertiary" fluid>Tertiary</auro-button> | ||
``` | ||
</auro-accordion> | ||
## Loading State | ||
Use the `loading` attribute to alter the content to teh shimmering dots to alert the user that the button/form is in an active state. The `loading` attribute will also place the element in a disabled state to keep the user from re-submitting an action. | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<auro-button loading>Primary</auro-button> | ||
<auro-button variant="secondary" loading>Secondary</auro-button> | ||
<auro-button variant="tertiary" loading>Tertiary</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button loading>Primary</auro-button> | ||
<auro-button variant="secondary" loading>Secondary</auro-button> | ||
<auro-button variant="tertiary" loading>Tertiary</auro-button> | ||
``` | ||
</auro-accordion> | ||
<div class="exampleWrapper--ondark auro_containedButtons"> | ||
<auro-button ondark loading>Primary</auro-button> | ||
<auro-button variant="secondary" ondark loading>Secondary</auro-button> | ||
<auro-button variant="tertiary" ondark loading>Tertiary</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button ondark loading>Primary</auro-button> | ||
<auro-button variant="secondary" ondark loading>Secondary</auro-button> | ||
<auro-button variant="tertiary" ondark loading>Tertiary</auro-button> | ||
``` | ||
</auro-accordion> | ||
## onDark | ||
These examples illustrate the core button types and a `disabled` state on dark backgrounds using the `onDark` attribute. | ||
<div class="exampleWrapper--ondark auro_containedButtons"> | ||
<auro-button ondark>Primary</auro-button> | ||
<auro-button ondark disabled>Primary</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button ondark>Primary</auro-button> | ||
<auro-button ondark disabled>Primary</auro-button> | ||
``` | ||
</auro-accordion> | ||
<div class="exampleWrapper--ondark auro_containedButtons"> | ||
<auro-button variant="secondary" ondark>Secondary</auro-button> | ||
<auro-button variant="secondary" ondark disabled>Secondary</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button variant="secondary" ondark>Secondary</auro-button> | ||
<auro-button variant="secondary" ondark disabled>Secondary</auro-button> | ||
``` | ||
</auro-accordion> | ||
<div class="exampleWrapper--ondark auro_containedButtons"> | ||
<auro-button variant="tertiary" ondark>Tertiary</auro-button> | ||
<auro-button variant="tertiary" ondark disabled>Tertiary</auro-button> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button variant="tertiary" ondark>Tertiary</auro-button> | ||
<auro-button variant="tertiary" ondark disabled>Tertiary</auro-button> | ||
``` | ||
</auro-accordion> | ||
## Pass a function to button | ||
These examples illustrate a common use case where a user will want to pass a function into a button to support a click event. See the code examples for how this is achieved. | ||
<div class="exampleWrapper auro_containedButtons"> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/passFunction.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/passFunction.html --> | ||
<auro-button onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button disabled onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button loading onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button loading onclick="alert('YOU CLICKED ME!');">Primary</auro-button | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<auro-button onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button disabled onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button loading onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
``` | ||
```html | ||
<auro-button onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button disabled onclick="alert('YOU CLICKED ME!');">Primary</auro-button> | ||
<auro-button loading onclick="alert('YOU CLICKED ME!');">Primary</auro-button | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
@@ -522,32 +199,27 @@ | ||
<auro-alerts error noIcon> | ||
<div class="exampleWrapper"> | ||
<div class="exampleWrapper"> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/doAndDont.html) --> | ||
<!-- The below content is automatically added from ./../../apiExamples/doAndDont.html --> | ||
<auro-alerts error noIcon> | ||
<auro-button loading disabled>Primary</auro-button> | ||
</div> | ||
</auro-alerts> | ||
</auro-alerts> | ||
<auro-alerts success noIcon style="padding-top: 5px;"> | ||
<auro-button loading>Primary</auro-button> | ||
</auro-alerts> | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</div> | ||
<auro-accordion lowProfile justifyRight> | ||
<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 --> | ||
```html | ||
<auro-button loading disabled>Primary</auro-button> | ||
``` | ||
</auro-accordion> | ||
<auro-alerts success noIcon> | ||
<div class="exampleWrapper"> | ||
<auro-button loading>Primary</auro-button> | ||
</div> | ||
<auro-alerts error noIcon> | ||
<auro-button loading disabled>Primary</auro-button> | ||
</auro-alerts> | ||
<auro-accordion lowProfile justifyRight> | ||
<span slot="trigger">See code</span> | ||
```html | ||
<auro-button loading>Primary</auro-button> | ||
<auro-alerts success noIcon style="padding-top: 5px;"> | ||
<auro-button loading>Primary</auro-button> | ||
</auro-alerts> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
</auro-accordion> | ||
</auro-accordion> |
@@ -9,2 +9,3 @@ /** | ||
* @attr {Boolean} tertiary - DEPRECATED | ||
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape | ||
* @attr {Boolean} slim - Set value for slim version of auro-button | ||
@@ -22,3 +23,4 @@ * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container | ||
* | ||
* @slot - Provide text for the button. | ||
* @slot - Default slot for the text of the button. | ||
* @slot icon - Slot to provide auro-icon for the button. | ||
*/ | ||
@@ -60,2 +62,6 @@ export class AuroButton extends LitElement { | ||
}; | ||
rounded: { | ||
type: BooleanConstructor; | ||
reflect: boolean; | ||
}; | ||
slim: { | ||
@@ -100,2 +106,3 @@ type: BooleanConstructor; | ||
tertiary: boolean; | ||
rounded: boolean; | ||
slim: boolean; | ||
@@ -102,0 +109,0 @@ fluid: boolean; |
@@ -10,3 +10,3 @@ { | ||
"name": "@aurodesignsystem/auro-button", | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"description": "Auro custom auro-button element", | ||
@@ -25,4 +25,4 @@ "author": "Product design and research", | ||
"@alaskaairux/auro-loader": "^1.1.1", | ||
"chalk": "^5.2.0", | ||
"lit": "^2.7.5" | ||
"chalk": "^5.3.0", | ||
"lit": "^2.7.6" | ||
}, | ||
@@ -34,10 +34,10 @@ "peerDependencies": { | ||
"@alaskaairux/design-tokens": "^3.14.0", | ||
"@aurodesignsystem/webcorestylesheets": "^4.5.0", | ||
"@commitlint/cli": "^17.6.5", | ||
"@commitlint/config-conventional": "^17.6.5", | ||
"@open-wc/testing": "^3.1.8", | ||
"@aurodesignsystem/webcorestylesheets": "^4.6.0", | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@open-wc/testing": "^3.2.0", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/npm": "^10.0.3", | ||
"@web/dev-server": "^0.2.1", | ||
"@semantic-release/npm": "^10.0.4", | ||
"@web/dev-server": "^0.2.5", | ||
"@web/test-runner": "^0.16.1", | ||
@@ -47,21 +47,25 @@ "autoprefixer": "^10.3.1", | ||
"concat": "^1.0.3", | ||
"concurrently": "^8.1.0", | ||
"concurrently": "^8.2.0", | ||
"copyfiles": "^2.4.1", | ||
"core-js": "^3.30.2", | ||
"eslint": "^8.42.0", | ||
"core-js": "^3.31.1", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-lit": "^1.5.1", | ||
"husky": "^8.0.0", | ||
"lodash": "^4.17.21", | ||
"nodemon": "^2.0.12", | ||
"markdown-magic": "^2.6.1", | ||
"nodemon": "^3.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "^8.4.24", | ||
"postcss": "^8.4.25", | ||
"postcss-discard-comments": "^6.0.0", | ||
"postcss-selector-replace": "^1.0.2", | ||
"rollup": "^3.23.1", | ||
"rollup": "^3.26.2", | ||
"rollup-plugin-serve": "^2.0.2", | ||
"semantic-release": "^21.0.3", | ||
"sinon": "^15.1.0", | ||
"stylelint": "^15.7.0", | ||
"stylelint-config-standard": "^33.0.0", | ||
"typescript": "^5.1.3", | ||
"semantic-release": "^21.0.7", | ||
"sinon": "^15.2.0", | ||
"stylelint": "^15.10.1", | ||
"stylelint-config-standard": "^34.0.0", | ||
"stylelint-config-standard-scss": "^10.0.0", | ||
"stylelint-order": "^6.0.3", | ||
"stylelint-scss": "^5.0.1", | ||
"typescript": "^5.1.6", | ||
"wc-sass-render": "^1.4.0", | ||
@@ -86,9 +90,11 @@ "web-component-analyzer": "^1.1.6", | ||
"scripts": { | ||
"build": "npm-run-all build:sass sass:render scssLint dist:js bundler postinstall build:api types", | ||
"build": "npm-run-all build:sass sass:render scssLint dist:js build:docs bundler postinstall build:api build:demoScripts types", | ||
"build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render", | ||
"build:api": "wca analyze 'src/auro-button.js' --outFiles docs/api.md", | ||
"build:docs": "node scripts/generateDocs.js", | ||
"build:demoScripts": "node scripts/prepExampleFiles.js", | ||
"build:watch": "nodemon -e scss,js --watch src --exec npm run build:dev:assets", | ||
"bundler": "rollup -c", | ||
"bundle:test": "rollup -c -w", | ||
"scssLint": "stylelint \"./src/*.css\"", | ||
"scssLint": "stylelint \"./src/**/*.scss\"", | ||
"dev": "concurrently --kill-others 'npm run build:watch' 'npm run serve'", | ||
@@ -95,0 +101,0 @@ "dist:js": "copyfiles -u 1 -V './src/**/*.js' ./dist", |
201
README.md
@@ -1,17 +0,60 @@ | ||
# auro-button | ||
<!-- | ||
The README.md file is a compiled document. No edits should be made directly to this file. | ||
`<auro-button>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of containing styling and behavior. | ||
README.md is created by running `npm run build:docs`. | ||
This file is generated based on a template fetched from | ||
`https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/README.md` | ||
and copied to `./componentDocs/README.md` each time the the docs are compiled. | ||
The following sections are editable by making changes to the following files: | ||
| SECTION | DESCRIPTION | FILE LOCATION | | ||
|------------------------|---------------------------------------------------|-------------------------------------| | ||
| Description | Description of the component | `./docs/partials/description.md` | | ||
| Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` | | ||
| Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` | | ||
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` | | ||
--> | ||
# Button | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) --> | ||
<!-- The below content is automatically added from ./../docs/partials/description.md --> | ||
`<auro-button>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose being a clickable element to trigger a specific action. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/readmeAddlInfo.md) --> | ||
<!-- The below content is automatically added from ./../docs/partials/readmeAddlInfo.md --> | ||
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. --> | ||
## Responsive support | ||
`<auro-button>` is responsive by default. The button will assume 100% of the width of its container for views less than [auro_breakpoint--sm](https://alaskaairlines.github.io/WebCoreStyleSheets/#responsive-mixin-auro_breakpoint--sm). | ||
Beyond that breakpoint `<auro-button>` will assume the width of the content or a min-width of `8.75rem`, which ever is greater. | ||
If the desired appearance of the `<auro-button>` is to be placed in the reverse direction of natural content, then the attributes of `responsive` and `reverse` are needed on the `<auro-button>` element. | ||
## Multi button support | ||
When the UI requires the use of multiple buttons within the same space, with the use of the [Auro Web Core Style Sheets](https://alaskaairlines.github.io/WebCoreStyleSheets/#utility-auro-css-#{$scope}.auro_containedButtons), and the `auro_containedButtons`. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
## UI development browser support | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) --> | ||
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport) | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
## Install | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentInstall.md) --> | ||
[![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-button/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-button/actions/workflows/testPublish.yml) | ||
[![See it on NPM!](https://img.shields.io/npm/v/@alaskaairux/auro-button?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@alaskaairux/auro-button) | ||
[![License](https://img.shields.io/npm/l/@alaskaairux/auro-button?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0) | ||
[![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/auro-button?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/auro-button) | ||
[![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-button?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0) | ||
[![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@aurodesignsystem/auro-button?style=for-the-badge)](https://snyk.io/test/npm/@aurodesignsystem/auro-button?tab=issues) | ||
```shell | ||
$ npm i @alaskaairux/auro-button | ||
$ npm i @aurodesignsystem/auro-button | ||
``` | ||
@@ -21,8 +64,14 @@ | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### Design Token CSS Custom Property dependency | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) --> | ||
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens). | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### CSS Custom Property fallbacks | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) --> | ||
[CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm. | ||
@@ -32,120 +81,132 @@ | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### Define dependency in project component | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) --> | ||
Defining the component dependency within each component that is using the `<auro-button>` component. | ||
```javascript | ||
import "@alaskaairux/auro-button"; | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImport.md) --> | ||
```js | ||
import "@aurodesignsystem/auro-button"; | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
**Reference component in HTML** | ||
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) --> | ||
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html --> | ||
```html | ||
<auro-button>Hello World</auro-button> | ||
<auro-button>Primary</auro-button> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
## CDN Use | ||
## Install bundled assets from CDN | ||
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleInstallDescription.md) --> | ||
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. See -- `auro-button__bundled.js` for modern browsers. Legacy browsers such as IE11 are no longer supported. | ||
### Install | ||
We recommend you load these bundles using [differential serving](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/) so that the browser only loads the bundle correctly. To accomplish this, the script tag for the modern bundle should have `type="module"` and the script tag. | ||
Include the following example HTML code in the `<head>` element of your page. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alaskaairux/webcorestylesheets@latest/dist/bundled/essentials.css" /> | ||
### Bundle example code | ||
<script src="https://cdn.jsdelivr.net/npm/@alaskaairux/auro-button@latest/dist/auro-button__bundled.js" type="module"></script> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUse.md) --> | ||
**NOTE:** Be sure to replace `@latest` in the URL with the version of the asset you want. @latest is NOT aware of any MAJOR releases, use at your own risk. | ||
## Responsive support | ||
`<auro-button>` is responsive by default. The button will assume 100% of the width of its container for views less than [auro_breakpoint--sm](https://alaskaairlines.github.io/WebCoreStyleSheets/#responsive-mixin-auro_breakpoint--sm). | ||
Beyond that breakpoint `<auro-button>` will assume the width of the content or a min-width of `8.75rem`, which ever is greater. | ||
If the desired appearance of the `<auro-button>` is to be placed in the reverse direction of natural content, then the attributes of `responsive` and `reverse` are needed on the `<auro-button>` element. | ||
## Multi button support | ||
When the UI requires the use of multiple buttons within the same space, with the use of the [Auro Web Core Style Sheets](https://alaskaairlines.github.io/WebCoreStyleSheets/#utility-auro-css-#{$scope}.auro_containedButtons), and the `auro_containedButtons` . | ||
## Light DOM Support | ||
`<auro-button-light>` are included in this package for [light DOM](https://developers.google.com/web/fundamentals/web-components/shadowdom#lightdom) support. | ||
To pass content to the <auro-button-light>, use the content prop. | ||
```html | ||
<auro-button-light content="Default value"></auro-button-light> | ||
<!-- **NOTE:** Be sure to replace `@latest` in the URL with the version of the asset you want. @latest is NOT aware of any MAJOR releases, use at your own risk. --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script> | ||
``` | ||
### Native form attribute support | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
The auro-button shadow DOM web component does not support all the native form attributes that a `<button>` element would. But the light DOM version does. These attributes require access to the full light DOM. | ||
* form | ||
* formaction | ||
* formenctype | ||
* formmethod | ||
* formtarget | ||
* formnovalidate | ||
## auro-button use cases | ||
The `<auro-button>` element should be used in situations where users may: | ||
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) --> | ||
<!-- The below content is automatically added from ./../docs/partials/useCases.md --> | ||
The auro-button element should be used in situations where users may: | ||
* submit a form | ||
* begin a new task | ||
* trigger a new UI element to appear on the page | ||
* specify a new or next step in a process | ||
* trigger a new UI element to appear to the page | ||
* specificy a new or next step in a process | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
## API Code Examples | ||
Default auro-button | ||
### Default auro-button | ||
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) --> | ||
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html --> | ||
```html | ||
<auro-button>Primary</auro-button> | ||
<auro-button disabled>Primary</auro-button> | ||
<auro-button variant="secondary">Secondary</auro-button> | ||
<auro-button variant="tertiary">Tertiary</auro-button> | ||
``` | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
```html | ||
<auro-button secondary>Secondary</auro-button> | ||
<auro-button secondary disabled>Secondary</auro-button> | ||
``` | ||
```html | ||
<auro-button tertiary>Tertiary</auro-button> | ||
<auro-button tertiary disabled>Tertiary</auro-button> | ||
``` | ||
## Development | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/developmentDescription.md) --> | ||
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request. | ||
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/getting-started/developers/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document. | ||
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### Start development environment | ||
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open three different shell sessions. One is for the **Gulp tasks**, the second is for a series of **npm tasks** and the last is to run the **Polymer server**. | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/localhost.md) --> | ||
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**. | ||
**Peer dependency:** Please make sure Polymer is installed globally in order to run the Polymer server. See [Auro Component Development Details](https://github.com/AlaskaAirlines/auro_docs/blob/master/src/TECH_DETAILS.md) for more information. | ||
```shell | ||
// shell terminal one | ||
$ npm run dev | ||
``` | ||
// shell terminal two | ||
Open [localhost:8000](http://localhost:8000/) | ||
If running separate sessions is preferred, please run the following commands in individual terminal shells. | ||
```shell | ||
$ npm run build:watch | ||
$ npm run serve | ||
``` | ||
Open [localhost:8000](http://localhost:8000/) | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### API generation | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/api.md) --> | ||
The custom element API file is generated in the build and committed back to the repo with a version change. If the API doc has changed without a version change, author's are to run `npm run build:api` to generate the doc and commit to version control. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### Testing | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/testing.md) --> | ||
Automated tests are required for every Auro component. See `.\test\auro-button.test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### Bundled assets | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/bundles.md) --> | ||
Bundled assets are only generated in the remote and not merged back to this repo. To review and/or test a bundled asset locally, run `$ npm run bundler` to generate assets. | ||
<!-- AURO-GENERATED-CONTENT:END --> | ||
### Demo deployment | ||
To deploy a demo version of the component for review, run `npm run demo:build` to create a `./build` directory that can be pushed to any static server. | ||
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/deploymentDemo.md) --> | ||
To deploy a demo version of the component for review, run `npm run build:demo` to create a `./build` directory that can be pushed to any static server. | ||
<!-- AURO-GENERATED-CONTENT:END --> |
@@ -20,2 +20,3 @@ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license | ||
* @attr {Boolean} tertiary - DEPRECATED | ||
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape | ||
* @attr {Boolean} slim - Set value for slim version of auro-button | ||
@@ -33,7 +34,9 @@ * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container | ||
* | ||
* @slot - Provide text for the button. | ||
* @slot - Default slot for the text of the button. | ||
* @slot icon - Slot to provide auro-icon for the button. | ||
*/ | ||
/* eslint-disable max-statements, one-var, no-magic-numbers */ | ||
export class AuroButton extends LitElement { | ||
/* eslint max-statements: ["error", 11] */ | ||
constructor() { | ||
@@ -49,2 +52,3 @@ super(); | ||
this.tertiary = false; | ||
this.rounded = false; | ||
this.slim = false; | ||
@@ -92,2 +96,6 @@ this.fluid = false; | ||
}, | ||
rounded: { | ||
type: Boolean, | ||
reflect: true | ||
}, | ||
slim: { | ||
@@ -117,3 +125,3 @@ type: Boolean, | ||
}, | ||
variant: { | ||
variant: { | ||
type: String, | ||
@@ -167,2 +175,3 @@ reflect: true | ||
'auro-buttonOndark--tertiary': this.tertiary && this.ondark, | ||
'auro-button--rounded': this.rounded, | ||
'auro-button--slim': this.slim, | ||
@@ -189,3 +198,9 @@ 'auro-button--iconOnly': this.iconOnly, | ||
${ifDefined(this.loading ? html`<auro-loader pulse></auro-loader>` : undefined)} | ||
<slot></slot> | ||
<span> | ||
<span class="textSlot"> | ||
${this.iconOnly ? undefined : html`<slot></slot>`} | ||
</span> | ||
<slot name="icon"></slot> | ||
</span> | ||
</button> | ||
@@ -192,0 +207,0 @@ `; |
@@ -7,2 +7,2 @@ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license | ||
import {css} from 'lit-element'; | ||
export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetLg--squish{padding:.75rem 1.5rem}:focus-visible.auro-button{outline:3px solid transparent;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}:focus-visible.auro-button[variant=secondary],:focus-visible.auro-button--secondary{background-color:var(--auro-color-background-lighter);box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-button[variant=tertiary],:focus-visible.auro-button--tertiary{background-color:var(--auro-color-background-lighter);border-color:var(--auro-color-ui-default-on-light);box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-buttonOndark{background-color:var(--auro-color-ui-default-on-dark);box-shadow:inset 0 0 0 3px var(--auro-color-border-focus-on-dark)}:focus-visible.auro-buttonOndark[variant=secondary],:focus-visible.auro-buttonOndark--secondary{background-color:var(--auro-color-base-black-opacity-15);box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark);border:1px solid var(--auro-color-ui-active-on-dark)}:focus-visible.auro-buttonOndark[variant=tertiary],:focus-visible.auro-buttonOndark--tertiary{background-color:var(--auro-color-base-black-opacity-15);border-color:var(--auro-color-ui-active-on-dark);box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark)}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{transition:all .15s ease;position:relative;padding:0 var(--auro-size-lg);color:var(--auro-color-text-primary-on-dark);cursor:pointer;background-color:var(--auro-color-ui-default-on-light);border:1px solid var(--auro-color-ui-default-on-light);border-radius:var(--auro-border-radius);font-family:var(--auro-font-family-default);font-size:var(--auro-text-body-size-default);font-weight:var(--auro-text-body-default-weight);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--auro-size-xxl);max-height:var(--auro-size-xxl);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--auro-size-xxs);margin:0;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}@media(hover: hover){.auro-button:active,.auro-button:hover{background-color:var(--auro-color-ui-hover-on-light);border:1px solid var(--auro-color-ui-hover-on-light)}}.auro-button:active{background-color:var(--auro-color-ui-active-on-light);border:1px solid var(--auro-color-ui-active-on-light);transform:scale(0.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not(auro-loader){visibility:hidden}.auro-button.loading auro-loader{color:var(--auro-color-background-darkest)}.auro-button.loading.auro-buttonOndark auro-loader{color:var(--auro-color-text-primary-on-dark)}@media screen and (min-width: 660px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset;background-color:rgba(0, 116, 200, 0.4);border:1px solid rgba(0, 116, 200, 0)}@media(hover: hover){.auro-button:disabled:hover{background-color:rgba(0, 116, 200, 0.4);border:1px solid rgba(0, 116, 200, 0)}}.auro-button[variant=secondary],.auro-button--secondary{background-color:var(--auro-color-background-lightest);border:1px solid var(--auro-color-ui-default-on-light);color:var(--auro-color-text-link-on-light)}@media(hover: hover){.auro-button[variant=secondary]:active,.auro-button[variant=secondary]:hover,.auro-button--secondary:active,.auro-button--secondary:hover{background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid var(--auro-color-ui-default-on-light)}}.auro-button[variant=secondary]:active,.auro-button--secondary:active{background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid var(--auro-color-ui-default-on-light)}.auro-button[variant=secondary]:disabled,.auro-button--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0, 116, 200, 0.4);background-color:rgba(255, 255, 255, 0.4);border:1px solid rgba(0, 116, 200, 0.4)}@media(hover: hover){.auro-button[variant=secondary]:disabled:hover,.auro-button--secondary:disabled:hover{color:rgba(0, 116, 200, 0.4);background-color:rgba(255, 255, 255, 0.4);border:1px solid rgba(0, 116, 200, 0.4)}}.auro-button[variant=tertiary],.auro-button--tertiary{background-color:rgba(0, 0, 0, 0.03);border-color:transparent;color:var(--auro-color-text-link-on-light)}@media(hover: hover){.auro-button[variant=tertiary]:active,.auro-button[variant=tertiary]:hover,.auro-button--tertiary:active,.auro-button--tertiary:hover{background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}}.auro-button[variant=tertiary]:active,.auro-button--tertiary:active{background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}.auro-button[variant=tertiary]:disabled,.auro-button--tertiary:disabled{cursor:not-allowed;transform:unset;color:rgba(0, 116, 200, 0.4);background-color:rgba(0, 0, 0, 0.03);border:1px solid transparent}@media(hover: hover){.auro-button[variant=tertiary]:disabled:hover,.auro-button--tertiary:disabled:hover{background-color:rgba(0, 0, 0, 0.03);border:1px solid transparent}}.auro-buttonOndark{background-color:var(--auro-color-ui-default-on-dark);border:1px solid var(--auro-color-ui-default-on-dark);color:var(--auro-color-text-primary-on-light)}@media(hover: hover){.auro-buttonOndark:active,.auro-buttonOndark:hover{background-color:var(--auro-color-ui-hover-on-dark);border:1px solid var(--auro-color-ui-hover-on-dark)}}.auro-buttonOndark:active{background-color:var(--auro-color-ui-active-on-dark);border:1px solid var(--auro-color-ui-active-on-dark)}.auro-buttonOndark:disabled{cursor:not-allowed;transform:unset;color:rgba(34, 34, 34, 0.4);background-color:rgba(0, 207, 240, 0.4);border:1px solid rgba(0, 207, 240, 0.4)}@media(hover: hover){.auro-buttonOndark:disabled:hover{color:rgba(34, 34, 34, 0.4);background-color:rgba(0, 207, 240, 0.4);border:1px solid rgba(0, 207, 240, 0.4)}}.auro-buttonOndark[variant=secondary],.auro-buttonOndark--secondary{background-color:var(--auro-color-background-darker);border:1px solid var(--auro-color-ui-default-on-dark);color:var(--auro-color-ui-default-on-dark)}@media(hover: hover){.auro-buttonOndark[variant=secondary]:active,.auro-buttonOndark[variant=secondary]:hover,.auro-buttonOndark--secondary:active,.auro-buttonOndark--secondary:hover{background-color:var(--auro-color-background-darkest)}}.auro-buttonOndark[variant=secondary]:active,.auro-buttonOndark--secondary:active{background-color:var(--auro-color-base-black-opacity-15);border:1px solid var(--auro-color-ui-hover-on-dark)}@media(hover: hover){.auro-buttonOndark[variant=secondary]:disabled:hover,.auro-buttonOndark--secondary:disabled:hover{background-color:var(--auro-color-background-darker);border:1px solid var(--auro-color-ui-default-on-dark)}}.auro-buttonOndark[variant=secondary]:disabled,.auro-buttonOndark--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0, 207, 240, 0.4);background-color:var(--auro-color-background-darker);border:1px solid rgba(0, 207, 240, 0.4)}@media(hover: hover){.auro-buttonOndark[variant=secondary]:disabled:hover,.auro-buttonOndark--secondary:disabled:hover{color:rgba(0, 207, 240, 0.4);background-color:var(--auro-color-background-darker);border:1px solid rgba(0, 207, 240, 0.4)}}.auro-buttonOndark[variant=tertiary],.auro-buttonOndark--tertiary{background-color:rgba(255, 255, 255, 0.03);border:1px solid transparent;color:var(--auro-color-ui-default-on-dark)}@media(hover: hover){.auro-buttonOndark[variant=tertiary]:active,.auro-buttonOndark[variant=tertiary]:hover,.auro-buttonOndark--tertiary:active,.auro-buttonOndark--tertiary:hover{background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}}.auro-buttonOndark[variant=tertiary]:active,.auro-buttonOndark--tertiary:active{background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}.auro-buttonOndark[variant=tertiary]:disabled,.auro-buttonOndark--tertiary:disabled{cursor:not-allowed;transform:unset;background-color:rgba(255, 255, 255, 0.03);border:transparent;color:rgba(0, 207, 240, 0.4)}@media(hover: hover){.auro-buttonOndark[variant=tertiary]:disabled:hover,.auro-buttonOndark--tertiary:disabled:hover{background-color:rgba(255, 255, 255, 0.03);color:rgba(0, 207, 240, 0.4);border:transparent}}.auro-button--slim{padding:var(--auro-size-xs) var(--auro-size-md);font-size:var(--auro-text-body-size-sm);min-width:unset;min-height:2.25rem;max-height:2.25rem}.auro-button--iconOnly{padding-left:calc(var(--auro-size-100, 8px) - 2px);padding-right:calc(var(--auro-size-100, 8px) - 2px);border-radius:100px;min-width:unset}.auro-button--iconOnly ::slotted(auro-icon){width:var(--auro-size-300, 24px);height:var(--auro-size-300, 24px)}.auro-button--iconOnlySlim{padding-left:var(--auro-size-50, 4px);padding-right:var(--auro-size-50, 4px)}.auro-button--iconOnlySlim ::slotted(auro-icon){width:calc(var(--auro-size-300, 24px) - 4px);height:calc(var(--auro-size-300, 24px) - 4px)}auro-loader{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`; | ||
export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetLg--squish{padding:.75rem 1.5rem}:focus-visible.auro-button{outline:3px solid transparent;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}:focus-visible.auro-button[variant=secondary],:focus-visible.auro-button--secondary{background-color:var(--auro-color-background-lighter);box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-button[variant=tertiary],:focus-visible.auro-button--tertiary{background-color:var(--auro-color-background-lighter);border-color:var(--auro-color-ui-default-on-light);box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-buttonOndark{background-color:var(--auro-color-ui-default-on-dark);box-shadow:inset 0 0 0 3px var(--auro-color-border-focus-on-dark)}:focus-visible.auro-buttonOndark[variant=secondary],:focus-visible.auro-buttonOndark--secondary{background-color:var(--auro-color-base-black-opacity-15);box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark);border:1px solid var(--auro-color-ui-active-on-dark)}:focus-visible.auro-buttonOndark[variant=tertiary],:focus-visible.auro-buttonOndark--tertiary{background-color:var(--auro-color-base-black-opacity-15);border-color:var(--auro-color-ui-active-on-dark);box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark)}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{transition:all .15s ease;position:relative;padding:0 var(--auro-size-lg);color:var(--auro-color-text-primary-on-dark);cursor:pointer;background-color:var(--auro-color-ui-default-on-light);border:1px solid var(--auro-color-ui-default-on-light);border-radius:var(--auro-border-radius);font-family:var(--auro-font-family-default);font-size:var(--auro-text-body-size-default);font-weight:var(--auro-text-body-default-weight);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--auro-size-xxl);max-height:var(--auro-size-xxl);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--auro-size-xxs);margin:0;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}@media(hover: hover){.auro-button:active,.auro-button:hover{background-color:var(--auro-color-ui-hover-on-light);border:1px solid var(--auro-color-ui-hover-on-light)}}.auro-button:active{background-color:var(--auro-color-ui-active-on-light);border:1px solid var(--auro-color-ui-active-on-light);transform:scale(0.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not(auro-loader){visibility:hidden}.auro-button.loading auro-loader{color:var(--auro-color-background-darkest)}.auro-button.loading.auro-buttonOndark auro-loader{color:var(--auro-color-text-primary-on-dark)}@media screen and (min-width: 660px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset;background-color:rgba(0, 116, 200, 0.4);border:1px solid rgba(0, 116, 200, 0)}@media(hover: hover){.auro-button:disabled:hover{background-color:rgba(0, 116, 200, 0.4);border:1px solid rgba(0, 116, 200, 0)}}.auro-button[variant=secondary],.auro-button--secondary{background-color:var(--auro-color-background-lightest);border:1px solid var(--auro-color-ui-default-on-light);color:var(--auro-color-text-link-on-light)}@media(hover: hover){.auro-button[variant=secondary]:active,.auro-button[variant=secondary]:hover,.auro-button--secondary:active,.auro-button--secondary:hover{background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid var(--auro-color-ui-default-on-light)}}.auro-button[variant=secondary]:active,.auro-button--secondary:active{background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid var(--auro-color-ui-default-on-light)}.auro-button[variant=secondary]:disabled,.auro-button--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0, 116, 200, 0.4);background-color:rgba(255, 255, 255, 0.4);border:1px solid rgba(0, 116, 200, 0.4)}@media(hover: hover){.auro-button[variant=secondary]:disabled:hover,.auro-button--secondary:disabled:hover{color:rgba(0, 116, 200, 0.4);background-color:rgba(255, 255, 255, 0.4);border:1px solid rgba(0, 116, 200, 0.4)}}.auro-button[variant=tertiary],.auro-button--tertiary{background-color:rgba(0, 0, 0, 0.03);border-color:transparent;color:var(--auro-color-text-link-on-light)}@media(hover: hover){.auro-button[variant=tertiary]:active,.auro-button[variant=tertiary]:hover,.auro-button--tertiary:active,.auro-button--tertiary:hover{background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}}.auro-button[variant=tertiary]:active,.auro-button--tertiary:active{background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}.auro-button[variant=tertiary]:disabled,.auro-button--tertiary:disabled{cursor:not-allowed;transform:unset;color:rgba(0, 116, 200, 0.4);background-color:rgba(0, 0, 0, 0.03);border:1px solid transparent}@media(hover: hover){.auro-button[variant=tertiary]:disabled:hover,.auro-button--tertiary:disabled:hover{background-color:rgba(0, 0, 0, 0.03);border:1px solid transparent}}.auro-buttonOndark{background-color:var(--auro-color-ui-default-on-dark);border:1px solid var(--auro-color-ui-default-on-dark);color:var(--auro-color-text-primary-on-light)}@media(hover: hover){.auro-buttonOndark:active,.auro-buttonOndark:hover{background-color:var(--auro-color-ui-hover-on-dark);border:1px solid var(--auro-color-ui-hover-on-dark)}}.auro-buttonOndark:active{background-color:var(--auro-color-ui-active-on-dark);border:1px solid var(--auro-color-ui-active-on-dark)}.auro-buttonOndark:disabled{cursor:not-allowed;transform:unset;color:rgba(34, 34, 34, 0.4);background-color:rgba(0, 207, 240, 0.4);border:1px solid rgba(0, 207, 240, 0.4)}@media(hover: hover){.auro-buttonOndark:disabled:hover{color:rgba(34, 34, 34, 0.4);background-color:rgba(0, 207, 240, 0.4);border:1px solid rgba(0, 207, 240, 0.4)}}.auro-buttonOndark[variant=secondary],.auro-buttonOndark--secondary{background-color:var(--auro-color-background-darker);border:1px solid var(--auro-color-ui-default-on-dark);color:var(--auro-color-ui-default-on-dark)}@media(hover: hover){.auro-buttonOndark[variant=secondary]:active,.auro-buttonOndark[variant=secondary]:hover,.auro-buttonOndark--secondary:active,.auro-buttonOndark--secondary:hover{background-color:var(--auro-color-background-darkest)}}.auro-buttonOndark[variant=secondary]:active,.auro-buttonOndark--secondary:active{background-color:var(--auro-color-base-black-opacity-15);border:1px solid var(--auro-color-ui-hover-on-dark)}@media(hover: hover){.auro-buttonOndark[variant=secondary]:disabled:hover,.auro-buttonOndark--secondary:disabled:hover{background-color:var(--auro-color-background-darker);border:1px solid var(--auro-color-ui-default-on-dark)}}.auro-buttonOndark[variant=secondary]:disabled,.auro-buttonOndark--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0, 207, 240, 0.4);background-color:var(--auro-color-background-darker);border:1px solid rgba(0, 207, 240, 0.4)}@media(hover: hover){.auro-buttonOndark[variant=secondary]:disabled:hover,.auro-buttonOndark--secondary:disabled:hover{color:rgba(0, 207, 240, 0.4);background-color:var(--auro-color-background-darker);border:1px solid rgba(0, 207, 240, 0.4)}}.auro-buttonOndark[variant=tertiary],.auro-buttonOndark--tertiary{background-color:rgba(255, 255, 255, 0.03);border:1px solid transparent;color:var(--auro-color-ui-default-on-dark)}@media(hover: hover){.auro-buttonOndark[variant=tertiary]:active,.auro-buttonOndark[variant=tertiary]:hover,.auro-buttonOndark--tertiary:active,.auro-buttonOndark--tertiary:hover{background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}}.auro-buttonOndark[variant=tertiary]:active,.auro-buttonOndark--tertiary:active{background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}.auro-buttonOndark[variant=tertiary]:disabled,.auro-buttonOndark--tertiary:disabled{cursor:not-allowed;transform:unset;background-color:rgba(255, 255, 255, 0.03);border:transparent;color:rgba(0, 207, 240, 0.4)}@media(hover: hover){.auro-buttonOndark[variant=tertiary]:disabled:hover,.auro-buttonOndark--tertiary:disabled:hover{background-color:rgba(255, 255, 255, 0.03);color:rgba(0, 207, 240, 0.4);border:transparent}}.auro-button--slim{padding:var(--auro-size-xs) var(--auro-size-md);font-size:var(--auro-text-body-size-sm);min-width:unset;min-height:2.25rem;max-height:2.25rem}.auro-button--iconOnly{padding-left:calc(var(--auro-size-100) - var(--auro-size-25));padding-right:calc(var(--auro-size-100) - var(--auro-size-25));border-radius:100px;min-width:unset}.auro-button--iconOnly ::slotted(auro-icon){width:var(--auro-size-300);height:var(--auro-size-300)}.auro-button--iconOnlySlim{padding-left:var(--auro-size-50);padding-right:var(--auro-size-50)}.auro-button--iconOnlySlim ::slotted(auro-icon){width:calc(var(--auro-size-300) - var(--auro-size-50));height:calc(var(--auro-size-300) - var(--auro-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--auro-elevation-300);height:var(--auro-size-500);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon){width:var(--auro-size-300);height:var(--auro-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--auro-size-600)}auro-loader{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
254519
0
100
211
40
3861
Updatedchalk@^5.3.0
Updatedlit@^2.7.6