le-kit 0.1.13 → 0.1.14

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 (337) hide show
  1. package/dist/core/cjs/{index-BsRb_UTe.js → index-B0mg71He.js} +6 -6
  2. package/dist/core/cjs/index-B0mg71He.js.map +1 -0
  3. package/dist/core/cjs/index.cjs.js +2 -2
  4. package/dist/core/cjs/le-box.cjs.entry.js +2 -2
  5. package/dist/core/cjs/le-button.cjs.entry.js +2 -2
  6. package/dist/core/cjs/le-card.cjs.entry.js +2 -2
  7. package/dist/core/cjs/le-checkbox.cjs.entry.js +2 -2
  8. package/dist/core/cjs/le-kit.cjs.js +1 -1
  9. package/dist/core/cjs/le-number-input.cjs.entry.js +2 -2
  10. package/dist/core/cjs/le-popover.cjs.entry.js +1 -1
  11. package/dist/core/cjs/le-popup.cjs.entry.js +1 -1
  12. package/dist/core/cjs/le-round-progress.cjs.entry.js +1 -1
  13. package/dist/core/cjs/le-stack.cjs.entry.js +2 -2
  14. package/dist/core/cjs/le-string-input.cjs.entry.js +2 -2
  15. package/dist/core/cjs/le-text.cjs.entry.js +2 -2
  16. package/dist/core/cjs/le-turntable.cjs.entry.js +1 -1
  17. package/dist/core/cjs/loader.cjs.js +1 -1
  18. package/dist/{cjs/utils-DqhadIxH.js → core/cjs/utils-jdqP71LP.js} +3 -3
  19. package/dist/core/cjs/{utils-nsP8_w8_.js.map → utils-jdqP71LP.js.map} +1 -1
  20. package/dist/core/collection/global/app.js +4 -4
  21. package/dist/core/collection/global/app.js.map +1 -1
  22. package/dist/core/components/index.js.map +1 -1
  23. package/dist/core/components/le-box.js +34 -2
  24. package/dist/core/components/le-box.js.map +1 -1
  25. package/dist/core/components/le-button.js +1 -1
  26. package/dist/core/components/le-button2.js +1031 -6
  27. package/dist/core/components/le-button2.js.map +1 -1
  28. package/dist/core/components/le-card.js +36 -4
  29. package/dist/core/components/le-card.js.map +1 -1
  30. package/dist/core/components/le-checkbox.js +1 -79
  31. package/dist/core/components/le-checkbox.js.map +1 -1
  32. package/dist/core/components/le-component.d.ts +11 -0
  33. package/dist/core/components/le-number-input.js +30 -4
  34. package/dist/core/components/le-number-input.js.map +1 -1
  35. package/dist/core/components/le-popover.js +1 -377
  36. package/dist/core/components/le-popover.js.map +1 -1
  37. package/dist/core/components/le-popup.js +30 -4
  38. package/dist/core/components/le-popup.js.map +1 -1
  39. package/dist/core/components/le-round-progress.js +1 -1
  40. package/dist/core/components/le-round-progress.js.map +1 -1
  41. package/dist/core/components/le-slot.d.ts +11 -0
  42. package/dist/core/components/le-stack.js +36 -4
  43. package/dist/core/components/le-stack.js.map +1 -1
  44. package/dist/core/components/le-string-input.js +1 -119
  45. package/dist/core/components/le-string-input.js.map +1 -1
  46. package/dist/core/components/le-text.js +34 -2
  47. package/dist/core/components/le-text.js.map +1 -1
  48. package/dist/core/components/le-turntable.js +1 -1
  49. package/dist/core/components/le-turntable.js.map +1 -1
  50. package/dist/core/components/utils.js +4 -4
  51. package/dist/core/components/utils.js.map +1 -1
  52. package/dist/core/esm/{index-CJ-z5Zj1.js → index-SKsXnjWI.js} +6 -6
  53. package/dist/core/{le-kit/p-CJ-z5Zj1.js.map → esm/index-SKsXnjWI.js.map} +1 -1
  54. package/dist/core/esm/index.js +2 -2
  55. package/dist/core/esm/le-box.entry.js +2 -2
  56. package/dist/core/esm/le-button.entry.js +2 -2
  57. package/dist/core/esm/le-card.entry.js +2 -2
  58. package/dist/core/esm/le-checkbox.entry.js +2 -2
  59. package/dist/core/esm/le-kit.js +2 -2
  60. package/dist/core/esm/le-number-input.entry.js +2 -2
  61. package/dist/core/esm/le-popover.entry.js +1 -1
  62. package/dist/core/esm/le-popup.entry.js +1 -1
  63. package/dist/core/esm/le-round-progress.entry.js +1 -1
  64. package/dist/core/esm/le-stack.entry.js +2 -2
  65. package/dist/core/esm/le-string-input.entry.js +2 -2
  66. package/dist/core/esm/le-text.entry.js +2 -2
  67. package/dist/core/esm/le-turntable.entry.js +1 -1
  68. package/dist/core/esm/loader.js +2 -2
  69. package/dist/{esm/utils-Cf7fMI0j.js → core/esm/utils-DZdP1JiG.js} +3 -3
  70. package/dist/core/esm/{utils-Bxmld82M.js.map → utils-DZdP1JiG.js.map} +1 -1
  71. package/dist/core/le-kit/index.esm.js +1 -1
  72. package/dist/core/le-kit/le-kit.esm.js +1 -1
  73. package/dist/core/le-kit/p--VxUdzYV.js +2 -0
  74. package/dist/core/le-kit/{p-Drz36PDp.js.map → p--VxUdzYV.js.map} +1 -1
  75. package/dist/core/le-kit/{p-2ac4789a.entry.js → p-189cb775.entry.js} +2 -2
  76. package/dist/core/le-kit/{p-556086ca.entry.js → p-35c1d413.entry.js} +2 -2
  77. package/dist/core/le-kit/{p-aa6e906f.entry.js → p-4f133e72.entry.js} +2 -2
  78. package/dist/core/le-kit/{p-df552906.entry.js → p-55f70091.entry.js} +2 -2
  79. package/dist/core/le-kit/{p-e0861e82.entry.js → p-5fd7b23a.entry.js} +2 -2
  80. package/dist/core/le-kit/{p-5ef81068.entry.js → p-6e414a5c.entry.js} +2 -2
  81. package/dist/core/le-kit/{p-d75214f9.entry.js → p-7b121ca7.entry.js} +2 -2
  82. package/dist/core/le-kit/{p-45eace7c.entry.js → p-8c81fa95.entry.js} +2 -2
  83. package/dist/core/le-kit/{p-257495cc.entry.js → p-9aa81442.entry.js} +2 -2
  84. package/dist/core/le-kit/p-SKsXnjWI.js +3 -0
  85. package/dist/core/le-kit/p-SKsXnjWI.js.map +1 -0
  86. package/dist/core/le-kit/{p-66d35f48.entry.js → p-a9d05ef6.entry.js} +2 -2
  87. package/dist/core/le-kit/{p-73682c5e.entry.js → p-b2bd2a80.entry.js} +2 -2
  88. package/dist/core/le-kit/{p-0308bd1f.entry.js → p-ccac9611.entry.js} +2 -2
  89. package/dist/core/types/global/app.d.ts +4 -4
  90. package/dist/le-kit/assets/custom-elements.json +1007 -1007
  91. package/dist/le-kit/index-CAY3Hk_i.js +4559 -0
  92. package/dist/le-kit/index-CAY3Hk_i.js.map +1 -0
  93. package/dist/le-kit/index.esm.js +116 -2
  94. package/dist/le-kit/index.esm.js.map +1 -1
  95. package/dist/{esm → le-kit}/le-box.entry.js +3 -3
  96. package/dist/le-kit/le-button.entry.esm.js.map +1 -0
  97. package/dist/le-kit/le-button.entry.js +90 -0
  98. package/dist/{esm → le-kit}/le-card.entry.js +3 -3
  99. package/dist/le-kit/le-checkbox.entry.esm.js.map +1 -0
  100. package/dist/le-kit/le-checkbox.entry.js +59 -0
  101. package/dist/le-kit/le-component.entry.esm.js.map +1 -0
  102. package/dist/{collection/components/le-component/le-component.js → le-kit/le-component.entry.js} +19 -138
  103. package/dist/le-kit/le-kit.css +1010 -1
  104. package/dist/le-kit/le-kit.esm.js +48 -2
  105. package/dist/le-kit/le-kit.esm.js.map +1 -1
  106. package/dist/{esm → le-kit}/le-number-input.entry.js +5 -5
  107. package/dist/le-kit/le-popover.entry.esm.js.map +1 -0
  108. package/dist/{collection/components/le-popover/le-popover.js → le-kit/le-popover.entry.js} +16 -363
  109. package/dist/{esm → le-kit}/le-popup.entry.js +6 -6
  110. package/dist/{esm → le-kit}/le-round-progress.entry.js +2 -2
  111. package/dist/le-kit/le-slot.entry.esm.js.map +1 -0
  112. package/dist/{collection/components/le-slot/le-slot.js → le-kit/le-slot.entry.js} +20 -273
  113. package/dist/{esm → le-kit}/le-stack.entry.js +3 -3
  114. package/dist/le-kit/le-string-input.entry.esm.js.map +1 -0
  115. package/dist/le-kit/le-string-input.entry.js +93 -0
  116. package/dist/{esm → le-kit}/le-text.entry.js +3 -3
  117. package/dist/{esm → le-kit}/le-turntable.entry.js +2 -2
  118. package/dist/{core/esm/utils-Bxmld82M.js → le-kit/utils-cwSNy7ZS.js} +3 -3
  119. package/dist/{esm/utils-Cf7fMI0j.js.map → le-kit/utils-cwSNy7ZS.js.map} +1 -1
  120. package/dist/types/global/app.d.ts +4 -4
  121. package/package.json +3 -4
  122. package/readme.md +2 -2
  123. package/custom-elements.json +0 -4305
  124. package/dist/cjs/index-o1DRKw1g.js +0 -1842
  125. package/dist/cjs/index-o1DRKw1g.js.map +0 -1
  126. package/dist/cjs/index.cjs.js +0 -119
  127. package/dist/cjs/index.cjs.js.map +0 -1
  128. package/dist/cjs/le-box.cjs.entry.js +0 -184
  129. package/dist/cjs/le-box.entry.cjs.js.map +0 -1
  130. package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +0 -1
  131. package/dist/cjs/le-button_6.cjs.entry.js +0 -1206
  132. package/dist/cjs/le-card.cjs.entry.js +0 -29
  133. package/dist/cjs/le-card.entry.cjs.js.map +0 -1
  134. package/dist/cjs/le-kit.cjs.js +0 -25
  135. package/dist/cjs/le-kit.cjs.js.map +0 -1
  136. package/dist/cjs/le-number-input.cjs.entry.js +0 -202
  137. package/dist/cjs/le-number-input.entry.cjs.js.map +0 -1
  138. package/dist/cjs/le-popup.cjs.entry.js +0 -212
  139. package/dist/cjs/le-popup.entry.cjs.js.map +0 -1
  140. package/dist/cjs/le-round-progress.cjs.entry.js +0 -106
  141. package/dist/cjs/le-round-progress.entry.cjs.js.map +0 -1
  142. package/dist/cjs/le-stack.cjs.entry.js +0 -135
  143. package/dist/cjs/le-stack.entry.cjs.js.map +0 -1
  144. package/dist/cjs/le-text.cjs.entry.js +0 -335
  145. package/dist/cjs/le-text.entry.cjs.js.map +0 -1
  146. package/dist/cjs/le-turntable.cjs.entry.js +0 -139
  147. package/dist/cjs/le-turntable.entry.cjs.js.map +0 -1
  148. package/dist/cjs/loader.cjs.js +0 -13
  149. package/dist/cjs/loader.cjs.js.map +0 -1
  150. package/dist/cjs/utils-DqhadIxH.js.map +0 -1
  151. package/dist/collection/assets/custom-elements.json +0 -4305
  152. package/dist/collection/collection-manifest.json +0 -26
  153. package/dist/collection/components/le-box/le-box.default.css +0 -37
  154. package/dist/collection/components/le-box/le-box.js +0 -614
  155. package/dist/collection/components/le-box/le-box.js.map +0 -1
  156. package/dist/collection/components/le-button/le-button.default.css +0 -263
  157. package/dist/collection/components/le-button/le-button.js +0 -368
  158. package/dist/collection/components/le-button/le-button.js.map +0 -1
  159. package/dist/collection/components/le-card/le-card.default.css +0 -74
  160. package/dist/collection/components/le-card/le-card.js +0 -102
  161. package/dist/collection/components/le-card/le-card.js.map +0 -1
  162. package/dist/collection/components/le-checkbox/le-checkbox.css +0 -93
  163. package/dist/collection/components/le-checkbox/le-checkbox.js +0 -192
  164. package/dist/collection/components/le-checkbox/le-checkbox.js.map +0 -1
  165. package/dist/collection/components/le-component/le-component.css +0 -189
  166. package/dist/collection/components/le-component/le-component.js.map +0 -1
  167. package/dist/collection/components/le-number-input/le-number-input.css +0 -135
  168. package/dist/collection/components/le-number-input/le-number-input.js +0 -515
  169. package/dist/collection/components/le-number-input/le-number-input.js.map +0 -1
  170. package/dist/collection/components/le-popover/le-popover.css +0 -143
  171. package/dist/collection/components/le-popover/le-popover.js.map +0 -1
  172. package/dist/collection/components/le-popup/le-popup.api.js +0 -101
  173. package/dist/collection/components/le-popup/le-popup.api.js.map +0 -1
  174. package/dist/collection/components/le-popup/le-popup.css +0 -222
  175. package/dist/collection/components/le-popup/le-popup.js +0 -596
  176. package/dist/collection/components/le-popup/le-popup.js.map +0 -1
  177. package/dist/collection/components/le-round-progress/le-round-progress.css +0 -34
  178. package/dist/collection/components/le-round-progress/le-round-progress.js +0 -184
  179. package/dist/collection/components/le-round-progress/le-round-progress.js.map +0 -1
  180. package/dist/collection/components/le-slot/le-slot.default.css +0 -222
  181. package/dist/collection/components/le-slot/le-slot.js.map +0 -1
  182. package/dist/collection/components/le-stack/le-stack.default.css +0 -37
  183. package/dist/collection/components/le-stack/le-stack.js +0 -389
  184. package/dist/collection/components/le-stack/le-stack.js.map +0 -1
  185. package/dist/collection/components/le-string-input/le-string-input.css +0 -83
  186. package/dist/collection/components/le-string-input/le-string-input.js +0 -359
  187. package/dist/collection/components/le-string-input/le-string-input.js.map +0 -1
  188. package/dist/collection/components/le-text/le-text.default.css +0 -169
  189. package/dist/collection/components/le-text/le-text.js +0 -475
  190. package/dist/collection/components/le-text/le-text.js.map +0 -1
  191. package/dist/collection/components/le-turntable/le-turntable.css +0 -10
  192. package/dist/collection/components/le-turntable/le-turntable.js +0 -210
  193. package/dist/collection/components/le-turntable/le-turntable.js.map +0 -1
  194. package/dist/collection/global/app.js +0 -167
  195. package/dist/collection/global/app.js.map +0 -1
  196. package/dist/collection/index.js +0 -15
  197. package/dist/collection/index.js.map +0 -1
  198. package/dist/collection/types/blocks.js +0 -115
  199. package/dist/collection/types/blocks.js.map +0 -1
  200. package/dist/collection/types/options.js +0 -2
  201. package/dist/collection/types/options.js.map +0 -1
  202. package/dist/collection/utils/utils.js +0 -141
  203. package/dist/collection/utils/utils.js.map +0 -1
  204. package/dist/components/index.js +0 -113
  205. package/dist/components/index.js.map +0 -1
  206. package/dist/components/le-box.js +0 -257
  207. package/dist/components/le-box.js.map +0 -1
  208. package/dist/components/le-button.js +0 -9
  209. package/dist/components/le-button.js.map +0 -1
  210. package/dist/components/le-button2.js +0 -1149
  211. package/dist/components/le-button2.js.map +0 -1
  212. package/dist/components/le-card.js +0 -84
  213. package/dist/components/le-card.js.map +0 -1
  214. package/dist/components/le-checkbox.js +0 -9
  215. package/dist/components/le-checkbox.js.map +0 -1
  216. package/dist/components/le-number-input.js +0 -272
  217. package/dist/components/le-number-input.js.map +0 -1
  218. package/dist/components/le-popover.js +0 -9
  219. package/dist/components/le-popover.js.map +0 -1
  220. package/dist/components/le-popup.js +0 -279
  221. package/dist/components/le-popup.js.map +0 -1
  222. package/dist/components/le-round-progress.js +0 -135
  223. package/dist/components/le-round-progress.js.map +0 -1
  224. package/dist/components/le-stack.js +0 -199
  225. package/dist/components/le-stack.js.map +0 -1
  226. package/dist/components/le-string-input.js +0 -9
  227. package/dist/components/le-string-input.js.map +0 -1
  228. package/dist/components/le-text.js +0 -399
  229. package/dist/components/le-text.js.map +0 -1
  230. package/dist/components/le-turntable.js +0 -164
  231. package/dist/components/le-turntable.js.map +0 -1
  232. package/dist/components/utils.js +0 -310
  233. package/dist/components/utils.js.map +0 -1
  234. package/dist/core/cjs/index-BsRb_UTe.js.map +0 -1
  235. package/dist/core/cjs/utils-nsP8_w8_.js +0 -152
  236. package/dist/core/collection/assets/custom-elements.json +0 -4305
  237. package/dist/core/collection/themes/base.css +0 -89
  238. package/dist/core/collection/themes/dark.css +0 -100
  239. package/dist/core/collection/themes/default.css +0 -108
  240. package/dist/core/collection/themes/gradient.css +0 -100
  241. package/dist/core/collection/themes/index.css +0 -413
  242. package/dist/core/collection/themes/minimal.css +0 -100
  243. package/dist/core/collection/themes/warm.css +0 -100
  244. package/dist/core/esm/index-CJ-z5Zj1.js.map +0 -1
  245. package/dist/core/le-kit/p-CJ-z5Zj1.js +0 -3
  246. package/dist/core/le-kit/p-Drz36PDp.js +0 -2
  247. package/dist/docs.d.ts +0 -443
  248. package/dist/docs.json +0 -5185
  249. package/dist/esm/index-CwNQ1GTa.js +0 -1824
  250. package/dist/esm/index-CwNQ1GTa.js.map +0 -1
  251. package/dist/esm/index.js +0 -106
  252. package/dist/esm/index.js.map +0 -1
  253. package/dist/esm/le-box.entry.js.map +0 -1
  254. package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +0 -1
  255. package/dist/esm/le-button_6.entry.js +0 -1199
  256. package/dist/esm/le-card.entry.js.map +0 -1
  257. package/dist/esm/le-kit.js +0 -21
  258. package/dist/esm/le-kit.js.map +0 -1
  259. package/dist/esm/le-number-input.entry.js.map +0 -1
  260. package/dist/esm/le-popup.entry.js.map +0 -1
  261. package/dist/esm/le-round-progress.entry.js.map +0 -1
  262. package/dist/esm/le-stack.entry.js.map +0 -1
  263. package/dist/esm/le-text.entry.js.map +0 -1
  264. package/dist/esm/le-turntable.entry.js.map +0 -1
  265. package/dist/esm/loader.js +0 -11
  266. package/dist/esm/loader.js.map +0 -1
  267. package/dist/index.cjs.js +0 -1
  268. package/dist/index.js +0 -1
  269. package/dist/le-kit/dist/collection/themes/base.css +0 -89
  270. package/dist/le-kit/dist/collection/themes/dark.css +0 -100
  271. package/dist/le-kit/dist/collection/themes/default.css +0 -108
  272. package/dist/le-kit/dist/collection/themes/gradient.css +0 -100
  273. package/dist/le-kit/dist/collection/themes/index.css +0 -413
  274. package/dist/le-kit/dist/collection/themes/minimal.css +0 -100
  275. package/dist/le-kit/dist/collection/themes/warm.css +0 -100
  276. package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +0 -1
  277. package/dist/le-kit/p-08dbcc25.entry.js +0 -2
  278. package/dist/le-kit/p-08dbcc25.entry.js.map +0 -1
  279. package/dist/le-kit/p-5dc35729.entry.js +0 -2
  280. package/dist/le-kit/p-5dc35729.entry.js.map +0 -1
  281. package/dist/le-kit/p-64374730.entry.js +0 -2
  282. package/dist/le-kit/p-64374730.entry.js.map +0 -1
  283. package/dist/le-kit/p-79ec6f7c.entry.js +0 -2
  284. package/dist/le-kit/p-79ec6f7c.entry.js.map +0 -1
  285. package/dist/le-kit/p-8daf3c7f.entry.js +0 -2
  286. package/dist/le-kit/p-8daf3c7f.entry.js.map +0 -1
  287. package/dist/le-kit/p-9c69235d.entry.js +0 -2
  288. package/dist/le-kit/p-9c69235d.entry.js.map +0 -1
  289. package/dist/le-kit/p-CwNQ1GTa.js +0 -3
  290. package/dist/le-kit/p-CwNQ1GTa.js.map +0 -1
  291. package/dist/le-kit/p-ad398acd.entry.js +0 -2
  292. package/dist/le-kit/p-ad398acd.entry.js.map +0 -1
  293. package/dist/le-kit/p-b8122ad6.entry.js +0 -2
  294. package/dist/le-kit/p-b8122ad6.entry.js.map +0 -1
  295. package/dist/le-kit/p-f9008505.entry.js +0 -2
  296. package/dist/le-kit/p-f9008505.entry.js.map +0 -1
  297. package/dist/le-kit/p-y3FECAx9.js +0 -2
  298. package/dist/le-kit/p-y3FECAx9.js.map +0 -1
  299. package/dist/themes/base.css +0 -89
  300. package/dist/themes/dark.css +0 -100
  301. package/dist/themes/default.css +0 -108
  302. package/dist/themes/gradient.css +0 -100
  303. package/dist/themes/index.css +0 -413
  304. package/dist/themes/minimal.css +0 -100
  305. package/dist/themes/warm.css +0 -100
  306. /package/dist/{collection/dist/collection → components}/themes/base.css +0 -0
  307. /package/dist/{collection/dist/collection → components}/themes/dark.css +0 -0
  308. /package/dist/{collection/dist/collection → components}/themes/default.css +0 -0
  309. /package/dist/{collection/dist/collection → components}/themes/gradient.css +0 -0
  310. /package/dist/{collection/dist/collection → components}/themes/index.css +0 -0
  311. /package/dist/{collection/dist/collection → components}/themes/minimal.css +0 -0
  312. /package/dist/{collection/dist/collection → components}/themes/warm.css +0 -0
  313. /package/dist/{components → core/components}/le-component.js +0 -0
  314. /package/dist/{components → core/components}/le-component.js.map +0 -0
  315. /package/dist/{components → core/components}/le-popover2.js +0 -0
  316. /package/dist/{components → core/components}/le-popover2.js.map +0 -0
  317. /package/dist/{components → core/components}/le-slot.js +0 -0
  318. /package/dist/{components → core/components}/le-slot.js.map +0 -0
  319. /package/dist/core/le-kit/{p-2ac4789a.entry.js.map → p-189cb775.entry.js.map} +0 -0
  320. /package/dist/core/le-kit/{p-556086ca.entry.js.map → p-35c1d413.entry.js.map} +0 -0
  321. /package/dist/core/le-kit/{p-aa6e906f.entry.js.map → p-4f133e72.entry.js.map} +0 -0
  322. /package/dist/core/le-kit/{p-df552906.entry.js.map → p-55f70091.entry.js.map} +0 -0
  323. /package/dist/core/le-kit/{p-e0861e82.entry.js.map → p-5fd7b23a.entry.js.map} +0 -0
  324. /package/dist/core/le-kit/{p-5ef81068.entry.js.map → p-6e414a5c.entry.js.map} +0 -0
  325. /package/dist/core/le-kit/{p-d75214f9.entry.js.map → p-7b121ca7.entry.js.map} +0 -0
  326. /package/dist/core/le-kit/{p-45eace7c.entry.js.map → p-8c81fa95.entry.js.map} +0 -0
  327. /package/dist/core/le-kit/{p-257495cc.entry.js.map → p-9aa81442.entry.js.map} +0 -0
  328. /package/dist/core/le-kit/{p-66d35f48.entry.js.map → p-a9d05ef6.entry.js.map} +0 -0
  329. /package/dist/core/le-kit/{p-73682c5e.entry.js.map → p-b2bd2a80.entry.js.map} +0 -0
  330. /package/dist/core/le-kit/{p-0308bd1f.entry.js.map → p-ccac9611.entry.js.map} +0 -0
  331. /package/dist/{collection → le-kit/dist/components}/themes/base.css +0 -0
  332. /package/dist/{collection → le-kit/dist/components}/themes/dark.css +0 -0
  333. /package/dist/{collection → le-kit/dist/components}/themes/default.css +0 -0
  334. /package/dist/{collection → le-kit/dist/components}/themes/gradient.css +0 -0
  335. /package/dist/{collection → le-kit/dist/components}/themes/index.css +0 -0
  336. /package/dist/{collection → le-kit/dist/components}/themes/minimal.css +0 -0
  337. /package/dist/{collection → le-kit/dist/components}/themes/warm.css +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"le-box.js","sourceRoot":"","sources":["../../../src/components/le-box/le-box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;;;;;;;;;;;;;GAiBG;AAMH,MAAM,OAAO,KAAK;IACL,EAAE,CAAc;IAE3B;;;OAGG;IACK,IAAI,GAAW,CAAC,CAAC;IAEzB;;;OAGG;IACK,MAAM,GAAW,CAAC,CAAC;IAE3B;;OAEG;IACK,KAAK,GAAW,MAAM,CAAC;IAE/B;;OAEG;IACK,KAAK,CAAU;IAEvB;;OAEG;IACK,MAAM,CAAU;IAExB;;OAEG;IACK,QAAQ,CAAU;IAE1B;;OAEG;IACK,QAAQ,CAAU;IAE1B;;OAEG;IACK,SAAS,CAAU;IAE3B;;OAEG;IACK,SAAS,CAAU;IAE3B;;OAEG;IACK,UAAU,CAAU;IAE5B;;OAEG;IACK,YAAY,CAAU;IAE9B;;OAEG;IACK,MAAM,CAAU;IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Element, Host } from '@stencil/core';\nimport { classnames } from '../../utils/utils';\n\n/**\n * A flexible box component for use as a flex item within le-stack.\n *\n * `le-box` wraps content and provides flex item properties like grow, shrink,\n * basis, and self-alignment. It can also control its internal content alignment.\n *\n * @slot - Default slot for box content\n *\n * @cssprop --le-box-bg - Background color\n * @cssprop --le-box-padding - Padding inside the box\n * @cssprop --le-box-border-radius - Border radius\n *\n * @csspart box - The main box container\n * @csspart content - The inner content wrapper\n *\n * @cmsEditable true\n * @cmsCategory Layout\n */\n@Component({\n tag: 'le-box',\n styleUrl: 'le-box.default.css',\n shadow: true,\n})\nexport class LeBox {\n @Element() el: HTMLElement;\n\n /**\n * Flex grow factor - how much the item should grow relative to siblings\n * @min 0\n */\n @Prop() grow: number = 0;\n\n /**\n * Flex shrink factor - how much the item should shrink relative to siblings\n * @min 0\n */\n @Prop() shrink: number = 1;\n\n /**\n * Flex basis - initial size before growing/shrinking (e.g., '200px', '25%', 'auto')\n */\n @Prop() basis: string = 'auto';\n\n /**\n * Width of the box (CSS value like '100px', '50%', 'auto')\n */\n @Prop() width?: string;\n\n /**\n * Height of the box (CSS value)\n */\n @Prop() height?: string;\n\n /**\n * Minimum width constraint\n */\n @Prop() minWidth?: string;\n\n /**\n * Maximum width constraint\n */\n @Prop() maxWidth?: string;\n\n /**\n * Minimum height constraint\n */\n @Prop() minHeight?: string;\n\n /**\n * Maximum height constraint\n */\n @Prop() maxHeight?: string;\n\n /**\n * Background color or CSS value (e.g., '#f0f0f0', 'var(--le-color-primary-light)')\n */\n @Prop() background?: string;\n\n /**\n * Border radius (e.g., '8px', 'var(--le-radius-md)')\n */\n @Prop() borderRadius?: string;\n\n /**\n * Border style (e.g., '1px solid #ccc', '2px dashed var(--le-color-border)')\n */\n @Prop() border?: string;\n\n /**\n * Self-alignment override for this item on the cross axis\n * @allowedValues auto | start | center | end | stretch | baseline\n */\n @Prop() alignSelf: 'auto' | 'start' | 'center' | 'end' | 'stretch' | 'baseline' = 'auto';\n\n /**\n * Internal horizontal alignment of content\n * @allowedValues start | center | end | stretch\n */\n @Prop() alignContent: 'start' | 'center' | 'end' | 'stretch' = 'stretch';\n\n /**\n * Internal vertical alignment of content\n * @allowedValues start | center | end | stretch\n */\n @Prop() justifyContent: 'start' | 'center' | 'end' | 'stretch' = 'start';\n\n /**\n * Padding inside the box (CSS value like '8px', '1rem')\n */\n @Prop() padding?: string;\n\n /**\n * Order in the flex container (lower values come first)\n */\n @Prop() order?: number;\n\n /**\n * Whether to display box content as flex (for internal alignment)\n */\n @Prop() displayFlex: boolean = false;\n\n /**\n * Direction of internal flex layout when displayFlex is true\n * @allowedValues horizontal | vertical\n */\n @Prop() innerDirection: 'horizontal' | 'vertical' = 'vertical';\n\n /**\n * Gap between internal flex items when displayFlex is true\n */\n @Prop() innerGap?: string;\n\n private getAlignSelf(): string {\n const alignMap: Record<string, string> = {\n auto: 'auto',\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n baseline: 'baseline',\n };\n return alignMap[this.alignSelf] || 'auto';\n }\n\n private getContentAlign(): string {\n const alignMap: Record<string, string> = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n };\n return alignMap[this.alignContent] || 'stretch';\n }\n\n private getContentJustify(): string {\n const justifyMap: Record<string, string> = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n };\n return justifyMap[this.justifyContent] || 'flex-start';\n }\n\n render() {\n // Host styles for flex item behavior\n const hostStyle: { [key: string]: string } = {\n flexGrow: String(this.grow),\n flexShrink: String(this.shrink),\n flexBasis: this.basis,\n alignSelf: this.getAlignSelf(),\n };\n\n if (this.width) hostStyle.width = this.width;\n if (this.height) hostStyle.height = this.height;\n if (this.minWidth) hostStyle.minWidth = this.minWidth;\n if (this.maxWidth) hostStyle.maxWidth = this.maxWidth;\n if (this.minHeight) hostStyle.minHeight = this.minHeight;\n if (this.maxHeight) hostStyle.maxHeight = this.maxHeight;\n if (this.order !== undefined) hostStyle.order = String(this.order);\n\n // Inner content styles\n const contentStyle: { [key: string]: string } = {};\n\n if (this.padding) {\n contentStyle.padding = this.padding;\n }\n if (this.background) {\n contentStyle.background = this.background;\n }\n if (this.borderRadius) {\n contentStyle.borderRadius = this.borderRadius;\n }\n if (this.border) {\n contentStyle.border = this.border;\n }\n\n if (this.displayFlex) {\n contentStyle.display = 'flex';\n contentStyle.flexDirection = this.innerDirection === 'vertical' ? 'column' : 'row';\n contentStyle.alignItems = this.getContentAlign();\n contentStyle.justifyContent = this.getContentJustify();\n if (this.innerGap) {\n contentStyle.gap = this.innerGap;\n }\n }\n\n const hostClass = classnames({\n 'has-grow': this.grow > 0,\n 'display-flex': this.displayFlex,\n [`inner-${this.innerDirection}`]: this.displayFlex,\n });\n\n return (\n <Host style={hostStyle} class={hostClass}>\n <le-component component=\"le-box\">\n <div class=\"box\" part=\"box\">\n <div class=\"content\" part=\"content\" style={contentStyle}>\n <le-slot\n name=\"\"\n description=\"Content inside this flex item\"\n type=\"slot\"\n allowed-components=\"le-text,le-card,le-button,le-stack,le-box\"\n >\n <slot></slot>\n </le-slot>\n </div>\n </div>\n </le-component>\n </Host>\n );\n }\n}\n"]}
@@ -1,263 +0,0 @@
1
- /**
2
- * Default mode styles for le-button
3
- * Uses global design tokens with component-specific overrides
4
- */
5
- :host {
6
- display: inline-block;
7
-
8
- /* Component-specific tokens */
9
- --le-button-border-radius: var(--le-radius-md);
10
- --le-button-padding-x: 0.4rem;
11
- --le-button-padding-y: 0.4rem;
12
- --le-button-small-padding: 0.25rem;
13
- --le-button-font-size: var(--le-font-size-md);
14
- --le-button-font-weight: var(--le-font-weight-medium);
15
- --le-button-transition: var(--le-transition-fast);
16
- --le-button-icon-aspect-ratio: 1;
17
-
18
- /* Internal state variables - set by color classes */
19
- --_btn-bg: var(--le-color-primary);
20
- --_btn-bg-hover: var(--le-color-primary-dark);
21
- --_btn-bg-system: var(--le-color-black);
22
- --_btn-color: var(--le-color-primary-contrast);
23
- --_btn-border-color: var(--le-color-primary);
24
- }
25
-
26
- :host([full-width]) {
27
- display: block;
28
- width: 100%;
29
- }
30
-
31
- .button {
32
- display: inline-flex;
33
- align-items: center;
34
- justify-content: center;
35
- gap: var(--le-spacing-3);
36
- width: 100%;
37
- padding: var(--le-button-padding-y) var(--le-button-padding-x);
38
- border: 1px solid var(--_btn-border-color);
39
- border-radius: var(--le-button-border-radius);
40
- background: var(--_btn-bg);
41
- color: var(--_btn-color);
42
- font-family: var(--le-font-family-base);
43
- font-size: var(--le-button-font-size);
44
- font-weight: var(--le-button-font-weight);
45
- line-height: var(--le-line-height-tight);
46
- text-decoration: none;
47
- cursor: pointer;
48
- transition:
49
- background-color var(--le-button-transition) var(--le-transition-easing),
50
- border-color var(--le-button-transition) var(--le-transition-easing),
51
- box-shadow var(--le-button-transition) var(--le-transition-easing),
52
- transform var(--le-button-transition) var(--le-transition-easing);
53
- }
54
-
55
- .button:hover:not(:disabled) {
56
- background: var(--_btn-bg-hover);
57
- border-color: var(--_btn-bg-hover);
58
- }
59
-
60
- .button:active:not(:disabled) {
61
- transform: translateY(1px);
62
- }
63
-
64
- .button:focus-visible {
65
- outline: 2px solid var(--le-color-focus);
66
- outline-offset: 2px;
67
- }
68
-
69
- .button:disabled {
70
- opacity: 0.5;
71
- cursor: not-allowed;
72
- }
73
-
74
- /* ===========================================
75
- * COLOR VARIANTS - Use theme semantic colors
76
- * =========================================== */
77
-
78
- /* Primary (default) */
79
- :host > le-component.color-primary {
80
- --_btn-bg: var(--le-color-primary);
81
- --_btn-bg-hover: var(--le-color-primary-dark);
82
- --_btn-color: var(--le-color-primary-contrast);
83
- --_btn-border-color: var(--le-color-primary);
84
- }
85
-
86
- /* Secondary */
87
- :host > le-component.color-secondary {
88
- --_btn-bg: var(--le-color-secondary);
89
- --_btn-bg-hover: var(--le-color-secondary-dark);
90
- --_btn-color: var(--le-color-secondary-contrast);
91
- --_btn-border-color: var(--le-color-secondary);
92
- }
93
-
94
- /* Success */
95
- :host > le-component.color-success {
96
- --_btn-bg: var(--le-color-success);
97
- --_btn-bg-hover: var(--le-color-success-dark);
98
- --_btn-color: var(--le-color-success-contrast);
99
- --_btn-border-color: var(--le-color-success);
100
- }
101
-
102
- /* Warning */
103
- :host > le-component.color-warning {
104
- --_btn-bg: var(--le-color-warning);
105
- --_btn-bg-hover: var(--le-color-warning-dark);
106
- --_btn-color: var(--le-color-warning-contrast);
107
- --_btn-border-color: var(--le-color-warning);
108
- }
109
-
110
- /* Danger */
111
- :host > le-component.color-danger {
112
- --_btn-bg: var(--le-color-danger);
113
- --_btn-bg-hover: var(--le-color-danger-dark);
114
- --_btn-color: var(--le-color-danger-contrast);
115
- --_btn-border-color: var(--le-color-danger);
116
- }
117
-
118
- /* Info */
119
- :host > le-component.color-info {
120
- --_btn-bg: var(--le-color-info);
121
- --_btn-bg-hover: var(--le-color-info-dark);
122
- --_btn-color: var(--le-color-info-contrast);
123
- --_btn-border-color: var(--le-color-info);
124
- }
125
-
126
- /* ===========================================
127
- * STYLE VARIANTS
128
- * =========================================== */
129
-
130
- /* Solid (default) - already styled by color classes */
131
- :host > le-component.variant-solid .button {
132
- box-shadow: var(--le-shadow-sm);
133
- }
134
-
135
- :host > le-component.variant-solid .button:hover:not(:disabled) {
136
- box-shadow: var(--le-shadow-md);
137
- }
138
-
139
- /* Outlined */
140
- :host > le-component.variant-outlined .button {
141
- background: transparent;
142
- color: var(--_btn-bg);
143
- border-color: var(--_btn-border-color);
144
- }
145
-
146
- :host > le-component.variant-outlined .button:hover:not(:disabled) {
147
- background: var(--_btn-bg);
148
- color: var(--_btn-color);
149
- }
150
-
151
- /* Clear (ghost) */
152
- :host > le-component.variant-clear .button {
153
- background: transparent;
154
- color: var(--_btn-bg);
155
- border-color: transparent;
156
- }
157
-
158
- :host > le-component.variant-clear .button:hover:not(:disabled) {
159
- background: var(--le-color-gray-100);
160
- border-color: transparent;
161
- }
162
-
163
- /* System (controls without access) */
164
- :host > le-component.variant-system .button {
165
- background: transparent;
166
- color: var(--_btn-bg-system);
167
- border-color: transparent;
168
- }
169
-
170
- /* ===========================================
171
- * SIZES
172
- * =========================================== */
173
- :host > le-component.size-small .button {
174
- --le-button-padding-x: 0.4rem;
175
- --le-button-padding-y: 0.3rem;
176
- --le-button-padding-top: 0.35rem;
177
- --le-button-font-size: var(--le-button-small-font-size, var(--le-font-size-xs));
178
- }
179
-
180
- :host > le-component.size-large .button {
181
- --le-button-padding-x: 0.9rem;
182
- --le-button-padding-y: 0.6rem;
183
- --le-button-font-size: var(--le-font-size-xl);
184
- }
185
-
186
- /* ===========================================
187
- * STATES & MODIFIERS
188
- * =========================================== */
189
-
190
- /* Full width */
191
- :host > le-component.full-width {
192
- display: block;
193
- width: 100%;
194
- }
195
-
196
- /* Selected state */
197
- :host > le-component.selected .button {
198
- box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
199
- }
200
-
201
- :host > le-component.variant-outlined.selected .button,
202
- :host > le-component.variant-clear.selected .button {
203
- background: var(--_btn-bg);
204
- color: var(--_btn-color);
205
- }
206
-
207
- /* Icon only */
208
- :host > le-component.icon-only .button {
209
- padding: 0.5rem;
210
- padding-bottom: 0.6rem;
211
- aspect-ratio: var(--le-button-icon-aspect-ratio, 1);
212
- }
213
-
214
- :host > le-component.icon-only.size-small .button {
215
- padding: var(--le-button-small-padding, 0.25rem);
216
- }
217
-
218
- :host > le-component.icon-only.size-large .button {
219
- padding: 0.75rem;
220
- }
221
-
222
- /* Hide content in icon-only mode */
223
- :host > le-component.icon-only .content {
224
- display: none;
225
- }
226
-
227
- /* ===========================================
228
- * CONTENT (le-slot wrapper)
229
- * =========================================== */
230
- .content {
231
- display: inline;
232
- }
233
-
234
- .content:empty {
235
- display: none;
236
- }
237
-
238
- /* ===========================================
239
- * ICON WRAPPERS & SLOTS
240
- * =========================================== */
241
- .icon-start,
242
- .icon-only,
243
- .icon-end {
244
- display: flex;
245
- align-items: center;
246
- justify-content: center;
247
- }
248
-
249
- .icon-start:empty,
250
- .icon-only:empty,
251
- .icon-end:empty {
252
- display: none;
253
- }
254
-
255
- ::slotted([slot="icon-start"]),
256
- ::slotted([slot="icon-only"]),
257
- ::slotted([slot="icon-end"]) {
258
- display: flex;
259
- align-items: center;
260
- justify-content: center;
261
- width: 1.125em;
262
- height: 1.125em;
263
- }
@@ -1,368 +0,0 @@
1
- import { h, Fragment } from "@stencil/core";
2
- import { classnames } from "../../utils/utils";
3
- /**
4
- * A flexible button component with multiple variants and states.
5
- *
6
- * @slot - Button text content
7
- * @slot icon-start - Icon before the text
8
- * @slot icon-end - Icon after the text
9
- *
10
- * @cssprop --le-button-bg - Button background color
11
- * @cssprop --le-button-color - Button text color
12
- * @cssprop --le-button-border-radius - Button border radius
13
- * @cssprop --le-button-padding-x - Button horizontal padding
14
- * @cssprop --le-button-padding-y - Button vertical padding
15
- *
16
- * @csspart button - The native button element
17
- * @csspart content - The button content wrapper
18
- *
19
- * @cmsEditable true
20
- * @cmsCategory Actions
21
- */
22
- export class LeButton {
23
- el;
24
- /**
25
- * Mode of the popover should be 'default' for internal use
26
- */
27
- mode;
28
- /**
29
- * Button variant style
30
- * @allowedValues solid | outlined | clear
31
- */
32
- variant = 'solid';
33
- /**
34
- * Button color theme (uses theme semantic colors)
35
- * @allowedValues primary | secondary | success | warning | danger | info
36
- */
37
- color = 'primary';
38
- /**
39
- * Button size
40
- * @allowedValues small | medium | large
41
- */
42
- size = 'medium';
43
- /**
44
- * Whether the button is in a selected/active state
45
- */
46
- selected = false;
47
- /**
48
- * Whether the button takes full width of its container
49
- */
50
- fullWidth = false;
51
- /**
52
- * Whether the button displays only an icon (square aspect ratio)
53
- */
54
- iconOnly = false;
55
- /**
56
- * Whether the button is disabled
57
- */
58
- disabled = false;
59
- /**
60
- * The button type attribute
61
- * @allowedValues button | submit | reset
62
- */
63
- type = 'button';
64
- /**
65
- * Optional href to make the button act as a link
66
- */
67
- href;
68
- /**
69
- * Link target when href is set
70
- */
71
- target;
72
- /**
73
- * Emitted when the button is clicked.
74
- * This is a custom event that wraps the native click but ensures the target is the le-button.
75
- */
76
- leClick;
77
- handleClick = (event) => {
78
- // We stop the internal button click from bubbling up
79
- event.stopPropagation();
80
- if (this.disabled) {
81
- event.preventDefault();
82
- return;
83
- }
84
- // And emit our own click event from the host element
85
- this.leClick.emit(event);
86
- };
87
- render() {
88
- const classes = classnames(`variant-${this.variant}`, `color-${this.color}`, `size-${this.size}`, {
89
- 'selected': this.selected,
90
- 'full-width': this.fullWidth,
91
- 'icon-only': this.iconOnly,
92
- 'disabled': this.disabled,
93
- });
94
- const TagType = this.href ? 'a' : 'button';
95
- const attrs = this.href ? { href: this.href, target: this.target, role: 'button' } : { type: this.type, disabled: this.disabled };
96
- return (h("le-component", { key: '363dbfddf4a765bfd6f36ed16d0912e281153806', component: "le-button", hostClass: classes }, h(TagType, { key: 'e112acdff4278e976ad767bd1ea7c9ced5e85f43', class: "button", part: "button", ...attrs, onClick: this.handleClick }, this.iconOnly ? (h("span", { class: "icon-start" }, h("slot", { name: "icon-only" }))) : (h(Fragment, null, h("span", { class: "icon-start" }, h("slot", { name: "icon-start" })), h("le-slot", { name: "", description: "Button text", type: "text", class: "content", part: "content" }, h("slot", null)), h("span", { class: "icon-end" }, h("slot", { name: "icon-end" })))))));
97
- }
98
- static get is() { return "le-button"; }
99
- static get encapsulation() { return "shadow"; }
100
- static get originalStyleUrls() {
101
- return {
102
- "$": ["le-button.default.css"]
103
- };
104
- }
105
- static get styleUrls() {
106
- return {
107
- "$": ["le-button.default.css"]
108
- };
109
- }
110
- static get properties() {
111
- return {
112
- "mode": {
113
- "type": "string",
114
- "mutable": true,
115
- "complexType": {
116
- "original": "'default' | 'admin'",
117
- "resolved": "\"admin\" | \"default\"",
118
- "references": {}
119
- },
120
- "required": false,
121
- "optional": false,
122
- "docs": {
123
- "tags": [],
124
- "text": "Mode of the popover should be 'default' for internal use"
125
- },
126
- "getter": false,
127
- "setter": false,
128
- "reflect": true,
129
- "attribute": "mode"
130
- },
131
- "variant": {
132
- "type": "string",
133
- "mutable": false,
134
- "complexType": {
135
- "original": "'solid' | 'outlined' | 'clear' | 'system'",
136
- "resolved": "\"clear\" | \"outlined\" | \"solid\" | \"system\"",
137
- "references": {}
138
- },
139
- "required": false,
140
- "optional": false,
141
- "docs": {
142
- "tags": [{
143
- "name": "allowedValues",
144
- "text": "solid | outlined | clear"
145
- }],
146
- "text": "Button variant style"
147
- },
148
- "getter": false,
149
- "setter": false,
150
- "reflect": false,
151
- "attribute": "variant",
152
- "defaultValue": "'solid'"
153
- },
154
- "color": {
155
- "type": "string",
156
- "mutable": false,
157
- "complexType": {
158
- "original": "'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info'",
159
- "resolved": "\"danger\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
160
- "references": {}
161
- },
162
- "required": false,
163
- "optional": false,
164
- "docs": {
165
- "tags": [{
166
- "name": "allowedValues",
167
- "text": "primary | secondary | success | warning | danger | info"
168
- }],
169
- "text": "Button color theme (uses theme semantic colors)"
170
- },
171
- "getter": false,
172
- "setter": false,
173
- "reflect": false,
174
- "attribute": "color",
175
- "defaultValue": "'primary'"
176
- },
177
- "size": {
178
- "type": "string",
179
- "mutable": false,
180
- "complexType": {
181
- "original": "'small' | 'medium' | 'large'",
182
- "resolved": "\"large\" | \"medium\" | \"small\"",
183
- "references": {}
184
- },
185
- "required": false,
186
- "optional": false,
187
- "docs": {
188
- "tags": [{
189
- "name": "allowedValues",
190
- "text": "small | medium | large"
191
- }],
192
- "text": "Button size"
193
- },
194
- "getter": false,
195
- "setter": false,
196
- "reflect": false,
197
- "attribute": "size",
198
- "defaultValue": "'medium'"
199
- },
200
- "selected": {
201
- "type": "boolean",
202
- "mutable": false,
203
- "complexType": {
204
- "original": "boolean",
205
- "resolved": "boolean",
206
- "references": {}
207
- },
208
- "required": false,
209
- "optional": false,
210
- "docs": {
211
- "tags": [],
212
- "text": "Whether the button is in a selected/active state"
213
- },
214
- "getter": false,
215
- "setter": false,
216
- "reflect": false,
217
- "attribute": "selected",
218
- "defaultValue": "false"
219
- },
220
- "fullWidth": {
221
- "type": "boolean",
222
- "mutable": false,
223
- "complexType": {
224
- "original": "boolean",
225
- "resolved": "boolean",
226
- "references": {}
227
- },
228
- "required": false,
229
- "optional": false,
230
- "docs": {
231
- "tags": [],
232
- "text": "Whether the button takes full width of its container"
233
- },
234
- "getter": false,
235
- "setter": false,
236
- "reflect": true,
237
- "attribute": "full-width",
238
- "defaultValue": "false"
239
- },
240
- "iconOnly": {
241
- "type": "boolean",
242
- "mutable": false,
243
- "complexType": {
244
- "original": "boolean",
245
- "resolved": "boolean",
246
- "references": {}
247
- },
248
- "required": false,
249
- "optional": false,
250
- "docs": {
251
- "tags": [],
252
- "text": "Whether the button displays only an icon (square aspect ratio)"
253
- },
254
- "getter": false,
255
- "setter": false,
256
- "reflect": false,
257
- "attribute": "icon-only",
258
- "defaultValue": "false"
259
- },
260
- "disabled": {
261
- "type": "boolean",
262
- "mutable": false,
263
- "complexType": {
264
- "original": "boolean",
265
- "resolved": "boolean",
266
- "references": {}
267
- },
268
- "required": false,
269
- "optional": false,
270
- "docs": {
271
- "tags": [],
272
- "text": "Whether the button is disabled"
273
- },
274
- "getter": false,
275
- "setter": false,
276
- "reflect": false,
277
- "attribute": "disabled",
278
- "defaultValue": "false"
279
- },
280
- "type": {
281
- "type": "string",
282
- "mutable": false,
283
- "complexType": {
284
- "original": "'button' | 'submit' | 'reset'",
285
- "resolved": "\"button\" | \"reset\" | \"submit\"",
286
- "references": {}
287
- },
288
- "required": false,
289
- "optional": false,
290
- "docs": {
291
- "tags": [{
292
- "name": "allowedValues",
293
- "text": "button | submit | reset"
294
- }],
295
- "text": "The button type attribute"
296
- },
297
- "getter": false,
298
- "setter": false,
299
- "reflect": false,
300
- "attribute": "type",
301
- "defaultValue": "'button'"
302
- },
303
- "href": {
304
- "type": "string",
305
- "mutable": false,
306
- "complexType": {
307
- "original": "string",
308
- "resolved": "string",
309
- "references": {}
310
- },
311
- "required": false,
312
- "optional": true,
313
- "docs": {
314
- "tags": [],
315
- "text": "Optional href to make the button act as a link"
316
- },
317
- "getter": false,
318
- "setter": false,
319
- "reflect": false,
320
- "attribute": "href"
321
- },
322
- "target": {
323
- "type": "string",
324
- "mutable": false,
325
- "complexType": {
326
- "original": "string",
327
- "resolved": "string",
328
- "references": {}
329
- },
330
- "required": false,
331
- "optional": true,
332
- "docs": {
333
- "tags": [],
334
- "text": "Link target when href is set"
335
- },
336
- "getter": false,
337
- "setter": false,
338
- "reflect": false,
339
- "attribute": "target"
340
- }
341
- };
342
- }
343
- static get events() {
344
- return [{
345
- "method": "leClick",
346
- "name": "click",
347
- "bubbles": true,
348
- "cancelable": true,
349
- "composed": true,
350
- "docs": {
351
- "tags": [],
352
- "text": "Emitted when the button is clicked.\nThis is a custom event that wraps the native click but ensures the target is the le-button."
353
- },
354
- "complexType": {
355
- "original": "PointerEvent",
356
- "resolved": "PointerEvent",
357
- "references": {
358
- "PointerEvent": {
359
- "location": "global",
360
- "id": "global::PointerEvent"
361
- }
362
- }
363
- }
364
- }];
365
- }
366
- static get elementRef() { return "el"; }
367
- }
368
- //# sourceMappingURL=le-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"le-button.js","sourceRoot":"","sources":["../../../src/components/le-button/le-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Element, Fragment, Event, EventEmitter } from '@stencil/core';\nimport { classnames } from '../../utils/utils';\n\n/**\n * A flexible button component with multiple variants and states.\n *\n * @slot - Button text content\n * @slot icon-start - Icon before the text\n * @slot icon-end - Icon after the text\n *\n * @cssprop --le-button-bg - Button background color\n * @cssprop --le-button-color - Button text color\n * @cssprop --le-button-border-radius - Button border radius\n * @cssprop --le-button-padding-x - Button horizontal padding\n * @cssprop --le-button-padding-y - Button vertical padding\n *\n * @csspart button - The native button element\n * @csspart content - The button content wrapper\n *\n * @cmsEditable true\n * @cmsCategory Actions\n */\n@Component({\n tag: 'le-button',\n styleUrl: 'le-button.default.css',\n shadow: true,\n})\nexport class LeButton {\n @Element() el: HTMLElement;\n\n /**\n * Mode of the popover should be 'default' for internal use\n */\n @Prop({ mutable: true, reflect: true }) mode: 'default' | 'admin';\n\n /**\n * Button variant style\n * @allowedValues solid | outlined | clear\n */\n @Prop() variant: 'solid' | 'outlined' | 'clear' | 'system' = 'solid';\n\n /**\n * Button color theme (uses theme semantic colors)\n * @allowedValues primary | secondary | success | warning | danger | info\n */\n @Prop() color: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' = 'primary';\n\n /**\n * Button size\n * @allowedValues small | medium | large\n */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /**\n * Whether the button is in a selected/active state\n */\n @Prop() selected: boolean = false;\n\n /**\n * Whether the button takes full width of its container\n */\n @Prop({ reflect: true }) fullWidth: boolean = false;\n\n /**\n * Whether the button displays only an icon (square aspect ratio)\n */\n @Prop() iconOnly: boolean = false;\n\n /**\n * Whether the button is disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * The button type attribute\n * @allowedValues button | submit | reset\n */\n @Prop() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * Optional href to make the button act as a link\n */\n @Prop() href?: string;\n\n /**\n * Link target when href is set\n */\n @Prop() target?: string;\n\n /**\n * Emitted when the button is clicked.\n * This is a custom event that wraps the native click but ensures the target is the le-button.\n */\n @Event({ eventName: 'click' }) leClick: EventEmitter<PointerEvent>;\n\n private handleClick = (event: PointerEvent) => {\n // We stop the internal button click from bubbling up\n event.stopPropagation();\n\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n \n // And emit our own click event from the host element\n this.leClick.emit(event);\n };\n\n render() {\n const classes = classnames(`variant-${this.variant}`, `color-${this.color}`, `size-${this.size}`, {\n 'selected': this.selected,\n 'full-width': this.fullWidth,\n 'icon-only': this.iconOnly,\n 'disabled': this.disabled,\n });\n\n const TagType = this.href ? 'a' : 'button';\n const attrs = this.href ? { href: this.href, target: this.target, role: 'button' } : { type: this.type, disabled: this.disabled };\n\n return (\n <le-component component=\"le-button\" hostClass={classes}>\n <TagType class=\"button\" part=\"button\" {...attrs} onClick={this.handleClick}>\n {this.iconOnly ? (\n <span class=\"icon-start\">\n <slot name=\"icon-only\"></slot>\n </span>\n ) : (\n <Fragment>\n <span class=\"icon-start\">\n <slot name=\"icon-start\"></slot>\n </span>\n <le-slot name=\"\" description=\"Button text\" type=\"text\" class=\"content\" part=\"content\">\n <slot></slot>\n </le-slot>\n <span class=\"icon-end\">\n <slot name=\"icon-end\"></slot>\n </span>\n </Fragment>\n )}\n </TagType>\n </le-component>\n );\n }\n}\n"]}