@aquera/nile-elements 0.0.1-beta.12 → 0.0.1-beta.13
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/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-button/nile-button.css.js +24 -162
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-button/nile-button.d.ts +1 -1
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-button/nile-button.js +0 -2
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-button/nile-button.js.map +1 -1
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-input/nile-input.css.js +2 -2
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/.rollup.cache/Users/ravisankar/repos/design-system/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- 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 +26 -164
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +2 -2
- package/dist/src/nile-button/nile-button.css.js +24 -162
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.d.ts +1 -1
- package/dist/src/nile-button/nile-button.js +0 -2
- package/dist/src/nile-button/nile-button.js.map +1 -1
- package/dist/src/nile-input/nile-input.css.js +2 -2
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-button/nile-button.css.ts +24 -162
- package/src/nile-button/nile-button.ts +1 -3
- package/src/nile-input/nile-input.css.ts +2 -2
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.1-beta.
|
6
|
+
"version": "0.0.1-beta.13",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -20,27 +20,31 @@ export const styles = css`
|
|
20
20
|
|
21
21
|
.button {
|
22
22
|
display: inline-flex;
|
23
|
-
align-items:
|
23
|
+
align-items: center;
|
24
24
|
justify-content: center;
|
25
|
-
width: 100%;
|
26
25
|
border-style: solid;
|
27
26
|
border-width: 1px;
|
28
27
|
font-style: normal;
|
29
28
|
font-weight: 400;
|
30
|
-
font-
|
31
|
-
|
29
|
+
font-family: var(--nile-font-family-serif);
|
30
|
+
font-size: 14px;
|
32
31
|
text-align: center;
|
33
32
|
letter-spacing: 0.2px;
|
34
33
|
text-decoration: none;
|
35
34
|
user-select: none;
|
36
35
|
white-space: nowrap;
|
37
36
|
vertical-align: middle;
|
38
|
-
padding: var(--nile-spacing-one-half-x);
|
39
37
|
transition: var(--nile-transition-duration-default) background-color,
|
40
38
|
var(--nile-transition-duration-default) color,
|
41
39
|
var(--nile-transition-duration-default) border,
|
42
40
|
var(--nile-transition-duration-default) box-shadow;
|
43
41
|
cursor: inherit;
|
42
|
+
padding: 12px;
|
43
|
+
gap: 12px;
|
44
|
+
border-radius: var(--nile-radius-base-standard);
|
45
|
+
line-height: 14px;
|
46
|
+
box-sizing: border-box;
|
47
|
+
height: 38px;
|
44
48
|
}
|
45
49
|
|
46
50
|
.button::-moz-focus-inner {
|
@@ -65,38 +69,27 @@ export const styles = css`
|
|
65
69
|
pointer-events: none;
|
66
70
|
}
|
67
71
|
|
68
|
-
.button__prefix,
|
69
|
-
.button__suffix {
|
70
|
-
flex: 0 0 auto;
|
71
|
-
display: flex;
|
72
|
-
align-items: center;
|
73
|
-
pointer-events: none;
|
74
|
-
}
|
75
|
-
.button__label {
|
76
|
-
display: inline-block;
|
77
|
-
}
|
78
|
-
|
79
72
|
.button__label::slotted(nile-icon) {
|
80
|
-
vertical-align: -2px;
|
73
|
+
/* vertical-align: -2px; */
|
81
74
|
}
|
82
75
|
|
83
76
|
.button--standard.button--secondary {
|
84
77
|
background-color: var(--nile-colors-neutral-400);
|
85
78
|
border-color: var(--nile-colors-neutral-400);
|
86
|
-
color: var(--nile-colors-neutral-
|
79
|
+
color: var(--nile-colors-neutral-900);
|
87
80
|
}
|
88
81
|
|
89
82
|
.button--standard.button--secondary:hover:not(.button--disabled) {
|
90
83
|
background-color: var(--nile-colors-neutral-500);
|
91
|
-
border
|
84
|
+
border : none;
|
92
85
|
box-shadow: 0px 4px 8px var(--nile-colors-dark-200);
|
93
|
-
color: var(--nile-colors-neutral-
|
86
|
+
color: var(--nile-colors-neutral-900);
|
94
87
|
}
|
95
88
|
|
96
89
|
.button--standard.button--secondary:active:not(.button--disabled) {
|
97
90
|
background-color: var(--nile-colors-neutral-500);
|
98
91
|
border-color: var(--nile-colors-neutral-700);
|
99
|
-
color: var(--nile-colors-neutral-
|
92
|
+
color: var(--nile-colors-neutral-900);
|
100
93
|
}
|
101
94
|
|
102
95
|
.button--standard.button--secondary.button--disabled {
|
@@ -135,17 +128,17 @@ export const styles = css`
|
|
135
128
|
}
|
136
129
|
|
137
130
|
.button--standard.button--primary.button--disabled {
|
138
|
-
background-color:
|
139
|
-
border-color:
|
140
|
-
color:
|
131
|
+
background-color: #777d82;
|
132
|
+
border-color: #777d82;
|
133
|
+
color: #fff;
|
141
134
|
cursor: not-allowed;
|
142
135
|
}
|
143
136
|
|
144
137
|
.button--standard.button--primary.button--disabled:hover,
|
145
138
|
.button--standard.button--primary.button--disabled:active {
|
146
|
-
background-color:
|
147
|
-
border-color:
|
148
|
-
color:
|
139
|
+
background-color: #777d82;
|
140
|
+
border-color: #777d82;
|
141
|
+
color: #fff;
|
149
142
|
box-shadow: none;
|
150
143
|
}
|
151
144
|
|
@@ -170,8 +163,8 @@ export const styles = css`
|
|
170
163
|
color: var(--nile-colors-neutral-700);
|
171
164
|
}
|
172
165
|
.button--standard.button--tertiary.button--disabled {
|
173
|
-
|
174
|
-
|
166
|
+
border-color: #e5e9eb;
|
167
|
+
background-color: #fff;
|
175
168
|
color: var(--nile-colors-neutral-700);
|
176
169
|
cursor: not-allowed;
|
177
170
|
box-shadow: none;
|
@@ -179,8 +172,8 @@ export const styles = css`
|
|
179
172
|
|
180
173
|
.button--standard.button--tertiary.button--disabled:hover,
|
181
174
|
.button--standard.button--tertiary.button--disabled:active {
|
182
|
-
|
183
|
-
|
175
|
+
border-color: #e5e9eb;
|
176
|
+
background-color: #fff;
|
184
177
|
color: var(--nile-colors-neutral-700);
|
185
178
|
box-shadow: none;
|
186
179
|
}
|
@@ -203,51 +196,6 @@ export const styles = css`
|
|
203
196
|
color: var(--nile-colors-white-base);
|
204
197
|
}
|
205
198
|
|
206
|
-
.button--standard.button--tertiary.button--disabled {
|
207
|
-
background-color: var(--nile-colors-neutral-100);
|
208
|
-
border-color: var(--nile-colors-neutral-100);
|
209
|
-
color: var(--nile-colors-neutral-400);
|
210
|
-
cursor: not-allowed;
|
211
|
-
box-shadow: none;
|
212
|
-
}
|
213
|
-
|
214
|
-
.button--standard.button--tertiary.button--disabled:hover,
|
215
|
-
.button--standard.button--tertiary.button--disabled:active {
|
216
|
-
background-color: var(--nile-colors-neutral-100);
|
217
|
-
border-color: var(--nile-colors-neutral-100);
|
218
|
-
color: var(--nile-colors-neutral-400);
|
219
|
-
box-shadow: none;
|
220
|
-
}
|
221
|
-
|
222
|
-
/*
|
223
|
-
* Size modifiers
|
224
|
-
*/
|
225
|
-
|
226
|
-
.button--small {
|
227
|
-
height: auto;
|
228
|
-
min-height: 24px;
|
229
|
-
font-size: 0.875rem;
|
230
|
-
line-height: calc(24px - var(--nile-spacing-one-half-x) * 2);
|
231
|
-
border-radius: var(--nile-radius-base-standard);
|
232
|
-
}
|
233
|
-
|
234
|
-
.button--medium {
|
235
|
-
height: auto;
|
236
|
-
min-height: 38px;
|
237
|
-
font-size: 0.875rem;
|
238
|
-
line-height: calc(38px - var(--nile-spacing-one-half-x) * 2);
|
239
|
-
font-size: var(--nile-font-size-base);
|
240
|
-
border-radius: var(--nile-radius-base-standard);
|
241
|
-
}
|
242
|
-
|
243
|
-
.button--large {
|
244
|
-
height: auto;
|
245
|
-
min-height: 40px;
|
246
|
-
font-size: 1rem;
|
247
|
-
line-height: calc(40px - var(--nile-spacing-one-half-x) * 2);
|
248
|
-
border-radius: 6px;
|
249
|
-
}
|
250
|
-
|
251
199
|
/*
|
252
200
|
* Pill modifier
|
253
201
|
*/
|
@@ -260,10 +208,6 @@ export const styles = css`
|
|
260
208
|
border-radius: 32px;
|
261
209
|
}
|
262
210
|
|
263
|
-
.button--pill.button--large {
|
264
|
-
border-radius: 40px;
|
265
|
-
}
|
266
|
-
|
267
211
|
/*
|
268
212
|
* Circle modifier
|
269
213
|
*/
|
@@ -285,12 +229,6 @@ export const styles = css`
|
|
285
229
|
border-radius: 50%;
|
286
230
|
}
|
287
231
|
|
288
|
-
.button--circle.button--large {
|
289
|
-
width: 40px;
|
290
|
-
height: 40px;
|
291
|
-
border-radius: 50%;
|
292
|
-
}
|
293
|
-
|
294
232
|
.button--circle .button__prefix,
|
295
233
|
.button--circle .button__suffix,
|
296
234
|
.button--circle .button__caret {
|
@@ -343,80 +281,4 @@ export const styles = css`
|
|
343
281
|
translate: 50% -50%;
|
344
282
|
pointer-events: none;
|
345
283
|
}
|
346
|
-
|
347
|
-
.button--rtl ::slotted(nile-badge) {
|
348
|
-
right: auto;
|
349
|
-
left: 0;
|
350
|
-
translate: -50% -50%;
|
351
|
-
}
|
352
|
-
|
353
|
-
/*
|
354
|
-
* Button spacing
|
355
|
-
*/
|
356
|
-
|
357
|
-
.button--has-label.button--small .button__label {
|
358
|
-
padding: 0 var(--nile-spacing-one-half-x);
|
359
|
-
}
|
360
|
-
|
361
|
-
.button--has-label.button--medium .button__label {
|
362
|
-
padding: 0 var(--nile-spacing-2-x);
|
363
|
-
}
|
364
|
-
|
365
|
-
.button--has-label.button--large .button__label {
|
366
|
-
padding: 0 var(--nile-spacing-3-x);
|
367
|
-
}
|
368
|
-
|
369
|
-
.button--has-prefix.button--small {
|
370
|
-
padding-inline-start: var(--nile-spacing-one-half-x);
|
371
|
-
}
|
372
|
-
|
373
|
-
.button--has-prefix.button--small .button__label {
|
374
|
-
padding-inline-start: var(--nile-spacing-one-half-x);
|
375
|
-
}
|
376
|
-
|
377
|
-
.button--has-prefix.button--medium {
|
378
|
-
padding-inline-start: var(--nile-spacing-2-x);
|
379
|
-
}
|
380
|
-
|
381
|
-
.button--has-prefix.button--medium .button__label {
|
382
|
-
padding-inline-start: var(--nile-spacing-2-x);
|
383
|
-
}
|
384
|
-
|
385
|
-
.button--has-prefix.button--large {
|
386
|
-
padding-inline-start: var(--nile-spacing-2-x);
|
387
|
-
}
|
388
|
-
|
389
|
-
.button--has-prefix.button--large .button__label {
|
390
|
-
padding-inline-start: var(--nile-spacing-2-x);
|
391
|
-
}
|
392
|
-
|
393
|
-
.button--has-suffix.button--small,
|
394
|
-
.button--caret.button--small {
|
395
|
-
padding-inline-end: var(--nile-spacing-one-half-x);
|
396
|
-
}
|
397
|
-
|
398
|
-
.button--has-suffix.button--small .button__label,
|
399
|
-
.button--caret.button--small .button__label {
|
400
|
-
padding-inline-end: var(--nile-spacing-one-half-x);
|
401
|
-
}
|
402
|
-
|
403
|
-
.button--has-suffix.button--medium,
|
404
|
-
.button--caret.button--medium {
|
405
|
-
padding-inline-end: var(--nile-spacing-2-x);
|
406
|
-
}
|
407
|
-
|
408
|
-
.button--has-suffix.button--medium .button__label,
|
409
|
-
.button--caret.button--medium .button__label {
|
410
|
-
padding-inline-end: var(--nile-spacing-2-x);
|
411
|
-
}
|
412
|
-
|
413
|
-
.button--has-suffix.button--large,
|
414
|
-
.button--caret.button--large {
|
415
|
-
padding-inline-end: var(--nile-spacing-2-x);
|
416
|
-
}
|
417
|
-
|
418
|
-
.button--has-suffix.button--large .button__label,
|
419
|
-
.button--caret.button--large .button__label {
|
420
|
-
padding-inline-end: var(--nile-spacing-2-x);
|
421
|
-
}
|
422
284
|
`;
|
@@ -65,7 +65,7 @@ export class NileButton extends NileElement implements NileFormControl {
|
|
65
65
|
@property({ reflect: true }) variant: 'primary' | 'secondary' | 'tertiary' | 'caution' = 'primary';
|
66
66
|
|
67
67
|
/** The button's size. */
|
68
|
-
@property({ reflect: true }) size:
|
68
|
+
@property({ reflect: true }) size: 'medium' = 'medium';
|
69
69
|
|
70
70
|
/** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */
|
71
71
|
@property({ type: Boolean, reflect: true }) caret = false;
|
@@ -290,9 +290,7 @@ export class NileButton extends NileElement implements NileFormControl {
|
|
290
290
|
'button--secondary': this.variant === 'secondary',
|
291
291
|
'button--tertiary': this.variant === 'tertiary',
|
292
292
|
'button--caution': this.variant === 'caution',
|
293
|
-
'button--small': this.size === 'small',
|
294
293
|
'button--medium': this.size === 'medium',
|
295
|
-
'button--large': this.size === 'large',
|
296
294
|
'button--caret': this.caret,
|
297
295
|
'button--circle': this.circle,
|
298
296
|
'button--disabled': this.disabled,
|
@@ -27,11 +27,11 @@ export const styles = css`
|
|
27
27
|
.form-control--has-label .form-control__label {
|
28
28
|
display: inline-block;
|
29
29
|
color: inherit;
|
30
|
-
margin-bottom:
|
30
|
+
margin-bottom: 12px;
|
31
31
|
}
|
32
32
|
|
33
33
|
.form-control--has-label.form-control--small .form-control__label {
|
34
|
-
font-size:
|
34
|
+
font-size: 14px;
|
35
35
|
}
|
36
36
|
|
37
37
|
.form-control--has-label.form-control--medium .form-control__label {
|