le-kit 0.5.4 → 0.6.0

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 (2) hide show
  1. package/LLM_CONTEXT.md +95 -1
  2. package/package.json +1 -1
package/LLM_CONTEXT.md CHANGED
@@ -5,6 +5,8 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
5
5
  ## Table of Contents
6
6
 
7
7
  - [le-bar](#le-bar)
8
+ - [le-bento-grid](#le-bento-grid)
9
+ - [le-bento-tile](#le-bento-tile)
8
10
  - [le-box](#le-box)
9
11
  - [le-breadcrumbs](#le-breadcrumbs)
10
12
  - [le-button](#le-button)
@@ -19,6 +21,7 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
19
21
  - [le-header](#le-header)
20
22
  - [le-header-placeholder](#le-header-placeholder)
21
23
  - [le-icon](#le-icon)
24
+ - [le-item](#le-item)
22
25
  - [le-multiselect](#le-multiselect)
23
26
  - [le-navigation](#le-navigation)
24
27
  - [le-number-input](#le-number-input)
@@ -80,6 +83,83 @@ row and handles overflow according to the `overflow` prop.
80
83
 
81
84
  ---
82
85
 
86
+ ## <le-bento-grid>
87
+
88
+ A responsive bento-style CSS grid container.
89
+
90
+ `le-bento-grid` creates a dense auto-filling grid using `auto-fill` with
91
+ `minmax()` columns. Pair it with `le-bento-tile` children that declare
92
+ how many columns and rows they should span.
93
+
94
+ All sizing props can also be controlled purely via CSS custom properties —
95
+ useful when you want to configure from a stylesheet or a parent component.
96
+ If a prop is set, it writes the corresponding CSS custom property as an
97
+ inline style (which overrides any external stylesheet value).
98
+
99
+ ### Properties
100
+
101
+ | Name | Type | Default | Description |
102
+ |------|------|---------|-------------|
103
+ | `columnMinWidth` | `number \| undefined` | | Minimum column width in pixels (maps to the `min` of CSS `minmax()`). Controls how narrow a column can be before wrapping. |
104
+ | `columnMaxWidth` | `number \| undefined` | | Maximum column width in pixels (maps to the `max` of CSS `minmax()`). The grid stops adding columns when dividing `max-width` by this value. |
105
+ | `minColumns` | `number \| undefined` | | Minimum number of columns before overflow. Sets component `min-width` as: `columnMinWidth * minColumns + gap * (minColumns - 1)`. |
106
+ | `maxColumns` | `number \| undefined` | | Maximum number of columns before the grid wraps. When set, this takes precedence over `maxWidth` and computes the grid's effective maximum width as: `maxColumns * columnMaxWidth + (maxColumns - 1) * gap` This is useful when you want an explicit column cap without manually accounting for the gaps between tracks. |
107
+ | `maxWidth` | `number \| undefined` | | Maximum overall width of the grid in pixels. Ignored when `maxColumns` is set. |
108
+ | `rowHeight` | `number \| undefined` | | Height of each row unit in pixels. A tile with `rows="2"` will be `2 × rowHeight + gap` tall. |
109
+ | `gap` | `number \| undefined` | | Gap between tiles in pixels. |
110
+
111
+ ### Slots
112
+
113
+ | Name | Description |
114
+ |------|-------------|
115
+ | Default | Accepts `le-bento-tile` elements (or any block-level content) |
116
+
117
+ ### CSS Variables
118
+
119
+ | Name | Description |
120
+ |------|-------------|
121
+ | `--le-bento-col-min` | Minimum column track width (default 200px) |
122
+ | `--le-bento-col-max` | Maximum column track width (default 250px) |
123
+ | `--le-bento-min-columns` | Minimum number of columns before overflow |
124
+ | `--le-bento-max-columns` | Maximum number of columns before wrapping |
125
+ | `--le-bento-row-height` | Height of each row unit (default 110px) |
126
+ | `--le-bento-gap` | Gap between tiles (default 12px) |
127
+ | `--le-bento-max-width` | Maximum grid container width (default none) |
128
+
129
+ ---
130
+
131
+ ## <le-bento-tile>
132
+
133
+ A single tile for use inside `le-bento-grid`.
134
+
135
+ Declares how many columns and rows it should span in the bento grid.
136
+ Visual appearance (border-radius, shadow) is controlled via CSS custom
137
+ properties so themes can override them.
138
+
139
+ ### Properties
140
+
141
+ | Name | Type | Default | Description |
142
+ |------|------|---------|-------------|
143
+ | `cols` | `number` | `1` | Number of grid columns this tile should span. |
144
+ | `rows` | `number` | `1` | Number of grid rows this tile should span. |
145
+
146
+ ### Slots
147
+
148
+ | Name | Description |
149
+ |------|-------------|
150
+ | Default | Content displayed inside the tile |
151
+
152
+ ### CSS Variables
153
+
154
+ | Name | Description |
155
+ |------|-------------|
156
+ | `--le-bento-tile-radius` | Border radius (default: var(--le-radius-xl, 0.75rem)) |
157
+ | `--le-bento-tile-shadow` | Box shadow (default: subtle multi-layer shadow) |
158
+ | `--le-bento-tile-bg` | Background color (default: transparent) |
159
+ | `--le-bento-tile-padding` | Inner padding (default: 0) |
160
+
161
+ ---
162
+
83
163
  ## <le-box>
84
164
 
85
165
  A flexible box component for use as a flex item within le-stack.
@@ -526,6 +606,7 @@ Slots:
526
606
  | `revealOnScroll` | `string \| undefined` | | Sticky-only reveal behavior (hide on scroll down, show on scroll up). - missing/false: disabled - true/empty attribute: enabled with default threshold (16) - number (as string): enabled and used as threshold |
527
607
  | `shrinkOffset` | `string \| undefined` | | Shrink trigger. - missing/0: disabled - number (px): shrink when scrollY >= that value (but never before header height) - css var name (e.g. --foo): shrink when scrollY >= resolved var value - selector (e.g. .page-title): shrink when that element scrolls out of view above the viewport |
528
608
  | `expandOnHover` | `boolean` | `false` | If true, expand the header when hovered |
609
+ | `layout` | `'default' \| 'space-between' \| undefined` | `'default'` | Layout Type - default is three cells in the grid: start, title, end - space-between will use the start and end slots but put space between them and hide the title slot |
529
610
 
530
611
  ### Events
531
612
 
@@ -564,7 +645,7 @@ Slots:
564
645
  | `--le-header-height` | Base height (main row) |
565
646
  | `--le-header-height-condensed` | Condensed height when shrunk |
566
647
  | `--le-header-transition` | Transition timing |
567
- | `--le-header-z` | Z-index (fixed mode) |
648
+ | `--le-z-header` | Z-index (fixed mode) |
568
649
 
569
650
  ---
570
651
 
@@ -595,6 +676,16 @@ The header component updates that variable when it renders.
595
676
 
596
677
  ---
597
678
 
679
+ ## <le-item>
680
+
681
+ ### Properties
682
+
683
+ | Name | Type | Default | Description |
684
+ |------|------|---------|-------------|
685
+ | `el` | `HTMLElement` | | |
686
+
687
+ ---
688
+
598
689
  ## <le-multiselect>
599
690
 
600
691
  A multiselect component for selecting multiple options.
@@ -905,6 +996,9 @@ Perfect for toggling between a small set of related options.
905
996
  | `side` | `LeSidePanelSide` | `'start'` | Which side the panel is attached to. |
906
997
  | `collapseAt` | `string \| undefined` | | Width breakpoint (in px or a CSS var like `--le-breakpoint-md`) below which the panel enters "narrow" mode. |
907
998
  | `narrowBehavior` | `LeSidePanelNarrowBehavior` | `'overlay'` | Behavior when in narrow mode. |
999
+ | `sticky` | `boolean` | `false` | Whether the panel is sticky (remains visible when scrolling). |
1000
+ | `top` | `number \| 'under-header'` | `0` | Top offset for the sticky panel. |
1001
+ | `fullHeight` | `boolean` | `false` | Whether the sticky panel should stretch to full height. |
908
1002
  | `open` | `boolean` | `false` | Panel open state for narrow mode. - overlay: controls modal drawer visibility - push: controls whether panel is shown (non-modal) |
909
1003
  | `collapsed` | `boolean` | `false` | Panel collapsed state for wide mode (fully hidden). |
910
1004
  | `panelWidth` | `number` | `280` | Default panel width in pixels. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "le-kit",
3
- "version": "0.5.4",
3
+ "version": "0.6.0",
4
4
  "description": "Themable web components library with CMS admin mode support",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",