@aquera/nile-elements 0.1.49-beta-1.1 → 0.1.49-beta-1.3

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.49-beta-1.1",
6
+ "version": "0.1.49-beta-1.3",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -120,6 +120,15 @@ export const styles = css`
120
120
  box-shadow: var(--ng-shadow-sm);
121
121
  }
122
122
 
123
+
124
+ .card--disabled {
125
+ pointer-events: none;
126
+ opacity: 0.5;
127
+ }
128
+
129
+ .card--disabled .card__footer {
130
+ pointer-events: none;
131
+ }
123
132
 
124
133
  `;
125
134
 
@@ -31,6 +31,7 @@ export class NileCard extends NileElements {
31
31
  private readonly hasSlotController = new HasSlotController(this, 'footer');
32
32
 
33
33
  @property({ type: Boolean, reflect: true })active = false;
34
+ @property({ type: Boolean, reflect: true }) disabled = false;
34
35
 
35
36
  render() {
36
37
  return html`
@@ -40,6 +41,7 @@ export class NileCard extends NileElements {
40
41
  card: true,
41
42
  'card--has-footer': this.hasSlotController.test('footer'),
42
43
  'card--active': this.active,
44
+ 'card--disabled': this.disabled,
43
45
  })}
44
46
  >
45
47
  <div class="body__wrapper" part="body__wrapper"
@@ -29,7 +29,7 @@ export const styles = css`
29
29
  align-items: center;
30
30
  font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
31
31
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-medium));
32
- line-height: var(--nile-line-height-large, var(--ng-line-height-text-md));
32
+ line-height: var(--nile-line-height-1-8, var(--ng-line-height-text-md));
33
33
  letter-spacing: normal;
34
34
  color: var(--nile-color-dark-1, var(--ng-colors-text-primary-900));
35
35
  padding: var(--nile-spacing-sm, var(--ng-spacing-md)) var(--nile-spacing-none, var(--ng-spacing-md));
@@ -91,11 +91,11 @@ export const styles = css`
91
91
  }
92
92
 
93
93
  .option__prefix::slotted(*) {
94
- margin-inline-end: var(--nile-spacing-md, var(--ng-spacing-md));
94
+ margin-inline-end: var(--nile-font-size-rem-xsmall, var(--ng-spacing-md));
95
95
  }
96
96
 
97
97
  .option__suffix::slotted(*) {
98
- margin-inline-start: var(--nile-spacing-md, var(--ng-spacing-md));
98
+ margin-inline-start: var(--nile-font-size-rem-xsmall, var(--ng-spacing-md));
99
99
  }
100
100
 
101
101
  :host(:not([aria-selected='true'])) .option .option__suffix{
@@ -644,12 +644,17 @@
644
644
  },
645
645
  {
646
646
  "name": "nile-card",
647
- "description": "Nile icon component.\n\nAttributes:\n\n * `active` {`boolean`} - \n\nProperties:\n\n * `styles` - \n\n * `hasSlotController` - \n\n * `active` {`boolean`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
647
+ "description": "Nile icon component.\n\nAttributes:\n\n * `active` {`boolean`} - \n\n * `disabled` {`boolean`} - \n\nProperties:\n\n * `styles` - \n\n * `hasSlotController` - \n\n * `active` {`boolean`} - \n\n * `disabled` {`boolean`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
648
648
  "attributes": [
649
649
  {
650
650
  "name": "active",
651
651
  "description": "`active` {`boolean`} - \n\nProperty: active\n\nDefault: false",
652
652
  "valueSet": "v"
653
+ },
654
+ {
655
+ "name": "disabled",
656
+ "description": "`disabled` {`boolean`} - \n\nProperty: disabled\n\nDefault: false",
657
+ "valueSet": "v"
653
658
  }
654
659
  ]
655
660
  },