@aquera/nile-elements 0.0.30 → 0.0.31

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.
Files changed (162) hide show
  1. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +1 -0
  2. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +1 -0
  3. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
  4. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js +2 -2
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js.map +1 -1
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.css.js +12 -0
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -1
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js +1 -3
  9. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  10. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-dialog/nile-dialog.js +0 -6
  11. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-dialog/nile-dialog.js.map +1 -1
  12. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.css.js +5 -0
  13. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
  14. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.js +5 -2
  15. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.js.map +1 -1
  16. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.d.ts +4 -0
  17. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js +16 -2
  18. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  19. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.css.js +4 -0
  20. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.css.js.map +1 -1
  21. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js +4 -4
  22. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js.map +1 -1
  23. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.d.ts +1 -0
  24. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js +9 -0
  25. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
  26. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tab/nile-tab.css.js +1 -0
  27. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tab/nile-tab.css.js.map +1 -1
  28. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tab/nile-tab.js +1 -0
  29. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tab/nile-tab.js.map +1 -1
  30. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.css.js +4 -1
  31. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
  32. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js +5 -0
  33. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js.map +1 -1
  34. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/index.d.ts +1 -0
  35. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/index.js +2 -0
  36. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/index.js.map +1 -0
  37. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.css.d.ts +12 -0
  38. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.css.js +174 -0
  39. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.css.js.map +1 -0
  40. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.d.ts +88 -0
  41. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.js +350 -0
  42. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.js.map +1 -0
  43. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  44. package/dist/index.cjs.js +1 -1
  45. package/dist/index.esm.js +1 -1
  46. package/dist/index.iife.js +390 -125
  47. package/dist/nile-button/nile-button.css.cjs.js +1 -1
  48. package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
  49. package/dist/nile-button/nile-button.css.esm.js +2 -2
  50. package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js +1 -1
  51. package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js.map +1 -1
  52. package/dist/nile-button-toggle/nile-button-toggle.css.esm.js +12 -0
  53. package/dist/nile-calendar/index.cjs.js +1 -1
  54. package/dist/nile-calendar/index.esm.js +1 -1
  55. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  56. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  57. package/dist/nile-calendar/nile-calendar.esm.js +4 -6
  58. package/dist/nile-calendar/timezones.cjs.js +1 -1
  59. package/dist/nile-calendar/timezones.cjs.js.map +1 -1
  60. package/dist/nile-calendar/timezones.esm.js +1 -1
  61. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  62. package/dist/nile-error-message/nile-error-message.cjs.js +1 -1
  63. package/dist/nile-error-message/nile-error-message.cjs.js.map +1 -1
  64. package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
  65. package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
  66. package/dist/nile-error-message/nile-error-message.css.esm.js +5 -0
  67. package/dist/nile-error-message/nile-error-message.esm.js +6 -4
  68. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  69. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  70. package/dist/nile-icon-button/nile-icon-button.esm.js +5 -2
  71. package/dist/nile-input/nile-input.cjs.js +1 -1
  72. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  73. package/dist/nile-input/nile-input.css.cjs.js +1 -1
  74. package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
  75. package/dist/nile-input/nile-input.css.esm.js +4 -0
  76. package/dist/nile-input/nile-input.esm.js +2 -2
  77. package/dist/nile-select/nile-select.cjs.js +1 -1
  78. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  79. package/dist/nile-select/nile-select.esm.js +2 -2
  80. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  81. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  82. package/dist/nile-tab/nile-tab.css.cjs.js +1 -1
  83. package/dist/nile-tab/nile-tab.css.cjs.js.map +1 -1
  84. package/dist/nile-tab/nile-tab.css.esm.js +1 -0
  85. package/dist/nile-tab/nile-tab.esm.js +1 -0
  86. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  87. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  88. package/dist/nile-textarea/nile-textarea.css.cjs.js +1 -1
  89. package/dist/nile-textarea/nile-textarea.css.cjs.js.map +1 -1
  90. package/dist/nile-textarea/nile-textarea.css.esm.js +4 -1
  91. package/dist/nile-textarea/nile-textarea.esm.js +3 -1
  92. package/dist/nile-toast/index.cjs.js +2 -0
  93. package/dist/nile-toast/index.cjs.js.map +1 -0
  94. package/dist/nile-toast/index.esm.js +1 -0
  95. package/dist/nile-toast/nile-toast.cjs.js +2 -0
  96. package/dist/nile-toast/nile-toast.cjs.js.map +1 -0
  97. package/dist/nile-toast/nile-toast.css.cjs.js +2 -0
  98. package/dist/nile-toast/nile-toast.css.cjs.js.map +1 -0
  99. package/dist/nile-toast/nile-toast.css.esm.js +162 -0
  100. package/dist/nile-toast/nile-toast.esm.js +74 -0
  101. package/dist/src/index.d.ts +1 -0
  102. package/dist/src/index.js +1 -0
  103. package/dist/src/index.js.map +1 -1
  104. package/dist/src/nile-button/nile-button.css.js +2 -2
  105. package/dist/src/nile-button/nile-button.css.js.map +1 -1
  106. package/dist/src/nile-button-toggle/nile-button-toggle.css.js +12 -0
  107. package/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -1
  108. package/dist/src/nile-calendar/nile-calendar.js +1 -3
  109. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  110. package/dist/src/nile-dialog/nile-dialog.js +0 -6
  111. package/dist/src/nile-dialog/nile-dialog.js.map +1 -1
  112. package/dist/src/nile-error-message/nile-error-message.css.js +5 -0
  113. package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
  114. package/dist/src/nile-error-message/nile-error-message.js +5 -2
  115. package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
  116. package/dist/src/nile-icon-button/nile-icon-button.d.ts +4 -0
  117. package/dist/src/nile-icon-button/nile-icon-button.js +16 -2
  118. package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  119. package/dist/src/nile-input/nile-input.css.js +4 -0
  120. package/dist/src/nile-input/nile-input.css.js.map +1 -1
  121. package/dist/src/nile-input/nile-input.js +4 -4
  122. package/dist/src/nile-input/nile-input.js.map +1 -1
  123. package/dist/src/nile-select/nile-select.d.ts +1 -0
  124. package/dist/src/nile-select/nile-select.js +9 -0
  125. package/dist/src/nile-select/nile-select.js.map +1 -1
  126. package/dist/src/nile-tab/nile-tab.css.js +1 -0
  127. package/dist/src/nile-tab/nile-tab.css.js.map +1 -1
  128. package/dist/src/nile-tab/nile-tab.js +1 -0
  129. package/dist/src/nile-tab/nile-tab.js.map +1 -1
  130. package/dist/src/nile-textarea/nile-textarea.css.js +4 -1
  131. package/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
  132. package/dist/src/nile-textarea/nile-textarea.js +5 -0
  133. package/dist/src/nile-textarea/nile-textarea.js.map +1 -1
  134. package/dist/src/nile-toast/index.d.ts +1 -0
  135. package/dist/src/nile-toast/index.js +2 -0
  136. package/dist/src/nile-toast/index.js.map +1 -0
  137. package/dist/src/nile-toast/nile-toast.css.d.ts +12 -0
  138. package/dist/src/nile-toast/nile-toast.css.js +174 -0
  139. package/dist/src/nile-toast/nile-toast.css.js.map +1 -0
  140. package/dist/src/nile-toast/nile-toast.d.ts +88 -0
  141. package/dist/src/nile-toast/nile-toast.js +350 -0
  142. package/dist/src/nile-toast/nile-toast.js.map +1 -0
  143. package/dist/tsconfig.tsbuildinfo +1 -1
  144. package/package.json +1 -1
  145. package/src/index.ts +1 -0
  146. package/src/nile-button/nile-button.css.ts +2 -2
  147. package/src/nile-button-toggle/nile-button-toggle.css.ts +12 -0
  148. package/src/nile-calendar/nile-calendar.ts +1 -5
  149. package/src/nile-dialog/nile-dialog.ts +0 -6
  150. package/src/nile-error-message/nile-error-message.css.ts +5 -0
  151. package/src/nile-error-message/nile-error-message.ts +6 -2
  152. package/src/nile-icon-button/nile-icon-button.ts +24 -5
  153. package/src/nile-input/nile-input.css.ts +4 -0
  154. package/src/nile-input/nile-input.ts +6 -6
  155. package/src/nile-select/nile-select.ts +9 -0
  156. package/src/nile-tab/nile-tab.css.ts +1 -0
  157. package/src/nile-tab/nile-tab.ts +1 -0
  158. package/src/nile-textarea/nile-textarea.css.ts +4 -1
  159. package/src/nile-textarea/nile-textarea.ts +6 -1
  160. package/src/nile-toast/index.ts +1 -0
  161. package/src/nile-toast/nile-toast.css.ts +176 -0
  162. package/src/nile-toast/nile-toast.ts +381 -0
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.30",
6
+ "version": "0.0.31",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
package/src/index.ts CHANGED
@@ -39,3 +39,4 @@ export { NileErrorNotification } from './nile-error-notification';
39
39
  export { NileTabGroup } from './nile-tab-group';
40
40
  export { NileTab } from './nile-tab';
41
41
  export { NileTabPanel } from './nile-tab-panel';
42
+ export { NileToast } from './nile-toast';
@@ -121,7 +121,7 @@ export const styles = css`
121
121
 
122
122
  .button--standard.button--primary:active:not(.button--disabled) {
123
123
  background-color: var(--nile-colors-button-primary-pressed);
124
- border-color: var(--nile-colors-button-primary-pressed);
124
+ border-color: var(--nile-colors-button-primary-pressed-border);
125
125
  color: var(--nile-colors-button-primary-text);
126
126
  }
127
127
 
@@ -184,7 +184,7 @@ export const styles = css`
184
184
 
185
185
  .button--standard.button--caution:active:not(.button--disabled) {
186
186
  background-color: var(--nile-colors-button-caution-pressed);
187
- border-color: var(--nile-colors-button-caution-pressed);
187
+ border-color: var(--nile-colors-button-caution-pressed-border);
188
188
  color: var(--nile-colors-button-caution-text);
189
189
  }
190
190
 
@@ -31,6 +31,14 @@ export const styles = css`
31
31
  gap: 10px;
32
32
  }
33
33
 
34
+ .nile-button-toggle:hover {
35
+ background: var(--nile-colors-neutral-100);
36
+ }
37
+
38
+ .nile-button-toggle:active {
39
+ background: #E5E9EB;
40
+ }
41
+
34
42
  .nile-button-toggle__initial {
35
43
  border-radius: 4px 0 0 4px;
36
44
  }
@@ -50,6 +58,10 @@ export const styles = css`
50
58
  background-color: #c7ced4;
51
59
  }
52
60
 
61
+ .nile-button-toggle__active:hover {
62
+ background-color: #c7ced4;
63
+ }
64
+
53
65
  .nile-button-toggle__disabled {
54
66
  cursor: not-allowed;
55
67
  }
@@ -660,11 +660,7 @@ export class NileCalendar extends NileElement {
660
660
  @nile-change=${this.handleTimeZoneChange}
661
661
  >
662
662
  <nile-option value="local">Local Time Zone</nile-option>
663
- ${timeZones.map(
664
- timeZone => html`
665
- <nile-option value="${timeZone}">${timeZone}</nile-option>
666
- `
667
- )}
663
+ <nile-option value="UTC">UTC</nile-option>
668
664
  </nile-select>
669
665
  </div>
670
666
  </div>
@@ -139,12 +139,6 @@ export class NileDialog extends NileElement {
139
139
  document.head.insertAdjacentHTML('beforeend', this.drawerStyle);
140
140
  lockBodyScrolling(this);
141
141
 
142
- // When the dialog is shown, Safari will attempt to set focus on whatever element has autofocus. This can cause
143
- // the dialogs's animation to jitter (if it starts offscreen), so we'll temporarily remove the attribute, call
144
- // `focus({ preventScroll: true })` ourselves, and add the attribute back afterwards.
145
- //
146
- // Related: https://github.com/shoelace-style/shoelace/issues/693
147
- //
148
142
  const autoFocusTarget = this.querySelector('[autofocus]');
149
143
  if (autoFocusTarget) {
150
144
  autoFocusTarget.removeAttribute('autofocus');
@@ -31,6 +31,7 @@ export const styles = css`
31
31
  .nile-error-message__response {
32
32
  color: var(--nile-colors-dark-500);
33
33
  margin-top:6px;
34
+ line-height: 16px;
34
35
  }
35
36
 
36
37
  .nile-error-message__icon {
@@ -42,9 +43,13 @@ export const styles = css`
42
43
  color: var(--nile-colors-primary-600);
43
44
  cursor: pointer;
44
45
  white-space: nowrap;
46
+ display: inline-flex;
47
+ gap: 4px;
48
+ align-items: center
45
49
  }
46
50
 
47
51
  .nile-error-message__response-expanded {
52
+ line-height: 18px;
48
53
  height: auto;
49
54
  border: 1px solid var(--nile-colors-red-500);
50
55
  border-left: 6px solid var(--nile-colors-red-500);
@@ -55,6 +55,8 @@ export class NileErrorMessage extends LitElement {
55
55
  }
56
56
 
57
57
  public render(): TemplateResult {
58
+ const iconName = this.isExpanded ? 'arrowup' : 'arrowdown';
59
+
58
60
  return html`
59
61
  <div class="nile-error-message" part="base">
60
62
  <nile-icon
@@ -76,8 +78,10 @@ export class NileErrorMessage extends LitElement {
76
78
  <span
77
79
  class="nile-error-message__more-button"
78
80
  @click=${this.toggleExpanded}
79
- >${this.isExpanded ? 'View Less' : 'View More'}</span
80
- >`:``}
81
+ >${this.isExpanded ? 'View Less' : 'View More'}
82
+ <nile-icon color="#005EA6" part="icon" size="14" name="${iconName}"></nile-icon>
83
+ </span
84
+ > `:``}
81
85
  </div>
82
86
  `
83
87
  : ``}
@@ -5,9 +5,14 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import {LitElement, property, CSSResultArray, TemplateResult} from 'lit-element';
8
+ import {
9
+ LitElement,
10
+ property,
11
+ CSSResultArray,
12
+ TemplateResult,
13
+ } from 'lit-element';
9
14
  import { customElement } from 'lit/decorators.js';
10
- import {styles} from './nile-icon-button.css';
15
+ import { styles } from './nile-icon-button.css';
11
16
 
12
17
  import '../nile-icon';
13
18
  import { classMap } from 'lit/directives/class-map.js';
@@ -73,6 +78,9 @@ export class NileIconButton extends NileElement {
73
78
  /** Disables the button. */
74
79
  @property({ type: Boolean, reflect: true }) disabled = false;
75
80
 
81
+ /**Default color to icon */
82
+ @property({ type: String, reflect: true }) color = '#7F7F7F';
83
+
76
84
  private handleBlur() {
77
85
  this.hasFocus = false;
78
86
  this.emit('nile-blur');
@@ -105,6 +113,13 @@ export class NileIconButton extends NileElement {
105
113
  this.button.blur();
106
114
  }
107
115
 
116
+ private handleMouseOver(e: any) {
117
+ this.color = 'black';
118
+ }
119
+ private handleMouseLeave() {
120
+ this.color = '#7F7F7F';
121
+ }
122
+
108
123
  render(): TemplateResult {
109
124
  const isLink = this.href ? true : false;
110
125
  const tag = isLink ? literal`a` : literal`button`;
@@ -116,14 +131,16 @@ export class NileIconButton extends NileElement {
116
131
  class=${classMap({
117
132
  'icon-button': true,
118
133
  'icon-button--disabled': !isLink && this.disabled,
119
- 'icon-button--focused': this.hasFocus
134
+ 'icon-button--focused': this.hasFocus,
120
135
  })}
121
136
  ?disabled=${ifDefined(isLink ? undefined : this.disabled)}
122
137
  type=${ifDefined(isLink ? undefined : 'button')}
123
138
  href=${ifDefined(isLink ? this.href : undefined)}
124
139
  target=${ifDefined(isLink ? this.target : undefined)}
125
140
  download=${ifDefined(isLink ? this.download : undefined)}
126
- rel=${ifDefined(isLink && this.target ? 'noreferrer noopener' : undefined)}
141
+ rel=${ifDefined(
142
+ isLink && this.target ? 'noreferrer noopener' : undefined
143
+ )}
127
144
  role=${ifDefined(isLink ? undefined : 'button')}
128
145
  aria-disabled=${this.disabled ? 'true' : 'false'}
129
146
  aria-label="${this.label}"
@@ -131,12 +148,15 @@ export class NileIconButton extends NileElement {
131
148
  @blur=${this.handleBlur}
132
149
  @focus=${this.handleFocus}
133
150
  @click=${this.handleClick}
151
+ @mouseover=${this.handleMouseOver}
152
+ @mouseleave=${this.handleMouseLeave}
134
153
  >
135
154
  <nile-icon
136
155
  class="icon-button__icon"
137
156
  name=${ifDefined(this.name)}
138
157
  library=${ifDefined(this.library)}
139
158
  src=${ifDefined(this.src)}
159
+ color=${ifDefined(this.color)}
140
160
  aria-hidden="true"
141
161
  size="14"
142
162
  ></nile-icon>
@@ -145,7 +165,6 @@ export class NileIconButton extends NileElement {
145
165
  }
146
166
  }
147
167
 
148
-
149
168
  export default NileIconButton;
150
169
 
151
170
  declare global {
@@ -444,6 +444,10 @@ export const styles = css`
444
444
  border: none;
445
445
  box-shadow: 0 0 0 0;
446
446
  }
447
+
448
+ .input__password {
449
+ font-family: 'disc';
450
+ }
447
451
  `;
448
452
 
449
453
  export default [styles];
@@ -505,12 +505,12 @@ export class NileInput extends NileElement implements NileFormControl {
505
505
  <input
506
506
  part="input"
507
507
  id="input"
508
- class="input__control"
509
- type=${
510
- this.type === 'password' && this.passwordVisible
511
- ? 'text'
512
- : this.type
513
- }
508
+ class="input__control ${
509
+ this.type === 'password' && !this.passwordVisible
510
+ ? 'input__password'
511
+ : ''
512
+ }"
513
+ type=${this.type === 'password' ? 'text' : this.type}
514
514
  title=${
515
515
  this
516
516
  .title /* An empty title prevents browser validation tooltips from appearing on hover */
@@ -148,6 +148,8 @@ export class NileSelect extends NileElement implements NileFormControl {
148
148
 
149
149
  @property({ type: Boolean, reflect: true }) searchEnabled = false;
150
150
 
151
+ @property({ type: Boolean, reflect: true }) blockValueChange = false;
152
+
151
153
  @property({ type: Boolean, reflect: true }) optionsLoading = false;
152
154
 
153
155
  /** Allows more than one option to be selected. */
@@ -525,6 +527,13 @@ export class NileSelect extends NileElement implements NileFormControl {
525
527
  private handleOptionClick(event: MouseEvent) {
526
528
  const target = event.target as HTMLElement;
527
529
  const option = target.closest('nile-option');
530
+
531
+ if(this.blockValueChange){
532
+ this.emit('nile-block-change', { value: option?.value, name: this.name });
533
+ this.hide();
534
+ return;
535
+ }
536
+
528
537
  const oldValue = this.value;
529
538
  this.oldValue = oldValue;
530
539
 
@@ -35,6 +35,7 @@ export const styles = css`
35
35
  font-weight: 500;
36
36
  line-height: 16px;
37
37
  letter-spacing: 0.2px;
38
+ gap: 4px;
38
39
  }
39
40
 
40
41
  .tab:hover:not(.tab--disabled) {
@@ -100,6 +100,7 @@ export class NileTab extends NileElement {
100
100
  })}
101
101
  tabindex=${this.disabled ? '-1' : '0'}
102
102
  >
103
+ <slot name="prefix"></slot>
103
104
  <slot></slot>
104
105
  ${this.closable
105
106
  ? html`
@@ -80,6 +80,7 @@ export const styles = css`
80
80
  border-radius: var(--nile-radius-base-standard);
81
81
  transition: 0.3s color, 0.3s border, 0.3s box-shadow, 0.3s background-color;
82
82
  cursor: text;
83
+ min-height:12px;
83
84
  }
84
85
 
85
86
  /* Standard textareas */
@@ -181,16 +182,18 @@ export const styles = css`
181
182
  /* Resize types */
182
183
  .textarea--resize-none .textarea__control {
183
184
  resize: none;
185
+ min-height:12px;
184
186
  }
185
187
 
186
188
  .textarea--resize-vertical .textarea__control {
187
189
  resize: vertical;
190
+ min-height:12px;
188
191
  }
189
192
 
190
193
  .textarea--resize-auto .textarea__control {
191
- height: auto;
192
194
  resize: none;
193
195
  overflow-y: hidden;
196
+ min-height:12px;
194
197
  }
195
198
 
196
199
  .textarea--standard.textarea--warning {
@@ -160,12 +160,15 @@ export class NileTextarea extends NileElement {
160
160
  this.resizeObserver.observe(this.input);
161
161
  });
162
162
 
163
+
163
164
  if(this.fullHeight){
164
165
  requestAnimationFrame(() => {
165
166
  let parentHeight = this.parentElement?.getBoundingClientRect().height;
166
-
167
167
  if (parentHeight) {
168
168
  parentHeight = parentHeight - 65;
169
+ if (parentHeight<12) {
170
+ parentHeight=12;
171
+ }
169
172
  this.shadowRoot?.querySelector('textarea')?.style.setProperty('height', `${parentHeight}px`);
170
173
  }
171
174
  });
@@ -351,6 +354,8 @@ export class NileTextarea extends NileElement {
351
354
  @input=${this.handleInput}
352
355
  @focus=${this.handleFocus}
353
356
  @blur=${this.handleBlur}
357
+
358
+
354
359
  ></textarea>
355
360
  </div>
356
361
  </div>
@@ -0,0 +1 @@
1
+ export { NileToast } from './nile-toast';
@@ -0,0 +1,176 @@
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
+ */
7
+
8
+ import { css } from 'lit-element';
9
+
10
+ /**
11
+ * Toast CSS
12
+ */
13
+ export const styles = css`
14
+ :host {
15
+ display: contents;
16
+
17
+ /* For better DX, we'll reset the margin here so the base part can inherit it */
18
+ margin: 0;
19
+ }
20
+
21
+ [hidden] {
22
+ display: none;
23
+ }
24
+
25
+ .alert {
26
+ position: relative;
27
+ display: flex;
28
+ align-items: stretch;
29
+ border: solid 2px 2px;
30
+ border-radius: var(--nile-radius-base-standard);
31
+ margin: inherit;
32
+ padding: 12px;
33
+ gap: 10px;
34
+ }
35
+
36
+ .alert:not(.alert--has-icon) .alert__icon,
37
+ .alert:not(.alert--closable) .alert__close-button {
38
+ display: none;
39
+ }
40
+
41
+ .alert__prefix-icon-container {
42
+ height: 26px;
43
+ width: 26px;
44
+ border-radius: 4px;
45
+ padding: 6px;
46
+ box-sizing: border-box;
47
+ display: flex;
48
+ justify-content: center;
49
+ align-items: center;
50
+ }
51
+
52
+ .alert__icon {
53
+ flex: 0 0 auto;
54
+ display: flex;
55
+ align-items: center;
56
+ font-size: 10px;
57
+ }
58
+
59
+ .alert--success {
60
+ border: 1px solid var(--nile-colors-green-500);
61
+ background: var(--nile-colors-green-100);
62
+ box-shadow: 0px 14px 28px 0px rgba(119, 125, 130, 0.15);
63
+ }
64
+
65
+ .alert--success .alert__prefix-icon-container {
66
+ background: var(--nile-colors-green-500);
67
+ }
68
+
69
+ .alert--info {
70
+ border: 1px solid var(--nile-colors-blue-500);
71
+ background: var(--nile-colors-blue-100);
72
+ box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
73
+ }
74
+
75
+ .alert--info .alert__prefix-icon-container {
76
+ background: var(--nile-colors-blue-500);
77
+ }
78
+
79
+ .alert--warning {
80
+ border: 1px solid var(--nile-colors-yellow-500);
81
+ background: var(--nile-colors-yellow-100);
82
+ box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
83
+ }
84
+
85
+ .alert--warning .alert__prefix-icon-container {
86
+ background: var(--nile-colors-yellow-500);
87
+ }
88
+
89
+ .alert--error {
90
+ border: 1px solid var(--nile-colors-red-500);
91
+ background: var(--nile-colors-red-100);
92
+ box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
93
+ }
94
+
95
+ .alert--error .alert__prefix-icon-container {
96
+ border: 1px solid var(--nile-colors-red-500);
97
+ background: var(--nile-colors-red-500);
98
+ }
99
+
100
+ .alert__message {
101
+ flex: 1 1 auto;
102
+ display: block;
103
+ overflow: hidden;
104
+ display: flex;
105
+ align-items: center;
106
+ flex-direction: column;
107
+ align-items: flex-start;
108
+ font-family: Colfax-regular;
109
+ font-size: 14px;
110
+ font-weight: 400;
111
+ line-height: 14px;
112
+ color: black;
113
+ }
114
+
115
+ .alert__message--title {
116
+ font-weight: 600;
117
+ }
118
+
119
+ .alert__message--content {
120
+ line-height: 21px;
121
+ }
122
+
123
+ .alert__message--content-only {
124
+ margin-top: 3px;
125
+ }
126
+
127
+ .alert__close-button {
128
+ flex: 0 0 auto;
129
+ display: flex;
130
+ align-items: center;
131
+ }
132
+
133
+ .alert__tags {
134
+ display: flex;
135
+ flex-wrap: wrap;
136
+ gap: 10px;
137
+ margin-top: 4px;
138
+ }
139
+
140
+ .alert__tag {
141
+ height: 24px;
142
+ display: flex;
143
+ border-radius: 4px;
144
+ border: 1px solid #e5e9eb;
145
+ background: var(--nile-colors-white-base);
146
+ }
147
+
148
+ .alert__tag-content {
149
+ border-left: 1px solid #e5e9eb;
150
+ display: flex;
151
+ align-items: center;
152
+ justify-content: center;
153
+ padding: 0 6px;
154
+
155
+ color: var(--nile-colors-dark-900);
156
+ font-family: Colfax-regular;
157
+ font-size: 12px;
158
+ font-style: normal;
159
+ font-weight: 500;
160
+ line-height: 12px;
161
+ letter-spacing: 0.2px;
162
+ }
163
+
164
+ .alert__tag-image {
165
+ height: 24px;
166
+ width: 24px;
167
+ border-radius: 4px 0 0 4px;
168
+ }
169
+
170
+ .alert__prefix-img{
171
+ height: 24px;
172
+ border-radius: 4px;
173
+ }
174
+ `;
175
+
176
+ export default [styles];