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
@@ -1,861 +0,0 @@
1
- import { g as getRenderingRef, f as forceUpdate, h } from './index-7b57a52c.js';
2
-
3
- const appendToMap = (map, propName, value) => {
4
- const items = map.get(propName);
5
- if (!items) {
6
- map.set(propName, [value]);
7
- }
8
- else if (!items.includes(value)) {
9
- items.push(value);
10
- }
11
- };
12
- const debounce = (fn, ms) => {
13
- let timeoutId;
14
- return (...args) => {
15
- if (timeoutId) {
16
- clearTimeout(timeoutId);
17
- }
18
- timeoutId = setTimeout(() => {
19
- timeoutId = 0;
20
- fn(...args);
21
- }, ms);
22
- };
23
- };
24
-
25
- /**
26
- * Check if a possible element isConnected.
27
- * The property might not be there, so we check for it.
28
- *
29
- * We want it to return true if isConnected is not a property,
30
- * otherwise we would remove these elements and would not update.
31
- *
32
- * Better leak in Edge than to be useless.
33
- */
34
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
- const cleanupElements = debounce((map) => {
36
- for (let key of map.keys()) {
37
- map.set(key, map.get(key).filter(isConnected));
38
- }
39
- }, 2000);
40
- const stencilSubscription = () => {
41
- if (typeof getRenderingRef !== 'function') {
42
- // If we are not in a stencil project, we do nothing.
43
- // This function is not really exported by @stencil/core.
44
- return {};
45
- }
46
- const elmsToUpdate = new Map();
47
- return {
48
- dispose: () => elmsToUpdate.clear(),
49
- get: (propName) => {
50
- const elm = getRenderingRef();
51
- if (elm) {
52
- appendToMap(elmsToUpdate, propName, elm);
53
- }
54
- },
55
- set: (propName) => {
56
- const elements = elmsToUpdate.get(propName);
57
- if (elements) {
58
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
59
- }
60
- cleanupElements(elmsToUpdate);
61
- },
62
- reset: () => {
63
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
64
- cleanupElements(elmsToUpdate);
65
- },
66
- };
67
- };
68
-
69
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
70
- let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
71
- const handlers = {
72
- dispose: [],
73
- get: [],
74
- set: [],
75
- reset: [],
76
- };
77
- const reset = () => {
78
- states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
79
- handlers.reset.forEach((cb) => cb());
80
- };
81
- const dispose = () => {
82
- // Call first dispose as resetting the state would
83
- // cause less updates ;)
84
- handlers.dispose.forEach((cb) => cb());
85
- reset();
86
- };
87
- const get = (propName) => {
88
- handlers.get.forEach((cb) => cb(propName));
89
- return states.get(propName);
90
- };
91
- const set = (propName, value) => {
92
- const oldValue = states.get(propName);
93
- if (shouldUpdate(value, oldValue, propName)) {
94
- states.set(propName, value);
95
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
96
- }
97
- };
98
- const state = (typeof Proxy === 'undefined'
99
- ? {}
100
- : new Proxy(defaultState, {
101
- get(_, propName) {
102
- return get(propName);
103
- },
104
- ownKeys(_) {
105
- return Array.from(states.keys());
106
- },
107
- getOwnPropertyDescriptor() {
108
- return {
109
- enumerable: true,
110
- configurable: true,
111
- };
112
- },
113
- has(_, propName) {
114
- return states.has(propName);
115
- },
116
- set(_, propName, value) {
117
- set(propName, value);
118
- return true;
119
- },
120
- }));
121
- const on = (eventName, callback) => {
122
- handlers[eventName].push(callback);
123
- return () => {
124
- removeFromArray(handlers[eventName], callback);
125
- };
126
- };
127
- const onChange = (propName, cb) => {
128
- const unSet = on('set', (key, newValue) => {
129
- if (key === propName) {
130
- cb(newValue);
131
- }
132
- });
133
- const unReset = on('reset', () => cb(defaultState[propName]));
134
- return () => {
135
- unSet();
136
- unReset();
137
- };
138
- };
139
- const use = (...subscriptions) => {
140
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
141
- if (subscription.set) {
142
- unsubs.push(on('set', subscription.set));
143
- }
144
- if (subscription.get) {
145
- unsubs.push(on('get', subscription.get));
146
- }
147
- if (subscription.reset) {
148
- unsubs.push(on('reset', subscription.reset));
149
- }
150
- if (subscription.dispose) {
151
- unsubs.push(on('dispose', subscription.dispose));
152
- }
153
- return unsubs;
154
- }, []);
155
- return () => unsubs.forEach((unsub) => unsub());
156
- };
157
- const forceUpdate = (key) => {
158
- const oldValue = states.get(key);
159
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
160
- };
161
- return {
162
- state,
163
- get,
164
- set,
165
- on,
166
- onChange,
167
- use,
168
- dispose,
169
- reset,
170
- forceUpdate,
171
- };
172
- };
173
- const removeFromArray = (array, item) => {
174
- const index = array.indexOf(item);
175
- if (index >= 0) {
176
- array[index] = array[array.length - 1];
177
- array.length--;
178
- }
179
- };
180
-
181
- const createStore = (defaultState, shouldUpdate) => {
182
- const map = createObservableMap(defaultState, shouldUpdate);
183
- map.use(stencilSubscription());
184
- return map;
185
- };
186
-
187
- let defaultRouter;
188
- const createRouter = (opts) => {
189
- var _a;
190
- const win = window;
191
- const url = new URL(win.location.href);
192
- const parseURL = (_a = opts === null || opts === void 0 ? void 0 : opts.parseURL) !== null && _a !== void 0 ? _a : DEFAULT_PARSE_URL;
193
- const { state, onChange, dispose } = createStore({
194
- url,
195
- activePath: parseURL(url)
196
- }, (newV, oldV, prop) => {
197
- if (prop === 'url') {
198
- return newV.href !== oldV.href;
199
- }
200
- return newV !== oldV;
201
- });
202
- const push = (href) => {
203
- history.pushState(null, null, href);
204
- const url = new URL(href, document.baseURI);
205
- state.url = url;
206
- state.activePath = parseURL(url);
207
- };
208
- const match = (routes) => {
209
- const { activePath } = state;
210
- for (let route of routes) {
211
- const params = matchPath(activePath, route.path);
212
- if (params) {
213
- if (route.to != null) {
214
- const to = (typeof route.to === 'string')
215
- ? route.to
216
- : route.to(activePath);
217
- push(to);
218
- return match(routes);
219
- }
220
- else {
221
- return { params, route };
222
- }
223
- }
224
- }
225
- return undefined;
226
- };
227
- const navigationChanged = () => {
228
- const url = new URL(win.location.href);
229
- state.url = url;
230
- state.activePath = parseURL(url);
231
- };
232
- const Switch = (_, childrenRoutes) => {
233
- const result = match(childrenRoutes);
234
- if (result) {
235
- if (typeof result.route.jsx === 'function') {
236
- return result.route.jsx(result.params);
237
- }
238
- else {
239
- return result.route.jsx;
240
- }
241
- }
242
- };
243
- const disposeRouter = () => {
244
- defaultRouter = undefined;
245
- win.removeEventListener('popstate', navigationChanged);
246
- dispose();
247
- };
248
- const router = defaultRouter = {
249
- Switch,
250
- get url() {
251
- return state.url;
252
- },
253
- get activePath() {
254
- return state.activePath;
255
- },
256
- push,
257
- onChange: onChange,
258
- dispose: disposeRouter,
259
- };
260
- // Initial update
261
- navigationChanged();
262
- // Listen URL changes
263
- win.addEventListener('popstate', navigationChanged);
264
- return router;
265
- };
266
- const Route = (props, children) => {
267
- var _a;
268
- if ('to' in props) {
269
- return {
270
- path: props.path,
271
- to: props.to,
272
- };
273
- }
274
- return {
275
- path: props.path,
276
- id: props.id,
277
- jsx: (_a = props.render) !== null && _a !== void 0 ? _a : children,
278
- };
279
- };
280
- const href = (href, router = defaultRouter) => {
281
- return {
282
- href,
283
- onClick: (ev) => {
284
- if (ev.metaKey || ev.ctrlKey) {
285
- return;
286
- }
287
- if (ev.which == 2 || ev.button == 1) {
288
- return;
289
- }
290
- ev.preventDefault();
291
- router.push(href);
292
- },
293
- };
294
- };
295
- const matchPath = (pathname, path) => {
296
- if (typeof path === 'string') {
297
- if (path === pathname) {
298
- return {};
299
- }
300
- }
301
- else if (typeof path === 'function') {
302
- const params = path(pathname);
303
- if (params) {
304
- return params === true
305
- ? {}
306
- : { ...params };
307
- }
308
- }
309
- else {
310
- const results = path.exec(pathname);
311
- if (results) {
312
- path.lastIndex = 0;
313
- return { ...results };
314
- }
315
- }
316
- return undefined;
317
- };
318
- const DEFAULT_PARSE_URL = (url) => {
319
- return url.pathname.toLowerCase();
320
- };
321
-
322
- const Router = createRouter();
323
- function redirect(url) {
324
- const destination = resolve(url);
325
- destination ? Router.push(destination) : (window.location.href = url);
326
- }
327
- const App = (attributes, nodes, utils) => {
328
- var _a;
329
- const emptyNode = Object.entries(nodes[0]).reduce((r, entry) => {
330
- r[entry[0]] = null;
331
- return r;
332
- }, {});
333
- const emptyChild = nodeToChild(emptyNode);
334
- function nodeToChild(node) {
335
- let result;
336
- utils.forEach([node], child => (result = child));
337
- return result !== null && result !== void 0 ? result : emptyChild;
338
- }
339
- function childToNode(child) {
340
- return utils.map([emptyNode], c => (Object.assign(Object.assign({}, c), child)))[0];
341
- }
342
- const children = nodes.map(node => (Object.assign(Object.assign({}, nodeToChild(node)), { node })));
343
- return (h("smoothly-app", null,
344
- h("header", null,
345
- h("h1", null,
346
- h("a", Object.assign({}, href((_a = resolve("")) !== null && _a !== void 0 ? _a : "/")), attributes.label)),
347
- h("nav", null,
348
- h("ul", null, utils
349
- .map([
350
- ...children.filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.slot) == "nav-start"; }),
351
- ...children.filter(child => { var _a, _b, _c; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.label) && ((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.path) && typeof ((_c = child.vattrs) === null || _c === void 0 ? void 0 : _c.path) == "string"; }),
352
- ...children.filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.slot) == "nav-end"; }),
353
- ].map(child => child.node), child => {
354
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
355
- if (((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.label) && ((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.path))
356
- child = Object.assign(Object.assign({}, emptyChild), { vtag: "a", vattrs: { href: (_c = child.vattrs) === null || _c === void 0 ? void 0 : _c.path }, vchildren: [
357
- ((_d = child.vattrs) === null || _d === void 0 ? void 0 : _d.icon)
358
- ? childToNode({
359
- vtag: "smoothly-icon",
360
- vattrs: {
361
- toolTip: (_e = child.vattrs) === null || _e === void 0 ? void 0 : _e.label,
362
- name: (_f = child.vattrs) === null || _f === void 0 ? void 0 : _f.icon,
363
- size: "medium",
364
- },
365
- })
366
- : childToNode({ vtext: (_g = child.vattrs) === null || _g === void 0 ? void 0 : _g.label }),
367
- ] });
368
- const url = resolve((_h = child.vattrs) === null || _h === void 0 ? void 0 : _h.href);
369
- return child.vtag != "a"
370
- ? child
371
- : url
372
- ? Object.assign(Object.assign({}, child), { vattrs: Object.assign(Object.assign({}, child.vattrs), { class: [(_j = child.vattrs) === null || _j === void 0 ? void 0 : _j.class, Router.activePath == url ? "active" : ""].join(" ") || undefined, href: url }) }) : Object.assign(Object.assign({}, child), { vattrs: Object.assign(Object.assign({}, child.vattrs), { target: "new" }) });
373
- })
374
- .map(node => {
375
- var _a, _b;
376
- const child = nodeToChild(node);
377
- return child.vtag == "a" && !((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.target) ? (h("a", Object.assign({}, child.vattrs, href((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.href)), child.vchildren)) : (node);
378
- })
379
- .map(child => (h("li", null, child))))),
380
- children.filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.slot) == "header"; }).map(child => child.node)),
381
- h("main", null,
382
- h(Router.Switch, null, children
383
- .filter(child => { var _a; return ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.path) != undefined; })
384
- .map(child => {
385
- var _a, _b, _c, _d, _e;
386
- const path = typeof ((_a = child.vattrs) === null || _a === void 0 ? void 0 : _a.path) == "string" ? resolve((_b = child.vattrs) === null || _b === void 0 ? void 0 : _b.path) : (_c = child.vattrs) === null || _c === void 0 ? void 0 : _c.path;
387
- return ((_d = child.vattrs) === null || _d === void 0 ? void 0 : _d.to) ? (h(Route, { path: path, to: (_e = child.vattrs) === null || _e === void 0 ? void 0 : _e.to })) : (h(Route, { path: path }, child.node));
388
- })))));
389
- };
390
- function resolve(url) {
391
- const u = new URL(url, document.baseURI);
392
- return url == ""
393
- ? new URL(document.baseURI).pathname
394
- : u.toString().startsWith(document.baseURI)
395
- ? u.pathname
396
- : undefined;
397
- }
398
-
399
- class Notice {
400
- get state() {
401
- return this.stateValue;
402
- }
403
- set state(value) {
404
- if (this.stateValue != value) {
405
- this.stateValue = value;
406
- this.emit();
407
- }
408
- }
409
- get message() {
410
- return this.messageValue;
411
- }
412
- set message(value) {
413
- if (this.messageValue != value) {
414
- this.messageValue = value;
415
- this.emit();
416
- }
417
- }
418
- constructor(stateValue, messageValue, task) {
419
- this.stateValue = stateValue;
420
- this.messageValue = messageValue;
421
- this.task = task;
422
- this.listeners = [];
423
- switch (stateValue) {
424
- case "delayed":
425
- this.timer = window.setTimeout(() => this.execute(), 5000);
426
- break;
427
- case "executing":
428
- this.execute();
429
- break;
430
- case "success":
431
- case "warning":
432
- case "failed":
433
- this.startCloseTimer();
434
- break;
435
- }
436
- }
437
- listen(listener) {
438
- this.listeners.push(listener);
439
- }
440
- unlisten(listener) {
441
- this.listeners.filter(l => l != listener);
442
- }
443
- emit() {
444
- this.listeners.forEach(l => l(this));
445
- }
446
- execute() {
447
- this.clearTimer();
448
- if (this.task) {
449
- this.state = "executing";
450
- this.task(this).then(r => {
451
- this.messageValue = r[1];
452
- this.state = r[0] ? "success" : "failed";
453
- this.startCloseTimer();
454
- });
455
- }
456
- else
457
- this.state = "failed";
458
- }
459
- startCloseTimer() {
460
- this.timer = window.setTimeout(() => this.close(), 15000);
461
- }
462
- close() {
463
- this.clearTimer();
464
- this.state = "closed";
465
- }
466
- clearTimer() {
467
- if (this.timer) {
468
- window.clearTimeout(this.timer);
469
- this.timer = undefined;
470
- }
471
- }
472
- static delay(message, task) {
473
- return new Notice("delayed", message, task);
474
- }
475
- static execute(message, task) {
476
- return new Notice("executing", message, task);
477
- }
478
- static succeded(message) {
479
- return new Notice("success", message);
480
- }
481
- static failed(message) {
482
- return new Notice("failed", message);
483
- }
484
- static warn(message) {
485
- return new Notice("warning", message);
486
- }
487
- }
488
-
489
- var Hex;
490
- (function (Hex) {
491
- function is(value) {
492
- const matchArray = (typeof value == "string" && value.match(/[0-9a-fA-F]/g)) || undefined;
493
- return (typeof value == "string" &&
494
- value.length > 3 &&
495
- value[0] == "#" &&
496
- ((matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 3 || (matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 6));
497
- }
498
- Hex.is = is;
499
- })(Hex || (Hex = {}));
500
-
501
- var Hsl;
502
- (function (Hsl) {
503
- function is(value) {
504
- const values = typeof value == "string" && value.length > 11 ? value.substring(4, value.length - 1).split(",") : [];
505
- return (typeof value == "string" &&
506
- value.length > 11 &&
507
- value.substr(0, 4) == "hsl(" &&
508
- value.substr(value.length - 1, 1) == ")" &&
509
- values.length == 3 &&
510
- values.every((single, index) => {
511
- var _a, _b;
512
- let result = false;
513
- if (index == 0)
514
- result =
515
- !Number.isNaN(single) &&
516
- ((_a = single.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == single.length &&
517
- Number(single) >= 0 &&
518
- Number(single) <= 360;
519
- else {
520
- const number = single.substr(0, single.length - 1);
521
- result =
522
- single[single.length - 1] == "%" &&
523
- !Number.isNaN(number) &&
524
- ((_b = number.match(/[0-9]/g)) === null || _b === void 0 ? void 0 : _b.length) == number.length &&
525
- Number(number) >= 0 &&
526
- Number(number) <= 100;
527
- }
528
- return result;
529
- }));
530
- }
531
- Hsl.is = is;
532
- })(Hsl || (Hsl = {}));
533
-
534
- const Names = {
535
- aliceblue: "#f0f8ff",
536
- antiquewhite: "#faebd7",
537
- aqua: "#00ffff",
538
- aquamarine: "#7fffd4",
539
- azure: "#f0ffff",
540
- beige: "#f5f5dc",
541
- bisque: "#ffe4c4",
542
- black: "#000000",
543
- blanchedalmond: "#ffebcd",
544
- blue: "#0000ff",
545
- blueviolet: "#8a2be2",
546
- brown: "#a52a2a",
547
- burlywood: "#deb887",
548
- cadetblue: "#5f9ea0",
549
- chartreuse: "#7fff00",
550
- chocolate: "#d2691e",
551
- coral: "#ff7f50",
552
- cornflowerblue: "#6495ed",
553
- cornsilk: "#fff8dc",
554
- crimson: "#dc143c",
555
- cyan: "#00ffff",
556
- darkblue: "#00008b",
557
- darkcyan: "#008b8b",
558
- darkgoldenrod: "#b8860b",
559
- darkgray: "#a9a9a9",
560
- darkgreen: "#006400",
561
- darkgrey: "#a9a9a9",
562
- darkkhaki: "#bdb76b",
563
- darkmagenta: "#8b008b",
564
- darkolivegreen: "#556b2f",
565
- darkorange: "#ff8c00",
566
- darkorchid: "#9932cc",
567
- darkred: "#8b0000",
568
- darksalmon: "#e9967a",
569
- darkseagreen: "#8fbc8f",
570
- darkslateblue: "#483d8b",
571
- darkslategray: "#2f4f4f",
572
- darkslategrey: "#2f4f4f",
573
- darkturquoise: "#00ced1",
574
- darkviolet: "#9400d3",
575
- deeppink: "#ff1493",
576
- deepskyblue: "#00bfff",
577
- dimgray: "#696969",
578
- dimgrey: "#696969",
579
- dodgerblue: "#1e90ff",
580
- firebrick: "#b22222",
581
- floralwhite: "#fffaf0",
582
- forestgreen: "#228b22",
583
- fuchsia: "#ff00ff",
584
- gainsboro: "#dcdcdc",
585
- ghostwhite: "#f8f8ff",
586
- goldenrod: "#daa520",
587
- gold: "#ffd700",
588
- gray: "#808080",
589
- green: "#008000",
590
- greenyellow: "#adff2f",
591
- grey: "#808080",
592
- honeydew: "#f0fff0",
593
- hotpink: "#ff69b4",
594
- indianred: "#cd5c5c",
595
- indigo: "#4b0082",
596
- ivory: "#fffff0",
597
- khaki: "#f0e68c",
598
- lavenderblush: "#fff0f5",
599
- lavender: "#e6e6fa",
600
- lawngreen: "#7cfc00",
601
- lemonchiffon: "#fffacd",
602
- lightblue: "#add8e6",
603
- lightcoral: "#f08080",
604
- lightcyan: "#e0ffff",
605
- lightgoldenrodyellow: "#fafad2",
606
- lightgray: "#d3d3d3",
607
- lightgreen: "#90ee90",
608
- lightgrey: "#d3d3d3",
609
- lightpink: "#ffb6c1",
610
- lightsalmon: "#ffa07a",
611
- lightseagreen: "#20b2aa",
612
- lightskyblue: "#87cefa",
613
- lightslategray: "#778899",
614
- lightslategrey: "#778899",
615
- lightsteelblue: "#b0c4de",
616
- lightyellow: "#ffffe0",
617
- lime: "#00ff00",
618
- limegreen: "#32cd32",
619
- linen: "#faf0e6",
620
- magenta: "#ff00ff",
621
- maroon: "#800000",
622
- mediumaquamarine: "#66cdaa",
623
- mediumblue: "#0000cd",
624
- mediumorchid: "#ba55d3",
625
- mediumpurple: "#9370db",
626
- mediumseagreen: "#3cb371",
627
- mediumslateblue: "#7b68ee",
628
- mediumspringgreen: "#00fa9a",
629
- mediumturquoise: "#48d1cc",
630
- mediumvioletred: "#c71585",
631
- midnightblue: "#191970",
632
- mintcream: "#f5fffa",
633
- mistyrose: "#ffe4e1",
634
- moccasin: "#ffe4b5",
635
- navajowhite: "#ffdead",
636
- navy: "#000080",
637
- oldlace: "#fdf5e6",
638
- olive: "#808000",
639
- olivedrab: "#6b8e23",
640
- orange: "#ffa500",
641
- orangered: "#ff4500",
642
- orchid: "#da70d6",
643
- palegoldenrod: "#eee8aa",
644
- palegreen: "#98fb98",
645
- paleturquoise: "#afeeee",
646
- palevioletred: "#db7093",
647
- papayawhip: "#ffefd5",
648
- peachpuff: "#ffdab9",
649
- peru: "#cd853f",
650
- pink: "#ffc0cb",
651
- plum: "#dda0dd",
652
- powderblue: "#b0e0e6",
653
- purple: "#800080",
654
- rebeccapurple: "#663399",
655
- red: "#ff0000",
656
- rosybrown: "#bc8f8f",
657
- royalblue: "#4169e1",
658
- saddlebrown: "#8b4513",
659
- salmon: "#fa8072",
660
- sandybrown: "#f4a460",
661
- seagreen: "#2e8b57",
662
- seashell: "#fff5ee",
663
- sienna: "#a0522d",
664
- silver: "#c0c0c0",
665
- skyblue: "#87ceeb",
666
- slateblue: "#6a5acd",
667
- slategray: "#708090",
668
- slategrey: "#708090",
669
- snow: "#fffafa",
670
- springgreen: "#00ff7f",
671
- steelblue: "#4682b4",
672
- tan: "#d2b48c",
673
- teal: "#008080",
674
- thistle: "#d8bfd8",
675
- tomato: "#ff6347",
676
- turquoise: "#40e0d0",
677
- violet: "#ee82ee",
678
- wheat: "#f5deb3",
679
- white: "#ffffff",
680
- whitesmoke: "#f5f5f5",
681
- yellow: "#ffff00",
682
- yellowgreen: "#9acd32",
683
- };
684
- var Name;
685
- (function (Name) {
686
- Name.types = () => Object.keys(Names);
687
- function is(value) {
688
- return typeof value == "string" && Name.types().includes(value.toLowerCase());
689
- }
690
- Name.is = is;
691
- })(Name || (Name = {}));
692
-
693
- var Rgb;
694
- (function (Rgb) {
695
- function is(value) {
696
- const values = typeof value == "string" && value.length > 9 ? value.substring(4, value.length - 1).split(",") : [];
697
- return (typeof value == "string" &&
698
- value.length > 9 &&
699
- value.substr(0, 4) == "rgb(" &&
700
- value.substr(value.length - 1, 1) == ")" &&
701
- values.length == 3 &&
702
- values.every((value) => {
703
- var _a;
704
- return !Number.isNaN(value) &&
705
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
706
- Number(value) >= 0 &&
707
- Number(value) <= 255;
708
- }));
709
- }
710
- Rgb.is = is;
711
- })(Rgb || (Rgb = {}));
712
-
713
- var CommaRgb;
714
- (function (CommaRgb) {
715
- function is(value) {
716
- const values = typeof value == "string" ? value.split(",") : [];
717
- return (values.length == 3 &&
718
- values.every((value) => {
719
- var _a;
720
- return !Number.isNaN(value) &&
721
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
722
- Number(value) >= 0 &&
723
- Number(value) <= 255;
724
- }));
725
- }
726
- CommaRgb.is = is;
727
- function from(color) {
728
- let result;
729
- const colorWithoutSpace = typeof color == "string" ? color.replace(/ /g, "").toLowerCase() : undefined;
730
- if (!colorWithoutSpace)
731
- result = undefined;
732
- else if (CommaRgb.is(colorWithoutSpace))
733
- result = colorWithoutSpace;
734
- else if (Hex.is(colorWithoutSpace))
735
- result = fromHex(colorWithoutSpace);
736
- else if (Rgb.is(colorWithoutSpace))
737
- result = fromRgb(colorWithoutSpace);
738
- else if (Name.is(colorWithoutSpace))
739
- result = fromHex(Names[colorWithoutSpace]);
740
- else if (Hsl.is(colorWithoutSpace))
741
- result = fromHsl(colorWithoutSpace);
742
- return result;
743
- }
744
- CommaRgb.from = from;
745
- function fromHex(hex) {
746
- let result = "0,0,0";
747
- if (hex.length == 7)
748
- result = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`;
749
- else if (hex.length == 4)
750
- result = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`);
751
- return result;
752
- }
753
- CommaRgb.fromHex = fromHex;
754
- function fromRgb(rgb) {
755
- return rgb.substring(4, rgb.length - 1);
756
- }
757
- CommaRgb.fromRgb = fromRgb;
758
- function fromHsl(hsl) {
759
- let result = "";
760
- let h, s, l;
761
- let r, g, b;
762
- const HSL = hsl
763
- .substring(4, hsl.length - 1)
764
- .split(",")
765
- .map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)));
766
- if (HSL.length == 3) {
767
- h = HSL[0] / 360;
768
- s = HSL[1] / 100;
769
- l = HSL[2] / 100;
770
- if (s == 0)
771
- r = g = b = l;
772
- else {
773
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
774
- const p = 2 * l - q;
775
- r = hue2rgb(p, q, h + 1 / 3);
776
- g = hue2rgb(p, q, h);
777
- b = hue2rgb(p, q, h - 1 / 3);
778
- }
779
- result = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`;
780
- }
781
- return result;
782
- }
783
- CommaRgb.fromHsl = fromHsl;
784
- function hue2rgb(p, q, t) {
785
- let result = p;
786
- if (t < 0)
787
- t += 1;
788
- if (t > 1)
789
- t -= 1;
790
- if (t < 1 / 6)
791
- result = p + (q - p) * 6 * t;
792
- else if (t < 1 / 2)
793
- result = q;
794
- else if (t < 2 / 3)
795
- result = p + (q - p) * (2 / 3 - t) * 6;
796
- return result;
797
- }
798
- })(CommaRgb || (CommaRgb = {}));
799
-
800
- var Color;
801
- (function (Color) {
802
- function is(value) {
803
- return (typeof value == "string" &&
804
- (CommaRgb.is(value) || Hex.is(value) || Hsl.is(value) || Name.is(value) || Rgb.is(value)));
805
- }
806
- Color.is = is;
807
- function from(value) {
808
- return is(value) ? value : undefined;
809
- }
810
- Color.from = from;
811
- Color.Names = Names;
812
- Color.Name = Name;
813
- Color.CommaRgb = CommaRgb;
814
- Color.Rgb = Rgb;
815
- Color.Hex = Hex;
816
- Color.Hsl = Hsl;
817
- })(Color || (Color = {}));
818
-
819
- function reduce(types, value) {
820
- return types.reduce((r, c) => typeof value == "object" && value != null && typeof value[c] == "string"
821
- ? Object.assign(Object.assign({}, r), { [c]: value[c] }) : r, {});
822
- }
823
- var Cosmetic;
824
- (function (Cosmetic) {
825
- Cosmetic.types = Cosmetic;
826
- function from(value) {
827
- let result = {};
828
- if (typeof value == "object" && value) {
829
- result = {
830
- text: reduce(["background", "color"], value.text),
831
- border: reduce(["background", "color", "style", "radius", "width"], value.border),
832
- gap: typeof value.gap == "string" ? value.gap : undefined,
833
- dangerColor: typeof value.dangerColor == "string"
834
- ? value.dangerColor
835
- : typeof value.danger_color == "string"
836
- ? value.danger_color
837
- : undefined,
838
- fontFamily: typeof value.fontFamily == "string"
839
- ? value.fontFamily
840
- : typeof value.font_family == "string"
841
- ? value.font_family
842
- : undefined,
843
- background: typeof value.background == "string" ? value.background : undefined,
844
- };
845
- Object.keys(result).forEach((key) => {
846
- var _a;
847
- if (result[key] == undefined ||
848
- (typeof result[key] == "object" && result[key] && Object.keys((_a = result[key]) !== null && _a !== void 0 ? _a : {}).length == 0)) {
849
- delete result[key];
850
- }
851
- });
852
- }
853
- return result;
854
- }
855
- Cosmetic.from = from;
856
- Cosmetic.Color = Color;
857
- })(Cosmetic || (Cosmetic = {}));
858
-
859
- export { App as A, Cosmetic as C, Notice as N, redirect as r };
860
-
861
- //# sourceMappingURL=index-2e948fc3.js.map