smoothly 1.0.0-alpha.13 → 1.0.0-alpha.130

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 (413) hide show
  1. package/dist/cjs/{Listenable-63ea2d90.js → Data-e345d3cd.js} +74 -4
  2. package/dist/cjs/Data-e345d3cd.js.map +1 -0
  3. package/dist/cjs/Observers-6450f075.js +25 -0
  4. package/dist/cjs/Observers-6450f075.js.map +1 -0
  5. package/dist/cjs/{getLanguage-430ecf04.js → getLanguage-28ce96e4.js} +1111 -890
  6. package/dist/cjs/getLanguage-28ce96e4.js.map +1 -0
  7. package/dist/cjs/{index-8352a4e0.js → index-43af753b.js} +9 -43
  8. package/dist/cjs/index-43af753b.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +386 -22
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +4 -3
  12. package/dist/cjs/loader.cjs.js.map +1 -1
  13. package/dist/cjs/redirect-2e5d4524.js +104 -0
  14. package/dist/cjs/redirect-2e5d4524.js.map +1 -0
  15. package/dist/cjs/smoothly-accordion_70.cjs.entry.js +17206 -0
  16. package/dist/cjs/smoothly-accordion_70.cjs.entry.js.map +1 -0
  17. package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
  18. package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
  19. package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
  20. package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
  21. package/dist/cjs/smoothly-country.cjs.entry.js +9 -9
  22. package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
  23. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +26 -0
  24. package/dist/cjs/smoothly-display-date-time.cjs.entry.js.map +1 -0
  25. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  26. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  27. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  28. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -4
  29. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
  30. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +6 -6
  31. package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
  32. package/dist/cjs/smoothly.cjs.js +4 -3
  33. package/dist/cjs/smoothly.cjs.js.map +1 -1
  34. package/dist/collection/collection-manifest.json +23 -12
  35. package/dist/collection/components/Button.js +16 -2
  36. package/dist/collection/components/Button.js.map +1 -1
  37. package/dist/collection/components/accordion/index.js +32 -12
  38. package/dist/collection/components/accordion/index.js.map +1 -1
  39. package/dist/collection/components/accordion-item/index.js +18 -25
  40. package/dist/collection/components/accordion-item/index.js.map +1 -1
  41. package/dist/collection/components/app/index.js +147 -1
  42. package/dist/collection/components/app/index.js.map +1 -1
  43. package/dist/collection/components/app/room/index.js +240 -0
  44. package/dist/collection/components/app/room/index.js.map +1 -0
  45. package/dist/collection/components/app/room/style.css +55 -0
  46. package/dist/collection/components/app/style.css +89 -101
  47. package/dist/collection/components/app-demo/index.js +5 -19
  48. package/dist/collection/components/app-demo/index.js.map +1 -1
  49. package/dist/collection/components/backtotop/index.js +3 -3
  50. package/dist/collection/components/backtotop/index.js.map +1 -1
  51. package/dist/collection/components/burger/index.js +174 -0
  52. package/dist/collection/components/burger/index.js.map +1 -0
  53. package/dist/collection/components/burger/style.css +22 -0
  54. package/dist/collection/components/button/index.js +10 -23
  55. package/dist/collection/components/button/index.js.map +1 -1
  56. package/dist/collection/components/button/style.css +13 -17
  57. package/dist/collection/components/button-demo/index.js +6 -2
  58. package/dist/collection/components/button-demo/index.js.map +1 -1
  59. package/dist/collection/components/button-demo/style.css +1 -0
  60. package/dist/collection/components/calendar/generate.js +1 -1
  61. package/dist/collection/components/calendar/generate.js.map +1 -1
  62. package/dist/collection/components/checkbox/index.js +25 -3
  63. package/dist/collection/components/checkbox/index.js.map +1 -1
  64. package/dist/collection/components/country/index.js +1 -1
  65. package/dist/collection/components/display/index.js +24 -3
  66. package/dist/collection/components/display/index.js.map +1 -1
  67. package/dist/collection/components/display-amount/index.js +1 -1
  68. package/dist/collection/components/display-demo/index.js +1 -1
  69. package/dist/collection/components/display-demo/index.js.map +1 -1
  70. package/dist/collection/components/filter/index.js +1 -1
  71. package/dist/collection/components/filter/index.js.map +1 -1
  72. package/dist/collection/components/filter/input/index.js +16 -9
  73. package/dist/collection/components/filter/input/index.js.map +1 -1
  74. package/dist/collection/components/form/index.js +132 -9
  75. package/dist/collection/components/form/index.js.map +1 -1
  76. package/dist/collection/components/form/style.css +9 -16
  77. package/dist/collection/components/frame/index.js +1 -2
  78. package/dist/collection/components/frame/index.js.map +1 -1
  79. package/dist/collection/components/icon/index.js +28 -35
  80. package/dist/collection/components/icon/index.js.map +1 -1
  81. package/dist/collection/components/icon-demo/index.js.map +1 -1
  82. package/dist/collection/components/icon-demo/style.css +1 -0
  83. package/dist/collection/components/input/Changeable.js +8 -0
  84. package/dist/collection/components/input/Changeable.js.map +1 -0
  85. package/dist/collection/components/input/Clearable.js.map +1 -0
  86. package/dist/collection/components/input/Input.js +2 -0
  87. package/dist/collection/components/input/Input.js.map +1 -0
  88. package/dist/collection/components/input/Looks.js +2 -0
  89. package/dist/collection/components/input/Looks.js.map +1 -0
  90. package/dist/collection/components/input/Submittable.js +8 -0
  91. package/dist/collection/components/input/Submittable.js.map +1 -0
  92. package/dist/collection/components/input/clear/index.js +237 -0
  93. package/dist/collection/components/input/clear/index.js.map +1 -0
  94. package/dist/collection/components/input/clear/style.css +254 -0
  95. package/dist/collection/components/{input-date → input/date}/index.js +160 -3
  96. package/dist/collection/components/input/date/index.js.map +1 -0
  97. package/dist/collection/components/{input-date-range → input/date/range}/index.js +161 -23
  98. package/dist/collection/components/input/date/range/index.js.map +1 -0
  99. package/dist/collection/components/input/date/range/style.css +69 -0
  100. package/dist/collection/components/input/date/style.css +58 -0
  101. package/dist/collection/components/input/demo/index.js +95 -0
  102. package/dist/collection/components/input/demo/index.js.map +1 -0
  103. package/dist/collection/components/{input-demo → input/demo}/style.css +1 -0
  104. package/dist/collection/components/input/file/index.js +305 -0
  105. package/dist/collection/components/input/file/index.js.map +1 -0
  106. package/dist/collection/components/input/file/style.css +85 -0
  107. package/dist/collection/components/input/index.js +131 -8
  108. package/dist/collection/components/input/index.js.map +1 -1
  109. package/dist/collection/components/{input-month → input/month}/index.js +5 -5
  110. package/dist/collection/components/input/month/index.js.map +1 -0
  111. package/dist/collection/components/{selector → input/select}/index.js +176 -5
  112. package/dist/collection/components/input/select/index.js.map +1 -0
  113. package/dist/collection/components/input/select/style.css +80 -0
  114. package/dist/collection/components/input/style.css +23 -8
  115. package/dist/collection/components/notification/index.js +45 -8
  116. package/dist/collection/components/notification/index.js.map +1 -1
  117. package/dist/collection/components/notification/style.css +25 -1
  118. package/dist/collection/components/notifier/style.css +1 -3
  119. package/dist/collection/components/picker/demo/index.js +91 -0
  120. package/dist/collection/components/picker/demo/index.js.map +1 -0
  121. package/dist/collection/components/picker/demo/style.css +26 -0
  122. package/dist/collection/components/picker/index.js +197 -396
  123. package/dist/collection/components/picker/index.js.map +1 -1
  124. package/dist/collection/components/picker/menu/index.js +422 -0
  125. package/dist/collection/components/picker/menu/index.js.map +1 -0
  126. package/dist/collection/components/picker/menu/style.css +44 -0
  127. package/dist/collection/components/picker/option/index.js +298 -0
  128. package/dist/collection/components/picker/option/index.js.map +1 -0
  129. package/dist/collection/components/picker/option/style.css +30 -0
  130. package/dist/collection/components/picker/slot-elements/index.js +109 -0
  131. package/dist/collection/components/picker/slot-elements/index.js.map +1 -0
  132. package/dist/collection/components/picker/slot-elements/style.css +3 -0
  133. package/dist/collection/components/picker/slotted-elements/index.js +84 -0
  134. package/dist/collection/components/picker/slotted-elements/index.js.map +1 -0
  135. package/dist/collection/components/picker/slotted-elements/style.css +3 -0
  136. package/dist/collection/components/picker/style.css +60 -144
  137. package/dist/collection/components/radio/index.js +4 -4
  138. package/dist/collection/components/radio/index.js.map +1 -1
  139. package/dist/collection/components/radio-button/index.js +35 -10
  140. package/dist/collection/components/radio-button/index.js.map +1 -1
  141. package/dist/collection/components/select-demo/index.js +0 -87
  142. package/dist/collection/components/select-demo/index.js.map +1 -1
  143. package/dist/collection/components/spinner/style.css +1 -0
  144. package/dist/collection/components/submit/index.js +64 -5
  145. package/dist/collection/components/submit/index.js.map +1 -1
  146. package/dist/collection/components/submit/style.css +224 -0
  147. package/dist/collection/components/summary/index.js +44 -1
  148. package/dist/collection/components/summary/index.js.map +1 -1
  149. package/dist/collection/components/svg/style.css +2 -2
  150. package/dist/collection/components/table/cell/index.js +1 -1
  151. package/dist/collection/components/table/cell/index.js.map +1 -1
  152. package/dist/collection/components/table/cell/style.css +19 -10
  153. package/dist/collection/components/table/demo/filtered/index.js +4 -3
  154. package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
  155. package/dist/collection/components/table/demo/index.js +8 -2
  156. package/dist/collection/components/table/demo/index.js.map +1 -1
  157. package/dist/collection/components/table/demo/style.css +2 -0
  158. package/dist/collection/components/table/expandable/cell/index.js +14 -14
  159. package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
  160. package/dist/collection/components/table/expandable/cell/style.css +32 -22
  161. package/dist/collection/components/table/expandable/row/index.js +9 -32
  162. package/dist/collection/components/table/expandable/row/index.js.map +1 -1
  163. package/dist/collection/components/table/expandable/row/style.css +32 -29
  164. package/dist/collection/components/table/footer/index.js +19 -0
  165. package/dist/collection/components/table/footer/index.js.map +1 -0
  166. package/dist/collection/components/table/footer/style.css +13 -0
  167. package/dist/collection/components/table/header/style.css +2 -2
  168. package/dist/collection/components/table/index.js +55 -12
  169. package/dist/collection/components/table/index.js.map +1 -1
  170. package/dist/collection/components/table/row/index.js +37 -5
  171. package/dist/collection/components/table/row/index.js.map +1 -1
  172. package/dist/collection/components/table/row/style.css +4 -1
  173. package/dist/collection/components/table/style.css +0 -2
  174. package/dist/collection/components/table/testing/data.js +28 -0
  175. package/dist/collection/components/table/testing/data.js.map +1 -0
  176. package/dist/collection/components/table/testing/index.js +28 -0
  177. package/dist/collection/components/table/testing/index.js.map +1 -0
  178. package/dist/collection/components/table/testing/style.css +22 -0
  179. package/dist/collection/components/theme/color/index.js +48 -0
  180. package/dist/collection/components/theme/color/index.js.map +1 -0
  181. package/dist/collection/components/theme/color/style.css +8 -0
  182. package/dist/collection/components/theme/color/variant/index.js +66 -0
  183. package/dist/collection/components/theme/color/variant/index.js.map +1 -0
  184. package/dist/collection/components/theme/color/variant/style.css +18 -0
  185. package/dist/collection/components/theme/colors/index.js +30 -0
  186. package/dist/collection/components/theme/colors/index.js.map +1 -0
  187. package/dist/collection/components/theme/colors/style.css +7 -0
  188. package/dist/collection/components/toggle-switch/index.js +69 -17
  189. package/dist/collection/components/toggle-switch/index.js.map +1 -1
  190. package/dist/collection/components/toggle-switch/style.css +19 -12
  191. package/dist/collection/components/trigger-source/index.js +3 -3
  192. package/dist/collection/components/trigger-source/index.js.map +1 -1
  193. package/dist/collection/global/Observers.js +22 -0
  194. package/dist/collection/global/Observers.js.map +1 -0
  195. package/dist/collection/global/index.js +5 -0
  196. package/dist/collection/global/index.js.map +1 -0
  197. package/dist/collection/index.js +2 -3
  198. package/dist/collection/index.js.map +1 -1
  199. package/dist/collection/model/Data.js.map +1 -0
  200. package/dist/collection/model/Icon.js +23 -0
  201. package/dist/collection/model/Icon.js.map +1 -0
  202. package/dist/collection/model/Listenable.js +2 -2
  203. package/dist/collection/model/Listenable.js.map +1 -1
  204. package/dist/collection/model/Notice.js +1 -1
  205. package/dist/collection/model/Notice.js.map +1 -1
  206. package/dist/collection/model/Option.js.map +1 -1
  207. package/dist/collection/model/index.js +3 -0
  208. package/dist/collection/model/index.js.map +1 -1
  209. package/dist/collection/model/redirect.js +8 -0
  210. package/dist/collection/model/redirect.js.map +1 -0
  211. package/dist/collection/smoothly.js +3 -0
  212. package/dist/collection/smoothly.js.map +1 -0
  213. package/dist/custom-elements/index.d.ts +94 -34
  214. package/dist/custom-elements/index.js +5359 -16299
  215. package/dist/custom-elements/index.js.map +1 -1
  216. package/dist/esm/{Listenable-fb6f4723.js → Data-37e7c0b9.js} +75 -5
  217. package/dist/esm/Data-37e7c0b9.js.map +1 -0
  218. package/dist/esm/Observers-5f08e828.js +25 -0
  219. package/dist/esm/Observers-5f08e828.js.map +1 -0
  220. package/dist/esm/{getLanguage-cccb8418.js → getLanguage-5233a597.js} +1111 -890
  221. package/dist/esm/getLanguage-5233a597.js.map +1 -0
  222. package/dist/esm/{index-7b57a52c.js → index-258984d3.js} +10 -42
  223. package/dist/esm/index-258984d3.js.map +1 -0
  224. package/dist/esm/index.js +388 -6
  225. package/dist/esm/index.js.map +1 -1
  226. package/dist/esm/loader.js +5 -4
  227. package/dist/esm/loader.js.map +1 -1
  228. package/dist/esm/redirect-b0f87e88.js +101 -0
  229. package/dist/esm/redirect-b0f87e88.js.map +1 -0
  230. package/dist/esm/smoothly-accordion_70.entry.js +17133 -0
  231. package/dist/esm/smoothly-accordion_70.entry.js.map +1 -0
  232. package/dist/esm/smoothly-address-display.entry.js +1 -1
  233. package/dist/esm/smoothly-address.entry.js +1 -1
  234. package/dist/esm/smoothly-addresses.entry.js +1 -1
  235. package/dist/esm/smoothly-color.entry.js +1 -1
  236. package/dist/esm/smoothly-country.entry.js +9 -9
  237. package/dist/esm/smoothly-country.entry.js.map +1 -1
  238. package/dist/esm/smoothly-display-date-time.entry.js +22 -0
  239. package/dist/esm/smoothly-display-date-time.entry.js.map +1 -0
  240. package/dist/esm/smoothly-google-font.entry.js +1 -1
  241. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  242. package/dist/esm/smoothly-reorder.entry.js +1 -1
  243. package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
  244. package/dist/esm/smoothly-trigger-source.entry.js +4 -4
  245. package/dist/esm/smoothly-trigger-source.entry.js.map +1 -1
  246. package/dist/esm/smoothly.js +5 -4
  247. package/dist/esm/smoothly.js.map +1 -1
  248. package/dist/smoothly/index.esm.js +1 -1
  249. package/dist/smoothly/index.esm.js.map +1 -1
  250. package/dist/smoothly/{p-c49d2094.entry.js → p-12182a73.entry.js} +2 -2
  251. package/dist/smoothly/p-2a0c2387.js +2 -0
  252. package/dist/smoothly/p-2a0c2387.js.map +1 -0
  253. package/dist/smoothly/{p-940af6d3.entry.js → p-47151a53.entry.js} +2 -2
  254. package/dist/smoothly/{p-be2ff772.entry.js → p-4c1bb81e.entry.js} +2 -2
  255. package/dist/smoothly/p-5e387578.js +3 -0
  256. package/dist/smoothly/p-5e387578.js.map +1 -0
  257. package/dist/smoothly/{p-d4182274.entry.js → p-66e9a8b1.entry.js} +2 -2
  258. package/dist/smoothly/{p-79025273.entry.js → p-6aebb818.entry.js} +2 -2
  259. package/dist/smoothly/p-6fad95bf.entry.js +2 -0
  260. package/dist/smoothly/p-6fad95bf.entry.js.map +1 -0
  261. package/dist/smoothly/{p-e136b93e.entry.js → p-7bf147bf.entry.js} +2 -2
  262. package/dist/smoothly/{p-5b28795c.entry.js → p-b3eac6af.entry.js} +2 -2
  263. package/dist/smoothly/p-b9cb0514.js +2 -0
  264. package/dist/smoothly/p-b9cb0514.js.map +1 -0
  265. package/dist/smoothly/p-bf63d2e6.entry.js +2 -0
  266. package/dist/smoothly/p-bf63d2e6.entry.js.map +1 -0
  267. package/dist/smoothly/p-c833c402.js +2 -0
  268. package/dist/smoothly/p-c833c402.js.map +1 -0
  269. package/dist/smoothly/{p-712b362e.entry.js → p-cb493516.entry.js} +2 -2
  270. package/dist/smoothly/p-d6185f62.entry.js +2 -0
  271. package/dist/smoothly/p-d6185f62.entry.js.map +1 -0
  272. package/dist/smoothly/p-ede93d69.js +2 -0
  273. package/dist/smoothly/p-ede93d69.js.map +1 -0
  274. package/dist/smoothly/p-eef1c80b.entry.js +2 -0
  275. package/dist/smoothly/p-eef1c80b.entry.js.map +1 -0
  276. package/dist/smoothly/smoothly.esm.js +1 -1
  277. package/dist/smoothly/smoothly.esm.js.map +1 -1
  278. package/dist/types/components/Button.d.ts +1 -2
  279. package/dist/types/components/accordion/index.d.ts +1 -1
  280. package/dist/types/components/accordion-item/index.d.ts +5 -4
  281. package/dist/types/components/app/index.d.ts +25 -0
  282. package/dist/types/components/app/room/index.d.ts +25 -0
  283. package/dist/types/components/app-demo/index.d.ts +2 -0
  284. package/dist/types/components/backtotop/index.d.ts +1 -1
  285. package/dist/types/components/burger/index.d.ts +15 -0
  286. package/dist/types/components/button/index.d.ts +2 -2
  287. package/dist/types/components/checkbox/index.d.ts +4 -2
  288. package/dist/types/components/display/index.d.ts +1 -0
  289. package/dist/types/components/filter/input/index.d.ts +1 -1
  290. package/dist/types/components/form/index.d.ts +16 -3
  291. package/dist/types/components/frame/index.d.ts +1 -1
  292. package/dist/types/components/icon/index.d.ts +4 -9
  293. package/dist/types/components/input/Changeable.d.ts +7 -0
  294. package/dist/types/components/input/Input.d.ts +10 -0
  295. package/dist/types/components/input/Looks.d.ts +1 -0
  296. package/dist/types/components/input/Submittable.d.ts +6 -0
  297. package/dist/types/components/input/clear/index.d.ts +17 -0
  298. package/dist/types/components/input/date/index.d.ts +28 -0
  299. package/dist/types/components/input/date/range/index.d.ts +33 -0
  300. package/dist/types/components/input/demo/index.d.ts +8 -0
  301. package/dist/types/components/input/file/index.d.ts +24 -0
  302. package/dist/types/components/input/index.d.ts +17 -4
  303. package/dist/types/components/{input-month → input/month}/index.d.ts +1 -1
  304. package/dist/types/components/{selector → input/select}/index.d.ts +15 -3
  305. package/dist/types/components/notification/index.d.ts +3 -1
  306. package/dist/types/components/picker/demo/index.d.ts +18 -0
  307. package/dist/types/components/picker/index.d.ts +33 -45
  308. package/dist/types/components/picker/menu/index.d.ts +53 -0
  309. package/dist/types/components/picker/option/index.d.ts +23 -0
  310. package/dist/types/components/picker/slot-elements/index.d.ts +15 -0
  311. package/dist/types/components/picker/slotted-elements/index.d.ts +8 -0
  312. package/dist/types/components/radio/index.d.ts +1 -1
  313. package/dist/types/components/radio-button/index.d.ts +3 -5
  314. package/dist/types/components/select-demo/index.d.ts +0 -9
  315. package/dist/types/components/submit/index.d.ts +6 -1
  316. package/dist/types/components/summary/index.d.ts +4 -0
  317. package/dist/types/components/table/demo/filtered/index.d.ts +1 -1
  318. package/dist/types/components/table/expandable/cell/index.d.ts +4 -4
  319. package/dist/types/components/table/expandable/row/index.d.ts +3 -7
  320. package/dist/types/components/table/footer/index.d.ts +3 -0
  321. package/dist/types/components/table/index.d.ts +6 -3
  322. package/dist/types/components/table/row/index.d.ts +3 -1
  323. package/dist/types/components/table/testing/data.d.ts +5 -0
  324. package/dist/types/components/table/testing/index.d.ts +4 -0
  325. package/dist/types/components/theme/color/index.d.ts +5 -0
  326. package/dist/types/components/theme/color/variant/index.d.ts +6 -0
  327. package/dist/types/components/theme/colors/index.d.ts +3 -0
  328. package/dist/types/components/toggle-switch/index.d.ts +7 -2
  329. package/dist/types/components/trigger-source/index.d.ts +1 -1
  330. package/dist/types/components.d.ts +490 -226
  331. package/dist/types/global/Observers.d.ts +8 -0
  332. package/dist/types/global/index.d.ts +4 -0
  333. package/dist/types/index.d.ts +1 -4
  334. package/dist/types/model/Icon.d.ts +8 -0
  335. package/dist/types/model/Notice.d.ts +1 -1
  336. package/dist/types/model/Option.d.ts +24 -6
  337. package/dist/types/model/index.d.ts +4 -1
  338. package/dist/types/model/redirect.d.ts +1 -0
  339. package/dist/types/smoothly.d.ts +3 -0
  340. package/package.json +16 -16
  341. package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
  342. package/dist/cjs/getLanguage-430ecf04.js.map +0 -1
  343. package/dist/cjs/index-8352a4e0.js.map +0 -1
  344. package/dist/cjs/index-b282ee83.js +0 -865
  345. package/dist/cjs/index-b282ee83.js.map +0 -1
  346. package/dist/cjs/smoothly-accordion_61.cjs.entry.js +0 -28113
  347. package/dist/cjs/smoothly-accordion_61.cjs.entry.js.map +0 -1
  348. package/dist/collection/components/App.js +0 -71
  349. package/dist/collection/components/App.js.map +0 -1
  350. package/dist/collection/components/form/Clearable.js.map +0 -1
  351. package/dist/collection/components/form/Data.js.map +0 -1
  352. package/dist/collection/components/input-date/index.js.map +0 -1
  353. package/dist/collection/components/input-date/style.css +0 -39
  354. package/dist/collection/components/input-date-range/index.js.map +0 -1
  355. package/dist/collection/components/input-date-range/style.css +0 -51
  356. package/dist/collection/components/input-demo/index.js +0 -45
  357. package/dist/collection/components/input-demo/index.js.map +0 -1
  358. package/dist/collection/components/input-month/index.js.map +0 -1
  359. package/dist/collection/components/menu-options/index.js +0 -413
  360. package/dist/collection/components/menu-options/index.js.map +0 -1
  361. package/dist/collection/components/menu-options/style.css +0 -18
  362. package/dist/collection/components/option/index.js +0 -270
  363. package/dist/collection/components/option/index.js.map +0 -1
  364. package/dist/collection/components/option/style.css +0 -42
  365. package/dist/collection/components/room/index.js +0 -90
  366. package/dist/collection/components/room/index.js.map +0 -1
  367. package/dist/collection/components/select/index.js +0 -108
  368. package/dist/collection/components/select/index.js.map +0 -1
  369. package/dist/collection/components/select/style.css +0 -20
  370. package/dist/collection/components/selector/index.js.map +0 -1
  371. package/dist/collection/components/selector/style.css +0 -46
  372. package/dist/esm/Listenable-fb6f4723.js.map +0 -1
  373. package/dist/esm/getLanguage-cccb8418.js.map +0 -1
  374. package/dist/esm/index-2e948fc3.js +0 -861
  375. package/dist/esm/index-2e948fc3.js.map +0 -1
  376. package/dist/esm/index-7b57a52c.js.map +0 -1
  377. package/dist/esm/smoothly-accordion_61.entry.js +0 -28049
  378. package/dist/esm/smoothly-accordion_61.entry.js.map +0 -1
  379. package/dist/smoothly/p-06337b89.js +0 -2
  380. package/dist/smoothly/p-06337b89.js.map +0 -1
  381. package/dist/smoothly/p-21341e18.entry.js +0 -2
  382. package/dist/smoothly/p-21341e18.entry.js.map +0 -1
  383. package/dist/smoothly/p-5b6351f6.js +0 -2
  384. package/dist/smoothly/p-5b6351f6.js.map +0 -1
  385. package/dist/smoothly/p-70280a11.js +0 -2
  386. package/dist/smoothly/p-70280a11.js.map +0 -1
  387. package/dist/smoothly/p-b49664d8.entry.js +0 -2
  388. package/dist/smoothly/p-b49664d8.entry.js.map +0 -1
  389. package/dist/smoothly/p-b82efb2e.entry.js +0 -2
  390. package/dist/smoothly/p-b82efb2e.entry.js.map +0 -1
  391. package/dist/smoothly/p-c88ae468.js +0 -3
  392. package/dist/smoothly/p-c88ae468.js.map +0 -1
  393. package/dist/types/components/App.d.ts +0 -5
  394. package/dist/types/components/input-date/index.d.ts +0 -14
  395. package/dist/types/components/input-date-range/index.d.ts +0 -23
  396. package/dist/types/components/input-demo/index.d.ts +0 -3
  397. package/dist/types/components/menu-options/index.d.ts +0 -35
  398. package/dist/types/components/option/index.d.ts +0 -32
  399. package/dist/types/components/room/index.d.ts +0 -7
  400. package/dist/types/components/select/index.d.ts +0 -14
  401. /package/dist/collection/components/{form → input}/Clearable.js +0 -0
  402. /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
  403. /package/dist/collection/{components/form → model}/Data.js +0 -0
  404. /package/dist/smoothly/{p-c49d2094.entry.js.map → p-12182a73.entry.js.map} +0 -0
  405. /package/dist/smoothly/{p-940af6d3.entry.js.map → p-47151a53.entry.js.map} +0 -0
  406. /package/dist/smoothly/{p-be2ff772.entry.js.map → p-4c1bb81e.entry.js.map} +0 -0
  407. /package/dist/smoothly/{p-d4182274.entry.js.map → p-66e9a8b1.entry.js.map} +0 -0
  408. /package/dist/smoothly/{p-79025273.entry.js.map → p-6aebb818.entry.js.map} +0 -0
  409. /package/dist/smoothly/{p-e136b93e.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
  410. /package/dist/smoothly/{p-5b28795c.entry.js.map → p-b3eac6af.entry.js.map} +0 -0
  411. /package/dist/smoothly/{p-712b362e.entry.js.map → p-cb493516.entry.js.map} +0 -0
  412. /package/dist/types/components/{form → input}/Clearable.d.ts +0 -0
  413. /package/dist/types/{components/form → model}/Data.d.ts +0 -0
@@ -2,20 +2,25 @@ import { h } from "@stencil/core";
2
2
  export class TableRow {
3
3
  constructor() {
4
4
  this.expansions = [];
5
+ this.open = false;
5
6
  }
6
7
  onExpansionLoad(event) {
7
8
  this.expansions.push(event.target);
8
9
  }
10
+ onExpansionChange() {
11
+ this.open = this.expansions.some(expansion => expansion.open);
12
+ }
9
13
  onExpansionOpen(event) {
14
+ var _a;
10
15
  this.expansions.forEach(cell => {
11
16
  if (cell != event.target)
12
17
  cell.open = false;
13
18
  });
14
19
  if (event.detail)
15
- this.element.after(event.detail);
20
+ (_a = this.element) === null || _a === void 0 ? void 0 : _a.after(event.detail);
16
21
  }
17
22
  render() {
18
- return h("slot", null);
23
+ return (h("div", { ref: e => (this.element = e) }, h("slot", null)));
19
24
  }
20
25
  static get is() { return "smoothly-table-row"; }
21
26
  static get encapsulation() { return "scoped"; }
@@ -29,16 +34,43 @@ export class TableRow {
29
34
  "$": ["style.css"]
30
35
  };
31
36
  }
32
- static get elementRef() { return "element"; }
37
+ static get properties() {
38
+ return {
39
+ "open": {
40
+ "type": "boolean",
41
+ "mutable": true,
42
+ "complexType": {
43
+ "original": "boolean",
44
+ "resolved": "boolean",
45
+ "references": {}
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": ""
52
+ },
53
+ "attribute": "open",
54
+ "reflect": true,
55
+ "defaultValue": "false"
56
+ }
57
+ };
58
+ }
33
59
  static get listeners() {
34
60
  return [{
35
- "name": "expansionLoad",
61
+ "name": "smoothlyExpansionLoad",
36
62
  "method": "onExpansionLoad",
37
63
  "target": undefined,
38
64
  "capture": false,
39
65
  "passive": false
40
66
  }, {
41
- "name": "expansionOpen",
67
+ "name": "smoothlyExpandableChange",
68
+ "method": "onExpansionChange",
69
+ "target": undefined,
70
+ "capture": false,
71
+ "passive": false
72
+ }, {
73
+ "name": "smoothlyExpansionOpen",
42
74
  "method": "onExpansionOpen",
43
75
  "target": undefined,
44
76
  "capture": false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAO7D,MAAM,OAAO,QAAQ;EALrB;IAOC,eAAU,GAA6C,EAAE,CAAA;GAiBzD;EAfA,eAAe,CAAC,KAAwB;IACvC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,MAAgD,CAAC,CAAA;EAC7E,CAAC;EAED,eAAe,CAAC,KAA2C;IAC1D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;MAC9B,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM;QACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,IAAI,KAAK,CAAC,MAAM;MACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;EAClC,CAAC;EACD,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Listen } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-row\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableRow {\n\t@Element() element: HTMLSmoothlyTableRowElement\n\texpansions: HTMLSmoothlyTableExpandableCellElement[] = []\n\t@Listen(\"expansionLoad\")\n\tonExpansionLoad(event: CustomEvent<void>) {\n\t\tthis.expansions.push(event.target as HTMLSmoothlyTableExpandableCellElement)\n\t}\n\t@Listen(\"expansionOpen\")\n\tonExpansionOpen(event: CustomEvent<HTMLElement | undefined>) {\n\t\tthis.expansions.forEach(cell => {\n\t\t\tif (cell != event.target)\n\t\t\t\tcell.open = false\n\t\t})\n\t\tif (event.detail)\n\t\t\tthis.element.after(event.detail)\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAO1D,MAAM,OAAO,QAAQ;;IAGpB,eAAU,GAA6C,EAAE,CAAA;gBADV,KAAK;;EAGpD,eAAe,CAAC,KAAwB;IACvC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,MAAgD,CAAC,CAAA;EAC7E,CAAC;EAED,iBAAiB;IAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;EAC9D,CAAC;EAED,eAAe,CAAC,KAA2C;;IAC1D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;MAC9B,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM;QACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,IAAI,KAAK,CAAC,MAAM;MACf,MAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;EACnC,CAAC;EACD,MAAM;IACL,OAAO,CACN,WAAK,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;MAChC,eAAa,CACR,CACN,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Listen, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-row\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableRow {\n\tprivate element?: HTMLElement\n\t@Prop({ reflect: true, mutable: true }) open = false\n\texpansions: HTMLSmoothlyTableExpandableCellElement[] = []\n\t@Listen(\"smoothlyExpansionLoad\")\n\tonExpansionLoad(event: CustomEvent<void>) {\n\t\tthis.expansions.push(event.target as HTMLSmoothlyTableExpandableCellElement)\n\t}\n\t@Listen(\"smoothlyExpandableChange\")\n\tonExpansionChange() {\n\t\tthis.open = this.expansions.some(expansion => expansion.open)\n\t}\n\t@Listen(\"smoothlyExpansionOpen\")\n\tonExpansionOpen(event: CustomEvent<HTMLElement | undefined>) {\n\t\tthis.expansions.forEach(cell => {\n\t\t\tif (cell != event.target)\n\t\t\t\tcell.open = false\n\t\t})\n\t\tif (event.detail)\n\t\t\tthis.element?.after(event.detail)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<div ref={e => (this.element = e)}>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t)\n\t}\n}\n"]}
@@ -1,8 +1,11 @@
1
1
  :host {
2
- display: table-row;
2
+ display: table-row-group;
3
3
  cursor: default;
4
4
  line-height: 1.5rem;
5
5
  }
6
6
  .hide {
7
7
  display: none;
8
8
  }
9
+ div {
10
+ display: contents;
11
+ }
@@ -5,8 +5,6 @@
5
5
  background-color: rgb(var(--smoothly-default-color));
6
6
  }
7
7
  :host[root] {
8
- margin-left: auto;
9
- margin-right: auto;
10
8
  margin-left: 1.5rem;
11
9
  margin-right: 1.5rem;
12
10
  }
@@ -0,0 +1,28 @@
1
+ export const data = [
2
+ {
3
+ type: "cat",
4
+ name: "Lazie",
5
+ age: 3,
6
+ },
7
+ {
8
+ type: "dog",
9
+ name: "Jessie",
10
+ age: 8,
11
+ },
12
+ {
13
+ type: "cat",
14
+ name: "Snooz",
15
+ age: 5,
16
+ },
17
+ {
18
+ type: "bird",
19
+ name: "Squeak",
20
+ age: 1,
21
+ },
22
+ {
23
+ type: "bird",
24
+ name: "Quirk",
25
+ age: 2,
26
+ },
27
+ ];
28
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/components/table/testing/data.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;EACnB;IACC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,CAAC;GACN;EACD;IACC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,CAAC;GACN;EACD;IACC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,CAAC;GACN;EACD;IACC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,CAAC;GACN;EACD;IACC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,CAAC;GACN;CACD,CAAA","sourcesContent":["export const data = [\n\t{\n\t\ttype: \"cat\",\n\t\tname: \"Lazie\",\n\t\tage: 3,\n\t},\n\t{\n\t\ttype: \"dog\",\n\t\tname: \"Jessie\",\n\t\tage: 8,\n\t},\n\t{\n\t\ttype: \"cat\",\n\t\tname: \"Snooz\",\n\t\tage: 5,\n\t},\n\t{\n\t\ttype: \"bird\",\n\t\tname: \"Squeak\",\n\t\tage: 1,\n\t},\n\t{\n\t\ttype: \"bird\",\n\t\tname: \"Quirk\",\n\t\tage: 2,\n\t},\n]\n"]}
@@ -0,0 +1,28 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { data } from "./data";
3
+ export class SmoothlyTableTesting {
4
+ constructor() {
5
+ this.counter = 0;
6
+ }
7
+ render() {
8
+ return (h(Host, null, h("smoothly-table", { color: "dark" }, h("smoothly-table-row", null, h("smoothly-table-header", null, "Type"), h("smoothly-table-header", null, "Name"), h("smoothly-table-header", null, "Age")), data.map(animal => (h("smoothly-table-expandable-row", null, h("smoothly-table-cell", null, animal.type), h("smoothly-table-cell", null, animal.name), h("smoothly-table-cell", null, animal.age), h("smoothly-form", { slot: "detail", onSmoothlyFormSubmit: () => this.counter++, looks: "line" }, h("smoothly-input", { value: animal.type }, "Type"), h("smoothly-input", { value: animal.name }, "Name"), h("smoothly-input", null, animal.age), h("smoothly-submit", { slot: "submit" }, "Submit!"))))), data.map(animal => (h("smoothly-table-row", null, h("smoothly-table-cell", null, animal.type), h("smoothly-table-expandable-cell", null, animal.name, h("smoothly-form", { slot: "detail", onSmoothlyFormSubmit: () => this.counter++, looks: "line" }, h("smoothly-input", { value: animal.name }, "Name"), h("smoothly-submit", { slot: "submit" }, "Submit!"))), h("smoothly-table-expandable-cell", null, animal.age, h("smoothly-form", { slot: "detail", onSmoothlyFormSubmit: () => this.counter++, looks: "line" }, h("smoothly-input", { value: animal.type }, "Type"), h("smoothly-input", { value: animal.name }, "Name"), h("smoothly-input", null, animal.age), h("smoothly-submit", { slot: "submit" }, "Submit!")))))), h("smoothly-table-footer", null, h("div", { class: "tableCell" }, h("div", null, "Currently viewing content from:", h("smoothly-display", { type: "date", value: "2023-10-12" })))))));
9
+ }
10
+ static get is() { return "smoothly-table-testing"; }
11
+ static get encapsulation() { return "scoped"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["style.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["style.css"]
20
+ };
21
+ }
22
+ static get states() {
23
+ return {
24
+ "counter": {}
25
+ };
26
+ }
27
+ }
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/testing/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAM7B,MAAM,OAAO,oBAAoB;;mBACb,CAAC;;EACpB,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,sBAAgB,KAAK,EAAC,MAAM;QAC3B;UACC,wCAAmD;UACnD,wCAAmD;UACnD,uCAAkD,CAC9B;QAEpB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACnB;UACC,+BAAsB,MAAM,CAAC,IAAI,CAAuB;UACxD,+BAAsB,MAAM,CAAC,IAAI,CAAuB;UACxD,+BAAsB,MAAM,CAAC,GAAG,CAAuB;UACvD,qBAAe,IAAI,EAAC,QAAQ,EAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAC,MAAM;YACpF,sBAAgB,KAAK,EAAE,MAAM,CAAC,IAAI,WAAuB;YACzD,sBAAgB,KAAK,EAAE,MAAM,CAAC,IAAI,WAAuB;YACzD,0BAAiB,MAAM,CAAC,GAAG,CAAkB;YAC7C,uBAAiB,IAAI,EAAC,QAAQ,cAA0B,CACzC,CACe,CAChC,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACnB;UACC,+BAAsB,MAAM,CAAC,IAAI,CAAuB;UACxD;YACE,MAAM,CAAC,IAAI;YACZ,qBAAe,IAAI,EAAC,QAAQ,EAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAC,MAAM;cACpF,sBAAgB,KAAK,EAAE,MAAM,CAAC,IAAI,WAAuB;cACzD,uBAAiB,IAAI,EAAC,QAAQ,cAA0B,CACzC,CACgB;UACjC;YACE,MAAM,CAAC,GAAG;YACX,qBAAe,IAAI,EAAC,QAAQ,EAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAC,MAAM;cACpF,sBAAgB,KAAK,EAAE,MAAM,CAAC,IAAI,WAAuB;cACzD,sBAAgB,KAAK,EAAE,MAAM,CAAC,IAAI,WAAuB;cACzD,0BAAiB,MAAM,CAAC,GAAG,CAAkB;cAC7C,uBAAiB,IAAI,EAAC,QAAQ,cAA0B,CACzC,CACgB,CACb,CACrB,CAAC;QACF;UACC,WAAK,KAAK,EAAC,WAAW;YACrB;;cAEC,wBAAkB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,YAAY,GAAG,CAC9C,CACD,CACiB,CACR,CACX,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, State } from \"@stencil/core\"\nimport { data } from \"./data\"\n@Component({\n\ttag: \"smoothly-table-testing\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTableTesting {\n\t@State() counter = 0\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<smoothly-table color=\"dark\">\n\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t<smoothly-table-header>Type</smoothly-table-header>\n\t\t\t\t\t\t<smoothly-table-header>Name</smoothly-table-header>\n\t\t\t\t\t\t<smoothly-table-header>Age</smoothly-table-header>\n\t\t\t\t\t</smoothly-table-row>\n\n\t\t\t\t\t{data.map(animal => (\n\t\t\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t\t\t<smoothly-table-cell>{animal.type}</smoothly-table-cell>\n\t\t\t\t\t\t\t<smoothly-table-cell>{animal.name}</smoothly-table-cell>\n\t\t\t\t\t\t\t<smoothly-table-cell>{animal.age}</smoothly-table-cell>\n\t\t\t\t\t\t\t<smoothly-form slot=\"detail\" onSmoothlyFormSubmit={() => this.counter++} looks=\"line\">\n\t\t\t\t\t\t\t\t<smoothly-input value={animal.type}>Type</smoothly-input>\n\t\t\t\t\t\t\t\t<smoothly-input value={animal.name}>Name</smoothly-input>\n\t\t\t\t\t\t\t\t<smoothly-input>{animal.age}</smoothly-input>\n\t\t\t\t\t\t\t\t<smoothly-submit slot=\"submit\">Submit!</smoothly-submit>\n\t\t\t\t\t\t\t</smoothly-form>\n\t\t\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t\t\t))}\n\t\t\t\t\t{data.map(animal => (\n\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t<smoothly-table-cell>{animal.type}</smoothly-table-cell>\n\t\t\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t{animal.name}\n\t\t\t\t\t\t\t\t<smoothly-form slot=\"detail\" onSmoothlyFormSubmit={() => this.counter++} looks=\"line\">\n\t\t\t\t\t\t\t\t\t<smoothly-input value={animal.name}>Name</smoothly-input>\n\t\t\t\t\t\t\t\t\t<smoothly-submit slot=\"submit\">Submit!</smoothly-submit>\n\t\t\t\t\t\t\t\t</smoothly-form>\n\t\t\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t{animal.age}\n\t\t\t\t\t\t\t\t<smoothly-form slot=\"detail\" onSmoothlyFormSubmit={() => this.counter++} looks=\"line\">\n\t\t\t\t\t\t\t\t\t<smoothly-input value={animal.type}>Type</smoothly-input>\n\t\t\t\t\t\t\t\t\t<smoothly-input value={animal.name}>Name</smoothly-input>\n\t\t\t\t\t\t\t\t\t<smoothly-input>{animal.age}</smoothly-input>\n\t\t\t\t\t\t\t\t\t<smoothly-submit slot=\"submit\">Submit!</smoothly-submit>\n\t\t\t\t\t\t\t\t</smoothly-form>\n\t\t\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t))}\n\t\t\t\t\t<smoothly-table-footer>\n\t\t\t\t\t\t<div class=\"tableCell\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\tCurrently viewing content from:\n\t\t\t\t\t\t\t\t<smoothly-display type=\"date\" value=\"2023-10-12\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</smoothly-table-footer>\n\t\t\t\t</smoothly-table>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,22 @@
1
+ :host {
2
+ width: 100%;
3
+ display: flex;
4
+ justify-content: center;
5
+ }
6
+ smoothly-table {
7
+ width: 80%;
8
+ }
9
+ .tableCell {
10
+ height: 3rem;
11
+ display: flex;
12
+ align-items: center;
13
+ }
14
+ .tableCell > div {
15
+ margin-left: 3rem;
16
+ margin-right: 3rem;
17
+ display: flex;
18
+ flex-direction: row;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ gap: 2rem;
22
+ }
@@ -0,0 +1,48 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class SmoothlyThemeColor {
3
+ constructor() {
4
+ this.color = undefined;
5
+ }
6
+ render() {
7
+ return (h(Host, null, this.color, ["tint", "color", "shade"].map(variant => (h("smoothly-theme-color-variant", { color: this.color, variant: variant })))));
8
+ }
9
+ static get is() { return "smoothly-theme-color"; }
10
+ static get encapsulation() { return "scoped"; }
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["style.css"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["style.css"]
19
+ };
20
+ }
21
+ static get properties() {
22
+ return {
23
+ "color": {
24
+ "type": "string",
25
+ "mutable": false,
26
+ "complexType": {
27
+ "original": "Color",
28
+ "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
29
+ "references": {
30
+ "Color": {
31
+ "location": "import",
32
+ "path": "../../../model"
33
+ }
34
+ }
35
+ },
36
+ "required": false,
37
+ "optional": false,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": ""
41
+ },
42
+ "attribute": "color",
43
+ "reflect": false
44
+ }
45
+ };
46
+ }
47
+ }
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/theme/color/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAQxD,MAAM,OAAO,kBAAkB;;;;EAE9B,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACH,IAAI,CAAC,KAAK;MACT,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAW,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACrD,oCAA8B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAiC,CAClG,CAAC,CACI,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from \"@stencil/core\"\nimport { Color } from \"../../../model\"\n\n@Component({\n\ttag: \"smoothly-theme-color\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyThemeColor {\n\t@Prop() color: Color\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{this.color}\n\t\t\t\t{([\"tint\", \"color\", \"shade\"] as const).map(variant => (\n\t\t\t\t\t<smoothly-theme-color-variant color={this.color} variant={variant}></smoothly-theme-color-variant>\n\t\t\t\t))}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,8 @@
1
+ :host {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ }
6
+ :host > :first-child {
7
+ margin-top: 0.2rem;
8
+ }
@@ -0,0 +1,66 @@
1
+ export class SmoothlyThemeColorVariant {
2
+ constructor() {
3
+ this.color = undefined;
4
+ this.variant = "color";
5
+ }
6
+ render() {
7
+ return "Aa";
8
+ }
9
+ static get is() { return "smoothly-theme-color-variant"; }
10
+ static get encapsulation() { return "scoped"; }
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["style.css"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["style.css"]
19
+ };
20
+ }
21
+ static get properties() {
22
+ return {
23
+ "color": {
24
+ "type": "string",
25
+ "mutable": false,
26
+ "complexType": {
27
+ "original": "Color",
28
+ "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
29
+ "references": {
30
+ "Color": {
31
+ "location": "import",
32
+ "path": "../../../../model"
33
+ }
34
+ }
35
+ },
36
+ "required": false,
37
+ "optional": false,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": ""
41
+ },
42
+ "attribute": "color",
43
+ "reflect": true
44
+ },
45
+ "variant": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "\"shade\" | \"tint\" | \"color\"",
50
+ "resolved": "\"color\" | \"shade\" | \"tint\"",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "attribute": "variant",
60
+ "reflect": true,
61
+ "defaultValue": "\"color\""
62
+ }
63
+ };
64
+ }
65
+ }
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/theme/color/variant/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAQ/C,MAAM,OAAO,yBAAyB;;;mBAE0B,OAAO;;EACtE,MAAM;IACL,OAAO,IAAI,CAAA;EACZ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Prop } from \"@stencil/core\"\nimport { Color } from \"../../../../model\"\n\n@Component({\n\ttag: \"smoothly-theme-color-variant\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyThemeColorVariant {\n\t@Prop({ reflect: true }) color: Color\n\t@Prop({ reflect: true }) variant: \"shade\" | \"tint\" | \"color\" = \"color\"\n\trender() {\n\t\treturn \"Aa\"\n\t}\n}\n"]}
@@ -0,0 +1,18 @@
1
+ :host {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ width: 3em;
6
+ height: 3em;
7
+ font-weight: 900;
8
+ }
9
+
10
+ :host[color][variant=color] {
11
+ background: rgb(var(--smoothly-color));
12
+ }
13
+ :host[color][variant=tint] {
14
+ background: rgb(var(--smoothly-color-tint));
15
+ }
16
+ :host[color][variant=shade] {
17
+ background: rgb(var(--smoothly-color-shade));
18
+ }
@@ -0,0 +1,30 @@
1
+ import { h } from "@stencil/core";
2
+ export class SmoothlyThemeColors {
3
+ render() {
4
+ return [
5
+ "primary",
6
+ "secondary",
7
+ "tertiary",
8
+ "success",
9
+ "warning",
10
+ "danger",
11
+ "light",
12
+ "medium",
13
+ "dark",
14
+ "default",
15
+ ].map(color => h("smoothly-theme-color", { color: color }));
16
+ }
17
+ static get is() { return "smoothly-theme-colors"; }
18
+ static get encapsulation() { return "scoped"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["style.css"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["style.css"]
27
+ };
28
+ }
29
+ }
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/theme/colors/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAO5C,MAAM,OAAO,mBAAmB;EAC/B,MAAM;IACL,OACC;MACC,SAAS;MACT,WAAW;MACX,UAAU;MACV,SAAS;MACT,SAAS;MACT,QAAQ;MACR,OAAO;MACP,QAAQ;MACR,MAAM;MACN,SAAS;KAEV,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,4BAAsB,KAAK,EAAE,KAAK,GAAyB,CAAC,CAAA;EAC5E,CAAC;;;;;;;;;CACD","sourcesContent":["import { Component, h } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-theme-colors\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyThemeColors {\n\trender() {\n\t\treturn (\n\t\t\t[\n\t\t\t\t\"primary\",\n\t\t\t\t\"secondary\",\n\t\t\t\t\"tertiary\",\n\t\t\t\t\"success\",\n\t\t\t\t\"warning\",\n\t\t\t\t\"danger\",\n\t\t\t\t\"light\",\n\t\t\t\t\"medium\",\n\t\t\t\t\"dark\",\n\t\t\t\t\"default\",\n\t\t\t] as const\n\t\t).map(color => <smoothly-theme-color color={color}></smoothly-theme-color>)\n\t}\n}\n"]}
@@ -0,0 +1,7 @@
1
+ :host {
2
+ display: grid;
3
+ grid-template-columns: repeat(3, 1fr);
4
+ row-gap: 1em;
5
+ column-gap: 1em;
6
+ width: fit-content;
7
+ }
@@ -1,14 +1,19 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyToggleSwitch {
3
3
  constructor() {
4
+ this.checkmark = true;
4
5
  this.selected = false;
5
6
  this.disabled = false;
6
7
  this.size = "default";
7
- this.name = undefined;
8
- this.value = undefined;
8
+ this.color = undefined;
9
+ this.fill = "clear";
10
+ }
11
+ handleClick() {
12
+ this.selected = !this.selected;
13
+ this.smoothlyToggleSwitchChange.emit(this.selected);
9
14
  }
10
15
  render() {
11
- return (h(Host, null, h("button", { disabled: this.disabled, id: "toggleBtn", onClick: () => (this.selected = !this.selected) }, h("smoothly-icon", { name: "checkmark-circle", fill: "clear", style: { display: this.selected ? "" : "none" } }), h("smoothly-icon", { name: "close-circle", fill: "clear", style: { display: !this.selected ? "" : "none" } }))));
16
+ return (h(Host, null, h("button", { disabled: this.disabled, onClick: () => this.handleClick() }, h("smoothly-icon", { color: this.color, name: !this.checkmark ? "ellipse" : this.selected ? "checkmark-circle" : "close-circle", fill: "clear", class: { selected: this.selected } }))));
12
17
  }
13
18
  static get is() { return "smoothly-toggle-switch"; }
14
19
  static get encapsulation() { return "shadow"; }
@@ -24,6 +29,24 @@ export class SmoothlyToggleSwitch {
24
29
  }
25
30
  static get properties() {
26
31
  return {
32
+ "checkmark": {
33
+ "type": "boolean",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "boolean",
37
+ "resolved": "boolean",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "checkmark",
47
+ "reflect": true,
48
+ "defaultValue": "true"
49
+ },
27
50
  "selected": {
28
51
  "type": "boolean",
29
52
  "mutable": true,
@@ -78,13 +101,18 @@ export class SmoothlyToggleSwitch {
78
101
  "reflect": true,
79
102
  "defaultValue": "\"default\""
80
103
  },
81
- "name": {
104
+ "color": {
82
105
  "type": "string",
83
106
  "mutable": false,
84
107
  "complexType": {
85
- "original": "string",
86
- "resolved": "string",
87
- "references": {}
108
+ "original": "Color",
109
+ "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
110
+ "references": {
111
+ "Color": {
112
+ "location": "import",
113
+ "path": "../../model"
114
+ }
115
+ }
88
116
  },
89
117
  "required": false,
90
118
  "optional": false,
@@ -92,27 +120,51 @@ export class SmoothlyToggleSwitch {
92
120
  "tags": [],
93
121
  "text": ""
94
122
  },
95
- "attribute": "name",
96
- "reflect": false
123
+ "attribute": "color",
124
+ "reflect": true
97
125
  },
98
- "value": {
99
- "type": "any",
126
+ "fill": {
127
+ "type": "string",
100
128
  "mutable": false,
101
129
  "complexType": {
102
- "original": "any",
103
- "resolved": "any",
104
- "references": {}
130
+ "original": "Fill",
131
+ "resolved": "\"clear\" | \"default\" | \"outline\" | \"solid\"",
132
+ "references": {
133
+ "Fill": {
134
+ "location": "import",
135
+ "path": "../../model"
136
+ }
137
+ }
105
138
  },
106
139
  "required": false,
107
- "optional": true,
140
+ "optional": false,
108
141
  "docs": {
109
142
  "tags": [],
110
143
  "text": ""
111
144
  },
112
- "attribute": "value",
113
- "reflect": false
145
+ "attribute": "fill",
146
+ "reflect": true,
147
+ "defaultValue": "\"clear\""
114
148
  }
115
149
  };
116
150
  }
151
+ static get events() {
152
+ return [{
153
+ "method": "smoothlyToggleSwitchChange",
154
+ "name": "smoothlyToggleSwitchChange",
155
+ "bubbles": true,
156
+ "cancelable": true,
157
+ "composed": true,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": ""
161
+ },
162
+ "complexType": {
163
+ "original": "boolean",
164
+ "resolved": "boolean",
165
+ "references": {}
166
+ }
167
+ }];
168
+ }
117
169
  }
118
170
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toggle-switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAOxD,MAAM,OAAO,oBAAoB;;oBACmB,KAAK;oBACpB,KAAK;gBACsB,SAAS;;;;EAGxE,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,cAAQ,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9F,qBACC,IAAI,EAAC,kBAAkB,EACvB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,GAAkB;QAClE,qBACC,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,GAAkB,CAC3D,CACH,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-toggle-switch\",\n\tstyleUrl: \"style.css\",\n\tshadow: true,\n})\nexport class SmoothlyToggleSwitch {\n\t@Prop({ mutable: true, reflect: true }) selected = false\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) size: \"small\" | \"default\" | \"large\" = \"default\"\n\t@Prop() name: string\n\t@Prop() value?: any\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<button disabled={this.disabled} id=\"toggleBtn\" onClick={() => (this.selected = !this.selected)}>\n\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\tname=\"checkmark-circle\"\n\t\t\t\t\t\tfill=\"clear\"\n\t\t\t\t\t\tstyle={{ display: this.selected ? \"\" : \"none\" }}></smoothly-icon>\n\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\tname=\"close-circle\"\n\t\t\t\t\t\tfill=\"clear\"\n\t\t\t\t\t\tstyle={{ display: !this.selected ? \"\" : \"none\" }}></smoothly-icon>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toggle-switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAQ7E,MAAM,OAAO,oBAAoB;;qBACK,IAAI;oBACU,KAAK;oBACpB,KAAK;gBACsB,SAAS;;gBAElC,OAAO;;EAG7C,WAAW;IACV,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAA;IAC9B,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;EACpD,CAAC;EAED,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,cAAQ,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE;QACjE,qBACC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,cAAc,EACvF,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAkB,CAC7C,CACH,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, h, Host, Prop } from \"@stencil/core\"\nimport { Color, Fill } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-toggle-switch\",\n\tstyleUrl: \"style.css\",\n\tshadow: true,\n})\nexport class SmoothlyToggleSwitch {\n\t@Prop({ reflect: true }) checkmark = true\n\t@Prop({ mutable: true, reflect: true }) selected = false\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) size: \"small\" | \"default\" | \"large\" = \"default\"\n\t@Prop({ reflect: true }) color: Color\n\t@Prop({ reflect: true }) fill: Fill = \"clear\"\n\t@Event() smoothlyToggleSwitchChange: EventEmitter<boolean>\n\n\thandleClick() {\n\t\tthis.selected = !this.selected\n\t\tthis.smoothlyToggleSwitchChange.emit(this.selected)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<button disabled={this.disabled} onClick={() => this.handleClick()}>\n\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tname={!this.checkmark ? \"ellipse\" : this.selected ? \"checkmark-circle\" : \"close-circle\"}\n\t\t\t\t\t\tfill=\"clear\"\n\t\t\t\t\t\tclass={{ selected: this.selected }}></smoothly-icon>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  height: 1.8em;
6
6
  }
7
7
 
8
- button {
8
+ :host button {
9
9
  width: 100%;
10
10
  height: 100%;
11
11
  display: flex;
@@ -15,18 +15,33 @@ button {
15
15
  cursor: pointer;
16
16
  border: none;
17
17
  border-radius: 3em;
18
+ background-color: rgb(var(--smoothly-light-tint));
19
+ }
20
+ :host button:hover {
18
21
  background-color: rgb(var(--smoothly-light-color));
19
22
  }
20
-
21
23
  :host smoothly-icon {
22
24
  display: flex;
23
25
  justify-content: flex-start;
24
26
  align-items: center;
25
27
  position: absolute;
26
28
  left: 0;
27
- fill: rgb(var(--smoothly-default-color));
28
- stroke: rgb(var(--smoothly-default-color));
29
+ fill: rgb(var(--smoothly-color));
30
+ stroke: rgb(var(--smoothly-color));
29
31
  font-size: 1.2em;
32
+ transition: 100ms ease-in-out;
33
+ }
34
+
35
+ :host[checkmark] smoothly-icon {
36
+ fill: rgb(var(--smoothly-success-color));
37
+ stroke: rgb(var(--smoothly-success-color));
38
+ }
39
+ :host([selected][checkmark]) button{
40
+ background-color: rgb(var(--smoothly-success-color));
41
+ }
42
+
43
+ :host([selected]) smoothly-icon{
44
+ transform: translateX(100%);
30
45
  }
31
46
 
32
47
  :host([size=small]){
@@ -46,11 +61,3 @@ button {
46
61
  :host([size=large]) smoothly-icon{
47
62
  font-size: 1.75em;
48
63
  }
49
-
50
- :host([selected]) > button{
51
- background-color: rgb(var(--smoothly-success-color));
52
- }
53
-
54
- :host([selected]) smoothly-icon{
55
- transform: translateX(100%);
56
- }
@@ -9,7 +9,7 @@ export class SmoothlyTriggerSource {
9
9
  if (Trigger.is(content))
10
10
  this.trigger.emit(content);
11
11
  else
12
- this.message.emit({ destination, content });
12
+ this.smoothlyMessage.emit({ destination, content });
13
13
  }, window);
14
14
  }
15
15
  render() {
@@ -70,8 +70,8 @@ export class SmoothlyTriggerSource {
70
70
  }
71
71
  }
72
72
  }, {
73
- "method": "message",
74
- "name": "message",
73
+ "method": "smoothlyMessage",
74
+ "name": "smoothlyMessage",
75
75
  "bubbles": true,
76
76
  "cancelable": true,
77
77
  "composed": true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/trigger-source/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAO9C,MAAM,OAAO,qBAAqB;;;;EAKjC,gBAAgB;IACf,OAAO,CAAC,MAAM,CACb,IAAI,CAAC,MAAM,EACX,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE;MACxB,IAAI,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;;QAE1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAA;IAC7C,CAAC,EACD,MAAM,CACN,CAAA;EACF,CAAC;EACD,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop } from \"@stencil/core\"\nimport { Message, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger-source\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTriggerSource {\n\t@Prop() listen: string\n\t@Event() trigger: EventEmitter<Trigger>\n\t@Event() message: EventEmitter<Message<any>>\n\t@Element() element?: HTMLElement\n\tcomponentDidLoad() {\n\t\tMessage.listen(\n\t\t\tthis.listen,\n\t\t\t(destination, content) => {\n\t\t\t\tif (Trigger.is(content))\n\t\t\t\t\tthis.trigger.emit(content)\n\t\t\t\telse\n\t\t\t\t\tthis.message.emit({ destination, content })\n\t\t\t},\n\t\t\twindow\n\t\t)\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/trigger-source/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAO9C,MAAM,OAAO,qBAAqB;;;;EAKjC,gBAAgB;IACf,OAAO,CAAC,MAAM,CACb,IAAI,CAAC,MAAM,EACX,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE;MACxB,IAAI,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;;QAE1B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAA;IACrD,CAAC,EACD,MAAM,CACN,CAAA;EACF,CAAC;EACD,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop } from \"@stencil/core\"\nimport { Message, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger-source\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTriggerSource {\n\t@Prop() listen: string\n\t@Event() trigger: EventEmitter<Trigger>\n\t@Event() smoothlyMessage: EventEmitter<Message<any>>\n\t@Element() element?: HTMLElement\n\tcomponentDidLoad() {\n\t\tMessage.listen(\n\t\t\tthis.listen,\n\t\t\t(destination, content) => {\n\t\t\t\tif (Trigger.is(content))\n\t\t\t\t\tthis.trigger.emit(content)\n\t\t\t\telse\n\t\t\t\t\tthis.smoothlyMessage.emit({ destination, content })\n\t\t\t},\n\t\t\twindow\n\t\t)\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}