@limetech/lime-elements 36.1.0-next.9 → 36.1.0

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 (277) hide show
  1. package/dist/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
  2. package/dist/cjs/{index-2a28697b.js → index-287e25e0.js} +424 -246
  3. package/dist/cjs/lime-elements.cjs.js +3 -3
  4. package/dist/cjs/limel-badge.cjs.entry.js +2 -1
  5. package/dist/cjs/limel-banner.cjs.entry.js +3 -1
  6. package/dist/cjs/limel-button-group.cjs.entry.js +3 -8
  7. package/dist/cjs/{limel-button.cjs.entry.js → limel-button_2.cjs.entry.js} +117 -21
  8. package/dist/cjs/limel-checkbox.cjs.entry.js +10 -26
  9. package/dist/cjs/limel-chip-set.cjs.entry.js +21 -52
  10. package/dist/cjs/{limel-linear-progress.cjs.entry.js → limel-circular-progress_2.cjs.entry.js} +34 -7
  11. package/dist/cjs/limel-code-editor.cjs.entry.js +110 -97
  12. package/dist/cjs/limel-collapsible-section.cjs.entry.js +4 -5
  13. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +5 -1
  14. package/dist/cjs/limel-color-picker.cjs.entry.js +8 -2
  15. package/dist/cjs/limel-config.cjs.entry.js +2 -1
  16. package/dist/cjs/limel-date-picker.cjs.entry.js +15 -33
  17. package/dist/cjs/limel-dialog.cjs.entry.js +4 -12
  18. package/dist/cjs/limel-dock-button.cjs.entry.js +5 -15
  19. package/dist/cjs/limel-dock.cjs.entry.js +8 -40
  20. package/dist/cjs/limel-file.cjs.entry.js +10 -24
  21. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +149 -48
  22. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
  23. package/dist/cjs/limel-form.cjs.entry.js +327 -326
  24. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-header.cjs.entry.js +5 -1
  26. package/dist/cjs/limel-icon-button.cjs.entry.js +3 -8
  27. package/dist/cjs/limel-icon.cjs.entry.js +4 -1
  28. package/dist/cjs/limel-info-tile.cjs.entry.js +95 -0
  29. package/dist/cjs/limel-input-field.cjs.entry.js +27 -60
  30. package/dist/cjs/limel-list_2.cjs.entry.js +10 -21
  31. package/dist/cjs/limel-menu-list.cjs.entry.js +7 -14
  32. package/dist/cjs/limel-picker.cjs.entry.js +14 -39
  33. package/dist/cjs/limel-popover_4.cjs.entry.js +13 -12
  34. package/dist/cjs/limel-portal.cjs.entry.js +63 -73
  35. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +4 -13
  36. package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
  37. package/dist/cjs/limel-select.cjs.entry.js +19 -31
  38. package/dist/cjs/limel-shortcut.cjs.entry.js +52 -0
  39. package/dist/cjs/limel-slider.cjs.entry.js +12 -33
  40. package/dist/cjs/limel-snackbar.cjs.entry.js +7 -5
  41. package/dist/cjs/limel-spinner.cjs.entry.js +1 -7
  42. package/dist/cjs/limel-split-button.cjs.entry.js +35 -0
  43. package/dist/cjs/limel-switch.cjs.entry.js +6 -19
  44. package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -5
  45. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -5
  46. package/dist/cjs/limel-table.cjs.entry.js +16 -28
  47. package/dist/cjs/loader.cjs.js +3 -3
  48. package/dist/cjs/{translations-5a8d7f6c.js → translations-ca7279bc.js} +6 -0
  49. package/dist/collection/collection-manifest.json +5 -2
  50. package/dist/collection/components/badge/badge.js +35 -26
  51. package/dist/collection/components/banner/banner.js +88 -83
  52. package/dist/collection/components/button/button.css +4 -1
  53. package/dist/collection/components/button/button.js +148 -160
  54. package/dist/collection/components/button-group/button-group.js +81 -79
  55. package/dist/collection/components/checkbox/checkbox.js +172 -176
  56. package/dist/collection/components/checkbox/checkbox.template.js +15 -23
  57. package/dist/collection/components/chip-set/chip-set.js +486 -528
  58. package/dist/collection/components/circular-progress/circular-progress.css +27 -5
  59. package/dist/collection/components/circular-progress/circular-progress.js +129 -113
  60. package/dist/collection/components/code-editor/code-editor.js +178 -182
  61. package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
  62. package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
  63. package/dist/collection/components/color-picker/color-picker.js +143 -131
  64. package/dist/collection/components/config/config.js +21 -17
  65. package/dist/collection/components/date-picker/date-picker.js +254 -261
  66. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +591 -166
  67. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +150 -143
  68. package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
  69. package/dist/collection/components/dialog/dialog.css +7 -1
  70. package/dist/collection/components/dialog/dialog.js +134 -142
  71. package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
  72. package/dist/collection/components/dock/dock.js +204 -233
  73. package/dist/collection/components/file/file.js +187 -191
  74. package/dist/collection/components/flex-container/flex-container.js +96 -102
  75. package/dist/collection/components/form/form.js +158 -150
  76. package/dist/collection/components/form/widgets/code-editor.js +2 -0
  77. package/dist/collection/components/grid/grid.js +11 -7
  78. package/dist/collection/components/header/header.js +89 -87
  79. package/dist/collection/components/icon/icon.js +79 -66
  80. package/dist/collection/components/icon-button/icon-button.js +85 -85
  81. package/dist/collection/components/info-tile/info-tile.css +310 -0
  82. package/dist/collection/components/info-tile/info-tile.js +294 -0
  83. package/dist/collection/components/info-tile/info-tile.types.js +1 -0
  84. package/dist/collection/components/input-field/input-field.css +3 -0
  85. package/dist/collection/components/input-field/input-field.js +482 -523
  86. package/dist/collection/components/linear-progress/linear-progress.js +57 -61
  87. package/dist/collection/components/list/list-renderer.js +3 -12
  88. package/dist/collection/components/list/list.css +11 -116
  89. package/dist/collection/components/list/list.js +167 -166
  90. package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
  91. package/dist/collection/components/menu/menu.js +183 -195
  92. package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
  93. package/dist/collection/components/menu-list/menu-list.css +11 -116
  94. package/dist/collection/components/menu-list/menu-list.js +149 -146
  95. package/dist/collection/components/menu-surface/menu-surface.js +69 -64
  96. package/dist/collection/components/picker/picker.js +412 -427
  97. package/dist/collection/components/popover/popover.js +79 -74
  98. package/dist/collection/components/popover-surface/popover-surface.js +34 -25
  99. package/dist/collection/components/portal/portal.js +145 -158
  100. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
  101. package/dist/collection/components/progress-flow/progress-flow.js +93 -101
  102. package/dist/collection/components/select/select.css +8 -7
  103. package/dist/collection/components/select/select.js +206 -211
  104. package/dist/collection/components/select/select.template.js +17 -26
  105. package/dist/collection/components/shortcut/shortcut.css +91 -0
  106. package/dist/collection/components/shortcut/shortcut.js +161 -0
  107. package/dist/collection/components/slider/slider.js +233 -264
  108. package/dist/collection/components/snackbar/snackbar.js +175 -169
  109. package/dist/collection/components/spinner/spinner.js +56 -85
  110. package/dist/collection/components/split-button/split-button.css +84 -0
  111. package/dist/collection/components/split-button/split-button.js +176 -0
  112. package/dist/collection/components/switch/switch.js +117 -129
  113. package/dist/collection/components/tab-bar/tab-bar.js +87 -92
  114. package/dist/collection/components/tab-panel/tab-panel.js +64 -61
  115. package/dist/collection/components/table/table.js +447 -457
  116. package/dist/collection/components/tooltip/tooltip-content.js +70 -61
  117. package/dist/collection/components/tooltip/tooltip.js +96 -91
  118. package/dist/collection/global/shared-types/link.types.js +1 -0
  119. package/dist/collection/style/internal/z-index.scss +0 -5
  120. package/dist/collection/translations/da.js +1 -0
  121. package/dist/collection/translations/en.js +1 -0
  122. package/dist/collection/translations/fi.js +1 -0
  123. package/dist/collection/translations/nl.js +1 -0
  124. package/dist/collection/translations/no.js +1 -0
  125. package/dist/collection/translations/sv.js +1 -0
  126. package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
  127. package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
  128. package/dist/esm/lime-elements.js +3 -3
  129. package/dist/esm/limel-badge.entry.js +2 -1
  130. package/dist/esm/limel-banner.entry.js +3 -1
  131. package/dist/esm/limel-button-group.entry.js +3 -8
  132. package/dist/esm/{limel-button.entry.js → limel-button_2.entry.js} +117 -22
  133. package/dist/esm/limel-checkbox.entry.js +10 -26
  134. package/dist/esm/limel-chip-set.entry.js +21 -52
  135. package/dist/esm/{limel-linear-progress.entry.js → limel-circular-progress_2.entry.js} +34 -8
  136. package/dist/esm/limel-code-editor.entry.js +110 -97
  137. package/dist/esm/limel-collapsible-section.entry.js +4 -5
  138. package/dist/esm/limel-color-picker-palette.entry.js +5 -1
  139. package/dist/esm/limel-color-picker.entry.js +8 -2
  140. package/dist/esm/limel-config.entry.js +2 -1
  141. package/dist/esm/limel-date-picker.entry.js +15 -33
  142. package/dist/esm/limel-dialog.entry.js +4 -12
  143. package/dist/esm/limel-dock-button.entry.js +5 -15
  144. package/dist/esm/limel-dock.entry.js +8 -40
  145. package/dist/esm/limel-file.entry.js +10 -24
  146. package/dist/esm/limel-flatpickr-adapter.entry.js +149 -48
  147. package/dist/esm/limel-flex-container.entry.js +1 -13
  148. package/dist/esm/limel-form.entry.js +327 -326
  149. package/dist/esm/limel-grid.entry.js +1 -1
  150. package/dist/esm/limel-header.entry.js +5 -1
  151. package/dist/esm/limel-icon-button.entry.js +3 -8
  152. package/dist/esm/limel-icon.entry.js +4 -1
  153. package/dist/esm/limel-info-tile.entry.js +91 -0
  154. package/dist/esm/limel-input-field.entry.js +27 -60
  155. package/dist/esm/limel-list_2.entry.js +10 -21
  156. package/dist/esm/limel-menu-list.entry.js +7 -14
  157. package/dist/esm/limel-picker.entry.js +14 -39
  158. package/dist/esm/limel-popover_4.entry.js +13 -12
  159. package/dist/esm/limel-portal.entry.js +63 -73
  160. package/dist/esm/limel-progress-flow-item.entry.js +4 -13
  161. package/dist/esm/limel-progress-flow.entry.js +4 -20
  162. package/dist/esm/limel-select.entry.js +19 -31
  163. package/dist/esm/limel-shortcut.entry.js +48 -0
  164. package/dist/esm/limel-slider.entry.js +12 -33
  165. package/dist/esm/limel-snackbar.entry.js +7 -5
  166. package/dist/esm/limel-spinner.entry.js +1 -7
  167. package/dist/esm/limel-split-button.entry.js +31 -0
  168. package/dist/esm/limel-switch.entry.js +6 -19
  169. package/dist/esm/limel-tab-bar.entry.js +2 -5
  170. package/dist/esm/limel-tab-panel.entry.js +2 -5
  171. package/dist/esm/limel-table.entry.js +16 -28
  172. package/dist/esm/loader.js +3 -3
  173. package/dist/esm/polyfills/css-shim.js +1 -1
  174. package/dist/esm/{translations-682e905e.js → translations-0d0ee941.js} +6 -0
  175. package/dist/lime-elements/lime-elements.esm.js +1 -1
  176. package/dist/lime-elements/p-059e0a64.entry.js +1 -0
  177. package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
  178. package/dist/lime-elements/p-12a7453b.entry.js +73 -0
  179. package/dist/lime-elements/p-1386d86d.entry.js +82 -0
  180. package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
  181. package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
  182. package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
  183. package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
  184. package/dist/lime-elements/{p-71efe2ca.entry.js → p-21058db5.entry.js} +4 -3
  185. package/dist/lime-elements/p-246862ec.js +1 -0
  186. package/dist/lime-elements/p-36a3b897.entry.js +1 -0
  187. package/dist/lime-elements/p-4eda8b67.entry.js +82 -0
  188. package/dist/lime-elements/{p-9af0704c.entry.js → p-4fb4e89b.entry.js} +1 -1
  189. package/dist/lime-elements/p-4fc38050.entry.js +1 -0
  190. package/dist/lime-elements/{p-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
  191. package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
  192. package/dist/lime-elements/p-5f13035a.entry.js +1 -0
  193. package/dist/lime-elements/p-5f29f099.entry.js +16 -0
  194. package/dist/lime-elements/p-600464a9.entry.js +1 -0
  195. package/dist/lime-elements/p-6534e16a.entry.js +1 -0
  196. package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
  197. package/dist/lime-elements/p-6c38b505.entry.js +1 -0
  198. package/dist/lime-elements/p-75d01713.entry.js +1 -0
  199. package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
  200. package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
  201. package/dist/lime-elements/p-84a137a7.entry.js +1 -0
  202. package/dist/lime-elements/{p-aa66620a.entry.js → p-8ab597a8.entry.js} +2 -2
  203. package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
  204. package/dist/lime-elements/p-90961075.entry.js +1 -0
  205. package/dist/lime-elements/p-9984b31c.entry.js +1 -0
  206. package/dist/lime-elements/p-9bd76629.entry.js +59 -0
  207. package/dist/lime-elements/p-9ea8dd5c.entry.js +1 -0
  208. package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
  209. package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
  210. package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
  211. package/dist/lime-elements/p-d4e788e1.js +2 -0
  212. package/dist/lime-elements/p-d512656b.entry.js +1 -0
  213. package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
  214. package/dist/lime-elements/p-de161bb5.entry.js +1 -0
  215. package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
  216. package/dist/lime-elements/p-e6f84d68.entry.js +1 -0
  217. package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
  218. package/dist/lime-elements/p-e88f7922.entry.js +1 -0
  219. package/dist/lime-elements/p-ec4c075d.entry.js +1 -0
  220. package/dist/lime-elements/p-f1ed857b.entry.js +37 -0
  221. package/dist/lime-elements/p-f33cfcb8.entry.js +11 -0
  222. package/dist/lime-elements/style/internal/z-index.scss +0 -5
  223. package/dist/loader/package.json +1 -0
  224. package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
  225. package/dist/types/components/dock/dock.d.ts +0 -1
  226. package/dist/types/components/info-tile/info-tile.d.ts +87 -0
  227. package/dist/types/components/info-tile/info-tile.types.d.ts +23 -0
  228. package/dist/types/components/picker/picker.d.ts +2 -2
  229. package/dist/types/components/shortcut/shortcut.d.ts +42 -0
  230. package/dist/types/components/split-button/split-button.d.ts +46 -0
  231. package/dist/types/components.d.ts +403 -67
  232. package/dist/types/global/shared-types/link.types.d.ts +25 -0
  233. package/dist/types/interface.d.ts +2 -0
  234. package/dist/types/stencil-public-runtime.d.ts +20 -4
  235. package/dist/types/translations/da.d.ts +1 -0
  236. package/dist/types/translations/en.d.ts +1 -0
  237. package/dist/types/translations/fi.d.ts +1 -0
  238. package/dist/types/translations/nl.d.ts +1 -0
  239. package/dist/types/translations/no.d.ts +1 -0
  240. package/dist/types/translations/sv.d.ts +1 -0
  241. package/package.json +21 -20
  242. package/dist/cjs/limel-circular-progress.cjs.entry.js +0 -44
  243. package/dist/cjs/limel-menu.cjs.entry.js +0 -137
  244. package/dist/esm/limel-circular-progress.entry.js +0 -40
  245. package/dist/esm/limel-menu.entry.js +0 -133
  246. package/dist/lime-elements/p-009de50e.entry.js +0 -1
  247. package/dist/lime-elements/p-19f72dab.entry.js +0 -1
  248. package/dist/lime-elements/p-2639edf9.entry.js +0 -73
  249. package/dist/lime-elements/p-2fc4f4ff.entry.js +0 -1
  250. package/dist/lime-elements/p-3b0c9885.entry.js +0 -37
  251. package/dist/lime-elements/p-3bf54a4c.js +0 -1
  252. package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
  253. package/dist/lime-elements/p-3f388717.entry.js +0 -11
  254. package/dist/lime-elements/p-41e902ac.entry.js +0 -126
  255. package/dist/lime-elements/p-4dc07252.entry.js +0 -82
  256. package/dist/lime-elements/p-53e01330.entry.js +0 -1
  257. package/dist/lime-elements/p-5ef52589.entry.js +0 -1
  258. package/dist/lime-elements/p-629862f4.entry.js +0 -1
  259. package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
  260. package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
  261. package/dist/lime-elements/p-93cd2268.entry.js +0 -1
  262. package/dist/lime-elements/p-95f275ab.entry.js +0 -1
  263. package/dist/lime-elements/p-9917f042.entry.js +0 -16
  264. package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
  265. package/dist/lime-elements/p-a465084b.entry.js +0 -82
  266. package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
  267. package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
  268. package/dist/lime-elements/p-b4de3380.entry.js +0 -1
  269. package/dist/lime-elements/p-c59cbd68.entry.js +0 -1
  270. package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
  271. package/dist/lime-elements/p-e98d76e8.entry.js +0 -59
  272. package/dist/lime-elements/p-e9a95b8f.js +0 -1
  273. package/dist/lime-elements/p-eec907ac.entry.js +0 -1
  274. package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
  275. package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
  276. package/dist/lime-elements/p-f41567a1.entry.js +0 -1
  277. package/dist/lime-elements/p-f5df4d4f.entry.js +0 -1
@@ -1,14 +1,16 @@
1
1
  import { MDCSnackbar } from '@material/snackbar';
2
- import { Component, Element, Event, h, Method, Prop, } from '@stencil/core';
2
+ import { h, } from '@stencil/core';
3
3
  import translate from '../../global/translations';
4
4
  /**
5
5
  * @exampleComponent limel-example-snackbar
6
6
  */
7
7
  export class Snackbar {
8
8
  constructor() {
9
- /**
10
- * Defines the language for translations.
11
- */
9
+ this.message = undefined;
10
+ this.timeout = undefined;
11
+ this.actionText = undefined;
12
+ this.dismissible = undefined;
13
+ this.multiline = undefined;
12
14
  this.language = 'en';
13
15
  this.handleMdcClosing = this.handleMdcClosing.bind(this);
14
16
  }
@@ -44,10 +46,7 @@ export class Snackbar {
44
46
  return (h("aside", { class: `
45
47
  mdc-snackbar
46
48
  ${this.multiline ? 'mdc-snackbar--stacked' : ''}
47
- ` },
48
- h("div", { class: "mdc-snackbar__surface", role: "status", "aria-relevant": "additions" },
49
- h("div", { class: "mdc-snackbar__label", "aria-atomic": "false" }),
50
- this.renderActions(this.actionText, this.dismissible))));
49
+ ` }, h("div", { class: "mdc-snackbar__surface", role: "status", "aria-relevant": "additions" }, h("div", { class: "mdc-snackbar__label", "aria-atomic": "false" }), this.renderActions(this.actionText, this.dismissible))));
51
50
  }
52
51
  handleMdcClosing(event) {
53
52
  if (event.detail.reason === 'action') {
@@ -61,16 +60,13 @@ export class Snackbar {
61
60
  if (!actionText && !dismissible) {
62
61
  return;
63
62
  }
64
- return (h("div", { class: "mdc-snackbar__actions", "aria-atomic": "true" },
65
- this.renderActionButton(actionText),
66
- this.renderDismissButton(dismissible)));
63
+ return (h("div", { class: "mdc-snackbar__actions", "aria-atomic": "true" }, this.renderActionButton(actionText), this.renderDismissButton(dismissible)));
67
64
  }
68
65
  renderActionButton(actionText) {
69
66
  if (!actionText) {
70
67
  return;
71
68
  }
72
- return (h("button", { type: "button", class: "mdc-button mdc-snackbar__action" },
73
- h("span", { class: "mdc-button__label" }, actionText)));
69
+ return (h("button", { type: "button", class: "mdc-button mdc-snackbar__action" }, h("span", { class: "mdc-button__label" }, actionText)));
74
70
  }
75
71
  renderDismissButton(dismissible) {
76
72
  if (!dismissible) {
@@ -85,170 +81,180 @@ export class Snackbar {
85
81
  }
86
82
  static get is() { return "limel-snackbar"; }
87
83
  static get encapsulation() { return "shadow"; }
88
- static get originalStyleUrls() { return {
89
- "$": ["snackbar.scss"]
90
- }; }
91
- static get styleUrls() { return {
92
- "$": ["snackbar.css"]
93
- }; }
94
- static get properties() { return {
95
- "message": {
96
- "type": "string",
97
- "mutable": false,
98
- "complexType": {
99
- "original": "string",
100
- "resolved": "string",
101
- "references": {}
102
- },
103
- "required": false,
104
- "optional": false,
105
- "docs": {
106
- "tags": [],
107
- "text": "The text message to display."
108
- },
109
- "attribute": "message",
110
- "reflect": false
111
- },
112
- "timeout": {
113
- "type": "number",
114
- "mutable": false,
115
- "complexType": {
116
- "original": "number",
117
- "resolved": "number",
118
- "references": {}
119
- },
120
- "required": false,
121
- "optional": false,
122
- "docs": {
123
- "tags": [],
124
- "text": "The amount of time in milliseconds to show the snackbar."
125
- },
126
- "attribute": "timeout",
127
- "reflect": false
128
- },
129
- "actionText": {
130
- "type": "string",
131
- "mutable": false,
132
- "complexType": {
133
- "original": "string",
134
- "resolved": "string",
135
- "references": {}
136
- },
137
- "required": false,
138
- "optional": false,
139
- "docs": {
140
- "tags": [],
141
- "text": "The text to display for the action button."
84
+ static get originalStyleUrls() {
85
+ return {
86
+ "$": ["snackbar.scss"]
87
+ };
88
+ }
89
+ static get styleUrls() {
90
+ return {
91
+ "$": ["snackbar.css"]
92
+ };
93
+ }
94
+ static get properties() {
95
+ return {
96
+ "message": {
97
+ "type": "string",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "string",
101
+ "resolved": "string",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "The text message to display."
109
+ },
110
+ "attribute": "message",
111
+ "reflect": false
142
112
  },
143
- "attribute": "action-text",
144
- "reflect": false
145
- },
146
- "dismissible": {
147
- "type": "boolean",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "boolean",
151
- "resolved": "boolean",
152
- "references": {}
113
+ "timeout": {
114
+ "type": "number",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "number",
118
+ "resolved": "number",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "The amount of time in milliseconds to show the snackbar."
126
+ },
127
+ "attribute": "timeout",
128
+ "reflect": false
153
129
  },
154
- "required": false,
155
- "optional": false,
156
- "docs": {
157
- "tags": [],
158
- "text": "True if the snackbar is dismissible, false otherwise"
130
+ "actionText": {
131
+ "type": "string",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "string",
135
+ "resolved": "string",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": false,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": "The text to display for the action button."
143
+ },
144
+ "attribute": "action-text",
145
+ "reflect": false
159
146
  },
160
- "attribute": "dismissible",
161
- "reflect": false
162
- },
163
- "multiline": {
164
- "type": "boolean",
165
- "mutable": false,
166
- "complexType": {
167
- "original": "boolean",
168
- "resolved": "boolean",
169
- "references": {}
147
+ "dismissible": {
148
+ "type": "boolean",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "boolean",
152
+ "resolved": "boolean",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": false,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": "True if the snackbar is dismissible, false otherwise"
160
+ },
161
+ "attribute": "dismissible",
162
+ "reflect": false
170
163
  },
171
- "required": false,
172
- "optional": false,
173
- "docs": {
174
- "tags": [],
175
- "text": "Whether to show the snackbar with space for multiple lines of text"
164
+ "multiline": {
165
+ "type": "boolean",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "boolean",
169
+ "resolved": "boolean",
170
+ "references": {}
171
+ },
172
+ "required": false,
173
+ "optional": false,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": "Whether to show the snackbar with space for multiple lines of text"
177
+ },
178
+ "attribute": "multiline",
179
+ "reflect": false
176
180
  },
177
- "attribute": "multiline",
178
- "reflect": false
179
- },
180
- "language": {
181
- "type": "string",
182
- "mutable": false,
183
- "complexType": {
184
- "original": "Languages",
185
- "resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
186
- "references": {
187
- "Languages": {
188
- "location": "import",
189
- "path": "@limetech/lime-elements"
181
+ "language": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "Languages",
186
+ "resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
187
+ "references": {
188
+ "Languages": {
189
+ "location": "import",
190
+ "path": "@limetech/lime-elements"
191
+ }
190
192
  }
191
- }
192
- },
193
- "required": false,
194
- "optional": false,
195
- "docs": {
196
- "tags": [],
197
- "text": "Defines the language for translations."
198
- },
199
- "attribute": "language",
200
- "reflect": false,
201
- "defaultValue": "'en'"
202
- }
203
- }; }
204
- static get events() { return [{
205
- "method": "action",
206
- "name": "action",
207
- "bubbles": true,
208
- "cancelable": true,
209
- "composed": true,
210
- "docs": {
211
- "tags": [],
212
- "text": "Emitted when the action button is pressed"
213
- },
214
- "complexType": {
215
- "original": "void",
216
- "resolved": "void",
217
- "references": {}
218
- }
219
- }, {
220
- "method": "hide",
221
- "name": "hide",
222
- "bubbles": true,
223
- "cancelable": true,
224
- "composed": true,
225
- "docs": {
226
- "tags": [],
227
- "text": "Emitted when the snackbar hides itself"
228
- },
229
- "complexType": {
230
- "original": "void",
231
- "resolved": "void",
232
- "references": {}
193
+ },
194
+ "required": false,
195
+ "optional": false,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Defines the language for translations."
199
+ },
200
+ "attribute": "language",
201
+ "reflect": false,
202
+ "defaultValue": "'en'"
233
203
  }
234
- }]; }
235
- static get methods() { return {
236
- "show": {
237
- "complexType": {
238
- "signature": "() => Promise<void>",
239
- "parameters": [],
240
- "references": {
241
- "Promise": {
242
- "location": "global"
243
- }
204
+ };
205
+ }
206
+ static get events() {
207
+ return [{
208
+ "method": "action",
209
+ "name": "action",
210
+ "bubbles": true,
211
+ "cancelable": true,
212
+ "composed": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Emitted when the action button is pressed"
244
216
  },
245
- "return": "Promise<void>"
246
- },
247
- "docs": {
248
- "text": "Show the snackbar",
249
- "tags": []
217
+ "complexType": {
218
+ "original": "void",
219
+ "resolved": "void",
220
+ "references": {}
221
+ }
222
+ }, {
223
+ "method": "hide",
224
+ "name": "hide",
225
+ "bubbles": true,
226
+ "cancelable": true,
227
+ "composed": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": "Emitted when the snackbar hides itself"
231
+ },
232
+ "complexType": {
233
+ "original": "void",
234
+ "resolved": "void",
235
+ "references": {}
236
+ }
237
+ }];
238
+ }
239
+ static get methods() {
240
+ return {
241
+ "show": {
242
+ "complexType": {
243
+ "signature": "() => Promise<void>",
244
+ "parameters": [],
245
+ "references": {
246
+ "Promise": {
247
+ "location": "global"
248
+ }
249
+ },
250
+ "return": "Promise<void>"
251
+ },
252
+ "docs": {
253
+ "text": "Show the snackbar",
254
+ "tags": []
255
+ }
250
256
  }
251
- }
252
- }; }
257
+ };
258
+ }
253
259
  static get elementRef() { return "host"; }
254
260
  }
@@ -1,4 +1,4 @@
1
- import { Component, Prop, h } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  /**
3
3
  * @exampleComponent limel-example-spinner
4
4
  * @exampleComponent limel-example-spinner-color
@@ -6,13 +6,7 @@ import { Component, Prop, h } from '@stencil/core';
6
6
  */
7
7
  export class Spinner {
8
8
  constructor() {
9
- /**
10
- * Determines the size of the spinner.
11
- */
12
9
  this.size = 'mini';
13
- /**
14
- * Gives the spinner the shape of Lime Technologies' logo
15
- */
16
10
  this.limeBranded = true;
17
11
  }
18
12
  render() {
@@ -22,88 +16,65 @@ export class Spinner {
22
16
  }
23
17
  renderSpinner() {
24
18
  if (!this.limeBranded) {
25
- return (h("g", null,
26
- h("circle", { class: "outline", cx: "12", cy: "12", r: "10" }),
27
- h("g", { class: "spinner" },
28
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
29
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
30
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
31
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
32
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
33
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
34
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
35
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
36
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
37
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }),
38
- h("circle", { class: "color", cx: "12", cy: "12", r: "10" }))));
19
+ return (h("g", null, h("circle", { class: "outline", cx: "12", cy: "12", r: "10" }), h("g", { class: "spinner" }, h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }), h("circle", { class: "color", cx: "12", cy: "12", r: "10" }))));
39
20
  }
40
- return (h("g", null,
41
- h("g", { "clip-path": "url(#mask)" },
42
- h("circle", { class: "outline thick", cx: "12", cy: "12", r: "12" }),
43
- h("g", { class: "spinner" },
44
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
45
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
46
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
47
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
48
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
49
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
50
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
51
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
52
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
53
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }),
54
- h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }))),
55
- h("clipPath", { id: "mask" },
56
- h("path", { d: "M2.166 11.248C2.166 5.04 7.058 0 13.083 0 19.108 0 24 5.04 24 11.248c0 3.229-1.307 6.548-4.533 9.306-3.908 3.343-9.15 3.8-17.254 3.249-2.405-.164-2.753-.588-1.51-1.533C4.61 19.3 2.165 17.025 2.165 11.248zm3.124 9.834c5.563.227 9.416-.246 12.397-2.76 2.432-2.05 3.482-4.56 3.51-7.074.05-4.613-3.636-8.36-8.114-8.36-4.478 0-8.114 3.746-8.114 8.36 0 2.793.607 4.737.726 6.345.092 1.252.03 2.388-.405 3.49z" }))));
21
+ return (h("g", null, h("g", { "clip-path": "url(#mask)" }, h("circle", { class: "outline thick", cx: "12", cy: "12", r: "12" }), h("g", { class: "spinner" }, h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }), h("circle", { class: "color thick", cx: "12", cy: "12", r: "12" }))), h("clipPath", { id: "mask" }, h("path", { d: "M2.166 11.248C2.166 5.04 7.058 0 13.083 0 19.108 0 24 5.04 24 11.248c0 3.229-1.307 6.548-4.533 9.306-3.908 3.343-9.15 3.8-17.254 3.249-2.405-.164-2.753-.588-1.51-1.533C4.61 19.3 2.165 17.025 2.165 11.248zm3.124 9.834c5.563.227 9.416-.246 12.397-2.76 2.432-2.05 3.482-4.56 3.51-7.074.05-4.613-3.636-8.36-8.114-8.36-4.478 0-8.114 3.746-8.114 8.36 0 2.793.607 4.737.726 6.345.092 1.252.03 2.388-.405 3.49z" }))));
57
22
  }
58
23
  static get is() { return "limel-spinner"; }
59
24
  static get encapsulation() { return "shadow"; }
60
- static get originalStyleUrls() { return {
61
- "$": ["spinner.scss"]
62
- }; }
63
- static get styleUrls() { return {
64
- "$": ["spinner.css"]
65
- }; }
66
- static get properties() { return {
67
- "size": {
68
- "type": "string",
69
- "mutable": false,
70
- "complexType": {
71
- "original": "SpinnerSize",
72
- "resolved": "\"large\" | \"medium\" | \"mini\" | \"small\" | \"x-small\"",
73
- "references": {
74
- "SpinnerSize": {
75
- "location": "import",
76
- "path": "@limetech/lime-elements"
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["spinner.scss"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["spinner.css"]
33
+ };
34
+ }
35
+ static get properties() {
36
+ return {
37
+ "size": {
38
+ "type": "string",
39
+ "mutable": false,
40
+ "complexType": {
41
+ "original": "SpinnerSize",
42
+ "resolved": "\"large\" | \"medium\" | \"mini\" | \"small\" | \"x-small\"",
43
+ "references": {
44
+ "SpinnerSize": {
45
+ "location": "import",
46
+ "path": "@limetech/lime-elements"
47
+ }
77
48
  }
78
- }
79
- },
80
- "required": false,
81
- "optional": false,
82
- "docs": {
83
- "tags": [],
84
- "text": "Determines the size of the spinner."
85
- },
86
- "attribute": "size",
87
- "reflect": true,
88
- "defaultValue": "'mini'"
89
- },
90
- "limeBranded": {
91
- "type": "boolean",
92
- "mutable": false,
93
- "complexType": {
94
- "original": "boolean",
95
- "resolved": "boolean",
96
- "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": false,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": "Determines the size of the spinner."
55
+ },
56
+ "attribute": "size",
57
+ "reflect": true,
58
+ "defaultValue": "'mini'"
97
59
  },
98
- "required": false,
99
- "optional": false,
100
- "docs": {
101
- "tags": [],
102
- "text": "Gives the spinner the shape of Lime Technologies' logo"
103
- },
104
- "attribute": "lime-branded",
105
- "reflect": false,
106
- "defaultValue": "true"
107
- }
108
- }; }
60
+ "limeBranded": {
61
+ "type": "boolean",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "boolean",
65
+ "resolved": "boolean",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": false,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": "Gives the spinner the shape of Lime Technologies' logo"
73
+ },
74
+ "attribute": "lime-branded",
75
+ "reflect": false,
76
+ "defaultValue": "true"
77
+ }
78
+ };
79
+ }
109
80
  }
@@ -0,0 +1,84 @@
1
+ /*
2
+ * This file is imported into every component!
3
+ *
4
+ * Nothing in this file may output any CSS
5
+ * without being explicitly called by outside code.
6
+ */
7
+ :host(limel-split-button.has-menu) {
8
+ --button-padding-right: 2rem;
9
+ }
10
+
11
+ :host(limel-split-button) {
12
+ display: inline-flex;
13
+ isolation: isolate;
14
+ }
15
+ :host(limel-split-button) * {
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ limel-menu {
20
+ display: flex;
21
+ justify-content: flex-end;
22
+ position: relative;
23
+ z-index: 1;
24
+ padding: 0.125rem;
25
+ margin-left: calc(var(--button-padding-right) * -1);
26
+ width: var(--button-padding-right);
27
+ }
28
+ limel-menu:before {
29
+ transition: background-color 0.5s ease;
30
+ content: "";
31
+ position: absolute;
32
+ inset: 0.375rem auto 0.375rem 0.6875rem;
33
+ width: 1px;
34
+ background-color: currentColor;
35
+ opacity: 0.2;
36
+ }
37
+ limel-menu:not([disabled]) {
38
+ color: var(--mdc-theme-primary, rgb(var(--color-teal-default)));
39
+ }
40
+ limel-menu:not([disabled]).primary {
41
+ color: var(--mdc-theme-on-primary, rgb(var(--color-white)));
42
+ }
43
+ limel-menu[disabled] {
44
+ color: rgba(var(--contrast-1600), 0.37);
45
+ }
46
+ limel-menu:hover:before, limel-menu:focus-within:before {
47
+ background-color: transparent;
48
+ }
49
+
50
+ .menu-trigger {
51
+ all: unset;
52
+ text-align: center;
53
+ font-weight: bold;
54
+ border-radius: 0.125rem;
55
+ height: 100%;
56
+ width: 1rem;
57
+ }
58
+ .menu-trigger:not(:disabled) {
59
+ transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
60
+ cursor: pointer;
61
+ }
62
+ .menu-trigger:not(:disabled):hover {
63
+ box-shadow: var(--button-shadow-hovered);
64
+ }
65
+ .menu-trigger:not(:disabled):active {
66
+ box-shadow: var(--button-shadow-pressed);
67
+ transform: translate3d(0, 0.08rem, 0);
68
+ }
69
+ .menu-trigger:not(:disabled):focus {
70
+ outline: none;
71
+ }
72
+ .menu-trigger:not(:disabled):focus-visible {
73
+ outline: none;
74
+ box-shadow: var(--shadow-depth-8-focused);
75
+ }
76
+ .menu-trigger:not(:disabled):focus-visible, .menu-trigger:not(:disabled):hover {
77
+ background-color: rgb(var(--color-white), 0.1);
78
+ }
79
+ .menu-trigger:before {
80
+ content: "";
81
+ position: absolute;
82
+ inset: -0.25rem;
83
+ z-index: -1;
84
+ }