le-kit 0.6.5 → 0.7.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 +104 -1
  2. package/package.json +1 -1
package/LLM_CONTEXT.md CHANGED
@@ -30,6 +30,7 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
30
30
  - [le-overflow-menu](#le-overflow-menu)
31
31
  - [le-popover](#le-popover)
32
32
  - [le-popup](#le-popup)
33
+ - [le-preview-frame](#le-preview-frame)
33
34
  - [le-round-progress](#le-round-progress)
34
35
  - [le-scroll-progress](#le-scroll-progress)
35
36
  - [le-segmented-control](#le-segmented-control)
@@ -45,6 +46,8 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
45
46
  - [le-tabs](#le-tabs)
46
47
  - [le-tag](#le-tag)
47
48
  - [le-text](#le-text)
49
+ - [le-toolbar](#le-toolbar)
50
+ - [le-toolbar-spacer](#le-toolbar-spacer)
48
51
  - [le-tooltip](#le-tooltip)
49
52
  - [le-turntable](#le-turntable)
50
53
  - [le-visibility](#le-visibility)
@@ -246,7 +249,7 @@ A flexible button component with multiple variants and states.
246
249
  |------|------|---------|-------------|
247
250
  | `el` | `HTMLElement` | | |
248
251
  | `mode` | `'default' \| 'admin' \| undefined` | | Mode of the popover should be 'default' for internal use |
249
- | `variant` | `'solid' \| 'outlined' \| 'clear' \| 'system'` | `'solid'` | Button variant style |
252
+ | `variant` | `'solid' \| 'outlined' \| 'clear' \| 'system'` | `'outlined'` | Button variant style |
250
253
  | `color` | `\| 'primary'
251
254
  \| 'secondary'
252
255
  \| 'success'
@@ -307,8 +310,11 @@ into an overflow "more" menu.
307
310
  | Name | Type | Default | Description |
308
311
  |------|------|---------|-------------|
309
312
  | `el` | `HTMLElement` | | |
313
+ | `label` | `string \| undefined` | | Optional label used when the whole group is represented as a parent item inside another component's overflow menu. |
310
314
  | `collapse` | `boolean \| number \| string \| undefined` | | Collapse mode. - `true`: show only the top-priority button - positive number: show top N buttons - `0`: show only the more button - negative number: hide abs(N) lowest-priority buttons Non-integers are rounded with `Math.round`. |
311
315
  | `overflowIcons` | `boolean` | `false` | When true, icons from collapsed buttons are shown in the overflow navigation list. |
316
+ | `disabled` | `boolean` | `false` | Disabled attribute, when the button group is disabled, all buttons inside will be disabled and the overflow menu will not be accessible. |
317
+ | `visibility` | `'visible' \| 'collapsing' \| 'collapsed' \| 'expanding'` | `'visible'` | Visibility state used by responsive containers such as le-toolbar. |
312
318
 
313
319
  ### Events
314
320
 
@@ -819,6 +825,7 @@ Navigation component with vertical (tree) and horizontal (menu) layouts.
819
825
  | `emptyText` | `string` | `'No results found'` | Text shown when no items match the filter. |
820
826
  | `submenuSearchable` | `boolean` | `false` | Whether submenu popovers should include a filter input. |
821
827
  | `activationMode` | `LeNavigationActivationMode` | `'manual'` | Whether keyboard focus only highlights, or also activates immediately. |
828
+ | `togglePosition` | `'start' \| 'end'` | `'start'` | Position of the toggle arrow for items with children: 'start' | 'end' |
822
829
 
823
830
  ### Events
824
831
 
@@ -1012,6 +1019,47 @@ via leAlert(), leConfirm(), lePrompt().
1012
1019
 
1013
1020
  ---
1014
1021
 
1022
+ ## <le-preview-frame>
1023
+
1024
+ A resizable preview frame for showcasing responsive component behavior.
1025
+
1026
+ Wraps any content in a resizable viewport, complete with drag handle,
1027
+ width indicator, and preset device-size buttons. Designed for use in
1028
+ component demos and documentation.
1029
+
1030
+ ### Properties
1031
+
1032
+ | Name | Type | Default | Description |
1033
+ |------|------|---------|-------------|
1034
+ | `el` | `HTMLElement` | | |
1035
+ | `frameWidth` | `number \| undefined` | | Initial inner width of the preview viewport in pixels. Set to 0 or 'auto' to fill the available container width. |
1036
+ | `minWidth` | `number` | `240` | Minimum resizable width in pixels. |
1037
+ | `maxWidth` | `number` | `0` | Maximum resizable width in pixels. 0 = unconstrained. |
1038
+ | `showControls` | `boolean` | `true` | Whether to show the controls bar (breakpoint buttons + width badge). |
1039
+ | `resizable` | `boolean` | `true` | Whether to show drag resize handles. |
1040
+ | `handles` | `LePreviewFrameHandleSide[] \| string` | `'right'` | Which handles are rendered. Accepts "right", "left", "bottom", "left,right", etc. or a JSON string/array. |
1041
+ | `origin` | `LePreviewFrameResizeOrigin` | `'auto'` | Horizontal resize origin strategy. - auto: detects centered layouts and switches to center math - edge: keeps opposite edge fixed (default left-aligned behavior) - center: grows/shrinks from center |
1042
+ | `padding` | `number` | `0` | Extra layout padding to subtract from available container space. Useful when visual page padding is not detectable from the immediate parent. |
1043
+ | `breakpoints` | `LePreviewFrameBreakpoint[] \| string` | `DEFAULT_BREAKPOINTS` | Preset breakpoints shown as buttons. Can be a JSON string or a LePreviewFrameBreakpoint[]. |
1044
+ | `widthUnit` | `string` | `'px'` | Label for the width badge. Set empty to hide the unit suffix. |
1045
+ | `minHeight` | `number` | `64` | Minimum height of the viewport in pixels. |
1046
+ | `maxHeight` | `number` | `0` | Maximum resizable viewport height in pixels. 0 = unconstrained. |
1047
+
1048
+ ### Events
1049
+
1050
+ | Event | Type | Description |
1051
+ |-------|------|-------------|
1052
+ | `lePreviewFrameResize` | `EventEmitter<LePreviewFrameResizeDetail> \| undefined` | Emitted whenever the frame width changes (drag or preset button). |
1053
+
1054
+ ### Slots
1055
+
1056
+ | Name | Description |
1057
+ |------|-------------|
1058
+ | Default | The content to preview |
1059
+ | `"controls"` | Extra content inserted after the preset buttons |
1060
+
1061
+ ---
1062
+
1015
1063
  ## <le-round-progress>
1016
1064
 
1017
1065
  ### Properties
@@ -1585,6 +1633,61 @@ toolbar for bold, italic, links, and paragraph type selection.
1585
1633
 
1586
1634
  ---
1587
1635
 
1636
+ ## <le-toolbar>
1637
+
1638
+ A priority-aware, overflow-safe toolbar component.
1639
+
1640
+ Items are slotted light-DOM children. Each item may carry a
1641
+ `priority` attribute (lower = more important). When there
1642
+ isn't enough space, lower-priority items move to an overflow menu.
1643
+
1644
+ Collapsible `le-button-group` children are asked to reduce their own
1645
+ footprint first before their contents are overflowed entirely.
1646
+
1647
+ ### Properties
1648
+
1649
+ | Name | Type | Default | Description |
1650
+ |------|------|---------|-------------|
1651
+ | `el` | `HTMLElement` | | |
1652
+ | `items` | `unknown \| undefined` | | Optional declarative items input. The current implementation is slot-driven, but when this prop changes we still invalidate the slotted-items cache and recompute layout. |
1653
+ | `alignItems` | `'start' \| 'center' \| 'end' \| 'stretch'` | `'start'` | Alignment of items along the main axis. |
1654
+ | `itemGap` | `string` | `'var(--le-toolbar-gap, var(--le-spacing-1, 4px))'` | Spacing between top-level toolbar items. Accepts any valid CSS length (e.g. `8px`, `0.5rem`, `var(--le-spacing-2)`). |
1655
+ | `overflowIcon` | `string` | `'ellipsis-horizontal'` | Icon for the overflow trigger button when no custom slot content is provided. |
1656
+ | `overflowLabel` | `string` | `'More'` | Accessible label for the overflow trigger button. |
1657
+ | `disablePopover` | `boolean` | `false` | Disable the built-in overflow popover. The toolbar will still compute overflow state and emit events, but won't render its own menu. Useful for custom overflow handling. |
1658
+ | `debugVirtualToolbar` | `boolean` | `false` | Temporary debug mode: render the virtual toolbar visibly above the live toolbar so collapse measurements can be inspected. |
1659
+ | `debugPauseBeforeMeasure` | `boolean` | `false` | Temporary debug mode: stop before measuring virtual widths so the virtual DOM can be inspected before collapse simulation mutates it. |
1660
+
1661
+ ### Events
1662
+
1663
+ | Event | Type | Description |
1664
+ |-------|------|-------------|
1665
+ | `leToolbarOverflowChange` | `EventEmitter<LeToolbarOverflowChangeDetail> \| undefined` | Emitted when the overflow state changes. |
1666
+
1667
+ ### Slots
1668
+
1669
+ | Name | Description |
1670
+ |------|-------------|
1671
+ | Default | Toolbar items |
1672
+ | `"more"` | Custom content for the overflow trigger button |
1673
+
1674
+ ---
1675
+
1676
+ ## <le-toolbar-spacer>
1677
+
1678
+ Flexible spacer for le-toolbar layouts.
1679
+
1680
+ Default behavior (no width): occupies available free space and shrinks naturally.
1681
+ With numeric `width`: behaves as a fixed-width spacer that can be collapsed by le-toolbar.
1682
+
1683
+ ### Properties
1684
+
1685
+ | Name | Type | Default | Description |
1686
+ |------|------|---------|-------------|
1687
+ | `width` | `number \| string \| undefined` | | Optional fixed width. Numeric values (e.g. `24`) are treated as px. String values may be any valid CSS width (e.g. `2rem`, `var(--le-spacing-2)`). |
1688
+
1689
+ ---
1690
+
1588
1691
  ## <le-tooltip>
1589
1692
 
1590
1693
  ### Properties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "le-kit",
3
- "version": "0.6.5",
3
+ "version": "0.7.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",