@xdam/ember-partials 0.9.0-beta.1 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +6 -0
- package/LICENSE.md +9 -9
- package/README.md +75 -60
- package/addon/components/xep-avatar.js +2 -15
- package/addon/components/xep-bubble.js +1 -6
- package/addon/components/xep-button.js +2 -20
- package/addon/components/xep-checkbox.js +1 -11
- package/addon/components/xep-chip-icon.js +0 -4
- package/addon/components/xep-chip-set.js +3 -11
- package/addon/components/xep-chip-text.js +0 -3
- package/addon/components/xep-chip.js +0 -7
- package/addon/components/xep-dialog-actions.js +0 -3
- package/addon/components/xep-dialog-content.js +0 -3
- package/addon/components/xep-dialog-title.js +0 -3
- package/addon/components/xep-dialog.js +2 -10
- package/addon/components/xep-drawer-content.js +0 -3
- package/addon/components/xep-drawer-header.js +0 -3
- package/addon/components/xep-drawer.js +2 -12
- package/addon/components/xep-input.js +1 -37
- package/addon/components/xep-list-divider.js +0 -5
- package/addon/components/xep-list-item-graphic.js +0 -3
- package/addon/components/xep-list-item-meta.js +0 -3
- package/addon/components/xep-list-item-text.js +1 -6
- package/addon/components/xep-list-item.js +0 -8
- package/addon/components/xep-list.js +2 -15
- package/addon/components/xep-menu-surface.js +1 -6
- package/addon/components/xep-menu.js +1 -13
- package/addon/components/xep-radio.js +1 -11
- package/addon/components/xep-slider.js +3 -18
- package/addon/components/xep-snackbar.js +1 -11
- package/addon/components/xep-switch.js +1 -9
- package/addon/components/xep-textarea.js +1 -37
- package/addon/components/xep-toolbar-divider.js +0 -3
- package/addon/components/xep-toolbar-item-icon.js +0 -3
- package/addon/components/xep-toolbar-item-text.js +0 -3
- package/addon/components/xep-toolbar-item.js +0 -4
- package/addon/components/xep-toolbar-section.js +1 -8
- package/addon/components/xep-toolbar.js +2 -17
- package/addon/mixins/xep-resize.js +0 -0
- package/addon/services/xep-manager.js +1 -1
- package/addon/templates/components/xep-avatar.hbs +1 -1
- package/addon/templates/components/xep-bubble.hbs +0 -0
- package/addon/templates/components/xep-button.hbs +0 -0
- package/addon/templates/components/xep-checkbox.hbs +0 -0
- package/addon/templates/components/xep-chip-icon.hbs +0 -0
- package/addon/templates/components/xep-chip-set.hbs +0 -0
- package/addon/templates/components/xep-chip-text.hbs +0 -0
- package/addon/templates/components/xep-chip.hbs +0 -0
- package/addon/templates/components/xep-dialog-actions.hbs +0 -0
- package/addon/templates/components/xep-dialog-content.hbs +0 -0
- package/addon/templates/components/xep-dialog-title.hbs +0 -0
- package/addon/templates/components/xep-dialog.hbs +0 -0
- package/addon/templates/components/xep-drawer-content.hbs +0 -0
- package/addon/templates/components/xep-drawer-header.hbs +0 -0
- package/addon/templates/components/xep-drawer.hbs +0 -0
- package/addon/templates/components/xep-input.hbs +0 -0
- package/addon/templates/components/xep-list-divider.hbs +0 -0
- package/addon/templates/components/xep-list-item-graphic.hbs +0 -0
- package/addon/templates/components/xep-list-item-meta.hbs +0 -0
- package/addon/templates/components/xep-list-item-text.hbs +0 -0
- package/addon/templates/components/xep-list-item.hbs +0 -0
- package/addon/templates/components/xep-list.hbs +0 -0
- package/addon/templates/components/xep-menu-surface.hbs +0 -0
- package/addon/templates/components/xep-menu.hbs +0 -0
- package/addon/templates/components/xep-power-select.hbs +0 -0
- package/addon/templates/components/xep-radio.hbs +0 -0
- package/addon/templates/components/xep-slider.hbs +0 -0
- package/addon/templates/components/xep-snackbar.hbs +0 -0
- package/addon/templates/components/xep-switch.hbs +0 -0
- package/addon/templates/components/xep-textarea.hbs +0 -0
- package/addon/templates/components/xep-toolbar-divider.hbs +0 -0
- package/addon/templates/components/xep-toolbar-item-icon.hbs +0 -0
- package/addon/templates/components/xep-toolbar-item-text.hbs +0 -0
- package/addon/templates/components/xep-toolbar-item.hbs +0 -0
- package/addon/templates/components/xep-toolbar-section.hbs +0 -0
- package/addon/templates/components/xep-toolbar.hbs +0 -0
- package/addon/utils/style-string.js +0 -0
- package/addon/utils/update-dirty-props.js +0 -0
- package/app/components/xep-avatar.js +0 -0
- package/app/components/xep-bubble.js +0 -0
- package/app/components/xep-button.js +0 -0
- package/app/components/xep-checkbox.js +0 -0
- package/app/components/xep-chip-icon.js +0 -0
- package/app/components/xep-chip-set.js +0 -0
- package/app/components/xep-chip-text.js +0 -0
- package/app/components/xep-chip.js +0 -0
- package/app/components/xep-dialog-actions.js +0 -0
- package/app/components/xep-dialog-content.js +0 -0
- package/app/components/xep-dialog-title.js +0 -0
- package/app/components/xep-dialog.js +0 -0
- package/app/components/xep-drawer-content.js +0 -0
- package/app/components/xep-drawer-header.js +0 -0
- package/app/components/xep-drawer.js +0 -0
- package/app/components/xep-input.js +0 -0
- package/app/components/xep-list-divider.js +0 -0
- package/app/components/xep-list-item-graphic.js +0 -0
- package/app/components/xep-list-item-meta.js +0 -0
- package/app/components/xep-list-item-text.js +0 -0
- package/app/components/xep-list-item.js +0 -0
- package/app/components/xep-list.js +0 -0
- package/app/components/xep-menu-surface.js +0 -0
- package/app/components/xep-menu.js +0 -0
- package/app/components/xep-radio.js +0 -0
- package/app/components/xep-slider.js +0 -0
- package/app/components/xep-snackbar.js +0 -0
- package/app/components/xep-switch.js +0 -0
- package/app/components/xep-textarea.js +0 -0
- package/app/components/xep-toolbar-divider.js +0 -0
- package/app/components/xep-toolbar-item-icon.js +0 -0
- package/app/components/xep-toolbar-item-text.js +0 -0
- package/app/components/xep-toolbar-item.js +0 -0
- package/app/components/xep-toolbar-section.js +0 -0
- package/app/components/xep-toolbar.js +0 -0
- package/app/mixins/xep-resize.js +0 -0
- package/app/services/xep-manager.js +0 -0
- package/app/styles/ember-partials/components/xep-avatar.scss +24 -24
- package/app/styles/ember-partials/components/xep-bubble.scss +20 -20
- package/app/styles/ember-partials/components/xep-button.scss +58 -58
- package/app/styles/ember-partials/components/xep-drawer.scss +21 -21
- package/app/styles/ember-partials/components/xep-snackbar.scss +3 -3
- package/app/styles/ember-partials/components/xep-toolbar.scss +107 -107
- package/app/styles/ember-partials/dark-theme.scss +42 -42
- package/app/styles/ember-partials/helpers/alignment.scss +59 -59
- package/app/styles/ember-partials/helpers/color.scss +27 -27
- package/app/styles/ember-partials/helpers/display.scss +27 -27
- package/app/styles/ember-partials/helpers/overrides.scss +7 -7
- package/app/styles/ember-partials/helpers/root.scss +13 -13
- package/app/styles/ember-partials/helpers/rotate.scss +11 -11
- package/app/styles/ember-partials/helpers/spacing.scss +25 -25
- package/app/styles/ember-partials/helpers/typography.scss +5 -5
- package/app/styles/ember-partials/helpers/visibility.scss +23 -23
- package/app/styles/ember-partials/light-theme.scss +42 -42
- package/app/styles/ember-partials/mixins/breakpoints.scss +24 -24
- package/app/styles/ember-partials/mixins/strip-unit.scss +10 -10
- package/app/styles/ember-partials/variables.scss +35 -35
- package/app/styles/ember-partials/xdam-theme.scss +42 -42
- package/app/styles/ember-partials.scss +35 -35
- package/app/utils/style-string.js +0 -0
- package/backstop.json +168 -168
- package/blueprints/xep-component/files/__root__/__path__/__name__.js +0 -0
- package/blueprints/xep-component/files/__root__/__templatepath__/__templatename__.hbs +0 -0
- package/blueprints/xep-component/index.js +0 -0
- package/blueprints/xep-component-test/index.js +0 -0
- package/blueprints/xep-component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -0
- package/config/addon-docs.js +0 -0
- package/config/deploy.js +0 -0
- package/config/environment.js +0 -0
- package/config/release.js +0 -0
- package/index.js +2 -2
- package/package.json +124 -125
- package/.npmignore +0 -36
- package/.vscode/settings.json +0 -16
|
@@ -3,8 +3,6 @@ import {
|
|
|
3
3
|
classNames, layout, tagName, attribute,
|
|
4
4
|
} from '@ember-decorators/component';
|
|
5
5
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-item-icon';
|
|
6
|
-
import { argument } from '@ember-decorators/argument';
|
|
7
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
8
6
|
|
|
9
7
|
@layout(template)
|
|
10
8
|
@tagName('span')
|
|
@@ -15,7 +13,6 @@ export default class XepToolbarItemIconComponent extends Component {
|
|
|
15
13
|
* @argument [testSelector]
|
|
16
14
|
* @type {String}
|
|
17
15
|
*/
|
|
18
|
-
@argument(optional('string'))
|
|
19
16
|
@attribute('data-test-toolbar-item-icon')
|
|
20
17
|
testSelector;
|
|
21
18
|
}
|
|
@@ -3,8 +3,6 @@ import {
|
|
|
3
3
|
classNames, layout, tagName, attribute,
|
|
4
4
|
} from '@ember-decorators/component';
|
|
5
5
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-item-text';
|
|
6
|
-
import { argument } from '@ember-decorators/argument';
|
|
7
|
-
import { optional } from '@ember-decorators/argument/types';
|
|
8
6
|
|
|
9
7
|
@layout(template)
|
|
10
8
|
@tagName('span')
|
|
@@ -15,7 +13,6 @@ export default class XepToolbarItemTextComponent extends Component {
|
|
|
15
13
|
* @argument [testSelector]
|
|
16
14
|
* @type {String}
|
|
17
15
|
*/
|
|
18
|
-
@argument(optional('string'))
|
|
19
16
|
@attribute('data-test-toolbar-item-text')
|
|
20
17
|
testSelector;
|
|
21
18
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import Component from '@ember/component';
|
|
2
2
|
import { classNames, layout, attribute } from '@ember-decorators/component';
|
|
3
3
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-item';
|
|
4
|
-
import { argument } from '@ember-decorators/argument';
|
|
5
|
-
import { optional, Action } from '@ember-decorators/argument/types';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Toolbar items are used to expose actions, page titles, breadcrumbs, etc... within
|
|
@@ -23,7 +21,6 @@ export default class XepToolbarItemComponent extends Component {
|
|
|
23
21
|
* @argument [testSelector]
|
|
24
22
|
* @type {String}
|
|
25
23
|
*/
|
|
26
|
-
@argument(optional('string'))
|
|
27
24
|
@attribute('data-test-toolbar-item')
|
|
28
25
|
testSelector;
|
|
29
26
|
|
|
@@ -32,6 +29,5 @@ export default class XepToolbarItemComponent extends Component {
|
|
|
32
29
|
* @argument [click]
|
|
33
30
|
* @type {Action}
|
|
34
31
|
*/
|
|
35
|
-
@argument(optional(Action))
|
|
36
32
|
click;
|
|
37
33
|
}
|
|
@@ -3,10 +3,7 @@ import {
|
|
|
3
3
|
classNames, layout, tagName, className, attribute,
|
|
4
4
|
} from '@ember-decorators/component';
|
|
5
5
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar-section';
|
|
6
|
-
import {
|
|
7
|
-
import { optional, oneOf, Action } from '@ember-decorators/argument/types';
|
|
8
|
-
import { computed } from '@ember-decorators/object';
|
|
9
|
-
import EmberObject from '@ember/object';
|
|
6
|
+
import EmberObject, { computed } from '@ember/object';
|
|
10
7
|
|
|
11
8
|
const ALIGN_TYPES = {
|
|
12
9
|
// Makes section align to the start.
|
|
@@ -39,7 +36,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
39
36
|
* @argument [testSelector]
|
|
40
37
|
* @type {String}
|
|
41
38
|
*/
|
|
42
|
-
@argument(optional('string'))
|
|
43
39
|
@attribute('data-test-toolbar-section')
|
|
44
40
|
testSelector;
|
|
45
41
|
|
|
@@ -48,7 +44,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
48
44
|
* @argument [align]
|
|
49
45
|
* @type {String}
|
|
50
46
|
*/
|
|
51
|
-
@argument(optional(oneOf(...Object.keys(ALIGN_TYPES))))
|
|
52
47
|
align = 'start';
|
|
53
48
|
|
|
54
49
|
// Map of classNames for each alignment type
|
|
@@ -73,7 +68,6 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
73
68
|
* @argument [flex]
|
|
74
69
|
* @type {String}
|
|
75
70
|
*/
|
|
76
|
-
@argument(optional(oneOf(...Object.keys(FLEX_TYPES))))
|
|
77
71
|
flex = 'grow';
|
|
78
72
|
|
|
79
73
|
// Map of classNames for each flex type
|
|
@@ -97,6 +91,5 @@ export default class XepToolbarSectionComponent extends Component {
|
|
|
97
91
|
* @argument [click]
|
|
98
92
|
* @type {Action}
|
|
99
93
|
*/
|
|
100
|
-
@argument(optional(Action))
|
|
101
94
|
click;
|
|
102
95
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classNames, layout, className, attribute,
|
|
3
3
|
} from '@ember-decorators/component';
|
|
4
|
-
import {
|
|
5
|
-
optional, oneOf, shapeOf,
|
|
6
|
-
} from '@ember-decorators/argument/types';
|
|
7
4
|
import template from '@xdam/ember-partials/templates/components/xep-toolbar';
|
|
8
|
-
import { argument } from '@ember-decorators/argument';
|
|
9
|
-
import { computed } from '@ember-decorators/object';
|
|
10
5
|
import Component from '@ember/component';
|
|
11
|
-
import EmberObject from '@ember/object';
|
|
12
|
-
import { inject as service } from '@ember
|
|
6
|
+
import EmberObject, { computed } from '@ember/object';
|
|
7
|
+
import { inject as service } from '@ember/service';
|
|
13
8
|
|
|
14
9
|
import styleString from '@xdam/ember-partials/utils/style-string';
|
|
15
10
|
|
|
@@ -40,7 +35,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
40
35
|
* @argument [testSelector]
|
|
41
36
|
* @type {String}
|
|
42
37
|
*/
|
|
43
|
-
@argument(optional('string'))
|
|
44
38
|
@attribute('data-test-toolbar')
|
|
45
39
|
testSelector;
|
|
46
40
|
|
|
@@ -49,7 +43,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
49
43
|
* @argument [register]
|
|
50
44
|
* @type {String}
|
|
51
45
|
*/
|
|
52
|
-
@argument(optional('string'))
|
|
53
46
|
register;
|
|
54
47
|
|
|
55
48
|
/**
|
|
@@ -57,12 +50,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
57
50
|
* @argument [position]
|
|
58
51
|
* @type {Object<top: String, right: String, bottom: String, left: String>}
|
|
59
52
|
*/
|
|
60
|
-
@argument(optional(shapeOf({
|
|
61
|
-
top: optional('string'),
|
|
62
|
-
right: optional('string'),
|
|
63
|
-
bottom: optional('string'),
|
|
64
|
-
left: optional('string'),
|
|
65
|
-
})))
|
|
66
53
|
position;
|
|
67
54
|
|
|
68
55
|
/**
|
|
@@ -70,7 +57,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
70
57
|
* @argument [orientation]
|
|
71
58
|
* @type {"horizontal"|"vertical"}
|
|
72
59
|
*/
|
|
73
|
-
@argument(oneOf('horizontal', 'vertical'))
|
|
74
60
|
orientation = 'horizontal';
|
|
75
61
|
|
|
76
62
|
/**
|
|
@@ -78,7 +64,6 @@ export default class XepToolbarComponent extends Component {
|
|
|
78
64
|
* @argument [variantType]
|
|
79
65
|
* @type {String}
|
|
80
66
|
*/
|
|
81
|
-
@argument(optional(oneOf(...Object.keys(VARIANT_TYPES))))
|
|
82
67
|
variant = 'standard';
|
|
83
68
|
|
|
84
69
|
// Map of classNames for each variant type
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/app/mixins/xep-resize.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
.xep-avatar {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
position: relative;
|
|
4
|
-
border-radius: 50%;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
|
|
11
|
-
&__image,
|
|
12
|
-
&__text {
|
|
13
|
-
display: block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__image {
|
|
17
|
-
border: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__text {
|
|
21
|
-
color: $mdc-theme-on-primary;
|
|
22
|
-
text-transform: uppercase;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
.xep-avatar {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: relative;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
11
|
+
&__image,
|
|
12
|
+
&__text {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__image {
|
|
17
|
+
border: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__text {
|
|
21
|
+
color: $mdc-theme-on-primary;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
$xep-bubble-font-size: 0.65rem;
|
|
2
|
-
|
|
3
|
-
.xep-bubble {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
min-width: $xep-bubble-font-size * 2;
|
|
6
|
-
line-height: $xep-bubble-font-size * 2;
|
|
7
|
-
// padding: 3px;
|
|
8
|
-
border-radius: 50%;
|
|
9
|
-
font-size: $xep-bubble-font-size;
|
|
10
|
-
text-align: center;
|
|
11
|
-
background: $mdc-theme-primary;
|
|
12
|
-
color: $mdc-theme-on-primary;
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
|
|
15
|
-
&--floating {
|
|
16
|
-
position: absolute;
|
|
17
|
-
top: -#{$xep-bubble-font-size / 2};
|
|
18
|
-
right: -#{$xep-bubble-font-size / 2};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
$xep-bubble-font-size: 0.65rem;
|
|
2
|
+
|
|
3
|
+
.xep-bubble {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: $xep-bubble-font-size * 2;
|
|
6
|
+
line-height: $xep-bubble-font-size * 2;
|
|
7
|
+
// padding: 3px;
|
|
8
|
+
border-radius: 50%;
|
|
9
|
+
font-size: $xep-bubble-font-size;
|
|
10
|
+
text-align: center;
|
|
11
|
+
background: $mdc-theme-primary;
|
|
12
|
+
color: $mdc-theme-on-primary;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
|
|
15
|
+
&--floating {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: -#{$xep-bubble-font-size / 2};
|
|
18
|
+
right: -#{$xep-bubble-font-size / 2};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.xep-button {
|
|
2
|
-
&__trailing-icon {
|
|
3
|
-
// Note: styles reflect .mdc-button__icon
|
|
4
|
-
margin-right: 0;
|
|
5
|
-
margin-left: 8px;
|
|
6
|
-
display: inline-block;
|
|
7
|
-
width: 18px;
|
|
8
|
-
height: 18px;
|
|
9
|
-
font-size: 18px;
|
|
10
|
-
vertical-align: top;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Attempt to strip down some properties
|
|
14
|
-
&--unstyled {
|
|
15
|
-
min-width: 0;
|
|
16
|
-
|
|
17
|
-
&:not(:disabled) {
|
|
18
|
-
color: currentColor;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&::before,
|
|
22
|
-
&::after {
|
|
23
|
-
background-color: transparent;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.mdc-icon-button {
|
|
28
|
-
min-width: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Button colors...
|
|
32
|
-
@each $name, $value in $xep-colors {
|
|
33
|
-
&--#{"" + $name}-color {
|
|
34
|
-
&:not(:disabled) {
|
|
35
|
-
color: $value;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.mdc-button--raised,
|
|
39
|
-
&.mdc-button--unelevated {
|
|
40
|
-
&:not(:disabled) {
|
|
41
|
-
background-color: $value;
|
|
42
|
-
color: $mdc-theme-on-primary;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.mdc-button--outlined {
|
|
47
|
-
&:not(:disabled) {
|
|
48
|
-
border-color: $value;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::before,
|
|
53
|
-
&::after {
|
|
54
|
-
background-color: $value;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
.xep-button {
|
|
2
|
+
&__trailing-icon {
|
|
3
|
+
// Note: styles reflect .mdc-button__icon
|
|
4
|
+
margin-right: 0;
|
|
5
|
+
margin-left: 8px;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
width: 18px;
|
|
8
|
+
height: 18px;
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
vertical-align: top;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Attempt to strip down some properties
|
|
14
|
+
&--unstyled {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
|
|
17
|
+
&:not(:disabled) {
|
|
18
|
+
color: currentColor;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::before,
|
|
22
|
+
&::after {
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.mdc-icon-button {
|
|
28
|
+
min-width: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Button colors...
|
|
32
|
+
@each $name, $value in $xep-colors {
|
|
33
|
+
&--#{"" + $name}-color {
|
|
34
|
+
&:not(:disabled) {
|
|
35
|
+
color: $value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.mdc-button--raised,
|
|
39
|
+
&.mdc-button--unelevated {
|
|
40
|
+
&:not(:disabled) {
|
|
41
|
+
background-color: $value;
|
|
42
|
+
color: $mdc-theme-on-primary;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.mdc-button--outlined {
|
|
47
|
+
&:not(:disabled) {
|
|
48
|
+
border-color: $value;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before,
|
|
53
|
+
&::after {
|
|
54
|
+
background-color: $value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.xep-drawer {
|
|
2
|
-
top: 0;
|
|
3
|
-
border: none;
|
|
4
|
-
|
|
5
|
-
&--right {
|
|
6
|
-
right: 0;
|
|
7
|
-
left: initial;
|
|
8
|
-
|
|
9
|
-
&.mdc-drawer--animate {
|
|
10
|
-
transform: translateX(100%);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&.mdc-drawer--opening {
|
|
14
|
-
transform: translateX(0);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.mdc-drawer--closing {
|
|
18
|
-
transform: translateX(100%);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
.xep-drawer {
|
|
2
|
+
top: 0;
|
|
3
|
+
border: none;
|
|
4
|
+
|
|
5
|
+
&--right {
|
|
6
|
+
right: 0;
|
|
7
|
+
left: initial;
|
|
8
|
+
|
|
9
|
+
&.mdc-drawer--animate {
|
|
10
|
+
transform: translateX(100%);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.mdc-drawer--opening {
|
|
14
|
+
transform: translateX(0);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.mdc-drawer--closing {
|
|
18
|
+
transform: translateX(100%);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.xep-snackbar {
|
|
2
|
-
z-index: 2; // snackbar show be elevated above toolbars
|
|
3
|
-
}
|
|
1
|
+
.xep-snackbar {
|
|
2
|
+
z-index: 2; // snackbar show be elevated above toolbars
|
|
3
|
+
}
|