le-kit 0.7.0 → 0.7.1
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/LLM_CONTEXT.md +61 -0
- package/package.json +1 -1
package/LLM_CONTEXT.md
CHANGED
|
@@ -17,7 +17,9 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
|
|
|
17
17
|
- [le-collapse](#le-collapse)
|
|
18
18
|
- [le-combobox](#le-combobox)
|
|
19
19
|
- [le-component](#le-component)
|
|
20
|
+
- [le-context-menu](#le-context-menu)
|
|
20
21
|
- [le-current-heading](#le-current-heading)
|
|
22
|
+
- [le-drag-handle](#le-drag-handle)
|
|
21
23
|
- [le-dropdown-base](#le-dropdown-base)
|
|
22
24
|
- [le-header](#le-header)
|
|
23
25
|
- [le-header-placeholder](#le-header-placeholder)
|
|
@@ -268,6 +270,9 @@ A flexible button component with multiple variants and states.
|
|
|
268
270
|
| `motionPreset` | `'none' \| 'soft' \| 'fluid' \| 'spring' \| undefined` | | Optional per-instance motion preset override. |
|
|
269
271
|
| `iconOnly` | `string \| Node \| undefined` | | Icon only button image or emoji if this prop is set, the button will render only the icon slot |
|
|
270
272
|
| `iconStart` | `string \| Node \| undefined` | | Start icon image or emoji |
|
|
273
|
+
| `collapsible` | `boolean` | `false` | Enables responsive collapse to icon-only when the toolbar applies `collapse="icon"`. |
|
|
274
|
+
| `collapse` | `string \| undefined` | | Runtime collapse state controlled by responsive containers. |
|
|
275
|
+
| `collapsePriorityOffset` | `number` | `100` | Relative collapse priority offset for toolbar stepping. Higher numbers collapse earlier while keeping the button visible longer. |
|
|
271
276
|
| `iconEnd` | `string \| Node \| undefined` | | End icon image or emoji |
|
|
272
277
|
| `disabled` | `boolean` | `false` | Whether the button is disabled |
|
|
273
278
|
| `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | The button type attribute |
|
|
@@ -570,6 +575,39 @@ render() {
|
|
|
570
575
|
|
|
571
576
|
---
|
|
572
577
|
|
|
578
|
+
## <le-context-menu>
|
|
579
|
+
|
|
580
|
+
Context menu component that displays a vertical navigation menu
|
|
581
|
+
when the user right-clicks or long-presses on its children.
|
|
582
|
+
|
|
583
|
+
### Properties
|
|
584
|
+
|
|
585
|
+
| Name | Type | Default | Description |
|
|
586
|
+
|------|------|---------|-------------|
|
|
587
|
+
| `el` | `HTMLElement` | | |
|
|
588
|
+
| `open` | `boolean` | `false` | Whether the context menu is open. |
|
|
589
|
+
| `disabled` | `boolean` | `false` | Disables right-click and touch interactions. |
|
|
590
|
+
| `items` | `LeOption[] \| string` | `[]` | List of menu items represented as options. |
|
|
591
|
+
| `backdrop` | `boolean` | `false` | Whether to show a backdrop behind the menu, lifting the active item. |
|
|
592
|
+
| `pageScrollBehavior` | `'blocked' \| 'menu-close' \| 'fixed-menu'` | `'menu-close'` | Behavior of the menu on page scroll: - 'blocked': blocks page scroll - 'menu-close': closes the menu automatically on scroll (default) - 'fixed-menu': menu scrolls with the page |
|
|
593
|
+
| `position` | `'top' \| 'bottom' \| 'left' \| 'right' \| 'mouse'` | `'mouse'` | Position of the menu relative to the trigger. If 'mouse', positions next to mouse/touch coords. |
|
|
594
|
+
| `align` | `'start' \| 'center' \| 'end'` | `'start'` | Alignment of the menu relative to the trigger. |
|
|
595
|
+
|
|
596
|
+
### Events
|
|
597
|
+
|
|
598
|
+
| Event | Type | Description |
|
|
599
|
+
|-------|------|-------------|
|
|
600
|
+
| `leContextMenuSelect` | `EventEmitter<LeContextMenuSelectDetail>` | Emitted when a menu item is selected. |
|
|
601
|
+
| `leContextMenuClose` | `EventEmitter<void>` | Emitted when the context menu is closed. |
|
|
602
|
+
|
|
603
|
+
### Slots
|
|
604
|
+
|
|
605
|
+
| Name | Description |
|
|
606
|
+
|------|-------------|
|
|
607
|
+
| Default | Trigger content |
|
|
608
|
+
|
|
609
|
+
---
|
|
610
|
+
|
|
573
611
|
## <le-current-heading>
|
|
574
612
|
|
|
575
613
|
Shows a "smart" header title based on what has scrolled out of view.
|
|
@@ -592,6 +630,25 @@ When `selector` matches multiple elements, the title becomes the last element
|
|
|
592
630
|
|
|
593
631
|
---
|
|
594
632
|
|
|
633
|
+
## <le-drag-handle>
|
|
634
|
+
|
|
635
|
+
Reusable drag handle used by resizable components.
|
|
636
|
+
|
|
637
|
+
### Properties
|
|
638
|
+
|
|
639
|
+
| Name | Type | Default | Description |
|
|
640
|
+
|------|------|---------|-------------|
|
|
641
|
+
| `orientation` | `LeDragHandleOrientation` | `'vertical'` | Handle orientation (vertical = width drag, horizontal = height drag). |
|
|
642
|
+
| `placement` | `LeDragHandlePlacement` | `'end'` | Handle position on the owning edge. |
|
|
643
|
+
|
|
644
|
+
### Slots
|
|
645
|
+
|
|
646
|
+
| Name | Description |
|
|
647
|
+
|------|-------------|
|
|
648
|
+
| Default | Optional assistive text for screen readers. |
|
|
649
|
+
|
|
650
|
+
---
|
|
651
|
+
|
|
595
652
|
## <le-dropdown-base>
|
|
596
653
|
|
|
597
654
|
Internal dropdown base component that provides shared functionality
|
|
@@ -825,6 +882,7 @@ Navigation component with vertical (tree) and horizontal (menu) layouts.
|
|
|
825
882
|
| `emptyText` | `string` | `'No results found'` | Text shown when no items match the filter. |
|
|
826
883
|
| `submenuSearchable` | `boolean` | `false` | Whether submenu popovers should include a filter input. |
|
|
827
884
|
| `activationMode` | `LeNavigationActivationMode` | `'manual'` | Whether keyboard focus only highlights, or also activates immediately. |
|
|
885
|
+
| `autoScroll` | `boolean` | `false` | Automatically scroll the active item into view when the active URL changes or on initial load. - Initial load: instant (no animation) - Subsequent `activeUrl` changes: smooth Only applies to `vertical` orientation. |
|
|
828
886
|
| `togglePosition` | `'start' \| 'end'` | `'start'` | Position of the toggle arrow for items with children: 'start' | 'end' |
|
|
829
887
|
|
|
830
888
|
### Events
|
|
@@ -1183,8 +1241,11 @@ A select dropdown component for single selection.
|
|
|
1183
1241
|
| `collapseAt` | `string \| undefined` | | Width breakpoint (in px or a CSS var like `--le-breakpoint-md`) below which the panel enters "narrow" mode. |
|
|
1184
1242
|
| `narrowBehavior` | `LeSidePanelNarrowBehavior` | `'overlay'` | Behavior when in narrow mode. |
|
|
1185
1243
|
| `sticky` | `boolean` | `false` | Whether the panel is sticky (remains visible when scrolling). |
|
|
1244
|
+
| `minPanelHeight` | `number` | `200` | Minimum panel height (px) when sticky full-height logic is active. |
|
|
1186
1245
|
| `top` | `number \| 'under-header'` | `0` | Top offset for the sticky panel. |
|
|
1246
|
+
| `bottom` | `number \| 'under-footer'` | `0` | Bottom offset for sticky full-height calculations. |
|
|
1187
1247
|
| `fullHeight` | `boolean` | `false` | Whether the sticky panel should stretch to full height. |
|
|
1248
|
+
| `margin` | `string \| number \| undefined` | | Optional panel margin override. Accepts CSS length (e.g. `16px`, `1rem`, `var(--space-4)`). |
|
|
1188
1249
|
| `open` | `boolean` | `false` | Panel open state for narrow mode. - overlay: controls modal drawer visibility - push: controls whether panel is shown (non-modal) |
|
|
1189
1250
|
| `collapsed` | `boolean` | `false` | Panel collapsed state for wide mode (fully hidden). |
|
|
1190
1251
|
| `panelWidth` | `number` | `280` | Default panel width in pixels. |
|