Merge branch 'main' into chore-dep-upgrades
This commit is contained in:
81 files changed
+212
-196
No files matched your search
@@ -4,5 +4,5 @@
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
title={{t "actions.get-topic-help"}}>
|
||||
<Rose::Icon @name="flight-icons/help-24" @size={{@iconSize}} />
|
||||
<Rose::Icon @name="flight-icons/svg/help-24" @size={{@iconSize}} />
|
||||
</a>
|
||||
@@ -28,11 +28,11 @@ export default class ErrorMessageComponent extends MessageComponent {
|
||||
get icon() {
|
||||
switch (this.args.status) {
|
||||
case '404':
|
||||
return 'flight-icons/help-16';
|
||||
return 'flight-icons/svg/help-16';
|
||||
case '401':
|
||||
case '403':
|
||||
default:
|
||||
return 'flight-icons/alert-circle-16';
|
||||
return 'flight-icons/svg/alert-circle-16';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ When style definition isn't supplied, a default style will be supplied.
|
||||
Styles: outline, dark, informational, informational-outline, success, success-outline, error, error-outline, warning, warning-outline, alert, alert-outline
|
||||
|
||||
```html
|
||||
<Rose::Badge @style="outline" @icon="flight-icons/org-16">Badge</Rose::Badge>
|
||||
<Rose::Badge @style="outline" @icon="flight-icons/svg/org-16">Badge</Rose::Badge>
|
||||
```
|
||||
|
||||
<Preview>
|
||||
@@ -43,9 +43,9 @@ Styles: outline, dark, informational, informational-outline, success, success-ou
|
||||
'none'
|
||||
),
|
||||
icon: select('icon', {
|
||||
'flight-icons/org-16': 'flight-icons/org-16',
|
||||
'flight-icons/svg/org-16': 'flight-icons/svg/org-16',
|
||||
},
|
||||
'flight-icons/org-16'
|
||||
'flight-icons/svg/org-16'
|
||||
),
|
||||
}
|
||||
}}</Story>
|
||||
@@ -56,7 +56,7 @@ Styles: outline, dark, informational, informational-outline, success, success-ou
|
||||
template: hbs`
|
||||
<Rose::Badge>default style</Rose::Badge>
|
||||
<Rose::Badge @style="outline">outline</Rose::Badge>
|
||||
<Rose::Badge @icon="flight-icons/org-16">default style with icon</Rose::Badge>
|
||||
<Rose::Badge @icon="flight-icons/svg/org-16">default style with icon</Rose::Badge>
|
||||
<Rose::Badge @style="dark">dark</Rose::Badge>
|
||||
<Rose::Badge @style="informational">informational</Rose::Badge>
|
||||
<Rose::Badge @style="informational-outline">informational-outline</Rose::Badge>
|
||||
|
||||
@@ -12,7 +12,7 @@ to trigger actions or to submit forms. Avoid using buttons as simple links to
|
||||
other routes. For accessibility, use links instead.
|
||||
|
||||
```htmlbars
|
||||
<Rose::Button @style="primary" @iconRight="flight-icons/entry-point-16">
|
||||
<Rose::Button @style="primary" @iconRight="flight-icons/svg/entry-point-16">
|
||||
Action
|
||||
</Rose::Button>
|
||||
```
|
||||
@@ -49,18 +49,18 @@ other routes. For accessibility, use links instead.
|
||||
iconLeft: select(
|
||||
'iconLeft',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/check-circle-16'
|
||||
'flight-icons/svg/check-circle-16'
|
||||
),
|
||||
iconRight: select(
|
||||
'iconRight',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/clipboard-copy-16'
|
||||
'flight-icons/svg/clipboard-copy-16'
|
||||
),
|
||||
onClick: action('clicked'),
|
||||
},
|
||||
@@ -81,10 +81,10 @@ button in this case for accessibility.
|
||||
iconOnly: select(
|
||||
'iconOnly',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/check-circle-16'
|
||||
'flight-icons/svg/check-circle-16'
|
||||
),
|
||||
},
|
||||
}}</Story>
|
||||
|
||||
@@ -13,7 +13,7 @@ Card link component wraps content with `LinkTo` component. Supports title and de
|
||||
@title='Card title'
|
||||
@description='Card description'
|
||||
@id='resource_id_1234'
|
||||
@icon='flight-icons/org-16'
|
||||
@icon='flight-icons/svg/org-16'
|
||||
@route='about'/>
|
||||
```
|
||||
|
||||
@@ -32,9 +32,9 @@ Card link component wraps content with `LinkTo` component. Supports title and de
|
||||
description: text('description', 'Card description'),
|
||||
id: text('id', 'resource_id_1234'),
|
||||
icon: select('icon', {
|
||||
'flight-icons/org-16': 'flight-icons/org-16',
|
||||
'flight-icons/svg/org-16': 'flight-icons/svg/org-16',
|
||||
},
|
||||
'flight-icons/org-16'
|
||||
'flight-icons/svg/org-16'
|
||||
),
|
||||
},
|
||||
}}</Story>
|
||||
|
||||
@@ -18,35 +18,35 @@ A set of cards arranged side-by-side.
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
</Rose::Cards>
|
||||
`,
|
||||
@@ -62,14 +62,14 @@ A set of cards arranged side-by-side.
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
@id="resource_id_1234"
|
||||
@icon="flight-icons/org-16"
|
||||
@icon="flight-icons/svg/org-16"
|
||||
/>
|
||||
</Rose::Cards>
|
||||
```
|
||||
@@ -27,7 +27,7 @@
|
||||
title={{@dismissButtonText}}
|
||||
{{on "click" (fn this.dismiss @dismiss)}}
|
||||
>
|
||||
<Rose::Icon @name="flight-icons/x-16" @size="small" />
|
||||
<Rose::Icon @name="flight-icons/svg/x-16" @size="small" />
|
||||
</button>
|
||||
|
||||
</header>
|
||||
@@ -62,7 +62,7 @@
|
||||
title={{@dismissButtonText}}
|
||||
{{on "click" (fn this.dismiss @dismiss)}}
|
||||
>
|
||||
<Rose::Icon @name="flight-icons/x-16" @size="small" />
|
||||
<Rose::Icon @name="flight-icons/svg/x-16" @size="small" />
|
||||
</button>
|
||||
|
||||
</header>
|
||||
|
||||
@@ -36,10 +36,10 @@ A dialog component with optional modal capabilities.
|
||||
icon: select(
|
||||
'icon',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/check-circle-16'
|
||||
'flight-icons/svg/check-circle-16'
|
||||
),
|
||||
style: select(
|
||||
'style',
|
||||
@@ -58,7 +58,7 @@ A dialog component with optional modal capabilities.
|
||||
<Rose::Dialog
|
||||
@modal={{true}}
|
||||
@dismiss={{@dismissFn}}
|
||||
@icon="flight-icons/check-circle-16"
|
||||
@icon="flight-icons/svg/check-circle-16"
|
||||
@heading="Heading"
|
||||
@dismissButtonText="Dismiss"
|
||||
as |dialog|>
|
||||
|
||||
@@ -11,7 +11,7 @@ A simple dropdown component with support for links and buttons.
|
||||
<Preview>
|
||||
<Story name="Basic Dropdown" height="7rem">{{
|
||||
template: hbs`
|
||||
<Rose::Dropdown @text="Choose One…" @icon="flight-icons/org-16" @showCaret={{showCaret}} as |dropdown|>
|
||||
<Rose::Dropdown @text="Choose One…" @icon="flight-icons/svg/org-16" @showCaret={{showCaret}} as |dropdown|>
|
||||
<dropdown.link @route="index">Menu item</dropdown.link>
|
||||
<dropdown.link @route="about">Menu item</dropdown.link>
|
||||
<dropdown.separator />
|
||||
@@ -31,7 +31,7 @@ A simple dropdown component with support for links and buttons.
|
||||
<Preview>
|
||||
<Story name="Icon-only Dropdown" height="5rem">{{
|
||||
template: hbs`
|
||||
<Rose::Dropdown @text="Choose One…" @icon="flight-icons/org-16" @iconOnly={{true}} as |dropdown|>
|
||||
<Rose::Dropdown @text="Choose One…" @icon="flight-icons/svg/org-16" @iconOnly={{true}} as |dropdown|>
|
||||
<dropdown.link @route="index">Menu item</dropdown.link>
|
||||
<dropdown.link @route="about">Menu item</dropdown.link>
|
||||
<dropdown.separator />
|
||||
@@ -117,7 +117,7 @@ Dropdown supports `danger` styling through `style` attribute.
|
||||
Dropdown indicator can be hidden using `showCaret` attribute.
|
||||
|
||||
```html
|
||||
<Rose::Dropdown @showCaret={{true}} @icon="flight-icons/more-horizontal-16" as |dropdown|>
|
||||
<Rose::Dropdown @showCaret={{true}} @icon="flight-icons/svg/more-horizontal-16" as |dropdown|>
|
||||
<dropdown.link @route="index">Menu item</dropdown.link>
|
||||
<dropdown.button>Button menu item</dropdown.button>
|
||||
</Rose::Dropdown>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<p class="rose-form-error-message" ...attributes>
|
||||
<Rose::Icon @name="flight-icons/x-square-16" @size="medium" />
|
||||
<Rose::Icon @name="flight-icons/svg/x-square-16" @size="medium" />
|
||||
{{yield}}
|
||||
</p>
|
||||
@@ -68,10 +68,10 @@ Renders a form radiofield group.
|
||||
firstFieldIcon: select(
|
||||
'first icon',
|
||||
{
|
||||
'flight-icons/org-16': 'flight-icons/org-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/org-16': 'flight-icons/svg/org-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/org-16'
|
||||
'flight-icons/svg/org-16'
|
||||
),
|
||||
secondFieldLabel: text('second label', 'Maybe'),
|
||||
secondFieldValue: text('second value', 'maybe'),
|
||||
|
||||
@@ -44,8 +44,8 @@ Renders a form radiofield.
|
||||
'icon',
|
||||
{
|
||||
'none': null,
|
||||
'flight-icons/org-16': 'flight-icons/org-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/org-16': 'flight-icons/svg/org-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
null
|
||||
),
|
||||
@@ -109,8 +109,8 @@ Renders a form radiofield.
|
||||
'icon',
|
||||
{
|
||||
'none': null,
|
||||
'flight-icons/org-16': 'flight-icons/org-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/org-16': 'flight-icons/svg/org-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
null
|
||||
),
|
||||
|
||||
@@ -27,7 +27,7 @@ A header component that allows three distinct sections to be configured: brand,
|
||||
<utilities.dropdown
|
||||
@text="user@example.net"
|
||||
@iconOnly={{true}}
|
||||
@icon="flight-icons/user-circle-16" as |dropdown|
|
||||
@icon="flight-icons/svg/user-circle-16" as |dropdown|
|
||||
>
|
||||
<dropdown.link @route="index">Menu item</dropdown.link>
|
||||
<dropdown.link @route="about">Menu item</dropdown.link>
|
||||
@@ -69,11 +69,11 @@ A header component that allows three distinct sections to be configured: brand,
|
||||
dropdownIcon: select(
|
||||
'dropdownIcon',
|
||||
{
|
||||
'flight-icons/user-circle-16': 'flight-icons/user-circle-16',
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/user-circle-16': 'flight-icons/svg/user-circle-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/user-circle-16'
|
||||
'flight-icons/svg/user-circle-16'
|
||||
),
|
||||
},
|
||||
}}</Story>
|
||||
|
||||
@@ -22,10 +22,10 @@ Renders a simple icon.
|
||||
name: select(
|
||||
'name',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/check-circle-16'
|
||||
'flight-icons/svg/check-circle-16'
|
||||
),
|
||||
}
|
||||
}}</Story>
|
||||
|
||||
@@ -12,7 +12,7 @@ Styles supported: primary, secondary, warning, and ghost.
|
||||
Disabling link button is not supported as it is an action on form components only.
|
||||
|
||||
```html
|
||||
<Rose::LinkButton @route="index" @style="primary" @iconRight="flight-icons/entry-point-16">
|
||||
<Rose::LinkButton @route="index" @style="primary" @iconRight="flight-icons/svg/entry-point-16">
|
||||
Content
|
||||
</Rose::LinkButton>
|
||||
```
|
||||
@@ -45,18 +45,18 @@ Disabling link button is not supported as it is an action on form components onl
|
||||
iconLeft: select(
|
||||
'iconLeft',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/clipboard-copy-16'
|
||||
'flight-icons/svg/clipboard-copy-16'
|
||||
),
|
||||
iconRight: select(
|
||||
'iconRight',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/clipboard-copy-16': 'flight-icons/clipboard-copy-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/clipboard-copy-16': 'flight-icons/svg/clipboard-copy-16',
|
||||
},
|
||||
'flight-icons/clipboard-copy-16'
|
||||
'flight-icons/svg/clipboard-copy-16'
|
||||
),
|
||||
},
|
||||
}}</Story>
|
||||
@@ -65,7 +65,7 @@ Disabling link button is not supported as it is an action on form components onl
|
||||
Similar to `Rose::Button`, icon only link button is supported.
|
||||
|
||||
```html
|
||||
<Rose::LinkButton @route="index" @style="primary" @iconOnly="flight-icons/help-16" />
|
||||
<Rose::LinkButton @route="index" @style="primary" @iconOnly="flight-icons/svg/help-16" />
|
||||
```
|
||||
|
||||
<Preview>
|
||||
@@ -88,10 +88,10 @@ Similar to `Rose::Button`, icon only link button is supported.
|
||||
iconOnly: select(
|
||||
'iconOnly',
|
||||
{
|
||||
'flight-icons/check-circle-16': 'flight-icons/check-circle-16',
|
||||
'flight-icons/help-16': 'flight-icons/help-16',
|
||||
'flight-icons/svg/check-circle-16': 'flight-icons/svg/check-circle-16',
|
||||
'flight-icons/svg/help-16': 'flight-icons/svg/help-16',
|
||||
},
|
||||
'flight-icons/help-16'
|
||||
'flight-icons/svg/help-16'
|
||||
),
|
||||
},
|
||||
}}</Story>
|
||||
|
||||
@@ -46,7 +46,7 @@ A simple key/value list with support for embedded form fields and buttons.
|
||||
<input.field />
|
||||
</item.cell>
|
||||
<item.cell>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/trash-16" title="Remove">Remove</Rose::Button>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/svg/trash-16" title="Remove">Remove</Rose::Button>
|
||||
</item.cell>
|
||||
</list.item>
|
||||
</Rose::Form::Input>
|
||||
@@ -94,7 +94,7 @@ A simple key/value list with support for embedded form fields and buttons.
|
||||
<input.field />
|
||||
</item.cell>
|
||||
<item.cell>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/trash-16" title="Remove">Remove</Rose::Button>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/svg/trash-16" title="Remove">Remove</Rose::Button>
|
||||
</item.cell>
|
||||
</list.item>
|
||||
</Rose::Form::Input>
|
||||
|
||||
@@ -18,7 +18,7 @@ Title can be configured with optional icon and subtitle.
|
||||
{{description}}
|
||||
</message.description>
|
||||
<message.link @route="index">
|
||||
<Rose::Icon @name="flight-icons/chevron-left-16" />
|
||||
<Rose::Icon @name="flight-icons/svg/chevron-left-16" />
|
||||
Go back
|
||||
</message.link>
|
||||
<message.link @route="index">
|
||||
@@ -33,23 +33,23 @@ Title can be configured with optional icon and subtitle.
|
||||
icon: select(
|
||||
'icon',
|
||||
{
|
||||
'flight-icons/alert-circle-16': 'flight-icons/alert-circle-16',
|
||||
'flight-icons/help-16': 'flight-icons/help-16',
|
||||
'flight-icons/svg/alert-circle-16': 'flight-icons/svg/alert-circle-16',
|
||||
'flight-icons/svg/help-16': 'flight-icons/svg/help-16',
|
||||
},
|
||||
'flight-icons/help-16'
|
||||
'flight-icons/svg/help-16'
|
||||
),
|
||||
},
|
||||
}}</Story>
|
||||
</Preview>
|
||||
|
||||
```html
|
||||
<Rose::Message @title="Page not found" @subtitle="Error 404" @icon="flight-icons/alert-circle-16" as |message|>
|
||||
<Rose::Message @title="Page not found" @subtitle="Error 404" @icon="flight-icons/svg/alert-circle-16" as |message|>
|
||||
<message.description>
|
||||
You must be granted permissions to view this data. Ask your administrator
|
||||
if you think you should have access.
|
||||
</message.description>
|
||||
<message.link @route="index">
|
||||
<Rose::Icon @name="flight-icons/chevron-left-16" />
|
||||
<Rose::Icon @name="flight-icons/svg/chevron-left-16" />
|
||||
Go back
|
||||
</message.link>
|
||||
<message.link @route="index">Need help?</message.link>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
{{on "click" @dismiss}}
|
||||
>
|
||||
<Rose::Icon
|
||||
@name="flight-icons/x-16"
|
||||
@name="flight-icons/svg/x-16"
|
||||
@size="medium" />
|
||||
<span class="rose-notification-dismiss-text">
|
||||
{{@dismissText}}
|
||||
|
||||
@@ -8,17 +8,17 @@ export default class RoseNotificationComponent extends Component {
|
||||
*/
|
||||
@computed('style')
|
||||
get icon() {
|
||||
let icon = 'flight-icons/info-16';
|
||||
let icon = 'flight-icons/svg/info-16';
|
||||
|
||||
switch (this.style) {
|
||||
case 'error':
|
||||
icon = 'flight-icons/x-square-16';
|
||||
icon = 'flight-icons/svg/x-square-16';
|
||||
break;
|
||||
case 'success':
|
||||
icon = 'flight-icons/check-circle-16';
|
||||
icon = 'flight-icons/svg/check-circle-16';
|
||||
break;
|
||||
case 'warning':
|
||||
icon = 'flight-icons/alert-triangle-16';
|
||||
icon = 'flight-icons/svg/alert-triangle-16';
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ Cell shrink should be applied to all the cells in a row. Otherwise the bigger ce
|
||||
</Rose::Form::Input>
|
||||
</row.cell>
|
||||
<row.cell @shrink={{true}} @alignRight={{true}}>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/trash-16" title="Remove">Remove</Rose::Button>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/svg/trash-16" title="Remove">Remove</Rose::Button>
|
||||
</row.cell>
|
||||
</body.row>
|
||||
<body.row as |row|>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<utilities.dropdown
|
||||
@text="user@example.net"
|
||||
@iconOnly={{true}}
|
||||
@icon="flight-icons/user-circle-16" as |dropdown|
|
||||
@icon="flight-icons/svg/user-circle-16" as |dropdown|
|
||||
>
|
||||
<dropdown.link @route="index">Menu item</dropdown.link>
|
||||
<dropdown.link @route="about">Menu item</dropdown.link>
|
||||
@@ -82,7 +82,7 @@
|
||||
<input.field />
|
||||
</item.cell>
|
||||
<item.cell>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/trash-16" title="Remove">Remove</Rose::Button>
|
||||
<Rose::Button @style="secondary" @iconOnly="flight-icons/svg/trash-16" title="Remove">Remove</Rose::Button>
|
||||
</item.cell>
|
||||
</list.item>
|
||||
</Rose::Form::Input>
|
||||
|
||||
@@ -17,7 +17,7 @@ module('Integration | Component | rose/badge', function (hooks) {
|
||||
});
|
||||
|
||||
test('it renders an icon using @icon', async function (assert) {
|
||||
await render(hbs`<Rose::Badge @icon="flight-icons/entry-point-16" />`);
|
||||
await render(hbs`<Rose::Badge @icon="flight-icons/svg/entry-point-16" />`);
|
||||
assert.ok(find('.rose-icon'));
|
||||
});
|
||||
|
||||
|
||||
@@ -35,18 +35,18 @@ module('Integration | Component | rose/button', function (hooks) {
|
||||
|
||||
test('it supports left and right icons', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::Button @iconLeft="flight-icons/chevron-left-16" />`
|
||||
hbs`<Rose::Button @iconLeft="flight-icons/svg/chevron-left-16" />`
|
||||
);
|
||||
assert.ok(find('.has-icon-left .rose-icon'));
|
||||
await render(
|
||||
hbs`<Rose::Button @iconRight="flight-icons/chevron-left-16" />`
|
||||
hbs`<Rose::Button @iconRight="flight-icons/svg/chevron-left-16" />`
|
||||
);
|
||||
assert.ok(find('.has-icon-right .rose-icon'));
|
||||
});
|
||||
|
||||
test('it supports an icon-only type', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::Button @iconOnly="flight-icons/chevron-left-16" />`
|
||||
hbs`<Rose::Button @iconOnly="flight-icons/svg/chevron-left-16" />`
|
||||
);
|
||||
assert.ok(find('.has-icon-only .rose-icon'));
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ module('Integration | Component | rose/card/link', function (hooks) {
|
||||
|
||||
test('it renders with @icon', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::Card::Link @title="foo" @icon="flight-icons/alert-circle-16" />`
|
||||
hbs`<Rose::Card::Link @title="foo" @icon="flight-icons/svg/alert-circle-16" />`
|
||||
);
|
||||
assert.ok(find('.rose-icon'));
|
||||
});
|
||||
|
||||
@@ -24,7 +24,9 @@ module('Integration | Component | rose/dropdown', function (hooks) {
|
||||
});
|
||||
|
||||
test('it supports an icon', async function (assert) {
|
||||
await render(hbs`<Rose::Dropdown @icon="flight-icons/user-circle-16" />`);
|
||||
await render(
|
||||
hbs`<Rose::Dropdown @icon="flight-icons/svg/user-circle-16" />`
|
||||
);
|
||||
assert.ok(find('svg'));
|
||||
});
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ module('Integration | Component | rose/dropdown/button', function (hooks) {
|
||||
|
||||
test('it supports an icon-only type', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::Dropdown::Button @iconOnly="flight-icons/chevron-left-16" />`
|
||||
hbs`<Rose::Dropdown::Button @iconOnly="flight-icons/svg/chevron-left-16" />`
|
||||
);
|
||||
assert.ok(find('.has-icon-only .rose-icon'));
|
||||
});
|
||||
|
||||
@@ -19,7 +19,7 @@ module('Integration | Component | rose/form/radio/radio', function (hooks) {
|
||||
|
||||
test('it supports an icon', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::Form::Radio::Radio @icon="flight-icons/user-circle-16" />`
|
||||
hbs`<Rose::Form::Radio::Radio @icon="flight-icons/svg/user-circle-16" />`
|
||||
);
|
||||
assert.ok(find('svg'));
|
||||
});
|
||||
|
||||
@@ -7,13 +7,13 @@ module('Integration | Component | rose/icon', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`<Rose::Icon @name="flight-icons/globe-16" />`);
|
||||
await render(hbs`<Rose::Icon @name="flight-icons/svg/globe-16" />`);
|
||||
assert.ok(find('svg'));
|
||||
});
|
||||
|
||||
test('it supports optional @size', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::Icon @name="flight-icons/globe-16" @size="small" />`
|
||||
hbs`<Rose::Icon @name="flight-icons/svg/globe-16" @size="small" />`
|
||||
);
|
||||
assert.ok(find('.small'));
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ module('Integration | Component | rose/link-button', function (hooks) {
|
||||
|
||||
test('it supports left icon with @iconLeft', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::LinkButton @route="index" @iconLeft="flight-icons/chevron-left-16" />`
|
||||
hbs`<Rose::LinkButton @route="index" @iconLeft="flight-icons/svg/chevron-left-16" />`
|
||||
);
|
||||
assert.ok(find('.rose-icon'));
|
||||
assert.ok(find('.has-icon-left'));
|
||||
@@ -43,7 +43,7 @@ module('Integration | Component | rose/link-button', function (hooks) {
|
||||
|
||||
test('it supports left icon with @iconRight', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::LinkButton @route="index" @iconRight="flight-icons/entry-point-16" />`
|
||||
hbs`<Rose::LinkButton @route="index" @iconRight="flight-icons/svg/entry-point-16" />`
|
||||
);
|
||||
assert.ok(find('.rose-icon'));
|
||||
assert.ok(find('.has-icon-right'));
|
||||
@@ -51,7 +51,7 @@ module('Integration | Component | rose/link-button', function (hooks) {
|
||||
|
||||
test('it supports only icon with @iconOnly', async function (assert) {
|
||||
await render(
|
||||
hbs`<Rose::LinkButton @route="index" @iconOnly="flight-icons/help-16" />`
|
||||
hbs`<Rose::LinkButton @route="index" @iconOnly="flight-icons/svg/help-16" />`
|
||||
);
|
||||
assert.ok(find('.rose-icon'));
|
||||
assert.ok(find('.has-icon-only'));
|
||||
|
||||
Reference in new issue
Block a user