@aquera/nile-elements 0.0.75 → 0.0.76

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.0.75",
6
+ "version": "0.0.76",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -67,13 +67,18 @@ export const styles = css`
67
67
  align-items: center;
68
68
  gap: 4px 7px;
69
69
  }
70
-
71
- @media not all and (min-resolution: .001dpcm) {
72
- @supports (-webkit-appearance:none)
70
+
71
+ .day-names {
72
+ flex-wrap: nowrap;
73
+ }
74
+
75
+
76
+ @media not all and (min-resolution: .001dpcm) {
77
+ @supports (-webkit-appearance:none)
73
78
  { .day-names, .days {
74
- column-gap: 6px;
75
- }
76
- }
79
+ column-gap: 6px;
80
+ }
81
+ }
77
82
  }
78
83
 
79
84
  .days {
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Copyright Aquera Inc 2023
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
7
 
8
- import {css} from 'lit-element';
8
+ import { css } from 'lit-element';
9
9
 
10
10
  /**
11
11
  * Drawer CSS
@@ -13,6 +13,7 @@ import {css} from 'lit-element';
13
13
  export const styles = css`
14
14
  :host {
15
15
  box-sizing: border-box;
16
+ --nile-drawer-remove-icon-color:#000;
16
17
  }
17
18
 
18
19
  :host *,
@@ -172,6 +173,10 @@ export const styles = css`
172
173
  display: none;
173
174
  }
174
175
 
176
+ .drawer__close:hover {
177
+ cursor:pointer;
178
+ }
179
+
175
180
  @media (forced-colors: active) {
176
181
  .drawer__panel {
177
182
  border: solid 1px hsl(0, 0%, 100%);
@@ -317,10 +317,15 @@ export class NileDrawer extends NileElement {
317
317
  'drawer--contained': this.contained,
318
318
  'drawer--fixed': !this.contained,
319
319
  'drawer--rtl': 'rtl',
320
- 'drawer--has-footer': this.hasSlotController.test('footer')
320
+ 'drawer--has-footer': this.hasSlotController.test('footer'),
321
321
  })}
322
322
  >
323
- <div part="overlay" class="drawer__overlay" @click=${() => this.requestClose('overlay')} tabindex="-1"></div>
323
+ <div
324
+ part="overlay"
325
+ class="drawer__overlay"
326
+ @click=${() => this.requestClose('overlay')}
327
+ tabindex="-1"
328
+ ></div>
324
329
 
325
330
  <div
326
331
  part="panel"
@@ -337,19 +342,23 @@ export class NileDrawer extends NileElement {
337
342
  <header part="header" class="drawer__header">
338
343
  <h2 part="title" class="drawer__title" id="title">
339
344
  <!-- If there's no label, use an invisible character to prevent the header from collapsing -->
340
- <slot name="label"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>
345
+ <slot name="label">
346
+ ${this.label.length > 0
347
+ ? this.label
348
+ : String.fromCharCode(65279)}
349
+ </slot>
341
350
  </h2>
342
351
  <div part="header-actions" class="drawer__header-actions">
343
352
  <slot name="header-actions"></slot>
344
- <nile-icon-button
345
- part="close-button"
346
- exportparts="base:close-button__base"
353
+ <nile-icon
347
354
  class="drawer__close"
348
355
  name="close"
349
- label='close'
350
- library="system"
356
+ label="close"
357
+ part="close-button"
358
+ exportparts="base:close-button__base"
359
+ color="var(--nile-drawer-remove-icon-color)"
351
360
  @click=${() => this.requestClose('close-button')}
352
- ></nile-icon-button>
361
+ ></nile-icon>
353
362
  </div>
354
363
  </header>
355
364
  `