@aquera/nile-elements 0.0.50 → 0.0.51
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/demo/variables.css +1 -0
- package/demo/variables_v2.css +5 -4
- package/dist/index.iife.js +479 -225
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +340 -100
- package/dist/nile-button/nile-button.esm.js +11 -4
- 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 +15 -9
- package/dist/nile-calendar/nile-calendar.esm.js +4 -4
- package/dist/nile-card/nile-card.css.cjs.js +1 -1
- package/dist/nile-card/nile-card.css.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.esm.js +2 -1
- package/dist/src/nile-button/nile-button.css.js +338 -98
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.d.ts +2 -1
- package/dist/src/nile-button/nile-button.js +22 -4
- package/dist/src/nile-button/nile-button.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +15 -9
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.js +6 -3
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-card/nile-card.css.js +2 -1
- package/dist/src/nile-card/nile-card.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-button/nile-button.css.ts +338 -98
- package/src/nile-button/nile-button.ts +52 -11
- package/src/nile-calendar/nile-calendar.css.ts +15 -9
- package/src/nile-calendar/nile-calendar.ts +10 -5
- package/src/nile-card/nile-card.css.ts +2 -1
@@ -15,7 +15,7 @@ export const styles = css`
|
|
15
15
|
}
|
16
16
|
|
17
17
|
.calendar-container {
|
18
|
-
font-family:var(--nile-font-family-serif);
|
18
|
+
font-family: var(--nile-font-family-serif);
|
19
19
|
width: 290px;
|
20
20
|
height: auto;
|
21
21
|
text-align: center;
|
@@ -125,6 +125,12 @@ export const styles = css`
|
|
125
125
|
color: white;
|
126
126
|
}
|
127
127
|
|
128
|
+
.selected-date:hover,
|
129
|
+
.range-start:hover,
|
130
|
+
.range-end:hover {
|
131
|
+
background: #a5d3f3;
|
132
|
+
}
|
133
|
+
|
128
134
|
.range-start {
|
129
135
|
background: #a5d3f3;
|
130
136
|
border-radius: 4px 0 0 4px;
|
@@ -174,9 +180,9 @@ export const styles = css`
|
|
174
180
|
margin-top: 6px;
|
175
181
|
padding: 0 16px;
|
176
182
|
width: 290px;
|
177
|
-
display:flex;
|
178
|
-
flex-wrap:wrap;
|
179
|
-
gap:8px;
|
183
|
+
display: flex;
|
184
|
+
flex-wrap: wrap;
|
185
|
+
gap: 8px;
|
180
186
|
}
|
181
187
|
|
182
188
|
.calender-input--relative {
|
@@ -189,11 +195,11 @@ export const styles = css`
|
|
189
195
|
justify-content: space-between;
|
190
196
|
gap: 8px;
|
191
197
|
margin-top: 12px;
|
192
|
-
width:auto;
|
198
|
+
width: auto;
|
193
199
|
}
|
194
200
|
|
195
201
|
.manual-input {
|
196
|
-
width:125px;
|
202
|
+
width: 125px;
|
197
203
|
}
|
198
204
|
|
199
205
|
.manual-input-label {
|
@@ -239,7 +245,7 @@ export const styles = css`
|
|
239
245
|
display: flex;
|
240
246
|
flex-direction: column;
|
241
247
|
width: 352px;
|
242
|
-
gap:10px;
|
248
|
+
gap: 10px;
|
243
249
|
padding: 24px 24px 0 24px;
|
244
250
|
}
|
245
251
|
|
@@ -247,7 +253,7 @@ export const styles = css`
|
|
247
253
|
display: flex;
|
248
254
|
flex-direction: column;
|
249
255
|
align-items: start;
|
250
|
-
justify-content:center;
|
256
|
+
justify-content: center;
|
251
257
|
gap: 12px;
|
252
258
|
}
|
253
259
|
|
@@ -347,7 +353,7 @@ export const styles = css`
|
|
347
353
|
|
348
354
|
.not-allowed {
|
349
355
|
pointer-events: none;
|
350
|
-
color:var(--nile-colors-dark-500);
|
356
|
+
color: var(--nile-colors-dark-500);
|
351
357
|
}
|
352
358
|
`;
|
353
359
|
|
@@ -92,7 +92,7 @@ export class NileCalendar extends NileElement {
|
|
92
92
|
|
93
93
|
firstUpdated() {
|
94
94
|
const allowedDatesAttribute = this.getAttribute('allowed-dates');
|
95
|
-
|
95
|
+
|
96
96
|
if (allowedDatesAttribute !== null ) {
|
97
97
|
try {
|
98
98
|
this.allowedDates = JSON.parse(allowedDatesAttribute);
|
@@ -145,6 +145,11 @@ export class NileCalendar extends NileElement {
|
|
145
145
|
|
146
146
|
@watch('value')
|
147
147
|
valueChanged() {
|
148
|
+
|
149
|
+
if (typeof this.value === 'object' && this.value !== null) {
|
150
|
+
this.value = JSON.stringify(this.value);
|
151
|
+
}
|
152
|
+
|
148
153
|
if (this.range && this.value) {
|
149
154
|
this.rangeValue = this.value;
|
150
155
|
this.value = null;
|
@@ -879,8 +884,8 @@ export class NileCalendar extends NileElement {
|
|
879
884
|
}"> </nile-input>
|
880
885
|
</div>
|
881
886
|
</div>
|
882
|
-
|
883
|
-
<div>
|
887
|
+
|
888
|
+
<div>
|
884
889
|
<span class="manual-input-label">To </span>
|
885
890
|
<div class="from">
|
886
891
|
<nile-input class="manual-input" value="${this.formatDate(
|
@@ -895,7 +900,7 @@ export class NileCalendar extends NileElement {
|
|
895
900
|
}"> </nile-input>
|
896
901
|
</div>
|
897
902
|
</div>
|
898
|
-
|
903
|
+
|
899
904
|
</div>
|
900
905
|
<div class="button-container">
|
901
906
|
<nile-button class="apply-button" ?disabled="${
|
@@ -916,4 +921,4 @@ declare global {
|
|
916
921
|
interface HTMLElementTagNameMap {
|
917
922
|
'nile-calendar': NileCalendar;
|
918
923
|
}
|
919
|
-
}
|
924
|
+
}
|
@@ -58,8 +58,9 @@ export const styles = css`
|
|
58
58
|
border-top: solid var(--border-width) var(--border-color);
|
59
59
|
padding: var(--footer-padding);
|
60
60
|
border:1px solid var(--nile-card-footer-border-color);
|
61
|
-
|
61
|
+
border-width: var(--nile-card-footer-border-width);
|
62
62
|
border-radius:var(--nile-card-footer-border-radius);
|
63
|
+
background-color:var(--nile-card-footer-background-color);
|
63
64
|
}
|
64
65
|
|
65
66
|
.card:not(.card--has-footer) .card__footer {
|