le-kit 0.1.7 → 0.1.8

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 (198) hide show
  1. package/custom-elements.json +877 -877
  2. package/dist/cjs/index-D7B9TPh8.js.map +1 -1
  3. package/dist/collection/components/le-popup/le-popup.js +7 -7
  4. package/dist/components/index.js.map +1 -1
  5. package/dist/core/cjs/index-D7B9TPh8.js +1835 -0
  6. package/dist/core/cjs/index-D7B9TPh8.js.map +1 -0
  7. package/dist/core/cjs/index.cjs.js +119 -0
  8. package/dist/core/cjs/index.cjs.js.map +1 -0
  9. package/dist/core/cjs/le-box.cjs.entry.js +184 -0
  10. package/dist/core/cjs/le-box.entry.cjs.js.map +1 -0
  11. package/dist/core/cjs/le-button.cjs.entry.js +92 -0
  12. package/dist/core/cjs/le-button.entry.cjs.js.map +1 -0
  13. package/dist/core/cjs/le-card.cjs.entry.js +29 -0
  14. package/dist/core/cjs/le-card.entry.cjs.js.map +1 -0
  15. package/dist/core/cjs/le-checkbox.cjs.entry.js +61 -0
  16. package/dist/core/cjs/le-checkbox.entry.cjs.js.map +1 -0
  17. package/dist/core/cjs/le-kit.cjs.js +25 -0
  18. package/dist/core/cjs/le-kit.cjs.js.map +1 -0
  19. package/dist/core/cjs/le-number-input.cjs.entry.js +202 -0
  20. package/dist/core/cjs/le-number-input.entry.cjs.js.map +1 -0
  21. package/dist/core/cjs/le-popover.cjs.entry.js +348 -0
  22. package/dist/core/cjs/le-popover.entry.cjs.js.map +1 -0
  23. package/dist/core/cjs/le-popup.cjs.entry.js +212 -0
  24. package/dist/core/cjs/le-popup.entry.cjs.js.map +1 -0
  25. package/dist/core/cjs/le-round-progress.cjs.entry.js +106 -0
  26. package/dist/core/cjs/le-round-progress.entry.cjs.js.map +1 -0
  27. package/dist/core/cjs/le-stack.cjs.entry.js +135 -0
  28. package/dist/core/cjs/le-stack.entry.cjs.js.map +1 -0
  29. package/dist/core/cjs/le-string-input.cjs.entry.js +95 -0
  30. package/dist/core/cjs/le-string-input.entry.cjs.js.map +1 -0
  31. package/dist/core/cjs/le-text.cjs.entry.js +335 -0
  32. package/dist/core/cjs/le-text.entry.cjs.js.map +1 -0
  33. package/dist/core/cjs/le-turntable.cjs.entry.js +139 -0
  34. package/dist/core/cjs/le-turntable.entry.cjs.js.map +1 -0
  35. package/dist/core/cjs/loader.cjs.js +13 -0
  36. package/dist/core/cjs/loader.cjs.js.map +1 -0
  37. package/dist/core/cjs/utils-DrsoID-a.js +152 -0
  38. package/dist/core/cjs/utils-DrsoID-a.js.map +1 -0
  39. package/dist/core/collection/collection-manifest.json +24 -0
  40. package/dist/core/collection/components/le-box/le-box.default.css +37 -0
  41. package/dist/core/collection/components/le-box/le-box.js +614 -0
  42. package/dist/core/collection/components/le-box/le-box.js.map +1 -0
  43. package/dist/core/collection/components/le-button/le-button.default.css +263 -0
  44. package/dist/core/collection/components/le-button/le-button.js +368 -0
  45. package/dist/core/collection/components/le-button/le-button.js.map +1 -0
  46. package/dist/core/collection/components/le-card/le-card.default.css +74 -0
  47. package/dist/core/collection/components/le-card/le-card.js +102 -0
  48. package/dist/core/collection/components/le-card/le-card.js.map +1 -0
  49. package/dist/core/collection/components/le-checkbox/le-checkbox.css +93 -0
  50. package/dist/core/collection/components/le-checkbox/le-checkbox.js +192 -0
  51. package/dist/core/collection/components/le-checkbox/le-checkbox.js.map +1 -0
  52. package/dist/core/collection/components/le-number-input/le-number-input.css +135 -0
  53. package/dist/core/collection/components/le-number-input/le-number-input.js +515 -0
  54. package/dist/core/collection/components/le-number-input/le-number-input.js.map +1 -0
  55. package/dist/core/collection/components/le-popover/le-popover.css +143 -0
  56. package/dist/core/collection/components/le-popover/le-popover.js +693 -0
  57. package/dist/core/collection/components/le-popover/le-popover.js.map +1 -0
  58. package/dist/core/collection/components/le-popup/le-popup.api.js +101 -0
  59. package/dist/core/collection/components/le-popup/le-popup.api.js.map +1 -0
  60. package/dist/core/collection/components/le-popup/le-popup.css +222 -0
  61. package/dist/core/collection/components/le-popup/le-popup.js +596 -0
  62. package/dist/core/collection/components/le-popup/le-popup.js.map +1 -0
  63. package/dist/core/collection/components/le-round-progress/le-round-progress.css +34 -0
  64. package/dist/core/collection/components/le-round-progress/le-round-progress.js +184 -0
  65. package/dist/core/collection/components/le-round-progress/le-round-progress.js.map +1 -0
  66. package/dist/core/collection/components/le-stack/le-stack.default.css +37 -0
  67. package/dist/core/collection/components/le-stack/le-stack.js +389 -0
  68. package/dist/core/collection/components/le-stack/le-stack.js.map +1 -0
  69. package/dist/core/collection/components/le-string-input/le-string-input.css +83 -0
  70. package/dist/core/collection/components/le-string-input/le-string-input.js +359 -0
  71. package/dist/core/collection/components/le-string-input/le-string-input.js.map +1 -0
  72. package/dist/core/collection/components/le-text/le-text.default.css +169 -0
  73. package/dist/core/collection/components/le-text/le-text.js +475 -0
  74. package/dist/core/collection/components/le-text/le-text.js.map +1 -0
  75. package/dist/core/collection/components/le-turntable/le-turntable.css +10 -0
  76. package/dist/core/collection/components/le-turntable/le-turntable.js +210 -0
  77. package/dist/core/collection/components/le-turntable/le-turntable.js.map +1 -0
  78. package/dist/core/collection/global/app.js +167 -0
  79. package/dist/core/collection/global/app.js.map +1 -0
  80. package/dist/core/collection/index.js +15 -0
  81. package/dist/core/collection/index.js.map +1 -0
  82. package/dist/core/collection/types/blocks.js +115 -0
  83. package/dist/core/collection/types/blocks.js.map +1 -0
  84. package/dist/core/collection/types/options.js +2 -0
  85. package/dist/core/collection/types/options.js.map +1 -0
  86. package/dist/core/collection/utils/utils.js +141 -0
  87. package/dist/core/collection/utils/utils.js.map +1 -0
  88. package/dist/core/esm/index-PS-3Rz-c.js +1818 -0
  89. package/dist/core/esm/index-PS-3Rz-c.js.map +1 -0
  90. package/dist/core/esm/index.js +106 -0
  91. package/dist/core/esm/index.js.map +1 -0
  92. package/dist/core/esm/le-box.entry.js +182 -0
  93. package/dist/core/esm/le-box.entry.js.map +1 -0
  94. package/dist/core/esm/le-button.entry.js +90 -0
  95. package/dist/core/esm/le-button.entry.js.map +1 -0
  96. package/dist/core/esm/le-card.entry.js +27 -0
  97. package/dist/core/esm/le-card.entry.js.map +1 -0
  98. package/dist/core/esm/le-checkbox.entry.js +59 -0
  99. package/dist/core/esm/le-checkbox.entry.js.map +1 -0
  100. package/dist/core/esm/le-kit.js +21 -0
  101. package/dist/core/esm/le-kit.js.map +1 -0
  102. package/dist/core/esm/le-number-input.entry.js +200 -0
  103. package/dist/core/esm/le-number-input.entry.js.map +1 -0
  104. package/dist/core/esm/le-popover.entry.js +346 -0
  105. package/dist/core/esm/le-popover.entry.js.map +1 -0
  106. package/dist/core/esm/le-popup.entry.js +210 -0
  107. package/dist/core/esm/le-popup.entry.js.map +1 -0
  108. package/dist/core/esm/le-round-progress.entry.js +104 -0
  109. package/dist/core/esm/le-round-progress.entry.js.map +1 -0
  110. package/dist/core/esm/le-stack.entry.js +133 -0
  111. package/dist/core/esm/le-stack.entry.js.map +1 -0
  112. package/dist/core/esm/le-string-input.entry.js +93 -0
  113. package/dist/core/esm/le-string-input.entry.js.map +1 -0
  114. package/dist/core/esm/le-text.entry.js +333 -0
  115. package/dist/core/esm/le-text.entry.js.map +1 -0
  116. package/dist/core/esm/le-turntable.entry.js +137 -0
  117. package/dist/core/esm/le-turntable.entry.js.map +1 -0
  118. package/dist/core/esm/loader.js +11 -0
  119. package/dist/core/esm/loader.js.map +1 -0
  120. package/dist/core/esm/utils-lgjSfQP0.js +146 -0
  121. package/dist/core/esm/utils-lgjSfQP0.js.map +1 -0
  122. package/dist/core/index.cjs.js +1 -0
  123. package/dist/core/index.js +1 -0
  124. package/dist/core/le-kit/index.esm.js +2 -0
  125. package/dist/core/le-kit/index.esm.js.map +1 -0
  126. package/dist/core/le-kit/le-box.entry.esm.js.map +1 -0
  127. package/dist/core/le-kit/le-button.entry.esm.js.map +1 -0
  128. package/dist/core/le-kit/le-card.entry.esm.js.map +1 -0
  129. package/dist/core/le-kit/le-checkbox.entry.esm.js.map +1 -0
  130. package/dist/core/le-kit/le-kit.css +1 -0
  131. package/dist/core/le-kit/le-kit.esm.js +2 -0
  132. package/dist/core/le-kit/le-kit.esm.js.map +1 -0
  133. package/dist/core/le-kit/le-number-input.entry.esm.js.map +1 -0
  134. package/dist/core/le-kit/le-popover.entry.esm.js.map +1 -0
  135. package/dist/core/le-kit/le-popup.entry.esm.js.map +1 -0
  136. package/dist/core/le-kit/le-round-progress.entry.esm.js.map +1 -0
  137. package/dist/core/le-kit/le-stack.entry.esm.js.map +1 -0
  138. package/dist/core/le-kit/le-string-input.entry.esm.js.map +1 -0
  139. package/dist/core/le-kit/le-text.entry.esm.js.map +1 -0
  140. package/dist/core/le-kit/le-turntable.entry.esm.js.map +1 -0
  141. package/dist/core/le-kit/loader.esm.js.map +1 -0
  142. package/dist/core/le-kit/p-1c5262eb.entry.js +2 -0
  143. package/dist/core/le-kit/p-1c5262eb.entry.js.map +1 -0
  144. package/dist/core/le-kit/p-32c08678.entry.js +2 -0
  145. package/dist/core/le-kit/p-32c08678.entry.js.map +1 -0
  146. package/dist/core/le-kit/p-38e7ec05.entry.js +2 -0
  147. package/dist/core/le-kit/p-38e7ec05.entry.js.map +1 -0
  148. package/dist/core/le-kit/p-4bf51acc.entry.js +2 -0
  149. package/dist/core/le-kit/p-4bf51acc.entry.js.map +1 -0
  150. package/dist/core/le-kit/p-86961f34.entry.js +2 -0
  151. package/dist/core/le-kit/p-86961f34.entry.js.map +1 -0
  152. package/dist/core/le-kit/p-9ee92c29.entry.js +2 -0
  153. package/dist/core/le-kit/p-9ee92c29.entry.js.map +1 -0
  154. package/dist/core/le-kit/p-DN2JVY-7.js +2 -0
  155. package/dist/core/le-kit/p-DN2JVY-7.js.map +1 -0
  156. package/dist/core/le-kit/p-PS-3Rz-c.js +3 -0
  157. package/dist/core/le-kit/p-PS-3Rz-c.js.map +1 -0
  158. package/dist/core/le-kit/p-a07048f8.entry.js +2 -0
  159. package/dist/core/le-kit/p-a07048f8.entry.js.map +1 -0
  160. package/dist/core/le-kit/p-a24b042d.entry.js +2 -0
  161. package/dist/core/le-kit/p-a24b042d.entry.js.map +1 -0
  162. package/dist/core/le-kit/p-bbc9e13e.entry.js +2 -0
  163. package/dist/core/le-kit/p-bbc9e13e.entry.js.map +1 -0
  164. package/dist/core/le-kit/p-c4223c60.entry.js +2 -0
  165. package/dist/core/le-kit/p-c4223c60.entry.js.map +1 -0
  166. package/dist/core/le-kit/p-dcf1343d.entry.js +2 -0
  167. package/dist/core/le-kit/p-dcf1343d.entry.js.map +1 -0
  168. package/dist/core/le-kit/p-fb4e68e0.entry.js +2 -0
  169. package/dist/core/le-kit/p-fb4e68e0.entry.js.map +1 -0
  170. package/dist/core/loader/cdn.js +1 -0
  171. package/dist/core/loader/index.cjs.js +1 -0
  172. package/dist/core/loader/index.d.ts +24 -0
  173. package/dist/core/loader/index.es2017.js +1 -0
  174. package/dist/core/loader/index.js +2 -0
  175. package/dist/core/types/components/le-box/le-box.d.ts +111 -0
  176. package/dist/core/types/components/le-button/le-button.d.ts +78 -0
  177. package/dist/core/types/components/le-card/le-card.d.ts +37 -0
  178. package/dist/core/types/components/le-checkbox/le-checkbox.d.ts +46 -0
  179. package/dist/core/types/components/le-number-input/le-number-input.d.ts +106 -0
  180. package/dist/core/types/components/le-popover/le-popover.d.ts +109 -0
  181. package/dist/core/types/components/le-popup/le-popup.api.d.ts +73 -0
  182. package/dist/core/types/components/le-popup/le-popup.d.ts +122 -0
  183. package/dist/core/types/components/le-round-progress/le-round-progress.d.ts +37 -0
  184. package/dist/core/types/components/le-stack/le-stack.d.ts +73 -0
  185. package/dist/core/types/components/le-string-input/le-string-input.d.ts +83 -0
  186. package/dist/core/types/components/le-text/le-text.d.ts +141 -0
  187. package/dist/core/types/components/le-turntable/le-turntable.d.ts +55 -0
  188. package/dist/core/types/components.d.ts +1752 -0
  189. package/dist/core/types/global/app.d.ts +73 -0
  190. package/dist/core/types/index.d.ts +15 -0
  191. package/dist/core/types/stencil-public-runtime.d.ts +1756 -0
  192. package/dist/core/types/types/blocks.d.ts +136 -0
  193. package/dist/core/types/types/options.d.ts +124 -0
  194. package/dist/core/types/utils/utils.d.ts +54 -0
  195. package/dist/docs.json +8 -8
  196. package/dist/esm/index-PS-3Rz-c.js.map +1 -1
  197. package/dist/le-kit/p-PS-3Rz-c.js.map +1 -1
  198. package/package.json +19 -2
@@ -0,0 +1,614 @@
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: '8a8db08fe79a0d6e135ea788a7447060b746bdc2', style: hostStyle, class: hostClass }, h("div", { key: 'c3b5aa4e4135d957c3a55bf4f76cadb395c6bb5b', class: "box", part: "box" }, h("div", { key: 'eebba217d0026a00d71541a898200445d5966393', class: "content", part: "content", style: contentStyle }, h("slot", { key: '7ebf91579244542495d5e7a01540ba61fb7aa080' })))));
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"le-box.js","sourceRoot":"","sources":["../../../src-core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AAE,IAAI,CAAC,WAAW;SACnD,CAAC,CAAC;QAEH,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;YAEpC,4DAAK,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK;gBACzB,4DAAK,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,YAAY;oBAEnD,8DAAa,CAEX,CACF,CAEH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 \n <div class=\"box\" part=\"box\">\n <div class=\"content\" part=\"content\" style={contentStyle}>\n \n <slot></slot>\n \n </div>\n </div>\n \n </Host>\n );\n }\n}\n"]}