smoothly 0.3.38 → 1.0.0-alpha.10

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 (392) hide show
  1. package/dist/cjs/GoogleFont-6c4f0da1.js +2 -0
  2. package/dist/cjs/GoogleFont-6c4f0da1.js.map +1 -0
  3. package/dist/cjs/Listenable-c8d2f8ef.js +2 -0
  4. package/dist/cjs/Listenable-c8d2f8ef.js.map +1 -0
  5. package/dist/cjs/getLanguage-430ecf04.js +2 -0
  6. package/dist/cjs/getLanguage-430ecf04.js.map +1 -0
  7. package/dist/cjs/{index-de46f836.js → index-8352a4e0.js} +106 -1
  8. package/dist/cjs/index-8352a4e0.js.map +1 -0
  9. package/dist/cjs/{index-879bbabb.js → index-b282ee83.js} +3 -1
  10. package/dist/cjs/index-b282ee83.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +4 -2
  12. package/dist/cjs/index.cjs.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +6 -3
  14. package/dist/cjs/loader.cjs.js.map +1 -0
  15. package/dist/cjs/{smoothly-accordion_53.cjs.entry.js → smoothly-accordion_60.cjs.entry.js} +5430 -460
  16. package/dist/cjs/smoothly-accordion_60.cjs.entry.js.map +1 -0
  17. package/dist/cjs/smoothly-address-display.cjs.entry.js +32 -0
  18. package/dist/cjs/smoothly-address-display.cjs.entry.js.map +1 -0
  19. package/dist/cjs/smoothly-address.cjs.entry.js +23 -0
  20. package/dist/cjs/smoothly-address.cjs.entry.js.map +1 -0
  21. package/dist/cjs/smoothly-addresses.cjs.entry.js +23 -0
  22. package/dist/cjs/smoothly-addresses.cjs.entry.js.map +1 -0
  23. package/dist/cjs/smoothly-color.cjs.entry.js +22 -0
  24. package/dist/cjs/smoothly-color.cjs.entry.js.map +1 -0
  25. package/dist/cjs/smoothly-country.cjs.entry.js +3 -1
  26. package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -0
  27. package/dist/cjs/smoothly-google-font.cjs.entry.js +3 -1
  28. package/dist/cjs/smoothly-google-font.cjs.entry.js.map +1 -0
  29. package/dist/cjs/smoothly-radio-group.cjs.entry.js +3 -1
  30. package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +1 -0
  31. package/dist/cjs/smoothly-reorder.cjs.entry.js +3 -1
  32. package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -0
  33. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -1
  34. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -0
  35. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -1
  36. package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -0
  37. package/dist/cjs/smoothly.cjs.js +9 -3
  38. package/dist/cjs/smoothly.cjs.js.map +1 -0
  39. package/dist/collection/collection-manifest.json +12 -1
  40. package/dist/collection/components/App.js +1 -0
  41. package/dist/collection/components/App.js.map +1 -0
  42. package/dist/collection/components/Button.js +5 -0
  43. package/dist/collection/components/Button.js.map +1 -0
  44. package/dist/collection/components/accordion/index.js +1 -0
  45. package/dist/collection/components/accordion/index.js.map +1 -0
  46. package/dist/collection/components/accordion-item/index.js +1 -0
  47. package/dist/collection/components/accordion-item/index.js.map +1 -0
  48. package/dist/collection/components/address/index.js +65 -0
  49. package/dist/collection/components/address/index.js.map +1 -0
  50. package/dist/collection/components/address/style.css +4 -0
  51. package/dist/collection/components/address-display/index.js +72 -0
  52. package/dist/collection/components/address-display/index.js.map +1 -0
  53. package/dist/collection/components/address-display/style.css +4 -0
  54. package/dist/collection/components/addresses/index.js +62 -0
  55. package/dist/collection/components/addresses/index.js.map +1 -0
  56. package/dist/collection/components/addresses/style.css +4 -0
  57. package/dist/collection/components/app/index.js +1 -0
  58. package/dist/collection/components/app/index.js.map +1 -0
  59. package/dist/collection/components/app-demo/index.js +1 -0
  60. package/dist/collection/components/app-demo/index.js.map +1 -0
  61. package/dist/collection/components/backtotop/index.js +1 -0
  62. package/dist/collection/components/backtotop/index.js.map +1 -0
  63. package/dist/collection/components/button/index.js +50 -26
  64. package/dist/collection/components/button/index.js.map +1 -0
  65. package/dist/collection/components/button/style.css +184 -31
  66. package/dist/collection/components/calendar/generate.js +1 -0
  67. package/dist/collection/components/calendar/generate.js.map +1 -0
  68. package/dist/collection/components/calendar/index.js +25 -46
  69. package/dist/collection/components/calendar/index.js.map +1 -0
  70. package/dist/collection/components/calendar/style.css +8 -12
  71. package/dist/collection/components/checkbox/index.js +90 -41
  72. package/dist/collection/components/checkbox/index.js.map +1 -0
  73. package/dist/collection/components/checkbox/style.css +56 -9
  74. package/dist/collection/components/checkbox/translation/index.js +1 -0
  75. package/dist/collection/components/checkbox/translation/index.js.map +1 -0
  76. package/dist/collection/components/checkbox/translation/sv.js +1 -0
  77. package/dist/collection/components/checkbox/translation/sv.js.map +1 -0
  78. package/dist/collection/components/color/index.js +48 -0
  79. package/dist/collection/components/color/index.js.map +1 -0
  80. package/dist/collection/components/color/style.css +69 -0
  81. package/dist/collection/components/country/index.js +1 -0
  82. package/dist/collection/components/country/index.js.map +1 -0
  83. package/dist/collection/components/dialog/index.js +1 -0
  84. package/dist/collection/components/dialog/index.js.map +1 -0
  85. package/dist/collection/components/dialog-demo/index.js +1 -0
  86. package/dist/collection/components/dialog-demo/index.js.map +1 -0
  87. package/dist/collection/components/display/index.js +1 -0
  88. package/dist/collection/components/display/index.js.map +1 -0
  89. package/dist/collection/components/display-amount/index.js +1 -0
  90. package/dist/collection/components/display-amount/index.js.map +1 -0
  91. package/dist/collection/components/display-date-time/index.js +1 -0
  92. package/dist/collection/components/display-date-time/index.js.map +1 -0
  93. package/dist/collection/components/display-demo/index.js +2 -1
  94. package/dist/collection/components/display-demo/index.js.map +1 -0
  95. package/dist/collection/components/filter/Clearable.js +8 -0
  96. package/dist/collection/components/filter/Clearable.js.map +1 -0
  97. package/dist/collection/components/filter/index.js +186 -0
  98. package/dist/collection/components/filter/index.js.map +1 -0
  99. package/dist/collection/components/filter/input/index.js +376 -0
  100. package/dist/collection/components/filter/input/index.js.map +1 -0
  101. package/dist/collection/components/filter/input/style.css +5 -0
  102. package/dist/collection/components/filter/style.css +106 -0
  103. package/dist/collection/components/form/Clearable.js +8 -0
  104. package/dist/collection/components/form/Clearable.js.map +1 -0
  105. package/dist/collection/components/form/Data.js +15 -0
  106. package/dist/collection/components/form/Data.js.map +1 -0
  107. package/dist/collection/components/form/index.js +251 -0
  108. package/dist/collection/components/form/index.js.map +1 -0
  109. package/dist/collection/components/form/style.css +50 -0
  110. package/dist/collection/components/frame/index.js +13 -9
  111. package/dist/collection/components/frame/index.js.map +1 -0
  112. package/dist/collection/components/google-font/index.js +1 -0
  113. package/dist/collection/components/google-font/index.js.map +1 -0
  114. package/dist/collection/components/icon/index.js +7 -1
  115. package/dist/collection/components/icon/index.js.map +1 -0
  116. package/dist/collection/components/icon-demo/index.js +1 -0
  117. package/dist/collection/components/icon-demo/index.js.map +1 -0
  118. package/dist/collection/components/input/index.js +38 -10
  119. package/dist/collection/components/input/index.js.map +1 -0
  120. package/dist/collection/components/input/style.css +11 -6
  121. package/dist/collection/components/input-date/index.js +3 -26
  122. package/dist/collection/components/input-date/index.js.map +1 -0
  123. package/dist/collection/components/input-date/style.css +4 -4
  124. package/dist/collection/components/input-date-range/index.js +1 -0
  125. package/dist/collection/components/input-date-range/index.js.map +1 -0
  126. package/dist/collection/components/input-demo/index.js +38 -1
  127. package/dist/collection/components/input-demo/index.js.map +1 -0
  128. package/dist/collection/components/input-demo/style.css +4 -0
  129. package/dist/collection/components/input-month/index.js +1 -0
  130. package/dist/collection/components/input-month/index.js.map +1 -0
  131. package/dist/collection/components/item/index.js +1 -0
  132. package/dist/collection/components/item/index.js.map +1 -0
  133. package/dist/collection/components/menu-options/index.js +1 -0
  134. package/dist/collection/components/menu-options/index.js.map +1 -0
  135. package/dist/collection/components/notification/index.js +1 -0
  136. package/dist/collection/components/notification/index.js.map +1 -0
  137. package/dist/collection/components/notifier/index.js +1 -0
  138. package/dist/collection/components/notifier/index.js.map +1 -0
  139. package/dist/collection/components/option/index.js +1 -0
  140. package/dist/collection/components/option/index.js.map +1 -0
  141. package/dist/collection/components/picker/index.js +1 -0
  142. package/dist/collection/components/picker/index.js.map +1 -0
  143. package/dist/collection/components/popup/index.js +1 -0
  144. package/dist/collection/components/popup/index.js.map +1 -0
  145. package/dist/collection/components/quiet/index.js +1 -0
  146. package/dist/collection/components/quiet/index.js.map +1 -0
  147. package/dist/collection/components/radio/index.js +1 -0
  148. package/dist/collection/components/radio/index.js.map +1 -0
  149. package/dist/collection/components/radio/style.css +1 -1
  150. package/dist/collection/components/radio-button/Selected.js +1 -0
  151. package/dist/collection/components/radio-button/Selected.js.map +1 -0
  152. package/dist/collection/components/radio-button/index.js +1 -0
  153. package/dist/collection/components/radio-button/index.js.map +1 -0
  154. package/dist/collection/components/radio-button/item/index.js +6 -6
  155. package/dist/collection/components/radio-button/item/index.js.map +1 -0
  156. package/dist/collection/components/radio-button/item/style.css +4 -19
  157. package/dist/collection/components/radio-group/index.js +1 -0
  158. package/dist/collection/components/radio-group/index.js.map +1 -0
  159. package/dist/collection/components/reorder/Draggable.js +1 -0
  160. package/dist/collection/components/reorder/Draggable.js.map +1 -0
  161. package/dist/collection/components/reorder/Dragged.js +1 -0
  162. package/dist/collection/components/reorder/Dragged.js.map +1 -0
  163. package/dist/collection/components/reorder/index.js +1 -0
  164. package/dist/collection/components/reorder/index.js.map +1 -0
  165. package/dist/collection/components/room/index.js +1 -0
  166. package/dist/collection/components/room/index.js.map +1 -0
  167. package/dist/collection/components/select/index.js +1 -0
  168. package/dist/collection/components/select/index.js.map +1 -0
  169. package/dist/collection/components/select-demo/index.js +1 -1
  170. package/dist/collection/components/select-demo/index.js.map +1 -0
  171. package/dist/collection/components/selector/index.js +1 -0
  172. package/dist/collection/components/selector/index.js.map +1 -0
  173. package/dist/collection/components/skeleton/index.js +1 -0
  174. package/dist/collection/components/skeleton/index.js.map +1 -0
  175. package/dist/collection/components/spinner/index.js +1 -0
  176. package/dist/collection/components/spinner/index.js.map +1 -0
  177. package/dist/collection/components/submit/index.js +59 -116
  178. package/dist/collection/components/submit/index.js.map +1 -0
  179. package/dist/collection/components/summary/index.js +92 -0
  180. package/dist/collection/components/summary/index.js.map +1 -0
  181. package/dist/collection/components/summary/style.css +31 -0
  182. package/dist/collection/components/svg/index.js +1 -0
  183. package/dist/collection/components/svg/index.js.map +1 -0
  184. package/dist/collection/components/tab/index.js +1 -0
  185. package/dist/collection/components/tab/index.js.map +1 -0
  186. package/dist/collection/components/tab-switch/index.js +1 -0
  187. package/dist/collection/components/tab-switch/index.js.map +1 -0
  188. package/dist/collection/components/table/Selector.js +44 -0
  189. package/dist/collection/components/table/Selector.js.map +1 -0
  190. package/dist/collection/components/table/cell/index.js +1 -0
  191. package/dist/collection/components/table/cell/index.js.map +1 -0
  192. package/dist/collection/components/table/cell/style.css +10 -0
  193. package/dist/collection/components/table/demo/filtered/Root.js +2 -0
  194. package/dist/collection/components/table/demo/filtered/Root.js.map +1 -0
  195. package/dist/collection/components/table/demo/filtered/index.js +66 -0
  196. package/dist/collection/components/table/demo/filtered/index.js.map +1 -0
  197. package/dist/collection/components/table/demo/filtered/style.css +3 -0
  198. package/dist/collection/components/table/demo/index.js +4 -1
  199. package/dist/collection/components/table/demo/index.js.map +1 -0
  200. package/dist/collection/components/table/expandable/cell/index.js +1 -5
  201. package/dist/collection/components/table/expandable/cell/index.js.map +1 -0
  202. package/dist/collection/components/table/expandable/cell/style.css +10 -0
  203. package/dist/collection/components/table/expandable/row/index.js +1 -0
  204. package/dist/collection/components/table/expandable/row/index.js.map +1 -0
  205. package/dist/collection/components/table/header/index.js +1 -0
  206. package/dist/collection/components/table/header/index.js.map +1 -0
  207. package/dist/collection/components/table/header/style.css +11 -0
  208. package/dist/collection/components/table/index.js +20 -0
  209. package/dist/collection/components/table/index.js.map +1 -0
  210. package/dist/collection/components/table/row/index.js +1 -0
  211. package/dist/collection/components/table/row/index.js.map +1 -0
  212. package/dist/collection/components/toggle/style.css +36 -0
  213. package/dist/collection/components/toggle/toggle.js +129 -0
  214. package/dist/collection/components/toggle/toggle.js.map +1 -0
  215. package/dist/collection/components/toggle-switch/index.js +118 -0
  216. package/dist/collection/components/toggle-switch/index.js.map +1 -0
  217. package/dist/collection/components/toggle-switch/style.css +56 -0
  218. package/dist/collection/components/trigger/index.js +1 -23
  219. package/dist/collection/components/trigger/index.js.map +1 -0
  220. package/dist/collection/components/trigger/style.css +2 -2
  221. package/dist/collection/components/trigger-sink/index.js +1 -0
  222. package/dist/collection/components/trigger-sink/index.js.map +1 -0
  223. package/dist/collection/components/trigger-source/index.js +1 -0
  224. package/dist/collection/components/trigger-source/index.js.map +1 -0
  225. package/dist/collection/components/tuple/index.js +1 -0
  226. package/dist/collection/components/tuple/index.js.map +1 -0
  227. package/dist/collection/components/urlencoded/index.js +1 -0
  228. package/dist/collection/components/urlencoded/index.js.map +1 -0
  229. package/dist/collection/index.js +1 -0
  230. package/dist/collection/index.js.map +1 -0
  231. package/dist/collection/model/Autocomplete.js +1 -0
  232. package/dist/collection/model/Autocomplete.js.map +1 -0
  233. package/dist/collection/model/ClientIdentifier.js +1 -0
  234. package/dist/collection/model/ClientIdentifier.js.map +1 -0
  235. package/dist/collection/model/Color.js +1 -0
  236. package/dist/collection/model/Color.js.map +1 -0
  237. package/dist/collection/model/Fill.js +1 -0
  238. package/dist/collection/model/Fill.js.map +1 -0
  239. package/dist/collection/model/GoogleFont.js +1 -0
  240. package/dist/collection/model/GoogleFont.js.map +1 -0
  241. package/dist/collection/model/Listenable.js +1 -0
  242. package/dist/collection/model/Listenable.js.map +1 -0
  243. package/dist/collection/model/Message.js +1 -0
  244. package/dist/collection/model/Message.js.map +1 -0
  245. package/dist/collection/model/Notice.js +1 -0
  246. package/dist/collection/model/Notice.js.map +1 -0
  247. package/dist/collection/model/Option.js +1 -0
  248. package/dist/collection/model/Option.js.map +1 -0
  249. package/dist/collection/model/Trigger.js +1 -0
  250. package/dist/collection/model/Trigger.js.map +1 -0
  251. package/dist/collection/model/index.js +1 -0
  252. package/dist/collection/model/index.js.map +1 -0
  253. package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js +1 -0
  254. package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js.map +1 -0
  255. package/dist/collection/utilities/Cosmetic/Color/Hex.js +1 -0
  256. package/dist/collection/utilities/Cosmetic/Color/Hex.js.map +1 -0
  257. package/dist/collection/utilities/Cosmetic/Color/Hsl.js +1 -0
  258. package/dist/collection/utilities/Cosmetic/Color/Hsl.js.map +1 -0
  259. package/dist/collection/utilities/Cosmetic/Color/Name.js +1 -0
  260. package/dist/collection/utilities/Cosmetic/Color/Name.js.map +1 -0
  261. package/dist/collection/utilities/Cosmetic/Color/Rgb.js +1 -0
  262. package/dist/collection/utilities/Cosmetic/Color/Rgb.js.map +1 -0
  263. package/dist/collection/utilities/Cosmetic/Color/index.js +1 -0
  264. package/dist/collection/utilities/Cosmetic/Color/index.js.map +1 -0
  265. package/dist/collection/utilities/Cosmetic/index.js +1 -0
  266. package/dist/collection/utilities/Cosmetic/index.js.map +1 -0
  267. package/dist/collection/utilities/index.js +1 -0
  268. package/dist/collection/utilities/index.js.map +1 -0
  269. package/dist/custom-elements/index.d.ts +66 -0
  270. package/dist/custom-elements/index.js +5708 -644
  271. package/dist/custom-elements/index.js.map +1 -0
  272. package/dist/esm/GoogleFont-8474516b.js +2 -0
  273. package/dist/esm/GoogleFont-8474516b.js.map +1 -0
  274. package/dist/esm/Listenable-55a1f6af.js +2 -0
  275. package/dist/esm/Listenable-55a1f6af.js.map +1 -0
  276. package/dist/esm/getLanguage-cccb8418.js +2 -0
  277. package/dist/esm/getLanguage-cccb8418.js.map +1 -0
  278. package/dist/esm/{index-d7a4e405.js → index-2e948fc3.js} +3 -1
  279. package/dist/esm/index-2e948fc3.js.map +1 -0
  280. package/dist/esm/{index-d3421c35.js → index-7b57a52c.js} +106 -2
  281. package/dist/esm/index-7b57a52c.js.map +1 -0
  282. package/dist/esm/index.js +4 -2
  283. package/dist/esm/index.js.map +1 -0
  284. package/dist/esm/loader.js +6 -3
  285. package/dist/esm/loader.js.map +1 -0
  286. package/dist/esm/{smoothly-accordion_53.entry.js → smoothly-accordion_60.entry.js} +5423 -460
  287. package/dist/esm/smoothly-accordion_60.entry.js.map +1 -0
  288. package/dist/esm/smoothly-address-display.entry.js +28 -0
  289. package/dist/esm/smoothly-address-display.entry.js.map +1 -0
  290. package/dist/esm/smoothly-address.entry.js +19 -0
  291. package/dist/esm/smoothly-address.entry.js.map +1 -0
  292. package/dist/esm/smoothly-addresses.entry.js +19 -0
  293. package/dist/esm/smoothly-addresses.entry.js.map +1 -0
  294. package/dist/esm/smoothly-color.entry.js +18 -0
  295. package/dist/esm/smoothly-color.entry.js.map +1 -0
  296. package/dist/esm/smoothly-country.entry.js +3 -1
  297. package/dist/esm/smoothly-country.entry.js.map +1 -0
  298. package/dist/esm/smoothly-google-font.entry.js +3 -1
  299. package/dist/esm/smoothly-google-font.entry.js.map +1 -0
  300. package/dist/esm/smoothly-radio-group.entry.js +3 -1
  301. package/dist/esm/smoothly-radio-group.entry.js.map +1 -0
  302. package/dist/esm/smoothly-reorder.entry.js +3 -1
  303. package/dist/esm/smoothly-reorder.entry.js.map +1 -0
  304. package/dist/esm/smoothly-trigger-sink.entry.js +3 -1
  305. package/dist/esm/smoothly-trigger-sink.entry.js.map +1 -0
  306. package/dist/esm/smoothly-trigger-source.entry.js +3 -1
  307. package/dist/esm/smoothly-trigger-source.entry.js.map +1 -0
  308. package/dist/esm/smoothly.js +6 -3
  309. package/dist/esm/smoothly.js.map +1 -0
  310. package/dist/smoothly/index.esm.js +2 -1
  311. package/dist/smoothly/index.esm.js.map +1 -0
  312. package/dist/smoothly/p-156763cd.js +2 -1
  313. package/dist/smoothly/p-156763cd.js.map +1 -0
  314. package/dist/smoothly/p-5200d31c.entry.js +2 -0
  315. package/dist/smoothly/p-5200d31c.entry.js.map +1 -0
  316. package/dist/smoothly/p-5b28795c.entry.js +2 -0
  317. package/dist/smoothly/p-5b28795c.entry.js.map +1 -0
  318. package/dist/smoothly/p-5b6351f6.js +2 -1
  319. package/dist/smoothly/p-5b6351f6.js.map +1 -0
  320. package/dist/smoothly/p-70280a11.js +2 -0
  321. package/dist/smoothly/p-70280a11.js.map +1 -0
  322. package/dist/smoothly/p-712b362e.entry.js +2 -0
  323. package/dist/smoothly/p-712b362e.entry.js.map +1 -0
  324. package/dist/smoothly/p-79025273.entry.js +2 -0
  325. package/dist/smoothly/p-79025273.entry.js.map +1 -0
  326. package/dist/smoothly/p-940af6d3.entry.js +2 -0
  327. package/dist/smoothly/p-940af6d3.entry.js.map +1 -0
  328. package/dist/smoothly/{p-6630d923.entry.js → p-b49664d8.entry.js} +2 -1
  329. package/dist/smoothly/p-b49664d8.entry.js.map +1 -0
  330. package/dist/smoothly/p-bd478a53.js +2 -1
  331. package/dist/smoothly/p-bd478a53.js.map +1 -0
  332. package/dist/smoothly/p-c49d2094.entry.js +2 -0
  333. package/dist/smoothly/p-c49d2094.entry.js.map +1 -0
  334. package/dist/smoothly/p-c88ae468.js +3 -0
  335. package/dist/smoothly/p-c88ae468.js.map +1 -0
  336. package/dist/smoothly/p-c9a64fb5.entry.js +2 -0
  337. package/dist/smoothly/p-c9a64fb5.entry.js.map +1 -0
  338. package/dist/smoothly/p-d4182274.entry.js +2 -0
  339. package/dist/smoothly/p-d4182274.entry.js.map +1 -0
  340. package/dist/smoothly/p-d4d04558.entry.js +2 -0
  341. package/dist/smoothly/p-d4d04558.entry.js.map +1 -0
  342. package/dist/smoothly/p-e136b93e.entry.js +2 -0
  343. package/dist/smoothly/p-e136b93e.entry.js.map +1 -0
  344. package/dist/smoothly/smoothly.esm.js +2 -1
  345. package/dist/smoothly/smoothly.esm.js.map +1 -0
  346. package/dist/types/components/Button.d.ts +10 -0
  347. package/dist/types/components/address/index.d.ts +6 -0
  348. package/dist/types/components/address-display/index.d.ts +13 -0
  349. package/dist/types/components/addresses/index.d.ts +6 -0
  350. package/dist/types/components/button/index.d.ts +7 -5
  351. package/dist/types/components/calendar/index.d.ts +1 -3
  352. package/dist/types/components/checkbox/index.d.ts +6 -7
  353. package/dist/types/components/color/index.d.ts +5 -0
  354. package/dist/types/components/filter/Clearable.d.ts +6 -0
  355. package/dist/types/components/filter/index.d.ts +16 -0
  356. package/dist/types/components/filter/input/index.d.ts +25 -0
  357. package/dist/types/components/form/Clearable.d.ts +6 -0
  358. package/dist/types/components/form/Data.d.ts +9 -0
  359. package/dist/types/components/form/index.d.ts +20 -0
  360. package/dist/types/components/frame/index.d.ts +2 -2
  361. package/dist/types/components/input/index.d.ts +3 -8
  362. package/dist/types/components/input-date/index.d.ts +0 -2
  363. package/dist/types/components/radio-button/item/index.d.ts +1 -1
  364. package/dist/types/components/submit/index.d.ts +7 -11
  365. package/dist/types/components/summary/index.d.ts +7 -0
  366. package/dist/types/components/table/Selector.d.ts +10 -0
  367. package/dist/types/components/table/demo/filtered/Root.d.ts +27 -0
  368. package/dist/types/components/table/demo/filtered/index.d.ts +13 -0
  369. package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
  370. package/dist/types/components/table/index.d.ts +1 -0
  371. package/dist/types/components/toggle/toggle.d.ts +9 -0
  372. package/dist/types/components/toggle-switch/index.d.ts +8 -0
  373. package/dist/types/components/trigger/index.d.ts +1 -2
  374. package/dist/types/components.d.ts +286 -31
  375. package/dist/types/index.d.ts +1 -1
  376. package/dist/types/model/index.d.ts +0 -1
  377. package/dist/types/stencil-public-runtime.d.ts +20 -0
  378. package/loader/index.d.ts +9 -0
  379. package/package.json +6 -3
  380. package/dist/collection/components/submit/Data.js +0 -12
  381. package/dist/collection/components/submit/style.css +0 -37
  382. package/dist/collection/model/Expand.js +0 -1
  383. package/dist/smoothly/p-4a0b35b7.js +0 -2
  384. package/dist/smoothly/p-4fecfc5d.entry.js +0 -1
  385. package/dist/smoothly/p-5d41e3ca.entry.js +0 -1
  386. package/dist/smoothly/p-7d95afef.entry.js +0 -1
  387. package/dist/smoothly/p-7db49a38.entry.js +0 -1
  388. package/dist/smoothly/p-94e08cee.js +0 -1
  389. package/dist/smoothly/p-96e8781a.entry.js +0 -1
  390. package/dist/smoothly/p-e0f4957d.entry.js +0 -1
  391. package/dist/types/components/submit/Data.d.ts +0 -7
  392. package/dist/types/model/Expand.d.ts +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/app/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAQlD,MAAM,OAAO,WAAW;;;;EAEvB,MAAM;IACL,OAAO,CACN;MACC,eAAa,CACM,CACpB,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { Color } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-app\",\n\tstyleUrl: \"style.css\",\n\tscoped: false,\n})\nexport class SmoothlyApp {\n\t@Prop() color: Color\n\trender() {\n\t\treturn (\n\t\t\t<smoothly-notifier>\n\t\t\t\t<slot></slot>\n\t\t\t</smoothly-notifier>\n\t\t)\n\t}\n}\n"]}
@@ -47,3 +47,4 @@ export class SmoothlyAppDemo {
47
47
  };
48
48
  }
49
49
  }
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/app-demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAK5B,MAAM,OAAO,eAAe;;;;EAE3B,MAAM;IACL,OAAO,CACN,EAAC,GAAG,IAAC,KAAK,EAAC,eAAe;MACzB,SAAG,IAAI,E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E,IAAI,EAAE;YAC/C,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE;YACvC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE;YACvC,EAAE,IAAI,EAAE,2BAA2B,EAAE,KAAK,EAAE,SAAS,EAAE;YACvD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE;YACtC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;YAC1C,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE;YAClD,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE;YAC1C,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE;WACzC,GAAoB,CAChB;MACP,wBAAkB,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,QAAQ;QACxD,qBAAe,OAAO,EAAE,SAAS,EAAE,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,GAAiB,CAC9D,CACd,CACN,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { redirect } from \"../../index\"\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { App } from \"../App\"\n\n@Component({\n\ttag: \"smoothly-app-demo\",\n})\nexport class SmoothlyAppDemo {\n\t@Prop() baseUrl: string\n\trender() {\n\t\treturn (\n\t\t\t<App label=\"Smoothly Demo\">\n\t\t\t\t<a slot=\"nav-start\" href=\"display\">\n\t\t\t\t\tDisplay\n\t\t\t\t</a>\n\t\t\t\t<a slot=\"nav-start\" href=\"https://google.com\">\n\t\t\t\t\tExternal\n\t\t\t\t</a>\n\t\t\t\t<smoothly-room path=\"\">\n\t\t\t\t\t<smoothly-input type=\"text\">Default</smoothly-input>\n\t\t\t\t\t<div style={{ padding: \"1em\", maxWidth: \"12em\" }}>\n\t\t\t\t\t\t<smoothly-button fill=\"solid\" color=\"danger\" link=\"https://google.com\">\n\t\t\t\t\t\t\topen\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button\n\t\t\t\t\t\t\tfill=\"solid\"\n\t\t\t\t\t\t\tcolor=\"danger\"\n\t\t\t\t\t\t\tlink=\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"\n\t\t\t\t\t\t\tdownload={true}>\n\t\t\t\t\t\t\tdownload\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button fill=\"solid\" color=\"danger\" onClick={() => alert(\"clicked\")}>\n\t\t\t\t\t\t\taction\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button disabled fill=\"solid\" color=\"danger\" onClick={() => alert(\"clicked\")}>\n\t\t\t\t\t\t\taction\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button type=\"link\" fill=\"clear\" color=\"danger\" onClick={() => alert(\"clicked\")}>\n\t\t\t\t\t\t\taction link\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t</div>\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"input\" label=\"Input\">\n\t\t\t\t\t<smoothly-input-demo />\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"dialog\" label=\"Dialog\">\n\t\t\t\t\t<smoothly-dialog-demo />\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"display\" label=\"Display\" icon=\"eye-outline\">\n\t\t\t\t\t<smoothly-display-demo />\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"table\" label=\"Table\">\n\t\t\t\t\t<smoothly-table-demo />\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"select\" label=\"Select\">\n\t\t\t\t\t<smoothly-select-demo />\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"icon\" label=\"Icon\">\n\t\t\t\t\t<smoothly-icon-demo />\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"/redirect\" label=\"Redirect\">\n\t\t\t\t\t<smoothly-button\n\t\t\t\t\t\tstyle={{ \"max-width\": \"300px\" }}\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tredirect(\"/routing/pathParameter1\")\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\tInternal\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button\n\t\t\t\t\t\tstyle={{ \"max-width\": \"300px\" }}\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tredirect(\"https://google.com\")\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\tExternal\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path={/^\\/routing\\/\\w+\\/?/} label=\"No effect\">\n\t\t\t\t\t<h2>Regex routing</h2>\n\t\t\t\t</smoothly-room>\n\t\t\t\t<smoothly-room path=\"old\" label=\"Old\" to=\"select\"></smoothly-room>\n\t\t\t\t<span slot=\"header\" style={{ width: \"100%\", maxWidth: \"500px\" }}>\n\t\t\t\t\t<smoothly-picker\n\t\t\t\t\t\tlabel=\"All Animals Selected\"\n\t\t\t\t\t\tstyle={{ minWidth: \"100px\" }}\n\t\t\t\t\t\tlabelSetting=\"hide\"\n\t\t\t\t\t\tempty-menu-label=\"Sorry, we're out of options.\"\n\t\t\t\t\t\tmax-height=\"58px\"\n\t\t\t\t\t\tmultiple={true}\n\t\t\t\t\t\tselect-none-name=\"Select All\"\n\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t{ name: \"Big Dog\", value: \"dog\", aliases: [\"WOFF\"] },\n\t\t\t\t\t\t\t{ name: \"Cat Stevens\", value: \"cat\", aliases: [\"moew\"], hint: \"moew 🐈\" },\n\t\t\t\t\t\t\t{ name: \"Noble Pig\", value: \"pig\", hint: \"🐷\" },\n\t\t\t\t\t\t\t{ name: \"Turtle Wax\", value: \"turtle\" },\n\t\t\t\t\t\t\t{ name: \"Spider Man\", value: \"spider\" },\n\t\t\t\t\t\t\t{ name: \"Phoenix Order Long Wooord\", value: \"phoenix\" },\n\t\t\t\t\t\t\t{ name: \"Horse Back\", value: \"horse\" },\n\t\t\t\t\t\t\t{ name: \"Unicorn Horn\", value: \"unicorn\" },\n\t\t\t\t\t\t\t{ name: \"Talking Parrot Parrot\", value: \"parrot\" },\n\t\t\t\t\t\t\t{ name: \"Hidden Dragon\", value: \"dragon\" },\n\t\t\t\t\t\t\t{ name: \"Scary Kraken\", value: \"kraken\" },\n\t\t\t\t\t\t]}></smoothly-picker>\n\t\t\t\t</span>\n\t\t\t\t<smoothly-trigger slot=\"header\" type=\"link\" name=\"logout\">\n\t\t\t\t\t<smoothly-icon toolTip={\"Log out\"} name=\"log-out\" size=\"medium\"></smoothly-icon>\n\t\t\t\t</smoothly-trigger>\n\t\t\t</App>\n\t\t)\n\t}\n}\n"]}
@@ -100,3 +100,4 @@ export class SmoothlyBacktotop {
100
100
  };
101
101
  }
102
102
  }
103
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/backtotop/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAO/D,MAAM,OAAO,iBAAiB;;mBACX,KAAK;kBACN,MAAM;iBACP,MAAM;;;EAEtB,iBAAiB;IAChB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE;MACtC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,QAAQ,CAAC,eAAe,CAAC,SAAS,GAAG,EAAE,CAAA;IACvF,CAAC,CAAC,CAAA;EACH,CAAC;EACD,MAAM;IACL,MAAM,YAAY,GAAG;MACpB,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG;MAC9C,kBAAkB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;MAClD,UAAU,EAAE,IAAI,CAAC,MAAM;MACvB,SAAS,EAAE,IAAI,CAAC,KAAK;KACrB,CAAA;IACD,OAAO,CACN,EAAC,IAAI,IACJ,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,GAAG,EAAE,CACb,MAAM,CAAC,QAAQ,CAAC;QACf,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,QAAQ;OAClB,CAAC;MAEH,qBAAe,IAAI,EAAC,oBAAoB,GAAiB,CACnD,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop, State } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-backtotop\",\n\tstyleUrl: \"style.scss\",\n\tscoped: true,\n})\nexport class SmoothlyBacktotop {\n\t@Prop() opacity = \"0.5\"\n\t@Prop() bottom = \"1rem\"\n\t@Prop() right = \"1rem\"\n\t@State() visible: boolean\n\tcomponentWillLoad() {\n\t\twindow.addEventListener(\"scroll\", () => {\n\t\t\tthis.visible = document.body.scrollTop > 20 || document.documentElement.scrollTop > 20\n\t\t})\n\t}\n\trender() {\n\t\tconst cssVariables = {\n\t\t\t\"--opacity\": this.visible ? this.opacity : \"0\",\n\t\t\t\"--pointer-events\": this.visible ? \"auto\" : \"none\",\n\t\t\t\"--bottom\": this.bottom,\n\t\t\t\"--right\": this.right,\n\t\t}\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tstyle={cssVariables}\n\t\t\t\tonClick={() =>\n\t\t\t\t\twindow.scrollTo({\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\tbehavior: \"smooth\",\n\t\t\t\t\t})\n\t\t\t\t}>\n\t\t\t\t<smoothly-icon name=\"chevron-up-outline\"></smoothly-icon>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
+ import { Button } from "../Button";
2
3
  export class SmoothlyButton {
3
4
  constructor() {
4
5
  this.color = undefined;
@@ -6,31 +7,24 @@ export class SmoothlyButton {
6
7
  this.fill = undefined;
7
8
  this.disabled = false;
8
9
  this.type = "button";
10
+ this.size = undefined;
11
+ this.shape = undefined;
9
12
  this.link = undefined;
10
13
  this.download = undefined;
11
14
  }
12
15
  render() {
13
- let result;
14
- switch (this.type) {
15
- case "link":
16
- result = this.disabled ? (h("slot", null)) : (h("a", { href: this.link }, h("slot", null)));
17
- break;
18
- case "button":
19
- result = this.link ? (this.disabled ? (h("slot", null)) : (h("a", { href: this.link, target: "_blank", download: this.download }, h("slot", null)))) : (h("button", { disabled: this.disabled }, h("slot", null)));
20
- break;
21
- }
22
- return result;
16
+ return h(Button, { disabled: this.disabled, type: this.type, link: this.link, download: this.download });
23
17
  }
24
18
  static get is() { return "smoothly-button"; }
25
- static get encapsulation() { return "scoped"; }
19
+ static get encapsulation() { return "shadow"; }
26
20
  static get originalStyleUrls() {
27
21
  return {
28
- "$": ["style.css"]
22
+ "$": ["../button/style.css"]
29
23
  };
30
24
  }
31
25
  static get styleUrls() {
32
26
  return {
33
- "$": ["style.css"]
27
+ "$": ["../button/style.css"]
34
28
  };
35
29
  }
36
30
  static get properties() {
@@ -39,7 +33,7 @@ export class SmoothlyButton {
39
33
  "type": "string",
40
34
  "mutable": false,
41
35
  "complexType": {
42
- "original": "Color | undefined",
36
+ "original": "Color",
43
37
  "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
44
38
  "references": {
45
39
  "Color": {
@@ -49,7 +43,7 @@ export class SmoothlyButton {
49
43
  }
50
44
  },
51
45
  "required": false,
52
- "optional": false,
46
+ "optional": true,
53
47
  "docs": {
54
48
  "tags": [],
55
49
  "text": ""
@@ -61,17 +55,12 @@ export class SmoothlyButton {
61
55
  "type": "string",
62
56
  "mutable": false,
63
57
  "complexType": {
64
- "original": "Expand",
65
- "resolved": "\"block\" | \"full\"",
66
- "references": {
67
- "Expand": {
68
- "location": "import",
69
- "path": "../../model"
70
- }
71
- }
58
+ "original": "\"block\" | \"full\"",
59
+ "resolved": "\"block\" | \"full\" | undefined",
60
+ "references": {}
72
61
  },
73
62
  "required": false,
74
- "optional": false,
63
+ "optional": true,
75
64
  "docs": {
76
65
  "tags": [],
77
66
  "text": ""
@@ -84,7 +73,7 @@ export class SmoothlyButton {
84
73
  "mutable": false,
85
74
  "complexType": {
86
75
  "original": "Fill",
87
- "resolved": "\"clear\" | \"default\" | \"outline\" | \"solid\"",
76
+ "resolved": "\"clear\" | \"default\" | \"outline\" | \"solid\" | undefined",
88
77
  "references": {
89
78
  "Fill": {
90
79
  "location": "import",
@@ -93,7 +82,7 @@ export class SmoothlyButton {
93
82
  }
94
83
  },
95
84
  "required": false,
96
- "optional": false,
85
+ "optional": true,
97
86
  "docs": {
98
87
  "tags": [],
99
88
  "text": ""
@@ -137,6 +126,40 @@ export class SmoothlyButton {
137
126
  "reflect": true,
138
127
  "defaultValue": "\"button\""
139
128
  },
129
+ "size": {
130
+ "type": "string",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "\"small\" | \"large\" | \"icon\"",
134
+ "resolved": "\"icon\" | \"large\" | \"small\"",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": false,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": ""
142
+ },
143
+ "attribute": "size",
144
+ "reflect": true
145
+ },
146
+ "shape": {
147
+ "type": "string",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "\"rounded\"",
151
+ "resolved": "\"rounded\" | undefined",
152
+ "references": {}
153
+ },
154
+ "required": false,
155
+ "optional": true,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": ""
159
+ },
160
+ "attribute": "shape",
161
+ "reflect": true
162
+ },
140
163
  "link": {
141
164
  "type": "string",
142
165
  "mutable": false,
@@ -174,3 +197,4 @@ export class SmoothlyButton {
174
197
  };
175
198
  }
176
199
  }
200
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAOlC,MAAM,OAAO,cAAc;;;;;oBAIU,KAAK;gBACU,QAAQ;;;;;;EAM3D,MAAM;IACL,OAAO,EAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAW,CAAA;EAC7G,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { Color, Fill } from \"../../model\"\nimport { Button } from \"../Button\"\n\n@Component({\n\ttag: \"smoothly-button\",\n\tstyleUrl: \"../button/style.css\",\n\tshadow: true,\n})\nexport class SmoothlyButton {\n\t@Prop({ reflect: true }) color?: Color\n\t@Prop({ reflect: true }) expand?: \"block\" | \"full\"\n\t@Prop({ reflect: true }) fill?: Fill\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) type: \"link\" | \"button\" = \"button\"\n\t@Prop({ reflect: true }) size: \"small\" | \"large\" | \"icon\"\n\t@Prop({ reflect: true }) shape?: \"rounded\"\n\t@Prop() link?: string\n\t@Prop() download?: boolean\n\n\trender() {\n\t\treturn <Button disabled={this.disabled} type={this.type} link={this.link} download={this.download}></Button>\n\t}\n}\n"]}
@@ -1,53 +1,206 @@
1
- :host[type=link] {
2
- display: inline;
3
- border: none;
1
+ [color=default] {
2
+ --smoothly-color: var(--smoothly-default-color);
3
+ --smoothly-color-contrast: var(--smoothly-default-contrast);
4
+ --smoothly-color-shade: var(--smoothly-default-shade);
5
+ --smoothly-color-tint: var(--smoothly-default-tint);
4
6
  }
5
- :host:not([type=link]) {
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
7
+
8
+ [color=primary] {
9
+ --smoothly-color: var(--smoothly-primary-color);
10
+ --smoothly-color-contrast: var(--smoothly-primary-contrast);
11
+ --smoothly-color-shade: var(--smoothly-primary-shade);
12
+ --smoothly-color-tint: var(--smoothly-primary-tint);
13
+ }
14
+
15
+ [color=secondary] {
16
+ --smoothly-color: var(--smoothly-secondary-color);
17
+ --smoothly-color-contrast: var(--smoothly-secondary-contrast);
18
+ --smoothly-color-shade: var(--smoothly-secondary-shade);
19
+ --smoothly-color-tint: var(--smoothly-secondary-tint);
20
+ }
21
+
22
+ [color=tertiary] {
23
+ --smoothly-color: var(--smoothly-tertiary-color);
24
+ --smoothly-color-contrast: var(--smoothly-tertiary-contrast);
25
+ --smoothly-color-shade: var(--smoothly-tertiary-shade);
26
+ --smoothly-color-tint: var(--smoothly-tertiary-tint);
27
+ }
28
+
29
+ [color=success] {
30
+ --smoothly-color: var(--smoothly-success-color);
31
+ --smoothly-color-contrast: var(--smoothly-success-color);
32
+ --smoothly-color-shade: var(--smoothly-success-shade);
33
+ --smoothly-color-tint: var(--smoothly-success-tint);
9
34
  }
10
- :host {
35
+
36
+ [color=warning] {
37
+ --smoothly-color: var(--smoothly-warning-color);
38
+ --smoothly-color-contrast: var(--smoothly-warning-contrast);
39
+ --smoothly-color-shade: var(--smoothly-warning-shade);
40
+ --smoothly-color-tint: var(--smoothly-warning-tint);
41
+ }
42
+
43
+ [color=danger] {
44
+ --smoothly-color: var(--smoothly-danger-color);
45
+ --smoothly-color-contrast: var(--smoothly-danger-contrast);
46
+ --smoothly-color-shade: var(--smoothly-danger-shade);
47
+ --smoothly-color-tint: var(--smoothly-danger-tint);
48
+ }
49
+
50
+ [color=light] {
51
+ --smoothly-color: var(--smoothly-light-color);
52
+ --smoothly-color-contrast: var(--smoothly-light-contrast);
53
+ --smoothly-color-shade: var(--smoothly-light-shade);
54
+ --smoothly-color-tint: var(--smoothly-light-tint);
55
+ }
56
+
57
+ [color=medium] {
58
+ --smoothly-color: var(--smoothly-medium-color);
59
+ --smoothly-color-contrast: var(--smoothly-medium-contrast);
60
+ --smoothly-color-shade: var(--smoothly-medium-shade);
61
+ --smoothly-color-tint: var(--smoothly-medium-tint);
62
+ }
63
+
64
+ [color=dark] {
65
+ --smoothly-color: var(--smoothly-dark-color);
66
+ --smoothly-color-contrast: var(--smoothly-dark-contrast);
67
+ --smoothly-color-shade: var(--smoothly-dark-shade);
68
+ --smoothly-color-tint: var(--smoothly-dark-tint);
69
+ }
70
+
71
+
72
+ :host{
73
+ display: inline-block;
11
74
  margin: 1em;
12
- border-style: solid;
13
- border-width: 1px;
14
- border-radius: 3px;
75
+ box-sizing: border-box;
76
+ border-radius: 0.5rem;
77
+ border: solid 1px;
78
+ transition: background 150ms ease-in-out;
15
79
  }
16
- :host[hidden] {
17
- display: none;
80
+ :host([type=link]){
81
+ display: inline;
82
+ border: none;
18
83
  }
19
- :host[disabled] {
84
+ :host([disabled]){
20
85
  opacity: 0.5;
21
86
  pointer-events: none;
22
87
  }
23
88
  a,
24
- button {
25
- display: block;
26
- border-color: transparent;
27
- background-color: transparent;
28
- padding: 0.2em 0.3em;
89
+ button{
29
90
  font-size: 110%;
30
91
  font-weight: 400;
92
+ border: none;
93
+ background-color: transparent;
94
+ cursor: pointer;
95
+ display: inline-flex;
96
+ gap: 0.5rem;
97
+ }
98
+ button {
99
+ justify-content: center;
100
+ height: 100%;
101
+ width: 100%;
102
+ border-radius: 0.5rem;
103
+ min-width: 8em;
104
+ align-items: center;
31
105
  }
32
- :host:not([disabled]):hover,
33
- :host:not([disabled]):focus,
34
- :host:not([disabled]):active {
35
- border-color: var(--smoothly-button-border);
106
+ :host(:not([size=icon])) > button {
107
+ padding: 0.8em;
36
108
  }
37
- :host[type=button] > a {
38
- display: block;
109
+ :host([size=icon]) > button{
110
+ padding: 0.5em;
111
+ }
112
+ :host([shape=rounded]) > button,
113
+ :host([shape=rounded]){
114
+ border-radius: 2rem;
115
+ }
116
+ :host([type=button]) > a {
39
117
  text-align: center;
40
118
  text-decoration: inherit;
41
- }
42
- :host[type=button] > a {
43
119
  width: calc(100% - 0.6em);
44
120
  }
45
- :host > button {
46
- height: 100%;
47
- width: 100%;
121
+ :host([size=small]) > button{
122
+ font-size: 100%;
123
+ }
124
+ :host([size=large]) > button{
125
+ font-size: 130%;
126
+ }
127
+ :host(:not([size=icon])){
128
+ min-width: 8em;
48
129
  }
49
- :host[expand=fill] {
130
+ :host([expand]) {
50
131
  width: 100%;
132
+ }
133
+ :host([expand=full]) {
51
134
  border-left: none;
52
135
  border-right: none;
136
+ border-radius: 0;
137
+ }
138
+ :host([shape=rounded]) > button,
139
+ :host([shape=rounded]){
140
+ border-radius: 2rem;
141
+ }
142
+ :host(:not([fill=clear]):hover),
143
+ :host(:not([fill=clear]):focus),
144
+ :host(:not([fill=clear]):active){
145
+ border-color: rgb(var(--smoothly-color-tint)) !important;
146
+ background: rgb(var(--smoothly-color-tint)) !important;
147
+ }
148
+ :host(:not([fill=clear]):hover) > button,
149
+ :host(:not([fill=clear]):focus) > button,
150
+ :host(:not([fill=clear]):active) > button{
151
+ color: rgb(var(--smoothly-color-contrast)) !important;
152
+ stroke: rgb(var(--smoothly-color-contrast)) !important;
153
+ fill: rgb(var(--smoothly-color-contrast)) !important;
154
+ }
155
+ :host([fill=clear]:hover) > button,
156
+ :host([fill=clear]:focus) > button,
157
+ :host([fill=clear]:active) > button{
158
+ color: rgb(var(--smoothly-color-tint)) !important;
159
+ stroke: rgb(var(--smoothly-color-tint)) !important;
160
+ fill: rgb(var(--smoothly-color-tint)) !important;
161
+ }
162
+ :host([disabled]){
163
+ opacity: 0.5;
164
+ pointer-events: none;
165
+ }
166
+ :host(:not([fill])),
167
+ :host([fill=default]) {
168
+ color: rgb(var(--smoothly-color-contrast));
169
+ stroke: rgb(var(--smoothly-color-contrast));
170
+ fill: rgb(var(--smoothly-color-contrast));
171
+ background: rgb(var(--smoothly-color));
172
+ border-color: transparent;
173
+ }
174
+ :host([fill=solid]) {
175
+ stroke: rgb(var(--smoothly-color-contrast));
176
+ fill: rgb(var(--smoothly-color-contrast));
177
+ background: rgb(var(--smoothly-color));
178
+ border-color: rgb(var(--smoothly-color-shade));
179
+ }
180
+ :host([fill=solid]) > button,
181
+ :host([fill=default]) > button{
182
+ color: rgb(var(--smoothly-color-contrast));
183
+ }
184
+ :host([fill=outline]) {
185
+ stroke: rgb(var(--smoothly-color));
186
+ fill: rgb(var(--smoothly-color));
187
+ background: transparent;
188
+ border-color: rgb(var(--smoothly-color));
189
+ }
190
+ :host([fill=clear]) {
191
+ stroke: rgb(var(--smoothly-color));
192
+ fill: rgb(var(--smoothly-color));
193
+ background: transparent;
194
+ border-color: transparent;
195
+ }
196
+ :host([fill=outline]) > button,
197
+ :host([fill=clear]) > button{
198
+ color: rgb(var(--smoothly-color));
199
+ }
200
+ ::slotted(smoothly-icon[slot=start]),
201
+ ::slotted(smoothly-icon[slot=end]){
202
+ font-size: 0.65em;
203
+ }
204
+ :host([hidden]){
205
+ display: none;
53
206
  }
@@ -56,3 +56,4 @@ export function years(current) {
56
56
  }
57
57
  return result;
58
58
  }
59
+ //# sourceMappingURL=generate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/components/calendar/generate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,UAAU,KAAK,CAAC,IAAgB;EACrC,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;EACxB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;EACZ,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;EACrC,MAAM,MAAM,GAAe,EAAE,CAAA;EAC7B,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;IACjC,MAAM,CAAC,GAAG,EAAE,CAAA;IACZ,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE;MAC1C,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;MACxB,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;MAChB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;KAC5B;IACD,IAAI,GAAG,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;MAC5E,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;GACf;EACD,OAAO,MAAM,CAAA;AACd,CAAC;AAED,MAAM,UAAU,QAAQ;EACvB,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,IAAI,EAAE,CAAA;E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AC,OAAO,CAAC,CAAA;EACxC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CAAA;EAC3C,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CAAA;EACzC,MAAM,MAAM,GAA6D,EAAE,CAAA;EAC3E,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE;IAClC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;IAClB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IACnC,MAAM,CAAC,IAAI,CAAC;MACX,IAAI;MACJ,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;MACxD,QAAQ,EAAE,IAAI,IAAI,OAAO;KACzB,CAAC,CAAA;GACF;EACD,OAAO,MAAM,CAAA;AACd,CAAC","sourcesContent":["import * as isoly from \"isoly\"\n\nexport function month(date: isoly.Date): isoly.Date[][] {\n\tconst d = new Date(date)\n\td.setDate(1)\n\tlet day = -((d.getDay() + 6) % 7) + 1\n\tconst result: string[][] = []\n\tfor (let row = 0; row < 6; row++) {\n\t\tconst r = []\n\t\tfor (let column = 0; column < 7; column++) {\n\t\t\tconst d = new Date(date)\n\t\t\td.setDate(day++)\n\t\t\tr.push(isoly.Date.create(d))\n\t\t}\n\t\tif (row < 5 || isoly.Date.firstOfMonth(r[0]) == isoly.Date.firstOfMonth(date))\n\t\t\tresult.push(r)\n\t}\n\treturn result\n}\n\nexport function weekdays(): string[] {\n\tconst day = new globalThis.Date()\n\tday.setDate(day.getDate() - day.getDay() + 1)\n\tconst result: string[] = []\n\tfor (let i = 0; i < 7; i++) {\n\t\tresult.push(day.toLocaleString(undefined, { weekday: \"short\" }))\n\t\tday.setDate(day.getDate() + 1)\n\t}\n\treturn result\n}\n\nexport function months(current: isoly.Date): { date: isoly.Date; name: string; selected?: boolean }[] {\n\tconst day = new globalThis.Date(current)\n\tconst result: { date: isoly.Date; name: string; selected?: boolean }[] = []\n\tfor (let i = 0; i < 12; i++) {\n\t\tday.setMonth(i, 28)\n\t\tconst date = isoly.Date.create(day)\n\t\tresult.push({\n\t\t\tdate,\n\t\t\tname: day.toLocaleString(undefined, { month: \"long\" }),\n\t\t\tselected: date.substr(0, 7) == current.substr(0, 7),\n\t\t})\n\t}\n\treturn result\n}\nexport function years(current: isoly.Date): { date: isoly.Date; name: string; selected?: boolean }[] {\n\tconst day = new globalThis.Date(current)\n\tconst start = new Date().getFullYear() - 10\n\tconst end = new Date().getFullYear() + 10\n\tconst result: { date: isoly.Date; name: string; selected?: boolean }[] = []\n\tfor (let i = start; i <= end; i++) {\n\t\tday.setFullYear(i)\n\t\tconst date = isoly.Date.create(day)\n\t\tresult.push({\n\t\t\tdate,\n\t\t\tname: day.toLocaleString(undefined, { year: \"numeric\" }),\n\t\t\tselected: date == current,\n\t\t})\n\t}\n\treturn result\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { Date } from "isoly";
3
3
  import * as generate from "./generate";
4
4
  export class Calendar {
@@ -11,7 +11,6 @@ export class Calendar {
11
11
  this.max = undefined;
12
12
  this.min = undefined;
13
13
  this.doubleInput = undefined;
14
- this.color = undefined;
15
14
  this.firstSelected = undefined;
16
15
  }
17
16
  onStart(next) {
@@ -54,28 +53,29 @@ export class Calendar {
54
53
  }
55
54
  render() {
56
55
  var _a, _b;
57
- return (h(Host, null, h("smoothly-input-month", { value: (_a = this.month) !== null && _a !== void 0 ? _a : this.value, onValueChanged: event => {
58
- this.month = event.detail;
59
- event.stopPropagation();
60
- } }), h("table", null, h("thead", null, h("tr", null, generate.weekdays().map(day => (h("th", null, day))))), generate.month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
61
- var _a, _b, _c;
62
- return (h("td", { tabindex: 1, onMouseOver: () => {
63
- !this.doubleInput && (this.min || this.max) && (date < this.min || date > this.max)
64
- ? undefined
65
- : this.onHover(date);
66
- }, onClick: (this.min || this.max) && (date < this.min || date > this.max)
67
- ? undefined
68
- : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
69
- .concat(...(date == Date.now() ? ["today"] : []), Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
70
- ? this.start == date || this.end == date
71
- ? ["selected"]
72
- : date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
73
- ? ["dateRange"]
74
- : []
75
- : "")
76
- .concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
77
- .join(" ") }, date.substring(8, 10)));
78
- })))))));
56
+ return [
57
+ h("smoothly-input-month", { value: (_a = this.month) !== null && _a !== void 0 ? _a : this.value, onValueChanged: event => {
58
+ this.month = event.detail;
59
+ event.stopPropagation();
60
+ } }),
61
+ h("table", null, h("thead", null, h("tr", null, generate.weekdays().map(day => (h("th", null, day))))), generate.month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
62
+ var _a, _b, _c;
63
+ return (h("td", { tabindex: 1, onMouseOver: () => {
64
+ !this.doubleInput && (this.min || this.max) && (date < this.min || date > this.max)
65
+ ? undefined
66
+ : this.onHover(date);
67
+ }, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
68
+ .concat(...(date == Date.now() ? ["today"] : []), Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
69
+ ? this.start == date || this.end == date
70
+ ? ["selected"]
71
+ : date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
72
+ ? ["dateRange"]
73
+ : []
74
+ : "")
75
+ .concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
76
+ .join(" ") }, date.substring(8, 10)));
77
+ }))))),
78
+ ];
79
79
  }
80
80
  static get is() { return "smoothly-calendar"; }
81
81
  static get encapsulation() { return "scoped"; }
@@ -240,28 +240,6 @@ export class Calendar {
240
240
  },
241
241
  "attribute": "double-input",
242
242
  "reflect": true
243
- },
244
- "color": {
245
- "type": "string",
246
- "mutable": false,
247
- "complexType": {
248
- "original": "Color",
249
- "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
250
- "references": {
251
- "Color": {
252
- "location": "import",
253
- "path": "../../model"
254
- }
255
- }
256
- },
257
- "required": false,
258
- "optional": true,
259
- "docs": {
260
- "tags": [],
261
- "text": ""
262
- },
263
- "attribute": "color",
264
- "reflect": true
265
243
  }
266
244
  };
267
245
  }
@@ -384,3 +362,4 @@ export class Calendar {
384
362
  }];
385
363
  }
386
364
  }
365
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/calendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC9F,OAAO,EAAE,IAAI,EAAa,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AAOtC,MAAM,OAAO,QAAQ;;IAwBZ,iBAAY,GAAG,CAAC,CAAA;;iBArBe,IAAI,CAAC,GAAG,EAAE;;;;;;;;EAcjD,OAAO,CAAC,IAAU;IACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IA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EAAE,CAAC,CAClB,CACL,CAAA;SAAA,CAAC,CACE,CACL,CAAC,CACK;KACR,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, State, Watch } from \"@stencil/core\"\nimport { Date, DateRange } from \"isoly\"\nimport * as generate from \"./generate\"\n\n@Component({\n\ttag: \"smoothly-calendar\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class Calendar {\n\t@Element() element: HTMLTableRowElement\n\t@Prop({ mutable: true }) month?: Date\n\t@Prop({ mutable: true }) value: Date = Date.now()\n\t@Prop({ mutable: true }) start?: Date\n\t@Prop({ mutable: true }) end?: Date\n\t@Prop({ mutable: true }) max: Date\n\t@Prop({ mutable: true }) min: Date\n\t@Prop({ reflect: true }) doubleInput: boolean\n\t@Event() valueChanged: EventEmitter<Date>\n\t@Event() startChanged: EventEmitter<Date>\n\t@Event() endChanged: EventEmitter<Date>\n\t@Event() dateSet: EventEmitter<Date>\n\t@Event() dateRangeSet: EventEmitter<DateRange>\n\tprivate frozenDate: Date\n\t@State() firstSelected: boolean\n\t@Watch(\"start\")\n\tonStart(next: Date) {\n\t\tthis.startChanged.emit(next)\n\t}\n\t@Watch(\"end\")\n\tonEnd(next: Date) {\n\t\tthis.endChanged.emit(next)\n\t}\n\tprivate clickCounter = 0\n\tprivate onClick(date: Date) {\n\t\tthis.valueChanged.emit((this.value = date))\n\t\tthis.clickCounter += 1\n\t\tif (this.doubleInput) {\n\t\t\tif (this.clickCounter % 2 == 1)\n\t\t\t\tthis.start = this.end = this.frozenDate = date\n\t\t\telse {\n\t\t\t\tif (this.start && date > this.start)\n\t\t\t\t\tthis.end = date\n\t\t\t\telse\n\t\t\t\t\tthis.start = date\n\t\t\t}\n\t\t}\n\t\t!this.doubleInput && this.dateSet.emit(this.value)\n\t\tthis.doubleInput &&\n\t\t\tthis.clickCounter % 2 == 0 &&\n\t\t\tthis.start &&\n\t\t\tthis.end &&\n\t\t\tthis.dateRangeSet.emit({ start: this.start, end: this.end })\n\t}\n\tprivate onHover(date: Date) {\n\t\tif (this.doubleInput && this.clickCounter % 2 == 1) {\n\t\t\tif (date < this.frozenDate) {\n\t\t\t\tthis.start = date\n\t\t\t\tthis.end = this.frozenDate\n\t\t\t} else {\n\t\t\t\tthis.start = this.frozenDate\n\t\t\t\tthis.end = date\n\t\t\t}\n\t\t}\n\t}\n\trender() {\n\t\treturn [\n\t\t\t<smoothly-input-month\n\t\t\t\tvalue={this.month ?? this.value}\n\t\t\t\tonValueChanged={event => {\n\t\t\t\t\tthis.month = event.detail\n\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t}}></smoothly-input-month>,\n\t\t\t<table>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t{generate.weekdays().map(day => (\n\t\t\t\t\t\t\t<th>{day}</th>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t{generate.month(this.month ?? this.value).map(week => (\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t{week.map(date => (\n\t\t\t\t\t\t\t<td\n\t\t\t\t\t\t\t\ttabindex={1}\n\t\t\t\t\t\t\t\tonMouseOver={() => {\n\t\t\t\t\t\t\t\t\t!this.doubleInput && (this.min || this.max) && (date < this.min || date > this.max)\n\t\t\t\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t\t\t\t: this.onHover(date)\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonClick={\n\t\t\t\t\t\t\t\t\t(this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tclass={(date == this.value ? [\"selected\"] : [])\n\t\t\t\t\t\t\t\t\t.concat(\n\t\t\t\t\t\t\t\t\t\t...(date == Date.now() ? [\"today\"] : []),\n\t\t\t\t\t\t\t\t\t\tDate.firstOfMonth(this.month ?? this.value) == Date.firstOfMonth(date) ? [\"currentMonth\"] : [],\n\t\t\t\t\t\t\t\t\t\tthis.doubleInput\n\t\t\t\t\t\t\t\t\t\t\t? this.start == date || this.end == date\n\t\t\t\t\t\t\t\t\t\t\t\t? [\"selected\"]\n\t\t\t\t\t\t\t\t\t\t\t\t: date >= (this.start ?? \"\") && date <= (this.end ?? \"\")\n\t\t\t\t\t\t\t\t\t\t\t\t? [\"dateRange\"]\n\t\t\t\t\t\t\t\t\t\t\t\t: []\n\t\t\t\t\t\t\t\t\t\t\t: \"\"\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t.concat(...(this.min || this.max ? (date < this.min || date > this.max ? [\"disable\"] : []) : \"\"))\n\t\t\t\t\t\t\t\t\t.join(\" \")}>\n\t\t\t\t\t\t\t\t{date.substring(8, 10)}\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</tr>\n\t\t\t\t))}\n\t\t\t</table>,\n\t\t]\n\t}\n}\n"]}
@@ -1,15 +1,11 @@
1
- html smoothly-notifier :host {
1
+ :host {
2
2
  display: block;
3
3
  --other-month-opacity: 0.5;
4
- padding-bottom: 1rem;
5
- }
6
- html smoothly-notifier :host[color] {
7
- background-color: rgb(var(--smoothly-color-shade));
4
+ margin-bottom: 1rem;
8
5
  }
9
6
  :host > smoothly-input-month {
10
7
  width: calc(100% - 1em);
11
8
  padding: 0.5em 0.5em 0 0.5em;
12
- background-color: rgb(var(--smoothly-color-shade));
13
9
  }
14
10
  :host > table {
15
11
  table-layout: fixed;
@@ -20,21 +16,21 @@ td {
20
16
  text-align: center;
21
17
  padding: 0.5em;
22
18
  min-width: 2em;
23
- background-color: rgb(var(--smoothly-color-shade));
19
+ background-color: rgb(var(--smoothly-default-shade));
24
20
  cursor: pointer;
25
21
  user-select: none;
26
22
  }
27
23
  td.currentMonth {
28
- color: rgb(var(--smoothly-color-contrast));
24
+ color: rgb(var(--smoothly-default-contrast));
29
25
  }
30
26
  td:not(.currentMonth) {
31
- color: rgba(var(--smoothly-color-contrast), var(--other-month-opacity));
27
+ color: rgba(var(--smoothly-default-contrast), var(--other-month-opacity));
32
28
  }
33
29
  td:nth-child(6):not(.currentMonth).selected,
34
30
  td:nth-child(6):not(.currentMonth).dateRange,
35
31
  td:nth-child(7):not(.currentMonth).selected,
36
32
  td:nth-child(7):not(.currentMonth).dateRange {
37
- color: rgba(var(--smoothly-color-contrast));
33
+ color: rgba(var(--smoothly-default-contrast));
38
34
  }
39
35
  td:nth-child(6),
40
36
  td:nth-child(7) {
@@ -62,6 +58,6 @@ td.dateRange {
62
58
  }
63
59
  td.disable {
64
60
  cursor: not-allowed;
65
- background-color: rgb(var(--smoothly-color-tint), 0.5);
66
- color: rgb(var(--smoothly-color-contrast), 0.5);
61
+ background-color: rgb(var(--smoothly-default-tint), 0.5);
62
+ color: rgb(var(--smoothly-default-contrast), 0.5);
67
63
  }