@aquera/nile-elements 0.1.26 → 0.1.28-beta-1.1

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 (86) hide show
  1. package/README.md +6 -0
  2. package/demo/index.html +0 -97
  3. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  4. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  5. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  6. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js +1 -1
  7. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js.map +1 -1
  8. package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js +1 -1
  9. package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js.map +1 -1
  10. package/dist/nile-circular-progressbar/nile-circular-progressbar.css.esm.js +23 -5
  11. package/dist/nile-circular-progressbar/nile-circular-progressbar.esm.js +22 -15
  12. package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
  13. package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
  14. package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js +1 -1
  15. package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
  16. package/dist/nile-progress-bar/nile-progress-bar.css.esm.js +15 -3
  17. package/dist/nile-progress-bar/nile-progress-bar.esm.js +3 -3
  18. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  19. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  20. package/dist/nile-stepper/nile-stepper.css.cjs.js +1 -1
  21. package/dist/nile-stepper/nile-stepper.css.cjs.js.map +1 -1
  22. package/dist/nile-stepper/nile-stepper.css.esm.js +8 -2
  23. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  24. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  25. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  26. package/dist/nile-stepper-item/nile-stepper-item.css.cjs.js +1 -1
  27. package/dist/nile-stepper-item/nile-stepper-item.css.cjs.js.map +1 -1
  28. package/dist/nile-stepper-item/nile-stepper-item.css.esm.js +37 -16
  29. package/dist/nile-stepper-item/nile-stepper-item.esm.js +20 -17
  30. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  31. package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
  32. package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
  33. package/dist/nile-tab-group/nile-tab-group.css.esm.js +3 -3
  34. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  35. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  36. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.cjs.js +1 -1
  37. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.cjs.js.map +1 -1
  38. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.css.esm.js +28 -14
  39. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +11 -13
  40. package/dist/src/nile-auto-complete/nile-auto-complete.js +0 -1
  41. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  42. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.d.ts +5 -5
  43. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js +28 -10
  44. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js.map +1 -1
  45. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.d.ts +3 -0
  46. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.js +46 -20
  47. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.js.map +1 -1
  48. package/dist/src/nile-progress-bar/nile-progress-bar.css.js +13 -1
  49. package/dist/src/nile-progress-bar/nile-progress-bar.css.js.map +1 -1
  50. package/dist/src/nile-progress-bar/nile-progress-bar.d.ts +1 -0
  51. package/dist/src/nile-progress-bar/nile-progress-bar.js +6 -1
  52. package/dist/src/nile-progress-bar/nile-progress-bar.js.map +1 -1
  53. package/dist/src/nile-stepper/nile-stepper.css.js +6 -0
  54. package/dist/src/nile-stepper/nile-stepper.css.js.map +1 -1
  55. package/dist/src/nile-stepper/nile-stepper.d.ts +2 -2
  56. package/dist/src/nile-stepper/nile-stepper.js +8 -8
  57. package/dist/src/nile-stepper/nile-stepper.js.map +1 -1
  58. package/dist/src/nile-stepper-item/nile-stepper-item.css.js +37 -16
  59. package/dist/src/nile-stepper-item/nile-stepper-item.css.js.map +1 -1
  60. package/dist/src/nile-stepper-item/nile-stepper-item.d.ts +5 -1
  61. package/dist/src/nile-stepper-item/nile-stepper-item.js +33 -14
  62. package/dist/src/nile-stepper-item/nile-stepper-item.js.map +1 -1
  63. package/dist/src/nile-tab-group/nile-tab-group.css.js +3 -3
  64. package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
  65. package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
  66. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.js +28 -14
  67. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.js.map +1 -1
  68. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.d.ts +1 -0
  69. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.js +10 -8
  70. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.js.map +1 -1
  71. package/dist/tsconfig.tsbuildinfo +1 -1
  72. package/package.json +1 -1
  73. package/src/nile-auto-complete/nile-auto-complete.ts +0 -1
  74. package/src/nile-circular-progressbar/nile-circular-progressbar.css.ts +24 -6
  75. package/src/nile-circular-progressbar/nile-circular-progressbar.ts +39 -15
  76. package/src/nile-progress-bar/nile-progress-bar.css.ts +14 -2
  77. package/src/nile-progress-bar/nile-progress-bar.ts +4 -1
  78. package/src/nile-stepper/nile-stepper.css.ts +6 -0
  79. package/src/nile-stepper/nile-stepper.ts +11 -11
  80. package/src/nile-stepper-item/nile-stepper-item.css.ts +37 -16
  81. package/src/nile-stepper-item/nile-stepper-item.ts +34 -17
  82. package/src/nile-tab-group/nile-tab-group.css.ts +3 -3
  83. package/src/nile-tab-group/nile-tab-group.ts +1 -1
  84. package/src/nile-vertical-stepper-item/nile-vertical-stepper-item.css.ts +28 -14
  85. package/src/nile-vertical-stepper-item/nile-vertical-stepper-item.ts +12 -8
  86. package/vscode-html-custom-data.json +37 -6
@@ -23,25 +23,28 @@ export const styles = css `
23
23
  }
24
24
 
25
25
  .stepper__item--sm {
26
- --item-spacing: var(--nile-spacing-spacing-lg,12px);
26
+ --item-spacing: var(--nile-spacing-spacing-md);
27
27
  --stepper-item-title-size:14px;
28
+ --stepper-item-title-margin-top:15%;
28
29
  --stepper-item-subtitle-size:14px;
29
30
  --stepper-item-text-line-height:20px;
30
31
  --circle-height:16px;
31
32
  }
32
33
 
33
34
  .stepper__item--md {
34
- --item-spacing: var(--nile-spacing-spacing-xl, 16px);
35
+ --item-spacing: var(--nile-spacing-spacing-md);
35
36
  --stepper-item-title-size:16px;
36
- --stepper-item-subtitle-size:16px;
37
- --stepper-item-text-line-heightt:24px;
37
+ --stepper-item-title-margin-top:15%;
38
+ --stepper-item-subtitle-size:14px;
39
+ --stepper-item-text-line-height:24px;
38
40
  --circle-height:20px;
39
41
  }
40
42
 
41
43
  .stepper__item--lg {
42
- --item-spacing: var(--nile-spacing-spacing-xl, 16px);
44
+ --item-spacing: var(--nile-spacing-spacing-lg);
43
45
  --stepper-item-title-size:16px;
44
- --stepper-item-subtitle-size:16px;
46
+ --stepper-item-title-margin-top:25%;
47
+ --stepper-item-subtitle-size:14px;
45
48
  --stepper-item-text-line-height:24px;
46
49
  --circle-height:28px;
47
50
  }
@@ -50,22 +53,28 @@ export const styles = css `
50
53
  display: flex;
51
54
  flex-direction: column;
52
55
  }
56
+
53
57
  .stepper__item__bulletin {
54
58
  display:grid;
55
59
  place-content:center;
56
60
  }
57
61
 
62
+ .stepper__item__bulletin {
63
+ margin-top:3px;
64
+ margin-bottom:3px;
65
+ }
66
+
58
67
  .stepper__bulletin--dot {
59
68
  width: var(--circle-height);
60
69
  aspect-ratio: 1 / 1;
61
70
  border-radius: 50%;
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);
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);
64
73
  }
65
74
 
66
75
  .stepper__bulletin__dot--active{
67
76
  background: radial-gradient(var(--nile-colors-white-base) var(--bulletin--dot--seperation), var(--nile-colors-primary-600) var(--bulletin--dot--seperation));
68
- border: 2px solid var(--nile-colors-primary-400);
77
+ border: 2px solid var(--nile-colors-primary-500);
69
78
  }
70
79
 
71
80
  .stepper__bulletin--icon {
@@ -89,7 +98,7 @@ export const styles = css `
89
98
 
90
99
  .stepper__item__line{
91
100
  height:100%;
92
- border-left: 2px solid var(--nile-colors-primary-600);
101
+ border-left: 2px solid var(--nile-colors-neutral-500);
93
102
  }
94
103
  .stepper__item__line--active{
95
104
  border-left: 2px solid var(--nile-colors-primary-600);
@@ -101,19 +110,24 @@ export const styles = css `
101
110
  justify-content:start;
102
111
  }
103
112
  .stepper__content__title {
104
- color:var(--nile-colors-gray-light-mode-700);
113
+ color:var(--nile-colors-dark-900);
105
114
  font-size: var(--stepper-item-title-size);
106
115
  line-height: var(--stepper-item-text-line-height);
107
116
  font-family: var(--nile-font-family-medium);
108
- font-weight: 600;
117
+ font-weight: 400;
118
+ }
119
+
120
+ .stepper__content__title--alone{
121
+ margin-top: var(--stepper-item-title-margin-top);
109
122
  }
110
123
 
111
124
  .stepper__content__title--active{
112
- color:var(--nile-colors-primary-700);
125
+ color:var(--nile-colors-primary-600);
126
+ font-weight: 600;
113
127
  }
114
128
 
115
129
  .stepper__content__subtitle {
116
- color:var(--nile-colors-gray-light-mode-600);
130
+ color:var(--nile-colors-dark-500);
117
131
  font-size: var(--stepper-item-subtitle-size);
118
132
  line-height: var(--stepper-item-text-line-height);
119
133
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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];"]}
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];"]}
@@ -37,6 +37,7 @@ export declare class NileVerticalStepperItem extends NileElement {
37
37
  * @slot This is a slot test
38
38
  */
39
39
  render(): TemplateResult;
40
+ getSvg(): TemplateResult;
40
41
  }
41
42
  export default NileVerticalStepperItem;
42
43
  declare global {
@@ -74,13 +74,7 @@ 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">
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>`
77
+ html `<div class="stepper__bulletin--icon">${this.getSvg()}</div>`
84
78
  : html `<div class="${classMap({ 'stepper__bulletin--dot': true, 'stepper__bulletin__dot--active': isCurrent })}"></div>`}
85
79
  </div>
86
80
  <div class="stepper__item__line__container">
@@ -88,12 +82,20 @@ let NileVerticalStepperItem = class NileVerticalStepperItem extends NileElement
88
82
  </div>
89
83
  </div>
90
84
  <div class="stepper__item__content">
91
- <div class="${classMap({ 'stepper__content__title': true, 'stepper__content__title--active': isCurrent })}">${this.title}</div>
85
+ <div class="${classMap({ 'stepper__content__title': true, "stepper__content__title--alone": !this.subtitle, 'stepper__content__title--active': isCurrent })}">${this.title}</div>
92
86
  <div class="${classMap({ 'stepper__content__subtitle': true, 'stepper__content__subtitle--active': isCurrent })}">${this.subtitle}</div>
93
87
  </div>
94
88
  </div>
95
89
  `;
96
90
  }
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
+ }
97
99
  };
98
100
  __decorate([
99
101
  property()
@@ -1 +1 @@
1
- {"version":3,"file":"nile-vertical-stepper-item.js","sourceRoot":"","sources":["../../../src/nile-vertical-stepper-item/nile-vertical-stepper-item.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,OAAO,EAAE,IAAI,EAAiC,MAAM,KAAK,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD;;;;;GAKG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,WAAW;IAAjD;;QACN,gCAAgC;QACpB,UAAK,GAAW,EAAE,CAAC;QACnB,aAAQ,GAAW,EAAE,CAAC;QAGlC,wDAAwD;QACvC,iBAAY,GAAG,KAAK,CAAC;QACrB,SAAI,GAAwB,IAAI,CAAC;QACjC,SAAI,GAAG,MAAM,CAAC;QAG/B,+DAA+D;QAC9C,YAAO,GAAG,KAAK,CAAC;QAChB,WAAM,GAAG,KAAK,CAAC;QAEf,eAAU,GAAG,KAAK,CAAC;QACnB,cAAS,GAAG,KAAK,CAAC;QAMlB,aAAQ,GAA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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, state, property } from 'lit/decorators.js';\nimport {styles} from './nile-vertical-stepper-item.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\n\n\n/**\n * Nile vertical-stepper-item component.\n *\n * @tag nile-vertical-stepper-item\n *\n */\n@customElement('nile-vertical-stepper-item')\nexport class NileVerticalStepperItem 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\t/**\n\t * The styles for nile-vertical-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\t\tif (this.isLast) this.style.setProperty('--vertical-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\n\t\tlet iconSize = this.size == 'sm'?14:this.size == 'md'?16:20;\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--default':!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-item__connector-content\">\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<g clip-path=\"url(#clip0_10902_1507)\">\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\t</g>\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<div class=\"stepper__item__line__container\">\n\t\t\t\t\t\t${this.isLast?nothing : html`<div class=\"${classMap({ 'stepper__item__line':true, 'stepper__item__line--active':suffixStepperLineActive })}\"></div>`}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"stepper__item__content\">\n\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">${this.title}</div>\n\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</div>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileVerticalStepperItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-vertical-stepper-item': NileVerticalStepperItem;\n }\n}"]}
1
+ {"version":3,"file":"nile-vertical-stepper-item.js","sourceRoot":"","sources":["../../../src/nile-vertical-stepper-item/nile-vertical-stepper-item.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,OAAO,EAAE,IAAI,EAAiC,MAAM,KAAK,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD;;;;;GAKG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,WAAW;IAAjD;;QACN,gCAAgC;QACpB,UAAK,GAAW,EAAE,CAAC;QACnB,aAAQ,GAAW,EAAE,CAAC;QAGlC,wDAAwD;QACvC,iBAAY,GAAG,KAAK,CAAC;QACrB,SAAI,GAAwB,IAAI,CAAC;QACjC,SAAI,GAAG,MAAM,CAAC;QAG/B,+DAA+D;QAC9C,YAAO,GAAG,KAAK,CAAC;QAChB,WAAM,GAAG,KAAK,CA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yB;AAChB;IAAhB,KAAK,EAAE;uDAAwB;AAEf;IAAhB,KAAK,EAAE;2DAA4B;AACnB;IAAhB,KAAK,EAAE;0DAA2B;AAClB;IAAhB,KAAK,EAAE;iEAAkC;AACzB;IAAhB,KAAK,EAAE;mEAAoC;AAC3B;IAAhB,KAAK,EAAE;6EAA8C;AAErC;IAAhB,KAAK,EAAE;sDAAuB;AACd;IAAhB,KAAK,EAAE;yDAAgC;AAvB5B,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CA+FnC;;AAED,eAAe,uBAAuB,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, state, property } from 'lit/decorators.js';\nimport {styles} from './nile-vertical-stepper-item.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\n\n\n/**\n * Nile vertical-stepper-item component.\n *\n * @tag nile-vertical-stepper-item\n *\n */\n@customElement('nile-vertical-stepper-item')\nexport class NileVerticalStepperItem 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\t/**\n\t * The styles for nile-vertical-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\t\tif (this.isLast) this.style.setProperty('--vertical-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\n\t\tlet iconSize = this.size == 'sm'?14:this.size == 'md'?16:20;\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--default':!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-item__connector-content\">\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\">${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<div class=\"stepper__item__line__container\">\n\t\t\t\t\t\t${this.isLast?nothing : html`<div class=\"${classMap({ 'stepper__item__line':true, 'stepper__item__line--active':suffixStepperLineActive })}\"></div>`}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"stepper__item__content\">\n\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__title':true, \"stepper__content__title--alone\": !this.subtitle, 'stepper__content__title--active':isCurrent })}\">${this.title}</div>\n\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</div>\n\t\t\t</div>\n\t\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\n\t/* #endregion */\n}\n\nexport default NileVerticalStepperItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-vertical-stepper-item': NileVerticalStepperItem;\n }\n}"]}