le-kit 0.1.5 → 0.1.6
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.
- package/dist/cjs/index-WzJ78D5H.js +1803 -0
- package/dist/cjs/index-WzJ78D5H.js.map +1 -0
- package/dist/cjs/index.cjs.js +117 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/le-box.cjs.entry.js +184 -0
- package/dist/cjs/le-box.entry.cjs.js.map +1 -0
- package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +1 -0
- package/dist/cjs/le-button_6.cjs.entry.js +1202 -0
- package/dist/cjs/le-card.cjs.entry.js +29 -0
- package/dist/cjs/le-card.entry.cjs.js.map +1 -0
- package/dist/cjs/le-kit.cjs.js +25 -0
- package/dist/cjs/le-kit.cjs.js.map +1 -0
- package/dist/cjs/le-number-input.cjs.entry.js +202 -0
- package/dist/cjs/le-number-input.entry.cjs.js.map +1 -0
- package/dist/cjs/le-popup.cjs.entry.js +212 -0
- package/dist/cjs/le-popup.entry.cjs.js.map +1 -0
- package/dist/cjs/le-round-progress.cjs.entry.js +106 -0
- package/dist/cjs/le-round-progress.entry.cjs.js.map +1 -0
- package/dist/cjs/le-stack.cjs.entry.js +135 -0
- package/dist/cjs/le-stack.entry.cjs.js.map +1 -0
- package/dist/cjs/le-text.cjs.entry.js +335 -0
- package/dist/cjs/le-text.entry.cjs.js.map +1 -0
- package/dist/cjs/le-turntable.cjs.entry.js +139 -0
- package/dist/cjs/le-turntable.entry.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/utils-CBjH2E8A.js +152 -0
- package/dist/cjs/utils-CBjH2E8A.js.map +1 -0
- package/dist/collection/assets/.gitkeep +1 -0
- package/dist/collection/assets/custom-elements.json +4305 -0
- package/dist/collection/collection-manifest.json +26 -0
- package/dist/collection/components/le-box/le-box.default.css +37 -0
- package/dist/collection/components/le-box/le-box.js +614 -0
- package/dist/collection/components/le-box/le-box.js.map +1 -0
- package/dist/collection/components/le-button/le-button.default.css +263 -0
- package/dist/collection/components/le-button/le-button.js +368 -0
- package/dist/collection/components/le-button/le-button.js.map +1 -0
- package/dist/collection/components/le-card/le-card.default.css +74 -0
- package/dist/collection/components/le-card/le-card.js +102 -0
- package/dist/collection/components/le-card/le-card.js.map +1 -0
- package/dist/collection/components/le-checkbox/le-checkbox.css +93 -0
- package/dist/collection/components/le-checkbox/le-checkbox.js +192 -0
- package/dist/collection/components/le-checkbox/le-checkbox.js.map +1 -0
- package/dist/collection/components/le-component/le-component.css +189 -0
- package/dist/{le-kit/le-component.entry.js → collection/components/le-component/le-component.js} +137 -20
- package/dist/collection/components/le-component/le-component.js.map +1 -0
- package/dist/collection/components/le-number-input/le-number-input.css +135 -0
- package/dist/collection/components/le-number-input/le-number-input.js +515 -0
- package/dist/collection/components/le-number-input/le-number-input.js.map +1 -0
- package/dist/collection/components/le-popover/le-popover.css +143 -0
- package/dist/collection/components/le-popover/le-popover.js +693 -0
- package/dist/collection/components/le-popover/le-popover.js.map +1 -0
- package/dist/collection/components/le-popup/le-popup.api.js +101 -0
- package/dist/collection/components/le-popup/le-popup.api.js.map +1 -0
- package/dist/collection/components/le-popup/le-popup.css +222 -0
- package/dist/collection/components/le-popup/le-popup.js +596 -0
- package/dist/collection/components/le-popup/le-popup.js.map +1 -0
- package/dist/collection/components/le-round-progress/le-round-progress.css +34 -0
- package/dist/collection/components/le-round-progress/le-round-progress.js +184 -0
- package/dist/collection/components/le-round-progress/le-round-progress.js.map +1 -0
- package/dist/collection/components/le-slot/le-slot.default.css +222 -0
- package/dist/{le-kit/le-slot.entry.js → collection/components/le-slot/le-slot.js} +266 -16
- package/dist/collection/components/le-slot/le-slot.js.map +1 -0
- package/dist/collection/components/le-stack/le-stack.default.css +37 -0
- package/dist/collection/components/le-stack/le-stack.js +389 -0
- package/dist/collection/components/le-stack/le-stack.js.map +1 -0
- package/dist/collection/components/le-string-input/le-string-input.css +83 -0
- package/dist/collection/components/le-string-input/le-string-input.js +359 -0
- package/dist/collection/components/le-string-input/le-string-input.js.map +1 -0
- package/dist/collection/components/le-text/le-text.default.css +169 -0
- package/dist/collection/components/le-text/le-text.js +475 -0
- package/dist/collection/components/le-text/le-text.js.map +1 -0
- package/dist/collection/components/le-turntable/le-turntable.css +10 -0
- package/dist/collection/components/le-turntable/le-turntable.js +210 -0
- package/dist/collection/components/le-turntable/le-turntable.js.map +1 -0
- package/dist/collection/global/app.js +130 -0
- package/dist/collection/global/app.js.map +1 -0
- package/dist/collection/index.js +15 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/types/blocks.js +115 -0
- package/dist/collection/types/blocks.js.map +1 -0
- package/dist/collection/types/options.js +2 -0
- package/dist/collection/types/options.js.map +1 -0
- package/dist/collection/utils/utils.js +141 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.js +127 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/le-box.js +256 -0
- package/dist/components/le-box.js.map +1 -0
- package/dist/components/le-button.js +9 -0
- package/dist/components/le-button.js.map +1 -0
- package/dist/components/le-button2.js +1411 -0
- package/dist/components/le-button2.js.map +1 -0
- package/dist/components/le-card.js +83 -0
- package/dist/components/le-card.js.map +1 -0
- package/dist/components/le-checkbox.js +9 -0
- package/dist/components/le-checkbox.js.map +1 -0
- package/dist/components/le-component.js +9 -0
- package/dist/components/le-component.js.map +1 -0
- package/dist/components/le-number-input.js +271 -0
- package/dist/components/le-number-input.js.map +1 -0
- package/dist/components/le-popover.js +9 -0
- package/dist/components/le-popover.js.map +1 -0
- package/dist/{le-kit/le-popover.entry.js → components/le-popover2.js} +45 -9
- package/dist/components/le-popover2.js.map +1 -0
- package/dist/components/le-popup.js +279 -0
- package/dist/components/le-popup.js.map +1 -0
- package/dist/components/le-round-progress.js +135 -0
- package/dist/components/le-round-progress.js.map +1 -0
- package/dist/components/le-slot.js +9 -0
- package/dist/components/le-slot.js.map +1 -0
- package/dist/components/le-stack.js +198 -0
- package/dist/components/le-stack.js.map +1 -0
- package/dist/components/le-string-input.js +9 -0
- package/dist/components/le-string-input.js.map +1 -0
- package/dist/components/le-text.js +398 -0
- package/dist/components/le-text.js.map +1 -0
- package/dist/components/le-turntable.js +164 -0
- package/dist/components/le-turntable.js.map +1 -0
- package/dist/docs.d.ts +443 -0
- package/dist/docs.json +5185 -0
- package/dist/esm/index-CdjJ98OT.js +1787 -0
- package/dist/esm/index-CdjJ98OT.js.map +1 -0
- package/dist/esm/index.js +106 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/{le-kit → esm}/le-box.entry.js +3 -3
- package/dist/esm/le-box.entry.js.map +1 -0
- package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +1 -0
- package/dist/esm/le-button_6.entry.js +1195 -0
- package/dist/{le-kit → esm}/le-card.entry.js +3 -3
- package/dist/esm/le-card.entry.js.map +1 -0
- package/dist/esm/le-kit.js +21 -0
- package/dist/esm/le-kit.js.map +1 -0
- package/dist/{le-kit → esm}/le-number-input.entry.js +5 -5
- package/dist/esm/le-number-input.entry.js.map +1 -0
- package/dist/{le-kit → esm}/le-popup.entry.js +6 -6
- package/dist/esm/le-popup.entry.js.map +1 -0
- package/dist/{le-kit → esm}/le-round-progress.entry.js +2 -2
- package/dist/esm/le-round-progress.entry.js.map +1 -0
- package/dist/{le-kit → esm}/le-stack.entry.js +3 -3
- package/dist/esm/le-stack.entry.js.map +1 -0
- package/dist/{le-kit → esm}/le-text.entry.js +3 -3
- package/dist/esm/le-text.entry.js.map +1 -0
- package/dist/{le-kit → esm}/le-turntable.entry.js +2 -2
- package/dist/esm/le-turntable.entry.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/{le-kit/utils-FDOApZ53.js → esm/utils-CzfSUhYB.js} +3 -3
- package/dist/{le-kit/utils-FDOApZ53.js.map → esm/utils-CzfSUhYB.js.map} +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/le-kit/index.esm.js +2 -116
- package/dist/le-kit/index.esm.js.map +1 -1
- package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-kit.css +1 -1010
- package/dist/le-kit/le-kit.esm.js +2 -48
- package/dist/le-kit/le-kit.esm.js.map +1 -1
- package/dist/le-kit/p-0633b3ab.entry.js +2 -0
- package/dist/le-kit/p-0633b3ab.entry.js.map +1 -0
- package/dist/le-kit/p-1452a995.entry.js +2 -0
- package/dist/le-kit/p-1452a995.entry.js.map +1 -0
- package/dist/le-kit/p-220528ee.entry.js +2 -0
- package/dist/le-kit/p-220528ee.entry.js.map +1 -0
- package/dist/le-kit/p-32ff3dbe.entry.js +2 -0
- package/dist/le-kit/p-32ff3dbe.entry.js.map +1 -0
- package/dist/le-kit/p-3551598e.entry.js +2 -0
- package/dist/le-kit/p-3551598e.entry.js.map +1 -0
- package/dist/le-kit/p-722899f0.entry.js +2 -0
- package/dist/le-kit/p-722899f0.entry.js.map +1 -0
- package/dist/le-kit/p-95764888.entry.js +2 -0
- package/dist/le-kit/p-95764888.entry.js.map +1 -0
- package/dist/le-kit/p-CdjJ98OT.js +3 -0
- package/dist/le-kit/p-CdjJ98OT.js.map +1 -0
- package/dist/le-kit/p-CvDc0yWN.js +2 -0
- package/dist/le-kit/p-CvDc0yWN.js.map +1 -0
- package/dist/le-kit/p-bc20e30d.entry.js +2 -0
- package/dist/le-kit/p-bc20e30d.entry.js.map +1 -0
- package/dist/le-kit/p-d32eddad.entry.js +2 -0
- package/dist/le-kit/p-d32eddad.entry.js.map +1 -0
- package/dist/themes/base.css +89 -0
- package/dist/themes/dark.css +100 -0
- package/dist/themes/default.css +108 -0
- package/dist/themes/gradient.css +100 -0
- package/dist/themes/index.css +413 -0
- package/dist/themes/minimal.css +100 -0
- package/dist/themes/warm.css +100 -0
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/le-kit/index-Da-89pOc.js +0 -4522
- package/dist/le-kit/index-Da-89pOc.js.map +0 -1
- package/dist/le-kit/le-button.entry.esm.js.map +0 -1
- package/dist/le-kit/le-button.entry.js +0 -90
- package/dist/le-kit/le-checkbox.entry.esm.js.map +0 -1
- package/dist/le-kit/le-checkbox.entry.js +0 -59
- package/dist/le-kit/le-component.entry.esm.js.map +0 -1
- package/dist/le-kit/le-popover.entry.esm.js.map +0 -1
- package/dist/le-kit/le-slot.entry.esm.js.map +0 -1
- package/dist/le-kit/le-string-input.entry.esm.js.map +0 -1
- package/dist/le-kit/le-string-input.entry.js +0 -93
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"components/le-popup/le-popup.js",
|
|
4
|
+
"components/le-box/le-box.js",
|
|
5
|
+
"components/le-button/le-button.js",
|
|
6
|
+
"components/le-card/le-card.js",
|
|
7
|
+
"components/le-checkbox/le-checkbox.js",
|
|
8
|
+
"components/le-component/le-component.js",
|
|
9
|
+
"components/le-number-input/le-number-input.js",
|
|
10
|
+
"components/le-popover/le-popover.js",
|
|
11
|
+
"components/le-round-progress/le-round-progress.js",
|
|
12
|
+
"components/le-slot/le-slot.js",
|
|
13
|
+
"components/le-stack/le-stack.js",
|
|
14
|
+
"components/le-string-input/le-string-input.js",
|
|
15
|
+
"components/le-text/le-text.js",
|
|
16
|
+
"components/le-turntable/le-turntable.js"
|
|
17
|
+
],
|
|
18
|
+
"compiler": {
|
|
19
|
+
"name": "@stencil/core",
|
|
20
|
+
"version": "4.38.3",
|
|
21
|
+
"typescriptVersion": "5.9.3"
|
|
22
|
+
},
|
|
23
|
+
"collections": [],
|
|
24
|
+
"bundles": [],
|
|
25
|
+
"global": "global/app.js"
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* le-box default styles
|
|
3
|
+
*
|
|
4
|
+
* Flex item properties are applied inline via hostStyle.
|
|
5
|
+
* This CSS handles visual styling and theming.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
display: block;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([hidden]) {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Box container - full size by default */
|
|
18
|
+
.box {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Content wrapper */
|
|
25
|
+
.content {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
background: var(--le-box-bg, transparent);
|
|
30
|
+
border-radius: var(--le-box-border-radius, 0);
|
|
31
|
+
padding: var(--le-box-padding, 0);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* When displayFlex is enabled, ensure content stretches */
|
|
35
|
+
:host(.display-flex) .content {
|
|
36
|
+
min-height: 100%;
|
|
37
|
+
}
|
|
@@ -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: '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
|