smoothly 0.1.113 → 0.1.116

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 (251) hide show
  1. package/dist/cjs/{Notice-9c2b52b7.js → Notice-839702d8.js} +34 -26
  2. package/dist/cjs/{Trigger-74bd1ee8.js → Trigger-cf376531.js} +55 -146
  3. package/dist/cjs/{index-41a36ce2.js → index-1c61bdd3.js} +27 -1
  4. package/dist/cjs/index.cjs.js +20 -8
  5. package/dist/cjs/loader.cjs.js +3 -19
  6. package/dist/cjs/{smoothly-accordion_50.cjs.entry.js → smoothly-accordion_51.cjs.entry.js} +7698 -1491
  7. package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -2
  8. package/dist/cjs/smoothly-radio-group.cjs.entry.js +2 -2
  9. package/dist/cjs/smoothly-reorder.cjs.entry.js +2 -2
  10. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +5 -5
  11. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +5 -5
  12. package/dist/cjs/smoothly.cjs.js +5 -113
  13. package/dist/collection/collection-manifest.json +3 -2
  14. package/dist/collection/components/app/style.css +6 -7
  15. package/dist/collection/components/app-demo/index.js +6 -1
  16. package/dist/collection/components/button/index.js +168 -0
  17. package/dist/collection/components/button/style.css +49 -0
  18. package/dist/collection/components/menu-options/style.css +2 -2
  19. package/dist/collection/components/picker/index.js +10 -6
  20. package/dist/collection/components/picker/style.css +14 -14
  21. package/dist/collection/components/selector/style.css +3 -3
  22. package/dist/collection/components/tab/style.css +3 -3
  23. package/dist/collection/components/table/header/style.css +5 -5
  24. package/dist/collection/components/trigger/style.css +3 -3
  25. package/dist/custom-elements/index.d.ts +6 -0
  26. package/dist/custom-elements/index.js +7785 -2974
  27. package/dist/esm/{Notice-4131b4e0.js → Notice-608b552c.js} +34 -26
  28. package/dist/esm/{Trigger-d7b181ec.js → Trigger-365408f0.js} +55 -146
  29. package/dist/esm/{index-dcb2b612.js → index-a3737440.js} +27 -1
  30. package/dist/esm/index.js +17 -4
  31. package/dist/esm/loader.js +3 -19
  32. package/dist/esm/polyfills/css-shim.js +1 -1
  33. package/dist/esm/{smoothly-accordion_50.entry.js → smoothly-accordion_51.entry.js} +7698 -1492
  34. package/dist/esm/smoothly-google-font.entry.js +2 -2
  35. package/dist/esm/smoothly-radio-group.entry.js +2 -2
  36. package/dist/esm/smoothly-reorder.entry.js +2 -2
  37. package/dist/esm/smoothly-trigger-sink.entry.js +3 -3
  38. package/dist/esm/smoothly-trigger-source.entry.js +3 -3
  39. package/dist/esm/smoothly.js +5 -113
  40. package/dist/smoothly/index.esm.js +1 -376
  41. package/dist/smoothly/p-0215b4da.entry.js +1 -0
  42. package/dist/smoothly/{p-074a0448.js → p-0cba3e3d.js} +1 -1
  43. package/dist/smoothly/p-4fa231df.entry.js +1 -0
  44. package/dist/smoothly/p-6ca0d36c.js +1 -0
  45. package/dist/smoothly/p-6f009ac9.entry.js +1 -0
  46. package/dist/smoothly/p-7a30d9b8.js +1 -0
  47. package/dist/smoothly/p-8ae38136.entry.js +1 -0
  48. package/dist/smoothly/p-993534fa.entry.js +1 -0
  49. package/dist/smoothly/p-eec1c703.entry.js +1 -0
  50. package/dist/smoothly/smoothly.esm.js +1 -125
  51. package/dist/types/components/button/index.d.ts +11 -0
  52. package/dist/types/components.d.ts +27 -0
  53. package/dist/types/stencil-public-runtime.d.ts +6 -4
  54. package/package.json +18 -18
  55. package/dist/cjs/App-339acc9b.js +0 -647
  56. package/dist/cjs/_commonjsHelpers-10109b76.js +0 -48
  57. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  58. package/dist/cjs/css-shim-88cc6900.js +0 -6
  59. package/dist/cjs/dom-95afd968.js +0 -75
  60. package/dist/cjs/generate-f9a36f25.js +0 -66
  61. package/dist/cjs/index-138c41c2.js +0 -3066
  62. package/dist/cjs/index-40d009d5.js +0 -1354
  63. package/dist/cjs/index-ac32385c.js +0 -18850
  64. package/dist/cjs/index-d66869d7.js +0 -1672
  65. package/dist/cjs/shadow-css-71d0f821.js +0 -391
  66. package/dist/cjs/smoothly-accordion-item.cjs.entry.js +0 -54
  67. package/dist/cjs/smoothly-accordion.cjs.entry.js +0 -55
  68. package/dist/cjs/smoothly-app-demo.cjs.entry.js +0 -29
  69. package/dist/cjs/smoothly-app.cjs.entry.js +0 -19
  70. package/dist/cjs/smoothly-backtotop.cjs.entry.js +0 -37
  71. package/dist/cjs/smoothly-calendar.cjs.entry.js +0 -95
  72. package/dist/cjs/smoothly-checkbox.cjs.entry.js +0 -18671
  73. package/dist/cjs/smoothly-dialog-demo.cjs.entry.js +0 -16
  74. package/dist/cjs/smoothly-dialog.cjs.entry.js +0 -38
  75. package/dist/cjs/smoothly-display-amount.cjs.entry.js +0 -59
  76. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +0 -20
  77. package/dist/cjs/smoothly-display-demo.cjs.entry.js +0 -25
  78. package/dist/cjs/smoothly-display.cjs.entry.js +0 -41
  79. package/dist/cjs/smoothly-frame.cjs.entry.js +0 -50
  80. package/dist/cjs/smoothly-icon-demo.cjs.entry.js +0 -491
  81. package/dist/cjs/smoothly-icon.cjs.entry.js +0 -52
  82. package/dist/cjs/smoothly-input-date-range.cjs.entry.js +0 -50
  83. package/dist/cjs/smoothly-input-date.cjs.entry.js +0 -44
  84. package/dist/cjs/smoothly-input-demo.cjs.entry.js +0 -19
  85. package/dist/cjs/smoothly-input-month.cjs.entry.js +0 -41
  86. package/dist/cjs/smoothly-input.cjs.entry.js +0 -202
  87. package/dist/cjs/smoothly-item.cjs.entry.js +0 -43
  88. package/dist/cjs/smoothly-menu-options.cjs.entry.js +0 -108
  89. package/dist/cjs/smoothly-notification.cjs.entry.js +0 -67
  90. package/dist/cjs/smoothly-notifier.cjs.entry.js +0 -29
  91. package/dist/cjs/smoothly-option.cjs.entry.js +0 -33
  92. package/dist/cjs/smoothly-picker.cjs.entry.js +0 -151
  93. package/dist/cjs/smoothly-popup.cjs.entry.js +0 -38
  94. package/dist/cjs/smoothly-quiet.cjs.entry.js +0 -19
  95. package/dist/cjs/smoothly-radio.cjs.entry.js +0 -28
  96. package/dist/cjs/smoothly-room.cjs.entry.js +0 -16
  97. package/dist/cjs/smoothly-select-demo.cjs.entry.js +0 -86
  98. package/dist/cjs/smoothly-select.cjs.entry.js +0 -31
  99. package/dist/cjs/smoothly-selector.cjs.entry.js +0 -119
  100. package/dist/cjs/smoothly-skeleton.cjs.entry.js +0 -27
  101. package/dist/cjs/smoothly-spinner.cjs.entry.js +0 -24
  102. package/dist/cjs/smoothly-submit.cjs.entry.js +0 -60
  103. package/dist/cjs/smoothly-svg.cjs.entry.js +0 -41
  104. package/dist/cjs/smoothly-tab-switch.cjs.entry.js +0 -32
  105. package/dist/cjs/smoothly-tab.cjs.entry.js +0 -37
  106. package/dist/cjs/smoothly-table-cell.cjs.entry.js +0 -19
  107. package/dist/cjs/smoothly-table-demo.cjs.entry.js +0 -22
  108. package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +0 -45
  109. package/dist/cjs/smoothly-table-expandable-row.cjs.entry.js +0 -32
  110. package/dist/cjs/smoothly-table-header.cjs.entry.js +0 -41
  111. package/dist/cjs/smoothly-table-row.cjs.entry.js +0 -38
  112. package/dist/cjs/smoothly-table.cjs.entry.js +0 -26
  113. package/dist/cjs/smoothly-trigger.cjs.entry.js +0 -36
  114. package/dist/cjs/smoothly-tuple.cjs.entry.js +0 -16
  115. package/dist/cjs/smoothly-urlencoded.cjs.entry.js +0 -19
  116. package/dist/esm/App-22187759.js +0 -645
  117. package/dist/esm/_commonjsHelpers-8fe71198.js +0 -44
  118. package/dist/esm/app-globals-0f993ce5.js +0 -3
  119. package/dist/esm/css-shim-c64026cd.js +0 -4
  120. package/dist/esm/dom-a712b575.js +0 -73
  121. package/dist/esm/generate-50b98474.js +0 -61
  122. package/dist/esm/index-02a70ac1.js +0 -3027
  123. package/dist/esm/index-401c6ce3.js +0 -1670
  124. package/dist/esm/index-a5a08f46.js +0 -18848
  125. package/dist/esm/index-c8b5d468.js +0 -1349
  126. package/dist/esm/shadow-css-1e16431b.js +0 -389
  127. package/dist/esm/smoothly-accordion-item.entry.js +0 -50
  128. package/dist/esm/smoothly-accordion.entry.js +0 -51
  129. package/dist/esm/smoothly-app-demo.entry.js +0 -25
  130. package/dist/esm/smoothly-app.entry.js +0 -15
  131. package/dist/esm/smoothly-backtotop.entry.js +0 -33
  132. package/dist/esm/smoothly-calendar.entry.js +0 -91
  133. package/dist/esm/smoothly-checkbox.entry.js +0 -18667
  134. package/dist/esm/smoothly-dialog-demo.entry.js +0 -12
  135. package/dist/esm/smoothly-dialog.entry.js +0 -34
  136. package/dist/esm/smoothly-display-amount.entry.js +0 -55
  137. package/dist/esm/smoothly-display-date-time.entry.js +0 -16
  138. package/dist/esm/smoothly-display-demo.entry.js +0 -21
  139. package/dist/esm/smoothly-display.entry.js +0 -37
  140. package/dist/esm/smoothly-frame.entry.js +0 -46
  141. package/dist/esm/smoothly-icon-demo.entry.js +0 -487
  142. package/dist/esm/smoothly-icon.entry.js +0 -48
  143. package/dist/esm/smoothly-input-date-range.entry.js +0 -46
  144. package/dist/esm/smoothly-input-date.entry.js +0 -40
  145. package/dist/esm/smoothly-input-demo.entry.js +0 -15
  146. package/dist/esm/smoothly-input-month.entry.js +0 -37
  147. package/dist/esm/smoothly-input.entry.js +0 -198
  148. package/dist/esm/smoothly-item.entry.js +0 -39
  149. package/dist/esm/smoothly-menu-options.entry.js +0 -104
  150. package/dist/esm/smoothly-notification.entry.js +0 -63
  151. package/dist/esm/smoothly-notifier.entry.js +0 -25
  152. package/dist/esm/smoothly-option.entry.js +0 -29
  153. package/dist/esm/smoothly-picker.entry.js +0 -147
  154. package/dist/esm/smoothly-popup.entry.js +0 -34
  155. package/dist/esm/smoothly-quiet.entry.js +0 -15
  156. package/dist/esm/smoothly-radio.entry.js +0 -24
  157. package/dist/esm/smoothly-room.entry.js +0 -12
  158. package/dist/esm/smoothly-select-demo.entry.js +0 -82
  159. package/dist/esm/smoothly-select.entry.js +0 -27
  160. package/dist/esm/smoothly-selector.entry.js +0 -115
  161. package/dist/esm/smoothly-skeleton.entry.js +0 -23
  162. package/dist/esm/smoothly-spinner.entry.js +0 -20
  163. package/dist/esm/smoothly-submit.entry.js +0 -56
  164. package/dist/esm/smoothly-svg.entry.js +0 -37
  165. package/dist/esm/smoothly-tab-switch.entry.js +0 -28
  166. package/dist/esm/smoothly-tab.entry.js +0 -33
  167. package/dist/esm/smoothly-table-cell.entry.js +0 -15
  168. package/dist/esm/smoothly-table-demo.entry.js +0 -18
  169. package/dist/esm/smoothly-table-expandable-cell.entry.js +0 -41
  170. package/dist/esm/smoothly-table-expandable-row.entry.js +0 -28
  171. package/dist/esm/smoothly-table-header.entry.js +0 -37
  172. package/dist/esm/smoothly-table-row.entry.js +0 -34
  173. package/dist/esm/smoothly-table.entry.js +0 -22
  174. package/dist/esm/smoothly-trigger.entry.js +0 -32
  175. package/dist/esm/smoothly-tuple.entry.js +0 -12
  176. package/dist/esm/smoothly-urlencoded.entry.js +0 -15
  177. package/dist/smoothly/App-22187759.js +0 -645
  178. package/dist/smoothly/GoogleFont-8474516b.js +0 -21
  179. package/dist/smoothly/_commonjsHelpers-8fe71198.js +0 -44
  180. package/dist/smoothly/app-globals-0f993ce5.js +0 -3
  181. package/dist/smoothly/css-shim-c64026cd.js +0 -4
  182. package/dist/smoothly/dom-a712b575.js +0 -73
  183. package/dist/smoothly/generate-50b98474.js +0 -61
  184. package/dist/smoothly/index-02a70ac1.js +0 -3027
  185. package/dist/smoothly/index-401c6ce3.js +0 -1670
  186. package/dist/smoothly/index-a5a08f46.js +0 -18848
  187. package/dist/smoothly/index-c8b5d468.js +0 -1349
  188. package/dist/smoothly/p-06aab261.entry.js +0 -1
  189. package/dist/smoothly/p-0c1e9588.entry.js +0 -1
  190. package/dist/smoothly/p-14232157.entry.js +0 -1
  191. package/dist/smoothly/p-19518931.js +0 -1
  192. package/dist/smoothly/p-22d4d5a7.entry.js +0 -1
  193. package/dist/smoothly/p-2cda1784.js +0 -1
  194. package/dist/smoothly/p-9fa3ab06.entry.js +0 -1
  195. package/dist/smoothly/p-b8a3e273.entry.js +0 -1
  196. package/dist/smoothly/shadow-css-1e16431b.js +0 -389
  197. package/dist/smoothly/smoothly-accordion-item.entry.js +0 -50
  198. package/dist/smoothly/smoothly-accordion.entry.js +0 -51
  199. package/dist/smoothly/smoothly-app-demo.entry.js +0 -25
  200. package/dist/smoothly/smoothly-app.entry.js +0 -15
  201. package/dist/smoothly/smoothly-backtotop.entry.js +0 -33
  202. package/dist/smoothly/smoothly-calendar.entry.js +0 -91
  203. package/dist/smoothly/smoothly-checkbox.entry.js +0 -18667
  204. package/dist/smoothly/smoothly-dialog-demo.entry.js +0 -12
  205. package/dist/smoothly/smoothly-dialog.entry.js +0 -34
  206. package/dist/smoothly/smoothly-display-amount.entry.js +0 -55
  207. package/dist/smoothly/smoothly-display-date-time.entry.js +0 -16
  208. package/dist/smoothly/smoothly-display-demo.entry.js +0 -21
  209. package/dist/smoothly/smoothly-display.entry.js +0 -37
  210. package/dist/smoothly/smoothly-frame.entry.js +0 -46
  211. package/dist/smoothly/smoothly-google-font.entry.js +0 -13
  212. package/dist/smoothly/smoothly-icon-demo.entry.js +0 -487
  213. package/dist/smoothly/smoothly-icon.entry.js +0 -48
  214. package/dist/smoothly/smoothly-input-date-range.entry.js +0 -46
  215. package/dist/smoothly/smoothly-input-date.entry.js +0 -40
  216. package/dist/smoothly/smoothly-input-demo.entry.js +0 -15
  217. package/dist/smoothly/smoothly-input-month.entry.js +0 -37
  218. package/dist/smoothly/smoothly-input.entry.js +0 -198
  219. package/dist/smoothly/smoothly-item.entry.js +0 -39
  220. package/dist/smoothly/smoothly-menu-options.entry.js +0 -104
  221. package/dist/smoothly/smoothly-notification.entry.js +0 -63
  222. package/dist/smoothly/smoothly-notifier.entry.js +0 -25
  223. package/dist/smoothly/smoothly-option.entry.js +0 -29
  224. package/dist/smoothly/smoothly-picker.entry.js +0 -147
  225. package/dist/smoothly/smoothly-popup.entry.js +0 -34
  226. package/dist/smoothly/smoothly-quiet.entry.js +0 -15
  227. package/dist/smoothly/smoothly-radio-group.entry.js +0 -16
  228. package/dist/smoothly/smoothly-radio.entry.js +0 -24
  229. package/dist/smoothly/smoothly-reorder.entry.js +0 -99
  230. package/dist/smoothly/smoothly-room.entry.js +0 -12
  231. package/dist/smoothly/smoothly-select-demo.entry.js +0 -82
  232. package/dist/smoothly/smoothly-select.entry.js +0 -27
  233. package/dist/smoothly/smoothly-selector.entry.js +0 -115
  234. package/dist/smoothly/smoothly-skeleton.entry.js +0 -23
  235. package/dist/smoothly/smoothly-spinner.entry.js +0 -20
  236. package/dist/smoothly/smoothly-submit.entry.js +0 -56
  237. package/dist/smoothly/smoothly-svg.entry.js +0 -37
  238. package/dist/smoothly/smoothly-tab-switch.entry.js +0 -28
  239. package/dist/smoothly/smoothly-tab.entry.js +0 -33
  240. package/dist/smoothly/smoothly-table-cell.entry.js +0 -15
  241. package/dist/smoothly/smoothly-table-demo.entry.js +0 -18
  242. package/dist/smoothly/smoothly-table-expandable-cell.entry.js +0 -41
  243. package/dist/smoothly/smoothly-table-expandable-row.entry.js +0 -28
  244. package/dist/smoothly/smoothly-table-header.entry.js +0 -37
  245. package/dist/smoothly/smoothly-table-row.entry.js +0 -34
  246. package/dist/smoothly/smoothly-table.entry.js +0 -22
  247. package/dist/smoothly/smoothly-trigger-sink.entry.js +0 -29
  248. package/dist/smoothly/smoothly-trigger-source.entry.js +0 -28
  249. package/dist/smoothly/smoothly-trigger.entry.js +0 -32
  250. package/dist/smoothly/smoothly-tuple.entry.js +0 -12
  251. package/dist/smoothly/smoothly-urlencoded.entry.js +0 -15
@@ -1,391 +0,0 @@
1
- 'use strict';
2
-
3
- /*
4
- Stencil Client Platform v2.10.0 | MIT Licensed | https://stenciljs.com
5
- */
6
- /**
7
- * @license
8
- * Copyright Google Inc. All Rights Reserved.
9
- *
10
- * Use of this source code is governed by an MIT-style license that can be
11
- * found in the LICENSE file at https://angular.io/license
12
- *
13
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
14
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
15
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
16
- */
17
- const safeSelector = (selector) => {
18
- const placeholders = [];
19
- let index = 0;
20
- let content;
21
- // Replaces attribute selectors with placeholders.
22
- // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
23
- selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
24
- const replaceBy = `__ph-${index}__`;
25
- placeholders.push(keep);
26
- index++;
27
- return replaceBy;
28
- });
29
- // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
30
- // WS and "+" would otherwise be interpreted as selector separators.
31
- content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
32
- const replaceBy = `__ph-${index}__`;
33
- placeholders.push(exp);
34
- index++;
35
- return pseudo + replaceBy;
36
- });
37
- const ss = {
38
- content,
39
- placeholders,
40
- };
41
- return ss;
42
- };
43
- const restoreSafeSelector = (placeholders, content) => {
44
- return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
45
- };
46
- const _polyfillHost = '-shadowcsshost';
47
- const _polyfillSlotted = '-shadowcssslotted';
48
- // note: :host-context pre-processed to -shadowcsshostcontext.
49
- const _polyfillHostContext = '-shadowcsscontext';
50
- const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
51
- const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
52
- const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
53
- const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
54
- const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
55
- const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
56
- const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
57
- const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
58
- const _polyfillHostRe = /-shadowcsshost/gim;
59
- const _colonHostRe = /:host/gim;
60
- const _colonSlottedRe = /::slotted/gim;
61
- const _colonHostContextRe = /:host-context/gim;
62
- const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
63
- const stripComments = (input) => {
64
- return input.replace(_commentRe, '');
65
- };
66
- const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
67
- const extractCommentsWithHash = (input) => {
68
- return input.match(_commentWithHashRe) || [];
69
- };
70
- const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
71
- const _curlyRe = /([{}])/g;
72
- const OPEN_CURLY = '{';
73
- const CLOSE_CURLY = '}';
74
- const BLOCK_PLACEHOLDER = '%BLOCK%';
75
- const processRules = (input, ruleCallback) => {
76
- const inputWithEscapedBlocks = escapeBlocks(input);
77
- let nextBlockIndex = 0;
78
- return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
79
- const selector = m[2];
80
- let content = '';
81
- let suffix = m[4];
82
- let contentPrefix = '';
83
- if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
84
- content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
85
- suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
86
- contentPrefix = '{';
87
- }
88
- const cssRule = {
89
- selector,
90
- content,
91
- };
92
- const rule = ruleCallback(cssRule);
93
- return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
94
- });
95
- };
96
- const escapeBlocks = (input) => {
97
- const inputParts = input.split(_curlyRe);
98
- const resultParts = [];
99
- const escapedBlocks = [];
100
- let bracketCount = 0;
101
- let currentBlockParts = [];
102
- for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
103
- const part = inputParts[partIndex];
104
- if (part === CLOSE_CURLY) {
105
- bracketCount--;
106
- }
107
- if (bracketCount > 0) {
108
- currentBlockParts.push(part);
109
- }
110
- else {
111
- if (currentBlockParts.length > 0) {
112
- escapedBlocks.push(currentBlockParts.join(''));
113
- resultParts.push(BLOCK_PLACEHOLDER);
114
- currentBlockParts = [];
115
- }
116
- resultParts.push(part);
117
- }
118
- if (part === OPEN_CURLY) {
119
- bracketCount++;
120
- }
121
- }
122
- if (currentBlockParts.length > 0) {
123
- escapedBlocks.push(currentBlockParts.join(''));
124
- resultParts.push(BLOCK_PLACEHOLDER);
125
- }
126
- const strEscapedBlocks = {
127
- escapedString: resultParts.join(''),
128
- blocks: escapedBlocks,
129
- };
130
- return strEscapedBlocks;
131
- };
132
- const insertPolyfillHostInCssText = (selector) => {
133
- selector = selector
134
- .replace(_colonHostContextRe, _polyfillHostContext)
135
- .replace(_colonHostRe, _polyfillHost)
136
- .replace(_colonSlottedRe, _polyfillSlotted);
137
- return selector;
138
- };
139
- const convertColonRule = (cssText, regExp, partReplacer) => {
140
- // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
141
- return cssText.replace(regExp, (...m) => {
142
- if (m[2]) {
143
- const parts = m[2].split(',');
144
- const r = [];
145
- for (let i = 0; i < parts.length; i++) {
146
- const p = parts[i].trim();
147
- if (!p)
148
- break;
149
- r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
150
- }
151
- return r.join(',');
152
- }
153
- else {
154
- return _polyfillHostNoCombinator + m[3];
155
- }
156
- });
157
- };
158
- const colonHostPartReplacer = (host, part, suffix) => {
159
- return host + part.replace(_polyfillHost, '') + suffix;
160
- };
161
- const convertColonHost = (cssText) => {
162
- return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
163
- };
164
- const colonHostContextPartReplacer = (host, part, suffix) => {
165
- if (part.indexOf(_polyfillHost) > -1) {
166
- return colonHostPartReplacer(host, part, suffix);
167
- }
168
- else {
169
- return host + part + suffix + ', ' + part + ' ' + host + suffix;
170
- }
171
- };
172
- const convertColonSlotted = (cssText, slotScopeId) => {
173
- const slotClass = '.' + slotScopeId + ' > ';
174
- const selectors = [];
175
- cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
176
- if (m[2]) {
177
- const compound = m[2].trim();
178
- const suffix = m[3];
179
- const slottedSelector = slotClass + compound + suffix;
180
- let prefixSelector = '';
181
- for (let i = m[4] - 1; i >= 0; i--) {
182
- const char = m[5][i];
183
- if (char === '}' || char === ',') {
184
- break;
185
- }
186
- prefixSelector = char + prefixSelector;
187
- }
188
- const orgSelector = prefixSelector + slottedSelector;
189
- const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
190
- if (orgSelector.trim() !== addedSelector.trim()) {
191
- const updatedSelector = `${addedSelector}, ${orgSelector}`;
192
- selectors.push({
193
- orgSelector,
194
- updatedSelector,
195
- });
196
- }
197
- return slottedSelector;
198
- }
199
- else {
200
- return _polyfillHostNoCombinator + m[3];
201
- }
202
- });
203
- return {
204
- selectors,
205
- cssText,
206
- };
207
- };
208
- const convertColonHostContext = (cssText) => {
209
- return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
210
- };
211
- const convertShadowDOMSelectors = (cssText) => {
212
- return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
213
- };
214
- const makeScopeMatcher = (scopeSelector) => {
215
- const lre = /\[/g;
216
- const rre = /\]/g;
217
- scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
218
- return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
219
- };
220
- const selectorNeedsScoping = (selector, scopeSelector) => {
221
- const re = makeScopeMatcher(scopeSelector);
222
- return !re.test(selector);
223
- };
224
- const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
225
- // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
226
- _polyfillHostRe.lastIndex = 0;
227
- if (_polyfillHostRe.test(selector)) {
228
- const replaceBy = `.${hostSelector}`;
229
- return selector
230
- .replace(_polyfillHostNoCombinatorRe, (_, selector) => {
231
- return selector.replace(/([^:]*)(:*)(.*)/, (_, before, colon, after) => {
232
- return before + replaceBy + colon + after;
233
- });
234
- })
235
- .replace(_polyfillHostRe, replaceBy + ' ');
236
- }
237
- return scopeSelector + ' ' + selector;
238
- };
239
- const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
240
- const isRe = /\[is=([^\]]*)\]/g;
241
- scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
242
- const className = '.' + scopeSelector;
243
- const _scopeSelectorPart = (p) => {
244
- let scopedP = p.trim();
245
- if (!scopedP) {
246
- return '';
247
- }
248
- if (p.indexOf(_polyfillHostNoCombinator) > -1) {
249
- scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
250
- }
251
- else {
252
- // remove :host since it should be unnecessary
253
- const t = p.replace(_polyfillHostRe, '');
254
- if (t.length > 0) {
255
- const matches = t.match(/([^:]*)(:*)(.*)/);
256
- if (matches) {
257
- scopedP = matches[1] + className + matches[2] + matches[3];
258
- }
259
- }
260
- }
261
- return scopedP;
262
- };
263
- const safeContent = safeSelector(selector);
264
- selector = safeContent.content;
265
- let scopedSelector = '';
266
- let startIndex = 0;
267
- let res;
268
- const sep = /( |>|\+|~(?!=))\s*/g;
269
- // If a selector appears before :host it should not be shimmed as it
270
- // matches on ancestor elements and not on elements in the host's shadow
271
- // `:host-context(div)` is transformed to
272
- // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
273
- // the `div` is not part of the component in the 2nd selectors and should not be scoped.
274
- // Historically `component-tag:host` was matching the component so we also want to preserve
275
- // this behavior to avoid breaking legacy apps (it should not match).
276
- // The behavior should be:
277
- // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
278
- // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
279
- // `:host-context(tag)`)
280
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
281
- // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
282
- let shouldScope = !hasHost;
283
- while ((res = sep.exec(selector)) !== null) {
284
- const separator = res[1];
285
- const part = selector.slice(startIndex, res.index).trim();
286
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
287
- const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
288
- scopedSelector += `${scopedPart} ${separator} `;
289
- startIndex = sep.lastIndex;
290
- }
291
- const part = selector.substring(startIndex);
292
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
293
- scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
294
- // replace the placeholders with their original values
295
- return restoreSafeSelector(safeContent.placeholders, scopedSelector);
296
- };
297
- const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
298
- return selector
299
- .split(',')
300
- .map((shallowPart) => {
301
- if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
302
- return shallowPart.trim();
303
- }
304
- if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
305
- return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
306
- }
307
- else {
308
- return shallowPart.trim();
309
- }
310
- })
311
- .join(', ');
312
- };
313
- const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
314
- return processRules(cssText, (rule) => {
315
- let selector = rule.selector;
316
- let content = rule.content;
317
- if (rule.selector[0] !== '@') {
318
- selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
319
- }
320
- else if (rule.selector.startsWith('@media') ||
321
- rule.selector.startsWith('@supports') ||
322
- rule.selector.startsWith('@page') ||
323
- rule.selector.startsWith('@document')) {
324
- content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
325
- }
326
- const cssRule = {
327
- selector: selector.replace(/\s{2,}/g, ' ').trim(),
328
- content,
329
- };
330
- return cssRule;
331
- });
332
- };
333
- const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
334
- cssText = insertPolyfillHostInCssText(cssText);
335
- cssText = convertColonHost(cssText);
336
- cssText = convertColonHostContext(cssText);
337
- const slotted = convertColonSlotted(cssText, slotScopeId);
338
- cssText = slotted.cssText;
339
- cssText = convertShadowDOMSelectors(cssText);
340
- if (scopeId) {
341
- cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
342
- }
343
- cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
344
- cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
345
- return {
346
- cssText: cssText.trim(),
347
- slottedSelectors: slotted.selectors,
348
- };
349
- };
350
- const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
351
- const hostScopeId = scopeId + '-h';
352
- const slotScopeId = scopeId + '-s';
353
- const commentsWithHash = extractCommentsWithHash(cssText);
354
- cssText = stripComments(cssText);
355
- const orgSelectors = [];
356
- if (commentOriginalSelector) {
357
- const processCommentedSelector = (rule) => {
358
- const placeholder = `/*!@___${orgSelectors.length}___*/`;
359
- const comment = `/*!@${rule.selector}*/`;
360
- orgSelectors.push({ placeholder, comment });
361
- rule.selector = placeholder + rule.selector;
362
- return rule;
363
- };
364
- cssText = processRules(cssText, (rule) => {
365
- if (rule.selector[0] !== '@') {
366
- return processCommentedSelector(rule);
367
- }
368
- else if (rule.selector.startsWith('@media') ||
369
- rule.selector.startsWith('@supports') ||
370
- rule.selector.startsWith('@page') ||
371
- rule.selector.startsWith('@document')) {
372
- rule.content = processRules(rule.content, processCommentedSelector);
373
- return rule;
374
- }
375
- return rule;
376
- });
377
- }
378
- const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
379
- cssText = [scoped.cssText, ...commentsWithHash].join('\n');
380
- if (commentOriginalSelector) {
381
- orgSelectors.forEach(({ placeholder, comment }) => {
382
- cssText = cssText.replace(placeholder, comment);
383
- });
384
- }
385
- scoped.slottedSelectors.forEach((slottedSelector) => {
386
- cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
387
- });
388
- return cssText;
389
- };
390
-
391
- exports.scopeCss = scopeCss;
@@ -1,54 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-138c41c2.js');
6
-
7
- const styleCss = ".sc-smoothly-accordion-item-h{display:block}[hidden].sc-smoothly-accordion-item-h{display:none}details.sc-smoothly-accordion-item{padding:0}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>span.sc-smoothly-accordion-item{float:right;margin:0.2em;font-size:60%}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{font-size:120%;list-style-type:none;cursor:pointer;padding:0.4em;color:rgb(var(--smoothly-text-tint))}details.sc-smoothly-accordion-item>fieldset.sc-smoothly-accordion-item{border:none;margin:0;padding:0}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item::-webkit-details-marker{display:none}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{width:1em;height:auto;margin-bottom:-0.2em;margin-right:0.4em}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-accordion-item-h:not([open])>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-text-tint))}";
8
-
9
- let SmoothlyAccordionItem = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.smoothlyAccordionItemDidLoad = index.createEvent(this, "smoothlyAccordionItemDidLoad", 7);
13
- this.smoothlyAccordionItemDidUnload = index.createEvent(this, "smoothlyAccordionItemDidUnload", 7);
14
- this.smoothlyOpen = index.createEvent(this, "smoothlyOpen", 7);
15
- this.smoothlyClose = index.createEvent(this, "smoothlyClose", 7);
16
- }
17
- openChanged(isChecked) {
18
- this.open = isChecked;
19
- if (isChecked) {
20
- this.smoothlyOpen.emit({
21
- open: true,
22
- name: this.name,
23
- });
24
- }
25
- }
26
- componentDidLoad() {
27
- const summary = this.me.getElementsByTagName("summary");
28
- if (summary.length > 0) {
29
- const onClick = (e) => {
30
- if (this.open)
31
- this.smoothlyClose.emit({ open: this.open, name: this.name });
32
- else
33
- this.open = true;
34
- e.preventDefault();
35
- };
36
- summary[0].addEventListener("click", onClick);
37
- summary[0].addEventListener("touch", onClick);
38
- }
39
- this.smoothlyAccordionItemDidLoad.emit();
40
- }
41
- disconnectedCallback() {
42
- this.smoothlyAccordionItemDidUnload.emit();
43
- }
44
- render() {
45
- return (index.h("details", { open: this.open }, index.h("summary", null, this.open ? (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { d: "M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z" }))) : (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { d: "M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z" }))), this.name, typeof this.brand == "string" ? (index.h("span", { class: this.brand.toLowerCase() }, this.brand)) : Array.isArray(this.brand) ? (this.brand.map(b => index.h("span", { class: b.toLowerCase() }, b))) : ([])), index.h("fieldset", { disabled: !this.open, name: this.name }, index.h("slot", null))));
46
- }
47
- get me() { return index.getElement(this); }
48
- static get watchers() { return {
49
- "open": ["openChanged"]
50
- }; }
51
- };
52
- SmoothlyAccordionItem.style = styleCss;
53
-
54
- exports.smoothly_accordion_item = SmoothlyAccordionItem;
@@ -1,55 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-138c41c2.js');
6
-
7
- const styleCss = "smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:0.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:0.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";
8
-
9
- let SmoothlyAccordion = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.items = [];
13
- }
14
- valueChanged(value) {
15
- this.updateItems();
16
- }
17
- handleOpenClose(event) {
18
- if (event.detail.open)
19
- this.value = event.detail.name;
20
- else if (this.value == event.detail.name)
21
- this.value = undefined;
22
- }
23
- onAccordionItemDidLoad(ev) {
24
- const item = ev.target;
25
- this.items.push(item);
26
- if (this.value == undefined && item.open)
27
- this.value = item.name;
28
- else
29
- this.updateItems();
30
- }
31
- onAccordionItemDidUnload(ev) {
32
- const index = this.items.indexOf(ev.target);
33
- if (index > -1)
34
- this.items.splice(index, 1);
35
- }
36
- componentDidLoad() {
37
- this.updateItems();
38
- }
39
- updateItems() {
40
- let hasChecked = false;
41
- for (const item of this.items)
42
- if ((item.open = !hasChecked && item.name == this.value))
43
- hasChecked = true;
44
- }
45
- render() {
46
- return [index.h("slot", null)];
47
- }
48
- get me() { return index.getElement(this); }
49
- static get watchers() { return {
50
- "value": ["valueChanged"]
51
- }; }
52
- };
53
- SmoothlyAccordion.style = styleCss;
54
-
55
- exports.smoothly_accordion = SmoothlyAccordion;
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-138c41c2.js');
6
- const App = require('./App-339acc9b.js');
7
-
8
- let SmoothlyAppDemo = class {
9
- constructor(hostRef) {
10
- index.registerInstance(this, hostRef);
11
- }
12
- render() {
13
- return (index.h(App.App, { label: "Smoothly Demo" }, index.h("a", { slot: "nav-start", href: "display" }, "Display"), index.h("a", { slot: "nav-start", href: "https://google.com" }, "External"), index.h("smoothly-room", { path: "" }, index.h("smoothly-input", { type: "text" }, "Default")), index.h("smoothly-room", { path: "input", label: "Input" }, index.h("smoothly-input-demo", null)), index.h("smoothly-room", { path: "dialog", label: "Dialog" }, index.h("smoothly-dialog-demo", null)), index.h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, index.h("smoothly-display-demo", null)), index.h("smoothly-room", { path: "table", label: "Table" }, index.h("smoothly-table-demo", null)), index.h("smoothly-room", { path: "select", label: "Select" }, index.h("smoothly-select-demo", null)), index.h("smoothly-room", { path: "icon", label: "Icon" }, index.h("smoothly-icon-demo", null)), index.h("smoothly-room", { path: "old", label: "Old", to: "select" }), index.h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, index.h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
14
- { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
15
- { name: "Cat Stevens", value: "cat", aliases: ["moew"], right: "🐈" },
16
- { name: "Noble Pig", value: "pig", right: "🐷" },
17
- { name: "Turtle Wax", value: "turtle", right: "" },
18
- { name: "Spider Man", value: "spider", right: "" },
19
- { name: "Phoenix Order Long Wooord", value: "phoenix", right: "" },
20
- { name: "Horse Back", value: "horse", right: "" },
21
- { name: "Unicorn Horn", value: "unicorn", right: "" },
22
- { name: "Talking Parrot Parrot", value: "parrot", right: "" },
23
- { name: "Hidden Dragon", value: "dragon", right: "" },
24
- { name: "Scary Kraken", value: "kraken", right: "" },
25
- ] })), index.h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, index.h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
26
- }
27
- };
28
-
29
- exports.smoothly_app_demo = SmoothlyAppDemo;
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-138c41c2.js');
6
-
7
- const styleCss = "smoothly-app{display:block;scrollbar-width:none}smoothly-app[hidden]{display:none}smoothly-app[color=default],smoothly-app:not([color]){--smoothly-app-background:var(--smoothly-default-color);--smoothly-app-color:var(--smoothly-default-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-default-shadow)}smoothly-app[color=primary]{--smoothly-app-background:var(--smoothly-primary-shade);--smoothly-app-color:var(--smoothly-primary-contrast);--smoothly-app-hover-background:var(--smoothly-secondary-color);--smoothly-app-hover-color:var(--smoothly-secondary-contrast);--smoothly-app-shadow:var(--smoothly-primary-shadow)}smoothly-app[color=secondary]{--smoothly-app-background:var(--smoothly-secondary-shade);--smoothly-app-color:var(--smoothly-secondary-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-secondary-shadow)}smoothly-app[color=tertiary],smoothly-app[color=success],smoothly-app[color=warning],smoothly-app[color=danger]{--smoothly-app-background:var(--smoothly-color-shade);--smoothly-app-color:var(--smoothly-color-contrast);--smoothly-app-hover-background:var(--smoothly-default-shade);--smoothly-app-hover-color:var(--smoothly-default-contrast);--smoothly-app-shadow:var(--smoothly-color-shadow)}smoothly-app>smoothly-notifier>header{position:fixed;top:0;left:0;width:100%;z-index:5;height:90px;background-color:rgb(var(--smoothly-app-background));color:rgba(var(--smoothly-medium-color));fill:rgb(var(--smoothly-medium-color));stroke:rgb(var(--smoothly-medium-color));display:flex;font-size:18px;justify-content:space-between;align-items:center;box-shadow:0 2px 5px 0 rgba(var(--smoothly-app-shadow));border-bottom:1px solid rgba(var(--smoothly-dark-color))}smoothly-app>smoothly-notifier>header a{color:inherit;text-decoration:inherit}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2}smoothly-app>smoothly-notifier>header>h1,smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul,smoothly-app>smoothly-notifier>header>nav>ul>li,smoothly-app>smoothly-notifier>header>nav>ul>li>*:not(a){display:flex;height:100%;margin:0}smoothly-app>smoothly-notifier>header>h1{margin-left:60px}smoothly-app>smoothly-notifier>header>h1>a{overflow:hidden;user-select:none;height:200%;display:flex;align-self:center;size:100%;background-position-y:center}smoothly-app>smoothly-notifier>header>nav>ul>li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>[slot=header]{display:flex;margin-right:34.25px;justify-content:flex-end;border:0}smoothly-app>smoothly-notifier>header>[slot=header]>a{display:flex;align-self:center;border-width:0;align-items:center;margin-right:62.25px}smoothly-app>smoothly-notifier>header>[slot=header]>a>smoothly-icon{fill:rgb(var(--smoothly-primary-shade));stroke:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-shade))}smoothly-app>smoothly-notifier>header>nav>ul>li a{display:flex;height:36px;margin:0 0.4cm;text-decoration:none}smoothly-app>smoothly-notifier>header>nav>ul>li>a{display:flex;align-items:center;align-self:center;margin-bottom:2px}smoothly-app>smoothly-notifier>header>nav>ul>li smoothly-trigger.sc-smoothly-trigger-h{border:0}smoothly-app>smoothly-notifier>header>nav>ul>li>a>smoothly-icon>svg{fill:rgb(var(--smoothly-medium-color));stroke:rgb(var(--smoothly-medium-color));color:rgb(var(--smoothly-medium-color));align-items:center;display:flex}smoothly-app>smoothly-notifier>header>nav>ul>li>a:hover>smoothly-icon>svg,smoothly-app>smoothly-notifier>header>nav>ul>li>a.active>smoothly-icon>svg{color:rgb(var(--smoothly-app-color));stroke:rgb(var(--smoothly-app-color));fill:rgb(var(--smoothly-app-color))}smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger.active a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger:hover a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li a:hover,smoothly-app>smoothly-notifier>header>nav>ul>li a.active{border-bottom:2px solid rgb(var(--smoothly-app-color));margin-bottom:0px;border-bottom-width:2px;color:rgb(var(--smoothly-app-color));stroke:rgb(var(--smoothly-app-color));fill:rgb(var(--smoothly-app-color))}smoothly-app>smoothly-notifier>main{position:relative;top:90px}";
8
-
9
- let SmoothlyApp = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- render() {
14
- return (index.h("smoothly-notifier", null, index.h("slot", null)));
15
- }
16
- };
17
- SmoothlyApp.style = styleCss;
18
-
19
- exports.smoothly_app = SmoothlyApp;
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-138c41c2.js');
6
-
7
- const styleCss = ".sc-smoothly-backtotop-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";
8
-
9
- let SmoothlyBacktotop = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.opacity = "0.5";
13
- this.bottom = "1rem";
14
- this.right = "1rem";
15
- }
16
- componentWillLoad() {
17
- window.addEventListener("scroll", () => {
18
- this.visible = document.body.scrollTop > 20 || document.documentElement.scrollTop > 20;
19
- });
20
- }
21
- render() {
22
- const cssVariables = {
23
- "--opacity": this.visible ? this.opacity : "0",
24
- "--pointer-events": this.visible ? "auto" : "none",
25
- "--bottom": this.bottom,
26
- "--right": this.right,
27
- };
28
- return (index.h(index.Host, { style: cssVariables, onClick: () => window.scrollTo({
29
- top: 0,
30
- left: 0,
31
- behavior: "smooth",
32
- }) }, index.h("smoothly-icon", { name: "chevron-up-outline" })));
33
- }
34
- };
35
- SmoothlyBacktotop.style = styleCss;
36
-
37
- exports.smoothly_backtotop = SmoothlyBacktotop;