le-kit 0.1.3 → 0.1.5

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 (257) hide show
  1. package/dist/le-kit/assets/custom-elements.json +4305 -0
  2. package/dist/le-kit/index-Da-89pOc.js +4522 -0
  3. package/dist/le-kit/{index-D21JjI31.js.map → index-Da-89pOc.js.map} +1 -1
  4. package/dist/le-kit/index.esm.js +116 -2
  5. package/dist/le-kit/index.esm.js.map +1 -1
  6. package/dist/{esm → le-kit}/le-box.entry.js +3 -3
  7. package/dist/le-kit/le-button.entry.esm.js.map +1 -0
  8. package/dist/le-kit/le-button.entry.js +90 -0
  9. package/dist/{esm → le-kit}/le-card.entry.js +3 -3
  10. package/dist/le-kit/le-checkbox.entry.esm.js.map +1 -0
  11. package/dist/le-kit/le-checkbox.entry.js +59 -0
  12. package/dist/le-kit/le-component.entry.esm.js.map +1 -0
  13. package/dist/{collection/components/le-component/le-component.js → le-kit/le-component.entry.js} +19 -134
  14. package/dist/le-kit/le-kit.css +1010 -1
  15. package/dist/le-kit/le-kit.esm.js +48 -2
  16. package/dist/le-kit/le-kit.esm.js.map +1 -1
  17. package/dist/{esm → le-kit}/le-number-input.entry.js +5 -5
  18. package/dist/le-kit/le-popover.entry.esm.js.map +1 -0
  19. package/dist/{components/le-popover2.js → le-kit/le-popover.entry.js} +9 -45
  20. package/dist/{esm → le-kit}/le-popup.entry.js +6 -6
  21. package/dist/{esm → le-kit}/le-round-progress.entry.js +2 -2
  22. package/dist/le-kit/le-slot.entry.esm.js.map +1 -0
  23. package/dist/{collection/components/le-slot/le-slot.js → le-kit/le-slot.entry.js} +30 -279
  24. package/dist/{esm → le-kit}/le-stack.entry.js +3 -3
  25. package/dist/le-kit/le-string-input.entry.esm.js.map +1 -0
  26. package/dist/le-kit/le-string-input.entry.js +93 -0
  27. package/dist/{esm → le-kit}/le-text.entry.js +3 -3
  28. package/dist/{esm → le-kit}/le-turntable.entry.js +2 -2
  29. package/dist/{esm/utils-CJLZrrdC.js → le-kit/utils-FDOApZ53.js} +3 -3
  30. package/dist/le-kit/{utils-apol-Xc_.js.map → utils-FDOApZ53.js.map} +1 -1
  31. package/package.json +3 -54
  32. package/readme.md +2 -35
  33. package/dist/admin/index.d.ts +0 -23
  34. package/dist/admin/index.js +0 -74
  35. package/dist/admin/loader.js +0 -9
  36. package/dist/cjs/index-CO4npcak.js +0 -1796
  37. package/dist/cjs/index-CO4npcak.js.map +0 -1
  38. package/dist/cjs/index.cjs.js +0 -117
  39. package/dist/cjs/index.cjs.js.map +0 -1
  40. package/dist/cjs/le-box.cjs.entry.js +0 -184
  41. package/dist/cjs/le-box.entry.cjs.js.map +0 -1
  42. package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +0 -1
  43. package/dist/cjs/le-button_6.cjs.entry.js +0 -1199
  44. package/dist/cjs/le-card.cjs.entry.js +0 -29
  45. package/dist/cjs/le-card.entry.cjs.js.map +0 -1
  46. package/dist/cjs/le-kit.cjs.js +0 -25
  47. package/dist/cjs/le-kit.cjs.js.map +0 -1
  48. package/dist/cjs/le-number-input.cjs.entry.js +0 -202
  49. package/dist/cjs/le-number-input.entry.cjs.js.map +0 -1
  50. package/dist/cjs/le-popup.cjs.entry.js +0 -212
  51. package/dist/cjs/le-popup.entry.cjs.js.map +0 -1
  52. package/dist/cjs/le-round-progress.cjs.entry.js +0 -106
  53. package/dist/cjs/le-round-progress.entry.cjs.js.map +0 -1
  54. package/dist/cjs/le-stack.cjs.entry.js +0 -135
  55. package/dist/cjs/le-stack.entry.cjs.js.map +0 -1
  56. package/dist/cjs/le-text.cjs.entry.js +0 -335
  57. package/dist/cjs/le-text.entry.cjs.js.map +0 -1
  58. package/dist/cjs/le-turntable.cjs.entry.js +0 -139
  59. package/dist/cjs/le-turntable.entry.cjs.js.map +0 -1
  60. package/dist/cjs/loader.cjs.js +0 -13
  61. package/dist/cjs/loader.cjs.js.map +0 -1
  62. package/dist/cjs/utils-BeT0iyCQ.js +0 -152
  63. package/dist/cjs/utils-BeT0iyCQ.js.map +0 -1
  64. package/dist/collection/collection-manifest.json +0 -26
  65. package/dist/collection/components/le-box/le-box.default.css +0 -37
  66. package/dist/collection/components/le-box/le-box.js +0 -614
  67. package/dist/collection/components/le-box/le-box.js.map +0 -1
  68. package/dist/collection/components/le-button/le-button.default.css +0 -263
  69. package/dist/collection/components/le-button/le-button.js +0 -368
  70. package/dist/collection/components/le-button/le-button.js.map +0 -1
  71. package/dist/collection/components/le-card/le-card.default.css +0 -74
  72. package/dist/collection/components/le-card/le-card.js +0 -102
  73. package/dist/collection/components/le-card/le-card.js.map +0 -1
  74. package/dist/collection/components/le-checkbox/le-checkbox.css +0 -93
  75. package/dist/collection/components/le-checkbox/le-checkbox.js +0 -192
  76. package/dist/collection/components/le-checkbox/le-checkbox.js.map +0 -1
  77. package/dist/collection/components/le-component/le-component.css +0 -189
  78. package/dist/collection/components/le-component/le-component.js.map +0 -1
  79. package/dist/collection/components/le-number-input/le-number-input.css +0 -135
  80. package/dist/collection/components/le-number-input/le-number-input.js +0 -515
  81. package/dist/collection/components/le-number-input/le-number-input.js.map +0 -1
  82. package/dist/collection/components/le-popover/le-popover.css +0 -143
  83. package/dist/collection/components/le-popover/le-popover.js +0 -693
  84. package/dist/collection/components/le-popover/le-popover.js.map +0 -1
  85. package/dist/collection/components/le-popup/le-popup.api.js +0 -101
  86. package/dist/collection/components/le-popup/le-popup.api.js.map +0 -1
  87. package/dist/collection/components/le-popup/le-popup.css +0 -222
  88. package/dist/collection/components/le-popup/le-popup.js +0 -596
  89. package/dist/collection/components/le-popup/le-popup.js.map +0 -1
  90. package/dist/collection/components/le-round-progress/le-round-progress.css +0 -34
  91. package/dist/collection/components/le-round-progress/le-round-progress.js +0 -184
  92. package/dist/collection/components/le-round-progress/le-round-progress.js.map +0 -1
  93. package/dist/collection/components/le-slot/le-slot.default.css +0 -222
  94. package/dist/collection/components/le-slot/le-slot.js.map +0 -1
  95. package/dist/collection/components/le-stack/le-stack.default.css +0 -37
  96. package/dist/collection/components/le-stack/le-stack.js +0 -389
  97. package/dist/collection/components/le-stack/le-stack.js.map +0 -1
  98. package/dist/collection/components/le-string-input/le-string-input.css +0 -83
  99. package/dist/collection/components/le-string-input/le-string-input.js +0 -359
  100. package/dist/collection/components/le-string-input/le-string-input.js.map +0 -1
  101. package/dist/collection/components/le-text/le-text.default.css +0 -169
  102. package/dist/collection/components/le-text/le-text.js +0 -475
  103. package/dist/collection/components/le-text/le-text.js.map +0 -1
  104. package/dist/collection/components/le-turntable/le-turntable.css +0 -10
  105. package/dist/collection/components/le-turntable/le-turntable.js +0 -210
  106. package/dist/collection/components/le-turntable/le-turntable.js.map +0 -1
  107. package/dist/collection/global/app.js +0 -130
  108. package/dist/collection/global/app.js.map +0 -1
  109. package/dist/collection/index-admin.js +0 -27
  110. package/dist/collection/index-admin.js.map +0 -1
  111. package/dist/collection/index-core.js +0 -25
  112. package/dist/collection/index-core.js.map +0 -1
  113. package/dist/collection/index.js +0 -15
  114. package/dist/collection/index.js.map +0 -1
  115. package/dist/collection/types/blocks.js +0 -115
  116. package/dist/collection/types/blocks.js.map +0 -1
  117. package/dist/collection/types/options.js +0 -2
  118. package/dist/collection/types/options.js.map +0 -1
  119. package/dist/collection/utils/utils.js +0 -141
  120. package/dist/collection/utils/utils.js.map +0 -1
  121. package/dist/components/index.js +0 -127
  122. package/dist/components/index.js.map +0 -1
  123. package/dist/components/le-box.js +0 -256
  124. package/dist/components/le-box.js.map +0 -1
  125. package/dist/components/le-button.js +0 -9
  126. package/dist/components/le-button.js.map +0 -1
  127. package/dist/components/le-button2.js +0 -1408
  128. package/dist/components/le-button2.js.map +0 -1
  129. package/dist/components/le-card.js +0 -83
  130. package/dist/components/le-card.js.map +0 -1
  131. package/dist/components/le-checkbox.js +0 -9
  132. package/dist/components/le-checkbox.js.map +0 -1
  133. package/dist/components/le-component.js +0 -9
  134. package/dist/components/le-component.js.map +0 -1
  135. package/dist/components/le-number-input.js +0 -271
  136. package/dist/components/le-number-input.js.map +0 -1
  137. package/dist/components/le-popover.js +0 -9
  138. package/dist/components/le-popover.js.map +0 -1
  139. package/dist/components/le-popover2.js.map +0 -1
  140. package/dist/components/le-popup.js +0 -279
  141. package/dist/components/le-popup.js.map +0 -1
  142. package/dist/components/le-round-progress.js +0 -135
  143. package/dist/components/le-round-progress.js.map +0 -1
  144. package/dist/components/le-slot.js +0 -9
  145. package/dist/components/le-slot.js.map +0 -1
  146. package/dist/components/le-stack.js +0 -198
  147. package/dist/components/le-stack.js.map +0 -1
  148. package/dist/components/le-string-input.js +0 -9
  149. package/dist/components/le-string-input.js.map +0 -1
  150. package/dist/components/le-text.js +0 -398
  151. package/dist/components/le-text.js.map +0 -1
  152. package/dist/components/le-turntable.js +0 -164
  153. package/dist/components/le-turntable.js.map +0 -1
  154. package/dist/core/components/index.d.ts +0 -64
  155. package/dist/core/components/index.js +0 -125
  156. package/dist/core/components/index.js.map +0 -1
  157. package/dist/core/components/le-box.d.ts +0 -11
  158. package/dist/core/components/le-box.js +0 -246
  159. package/dist/core/components/le-box.js.map +0 -1
  160. package/dist/core/components/le-button.d.ts +0 -11
  161. package/dist/core/components/le-button.js +0 -9
  162. package/dist/core/components/le-button.js.map +0 -1
  163. package/dist/core/components/le-button2.js +0 -1358
  164. package/dist/core/components/le-button2.js.map +0 -1
  165. package/dist/core/components/le-card.d.ts +0 -11
  166. package/dist/core/components/le-card.js +0 -73
  167. package/dist/core/components/le-card.js.map +0 -1
  168. package/dist/core/components/le-checkbox.d.ts +0 -11
  169. package/dist/core/components/le-checkbox.js +0 -9
  170. package/dist/core/components/le-checkbox.js.map +0 -1
  171. package/dist/core/components/le-component.js.map +0 -1
  172. package/dist/core/components/le-number-input.d.ts +0 -11
  173. package/dist/core/components/le-number-input.js +0 -261
  174. package/dist/core/components/le-number-input.js.map +0 -1
  175. package/dist/core/components/le-popover.d.ts +0 -11
  176. package/dist/core/components/le-popover.js +0 -9
  177. package/dist/core/components/le-popover.js.map +0 -1
  178. package/dist/core/components/le-popover2.js +0 -382
  179. package/dist/core/components/le-popover2.js.map +0 -1
  180. package/dist/core/components/le-popup.d.ts +0 -11
  181. package/dist/core/components/le-popup.js +0 -269
  182. package/dist/core/components/le-popup.js.map +0 -1
  183. package/dist/core/components/le-round-progress.d.ts +0 -11
  184. package/dist/core/components/le-round-progress.js +0 -135
  185. package/dist/core/components/le-round-progress.js.map +0 -1
  186. package/dist/core/components/le-slot.js.map +0 -1
  187. package/dist/core/components/le-stack.d.ts +0 -11
  188. package/dist/core/components/le-stack.js +0 -188
  189. package/dist/core/components/le-stack.js.map +0 -1
  190. package/dist/core/components/le-string-input.d.ts +0 -11
  191. package/dist/core/components/le-string-input.js +0 -9
  192. package/dist/core/components/le-string-input.js.map +0 -1
  193. package/dist/core/components/le-text.d.ts +0 -11
  194. package/dist/core/components/le-text.js +0 -388
  195. package/dist/core/components/le-text.js.map +0 -1
  196. package/dist/core/components/le-turntable.d.ts +0 -11
  197. package/dist/core/components/le-turntable.js +0 -164
  198. package/dist/core/components/le-turntable.js.map +0 -1
  199. package/dist/core/index.d.ts +0 -21
  200. package/dist/core/index.js +0 -68
  201. package/dist/core/loader.js +0 -9
  202. package/dist/core/stencil-runtime.js +0 -1
  203. package/dist/docs.d.ts +0 -443
  204. package/dist/docs.json +0 -5185
  205. package/dist/esm/index-D71TXvJa.js +0 -1781
  206. package/dist/esm/index-D71TXvJa.js.map +0 -1
  207. package/dist/esm/index.js +0 -106
  208. package/dist/esm/index.js.map +0 -1
  209. package/dist/esm/le-box.entry.js.map +0 -1
  210. package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +0 -1
  211. package/dist/esm/le-button_6.entry.js +0 -1192
  212. package/dist/esm/le-card.entry.js.map +0 -1
  213. package/dist/esm/le-kit.js +0 -21
  214. package/dist/esm/le-kit.js.map +0 -1
  215. package/dist/esm/le-number-input.entry.js.map +0 -1
  216. package/dist/esm/le-popup.entry.js.map +0 -1
  217. package/dist/esm/le-round-progress.entry.js.map +0 -1
  218. package/dist/esm/le-stack.entry.js.map +0 -1
  219. package/dist/esm/le-text.entry.js.map +0 -1
  220. package/dist/esm/le-turntable.entry.js.map +0 -1
  221. package/dist/esm/loader.js +0 -11
  222. package/dist/esm/loader.js.map +0 -1
  223. package/dist/esm/utils-CJLZrrdC.js.map +0 -1
  224. package/dist/index.cjs.js +0 -1
  225. package/dist/index.js +0 -1
  226. package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +0 -1
  227. package/dist/le-kit/p-024a764e.entry.js +0 -2
  228. package/dist/le-kit/p-024a764e.entry.js.map +0 -1
  229. package/dist/le-kit/p-073cf0b9.entry.js +0 -2
  230. package/dist/le-kit/p-073cf0b9.entry.js.map +0 -1
  231. package/dist/le-kit/p-0955b105.entry.js +0 -2
  232. package/dist/le-kit/p-0955b105.entry.js.map +0 -1
  233. package/dist/le-kit/p-18d79ee2.entry.js +0 -2
  234. package/dist/le-kit/p-18d79ee2.entry.js.map +0 -1
  235. package/dist/le-kit/p-4b1d3b6d.entry.js +0 -2
  236. package/dist/le-kit/p-4b1d3b6d.entry.js.map +0 -1
  237. package/dist/le-kit/p-79d179bd.entry.js +0 -2
  238. package/dist/le-kit/p-79d179bd.entry.js.map +0 -1
  239. package/dist/le-kit/p-D71TXvJa.js +0 -3
  240. package/dist/le-kit/p-D71TXvJa.js.map +0 -1
  241. package/dist/le-kit/p-c8a9288e.entry.js +0 -2
  242. package/dist/le-kit/p-c8a9288e.entry.js.map +0 -1
  243. package/dist/le-kit/p-cfc35bd3.entry.js +0 -2
  244. package/dist/le-kit/p-cfc35bd3.entry.js.map +0 -1
  245. package/dist/le-kit/p-d04da1f5.entry.js +0 -2
  246. package/dist/le-kit/p-d04da1f5.entry.js.map +0 -1
  247. package/dist/le-kit/p-qIai5-eB.js +0 -2
  248. package/dist/le-kit/p-qIai5-eB.js.map +0 -1
  249. package/dist/themes/base.css +0 -89
  250. package/dist/themes/dark.css +0 -100
  251. package/dist/themes/default.css +0 -108
  252. package/dist/themes/gradient.css +0 -100
  253. package/dist/themes/index.css +0 -413
  254. package/dist/themes/minimal.css +0 -100
  255. package/dist/themes/warm.css +0 -100
  256. package/dist/types/index-admin.d.ts +0 -29
  257. package/dist/types/index-core.d.ts +0 -27
@@ -1,614 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- import { classnames } from "../../utils/utils";
3
- /**
4
- * A flexible box component for use as a flex item within le-stack.
5
- *
6
- * `le-box` wraps content and provides flex item properties like grow, shrink,
7
- * basis, and self-alignment. It can also control its internal content alignment.
8
- *
9
- * @slot - Default slot for box content
10
- *
11
- * @cssprop --le-box-bg - Background color
12
- * @cssprop --le-box-padding - Padding inside the box
13
- * @cssprop --le-box-border-radius - Border radius
14
- *
15
- * @csspart box - The main box container
16
- * @csspart content - The inner content wrapper
17
- *
18
- * @cmsEditable true
19
- * @cmsCategory Layout
20
- */
21
- export class LeBox {
22
- el;
23
- /**
24
- * Flex grow factor - how much the item should grow relative to siblings
25
- * @min 0
26
- */
27
- grow = 0;
28
- /**
29
- * Flex shrink factor - how much the item should shrink relative to siblings
30
- * @min 0
31
- */
32
- shrink = 1;
33
- /**
34
- * Flex basis - initial size before growing/shrinking (e.g., '200px', '25%', 'auto')
35
- */
36
- basis = 'auto';
37
- /**
38
- * Width of the box (CSS value like '100px', '50%', 'auto')
39
- */
40
- width;
41
- /**
42
- * Height of the box (CSS value)
43
- */
44
- height;
45
- /**
46
- * Minimum width constraint
47
- */
48
- minWidth;
49
- /**
50
- * Maximum width constraint
51
- */
52
- maxWidth;
53
- /**
54
- * Minimum height constraint
55
- */
56
- minHeight;
57
- /**
58
- * Maximum height constraint
59
- */
60
- maxHeight;
61
- /**
62
- * Background color or CSS value (e.g., '#f0f0f0', 'var(--le-color-primary-light)')
63
- */
64
- background;
65
- /**
66
- * Border radius (e.g., '8px', 'var(--le-radius-md)')
67
- */
68
- borderRadius;
69
- /**
70
- * Border style (e.g., '1px solid #ccc', '2px dashed var(--le-color-border)')
71
- */
72
- border;
73
- /**
74
- * Self-alignment override for this item on the cross axis
75
- * @allowedValues auto | start | center | end | stretch | baseline
76
- */
77
- alignSelf = 'auto';
78
- /**
79
- * Internal horizontal alignment of content
80
- * @allowedValues start | center | end | stretch
81
- */
82
- alignContent = 'stretch';
83
- /**
84
- * Internal vertical alignment of content
85
- * @allowedValues start | center | end | stretch
86
- */
87
- justifyContent = 'start';
88
- /**
89
- * Padding inside the box (CSS value like '8px', '1rem')
90
- */
91
- padding;
92
- /**
93
- * Order in the flex container (lower values come first)
94
- */
95
- order;
96
- /**
97
- * Whether to display box content as flex (for internal alignment)
98
- */
99
- displayFlex = false;
100
- /**
101
- * Direction of internal flex layout when displayFlex is true
102
- * @allowedValues horizontal | vertical
103
- */
104
- innerDirection = 'vertical';
105
- /**
106
- * Gap between internal flex items when displayFlex is true
107
- */
108
- innerGap;
109
- getAlignSelf() {
110
- const alignMap = {
111
- auto: 'auto',
112
- start: 'flex-start',
113
- center: 'center',
114
- end: 'flex-end',
115
- stretch: 'stretch',
116
- baseline: 'baseline',
117
- };
118
- return alignMap[this.alignSelf] || 'auto';
119
- }
120
- getContentAlign() {
121
- const alignMap = {
122
- start: 'flex-start',
123
- center: 'center',
124
- end: 'flex-end',
125
- stretch: 'stretch',
126
- };
127
- return alignMap[this.alignContent] || 'stretch';
128
- }
129
- getContentJustify() {
130
- const justifyMap = {
131
- start: 'flex-start',
132
- center: 'center',
133
- end: 'flex-end',
134
- stretch: 'stretch',
135
- };
136
- return justifyMap[this.justifyContent] || 'flex-start';
137
- }
138
- render() {
139
- // Host styles for flex item behavior
140
- const hostStyle = {
141
- flexGrow: String(this.grow),
142
- flexShrink: String(this.shrink),
143
- flexBasis: this.basis,
144
- alignSelf: this.getAlignSelf(),
145
- };
146
- if (this.width)
147
- hostStyle.width = this.width;
148
- if (this.height)
149
- hostStyle.height = this.height;
150
- if (this.minWidth)
151
- hostStyle.minWidth = this.minWidth;
152
- if (this.maxWidth)
153
- hostStyle.maxWidth = this.maxWidth;
154
- if (this.minHeight)
155
- hostStyle.minHeight = this.minHeight;
156
- if (this.maxHeight)
157
- hostStyle.maxHeight = this.maxHeight;
158
- if (this.order !== undefined)
159
- hostStyle.order = String(this.order);
160
- // Inner content styles
161
- const contentStyle = {};
162
- if (this.padding) {
163
- contentStyle.padding = this.padding;
164
- }
165
- if (this.background) {
166
- contentStyle.background = this.background;
167
- }
168
- if (this.borderRadius) {
169
- contentStyle.borderRadius = this.borderRadius;
170
- }
171
- if (this.border) {
172
- contentStyle.border = this.border;
173
- }
174
- if (this.displayFlex) {
175
- contentStyle.display = 'flex';
176
- contentStyle.flexDirection = this.innerDirection === 'vertical' ? 'column' : 'row';
177
- contentStyle.alignItems = this.getContentAlign();
178
- contentStyle.justifyContent = this.getContentJustify();
179
- if (this.innerGap) {
180
- contentStyle.gap = this.innerGap;
181
- }
182
- }
183
- const hostClass = classnames({
184
- 'has-grow': this.grow > 0,
185
- 'display-flex': this.displayFlex,
186
- [`inner-${this.innerDirection}`]: this.displayFlex,
187
- });
188
- return (h(Host, { key: '8d71daaa3a1f34cf1b5fa3afe4f788d974d14dde', style: hostStyle, class: hostClass }, h("le-component", { key: '350393fef2159c40de43792502545ba93e0ec84c', component: "le-box" }, h("div", { key: '425be85bce62b600a383e164a847a2f0622496bd', class: "box", part: "box" }, h("div", { key: '104275e435d64a76428b5934aa0ece7ae3284cd8', class: "content", part: "content", style: contentStyle }, h("le-slot", { key: '7655d6bd5140ffcac514b266b4ca2f790a44e8ae', name: "", description: "Content inside this flex item", type: "slot", "allowed-components": "le-text,le-card,le-button,le-stack,le-box" }, h("slot", { key: '47efcfcc9b9efe5283fa8f558026b3b13ea5b959' })))))));
189
- }
190
- static get is() { return "le-box"; }
191
- static get encapsulation() { return "shadow"; }
192
- static get originalStyleUrls() {
193
- return {
194
- "$": ["le-box.default.css"]
195
- };
196
- }
197
- static get styleUrls() {
198
- return {
199
- "$": ["le-box.default.css"]
200
- };
201
- }
202
- static get properties() {
203
- return {
204
- "grow": {
205
- "type": "number",
206
- "mutable": false,
207
- "complexType": {
208
- "original": "number",
209
- "resolved": "number",
210
- "references": {}
211
- },
212
- "required": false,
213
- "optional": false,
214
- "docs": {
215
- "tags": [{
216
- "name": "min",
217
- "text": "0"
218
- }],
219
- "text": "Flex grow factor - how much the item should grow relative to siblings"
220
- },
221
- "getter": false,
222
- "setter": false,
223
- "reflect": false,
224
- "attribute": "grow",
225
- "defaultValue": "0"
226
- },
227
- "shrink": {
228
- "type": "number",
229
- "mutable": false,
230
- "complexType": {
231
- "original": "number",
232
- "resolved": "number",
233
- "references": {}
234
- },
235
- "required": false,
236
- "optional": false,
237
- "docs": {
238
- "tags": [{
239
- "name": "min",
240
- "text": "0"
241
- }],
242
- "text": "Flex shrink factor - how much the item should shrink relative to siblings"
243
- },
244
- "getter": false,
245
- "setter": false,
246
- "reflect": false,
247
- "attribute": "shrink",
248
- "defaultValue": "1"
249
- },
250
- "basis": {
251
- "type": "string",
252
- "mutable": false,
253
- "complexType": {
254
- "original": "string",
255
- "resolved": "string",
256
- "references": {}
257
- },
258
- "required": false,
259
- "optional": false,
260
- "docs": {
261
- "tags": [],
262
- "text": "Flex basis - initial size before growing/shrinking (e.g., '200px', '25%', 'auto')"
263
- },
264
- "getter": false,
265
- "setter": false,
266
- "reflect": false,
267
- "attribute": "basis",
268
- "defaultValue": "'auto'"
269
- },
270
- "width": {
271
- "type": "string",
272
- "mutable": false,
273
- "complexType": {
274
- "original": "string",
275
- "resolved": "string",
276
- "references": {}
277
- },
278
- "required": false,
279
- "optional": true,
280
- "docs": {
281
- "tags": [],
282
- "text": "Width of the box (CSS value like '100px', '50%', 'auto')"
283
- },
284
- "getter": false,
285
- "setter": false,
286
- "reflect": false,
287
- "attribute": "width"
288
- },
289
- "height": {
290
- "type": "string",
291
- "mutable": false,
292
- "complexType": {
293
- "original": "string",
294
- "resolved": "string",
295
- "references": {}
296
- },
297
- "required": false,
298
- "optional": true,
299
- "docs": {
300
- "tags": [],
301
- "text": "Height of the box (CSS value)"
302
- },
303
- "getter": false,
304
- "setter": false,
305
- "reflect": false,
306
- "attribute": "height"
307
- },
308
- "minWidth": {
309
- "type": "string",
310
- "mutable": false,
311
- "complexType": {
312
- "original": "string",
313
- "resolved": "string",
314
- "references": {}
315
- },
316
- "required": false,
317
- "optional": true,
318
- "docs": {
319
- "tags": [],
320
- "text": "Minimum width constraint"
321
- },
322
- "getter": false,
323
- "setter": false,
324
- "reflect": false,
325
- "attribute": "min-width"
326
- },
327
- "maxWidth": {
328
- "type": "string",
329
- "mutable": false,
330
- "complexType": {
331
- "original": "string",
332
- "resolved": "string",
333
- "references": {}
334
- },
335
- "required": false,
336
- "optional": true,
337
- "docs": {
338
- "tags": [],
339
- "text": "Maximum width constraint"
340
- },
341
- "getter": false,
342
- "setter": false,
343
- "reflect": false,
344
- "attribute": "max-width"
345
- },
346
- "minHeight": {
347
- "type": "string",
348
- "mutable": false,
349
- "complexType": {
350
- "original": "string",
351
- "resolved": "string",
352
- "references": {}
353
- },
354
- "required": false,
355
- "optional": true,
356
- "docs": {
357
- "tags": [],
358
- "text": "Minimum height constraint"
359
- },
360
- "getter": false,
361
- "setter": false,
362
- "reflect": false,
363
- "attribute": "min-height"
364
- },
365
- "maxHeight": {
366
- "type": "string",
367
- "mutable": false,
368
- "complexType": {
369
- "original": "string",
370
- "resolved": "string",
371
- "references": {}
372
- },
373
- "required": false,
374
- "optional": true,
375
- "docs": {
376
- "tags": [],
377
- "text": "Maximum height constraint"
378
- },
379
- "getter": false,
380
- "setter": false,
381
- "reflect": false,
382
- "attribute": "max-height"
383
- },
384
- "background": {
385
- "type": "string",
386
- "mutable": false,
387
- "complexType": {
388
- "original": "string",
389
- "resolved": "string",
390
- "references": {}
391
- },
392
- "required": false,
393
- "optional": true,
394
- "docs": {
395
- "tags": [],
396
- "text": "Background color or CSS value (e.g., '#f0f0f0', 'var(--le-color-primary-light)')"
397
- },
398
- "getter": false,
399
- "setter": false,
400
- "reflect": false,
401
- "attribute": "background"
402
- },
403
- "borderRadius": {
404
- "type": "string",
405
- "mutable": false,
406
- "complexType": {
407
- "original": "string",
408
- "resolved": "string",
409
- "references": {}
410
- },
411
- "required": false,
412
- "optional": true,
413
- "docs": {
414
- "tags": [],
415
- "text": "Border radius (e.g., '8px', 'var(--le-radius-md)')"
416
- },
417
- "getter": false,
418
- "setter": false,
419
- "reflect": false,
420
- "attribute": "border-radius"
421
- },
422
- "border": {
423
- "type": "string",
424
- "mutable": false,
425
- "complexType": {
426
- "original": "string",
427
- "resolved": "string",
428
- "references": {}
429
- },
430
- "required": false,
431
- "optional": true,
432
- "docs": {
433
- "tags": [],
434
- "text": "Border style (e.g., '1px solid #ccc', '2px dashed var(--le-color-border)')"
435
- },
436
- "getter": false,
437
- "setter": false,
438
- "reflect": false,
439
- "attribute": "border"
440
- },
441
- "alignSelf": {
442
- "type": "string",
443
- "mutable": false,
444
- "complexType": {
445
- "original": "'auto' | 'start' | 'center' | 'end' | 'stretch' | 'baseline'",
446
- "resolved": "\"auto\" | \"baseline\" | \"center\" | \"end\" | \"start\" | \"stretch\"",
447
- "references": {}
448
- },
449
- "required": false,
450
- "optional": false,
451
- "docs": {
452
- "tags": [{
453
- "name": "allowedValues",
454
- "text": "auto | start | center | end | stretch | baseline"
455
- }],
456
- "text": "Self-alignment override for this item on the cross axis"
457
- },
458
- "getter": false,
459
- "setter": false,
460
- "reflect": false,
461
- "attribute": "align-self",
462
- "defaultValue": "'auto'"
463
- },
464
- "alignContent": {
465
- "type": "string",
466
- "mutable": false,
467
- "complexType": {
468
- "original": "'start' | 'center' | 'end' | 'stretch'",
469
- "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
470
- "references": {}
471
- },
472
- "required": false,
473
- "optional": false,
474
- "docs": {
475
- "tags": [{
476
- "name": "allowedValues",
477
- "text": "start | center | end | stretch"
478
- }],
479
- "text": "Internal horizontal alignment of content"
480
- },
481
- "getter": false,
482
- "setter": false,
483
- "reflect": false,
484
- "attribute": "align-content",
485
- "defaultValue": "'stretch'"
486
- },
487
- "justifyContent": {
488
- "type": "string",
489
- "mutable": false,
490
- "complexType": {
491
- "original": "'start' | 'center' | 'end' | 'stretch'",
492
- "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
493
- "references": {}
494
- },
495
- "required": false,
496
- "optional": false,
497
- "docs": {
498
- "tags": [{
499
- "name": "allowedValues",
500
- "text": "start | center | end | stretch"
501
- }],
502
- "text": "Internal vertical alignment of content"
503
- },
504
- "getter": false,
505
- "setter": false,
506
- "reflect": false,
507
- "attribute": "justify-content",
508
- "defaultValue": "'start'"
509
- },
510
- "padding": {
511
- "type": "string",
512
- "mutable": false,
513
- "complexType": {
514
- "original": "string",
515
- "resolved": "string",
516
- "references": {}
517
- },
518
- "required": false,
519
- "optional": true,
520
- "docs": {
521
- "tags": [],
522
- "text": "Padding inside the box (CSS value like '8px', '1rem')"
523
- },
524
- "getter": false,
525
- "setter": false,
526
- "reflect": false,
527
- "attribute": "padding"
528
- },
529
- "order": {
530
- "type": "number",
531
- "mutable": false,
532
- "complexType": {
533
- "original": "number",
534
- "resolved": "number",
535
- "references": {}
536
- },
537
- "required": false,
538
- "optional": true,
539
- "docs": {
540
- "tags": [],
541
- "text": "Order in the flex container (lower values come first)"
542
- },
543
- "getter": false,
544
- "setter": false,
545
- "reflect": false,
546
- "attribute": "order"
547
- },
548
- "displayFlex": {
549
- "type": "boolean",
550
- "mutable": false,
551
- "complexType": {
552
- "original": "boolean",
553
- "resolved": "boolean",
554
- "references": {}
555
- },
556
- "required": false,
557
- "optional": false,
558
- "docs": {
559
- "tags": [],
560
- "text": "Whether to display box content as flex (for internal alignment)"
561
- },
562
- "getter": false,
563
- "setter": false,
564
- "reflect": false,
565
- "attribute": "display-flex",
566
- "defaultValue": "false"
567
- },
568
- "innerDirection": {
569
- "type": "string",
570
- "mutable": false,
571
- "complexType": {
572
- "original": "'horizontal' | 'vertical'",
573
- "resolved": "\"horizontal\" | \"vertical\"",
574
- "references": {}
575
- },
576
- "required": false,
577
- "optional": false,
578
- "docs": {
579
- "tags": [{
580
- "name": "allowedValues",
581
- "text": "horizontal | vertical"
582
- }],
583
- "text": "Direction of internal flex layout when displayFlex is true"
584
- },
585
- "getter": false,
586
- "setter": false,
587
- "reflect": false,
588
- "attribute": "inner-direction",
589
- "defaultValue": "'vertical'"
590
- },
591
- "innerGap": {
592
- "type": "string",
593
- "mutable": false,
594
- "complexType": {
595
- "original": "string",
596
- "resolved": "string",
597
- "references": {}
598
- },
599
- "required": false,
600
- "optional": true,
601
- "docs": {
602
- "tags": [],
603
- "text": "Gap between internal flex items when displayFlex is true"
604
- },
605
- "getter": false,
606
- "setter": false,
607
- "reflect": false,
608
- "attribute": "inner-gap"
609
- }
610
- };
611
- }
612
- static get elementRef() { return "el"; }
613
- }
614
- //# sourceMappingURL=le-box.js.map
@@ -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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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"]}