@aquera/nile-elements 0.0.75 → 0.0.77
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/README.md +9 -1
- package/dist/index.iife.js +35 -18
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +11 -6
- package/dist/nile-calendar/nile-calendar.esm.js +2 -2
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.css.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.css.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.css.esm.js +7 -2
- package/dist/nile-drawer/nile-drawer.esm.js +15 -8
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.esm.js +2 -2
- package/dist/src/nile-calendar/nile-calendar.css.js +11 -6
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.js +6 -2
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-drawer/nile-drawer.css.d.ts +5 -5
- package/dist/src/nile-drawer/nile-drawer.css.js +10 -5
- package/dist/src/nile-drawer/nile-drawer.css.js.map +1 -1
- package/dist/src/nile-drawer/nile-drawer.js +18 -9
- package/dist/src/nile-drawer/nile-drawer.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.css.js +2 -2
- package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.css.ts +11 -6
- package/src/nile-calendar/nile-calendar.ts +6 -2
- package/src/nile-drawer/nile-drawer.css.ts +11 -6
- package/src/nile-drawer/nile-drawer.ts +18 -9
- package/src/nile-tab-group/nile-tab-group.css.ts +2 -2
package/package.json
CHANGED
@@ -67,13 +67,18 @@ export const styles = css`
|
|
67
67
|
align-items: center;
|
68
68
|
gap: 4px 7px;
|
69
69
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
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 {
|
@@ -873,7 +873,9 @@ export class NileCalendar extends NileElement {
|
|
873
873
|
? html`
|
874
874
|
<div class="calender-input">
|
875
875
|
<div>
|
876
|
-
<span class="manual-input-label
|
876
|
+
<span class="manual-input-label ${this.hideInput && this.hideTimeInput
|
877
|
+
? 'hidden'
|
878
|
+
: ''}">From </span>
|
877
879
|
<div class="from">
|
878
880
|
${!this.hideInput ? html`<nile-input class="manual-input" value="${this.formatDate(
|
879
881
|
this.startDate
|
@@ -891,7 +893,9 @@ export class NileCalendar extends NileElement {
|
|
891
893
|
</div>
|
892
894
|
|
893
895
|
<div>
|
894
|
-
<span class="manual-input-label
|
896
|
+
<span class="manual-input-label ${this.hideInput && this.hideTimeInput
|
897
|
+
? 'hidden'
|
898
|
+
: ''}">To </span>
|
895
899
|
<div class="from">
|
896
900
|
${!this.hideInput ? html`<nile-input class="manual-input" value="${this.formatDate(
|
897
901
|
this.endDate
|
@@ -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
|
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">
|
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
|
345
|
-
part="close-button"
|
346
|
-
exportparts="base:close-button__base"
|
353
|
+
<nile-icon
|
347
354
|
class="drawer__close"
|
348
355
|
name="close"
|
349
|
-
label=
|
350
|
-
|
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
|
361
|
+
></nile-icon>
|
353
362
|
</div>
|
354
363
|
</header>
|
355
364
|
`
|
@@ -118,8 +118,8 @@ export const styles = css`
|
|
118
118
|
}
|
119
119
|
|
120
120
|
.tab-group--top .tab-group__indicator {
|
121
|
-
bottom:
|
122
|
-
border-bottom: 2px solid var(--nile-colors-
|
121
|
+
bottom: 2px;
|
122
|
+
border-bottom: 2px solid var(--nile-colors-primary-600);
|
123
123
|
}
|
124
124
|
|
125
125
|
.tab-group--top .tab-group__body {
|