@postnord/pn-marketweb-components 1.0.50 → 2.0.2-beta1

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 (224) hide show
  1. package/cjs/{index-5d2abef7.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-b6e46a26.js → index-e3e27c79.js} +3 -0
  3. package/cjs/loader.cjs.js +2 -2
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  6. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  7. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  8. package/cjs/pn-find-price-result.cjs.entry.js +5 -5
  9. package/cjs/{pn-find-price-store-d1977b2e.js → pn-find-price-store-6aab7fd0.js} +1 -2
  10. package/cjs/pn-find-price.cjs.entry.js +9 -12
  11. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  12. package/cjs/{pn-find-service-and-price-store-2d7dd8e3.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
  13. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  14. package/cjs/pn-language-selector_9.cjs.entry.js +3 -3
  15. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  16. package/cjs/{pn-mainnav-store-bbe3a1cf.js → pn-mainnav-store-61a75ea0.js} +1 -1
  17. package/cjs/pn-market-web-components.cjs.js +2 -2
  18. package/cjs/pn-marketweb-input.cjs.entry.js +76 -0
  19. package/cjs/pn-marketweb-search.cjs.entry.js +103 -0
  20. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  21. package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
  22. package/cjs/pn-pex-pricefinder.cjs.entry.js +11 -3
  23. package/cjs/pn-product-card_3.cjs.entry.js +9 -9
  24. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  25. package/cjs/{pn-product-pricelist-store-c88813f7.js → pn-product-pricelist-store-86310b5a.js} +1 -1
  26. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  27. package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
  28. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  29. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  30. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  31. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  32. package/cjs/{pn-sidenav-store-a753d3d7.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  33. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  34. package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
  35. package/collection/collection-manifest.json +2 -1
  36. package/collection/components/input/pn-marketweb-input/marketweb-input.stories.js +51 -0
  37. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +156 -0
  38. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +412 -0
  39. package/collection/components/input/{pn-filter-search/search-field.stories.js → pn-marketweb-search/marketweb-search-field.stories.js} +15 -3
  40. package/collection/components/input/{pn-filter-search/pn-filter-search.css → pn-marketweb-search/pn-marketweb-search.css} +22 -17
  41. package/collection/components/input/{pn-filter-search/pn-filter-search.js → pn-marketweb-search/pn-marketweb-search.js} +67 -9
  42. package/collection/components/widgets/pn-find-price/img/clouds.svg +5 -0
  43. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +2 -2
  44. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +0 -1
  45. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +1 -6
  46. package/collection/components/widgets/pn-find-price/pn-find-price.css +17 -4
  47. package/collection/components/widgets/pn-find-price/pn-find-price.js +4 -3
  48. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +10 -2
  49. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +6 -7
  50. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +2 -3
  51. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +22 -5
  52. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +1 -1
  53. package/collection/components/widgets/pn-product-card/pn-product-card.css +88 -30
  54. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  55. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +1 -0
  56. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  57. package/custom-elements/index.d.ts +12 -6
  58. package/custom-elements/index.js +201 -91
  59. package/esm/{index-02847864.js → index-5397620b.js} +4 -1
  60. package/esm/{index-1978107a.js → index-7b21ecff.js} +1 -1
  61. package/esm/loader.js +2 -2
  62. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  63. package/esm/pn-bonus-progressbar.entry.js +1 -1
  64. package/esm/pn-choice-button.entry.js +1 -1
  65. package/esm/pn-filter-checkbox.entry.js +1 -1
  66. package/esm/pn-find-price-result.entry.js +5 -5
  67. package/esm/{pn-find-price-store-b2f18af4.js → pn-find-price-store-3301df0a.js} +1 -2
  68. package/esm/pn-find-price.entry.js +9 -12
  69. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  70. package/esm/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  71. package/esm/pn-find-service-and-price.entry.js +3 -3
  72. package/esm/pn-language-selector_9.entry.js +3 -3
  73. package/esm/pn-mainnav-link.entry.js +3 -3
  74. package/esm/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  75. package/esm/pn-market-web-components.js +2 -2
  76. package/esm/pn-marketweb-input.entry.js +72 -0
  77. package/esm/pn-marketweb-search.entry.js +99 -0
  78. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  79. package/esm/pn-marketweb-siteheader.entry.js +1 -1
  80. package/esm/pn-pex-pricefinder.entry.js +11 -3
  81. package/esm/pn-product-card_3.entry.js +9 -9
  82. package/esm/pn-product-pricelist-result.entry.js +3 -3
  83. package/esm/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  84. package/esm/pn-product-pricelist.entry.js +4 -4
  85. package/esm/pn-product-tile_3.entry.js +1 -1
  86. package/esm/pn-profile-selector-option.entry.js +1 -1
  87. package/esm/pn-profile-selector.entry.js +1 -1
  88. package/esm/pn-sidenav-level.entry.js +3 -3
  89. package/esm/pn-sidenav-link.entry.js +3 -3
  90. package/esm/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  91. package/esm/pn-sidenav.entry.js +3 -3
  92. package/esm/pn-site-footer_2.entry.js +1 -1
  93. package/esm-es5/{index-02847864.js → index-5397620b.js} +1 -1
  94. package/esm-es5/{index-1978107a.js → index-7b21ecff.js} +1 -1
  95. package/esm-es5/loader.js +1 -1
  96. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  97. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  98. package/esm-es5/pn-choice-button.entry.js +1 -1
  99. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  100. package/esm-es5/pn-find-price-result.entry.js +1 -1
  101. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  102. package/esm-es5/pn-find-price.entry.js +1 -1
  103. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  104. package/esm-es5/{pn-find-service-and-price-store-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  105. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  106. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  107. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  108. package/esm-es5/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
  109. package/esm-es5/pn-market-web-components.js +1 -1
  110. package/esm-es5/pn-marketweb-input.entry.js +1 -0
  111. package/esm-es5/pn-marketweb-search.entry.js +1 -0
  112. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  113. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  114. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  115. package/esm-es5/pn-product-card_3.entry.js +1 -1
  116. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  117. package/esm-es5/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
  118. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  119. package/esm-es5/pn-product-tile_3.entry.js +1 -1
  120. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  121. package/esm-es5/pn-profile-selector.entry.js +1 -1
  122. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  123. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  124. package/esm-es5/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  125. package/esm-es5/pn-sidenav.entry.js +1 -1
  126. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  127. package/package.json +1 -1
  128. package/pn-market-web-components/{p-0f17a915.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
  129. package/pn-market-web-components/{p-3163e45b.system.js → p-02ea55ad.system.js} +1 -1
  130. package/pn-market-web-components/{p-6926ecdf.entry.js → p-045a349a.entry.js} +1 -1
  131. package/pn-market-web-components/p-07cc9f6b.system.entry.js +1 -0
  132. package/pn-market-web-components/{p-2f899d96.js → p-0cacf9fb.js} +1 -1
  133. package/pn-market-web-components/{p-b99c5d79.entry.js → p-10b95894.entry.js} +1 -1
  134. package/pn-market-web-components/{p-0e4a8305.system.entry.js → p-13eb4c66.system.entry.js} +1 -1
  135. package/pn-market-web-components/{p-ad2c41d8.entry.js → p-15112837.entry.js} +1 -1
  136. package/pn-market-web-components/{p-89907168.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  137. package/pn-market-web-components/{p-75654937.entry.js → p-227e1d46.entry.js} +1 -1
  138. package/pn-market-web-components/{p-3e3fed19.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  139. package/pn-market-web-components/{p-0a95c2b9.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
  140. package/pn-market-web-components/p-29d5e118.entry.js +1 -0
  141. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  142. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  143. package/pn-market-web-components/p-3af9dfc5.system.entry.js +1 -0
  144. package/pn-market-web-components/{p-8bb99125.system.entry.js → p-401b57b1.system.entry.js} +1 -1
  145. package/pn-market-web-components/{p-f2ca2961.entry.js → p-40264b65.entry.js} +1 -1
  146. package/pn-market-web-components/{p-c932f5f5.entry.js → p-51df9292.entry.js} +1 -1
  147. package/pn-market-web-components/{p-c089e9b5.system.entry.js → p-57cc0679.system.entry.js} +1 -1
  148. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  149. package/pn-market-web-components/{p-b0a2b362.entry.js → p-5c41acb2.entry.js} +1 -1
  150. package/pn-market-web-components/p-5d587499.js +1 -0
  151. package/pn-market-web-components/{p-8a3c3674.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  152. package/pn-market-web-components/p-67887512.system.js +1 -0
  153. package/pn-market-web-components/{p-465baa55.entry.js → p-715d1ef7.entry.js} +1 -1
  154. package/pn-market-web-components/p-72195bd8.entry.js +1 -0
  155. package/pn-market-web-components/{p-bb69b9ff.entry.js → p-774b7a9f.entry.js} +1 -1
  156. package/pn-market-web-components/{p-b14d20bd.system.entry.js → p-7b93d570.system.entry.js} +1 -1
  157. package/pn-market-web-components/{p-bc4da3dd.entry.js → p-7d75ea68.entry.js} +1 -1
  158. package/pn-market-web-components/p-7e494e9d.system.entry.js +1 -0
  159. package/pn-market-web-components/p-80dce81e.system.entry.js +1 -0
  160. package/pn-market-web-components/{p-ec78fe82.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
  161. package/pn-market-web-components/{p-27168bcc.entry.js → p-81d764a0.entry.js} +1 -1
  162. package/pn-market-web-components/{p-aa625cb0.system.js → p-825b8fb8.system.js} +1 -1
  163. package/pn-market-web-components/{p-271f42e8.js → p-84699999.js} +1 -1
  164. package/pn-market-web-components/{p-5629de79.entry.js → p-86b271f4.entry.js} +1 -1
  165. package/pn-market-web-components/p-86f06e26.js +1 -0
  166. package/pn-market-web-components/{p-547a9203.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
  167. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  168. package/pn-market-web-components/p-9e8c5793.system.entry.js +1 -0
  169. package/pn-market-web-components/p-9edaf6b6.system.entry.js +1 -0
  170. package/pn-market-web-components/p-a5bc1695.system.js +1 -0
  171. package/pn-market-web-components/{p-b5fbf807.system.js → p-a5f75560.system.js} +1 -1
  172. package/pn-market-web-components/{p-fed64b11.entry.js → p-adc639c8.entry.js} +1 -1
  173. package/pn-market-web-components/{p-aa59101e.system.js → p-add7d76c.system.js} +1 -1
  174. package/pn-market-web-components/{p-99d6a75c.js → p-ae2bd55f.js} +1 -1
  175. package/pn-market-web-components/{p-c74ee774.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
  176. package/pn-market-web-components/{p-d71027bc.entry.js → p-b4f0228c.entry.js} +1 -1
  177. package/pn-market-web-components/p-bb626ab4.js +1 -0
  178. package/pn-market-web-components/{p-5cb8ae86.entry.js → p-c0c52dc6.entry.js} +1 -1
  179. package/pn-market-web-components/{p-415b6c13.entry.js → p-c240b614.entry.js} +1 -1
  180. package/pn-market-web-components/p-c34db063.entry.js +1 -0
  181. package/pn-market-web-components/{p-3bef52c8.system.entry.js → p-c418bb48.system.entry.js} +1 -1
  182. package/pn-market-web-components/{p-07733b06.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
  183. package/pn-market-web-components/{p-15a18941.system.entry.js → p-d7776336.system.entry.js} +1 -1
  184. package/pn-market-web-components/{p-f2307b30.entry.js → p-e056d2c6.entry.js} +1 -1
  185. package/pn-market-web-components/{p-0c1d92ed.entry.js → p-e474b831.entry.js} +1 -1
  186. package/pn-market-web-components/p-e5fffc92.entry.js +1 -0
  187. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  188. package/pn-market-web-components/{p-df87670c.system.entry.js → p-f4cb2104.system.entry.js} +1 -1
  189. package/pn-market-web-components/{p-7a14e808.entry.js → p-f774e2cc.entry.js} +1 -1
  190. package/pn-market-web-components/{p-cf058789.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
  191. package/pn-market-web-components/{p-8f309dad.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  192. package/pn-market-web-components/p-fc6a09e0.system.entry.js +1 -0
  193. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  194. package/pn-market-web-components/pn-market-web-components.js +1 -1
  195. package/types/components/input/pn-marketweb-input/pn-marketweb-input.d.ts +32 -0
  196. package/types/components/input/{pn-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
  197. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +0 -2
  198. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +0 -5
  199. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +0 -1
  200. package/types/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.d.ts +1 -0
  201. package/types/components.d.ts +146 -65
  202. package/cjs/pn-filter-search.cjs.entry.js +0 -69
  203. package/esm/pn-filter-search.entry.js +0 -65
  204. package/esm-es5/pn-filter-search.entry.js +0 -1
  205. package/esm-es5/pn-find-price-store-b2f18af4.js +0 -1
  206. package/pn-market-web-components/p-0065e309.system.js +0 -1
  207. package/pn-market-web-components/p-1662a0e9.system.entry.js +0 -1
  208. package/pn-market-web-components/p-1663fe37.entry.js +0 -1
  209. package/pn-market-web-components/p-5ff39f75.system.entry.js +0 -1
  210. package/pn-market-web-components/p-6855204a.entry.js +0 -1
  211. package/pn-market-web-components/p-90c11ea0.system.entry.js +0 -1
  212. package/pn-market-web-components/p-9ae0afa8.js +0 -1
  213. package/pn-market-web-components/p-9d2ff751.system.entry.js +0 -1
  214. package/pn-market-web-components/p-a110366f.entry.js +0 -1
  215. package/pn-market-web-components/p-af1ac826.js +0 -1
  216. package/pn-market-web-components/p-b429c99d.system.js +0 -1
  217. package/pn-market-web-components/p-b6769599.entry.js +0 -1
  218. package/pn-market-web-components/p-b7b78fb0.system.entry.js +0 -1
  219. package/pn-market-web-components/p-d30c5783.system.entry.js +0 -1
  220. package/pn-market-web-components/p-d944756c.system.js +0 -1
  221. package/pn-market-web-components/p-dde0c959.js +0 -1
  222. package/pn-market-web-components/p-e1a8308e.system.js +0 -1
  223. package/pn-market-web-components/p-e422ad85.js +0 -1
  224. package/pn-market-web-components/p-ebc83f89.entry.js +0 -1
@@ -0,0 +1,103 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e3e27c79.js');
6
+
7
+ const pnMarketwebSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host[list] :host>.input-container .button-container{display:none}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:#FFFFFF;border:none;color:#005D92;padding:0.3rem;margin:0;font-size:0.875em;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent;-webkit-tap-highlight-color:transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host>.input-container button:hover,:host>.input-container button:focus{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host .searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host .searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none input,:host .button-icon-inline input{padding-right:3.3em}:host .button-none pn-spinner,:host .button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host .button-none button.search,:host .button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.loading button,:host .button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-none.loading pn-spinner,:host .button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
8
+
9
+ let PnMarketwebSearch = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.search = index.createEvent(this, "search", 7);
13
+ this.update = index.createEvent(this, "update", 7);
14
+ this.disabled = false;
15
+ this.placeholder = null;
16
+ this.inputid = null;
17
+ this.name = null;
18
+ this.autocomplete = null;
19
+ this.list = null;
20
+ this.value = null;
21
+ /** Label for the button */
22
+ this.label = null;
23
+ /** Loading animation */
24
+ this.loading = false;
25
+ /** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
26
+ this.button = '';
27
+ /** Light instead of dark search button */
28
+ this.light = false;
29
+ this.suggestionObserver = null;
30
+ this.hasClonedInput = false;
31
+ this.listSuggestion = [];
32
+ }
33
+ inputHandler() {
34
+ this.update.emit(this.value);
35
+ }
36
+ emitSearch(e) {
37
+ if (e.type === 'click' ||
38
+ (e.type === 'keydown' && e.key === 'Enter')) {
39
+ // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
40
+ e.preventDefault();
41
+ this.search.emit(this.value);
42
+ }
43
+ }
44
+ setVal(e) {
45
+ this.value = e.target.value;
46
+ }
47
+ clearInput() {
48
+ this.value = '';
49
+ this.update.emit(this.value);
50
+ this.hostElement.querySelector('input').focus();
51
+ }
52
+ getClassNames() {
53
+ let classNames = '';
54
+ const buttonTypes = ['none', 'icon', 'icon-inline'];
55
+ if (this.value)
56
+ classNames += 'searching ';
57
+ if (this.loading)
58
+ classNames += 'loading ';
59
+ if (buttonTypes.includes(this.button))
60
+ classNames += `button-${this.button} `;
61
+ return classNames;
62
+ }
63
+ componentWillRender() {
64
+ this.cloneListContent();
65
+ this.autocompleteEventBinding();
66
+ }
67
+ onSuggestionUpdate() {
68
+ this.cloneListContent();
69
+ }
70
+ autocompleteEventBinding() {
71
+ if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
72
+ return;
73
+ }
74
+ const targetNode = document.getElementById(this.list);
75
+ this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
76
+ this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
77
+ }
78
+ cloneListContent() {
79
+ if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
80
+ return;
81
+ }
82
+ const options = [...document.getElementById(this.list).querySelectorAll('option')];
83
+ this.listSuggestion = options.map((item) => {
84
+ if (item.hasAttribute('value')) {
85
+ return item.getAttribute('value');
86
+ }
87
+ return item.innerText;
88
+ });
89
+ }
90
+ render() {
91
+ return (index.h(index.Host, null, index.h("div", { class: `input-container ${this.getClassNames()}`, "data-haslist": (this.list !== null) + '' }, index.h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, list: this.list, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), index.h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
92
+ index.h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, index.h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
93
+ index.h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, index.h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && index.h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
94
+ index.h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label), (this.list) &&
95
+ index.h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
96
+ return (index.h("option", null, item));
97
+ }))));
98
+ }
99
+ get hostElement() { return index.getElement(this); }
100
+ };
101
+ PnMarketwebSearch.style = pnMarketwebSearchCss;
102
+
103
+ exports.pn_marketweb_search = PnMarketwebSearch;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
  const FetchHelper = require('./FetchHelper-33d3c535.js');
7
7
 
8
8
  const translations = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
  const FetchHelper = require('./FetchHelper-33d3c535.js');
7
7
  const MarketWebLoginManager = require('./MarketWebLoginManager-3c2f4423.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const translations = {
8
8
  'sv': {
@@ -42,16 +42,24 @@ let PnPexPricefinder = class {
42
42
  this.fromzip = null;
43
43
  this.tozip = null;
44
44
  this.weight = 100;
45
- this.when = (new Date()).toISOString().split('T')[0];
45
+ this.when = '';
46
46
  this.response = null;
47
47
  }
48
48
  componentWillLoad() {
49
49
  this.init();
50
50
  }
51
51
  async init() {
52
+ this.setInitialTime();
52
53
  this.checkParameters();
53
54
  this.setLanguage();
54
55
  }
56
+ setInitialTime() {
57
+ const initialTime = (new Date());
58
+ initialTime.setHours(initialTime.getHours() + 1);
59
+ initialTime.setMinutes(0);
60
+ const splitTime = initialTime.toLocaleString('sv', { timeZoneName: 'short' }).split(' ');
61
+ this.when = `${splitTime[0]}T${splitTime[1].substring(0, 5)}`;
62
+ }
55
63
  checkParameters() {
56
64
  const params = new URLSearchParams(window.location.href);
57
65
  if (!params) {
@@ -112,7 +120,7 @@ let PnPexPricefinder = class {
112
120
  console.error('onFetchError(error', error);
113
121
  }
114
122
  render() {
115
- return (index.h(index.Host, null, index.h("div", { class: "pex-pricefinder-top" }, index.h("pn-illustration", { illustration: "PEX-truck" }), index.h("h2", null, this.i18n.heading)), index.h("form", { method: "get", action: "", class: "pex-pricefinder-form", onSubmit: this.onSubmit.bind(this) }, index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelFrom, inputid: "fromzip", name: "fromzip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.fromzip }), index.h("pn-input", { type: "number", label: this.i18n.labelTo, inputid: "tozip", name: "tozip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.tozip }))), index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }), index.h("div", { class: "datepicker" }, index.h("label", { htmlFor: "when" }, this.i18n.labelWhen), index.h("pn-date-picker", { inputid: "when", name: "when", "start-of-week": "1", min: (new Date()).toISOString().split('T')[0], language: this.language, value: this.when })))), index.h("fieldset", null, index.h("div", null, index.h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))), this.response ? (index.h("div", { class: "pex-pricefinder-response" }, index.h("strong", null, this.response.data.value, " ", this.currency))) : null));
123
+ return (index.h(index.Host, null, index.h("div", { class: "pex-pricefinder-top" }, index.h("pn-illustration", { illustration: "PEX-truck" }), index.h("h2", null, this.i18n.heading)), index.h("form", { method: "get", action: "", class: "pex-pricefinder-form", onSubmit: this.onSubmit.bind(this) }, index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelFrom, inputid: "fromzip", name: "fromzip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.fromzip }), index.h("pn-input", { type: "number", label: this.i18n.labelTo, inputid: "tozip", name: "tozip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.tozip }))), index.h("fieldset", null, index.h("div", null, index.h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }), index.h("div", { class: "datepicker" }, index.h("label", { htmlFor: "when" }, this.i18n.labelWhen), index.h("pn-marketweb-input", { inputid: "when", name: "when", type: "datetime-local", min: (new Date()).toISOString().split('T')[0], value: this.when })))), index.h("fieldset", null, index.h("div", null, index.h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))), this.response ? (index.h("div", { class: "pex-pricefinder-response" }, index.h("strong", null, this.response.data.value, " ", this.currency))) : null));
116
124
  }
117
125
  get hostElement() { return index.getElement(this); }
118
126
  };
@@ -2,31 +2,31 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
- const pnProductCardCss = "pn-product-card{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.5em}pn-product-card [slot=title]>[slot=Biligast]{color:#005E41;background:#DCF6E7;border-radius:0.37em;width:6.3em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Biligast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92;border-radius:0.37em;width:7em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Snabbast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card [slot=cardprice]{display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 2em 0.5em 0}";
7
+ const pnProductCardCss = "pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title]>[slot]{border-radius:0.4rem;height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem}pn-product-card [slot=title]>[slot] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Billigast]{color:#005E41;background:#DCF6E7}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card .cardcontent .description :first-child{max-width:calc(100% - 10rem)}@media screen and (min-width: 48em){pn-product-card .cardcontent .description :first-child{max-width:none}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 2em 0.5em 0}";
8
8
 
9
9
  let PnProductCard = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  }
13
13
  render() {
14
- return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "cardcontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "title" }), index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" }), index.h("slot", { name: "additionalUSP" })), index.h("div", null, index.h("slot", { name: "cardprice" })))));
14
+ return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "cardcontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "title" }), index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" }), index.h("slot", { name: "additionalUSP" })), index.h("div", { class: "cardprice" }, index.h("slot", { name: "cardprice" })))));
15
15
  }
16
16
  };
17
17
  PnProductCard.style = pnProductCardCss;
18
18
 
19
- const pnProductCardInfoCss = "pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent #sp{width:5em}[slot=formatPre]{font-family:\"PostNordSans\", \"Verdana\";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
19
+ const pnProductCardInfoCss = "pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}[slot=formatPre]{font-family:\"PostNordSans\", \"Verdana\";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
20
20
 
21
21
  let PnProductCardInfo = class {
22
22
  constructor(hostRef) {
23
23
  index.registerInstance(this, hostRef);
24
24
  }
25
25
  render() {
26
- return (this.label) ? (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, (this.text) ? (index.h("pre", { slot: "formatPre" }, this.text)) : null))) : (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, index.h("div", null, index.h("strong", null, "Paket:"), this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
26
+ return (this.label) ? (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, (this.text) ? (index.h("pre", { slot: "formatPre" }, this.text)) : null))) : (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, index.h("div", { class: "cardinfocontent-item" }, index.h("strong", null, "Paket:"), this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
27
27
  index.h("p", null, index.h("strong", null, item.split(":")[0] + ": "), " ", item.split(":")[1]) :
28
- index.h("p", null, item)))), index.h("div", { id: "sp" }), (this.rulle) ?
29
- (index.h("div", null, index.h("strong", null, "Rulle:"), this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
28
+ index.h("p", null, item)))), (this.rulle) ?
29
+ (index.h("div", { class: "cardinfocontent-item" }, index.h("strong", null, "Rulle:"), this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
30
30
  index.h("p", null, index.h("strong", null, item.split(":")[0] + ": "), " ", item.split(":")[1]) :
31
31
  index.h("p", null, item))))) : null)));
32
32
  }
@@ -34,7 +34,7 @@ let PnProductCardInfo = class {
34
34
  index.h("pn-icon", { symbol: "align-center", small: "false", color: "black" });
35
35
  PnProductCardInfo.style = pnProductCardInfoCss;
36
36
 
37
- const pnProductCardPriceCss = "pn-product-card-price{margin-top:1em;white-space:nowrap;text-align:center}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price pn-button{width:12.8em;margin-bottom:1em;margin-top:0.5em;font-size:1.25}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.5em}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";
37
+ const pnProductCardPriceCss = "pn-product-card-price{margin-top:1.6rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price pn-button{min-width:12.8em;margin-top:0.8rem;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price h3{-ms-flex-order:1;order:1}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";
38
38
 
39
39
  let PnProductCardPrice = class {
40
40
  constructor(hostRef) {
@@ -44,7 +44,7 @@ let PnProductCardPrice = class {
44
44
  if (!this.amount) {
45
45
  return;
46
46
  }
47
- return (this.url) ? (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, " " + this.currency)) : null), (this.note) ? (index.h("p", null, this.note)) : null, (this.label) ? (index.h("pn-button", { small: "true", icon: "arrow-right", appearance: "secondary", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, this.currency)) : null)));
47
+ return (this.url) ? (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, " " + this.currency)) : null), (this.note) ? (index.h("p", null, this.note)) : null, (this.label) ? (index.h("pn-button", { small: "true", icon: "open-in-new", appearance: "light", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, this.currency)) : null)));
48
48
  }
49
49
  };
50
50
  PnProductCardPrice.style = pnProductCardPriceCss;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
6
- const pnProductPricelistStore = require('./pn-product-pricelist-store-c88813f7.js');
7
- require('./index-5d2abef7.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnProductPricelistStore = require('./pn-product-pricelist-store-86310b5a.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const pnProductPricelistResultCss = "";
10
10
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-5d2abef7.js');
3
+ const index = require('./index-28bbc937.js');
4
4
 
5
5
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
6
6
  const { state, onChange } = index.createStore({
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
  const convert = require('./convert-362ef5e6.js');
7
- const pnProductPricelistStore = require('./pn-product-pricelist-store-c88813f7.js');
8
- require('./index-5d2abef7.js');
7
+ const pnProductPricelistStore = require('./pn-product-pricelist-store-86310b5a.js');
8
+ require('./index-28bbc937.js');
9
9
 
10
10
  const translations = {
11
11
  'sv': {
@@ -96,7 +96,7 @@ const weights = {
96
96
  ]
97
97
  };
98
98
 
99
- const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
99
+ const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
100
100
 
101
101
  let PnFindProductPricelist = class {
102
102
  constructor(hostRef) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const pnProductTileCss = "pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const pnProfileSelectorOptionCss = "pn-profile-selector-option{display:-ms-flexbox;display:flex;width:100%;border-bottom:1px solid #D3CECB;padding:1.2rem 0}pn-profile-selector-option:first-of-type{margin-top:2.4rem}pn-profile-selector-option:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-selector-option:last-of-type .profileselectoroption{padding-bottom:0}.profileselectoroption{display:-ms-flexbox;display:flex;width:100%;padding:1.2rem 0;text-decoration:none}.profileselectoroption pn-icon{-ms-flex-item-align:center;align-self:center;position:relative;-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform 0.25s linear;transition:-webkit-transform 0.25s linear;transition:transform 0.25s linear;transition:transform 0.25s linear, -webkit-transform 0.25s linear}.profileselectoroption:hover .profileselectoroption-name,.profileselectoroption:focus .profileselectoroption-name,.profileselectoroption:active .profileselectoroption-name{text-decoration:underline}.profileselectoroption:hover pn-icon,.profileselectoroption:focus pn-icon,.profileselectoroption:active pn-icon{-webkit-transform:none;transform:none;-webkit-transition-timing-function:ease;transition-timing-function:ease}.profileselectoroption-text{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselectoroption-name{font-size:1em;color:#005D92;font-weight:700}.profileselectoroption-identifier{color:#5E554A;font-size:0.75em}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const translations = {
8
8
  'sv': {
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
6
- const pnSidenavStore = require('./pn-sidenav-store-a753d3d7.js');
7
- require('./index-5d2abef7.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnSidenavStore = require('./pn-sidenav-store-d9bd9e00.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const pnSidenavLevelCss = "pn-sidenav-level{display:block;-ms-flex-preferred-size:100%;flex-basis:100%}pn-sidenav-level[data-level=\"2\"]{padding-left:2.5em;overflow:hidden;-webkit-transition:max-height ease 0.2s;transition:max-height ease 0.2s;max-height:40em}pn-sidenav-level[data-level=\"2\"][aria-hidden=true]{max-height:0}";
10
10
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
6
- const pnSidenavStore = require('./pn-sidenav-store-a753d3d7.js');
7
- require('./index-5d2abef7.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnSidenavStore = require('./pn-sidenav-store-d9bd9e00.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const pnSidenavLinkCss = "pn-sidenav-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.pn-sidenav-link{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92;font-size:1em;padding:1.1rem 1.5rem 1.1rem;overflow:hidden;text-decoration:none;cursor:pointer;-ms-flex-positive:1;flex-grow:1}.pn-sidenav-link::before{content:\"\";display:block;width:0.4rem;border-top-right-radius:0.3rem;border-bottom-right-radius:0.3rem;height:100%;position:absolute;left:0;top:0;bottom:0;-webkit-transform:translateX(-0.4rem);transform:translateX(-0.4rem);background:#005D92;-webkit-transition:-webkit-transform linear 0.35s;transition:-webkit-transform linear 0.35s;transition:transform linear 0.35s;transition:transform linear 0.35s, -webkit-transform linear 0.35s}.pn-sidenav-link:hover,.pn-sidenav-link:focus,[current=true]>.pn-sidenav-link{background-color:#E0F8FF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link:hover::before,.pn-sidenav-link:focus::before,[current=true]>.pn-sidenav-link::before{-webkit-transform:none;transform:none}.pn-sidenav-link:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link>pn-icon{padding-right:1em}.pn-sidenav-link-expand{margin-left:auto;border:0;font-size:1em;background:transparent;outline:0;padding:0 1em 0 0.5em;cursor:pointer}.pn-sidenav-link-expand:hover,.pn-sidenav-link-expand:focus,[current=true]>.pn-sidenav-link-expand{background-color:#E0F8FF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link-expand:hover::before,.pn-sidenav-link-expand:focus::before,[current=true]>.pn-sidenav-link-expand::before{-webkit-transform:none;transform:none}button>.pn-sidenav-link-expand{padding-right:0}.pn-sidenav-link-expand pn-icon{width:14px}";
10
10
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-5d2abef7.js');
3
+ const index = require('./index-28bbc937.js');
4
4
 
5
5
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
6
6
  const { state, onChange } = index.createStore({
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
6
- const pnSidenavStore = require('./pn-sidenav-store-a753d3d7.js');
7
- require('./index-5d2abef7.js');
5
+ const index = require('./index-e3e27c79.js');
6
+ const pnSidenavStore = require('./pn-sidenav-store-d9bd9e00.js');
7
+ require('./index-28bbc937.js');
8
8
 
9
9
  const translations = {
10
10
  'sv': {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b6e46a26.js');
5
+ const index = require('./index-e3e27c79.js');
6
6
 
7
7
  const pnSiteFooterCss = "pn-site-footer{display:block;line-height:1.5}pn-site-footer a{color:#005D92}pn-site-footer a:hover{color:#0D234B;text-decoration:underline}pn-site-footer h3{font-size:2.4rem;margin-bottom:0.5rem;line-height:1.2}pn-site-footer p{font-size:1.6rem}pn-site-footer ul.social-media{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row}pn-site-footer ul.social-media li{margin-right:1.6rem}pn-site-footer>svg{display:block}pn-site-footer>div{background:#F3F2F2}.pn-sitefooter-top{display:-ms-flexbox;display:flex}.pn-sitefooter-cols{-ms-flex-item-align:center;align-self:center;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;margin:0 auto;max-width:90em}.pn-sitefooter-bottom [slot=bottom]{max-width:90em;margin:0 auto;padding:1.6rem 0;display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB}.pn-sitefooter-bottom [slot=bottom] span,.pn-sitefooter-bottom [slot=bottom] a{line-height:2;margin:0 1.6rem;text-decoration:none}.pn-sitefooter-bottom [slot=bottom] li{line-height:2em;margin:0 1.6rem}.pn-sitefooter-logo{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;padding:3rem}.pn-sitefooter-logo svg{display:block;width:13.3rem;height:2.6rem}";
8
8
 
@@ -4,7 +4,8 @@
4
4
  "./components/input/pn-bonus-progressbar/pn-bonus-progressbar.js",
5
5
  "./components/input/pn-choice-button/pn-choice-button.js",
6
6
  "./components/input/pn-filter-checkbox/pn-filter-checkbox.js",
7
- "./components/input/pn-filter-search/pn-filter-search.js",
7
+ "./components/input/pn-marketweb-input/pn-marketweb-input.js",
8
+ "./components/input/pn-marketweb-search/pn-marketweb-search.js",
8
9
  "./components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js",
9
10
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js",
10
11
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js",
@@ -0,0 +1,51 @@
1
+ import readme from "./readme.md";
2
+
3
+ export default {
4
+ title: "input/Input",
5
+ parameters: {
6
+ notes: readme,
7
+ layout: 'centered'
8
+ },
9
+ };
10
+
11
+ const Template = ({ ...args }) => {
12
+
13
+ return `
14
+ <pn-marketweb-input
15
+ type="${args.type}"
16
+ value="${args.value}"
17
+ ></pn-marketweb-input>
18
+ `;
19
+ };
20
+ export const Primary = Template.bind({});
21
+ Primary.args = {
22
+ type: 'text',
23
+ };
24
+
25
+ export const DatetimeLocal = Template.bind({});
26
+ DatetimeLocal.args = {
27
+ type: 'datetime-local',
28
+ value: `${(new Date()).toISOString().split('T')[0]}T${(new Date()).toISOString().split('T')[1].substring(0, 5)}`
29
+ };
30
+
31
+ export const Time = Template.bind({});
32
+ Time.args = {
33
+ type: 'time',
34
+ value: (new Date()).toISOString().split('T')[1].substring(0, 5)
35
+ };
36
+
37
+ export const Week = Template.bind({});
38
+ Week.args = {
39
+ type: 'week',
40
+ };
41
+
42
+ export const Month = Template.bind({});
43
+ Month.args = {
44
+ type: 'month',
45
+ };
46
+
47
+ export const DateInput = Template.bind({});
48
+ DateInput.args = {
49
+ type: 'date',
50
+ value: (new Date()).toISOString().split('T')[0]
51
+ };
@@ -0,0 +1,156 @@
1
+ pn--marketweb-input {
2
+ display: inline-flex;
3
+ flex-direction: column;
4
+ }
5
+
6
+ pn-marketweb-input input {
7
+ padding: 0.75em;
8
+ font-size: 1em;
9
+ font-weight: 500;
10
+ -webkit-font-smoothing: antialiased;
11
+ outline: none;
12
+ border-radius: 0.8rem;
13
+ border: 0.1rem solid #5E554A;
14
+ transition: box-shadow 0.15s, border 0.15s;
15
+ color: #000000;
16
+ width: 100%;
17
+ }
18
+ pn-marketweb-input input::placeholder {
19
+ color: #969087;
20
+ font-weight: normal;
21
+ }
22
+ pn-marketweb-input input:focus {
23
+ border: 0.1rem solid #005D92;
24
+ box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;
25
+ }
26
+ pn-marketweb-input input:hover {
27
+ border: 0.1rem solid #00A0D6;
28
+ }
29
+ pn-marketweb-input input:disabled {
30
+ background: #F3F2F2;
31
+ border: none;
32
+ }
33
+
34
+ pn-marketweb-input > .input-container {
35
+ position: relative;
36
+ }
37
+ pn-marketweb-input > .input-container > button {
38
+ position: absolute;
39
+ right: 1.2rem;
40
+ top: 50%;
41
+ transform: translateY(-50%);
42
+ background: none;
43
+ border: none;
44
+ cursor: pointer;
45
+ color: #005D92;
46
+ padding: 0.6rem;
47
+ border-radius: 0.8rem;
48
+ outline: none;
49
+ transition: border 0.1s, background 0.2s, color 0.1s;
50
+ border: 0.1rem solid transparent;
51
+ }
52
+ pn-marketweb-input > .input-container > button:focus {
53
+ border: 0.1rem solid #005D92;
54
+ }
55
+ pn-marketweb-input > .input-container > button:hover {
56
+ background: #E0F8FF;
57
+ }
58
+ pn-marketweb-input > .input-container > button:active {
59
+ background: #005D92;
60
+ color: white;
61
+ }
62
+ pn-marketweb-input > .input-container > svg {
63
+ position: absolute;
64
+ right: 0.75em;
65
+ top: 50%;
66
+ transform: translateY(-50%);
67
+ height: 1.5em;
68
+ width: 1.5em;
69
+ pointer-events: none;
70
+ }
71
+ pn-marketweb-input > .input-container > svg polyline {
72
+ stroke-linecap: round;
73
+ transition: stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);
74
+ }
75
+ pn-marketweb-input > .input-container > svg.pn-input-checkmark polyline {
76
+ stroke: #005E41;
77
+ stroke-dashoffset: 23;
78
+ stroke-dasharray: 23;
79
+ }
80
+
81
+ pn-marketweb-input .label-container {
82
+ margin-bottom: 0.4rem;
83
+ color: #5E554A;
84
+ font-size: 0.875em;
85
+ display: flex;
86
+ justify-content: space-between;
87
+ align-items: flex-end;
88
+ }
89
+ pn-marketweb-input .label-container label {
90
+ cursor: pointer;
91
+ transition: color 0.2s;
92
+ }
93
+
94
+ .label-container label.char-count {
95
+ flex-shrink: 0;
96
+ padding-left: 0.5em;
97
+ }
98
+
99
+ pn-marketweb-input small {
100
+ font-size: 0.75em;
101
+ font-size: max(.6em, 1.2rem);
102
+ transition: transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);
103
+ margin-top: 0.5em;
104
+ color: #5E554A;
105
+ }
106
+
107
+ pn-input.error {
108
+ color: #A70707;
109
+ }
110
+ pn-input.error label {
111
+ color: #A70707;
112
+ }
113
+ pn-input.error small {
114
+ color: #A70707;
115
+ }
116
+ pn-input.error small > pn-icon {
117
+ margin-right: 0.25em;
118
+ }
119
+ pn-input.error input {
120
+ border: 0.1rem solid #A70707;
121
+ }
122
+ pn-input.error input:focus {
123
+ border: 0.1rem solid #A70707;
124
+ box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707;
125
+ }
126
+ pn-input.error input:hover {
127
+ border: 0.1rem solid #F06365;
128
+ }
129
+
130
+ pn-input.valid {
131
+ color: #005E41;
132
+ }
133
+ pn-input.valid .input-container > svg.pn-input-checkmark polyline {
134
+ stroke-dashoffset: 0;
135
+ }
136
+ pn-input.valid label {
137
+ color: #005E41;
138
+ }
139
+ pn-input.valid input {
140
+ border: 0.1rem solid #005E41;
141
+ }
142
+ pn-input.valid input:focus {
143
+ border: 0.1rem solid #005E41;
144
+ box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41;
145
+ }
146
+ pn-input.valid input:hover {
147
+ border: 0.1rem solid #5EC584;
148
+ }
149
+
150
+ pn-marketweb-input.password input {
151
+ padding-right: 4em;
152
+ }
153
+
154
+ pn-marketweb-input.icon input {
155
+ padding-right: 2.3em;
156
+ }