@aquera/nile-elements 0.1.29-beta-1.2 → 0.1.29

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 (233) hide show
  1. package/README.md +13 -0
  2. package/demo/filenames.txt +1 -1
  3. package/demo/index.html +97 -0
  4. package/dist/index.cjs.js +1 -1
  5. package/dist/index.esm.js +1 -1
  6. package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
  7. package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
  8. package/dist/nile-accordion/nile-accordion.esm.js +2 -2
  9. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  10. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  11. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  12. package/dist/nile-badge/index.cjs.js +1 -1
  13. package/dist/nile-badge/index.esm.js +1 -1
  14. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  15. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  16. package/dist/nile-badge/nile-badge.esm.js +1 -1
  17. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  18. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  19. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  20. package/dist/nile-button/index.cjs.js +1 -1
  21. package/dist/nile-button/index.esm.js +1 -1
  22. package/dist/nile-button/nile-button.cjs.js +1 -1
  23. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  24. package/dist/nile-button/nile-button.esm.js +1 -1
  25. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  26. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  27. package/dist/nile-button/nile-button.test.esm.js +1 -1
  28. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  29. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  30. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  31. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  32. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  33. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  34. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js +1 -1
  35. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js.map +1 -1
  36. package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js +1 -1
  37. package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js.map +1 -1
  38. package/dist/nile-circular-progressbar/nile-circular-progressbar.css.esm.js +29 -47
  39. package/dist/nile-circular-progressbar/nile-circular-progressbar.esm.js +13 -16
  40. package/dist/nile-dialog/index.cjs.js +1 -1
  41. package/dist/nile-dialog/index.esm.js +1 -1
  42. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  43. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  44. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  45. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  46. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  47. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  48. package/dist/nile-drawer/index.cjs.js +1 -1
  49. package/dist/nile-drawer/index.esm.js +1 -1
  50. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  51. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  52. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  53. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  54. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  55. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  56. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  57. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  58. package/dist/nile-icon/icons/svg/resource_analysis.cjs.js +2 -0
  59. package/dist/nile-icon/icons/svg/resource_analysis.cjs.js.map +1 -0
  60. package/dist/nile-icon/icons/svg/resource_analysis.esm.js +1 -0
  61. package/dist/nile-icon/icons/svg/resource_graph.cjs.js +2 -0
  62. package/dist/nile-icon/icons/svg/resource_graph.cjs.js.map +1 -0
  63. package/dist/nile-icon/icons/svg/resource_graph.esm.js +1 -0
  64. package/dist/nile-icon/icons/svg/sort_ascending.cjs.js +2 -0
  65. package/dist/nile-icon/icons/svg/sort_ascending.cjs.js.map +1 -0
  66. package/dist/nile-icon/icons/svg/sort_ascending.esm.js +1 -0
  67. package/dist/nile-icon/icons/svg/sort_descending.cjs.js +2 -0
  68. package/dist/nile-icon/icons/svg/sort_descending.cjs.js.map +1 -0
  69. package/dist/nile-icon/icons/svg/sort_descending.esm.js +1 -0
  70. package/dist/nile-icon/icons/svg/transaction_monitor.cjs.js +2 -0
  71. package/dist/nile-icon/icons/svg/transaction_monitor.cjs.js.map +1 -0
  72. package/dist/nile-icon/icons/svg/transaction_monitor.esm.js +1 -0
  73. package/dist/nile-icon/index.cjs.js +1 -1
  74. package/dist/nile-icon/index.cjs.js.map +1 -1
  75. package/dist/nile-icon/index.esm.js +1 -1
  76. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  77. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  78. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  79. package/dist/nile-icon-button/index.cjs.js +1 -1
  80. package/dist/nile-icon-button/index.esm.js +1 -1
  81. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  82. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  83. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  84. package/dist/nile-input/index.cjs.js +1 -1
  85. package/dist/nile-input/index.esm.js +1 -1
  86. package/dist/nile-input/nile-input.cjs.js +1 -1
  87. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  88. package/dist/nile-input/nile-input.esm.js +1 -1
  89. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  90. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  91. package/dist/nile-input/nile-input.test.esm.js +1 -1
  92. package/dist/nile-menu-item/index.cjs.js +1 -1
  93. package/dist/nile-menu-item/index.esm.js +1 -1
  94. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  95. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  96. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  97. package/dist/nile-option/index.cjs.js +1 -1
  98. package/dist/nile-option/index.esm.js +1 -1
  99. package/dist/nile-option/nile-option.cjs.js +1 -1
  100. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  101. package/dist/nile-option/nile-option.esm.js +1 -1
  102. package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
  103. package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
  104. package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js +1 -1
  105. package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
  106. package/dist/nile-progress-bar/nile-progress-bar.css.esm.js +3 -16
  107. package/dist/nile-progress-bar/nile-progress-bar.esm.js +3 -3
  108. package/dist/nile-select/index.cjs.js +1 -1
  109. package/dist/nile-select/index.esm.js +1 -1
  110. package/dist/nile-select/nile-select.cjs.js +1 -1
  111. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  112. package/dist/nile-select/nile-select.esm.js +1 -1
  113. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  114. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  115. package/dist/nile-select/nile-select.test.esm.js +1 -1
  116. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  117. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  118. package/dist/nile-stepper/nile-stepper.css.cjs.js +1 -1
  119. package/dist/nile-stepper/nile-stepper.css.cjs.js.map +1 -1
  120. package/dist/nile-stepper/nile-stepper.css.esm.js +2 -8
  121. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  122. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  123. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  124. package/dist/nile-stepper-item/nile-stepper-item.css.cjs.js +1 -1
  125. package/dist/nile-stepper-item/nile-stepper-item.css.cjs.js.map +1 -1
  126. package/dist/nile-stepper-item/nile-stepper-item.css.esm.js +16 -37
  127. package/dist/nile-stepper-item/nile-stepper-item.esm.js +17 -20
  128. package/dist/nile-tab/index.cjs.js +1 -1
  129. package/dist/nile-tab/index.esm.js +1 -1
  130. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  131. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  132. package/dist/nile-tab/nile-tab.esm.js +1 -1
  133. package/dist/nile-tab-group/index.cjs.js +1 -1
  134. package/dist/nile-tab-group/index.esm.js +1 -1
  135. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  136. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  137. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  138. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  139. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  140. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  141. package/dist/nile-tag/index.cjs.js +1 -1
  142. package/dist/nile-tag/index.esm.js +1 -1
  143. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  144. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  145. package/dist/nile-tag/nile-tag.esm.js +1 -1
  146. package/dist/nile-toast/index.cjs.js +1 -1
  147. package/dist/nile-toast/index.esm.js +1 -1
  148. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  149. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  150. package/dist/nile-toast/nile-toast.esm.js +1 -1
  151. package/dist/nile-tree/index.cjs.js +1 -1
  152. package/dist/nile-tree/index.esm.js +1 -1
  153. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  154. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  155. package/dist/nile-tree/nile-tree.esm.js +1 -1
  156. package/dist/nile-tree-item/index.cjs.js +1 -1
  157. package/dist/nile-tree-item/index.esm.js +1 -1
  158. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  159. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  160. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  161. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  162. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  163. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.cjs.js +1 -1
  164. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.cjs.js.map +1 -1
  165. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.esm.js +14 -28
  166. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +13 -11
  167. package/dist/src/nile-accordion/nile-accordion.d.ts +5 -6
  168. package/dist/src/nile-accordion/nile-accordion.js +6 -19
  169. package/dist/src/nile-accordion/nile-accordion.js.map +1 -1
  170. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.d.ts +5 -5
  171. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js +34 -52
  172. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js.map +1 -1
  173. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.d.ts +2 -6
  174. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.js +32 -47
  175. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.js.map +1 -1
  176. package/dist/src/nile-icon/icons/svg/index.d.ts +5 -0
  177. package/dist/src/nile-icon/icons/svg/index.js +5 -0
  178. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  179. package/dist/src/nile-icon/icons/svg/resource_analysis.d.ts +5 -0
  180. package/dist/src/nile-icon/icons/svg/resource_analysis.js +5 -0
  181. package/dist/src/nile-icon/icons/svg/resource_analysis.js.map +1 -0
  182. package/dist/src/nile-icon/icons/svg/resource_graph.d.ts +5 -0
  183. package/dist/src/nile-icon/icons/svg/resource_graph.js +5 -0
  184. package/dist/src/nile-icon/icons/svg/resource_graph.js.map +1 -0
  185. package/dist/src/nile-icon/icons/svg/sort_ascending.d.ts +5 -0
  186. package/dist/src/nile-icon/icons/svg/sort_ascending.js +5 -0
  187. package/dist/src/nile-icon/icons/svg/sort_ascending.js.map +1 -0
  188. package/dist/src/nile-icon/icons/svg/sort_descending.d.ts +5 -0
  189. package/dist/src/nile-icon/icons/svg/sort_descending.js +5 -0
  190. package/dist/src/nile-icon/icons/svg/sort_descending.js.map +1 -0
  191. package/dist/src/nile-icon/icons/svg/transaction_monitor.d.ts +5 -0
  192. package/dist/src/nile-icon/icons/svg/transaction_monitor.js +5 -0
  193. package/dist/src/nile-icon/icons/svg/transaction_monitor.js.map +1 -0
  194. package/dist/src/nile-progress-bar/nile-progress-bar.css.js +1 -14
  195. package/dist/src/nile-progress-bar/nile-progress-bar.css.js.map +1 -1
  196. package/dist/src/nile-progress-bar/nile-progress-bar.d.ts +0 -1
  197. package/dist/src/nile-progress-bar/nile-progress-bar.js +1 -6
  198. package/dist/src/nile-progress-bar/nile-progress-bar.js.map +1 -1
  199. package/dist/src/nile-stepper/nile-stepper.css.js +0 -6
  200. package/dist/src/nile-stepper/nile-stepper.css.js.map +1 -1
  201. package/dist/src/nile-stepper/nile-stepper.d.ts +2 -2
  202. package/dist/src/nile-stepper/nile-stepper.js +8 -8
  203. package/dist/src/nile-stepper/nile-stepper.js.map +1 -1
  204. package/dist/src/nile-stepper-item/nile-stepper-item.css.js +16 -37
  205. package/dist/src/nile-stepper-item/nile-stepper-item.css.js.map +1 -1
  206. package/dist/src/nile-stepper-item/nile-stepper-item.d.ts +1 -5
  207. package/dist/src/nile-stepper-item/nile-stepper-item.js +14 -33
  208. package/dist/src/nile-stepper-item/nile-stepper-item.js.map +1 -1
  209. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.js +14 -28
  210. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.js.map +1 -1
  211. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.d.ts +0 -1
  212. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.js +8 -10
  213. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.js.map +1 -1
  214. package/dist/tsconfig.tsbuildinfo +1 -1
  215. package/package.json +1 -1
  216. package/src/nile-accordion/nile-accordion.ts +2 -13
  217. package/src/nile-circular-progressbar/nile-circular-progressbar.css.ts +31 -48
  218. package/src/nile-circular-progressbar/nile-circular-progressbar.ts +26 -49
  219. package/src/nile-icon/icons/svg/index.ts +5 -0
  220. package/src/nile-icon/icons/svg/resource_analysis.ts +5 -0
  221. package/src/nile-icon/icons/svg/resource_graph.ts +5 -0
  222. package/src/nile-icon/icons/svg/sort_ascending.ts +5 -0
  223. package/src/nile-icon/icons/svg/sort_descending.ts +5 -0
  224. package/src/nile-icon/icons/svg/transaction_monitor.ts +5 -0
  225. package/src/nile-progress-bar/nile-progress-bar.css.ts +2 -15
  226. package/src/nile-progress-bar/nile-progress-bar.ts +1 -6
  227. package/src/nile-stepper/nile-stepper.css.ts +0 -6
  228. package/src/nile-stepper/nile-stepper.ts +11 -11
  229. package/src/nile-stepper-item/nile-stepper-item.css.ts +16 -37
  230. package/src/nile-stepper-item/nile-stepper-item.ts +17 -34
  231. package/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.ts +14 -28
  232. package/src/nile-vertical-stepper-item/nile-vertical-stepper-item.ts +8 -12
  233. package/vscode-html-custom-data.json +9 -30
@@ -28,11 +28,11 @@ let NileStepper = class NileStepper extends NileElement {
28
28
  this.icon = 'tick';
29
29
  /* #endregion */
30
30
  }
31
- update(changedProperties) {
32
- super.update(changedProperties);
33
- if (changedProperties.has('currentStep') || changedProperties.has('completedStep')) {
31
+ connectedCallback() {
32
+ super.connectedCallback();
33
+ this.updateComplete.then(() => {
34
34
  this.updateItems();
35
- }
35
+ });
36
36
  }
37
37
  handleCurrentStepChanges() {
38
38
  this.updateItems();
@@ -119,16 +119,16 @@ __decorate([
119
119
  property({ type: Boolean, attribute: 'vertical' })
120
120
  ], NileStepper.prototype, "isVertical", void 0);
121
121
  __decorate([
122
- property({ type: Boolean, attribute: true, reflect: true })
122
+ property({ type: Boolean, attribute: 'content-below', reflect: true })
123
123
  ], NileStepper.prototype, "contentBelow", void 0);
124
124
  __decorate([
125
- property({ type: Number, attribute: true, reflect: true })
125
+ property({ type: Number, attribute: 'currentStep', reflect: true })
126
126
  ], NileStepper.prototype, "currentStep", void 0);
127
127
  __decorate([
128
- property({ type: Number, attribute: true, reflect: true })
128
+ property({ type: Number, attribute: 'completedStep', reflect: true })
129
129
  ], NileStepper.prototype, "completedStep", void 0);
130
130
  __decorate([
131
- property({ type: String, attribute: true, reflect: true })
131
+ property({ type: String, attribute: 'size', reflect: true })
132
132
  ], NileStepper.prototype, "size", void 0);
133
133
  __decorate([
134
134
  property()
@@ -1 +1 @@
1
- {"version":3,"file":"nile-stepper.js","sourceRoot":"","sources":["../../../src/nile-stepper/nile-stepper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,IAAI,EAAoD,MAAM,KAAK,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD;;;;;GAKG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;IAArC;;QAE8C,eAAU,GAAY,KAAK,CAAC;QACpB,iBAAY,GAAY,KAAK,CAAC;QAC/B,gBAAW,GAAW,CAAC,CAAC;QACv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C,IAAI,EAAG,CAAC;kDAA2B;AAC1B;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAC,IAAI,EAAG,CAAC;yCAAiC;AAChF;IAAX,QAAQ,EAAE;yCAAuB;AAUlC;IADC,KAAK,CAAC,aAAa,CAAC;2DAIpB;AAGD;IADC,KAAK,CAAC,eAAe,CAAC;6DAItB;AA1BW,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAwGvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult, PropertyValueMap } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-stepper.css';\nimport NileElement from '../internal/nile-element';\nimport { watch } from '../internal/watch';\nimport { classMap } from 'lit/directives/class-map.js';\n\n\n/**\n * Nile stepper component.\n *\n * @tag nile-stepper\n *\n */\n@customElement('nile-stepper')\nexport class NileStepper extends NileElement {\n\n\t@property({ type: Boolean, attribute: 'vertical' }) isVertical: boolean = false;\n\t@property({ type: Boolean, attribute: true, reflect:true }) contentBelow: boolean = false;\n\t@property({ type: Number, attribute: true, reflect:true }) currentStep: number = 0;\n\t@property({ type: Number, attribute: true, reflect:true }) completedStep: number = 0;\n\t@property({ type: String, attribute: true, reflect:true }) size: 'sm' | 'md' | 'lg' = 'md';\n\t@property() icon: string = 'tick';\n\n\tprotected update(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void{\n super.update(changedProperties);\n\t\tif(changedProperties.has('currentStep') || changedProperties.has('completedStep')){\n\t\t\tthis.updateItems();\n\t\t}\n\t}\n\n\t@watch('currentStep')\n\thandleCurrentStepChanges() {\n\t\tthis.updateItems();\n\t\tthis.emit('nile-current-change', { value: this.currentStep });\n\t}\n\n\t@watch('completedStep')\n\thandleCompletedStepChanges() {\n\t\tthis.updateItems()\n\t\tthis.emit('nile-completed-change', { value: this.completedStep });\n\t}\n\t\n\tprivate updateItems() {\n\t\tconst items: any = [...this.querySelectorAll(this.isVertical ? 'nile-vertical-stepper-item' : 'nile-stepper-item')];\n\t\tif (!items.length) return;\n\t\tconst haveFlex = items.length < 3;\n\n\t\tconst current = (this.currentStep == 0 || this.currentStep > items.length) ? 1 : this.currentStep;\n\t\tconst calculatedCompleted = this.completedStep > items.length ? current : this.completedStep < current ? current : this.completedStep;\n\t\tconst completed = this.completedStep > items.length ? 0 : this.completedStep;\n\n\t\titems.forEach((el: any, index: number) => {\n\t\t\t// set item is complete and is current values\n\t\t\tif (index + 1 < current) {\n\t\t\t\tel.isComplete = true;\n\t\t\t\tel.isCurrent = false;\n\t\t\t}\n\t\t\telse if (index + 1 == current) {\n\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\telse el.isComplete = false;\n\t\t\t\tel.isCurrent = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\telse el.isComplete = false;\n\t\t\t\tel.isCurrent = false;\n\t\t\t}\n\n\t\t\t// Set isLast and isFirst\n\t\t\tif (index == 0) el.isFirst = true;\n\t\t\tif (index == items.length - 1) el.isLast = true;\n\n\t\t\t// setting default values\n\t\t\tel.currentStepValue = current;\n\t\t\tel.calculatedCompletedStepValue = calculatedCompleted;\n\t\t\tel.completedStepValue = completed;\n\n\t\t\tel.icon = this.icon;\n\t\t\tel.size = this.size;\n\t\t\tel.value = index + 1;\n\t\t\tel.contentBelow = this.contentBelow\n\t\t\tif (index == 0 || index == items.length - 1) {\n\t\t\t\tel.haveFlex = haveFlex;\n\t\t\t}\n\t\t})\n\t}\n\n\t/**\n\t * The styles for nile-stepper\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<div class=${classMap({\n\t\t\t\t'nile-stepper':true,\n\t\t\t\t'nile-stepper--horizontal':!this.isVertical,\n\t\t\t\t'nile-stepper--vertical':this.isVertical\n\t\t\t})}>\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=${this.updateItems}\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepper;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper': NileStepper;\n\t}\n}\n"]}
1
+ {"version":3,"file":"nile-stepper.js","sourceRoot":"","sources":["../../../src/nile-stepper/nile-stepper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,IAAI,EAAkC,MAAM,KAAK,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD;;;;;GAKG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;IAArC;;QAE8C,eAAU,GAAY,KAAK,CAAC;QACT,iBAAY,GAAY,KAAK,CAAC;QACjC,gBAAW,GAAW,CAAC,CAAC;QACrB,kBAAa,GAAW,CAAC,CAAC;QACnC,SAAI,GAAuB,IAAI,CAAC;QAClF,SAAI,GAAW,MAAM,CAAC;QAgGlC,gBAAgB;IACjB,CAAC;IA/FA,iBAAiB;QAChB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CA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e,CAAC;6DAItB;AA1BW,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAwGvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-stepper.css';\nimport NileElement from '../internal/nile-element';\nimport { watch } from '../internal/watch';\nimport { classMap } from 'lit/directives/class-map.js';\n\n\n/**\n * Nile stepper component.\n *\n * @tag nile-stepper\n *\n */\n@customElement('nile-stepper')\nexport class NileStepper extends NileElement {\n\n\t@property({ type: Boolean, attribute: 'vertical' }) isVertical: boolean = false;\n\t@property({ type: Boolean, attribute: 'content-below', reflect:true }) contentBelow: boolean = false;\n\t@property({ type: Number, attribute: 'currentStep', reflect:true }) currentStep: number = 0;\n\t@property({ type: Number, attribute: 'completedStep', reflect:true }) completedStep: number = 0;\n\t@property({ type: String, attribute: 'size', reflect:true }) size: 'sm' | 'md' | 'lg' = 'md';\n\t@property() icon: string = 'tick';\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback();\n\t\tthis.updateComplete.then(() => {\n\t\t\tthis.updateItems();\n\t\t});\n\t}\n\n\t@watch('currentStep')\n\thandleCurrentStepChanges() {\n\t\tthis.updateItems();\n\t\tthis.emit('nile-current-change', { value: this.currentStep });\n\t}\n\n\t@watch('completedStep')\n\thandleCompletedStepChanges() {\n\t\tthis.updateItems()\n\t\tthis.emit('nile-completed-change', { value: this.completedStep });\n\t}\n\n\tprivate updateItems() {\n\t\tconst items: any = [...this.querySelectorAll(this.isVertical?'nile-vertical-stepper-item':'nile-stepper-item')];\n\t\tif (!items.length) return;\n\t\tconst haveFlex = items.length < 3;\n\n\t\tconst current = (this.currentStep == 0 || this.currentStep > items.length) ? 1 : this.currentStep;\n\t\tconst calculatedCompleted = this.completedStep > items.length ? current : this.completedStep < current ? current : this.completedStep;\n\t\tconst completed = this.completedStep > items.length ? 0 : this.completedStep;\n\n\t\titems.forEach((el: any, index: number) => {\n\t\t\t// set item is complete and is current values\n\t\t\tif (index + 1 < current) {\n\t\t\t\tel.isComplete = true;\n\t\t\t\tel.isCurrent = false;\n\t\t\t}\n\t\t\telse if (index + 1 == current) {\n\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\telse el.isComplete = false;\n\t\t\t\tel.isCurrent = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\telse el.isComplete = false;\n\t\t\t\tel.isCurrent = false;\n\t\t\t}\n\n\t\t\t// Set isLast and isFirst\n\t\t\tif (index == 0) el.isFirst = true;\n\t\t\tif (index == items.length - 1) el.isLast = true;\n\n\t\t\t// setting default values\n\t\t\tel.currentStepValue = current;\n\t\t\tel.calculatedCompletedStepValue = calculatedCompleted;\n\t\t\tel.completedStepValue = completed;\n\n\t\t\tel.icon = this.icon;\n\t\t\tel.size = this.size;\n\t\t\tel.value = index + 1;\n\t\t\tel.contentBelow = this.contentBelow\n\t\t\tif (index == 0 || index == items.length - 1) {\n\t\t\t\tel.haveFlex = haveFlex;\n\t\t\t}\n\t\t})\n\t}\n\n\t/**\n\t * The styles for nile-stepper\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<div class=${classMap({\n\t\t\t\t'nile-stepper':true,\n\t\t\t\t'nile-stepper--horizontal':!this.isVertical,\n\t\t\t\t'nile-stepper--vertical':this.isVertical\n\t\t\t})}>\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=${this.updateItems}\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepper;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper': NileStepper;\n\t}\n}\n"]}
@@ -13,7 +13,7 @@ export const styles = css `
13
13
  --stepper-flex-val:1;
14
14
  --bulletin--dot--seperation:30%;
15
15
 
16
- display: inline-block;
16
+ display:inline-block;
17
17
  flex-grow:var(--stepper-flex-val);
18
18
  min-width:var(--nile-stepper-min-width);
19
19
  }
@@ -23,7 +23,7 @@ export const styles = css `
23
23
  }
24
24
 
25
25
  .stepper__item--sm {
26
- --item-spacing: var(--nile-spacing-spacing-md);
26
+ --item-spacing: var(--nile-spacing-spacing-lg,12px);
27
27
  --stepper-item-title-size:14px;
28
28
  --stepper-item-subtitle-size:14px;
29
29
  --stepper-item-text-line-height:20px;
@@ -31,17 +31,17 @@ export const styles = css `
31
31
  }
32
32
 
33
33
  .stepper__item--md {
34
- --item-spacing: var(--nile-spacing-spacing-md);
34
+ --item-spacing: var(--nile-spacing-spacing-xl, 16px);
35
35
  --stepper-item-title-size:16px;
36
- --stepper-item-subtitle-size:14px;
37
- --stepper-item-text-line-height:24px;
36
+ --stepper-item-subtitle-size:16px;
37
+ --stepper-item-text-line-heightt:24px;
38
38
  --circle-height:20px;
39
39
  }
40
40
 
41
41
  .stepper__item--lg {
42
- --item-spacing: var(--nile-spacing-spacing-lg);
42
+ --item-spacing: var(--nile-spacing-spacing-xl, 16px);
43
43
  --stepper-item-title-size:16px;
44
- --stepper-item-subtitle-size:14px;
44
+ --stepper-item-subtitle-size:16px;
45
45
  --stepper-item-text-line-height:24px;
46
46
  --circle-height:28px;
47
47
  }
@@ -65,24 +65,13 @@ export const styles = css `
65
65
  .stepper__line {
66
66
  display: block;
67
67
  border: 0;
68
- border-top: 2px solid var(--nile-colors-neutral-500);
68
+ border-top: 2px solid var(--nile-colors-gray-light-mode-200);
69
69
  }
70
70
 
71
71
  .stepper__line--active {
72
72
  border-top: 2px solid var(--nile-colors-primary-600);
73
73
  }
74
74
 
75
- .stepper__item__content--above{
76
- position:relative;
77
- padding: 0 var(--nile-spacing-spacing-md);
78
- }
79
-
80
- .stepper__item__content--above .stepper__content__subtitle{
81
- position: absolute;
82
- top: 100%;
83
- white-space: nowrap;
84
- }
85
-
86
75
  .stepper__item__content--below {
87
76
  margin-top: var(--item-spacing);
88
77
  display:flex;
@@ -96,35 +85,25 @@ export const styles = css `
96
85
  margin:0 -1px;
97
86
  }
98
87
 
99
- .stepper__item__bulletin{
100
- margin-left: 6px;
101
- margin-right: 6px;
102
- }
103
-
104
- .stepper__item__bulletin--inline{
105
- margin-right: 0px;
106
- }
107
-
108
88
  .stepper__content__title {
109
- color:var(--nile-colors-dark-900);
89
+ color:var(--nile-colors-gray-light-mode-700);
110
90
  font-size: var(--stepper-item-title-size);
111
91
  line-height: var(--stepper-item-text-line-height);
112
92
  font-family: var(--nile-font-family-medium);
113
- font-weight: 400;
93
+ font-weight: 600;
114
94
  }
115
95
 
116
96
  .stepper__content__title--inline{
117
97
  padding: 0 8px;
118
- color:var(--nile-colors-dark-900);
98
+ color:var(--nile-colors-gray-light-mode-500);
119
99
  }
120
100
 
121
101
  .stepper__content__title--active{
122
- color:var(--nile-colors-primary-600);
123
- font-weight: 600;
102
+ color:var(--nile-colors-primary-700);
124
103
  }
125
104
 
126
105
  .stepper__content__subtitle {
127
- color:var(--nile-colors-dark-500);
106
+ color:var(--nile-colors-gray-light-mode-600);
128
107
  font-size: var(--stepper-item-subtitle-size);
129
108
  line-height: var(--stepper-item-text-line-height);
130
109
  font-family: var(--nile-font-family-sans-serif);
@@ -139,13 +118,13 @@ export const styles = css `
139
118
  width: var(--circle-height);
140
119
  aspect-ratio: 1 / 1;
141
120
  border-radius: 50%;
142
- background: radial-gradient(var(--nile-colors-neutral-500) var(--bulletin--dot--seperation), var(--nile-colors-dark-200) var(--bulletin--dot--seperation));
143
- border: 2px solid var(--nile-colors-neutral-500);
121
+ background: radial-gradient(var(--nile-colors-gray-light-mode-300) var(--bulletin--dot--seperation), var(--nile-colors-gray-neutral-50) var(--bulletin--dot--seperation));
122
+ border: 2px solid var(--nile-colors-gray-light-mode-200);
144
123
  }
145
124
 
146
125
  .stepper__bulletin__dot--active{
147
126
  background: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));
148
- border: 2px solid var(--nile-colors-primary-500);
127
+ border: 2px solid var(--nile-colors-primary-400);
149
128
  }
150
129
 
151
130
  .stepper__bulletin--icon {
@@ -1 +1 @@
1
- {"version":3,"file":"nile-stepper-item.css.js","sourceRoot":"","sources":["../../../src/nile-stepper-item/nile-stepper-item.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJxB,CAAC;AACF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport { css } from 'lit';\n\n/**\n * StepperItem CSS\n */\nexport const styles = css`\n\t:host {\n\t\t--stepper-flex-val:1;\n\t\t--bulletin--dot--seperation:30%;\n\t\t\n\t\tdisplay: inline-block;\n\t\tflex-grow:var(--stepper-flex-val);\n\t\tmin-width:var(--nile-stepper-min-width);\n\t}\n\t\n\t.stepper__item {\n\t\tmargin: 0 -1px;\n\t}\n\n\t.stepper__item--sm {\n\t\t--item-spacing: var(--nile-spacing-spacing-md);\n\t\t--stepper-item-title-size:14px;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:20px;\n\t\t--circle-height:16px;\n\t}\n\n\t.stepper__item--md {\n\t\t--item-spacing: var(--nile-spacing-spacing-md);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:24px;\n\t\t--circle-height:20px;\n\t}\n\n\t.stepper__item--lg {\n\t\t--item-spacing: var(--nile-spacing-spacing-lg);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:24px;\n\t\t--circle-height:28px;\n\t}\n\n\t.stepper__line__content {\n\t\tdisplay:flex;\n\t\twidth:100%;\n\t\talign-items:center;\n\t}\n\n\t.stepper__line__container {\n\t\tflex-grow:1;\n\t\tpadding:0 1px;\n\t}\n\n\t.stepper__line--hastitle {\n\t\tdisplay:flex;\n\t\talign-items:center;\n\t}\n\n\t.stepper__line {\n\t\tdisplay: block;\n\t\tborder: 0;\n\t\tborder-top: 2px solid var(--nile-colors-neutral-500);\n\t}\n\n\t.stepper__line--active {\n\t\tborder-top: 2px solid var(--nile-colors-primary-600);\n\t}\n\n\t.stepper__item__content--above{\n\t\tposition:relative;\n\t\tpadding: 0 var(--nile-spacing-spacing-md);\n\t}\n\n\t.stepper__item__content--above .stepper__content__subtitle{\n\t\tposition: absolute;\n top: 100%;\n white-space: nowrap;\n\t}\n\n\t.stepper__item__content--below {\n\t\tmargin-top: var(--item-spacing);\n\t\tdisplay:flex;\n\t\tflex-direction:column;\n\t\talign-items:center;\n\t}\n\t\n\t.stepper__item__bulletin {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t\tmargin:0 -1px;\n\t}\n\n\t.stepper__item__bulletin{\n\t\tmargin-left: 6px;\n\t\tmargin-right: 6px;\n\t}\n\n\t.stepper__item__bulletin--inline{\n\t\tmargin-right: 0px;\n\t}\n\n\t.stepper__content__title {\n\t\tcolor:var(--nile-colors-dark-900);\n\t\tfont-size: var(--stepper-item-title-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var(--nile-font-family-medium);\n\t\tfont-weight: 400;\n\t}\n\n\t.stepper__content__title--inline{\n\t\tpadding: 0 8px;\n\t\tcolor:var(--nile-colors-dark-900);\n\t}\n\n\t.stepper__content__title--active{\n\t\tcolor:var(--nile-colors-primary-600);\n\t\tfont-weight: 600;\n\t}\n\n\t.stepper__content__subtitle {\n\t\tcolor:var(--nile-colors-dark-500);\n\t\tfont-size: var(--stepper-item-subtitle-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var(--nile-font-family-sans-serif);\n\t\tfont-weight: 400;\n\t}\n\n\t.stepper__content__subtitle--active{\n\t\tcolor:var(--nile-colors-primary-600);\n\t}\n\n\t.stepper__bulletin--dot {\n\t\twidth: var(--circle-height);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground: radial-gradient(var(--nile-colors-neutral-500) var(--bulletin--dot--seperation), var(--nile-colors-dark-200) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-neutral-500);\n\t}\n\n\t.stepper__bulletin__dot--active{\n\t\tbackground: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-primary-500);\n\t}\n\n\t.stepper__bulletin--icon {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t\twidth: var(--circle-height);\n\t\tborder: 2px solid var(--nile-colors-primary-600);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground-color:var(--nile-colors-primary-600);\n\t\toverflow:hidden;\n\t}\n`;\nexport default [styles];"]}
1
+ {"version":3,"file":"nile-stepper-item.css.js","sourceRoot":"","sources":["../../../src/nile-stepper-item/nile-stepper-item.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIxB,CAAC;AACF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport { css } from 'lit';\n\n/**\n * StepperItem CSS\n */\nexport const styles = css`\n\t:host {\n\t\t--stepper-flex-val:1;\n\t\t--bulletin--dot--seperation:30%;\n\t\t\n\t\tdisplay:inline-block;\n\t\tflex-grow:var(--stepper-flex-val);\n\t\tmin-width:var(--nile-stepper-min-width);\n\t}\n\t\n\t.stepper__item {\n\t\tmargin: 0 -1px;\n\t}\n\n\t.stepper__item--sm {\n\t\t--item-spacing: var(--nile-spacing-spacing-lg,12px);\n\t\t--stepper-item-title-size:14px;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:20px;\n\t\t--circle-height:16px;\n\t}\n\n\t.stepper__item--md {\n\t\t--item-spacing: var(--nile-spacing-spacing-xl, 16px);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-subtitle-size:16px;\n\t\t--stepper-item-text-line-heightt:24px;\n\t\t--circle-height:20px;\n\t}\n\n\t.stepper__item--lg {\n\t\t--item-spacing: var(--nile-spacing-spacing-xl, 16px);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-subtitle-size:16px;\n\t\t--stepper-item-text-line-height:24px;\n\t\t--circle-height:28px;\n\t}\n\n\t.stepper__line__content {\n\t\tdisplay:flex;\n\t\twidth:100%;\n\t\talign-items:center;\n\t}\n\n\t.stepper__line__container {\n\t\tflex-grow:1;\n\t\tpadding:0 1px;\n\t}\n\n\t.stepper__line--hastitle {\n\t\tdisplay:flex;\n\t\talign-items:center;\n\t}\n\n\t.stepper__line {\n\t\tdisplay: block;\n\t\tborder: 0;\n\t\tborder-top: 2px solid var(--nile-colors-gray-light-mode-200);\n\t}\n\n\t.stepper__line--active {\n\t\tborder-top: 2px solid var(--nile-colors-primary-600);\n\t}\n\n\t.stepper__item__content--below {\n\t\tmargin-top: var(--item-spacing);\n\t\tdisplay:flex;\n\t\tflex-direction:column;\n\t\talign-items:center;\n\t}\n\t\n\t.stepper__item__bulletin {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t\tmargin:0 -1px;\n\t}\n\n\t.stepper__content__title {\n\t\tcolor:var(--nile-colors-gray-light-mode-700);\n\t\tfont-size: var(--stepper-item-title-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var(--nile-font-family-medium);\n\t\tfont-weight: 600;\n\t}\n\n\t.stepper__content__title--inline{\n\t\tpadding: 0 8px;\n\t\tcolor:var(--nile-colors-gray-light-mode-500);\n\t}\n\n\t.stepper__content__title--active{\n\t\tcolor:var(--nile-colors-primary-700);\n\t}\n\n\t.stepper__content__subtitle {\n\t\tcolor:var(--nile-colors-gray-light-mode-600);\n\t\tfont-size: var(--stepper-item-subtitle-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var(--nile-font-family-sans-serif);\n\t\tfont-weight: 400;\n\t}\n\n\t.stepper__content__subtitle--active{\n\t\tcolor:var(--nile-colors-primary-600);\n\t}\n\n\t.stepper__bulletin--dot {\n\t\twidth: var(--circle-height);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground: radial-gradient(var(--nile-colors-gray-light-mode-300) var(--bulletin--dot--seperation), var(--nile-colors-gray-neutral-50) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-gray-light-mode-200);\n\t}\n\n\t.stepper__bulletin__dot--active{\n\t\tbackground: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-primary-400);\n\t}\n\n\t.stepper__bulletin--icon {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t\twidth: var(--circle-height);\n\t\tborder: 2px solid var(--nile-colors-primary-600);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground-color:var(--nile-colors-primary-600);\n\t\toverflow:hidden;\n\t}\n`;\nexport default [styles];"]}
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the BSD-3-Clause license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import { CSSResultArray, TemplateResult, PropertyValues } from 'lit';
7
+ import { CSSResultArray, TemplateResult } from 'lit';
8
8
  import NileElement from '../internal/nile-element';
9
9
  /**
10
10
  * Nile stepper-item component.
@@ -13,8 +13,6 @@ import NileElement from '../internal/nile-element';
13
13
  *
14
14
  */
15
15
  export declare class NileStepperItem extends NileElement {
16
- absoluteTitle: HTMLDivElement;
17
- absoluteSubtitle: HTMLDivElement;
18
16
  title: string;
19
17
  subtitle: string;
20
18
  private contentBelow;
@@ -34,13 +32,11 @@ export declare class NileStepperItem extends NileElement {
34
32
  * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
35
33
  */
36
34
  static get styles(): CSSResultArray;
37
- protected updated(_changedProperties: PropertyValues): void;
38
35
  /**
39
36
  * Render method
40
37
  * @slot This is a slot test
41
38
  */
42
39
  render(): TemplateResult;
43
- getSvg(): TemplateResult;
44
40
  }
45
41
  export default NileStepperItem;
46
42
  declare global {
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { __decorate } from "tslib";
8
8
  import { nothing, html } from 'lit';
9
- import { customElement, property, state, query } from 'lit/decorators.js';
9
+ import { customElement, property, state } from 'lit/decorators.js';
10
10
  import { classMap } from 'lit/directives/class-map.js';
11
11
  import { styles } from './nile-stepper-item.css';
12
12
  import NileElement from '../internal/nile-element';
@@ -41,12 +41,6 @@ let NileStepperItem = class NileStepperItem extends NileElement {
41
41
  static get styles() {
42
42
  return [styles];
43
43
  }
44
- updated(_changedProperties) {
45
- if (_changedProperties.has('subtitle') && this.isLast && !this.contentBelow && this.subtitle) {
46
- const subtitleWidth = this.absoluteSubtitle?.scrollWidth ?? '0';
47
- this.absoluteTitle.style.minWidth = subtitleWidth + "px";
48
- }
49
- }
50
44
  /* #endregion */
51
45
  /* #region Methods */
52
46
  /**
@@ -67,13 +61,14 @@ let NileStepperItem = class NileStepperItem extends NileElement {
67
61
  if (this.calculatedCompletedStepValue == this.value)
68
62
  suffixStepperLineActive = false;
69
63
  }
64
+ let iconSize = this.size == 'sm' ? 20 : this.size == 'md' ? 24 : 28;
70
65
  return html `
71
66
  <div class="${classMap({
72
67
  'stepper__item': true,
73
68
  'stepper__item--selected': isCurrent,
74
69
  'stepper__item--sm': this.size == 'sm',
75
70
  'stepper__item--md': this.size == 'md',
76
- 'stepper__item--lg': this.size == 'lg'
71
+ 'stepper__item--lg': this.size == 'lg',
77
72
  })}">
78
73
  <div class="stepper__line__content">
79
74
  <div class="stepper__line__container">
@@ -85,9 +80,13 @@ let NileStepperItem = class NileStepperItem extends NileElement {
85
80
  `}
86
81
  </div>
87
82
 
88
- <div class=${classMap({ 'stepper__item__bulletin': true, 'stepper__item__bulletin--inline': !this.contentBelow })}>
83
+ <div class="stepper__item__bulletin">
89
84
  ${showCompletedIcon ?
90
- html `<div class="stepper__bulletin--icon">${this.getSvg()}</div>`
85
+ html `<div class="stepper__bulletin--icon">
86
+ <svg width="${iconSize}" height="${iconSize}" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
87
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z" fill="white"/>
88
+ </svg>
89
+ </div>`
91
90
  : html `<div class="${classMap({ 'stepper__bulletin--dot': true, 'stepper__bulletin__dot--active': isCurrent })}"></div>`}
92
91
  </div>
93
92
 
@@ -96,12 +95,9 @@ let NileStepperItem = class NileStepperItem extends NileElement {
96
95
  'stepper__line--hastitle': !this.contentBelow
97
96
  })}">
98
97
  ${this.contentBelow || !this.title ? nothing : html `
99
-
100
- <div class="stepper__item__content--above">
101
- <div class="${classMap({ 'stepper__content__title': true, 'stepper__content__title--active': isCurrent })}">
102
- ${this.title}
103
- </div>
104
- <div class="${classMap({ 'stepper__content__subtitle': true, 'stepper__content__subtitle--active': isCurrent })}">${this.subtitle}</div>
98
+ <div
99
+ class="${classMap({ 'stepper__content__title stepper__content__title--inline': true, 'stepper__content__title--active': isCurrent, })}">
100
+ ${this.title}
105
101
  </div>
106
102
  `}
107
103
  ${this.isLast ? nothing : html `
@@ -112,33 +108,18 @@ let NileStepperItem = class NileStepperItem extends NileElement {
112
108
  `}
113
109
  </div>
114
110
  </div>
115
- ${this.contentBelow ?
116
- html `
111
+ ${!this.contentBelow ? nothing : html `
117
112
  <div class="stepper__item__content--below">
118
113
  <div class="${classMap({ 'stepper__content__title': true, 'stepper__content__title--active': isCurrent })}">
119
114
  ${this.title}
120
115
  </div>
121
116
  <div class="${classMap({ 'stepper__content__subtitle': true, 'stepper__content__subtitle--active': isCurrent })}">${this.subtitle}</div>
122
117
  </div>
123
- ` : nothing}
118
+ `}
124
119
  </div>
125
120
  `;
126
121
  }
127
- getSvg() {
128
- let iconSize = this.size == 'sm' ? 20 : this.size == 'md' ? 24 : 28;
129
- return html `
130
- <svg width="${iconSize}" height="${iconSize}" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
131
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z" fill="white"/>
132
- </svg>
133
- `;
134
- }
135
122
  };
136
- __decorate([
137
- query('.stepper__item__content--above .stepper__content__title')
138
- ], NileStepperItem.prototype, "absoluteTitle", void 0);
139
- __decorate([
140
- query('.stepper__item__content--above .stepper__content__subtitle')
141
- ], NileStepperItem.prototype, "absoluteSubtitle", void 0);
142
123
  __decorate([
143
124
  property()
144
125
  ], NileStepperItem.prototype, "title", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"nile-stepper-item.js","sourceRoot":"","sources":["../../../src/nile-stepper-item/nile-stepper-item.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,OAAO,EAAE,IAAI,EAAkD,MAAM,KAAK,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,WAAW;IAAzC;;QAKN,gCAAgC;QACpB,UAAK,GAAW,EAAE,CAAC;QACnB,aAAQ,GAAW,EAAE,CAAC;QAElC,wDAAwD;QACvC,iBAAY,GAAG,KAAK,CAAC;QACrB,SAAI,GAAwB,IAAI,CAAC;QACjC,SAAI,GAAG,MAAM,CA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,KAAK,EAAE;2DAAoC;AAC3B;IAAhB,KAAK,EAAE;qEAA8C;AAErC;IAAhB,KAAK,EAAE;8CAAuB;AACd;IAAhB,KAAK,EAAE;iDAAgC;AA1B5B,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAsI3B;;AAED,eAAe,eAAe,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, nothing, html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-stepper-item.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile stepper-item component.\n *\n * @tag nile-stepper-item\n *\n */\n@customElement('nile-stepper-item')\nexport class NileStepperItem extends NileElement {\n\n\t@query('.stepper__item__content--above .stepper__content__title') absoluteTitle:HTMLDivElement;\n\t@query('.stepper__item__content--above .stepper__content__subtitle') absoluteSubtitle:HTMLDivElement;\n\n\t/* Properties passed directly */\n\t@property() title: string = '';\n\t@property() subtitle: string = '';\n\n\t/* Properties passed to parent component: NileStepper */\n\t@state() private contentBelow = false;\n\t@state() private size : 'sm' | 'md' | 'lg' = 'md';\n\t@state() private icon = 'tick';\n\n\n\t/* Properties Computed at parent level component NileStepper */\n\t@state() private isFirst = false;\n\t@state() private isLast = false;\n\n\t@state() private isComplete = false;\n\t@state() private isCurrent = false;\n\t@state() private currentStepValue :Number;\n\t@state() private completedStepValue :Number;\n\t@state() private calculatedCompletedStepValue :Number;\n\n\t@state() private value :Number;\n\t@state() private haveFlex :Boolean=true;\n\n\t/**\n\t * The styles for nile-stepper-item\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\tprotected updated(_changedProperties: PropertyValues): void {\n\t\tif(_changedProperties.has('subtitle') && this.isLast && !this.contentBelow && this.subtitle){\n\t\t\tconst subtitleWidth=this.absoluteSubtitle?.scrollWidth as number ?? '0';\n\t\t\tthis.absoluteTitle.style.minWidth=subtitleWidth+\"px\"\n\t\t}\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\n\t\tif (!this.haveFlex) this.style.setProperty('--stepper-flex-val', `0`);\n\t\tconst isCurrent = this.isCurrent;\n\t\tconst isComplete = this.isComplete;\n\n\t\tlet showCompletedIcon = false;\n\t\tif (isComplete && !isCurrent || this.completedStepValue == this.value) showCompletedIcon = true;\n\n\t\tlet suffixStepperLineActive = false;\n\t\tif (isComplete) {\n\t\t\tsuffixStepperLineActive = true;\n\t\t\tif (this.calculatedCompletedStepValue == this.value) suffixStepperLineActive = false;\n\t\t}\n\t\treturn html`\n\t\t\t<div class=\"${classMap({\n\t\t\t\t'stepper__item':true,\n\t\t\t\t'stepper__item--selected':isCurrent,\n\t\t\t\t'stepper__item--sm':this.size=='sm',\n\t\t\t\t'stepper__item--md':this.size=='md',\n\t\t\t\t'stepper__item--lg':this.size=='lg'\n\t\t\t})}\">\n\t\t\t\t<div class=\"stepper__line__content\">\n\t\t\t\t\t<div class=\"stepper__line__container\">\n\t\t\t\t\t\t${this.isFirst ? nothing : html`\n\t\t\t\t\t\t\t<hr class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':isComplete || isCurrent\n\t\t\t\t\t\t\t})}\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=${classMap({ 'stepper__item__bulletin':true, 'stepper__item__bulletin--inline': !this.contentBelow })}>\n\t\t\t\t\t\t${showCompletedIcon ? \n\t\t\t\t\t\t\thtml`<div class=\"stepper__bulletin--icon\">${this.getSvg()}</div>`\n\t\t\t\t\t\t\t: html`<div class=\"${classMap({ 'stepper__bulletin--dot':true, 'stepper__bulletin__dot--active':isCurrent })}\"></div>`\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"${classMap({\n\t\t\t\t\t\t'stepper__line__container':true,\n\t\t\t\t\t\t'stepper__line--hastitle':!this.contentBelow\n\t\t\t\t\t})}\">\n\t\t\t\t\t\t${this.contentBelow || !this.title ? nothing:html`\n\n\t\t\t\t\t\t\t<div class=\"stepper__item__content--above\">\n\t\t\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t`}\n\t\t\t\t\t\t${this.isLast ? nothing : html`\n\t\t\t\t\t\t\t<hr class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':suffixStepperLineActive\n\t\t\t\t\t\t\t})}\" style=\"flex-grow:1;\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t${this.contentBelow?\n\t\t\t\t\thtml`\n\t\t\t\t\t<div class=\"stepper__item__content--below\">\n\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t</div>\n\t\t\t\t`:nothing}\n\t\t\t</div>\n\t\t`;\n\t}\n\n\tgetSvg():TemplateResult{\n\t\tlet iconSize = this.size == 'sm' ? 20 : this.size == 'md' ? 24 : 28;\n\t\treturn html`\n\t\t<svg width=\"${iconSize}\" height=\"${iconSize}\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z\" fill=\"white\"/>\n\t\t</svg>\n\t\t`\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepperItem;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper-item': NileStepperItem;\n\t}\n}"]}
1
+ {"version":3,"file":"nile-stepper-item.js","sourceRoot":"","sources":["../../../src/nile-stepper-item/nile-stepper-item.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,WAAW;IAAzC;;QACN,gCAAgC;QACpB,UAAK,GAAW,EAAE,CAAC;QACnB,aAAQ,GAAW,EAAE,CAAC;QAGlC,wDAAwD;QACvC,iBAAY,GAAG,KAAK,CAAC;QACrB,SAAI,GAAwB,IAAI,CAA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AC,KAAK;;oBAEC,QAAQ,CAAC,EAAE,4BAA4B,EAAC,IAAI,EAAE,oCAAoC,EAAC,SAAS,EAAE,CAAC,KAAK,IAAI,CAAC,QAAQ;;KAEhI;;GAEF,CAAC;IACH,CAAC;CAGD,CAAA;AAnHY;IAAX,QAAQ,EAAE;8CAAoB;AACnB;IAAX,QAAQ,EAAE;iDAAuB;AAIjB;IAAhB,KAAK,EAAE;qDAA8B;AACrB;IAAhB,KAAK,EAAE;6CAA0C;AACjC;IAAhB,KAAK,EAAE;6CAAuB;AAId;IAAhB,KAAK,EAAE;gDAAyB;AAChB;IAAhB,KAAK,EAAE;+CAAwB;AAEf;IAAhB,KAAK,EAAE;mDAA4B;AACnB;IAAhB,KAAK,EAAE;kDAA2B;AAClB;IAAhB,KAAK,EAAE;yDAAkC;AACzB;IAAhB,KAAK,EAAE;2DAAoC;AAC3B;IAAhB,KAAK,EAAE;qEAA8C;AAErC;IAAhB,KAAK,EAAE;8CAAuB;AACd;IAAhB,KAAK,EAAE;iDAAgC;AAvB5B,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAqH3B;;AAED,eAAe,eAAe,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, nothing, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-stepper-item.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile stepper-item component.\n *\n * @tag nile-stepper-item\n *\n */\n@customElement('nile-stepper-item')\nexport class NileStepperItem extends NileElement {\n\t/* Properties passed directly */\n\t@property() title: string = '';\n\t@property() subtitle: string = '';\n\n\n\t/* Properties passed to parent component: NileStepper */\n\t@state() private contentBelow = false;\n\t@state() private size : 'sm' | 'md' | 'lg' = 'md';\n\t@state() private icon = 'tick';\n\n\n\t/* Properties Computed at parent level component NileStepper */\n\t@state() private isFirst = false;\n\t@state() private isLast = false;\n\n\t@state() private isComplete = false;\n\t@state() private isCurrent = false;\n\t@state() private currentStepValue :Number;\n\t@state() private completedStepValue :Number;\n\t@state() private calculatedCompletedStepValue :Number;\n\n\t@state() private value :Number;\n\t@state() private haveFlex :Boolean=true;\n\n\n\t/**\n\t * The styles for nile-stepper-item\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\n\t\tif (!this.haveFlex) this.style.setProperty('--stepper-flex-val', `0`);\n\t\tconst isCurrent = this.isCurrent;\n\t\tconst isComplete = this.isComplete;\n\n\t\tlet showCompletedIcon = false;\n\t\tif (isComplete && !isCurrent || this.completedStepValue == this.value) showCompletedIcon = true;\n\n\t\tlet suffixStepperLineActive = false;\n\t\tif (isComplete) {\n\t\t\tsuffixStepperLineActive = true;\n\t\t\tif (this.calculatedCompletedStepValue == this.value) suffixStepperLineActive = false;\n\t\t}\n\t\tlet iconSize = this.size == 'sm' ? 20 : this.size == 'md' ? 24 : 28;\n\t\treturn html`\n\t\t\t<div class=\"${classMap({\n\t\t\t\t'stepper__item':true,\n\t\t\t\t'stepper__item--selected':isCurrent,\n\t\t\t\t'stepper__item--sm':this.size=='sm',\n\t\t\t\t'stepper__item--md':this.size=='md',\n\t\t\t\t'stepper__item--lg':this.size=='lg',\n\t\t\t})}\">\n\t\t\t\t<div class=\"stepper__line__content\">\n\t\t\t\t\t<div class=\"stepper__line__container\">\n\t\t\t\t\t\t${this.isFirst ? nothing : html`\n\t\t\t\t\t\t\t<hr class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':isComplete || isCurrent\n\t\t\t\t\t\t\t})}\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"stepper__item__bulletin\">\n\t\t\t\t\t\t${showCompletedIcon ? \n\t\t\t\t\t\t\thtml`<div class=\"stepper__bulletin--icon\">\n\t\t\t\t\t\t\t\t\t<svg width=\"${iconSize}\" height=\"${iconSize}\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t\t\t\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z\" fill=\"white\"/>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t</div>`\n\t\t\t\t\t\t\t: html`<div class=\"${classMap({ 'stepper__bulletin--dot':true, 'stepper__bulletin__dot--active':isCurrent })}\"></div>`\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"${classMap({\n\t\t\t\t\t\t'stepper__line__container':true,\n\t\t\t\t\t\t'stepper__line--hastitle':!this.contentBelow\n\t\t\t\t\t})}\">\n\t\t\t\t\t\t${this.contentBelow || !this.title ? nothing:html`\n\t\t\t\t\t\t\t<div \n\t\t\t\t\t\t\tclass=\"${classMap({ 'stepper__content__title stepper__content__title--inline':true, 'stepper__content__title--active':isCurrent, })}\">\n\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t`}\n\t\t\t\t\t\t${this.isLast ? nothing : html`\n\t\t\t\t\t\t\t<hr class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':suffixStepperLineActive\n\t\t\t\t\t\t\t})}\" style=\"flex-grow:1;\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t${!this.contentBelow?nothing:html`\n\t\t\t\t\t<div class=\"stepper__item__content--below\">\n\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t</div>\n\t\t\t\t`}\n\t\t\t</div>\n\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepperItem;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper-item': NileStepperItem;\n\t}\n}"]}
@@ -23,28 +23,25 @@ export const styles = css `
23
23
  }
24
24
 
25
25
  .stepper__item--sm {
26
- --item-spacing: var(--nile-spacing-spacing-md);
26
+ --item-spacing: var(--nile-spacing-spacing-lg,12px);
27
27
  --stepper-item-title-size:14px;
28
- --stepper-item-title-margin-top:15%;
29
28
  --stepper-item-subtitle-size:14px;
30
29
  --stepper-item-text-line-height:20px;
31
30
  --circle-height:16px;
32
31
  }
33
32
 
34
33
  .stepper__item--md {
35
- --item-spacing: var(--nile-spacing-spacing-md);
34
+ --item-spacing: var(--nile-spacing-spacing-xl, 16px);
36
35
  --stepper-item-title-size:16px;
37
- --stepper-item-title-margin-top:15%;
38
- --stepper-item-subtitle-size:14px;
39
- --stepper-item-text-line-height:24px;
36
+ --stepper-item-subtitle-size:16px;
37
+ --stepper-item-text-line-heightt:24px;
40
38
  --circle-height:20px;
41
39
  }
42
40
 
43
41
  .stepper__item--lg {
44
- --item-spacing: var(--nile-spacing-spacing-lg);
42
+ --item-spacing: var(--nile-spacing-spacing-xl, 16px);
45
43
  --stepper-item-title-size:16px;
46
- --stepper-item-title-margin-top:25%;
47
- --stepper-item-subtitle-size:14px;
44
+ --stepper-item-subtitle-size:16px;
48
45
  --stepper-item-text-line-height:24px;
49
46
  --circle-height:28px;
50
47
  }
@@ -53,28 +50,22 @@ export const styles = css `
53
50
  display: flex;
54
51
  flex-direction: column;
55
52
  }
56
-
57
53
  .stepper__item__bulletin {
58
54
  display:grid;
59
55
  place-content:center;
60
56
  }
61
57
 
62
- .stepper__item__bulletin {
63
- margin-top:3px;
64
- margin-bottom:3px;
65
- }
66
-
67
58
  .stepper__bulletin--dot {
68
59
  width: var(--circle-height);
69
60
  aspect-ratio: 1 / 1;
70
61
  border-radius: 50%;
71
- background: radial-gradient(var(--nile-colors-neutral-500) var(--bulletin--dot--seperation), var(--nile-colors-dark-200) var(--bulletin--dot--seperation));
72
- border: 2px solid var(--nile-colors-neutral-500);
62
+ background: radial-gradient(var(--nile-colors-gray-light-mode-300) var(--bulletin--dot--seperation), var(--nile-colors-gray-neutral-50) var(--bulletin--dot--seperation));
63
+ border: 2px solid var(--nile-colors-gray-light-mode-200);
73
64
  }
74
65
 
75
66
  .stepper__bulletin__dot--active{
76
67
  background: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));
77
- border: 2px solid var(--nile-colors-primary-500);
68
+ border: 2px solid var(--nile-colors-primary-400);
78
69
  }
79
70
 
80
71
  .stepper__bulletin--icon {
@@ -98,7 +89,7 @@ export const styles = css `
98
89
 
99
90
  .stepper__item__line{
100
91
  height:100%;
101
- border-left: 2px solid var(--nile-colors-neutral-500);
92
+ border-left: 2px solid var(--nile-colors-primary-600);
102
93
  }
103
94
  .stepper__item__line--active{
104
95
  border-left: 2px solid var(--nile-colors-primary-600);
@@ -110,24 +101,19 @@ export const styles = css `
110
101
  justify-content:start;
111
102
  }
112
103
  .stepper__content__title {
113
- color:var(--nile-colors-dark-900);
104
+ color:var(--nile-colors-gray-light-mode-700);
114
105
  font-size: var(--stepper-item-title-size);
115
106
  line-height: var(--stepper-item-text-line-height);
116
107
  font-family: var(--nile-font-family-medium);
117
- font-weight: 400;
118
- }
119
-
120
- .stepper__content__title--alone{
121
- margin-top: var(--stepper-item-title-margin-top);
108
+ font-weight: 600;
122
109
  }
123
110
 
124
111
  .stepper__content__title--active{
125
- color:var(--nile-colors-primary-600);
126
- font-weight: 600;
112
+ color:var(--nile-colors-primary-700);
127
113
  }
128
114
 
129
115
  .stepper__content__subtitle {
130
- color:var(--nile-colors-dark-500);
116
+ color:var(--nile-colors-gray-light-mode-600);
131
117
  font-size: var(--stepper-item-subtitle-size);
132
118
  line-height: var(--stepper-item-text-line-height);
133
119
  font-family: var( --nile-font-family-sans-serif);
@@ -1 +1 @@
1
- {"version":3,"file":"nile-vertical-stepper-item.css.js","sourceRoot":"","sources":["../../../src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * VerticalStepperItem CSS\n */\nexport const styles = css`\n\t:host {\n\t\t--vertical-stepper-flex-val:1;\n\t\tflex-grow:var(--vertical-stepper-flex-val);\n\t\t--bulletin--dot--seperation:30%;\n\t\t--min-line-container-height:25px;\n\t}\n\n\t.stepper__item {\n\t\tdisplay:flex;\n\t\tcolumn-gap:var(--item-spacing);\n\t\theight:100%;\n\t}\n\n\t.stepper__item--sm {\n\t\t--item-spacing: var(--nile-spacing-spacing-md);\n\t\t--stepper-item-title-size:14px;\n\t\t--stepper-item-title-margin-top:15%;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:20px;\n\t\t--circle-height:16px;\n\t}\n\n\t.stepper__item--md {\n\t\t--item-spacing: var(--nile-spacing-spacing-md);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-title-margin-top:15%;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:24px;\n\t\t--circle-height:20px;\n\t}\n\n\t.stepper__item--lg {\n\t\t--item-spacing: var(--nile-spacing-spacing-lg);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-title-margin-top:25%;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:24px;\n\t\t--circle-height:28px;\n\t}\n\t\n\t.stepper-item__connector-content{\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.stepper__item__bulletin {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t}\n\n\t.stepper__item__bulletin {\n\t\tmargin-top:3px;\n\t\tmargin-bottom:3px;\n\t}\n\n\t.stepper__bulletin--dot {\n\t\twidth: var(--circle-height);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground: radial-gradient(var(--nile-colors-neutral-500) var(--bulletin--dot--seperation), var(--nile-colors-dark-200) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-neutral-500);\n\t}\n\n\t.stepper__bulletin__dot--active{\n\t\tbackground: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-primary-500);\n\t}\n\n\t.stepper__bulletin--icon {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t\twidth: var(--circle-height);\n\t\tborder: 2px solid var(--nile-colors-primary-600);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground-color:var(--nile-colors-primary-600);\n\t\toverflow:hidden;\n\t}\n\n\t.stepper__item__line__container{\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tpadding: 2px;\n\t\tmin-height: var(--min-line-container-height);\n\t}\n\n\t.stepper__item__line{\n\t\theight:100%;\n\t\tborder-left: 2px solid var(--nile-colors-neutral-500);\n\t}\n\t.stepper__item__line--active{\n\t\tborder-left: 2px solid var(--nile-colors-primary-600);\n\t}\n\n\t.stepper__item__content{\n\t\tdisplay:flex;\n\t\tflex-direction:column;\n\t\tjustify-content:start;\n\t}\n\t.stepper__content__title {\n\t\tcolor:var(--nile-colors-dark-900);\n\t\tfont-size: var(--stepper-item-title-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var(--nile-font-family-medium);\n\t\tfont-weight: 400;\n\t}\n\n\t.stepper__content__title--alone{\n\t\tmargin-top: var(--stepper-item-title-margin-top);\n\t}\n\n\t.stepper__content__title--active{\n\t\tcolor:var(--nile-colors-primary-600);\n\t\tfont-weight: 600;\n\t}\n\n\t.stepper__content__subtitle {\n\t\tcolor:var(--nile-colors-dark-500);\n\t\tfont-size: var(--stepper-item-subtitle-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var( --nile-font-family-sans-serif);\n\t\tfont-weight: 400;\n\t}\n\n\t.stepper__content__subtitle--active{\n\t\tcolor:var(--nile-colors-primary-600);\n\t}\n`;\n\nexport default [styles];"]}
1
+ {"version":3,"file":"nile-vertical-stepper-item.css.js","sourceRoot":"","sources":["../../../src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * VerticalStepperItem CSS\n */\nexport const styles = css`\n\t:host {\n\t\t--vertical-stepper-flex-val:1;\n\t\tflex-grow:var(--vertical-stepper-flex-val);\n\t\t--bulletin--dot--seperation:30%;\n\t\t--min-line-container-height:25px;\n\t}\n\n\t.stepper__item {\n\t\tdisplay:flex;\n\t\tcolumn-gap:var(--item-spacing);\n\t\theight:100%;\n\t}\n\n\t.stepper__item--sm {\n\t\t--item-spacing: var(--nile-spacing-spacing-lg,12px);\n\t\t--stepper-item-title-size:14px;\n\t\t--stepper-item-subtitle-size:14px;\n\t\t--stepper-item-text-line-height:20px;\n\t\t--circle-height:16px;\n\t}\n\n\t.stepper__item--md {\n\t\t--item-spacing: var(--nile-spacing-spacing-xl, 16px);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-subtitle-size:16px;\n\t\t--stepper-item-text-line-heightt:24px;\n\t\t--circle-height:20px;\n\t}\n\n\t.stepper__item--lg {\n\t\t--item-spacing: var(--nile-spacing-spacing-xl, 16px);\n\t\t--stepper-item-title-size:16px;\n\t\t--stepper-item-subtitle-size:16px;\n\t\t--stepper-item-text-line-height:24px;\n\t\t--circle-height:28px;\n\t}\n\t\n\t.stepper-item__connector-content{\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\t.stepper__item__bulletin {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t}\n\n\t.stepper__bulletin--dot {\n\t\twidth: var(--circle-height);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground: radial-gradient(var(--nile-colors-gray-light-mode-300) var(--bulletin--dot--seperation), var(--nile-colors-gray-neutral-50) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-gray-light-mode-200);\n\t}\n\n\t.stepper__bulletin__dot--active{\n\t\tbackground: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));\n\t\tborder: 2px solid var(--nile-colors-primary-400);\n\t}\n\n\t.stepper__bulletin--icon {\n\t\tdisplay:grid;\n\t\tplace-content:center;\n\t\twidth: var(--circle-height);\n\t\tborder: 2px solid var(--nile-colors-primary-600);\n\t\taspect-ratio: 1 / 1;\n\t\tborder-radius: 50%;\n\t\tbackground-color:var(--nile-colors-primary-600);\n\t\toverflow:hidden;\n\t}\n\n\t.stepper__item__line__container{\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tpadding: 2px;\n\t\tmin-height: var(--min-line-container-height);\n\t}\n\n\t.stepper__item__line{\n\t\theight:100%;\n\t\tborder-left: 2px solid var(--nile-colors-primary-600);\n\t}\n\t.stepper__item__line--active{\n\t\tborder-left: 2px solid var(--nile-colors-primary-600);\n\t}\n\n\t.stepper__item__content{\n\t\tdisplay:flex;\n\t\tflex-direction:column;\n\t\tjustify-content:start;\n\t}\n\t.stepper__content__title {\n\t\tcolor:var(--nile-colors-gray-light-mode-700);\n\t\tfont-size: var(--stepper-item-title-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var(--nile-font-family-medium);\n\t\tfont-weight: 600;\n\t}\n\n\t.stepper__content__title--active{\n\t\tcolor:var(--nile-colors-primary-700);\n\t}\n\n\t.stepper__content__subtitle {\n\t\tcolor:var(--nile-colors-gray-light-mode-600);\n\t\tfont-size: var(--stepper-item-subtitle-size);\n\t\tline-height: var(--stepper-item-text-line-height);\n\t\tfont-family: var( --nile-font-family-sans-serif);\n\t\tfont-weight: 400;\n\t}\n\n\t.stepper__content__subtitle--active{\n\t\tcolor:var(--nile-colors-primary-600);\n\t}\n`;\n\nexport default [styles];"]}
@@ -37,7 +37,6 @@ export declare class NileVerticalStepperItem extends NileElement {
37
37
  * @slot This is a slot test
38
38
  */
39
39
  render(): TemplateResult;
40
- getSvg(): TemplateResult;
41
40
  }
42
41
  export default NileVerticalStepperItem;
43
42
  declare global {
@@ -74,7 +74,13 @@ let NileVerticalStepperItem = class NileVerticalStepperItem extends NileElement
74
74
  <div class="stepper-item__connector-content">
75
75
  <div class="stepper__item__bulletin">
76
76
  ${showCompletedIcon ?
77
- html `<div class="stepper__bulletin--icon">${this.getSvg()}</div>`
77
+ html `<div class="stepper__bulletin--icon">
78
+ <svg width="${iconSize}" height="${iconSize}" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
79
+ <g clip-path="url(#clip0_10902_1507)">
80
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z" fill="white"/>
81
+ </g>
82
+ </svg>
83
+ </div>`
78
84
  : html `<div class="${classMap({ 'stepper__bulletin--dot': true, 'stepper__bulletin__dot--active': isCurrent })}"></div>`}
79
85
  </div>
80
86
  <div class="stepper__item__line__container">
@@ -82,20 +88,12 @@ let NileVerticalStepperItem = class NileVerticalStepperItem extends NileElement
82
88
  </div>
83
89
  </div>
84
90
  <div class="stepper__item__content">
85
- <div class="${classMap({ 'stepper__content__title': true, "stepper__content__title--alone": !this.subtitle, 'stepper__content__title--active': isCurrent })}">${this.title}</div>
91
+ <div class="${classMap({ 'stepper__content__title': true, 'stepper__content__title--active': isCurrent })}">${this.title}</div>
86
92
  <div class="${classMap({ 'stepper__content__subtitle': true, 'stepper__content__subtitle--active': isCurrent })}">${this.subtitle}</div>
87
93
  </div>
88
94
  </div>
89
95
  `;
90
96
  }
91
- getSvg() {
92
- let iconSize = this.size == 'sm' ? 20 : this.size == 'md' ? 24 : 28;
93
- return html `
94
- <svg width="${iconSize}" height="${iconSize}" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
95
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z" fill="white"/>
96
- </svg>
97
- `;
98
- }
99
97
  };
100
98
  __decorate([
101
99
  property()