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.
- package/dist/le-kit/assets/custom-elements.json +4305 -0
- package/dist/le-kit/index-Da-89pOc.js +4522 -0
- package/dist/le-kit/{index-D21JjI31.js.map → index-Da-89pOc.js.map} +1 -1
- package/dist/le-kit/index.esm.js +116 -2
- package/dist/le-kit/index.esm.js.map +1 -1
- package/dist/{esm → le-kit}/le-box.entry.js +3 -3
- package/dist/le-kit/le-button.entry.esm.js.map +1 -0
- package/dist/le-kit/le-button.entry.js +90 -0
- package/dist/{esm → le-kit}/le-card.entry.js +3 -3
- package/dist/le-kit/le-checkbox.entry.esm.js.map +1 -0
- package/dist/le-kit/le-checkbox.entry.js +59 -0
- package/dist/le-kit/le-component.entry.esm.js.map +1 -0
- package/dist/{collection/components/le-component/le-component.js → le-kit/le-component.entry.js} +19 -134
- package/dist/le-kit/le-kit.css +1010 -1
- package/dist/le-kit/le-kit.esm.js +48 -2
- package/dist/le-kit/le-kit.esm.js.map +1 -1
- package/dist/{esm → le-kit}/le-number-input.entry.js +5 -5
- package/dist/le-kit/le-popover.entry.esm.js.map +1 -0
- package/dist/{components/le-popover2.js → le-kit/le-popover.entry.js} +9 -45
- package/dist/{esm → le-kit}/le-popup.entry.js +6 -6
- package/dist/{esm → le-kit}/le-round-progress.entry.js +2 -2
- package/dist/le-kit/le-slot.entry.esm.js.map +1 -0
- package/dist/{collection/components/le-slot/le-slot.js → le-kit/le-slot.entry.js} +30 -279
- package/dist/{esm → le-kit}/le-stack.entry.js +3 -3
- package/dist/le-kit/le-string-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-string-input.entry.js +93 -0
- package/dist/{esm → le-kit}/le-text.entry.js +3 -3
- package/dist/{esm → le-kit}/le-turntable.entry.js +2 -2
- package/dist/{esm/utils-CJLZrrdC.js → le-kit/utils-FDOApZ53.js} +3 -3
- package/dist/le-kit/{utils-apol-Xc_.js.map → utils-FDOApZ53.js.map} +1 -1
- package/package.json +3 -54
- package/readme.md +2 -35
- package/dist/admin/index.d.ts +0 -23
- package/dist/admin/index.js +0 -74
- package/dist/admin/loader.js +0 -9
- package/dist/cjs/index-CO4npcak.js +0 -1796
- package/dist/cjs/index-CO4npcak.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -117
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/le-box.cjs.entry.js +0 -184
- package/dist/cjs/le-box.entry.cjs.js.map +0 -1
- package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +0 -1
- package/dist/cjs/le-button_6.cjs.entry.js +0 -1199
- package/dist/cjs/le-card.cjs.entry.js +0 -29
- package/dist/cjs/le-card.entry.cjs.js.map +0 -1
- package/dist/cjs/le-kit.cjs.js +0 -25
- package/dist/cjs/le-kit.cjs.js.map +0 -1
- package/dist/cjs/le-number-input.cjs.entry.js +0 -202
- package/dist/cjs/le-number-input.entry.cjs.js.map +0 -1
- package/dist/cjs/le-popup.cjs.entry.js +0 -212
- package/dist/cjs/le-popup.entry.cjs.js.map +0 -1
- package/dist/cjs/le-round-progress.cjs.entry.js +0 -106
- package/dist/cjs/le-round-progress.entry.cjs.js.map +0 -1
- package/dist/cjs/le-stack.cjs.entry.js +0 -135
- package/dist/cjs/le-stack.entry.cjs.js.map +0 -1
- package/dist/cjs/le-text.cjs.entry.js +0 -335
- package/dist/cjs/le-text.entry.cjs.js.map +0 -1
- package/dist/cjs/le-turntable.cjs.entry.js +0 -139
- package/dist/cjs/le-turntable.entry.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/utils-BeT0iyCQ.js +0 -152
- package/dist/cjs/utils-BeT0iyCQ.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -26
- package/dist/collection/components/le-box/le-box.default.css +0 -37
- package/dist/collection/components/le-box/le-box.js +0 -614
- package/dist/collection/components/le-box/le-box.js.map +0 -1
- package/dist/collection/components/le-button/le-button.default.css +0 -263
- package/dist/collection/components/le-button/le-button.js +0 -368
- package/dist/collection/components/le-button/le-button.js.map +0 -1
- package/dist/collection/components/le-card/le-card.default.css +0 -74
- package/dist/collection/components/le-card/le-card.js +0 -102
- package/dist/collection/components/le-card/le-card.js.map +0 -1
- package/dist/collection/components/le-checkbox/le-checkbox.css +0 -93
- package/dist/collection/components/le-checkbox/le-checkbox.js +0 -192
- package/dist/collection/components/le-checkbox/le-checkbox.js.map +0 -1
- package/dist/collection/components/le-component/le-component.css +0 -189
- package/dist/collection/components/le-component/le-component.js.map +0 -1
- package/dist/collection/components/le-number-input/le-number-input.css +0 -135
- package/dist/collection/components/le-number-input/le-number-input.js +0 -515
- package/dist/collection/components/le-number-input/le-number-input.js.map +0 -1
- package/dist/collection/components/le-popover/le-popover.css +0 -143
- package/dist/collection/components/le-popover/le-popover.js +0 -693
- package/dist/collection/components/le-popover/le-popover.js.map +0 -1
- package/dist/collection/components/le-popup/le-popup.api.js +0 -101
- package/dist/collection/components/le-popup/le-popup.api.js.map +0 -1
- package/dist/collection/components/le-popup/le-popup.css +0 -222
- package/dist/collection/components/le-popup/le-popup.js +0 -596
- package/dist/collection/components/le-popup/le-popup.js.map +0 -1
- package/dist/collection/components/le-round-progress/le-round-progress.css +0 -34
- package/dist/collection/components/le-round-progress/le-round-progress.js +0 -184
- package/dist/collection/components/le-round-progress/le-round-progress.js.map +0 -1
- package/dist/collection/components/le-slot/le-slot.default.css +0 -222
- package/dist/collection/components/le-slot/le-slot.js.map +0 -1
- package/dist/collection/components/le-stack/le-stack.default.css +0 -37
- package/dist/collection/components/le-stack/le-stack.js +0 -389
- package/dist/collection/components/le-stack/le-stack.js.map +0 -1
- package/dist/collection/components/le-string-input/le-string-input.css +0 -83
- package/dist/collection/components/le-string-input/le-string-input.js +0 -359
- package/dist/collection/components/le-string-input/le-string-input.js.map +0 -1
- package/dist/collection/components/le-text/le-text.default.css +0 -169
- package/dist/collection/components/le-text/le-text.js +0 -475
- package/dist/collection/components/le-text/le-text.js.map +0 -1
- package/dist/collection/components/le-turntable/le-turntable.css +0 -10
- package/dist/collection/components/le-turntable/le-turntable.js +0 -210
- package/dist/collection/components/le-turntable/le-turntable.js.map +0 -1
- package/dist/collection/global/app.js +0 -130
- package/dist/collection/global/app.js.map +0 -1
- package/dist/collection/index-admin.js +0 -27
- package/dist/collection/index-admin.js.map +0 -1
- package/dist/collection/index-core.js +0 -25
- package/dist/collection/index-core.js.map +0 -1
- package/dist/collection/index.js +0 -15
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/types/blocks.js +0 -115
- package/dist/collection/types/blocks.js.map +0 -1
- package/dist/collection/types/options.js +0 -2
- package/dist/collection/types/options.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -141
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/index.js +0 -127
- package/dist/components/index.js.map +0 -1
- package/dist/components/le-box.js +0 -256
- package/dist/components/le-box.js.map +0 -1
- package/dist/components/le-button.js +0 -9
- package/dist/components/le-button.js.map +0 -1
- package/dist/components/le-button2.js +0 -1408
- package/dist/components/le-button2.js.map +0 -1
- package/dist/components/le-card.js +0 -83
- package/dist/components/le-card.js.map +0 -1
- package/dist/components/le-checkbox.js +0 -9
- package/dist/components/le-checkbox.js.map +0 -1
- package/dist/components/le-component.js +0 -9
- package/dist/components/le-component.js.map +0 -1
- package/dist/components/le-number-input.js +0 -271
- package/dist/components/le-number-input.js.map +0 -1
- package/dist/components/le-popover.js +0 -9
- package/dist/components/le-popover.js.map +0 -1
- package/dist/components/le-popover2.js.map +0 -1
- package/dist/components/le-popup.js +0 -279
- package/dist/components/le-popup.js.map +0 -1
- package/dist/components/le-round-progress.js +0 -135
- package/dist/components/le-round-progress.js.map +0 -1
- package/dist/components/le-slot.js +0 -9
- package/dist/components/le-slot.js.map +0 -1
- package/dist/components/le-stack.js +0 -198
- package/dist/components/le-stack.js.map +0 -1
- package/dist/components/le-string-input.js +0 -9
- package/dist/components/le-string-input.js.map +0 -1
- package/dist/components/le-text.js +0 -398
- package/dist/components/le-text.js.map +0 -1
- package/dist/components/le-turntable.js +0 -164
- package/dist/components/le-turntable.js.map +0 -1
- package/dist/core/components/index.d.ts +0 -64
- package/dist/core/components/index.js +0 -125
- package/dist/core/components/index.js.map +0 -1
- package/dist/core/components/le-box.d.ts +0 -11
- package/dist/core/components/le-box.js +0 -246
- package/dist/core/components/le-box.js.map +0 -1
- package/dist/core/components/le-button.d.ts +0 -11
- package/dist/core/components/le-button.js +0 -9
- package/dist/core/components/le-button.js.map +0 -1
- package/dist/core/components/le-button2.js +0 -1358
- package/dist/core/components/le-button2.js.map +0 -1
- package/dist/core/components/le-card.d.ts +0 -11
- package/dist/core/components/le-card.js +0 -73
- package/dist/core/components/le-card.js.map +0 -1
- package/dist/core/components/le-checkbox.d.ts +0 -11
- package/dist/core/components/le-checkbox.js +0 -9
- package/dist/core/components/le-checkbox.js.map +0 -1
- package/dist/core/components/le-component.js.map +0 -1
- package/dist/core/components/le-number-input.d.ts +0 -11
- package/dist/core/components/le-number-input.js +0 -261
- package/dist/core/components/le-number-input.js.map +0 -1
- package/dist/core/components/le-popover.d.ts +0 -11
- package/dist/core/components/le-popover.js +0 -9
- package/dist/core/components/le-popover.js.map +0 -1
- package/dist/core/components/le-popover2.js +0 -382
- package/dist/core/components/le-popover2.js.map +0 -1
- package/dist/core/components/le-popup.d.ts +0 -11
- package/dist/core/components/le-popup.js +0 -269
- package/dist/core/components/le-popup.js.map +0 -1
- package/dist/core/components/le-round-progress.d.ts +0 -11
- package/dist/core/components/le-round-progress.js +0 -135
- package/dist/core/components/le-round-progress.js.map +0 -1
- package/dist/core/components/le-slot.js.map +0 -1
- package/dist/core/components/le-stack.d.ts +0 -11
- package/dist/core/components/le-stack.js +0 -188
- package/dist/core/components/le-stack.js.map +0 -1
- package/dist/core/components/le-string-input.d.ts +0 -11
- package/dist/core/components/le-string-input.js +0 -9
- package/dist/core/components/le-string-input.js.map +0 -1
- package/dist/core/components/le-text.d.ts +0 -11
- package/dist/core/components/le-text.js +0 -388
- package/dist/core/components/le-text.js.map +0 -1
- package/dist/core/components/le-turntable.d.ts +0 -11
- package/dist/core/components/le-turntable.js +0 -164
- package/dist/core/components/le-turntable.js.map +0 -1
- package/dist/core/index.d.ts +0 -21
- package/dist/core/index.js +0 -68
- package/dist/core/loader.js +0 -9
- package/dist/core/stencil-runtime.js +0 -1
- package/dist/docs.d.ts +0 -443
- package/dist/docs.json +0 -5185
- package/dist/esm/index-D71TXvJa.js +0 -1781
- package/dist/esm/index-D71TXvJa.js.map +0 -1
- package/dist/esm/index.js +0 -106
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/le-box.entry.js.map +0 -1
- package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +0 -1
- package/dist/esm/le-button_6.entry.js +0 -1192
- package/dist/esm/le-card.entry.js.map +0 -1
- package/dist/esm/le-kit.js +0 -21
- package/dist/esm/le-kit.js.map +0 -1
- package/dist/esm/le-number-input.entry.js.map +0 -1
- package/dist/esm/le-popup.entry.js.map +0 -1
- package/dist/esm/le-round-progress.entry.js.map +0 -1
- package/dist/esm/le-stack.entry.js.map +0 -1
- package/dist/esm/le-text.entry.js.map +0 -1
- package/dist/esm/le-turntable.entry.js.map +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/utils-CJLZrrdC.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +0 -1
- package/dist/le-kit/p-024a764e.entry.js +0 -2
- package/dist/le-kit/p-024a764e.entry.js.map +0 -1
- package/dist/le-kit/p-073cf0b9.entry.js +0 -2
- package/dist/le-kit/p-073cf0b9.entry.js.map +0 -1
- package/dist/le-kit/p-0955b105.entry.js +0 -2
- package/dist/le-kit/p-0955b105.entry.js.map +0 -1
- package/dist/le-kit/p-18d79ee2.entry.js +0 -2
- package/dist/le-kit/p-18d79ee2.entry.js.map +0 -1
- package/dist/le-kit/p-4b1d3b6d.entry.js +0 -2
- package/dist/le-kit/p-4b1d3b6d.entry.js.map +0 -1
- package/dist/le-kit/p-79d179bd.entry.js +0 -2
- package/dist/le-kit/p-79d179bd.entry.js.map +0 -1
- package/dist/le-kit/p-D71TXvJa.js +0 -3
- package/dist/le-kit/p-D71TXvJa.js.map +0 -1
- package/dist/le-kit/p-c8a9288e.entry.js +0 -2
- package/dist/le-kit/p-c8a9288e.entry.js.map +0 -1
- package/dist/le-kit/p-cfc35bd3.entry.js +0 -2
- package/dist/le-kit/p-cfc35bd3.entry.js.map +0 -1
- package/dist/le-kit/p-d04da1f5.entry.js +0 -2
- package/dist/le-kit/p-d04da1f5.entry.js.map +0 -1
- package/dist/le-kit/p-qIai5-eB.js +0 -2
- package/dist/le-kit/p-qIai5-eB.js.map +0 -1
- package/dist/themes/base.css +0 -89
- package/dist/themes/dark.css +0 -100
- package/dist/themes/default.css +0 -108
- package/dist/themes/gradient.css +0 -100
- package/dist/themes/index.css +0 -413
- package/dist/themes/minimal.css +0 -100
- package/dist/themes/warm.css +0 -100
- package/dist/types/index-admin.d.ts +0 -29
- package/dist/types/index-core.d.ts +0 -27
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { classnames } from "../../utils/utils";
|
|
3
|
-
/**
|
|
4
|
-
* A flexible stack layout component using CSS flexbox.
|
|
5
|
-
*
|
|
6
|
-
* `le-stack` arranges its children in a row (horizontal) or column (vertical)
|
|
7
|
-
* with configurable spacing, alignment, and wrapping behavior. Perfect for
|
|
8
|
-
* creating responsive layouts.
|
|
9
|
-
*
|
|
10
|
-
* @slot - Default slot for stack items (le-box components recommended)
|
|
11
|
-
*
|
|
12
|
-
* @cssprop --le-stack-gap - Gap between items (defaults to var(--le-space-md))
|
|
13
|
-
*
|
|
14
|
-
* @csspart stack - The main stack container
|
|
15
|
-
*
|
|
16
|
-
* @cmsEditable true
|
|
17
|
-
* @cmsCategory Layout
|
|
18
|
-
*/
|
|
19
|
-
export class LeStack {
|
|
20
|
-
el;
|
|
21
|
-
/**
|
|
22
|
-
* Direction of the stack layout
|
|
23
|
-
* @allowedValues horizontal | vertical
|
|
24
|
-
*/
|
|
25
|
-
direction = 'horizontal';
|
|
26
|
-
/**
|
|
27
|
-
* Gap between items (CSS value like '8px', '1rem', 'var(--le-space-md)')
|
|
28
|
-
*/
|
|
29
|
-
gap;
|
|
30
|
-
/**
|
|
31
|
-
* Alignment of items on the cross axis
|
|
32
|
-
* @allowedValues start | center | end | stretch | baseline
|
|
33
|
-
*/
|
|
34
|
-
align = 'stretch';
|
|
35
|
-
/**
|
|
36
|
-
* Distribution of items on the main axis
|
|
37
|
-
* @allowedValues start | center | end | space-between | space-around | space-evenly
|
|
38
|
-
*/
|
|
39
|
-
justify = 'start';
|
|
40
|
-
/**
|
|
41
|
-
* Whether items should wrap to multiple lines
|
|
42
|
-
*/
|
|
43
|
-
wrap = false;
|
|
44
|
-
/**
|
|
45
|
-
* Alignment of wrapped lines (only applies when wrap is true)
|
|
46
|
-
* @allowedValues start | center | end | stretch | space-between | space-around
|
|
47
|
-
*/
|
|
48
|
-
alignContent = 'stretch';
|
|
49
|
-
/**
|
|
50
|
-
* Whether to reverse the order of items
|
|
51
|
-
*/
|
|
52
|
-
reverse = false;
|
|
53
|
-
/**
|
|
54
|
-
* Maximum number of items allowed in the stack (for CMS validation)
|
|
55
|
-
* @min 1
|
|
56
|
-
*/
|
|
57
|
-
maxItems;
|
|
58
|
-
/**
|
|
59
|
-
* Whether the stack should take full width of its container
|
|
60
|
-
*/
|
|
61
|
-
fullWidth = false;
|
|
62
|
-
/**
|
|
63
|
-
* Whether the stack should take full height of its container
|
|
64
|
-
*/
|
|
65
|
-
fullHeight = false;
|
|
66
|
-
/**
|
|
67
|
-
* Padding inside the stack container (CSS value)
|
|
68
|
-
*/
|
|
69
|
-
padding;
|
|
70
|
-
getFlexDirection() {
|
|
71
|
-
const base = this.direction === 'vertical' ? 'column' : 'row';
|
|
72
|
-
return this.reverse ? `${base}-reverse` : base;
|
|
73
|
-
}
|
|
74
|
-
getAlignItems() {
|
|
75
|
-
const alignMap = {
|
|
76
|
-
start: 'flex-start',
|
|
77
|
-
center: 'center',
|
|
78
|
-
end: 'flex-end',
|
|
79
|
-
stretch: 'stretch',
|
|
80
|
-
baseline: 'baseline',
|
|
81
|
-
};
|
|
82
|
-
return alignMap[this.align] || 'stretch';
|
|
83
|
-
}
|
|
84
|
-
getJustifyContent() {
|
|
85
|
-
const justifyMap = {
|
|
86
|
-
start: 'flex-start',
|
|
87
|
-
center: 'center',
|
|
88
|
-
end: 'flex-end',
|
|
89
|
-
'space-between': 'space-between',
|
|
90
|
-
'space-around': 'space-around',
|
|
91
|
-
'space-evenly': 'space-evenly',
|
|
92
|
-
};
|
|
93
|
-
return justifyMap[this.justify] || 'flex-start';
|
|
94
|
-
}
|
|
95
|
-
getAlignContent() {
|
|
96
|
-
const alignContentMap = {
|
|
97
|
-
start: 'flex-start',
|
|
98
|
-
center: 'center',
|
|
99
|
-
end: 'flex-end',
|
|
100
|
-
stretch: 'stretch',
|
|
101
|
-
'space-between': 'space-between',
|
|
102
|
-
'space-around': 'space-around',
|
|
103
|
-
};
|
|
104
|
-
return alignContentMap[this.alignContent] || 'stretch';
|
|
105
|
-
}
|
|
106
|
-
render() {
|
|
107
|
-
const style = {
|
|
108
|
-
display: 'flex',
|
|
109
|
-
flexDirection: this.getFlexDirection(),
|
|
110
|
-
alignItems: this.getAlignItems(),
|
|
111
|
-
justifyContent: this.getJustifyContent(),
|
|
112
|
-
flexWrap: this.wrap ? 'wrap' : 'nowrap',
|
|
113
|
-
};
|
|
114
|
-
if (this.wrap) {
|
|
115
|
-
style.alignContent = this.getAlignContent();
|
|
116
|
-
}
|
|
117
|
-
if (this.gap) {
|
|
118
|
-
style.gap = this.gap;
|
|
119
|
-
}
|
|
120
|
-
if (this.padding) {
|
|
121
|
-
style.padding = this.padding;
|
|
122
|
-
}
|
|
123
|
-
// if (this.fullWidth) {
|
|
124
|
-
// style.width = '100%';
|
|
125
|
-
// }
|
|
126
|
-
// if (this.fullHeight) {
|
|
127
|
-
// style.height = '100%';
|
|
128
|
-
// }
|
|
129
|
-
const hostClass = classnames(`direction-${this.direction}`, {
|
|
130
|
-
'wrap': this.wrap,
|
|
131
|
-
'reverse': this.reverse,
|
|
132
|
-
'full-width': this.fullWidth,
|
|
133
|
-
'full-height': this.fullHeight,
|
|
134
|
-
});
|
|
135
|
-
// Slot style for admin mode - make items display in the same direction
|
|
136
|
-
const slotStyle = `display: flex; flex-direction: ${this.getFlexDirection()}; gap: ${this.gap || 'var(--le-space-md)'}; flex-wrap: ${this.wrap ? 'wrap' : 'nowrap'}; justify-content: ${this.getJustifyContent()}; align-items: ${this.getAlignItems()};`;
|
|
137
|
-
return (h("le-component", { key: 'e1547512915e47e4c5ddbcbcbd3971579e45a140', component: "le-stack", hostClass: hostClass }, h("div", { key: '61a4fd57c61c56a8abac0ae2348e6e48034efc4d', class: "stack", part: "stack", style: style }, h("le-slot", { key: '0ef0f996ce0efcb20a47171197d82e5b326c7e8c', name: "", description: `Items arranged ${this.direction}ly${this.maxItems ? ` (max ${this.maxItems})` : ''}`, type: "slot", "allowed-components": "le-text,le-box,le-card,le-button,le-stack", slotStyle: slotStyle }, h("slot", { key: 'f41f351d8b6dbdaf20756e9bc317a35a0424fc6c' })))));
|
|
138
|
-
}
|
|
139
|
-
static get is() { return "le-stack"; }
|
|
140
|
-
static get encapsulation() { return "shadow"; }
|
|
141
|
-
static get originalStyleUrls() {
|
|
142
|
-
return {
|
|
143
|
-
"$": ["le-stack.default.css"]
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
static get styleUrls() {
|
|
147
|
-
return {
|
|
148
|
-
"$": ["le-stack.default.css"]
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
static get properties() {
|
|
152
|
-
return {
|
|
153
|
-
"direction": {
|
|
154
|
-
"type": "string",
|
|
155
|
-
"mutable": false,
|
|
156
|
-
"complexType": {
|
|
157
|
-
"original": "'horizontal' | 'vertical'",
|
|
158
|
-
"resolved": "\"horizontal\" | \"vertical\"",
|
|
159
|
-
"references": {}
|
|
160
|
-
},
|
|
161
|
-
"required": false,
|
|
162
|
-
"optional": false,
|
|
163
|
-
"docs": {
|
|
164
|
-
"tags": [{
|
|
165
|
-
"name": "allowedValues",
|
|
166
|
-
"text": "horizontal | vertical"
|
|
167
|
-
}],
|
|
168
|
-
"text": "Direction of the stack layout"
|
|
169
|
-
},
|
|
170
|
-
"getter": false,
|
|
171
|
-
"setter": false,
|
|
172
|
-
"reflect": false,
|
|
173
|
-
"attribute": "direction",
|
|
174
|
-
"defaultValue": "'horizontal'"
|
|
175
|
-
},
|
|
176
|
-
"gap": {
|
|
177
|
-
"type": "string",
|
|
178
|
-
"mutable": false,
|
|
179
|
-
"complexType": {
|
|
180
|
-
"original": "string",
|
|
181
|
-
"resolved": "string",
|
|
182
|
-
"references": {}
|
|
183
|
-
},
|
|
184
|
-
"required": false,
|
|
185
|
-
"optional": true,
|
|
186
|
-
"docs": {
|
|
187
|
-
"tags": [],
|
|
188
|
-
"text": "Gap between items (CSS value like '8px', '1rem', 'var(--le-space-md)')"
|
|
189
|
-
},
|
|
190
|
-
"getter": false,
|
|
191
|
-
"setter": false,
|
|
192
|
-
"reflect": false,
|
|
193
|
-
"attribute": "gap"
|
|
194
|
-
},
|
|
195
|
-
"align": {
|
|
196
|
-
"type": "string",
|
|
197
|
-
"mutable": false,
|
|
198
|
-
"complexType": {
|
|
199
|
-
"original": "'start' | 'center' | 'end' | 'stretch' | 'baseline'",
|
|
200
|
-
"resolved": "\"baseline\" | \"center\" | \"end\" | \"start\" | \"stretch\"",
|
|
201
|
-
"references": {}
|
|
202
|
-
},
|
|
203
|
-
"required": false,
|
|
204
|
-
"optional": false,
|
|
205
|
-
"docs": {
|
|
206
|
-
"tags": [{
|
|
207
|
-
"name": "allowedValues",
|
|
208
|
-
"text": "start | center | end | stretch | baseline"
|
|
209
|
-
}],
|
|
210
|
-
"text": "Alignment of items on the cross axis"
|
|
211
|
-
},
|
|
212
|
-
"getter": false,
|
|
213
|
-
"setter": false,
|
|
214
|
-
"reflect": false,
|
|
215
|
-
"attribute": "align",
|
|
216
|
-
"defaultValue": "'stretch'"
|
|
217
|
-
},
|
|
218
|
-
"justify": {
|
|
219
|
-
"type": "string",
|
|
220
|
-
"mutable": false,
|
|
221
|
-
"complexType": {
|
|
222
|
-
"original": "'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly'",
|
|
223
|
-
"resolved": "\"center\" | \"end\" | \"space-around\" | \"space-between\" | \"space-evenly\" | \"start\"",
|
|
224
|
-
"references": {}
|
|
225
|
-
},
|
|
226
|
-
"required": false,
|
|
227
|
-
"optional": false,
|
|
228
|
-
"docs": {
|
|
229
|
-
"tags": [{
|
|
230
|
-
"name": "allowedValues",
|
|
231
|
-
"text": "start | center | end | space-between | space-around | space-evenly"
|
|
232
|
-
}],
|
|
233
|
-
"text": "Distribution of items on the main axis"
|
|
234
|
-
},
|
|
235
|
-
"getter": false,
|
|
236
|
-
"setter": false,
|
|
237
|
-
"reflect": false,
|
|
238
|
-
"attribute": "justify",
|
|
239
|
-
"defaultValue": "'start'"
|
|
240
|
-
},
|
|
241
|
-
"wrap": {
|
|
242
|
-
"type": "boolean",
|
|
243
|
-
"mutable": false,
|
|
244
|
-
"complexType": {
|
|
245
|
-
"original": "boolean",
|
|
246
|
-
"resolved": "boolean",
|
|
247
|
-
"references": {}
|
|
248
|
-
},
|
|
249
|
-
"required": false,
|
|
250
|
-
"optional": false,
|
|
251
|
-
"docs": {
|
|
252
|
-
"tags": [],
|
|
253
|
-
"text": "Whether items should wrap to multiple lines"
|
|
254
|
-
},
|
|
255
|
-
"getter": false,
|
|
256
|
-
"setter": false,
|
|
257
|
-
"reflect": false,
|
|
258
|
-
"attribute": "wrap",
|
|
259
|
-
"defaultValue": "false"
|
|
260
|
-
},
|
|
261
|
-
"alignContent": {
|
|
262
|
-
"type": "string",
|
|
263
|
-
"mutable": false,
|
|
264
|
-
"complexType": {
|
|
265
|
-
"original": "'start' | 'center' | 'end' | 'stretch' | 'space-between' | 'space-around'",
|
|
266
|
-
"resolved": "\"center\" | \"end\" | \"space-around\" | \"space-between\" | \"start\" | \"stretch\"",
|
|
267
|
-
"references": {}
|
|
268
|
-
},
|
|
269
|
-
"required": false,
|
|
270
|
-
"optional": false,
|
|
271
|
-
"docs": {
|
|
272
|
-
"tags": [{
|
|
273
|
-
"name": "allowedValues",
|
|
274
|
-
"text": "start | center | end | stretch | space-between | space-around"
|
|
275
|
-
}],
|
|
276
|
-
"text": "Alignment of wrapped lines (only applies when wrap is true)"
|
|
277
|
-
},
|
|
278
|
-
"getter": false,
|
|
279
|
-
"setter": false,
|
|
280
|
-
"reflect": false,
|
|
281
|
-
"attribute": "align-content",
|
|
282
|
-
"defaultValue": "'stretch'"
|
|
283
|
-
},
|
|
284
|
-
"reverse": {
|
|
285
|
-
"type": "boolean",
|
|
286
|
-
"mutable": false,
|
|
287
|
-
"complexType": {
|
|
288
|
-
"original": "boolean",
|
|
289
|
-
"resolved": "boolean",
|
|
290
|
-
"references": {}
|
|
291
|
-
},
|
|
292
|
-
"required": false,
|
|
293
|
-
"optional": false,
|
|
294
|
-
"docs": {
|
|
295
|
-
"tags": [],
|
|
296
|
-
"text": "Whether to reverse the order of items"
|
|
297
|
-
},
|
|
298
|
-
"getter": false,
|
|
299
|
-
"setter": false,
|
|
300
|
-
"reflect": false,
|
|
301
|
-
"attribute": "reverse",
|
|
302
|
-
"defaultValue": "false"
|
|
303
|
-
},
|
|
304
|
-
"maxItems": {
|
|
305
|
-
"type": "number",
|
|
306
|
-
"mutable": false,
|
|
307
|
-
"complexType": {
|
|
308
|
-
"original": "number",
|
|
309
|
-
"resolved": "number",
|
|
310
|
-
"references": {}
|
|
311
|
-
},
|
|
312
|
-
"required": false,
|
|
313
|
-
"optional": true,
|
|
314
|
-
"docs": {
|
|
315
|
-
"tags": [{
|
|
316
|
-
"name": "min",
|
|
317
|
-
"text": "1"
|
|
318
|
-
}],
|
|
319
|
-
"text": "Maximum number of items allowed in the stack (for CMS validation)"
|
|
320
|
-
},
|
|
321
|
-
"getter": false,
|
|
322
|
-
"setter": false,
|
|
323
|
-
"reflect": false,
|
|
324
|
-
"attribute": "max-items"
|
|
325
|
-
},
|
|
326
|
-
"fullWidth": {
|
|
327
|
-
"type": "boolean",
|
|
328
|
-
"mutable": false,
|
|
329
|
-
"complexType": {
|
|
330
|
-
"original": "boolean",
|
|
331
|
-
"resolved": "boolean",
|
|
332
|
-
"references": {}
|
|
333
|
-
},
|
|
334
|
-
"required": false,
|
|
335
|
-
"optional": false,
|
|
336
|
-
"docs": {
|
|
337
|
-
"tags": [],
|
|
338
|
-
"text": "Whether the stack should take full width of its container"
|
|
339
|
-
},
|
|
340
|
-
"getter": false,
|
|
341
|
-
"setter": false,
|
|
342
|
-
"reflect": false,
|
|
343
|
-
"attribute": "full-width",
|
|
344
|
-
"defaultValue": "false"
|
|
345
|
-
},
|
|
346
|
-
"fullHeight": {
|
|
347
|
-
"type": "boolean",
|
|
348
|
-
"mutable": false,
|
|
349
|
-
"complexType": {
|
|
350
|
-
"original": "boolean",
|
|
351
|
-
"resolved": "boolean",
|
|
352
|
-
"references": {}
|
|
353
|
-
},
|
|
354
|
-
"required": false,
|
|
355
|
-
"optional": false,
|
|
356
|
-
"docs": {
|
|
357
|
-
"tags": [],
|
|
358
|
-
"text": "Whether the stack should take full height of its container"
|
|
359
|
-
},
|
|
360
|
-
"getter": false,
|
|
361
|
-
"setter": false,
|
|
362
|
-
"reflect": false,
|
|
363
|
-
"attribute": "full-height",
|
|
364
|
-
"defaultValue": "false"
|
|
365
|
-
},
|
|
366
|
-
"padding": {
|
|
367
|
-
"type": "string",
|
|
368
|
-
"mutable": false,
|
|
369
|
-
"complexType": {
|
|
370
|
-
"original": "string",
|
|
371
|
-
"resolved": "string",
|
|
372
|
-
"references": {}
|
|
373
|
-
},
|
|
374
|
-
"required": false,
|
|
375
|
-
"optional": true,
|
|
376
|
-
"docs": {
|
|
377
|
-
"tags": [],
|
|
378
|
-
"text": "Padding inside the stack container (CSS value)"
|
|
379
|
-
},
|
|
380
|
-
"getter": false,
|
|
381
|
-
"setter": false,
|
|
382
|
-
"reflect": false,
|
|
383
|
-
"attribute": "padding"
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
static get elementRef() { return "el"; }
|
|
388
|
-
}
|
|
389
|
-
//# sourceMappingURL=le-stack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"le-stack.js","sourceRoot":"","sources":["../../../src/components/le-stack/le-stack.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Prop, h, Element } from '@stencil/core';\nimport { classnames } from '../../utils/utils';\n\n/**\n * A flexible stack layout component using CSS flexbox.\n *\n * `le-stack` arranges its children in a row (horizontal) or column (vertical)\n * with configurable spacing, alignment, and wrapping behavior. Perfect for\n * creating responsive layouts.\n *\n * @slot - Default slot for stack items (le-box components recommended)\n *\n * @cssprop --le-stack-gap - Gap between items (defaults to var(--le-space-md))\n *\n * @csspart stack - The main stack container\n *\n * @cmsEditable true\n * @cmsCategory Layout\n */\n@Component({\n tag: 'le-stack',\n styleUrl: 'le-stack.default.css',\n shadow: true,\n})\nexport class LeStack {\n @Element() el: HTMLElement;\n\n /**\n * Direction of the stack layout\n * @allowedValues horizontal | vertical\n */\n @Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n /**\n * Gap between items (CSS value like '8px', '1rem', 'var(--le-space-md)')\n */\n @Prop() gap?: string;\n\n /**\n * Alignment of items on the cross axis\n * @allowedValues start | center | end | stretch | baseline\n */\n @Prop() align: 'start' | 'center' | 'end' | 'stretch' | 'baseline' = 'stretch';\n\n /**\n * Distribution of items on the main axis\n * @allowedValues start | center | end | space-between | space-around | space-evenly\n */\n @Prop() justify: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly' = 'start';\n\n /**\n * Whether items should wrap to multiple lines\n */\n @Prop() wrap: boolean = false;\n\n /**\n * Alignment of wrapped lines (only applies when wrap is true)\n * @allowedValues start | center | end | stretch | space-between | space-around\n */\n @Prop() alignContent: 'start' | 'center' | 'end' | 'stretch' | 'space-between' | 'space-around' = 'stretch';\n\n /**\n * Whether to reverse the order of items\n */\n @Prop() reverse: boolean = false;\n\n /**\n * Maximum number of items allowed in the stack (for CMS validation)\n * @min 1\n */\n @Prop() maxItems?: number;\n\n /**\n * Whether the stack should take full width of its container\n */\n @Prop() fullWidth: boolean = false;\n\n /**\n * Whether the stack should take full height of its container\n */\n @Prop() fullHeight: boolean = false;\n\n /**\n * Padding inside the stack container (CSS value)\n */\n @Prop() padding?: string;\n\n private getFlexDirection(): string {\n const base = this.direction === 'vertical' ? 'column' : 'row';\n return this.reverse ? `${base}-reverse` : base;\n }\n\n private getAlignItems(): string {\n const alignMap: Record<string, string> = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n baseline: 'baseline',\n };\n return alignMap[this.align] || 'stretch';\n }\n\n private getJustifyContent(): string {\n const justifyMap: Record<string, string> = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n 'space-between': 'space-between',\n 'space-around': 'space-around',\n 'space-evenly': 'space-evenly',\n };\n return justifyMap[this.justify] || 'flex-start';\n }\n\n private getAlignContent(): string {\n const alignContentMap: Record<string, string> = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n 'space-between': 'space-between',\n 'space-around': 'space-around',\n };\n return alignContentMap[this.alignContent] || 'stretch';\n }\n\n render() {\n const style: { [key: string]: string } = {\n display: 'flex',\n flexDirection: this.getFlexDirection(),\n alignItems: this.getAlignItems(),\n justifyContent: this.getJustifyContent(),\n flexWrap: this.wrap ? 'wrap' : 'nowrap',\n };\n\n if (this.wrap) {\n style.alignContent = this.getAlignContent();\n }\n\n if (this.gap) {\n style.gap = this.gap;\n }\n\n if (this.padding) {\n style.padding = this.padding;\n }\n\n // if (this.fullWidth) {\n // style.width = '100%';\n // }\n\n // if (this.fullHeight) {\n // style.height = '100%';\n // }\n\n const hostClass = classnames(\n `direction-${this.direction}`,\n {\n 'wrap': this.wrap,\n 'reverse': this.reverse,\n 'full-width': this.fullWidth,\n 'full-height': this.fullHeight,\n }\n );\n\n // Slot style for admin mode - make items display in the same direction\n const slotStyle = `display: flex; flex-direction: ${this.getFlexDirection()}; gap: ${this.gap || 'var(--le-space-md)'}; flex-wrap: ${this.wrap ? 'wrap' : 'nowrap'}; justify-content: ${this.getJustifyContent()}; align-items: ${this.getAlignItems()};`;\n\n return (\n <le-component component=\"le-stack\" hostClass={hostClass}>\n <div class=\"stack\" part=\"stack\" style={style}>\n <le-slot\n name=\"\"\n description={`Items arranged ${this.direction}ly${this.maxItems ? ` (max ${this.maxItems})` : ''}`}\n type=\"slot\"\n allowed-components=\"le-text,le-box,le-card,le-button,le-stack\"\n slotStyle={slotStyle}\n >\n <slot></slot>\n </le-slot>\n </div>\n </le-component>\n );\n }\n}\n"]}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
--le-input-bg: var(--le-color-surface, #ffffff);
|
|
4
|
-
--le-input-color: var(--le-color-text-primary, #333333);
|
|
5
|
-
--le-input-border: var(--le-border-width, 2px) solid var(--le-color-border-input, #007bff);
|
|
6
|
-
--le-input-radius: var(--le-radius-sm, 4px);
|
|
7
|
-
--le-input-padding: 2px 6px;
|
|
8
|
-
--le-input-height: 1.5rem;
|
|
9
|
-
--le-input-label-color: var(--le-color-text-primary, #333333);
|
|
10
|
-
--le-input-desc-color: var(--le-color-text-secondary, #666666);
|
|
11
|
-
--le-input-placeholder-color: #999999;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.le-input-wrapper {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: 2px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.le-input-label {
|
|
21
|
-
display: block;
|
|
22
|
-
font-size: 0.9em;
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
color: var(--le-input-label-color);
|
|
25
|
-
margin-bottom: 2px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.le-input-container {
|
|
29
|
-
position: relative;
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
background: var(--le-input-bg);
|
|
33
|
-
border: var(--le-input-border);
|
|
34
|
-
border-radius: var(--le-input-radius);
|
|
35
|
-
transition: border-color 0.2s;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.le-input-container:focus-within {
|
|
39
|
-
outline: 2px solid var(--le-color-focus);
|
|
40
|
-
outline-offset: 2px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
:host([disabled]) .le-input-container {
|
|
45
|
-
opacity: 0.6;
|
|
46
|
-
background-color: rgba(0,0,0,0.05);
|
|
47
|
-
cursor: not-allowed;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
input {
|
|
51
|
-
flex: 1;
|
|
52
|
-
min-height: var(--le-input-height);
|
|
53
|
-
padding: var(--le-input-padding);
|
|
54
|
-
border: none;
|
|
55
|
-
background: transparent;
|
|
56
|
-
color: var(--le-input-color);
|
|
57
|
-
font-family: inherit;
|
|
58
|
-
font-size: inherit;
|
|
59
|
-
outline: none;
|
|
60
|
-
width: 100%;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
input::placeholder {
|
|
64
|
-
color: var(--le-input-placeholder-color);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.icon-start, .icon-end {
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
padding: 0 8px;
|
|
72
|
-
color: var(--le-input-desc-color);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.le-input-description {
|
|
76
|
-
font-size: 0.85em;
|
|
77
|
-
color: var(--le-input-desc-color);
|
|
78
|
-
margin-top: 2px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.le-input-description::has(le-slot > slot[name=description]:empty) {
|
|
82
|
-
display: none;
|
|
83
|
-
}
|