le-kit 0.7.1 → 0.8.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 +61 -1
  2. package/package.json +1 -1
package/LLM_CONTEXT.md CHANGED
@@ -4,6 +4,7 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
4
4
 
5
5
  ## Table of Contents
6
6
 
7
+ - [le-actions-sequence](#le-actions-sequence)
7
8
  - [le-bar](#le-bar)
8
9
  - [le-bento-grid](#le-bento-grid)
9
10
  - [le-bento-tile](#le-bento-tile)
@@ -56,6 +57,36 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
56
57
 
57
58
  ---
58
59
 
60
+ ## <le-actions-sequence>
61
+
62
+ A non-visual component that runs a sequence of timed actions on its children.
63
+ Designed for creating automated interaction loops and interactive demos.
64
+
65
+ ### Properties
66
+
67
+ | Name | Type | Default | Description |
68
+ |------|------|---------|-------------|
69
+ | `el` | `HTMLElement` | | |
70
+ | `steps` | `ActionStep[] \| string` | `[]` | Array of ActionStep objects or a JSON string representation. |
71
+ | `startOn` | `'init' \| 'in-view' \| 'manual'` | `'init'` | Playback triggers: 'init' (starts immediately), 'in-view' (scrolled into viewport), 'manual'. |
72
+ | `inViewThreshold` | `number` | `0.5` | Visibility threshold ratio (0.0 to 1.0) before triggering in-view. |
73
+ | `loop` | `boolean` | `false` | Repeat the sequence when finished. |
74
+ | `loopDelay` | `number` | `0` | Loop delay in milliseconds before restarting the sequence. |
75
+ | `direction` | `'forward' \| 'reverse' \| 'alternate'` | `'forward'` | Playback direction. |
76
+ | `debug` | `boolean` | `false` | Output debug logs to console. |
77
+ | `pauseOnHover` | `boolean` | `false` | Pause the sequence when the user hovers over the element. Resumes on mouseleave. |
78
+ | `pauseOnInteraction` | `boolean` | `false` | Pause the sequence when the user interacts (click/focus/drag) inside the element. |
79
+
80
+ ### Events
81
+
82
+ | Event | Type | Description |
83
+ |-------|------|-------------|
84
+ | `leStart` | `EventEmitter<void>` | Emitted when the sequence starts playing |
85
+ | `leStep` | `EventEmitter<{ index: number; step: ActionStep; target: HTMLElement }>` | Emitted when a step starts executing |
86
+ | `leFinish` | `EventEmitter<void>` | Emitted when the sequence finishes |
87
+
88
+ ---
89
+
59
90
  ## <le-bar>
60
91
 
61
92
  A flexible bar component that handles overflow gracefully.
@@ -261,6 +292,7 @@ A flexible button component with multiple variants and states.
261
292
  \| 'transparent' \| undefined` | | Button color theme (uses theme semantic colors) |
262
293
  | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Button size |
263
294
  | `selected` | `boolean` | `false` | Whether the button is in a selected/active state |
295
+ | `value` | `string \| undefined` | | The value associated with the button (useful when in a button group) |
264
296
  | `label` | `string \| undefined` | | Optional label for the button, used for accessibility and tooltips when the button is icon-only. |
265
297
  | `tooltip` | `string \| undefined` | | Tooltip text to show on hover |
266
298
  | `tooltipPosition` | `TooltipPlacement` | `'top'` | Tooltip position around the button |
@@ -270,10 +302,14 @@ A flexible button component with multiple variants and states.
270
302
  | `motionPreset` | `'none' \| 'soft' \| 'fluid' \| 'spring' \| undefined` | | Optional per-instance motion preset override. |
271
303
  | `iconOnly` | `string \| Node \| undefined` | | Icon only button image or emoji if this prop is set, the button will render only the icon slot |
272
304
  | `iconStart` | `string \| Node \| undefined` | | Start icon image or emoji |
305
+ | `iconCount` | `number \| undefined` | | Notification count for shorthand icons. Applies to start icon, or icon-only if set. |
306
+ | `iconStartCount` | `number \| undefined` | | Count specifically for iconStart. |
273
307
  | `collapsible` | `boolean` | `false` | Enables responsive collapse to icon-only when the toolbar applies `collapse="icon"`. |
274
308
  | `collapse` | `string \| undefined` | | Runtime collapse state controlled by responsive containers. |
275
309
  | `collapsePriorityOffset` | `number` | `100` | Relative collapse priority offset for toolbar stepping. Higher numbers collapse earlier while keeping the button visible longer. |
276
310
  | `iconEnd` | `string \| Node \| undefined` | | End icon image or emoji |
311
+ | `iconEndCount` | `number \| undefined` | | Count specifically for iconEnd. |
312
+ | `iconOnlyCount` | `number \| undefined` | | Count specifically for iconOnly. |
277
313
  | `disabled` | `boolean` | `false` | Whether the button is disabled |
278
314
  | `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | The button type attribute |
279
315
  | `href` | `string \| undefined` | | Optional href to make the button act as a link |
@@ -292,6 +328,8 @@ A flexible button component with multiple variants and states.
292
328
  |------|-------------|
293
329
  | Default | Button text content |
294
330
  | `"icon-only"` | Icon for icon-only buttons |
331
+ | `"icon-start"` | Icon placed in the beginning of the button |
332
+ | `"icon-end"` | Icon placed in the end of the button |
295
333
 
296
334
  ### CSS Variables
297
335
 
@@ -320,12 +358,15 @@ into an overflow "more" menu.
320
358
  | `overflowIcons` | `boolean` | `false` | When true, icons from collapsed buttons are shown in the overflow navigation list. |
321
359
  | `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. |
322
360
  | `visibility` | `'visible' \| 'collapsing' \| 'collapsed' \| 'expanding'` | `'visible'` | Visibility state used by responsive containers such as le-toolbar. |
361
+ | `type` | `'radio' \| 'checkbox' \| undefined` | | Selection type: radio (single select) or checkbox (multi select) |
362
+ | `value` | `string \| string[] \| undefined` | | Selected value(s). If type is 'radio', value is a string. If type is 'checkbox', value is a string or string[]. |
323
363
 
324
364
  ### Events
325
365
 
326
366
  | Event | Type | Description |
327
367
  |-------|------|-------------|
328
368
  | `leOverflowSelect` | `EventEmitter<{ id: string }>` | |
369
+ | `leChange` | `EventEmitter<LeOptionSelectDetail \| LeMultiOptionSelectDetail>` | |
329
370
 
330
371
  ### Slots
331
372
 
@@ -788,6 +829,24 @@ The header component updates that variable when it renders.
788
829
  | `el` | `HTMLElement` | | |
789
830
  | `name` | `string \| undefined` | `undefined` | Name of the icon to display. Corresponds to a JSON file in the assets folder. For example, "search" will load the "search.json" file. |
790
831
  | `size` | `number` | `16` | Size of the icon in pixels. Default is 16. |
832
+ | `viewBox` | `string \| undefined` | | Custom viewBox for the SVG. When set, overrides the viewBox from the loaded icon data. Useful for layer-only compositions without a base icon. |
833
+ | `badge` | `string \| undefined` | | Name of a badge icon to overlay on top of the base icon. The badge icon is loaded and composed with mask-based knockout. |
834
+ | `badgePosition` | `string \| undefined` | | Position of the badge icon within the base icon's viewBox. Comma-separated x,y values in viewBox units or percentages. Positive values = from start/top, Negative values = from end/bottom. Percentages work like CSS background-position. Default: "-5, -5" (bottom-right area). |
835
+ | `badgeScale` | `number \| undefined` | | Scale factor for the badge icon. Default: 1.0. Badge icons are designed at their natural display size, so 1.0 means no scaling. Use >1 to enlarge, <1 to shrink. |
836
+ | `badgeOpacity` | `number \| undefined` | | Optional opacity for the badge icon (0 to 1). |
837
+ | `count` | `number \| undefined` | | Optional numeric count for notification badge (e.g. 5 or 120). |
838
+ | `maxCount` | `number \| undefined` | | Optional max count threshold (e.g. 99 -> "99+"). |
839
+ | `badgeText` | `string \| boolean \| undefined` | | Optional text string for notification badge (e.g. "NEW"). Can also be set as boolean attribute `<le-icon badge-text></le-icon>` for an empty dot. |
840
+ | `dot` | `boolean \| undefined` | | Whether to display an empty circle dot badge. |
841
+ | `badgeTextColor` | `string \| undefined` | | Optional text/font color for the badge text. |
842
+ | `badgeColor` | `string \| undefined` | | Optional color for the badge icon or background (CSS color or variable). Defaults to 'transparent'. |
843
+ | `baseColor` | `string \| undefined` | | Optional color for the base icon (CSS color or variable). |
844
+ | `layers` | `string \| undefined` | | JSON string defining additional icon layers to compose on top of the base icon. Each layer has a name, optional position, and optional scale. Layers are rendered in order (first = bottom, last = top), and each layer's maskShape (if present) cuts through all layers below it. |
845
+ | `rounded` | `boolean \| undefined` | | Whether to use rounded variants of icon elements if defined in icon JSON. If not explicitly set, defaults to the global le-kit config (`icons.defaultRounded`). |
846
+ | `sharp` | `boolean \| undefined` | | Whether to force sharp (non-rounded) variants of icon elements. Overrides `rounded` prop, registry settings, and global defaults. |
847
+ | `filled` | `boolean \| undefined` | | Whether to use filled variants of icon elements if defined in icon JSON. If not explicitly set, defaults to the global le-kit config (`icons.defaultFilled`). |
848
+ | `outlined` | `boolean \| undefined` | | Whether to force outlined (non-filled) variants of icon elements. Overrides `filled` prop, registry settings, and global defaults. |
849
+ | `thin` | `boolean \| undefined` | | Whether to use thin variants of icon elements if defined in icon JSON. If not explicitly set, defaults to the global le-kit config (`icons.defaultThin`). |
791
850
 
792
851
  ---
793
852
 
@@ -1093,7 +1152,8 @@ component demos and documentation.
1093
1152
  | `frameWidth` | `number \| undefined` | | Initial inner width of the preview viewport in pixels. Set to 0 or 'auto' to fill the available container width. |
1094
1153
  | `minWidth` | `number` | `240` | Minimum resizable width in pixels. |
1095
1154
  | `maxWidth` | `number` | `0` | Maximum resizable width in pixels. 0 = unconstrained. |
1096
- | `showControls` | `boolean` | `true` | Whether to show the controls bar (breakpoint buttons + width badge). |
1155
+ | `showControls` | `boolean \| 'none' \| 'width' \| 'breakpoints' \| 'all'` | `'all'` | What controls to show in the toolbar. - none: hide the entire controls bar - width: show only the width badge - breakpoints: show only the breakpoint preset buttons - all: show both the buttons and the width badge |
1156
+ | `showFrame` | `'no' \| 'hover' \| 'always'` | `'always'` | Visibility strategy for the preview frame border, background, and controls. - always: Frame controls and borders are always visible. - hover: Invisible by default, fades in on hover or focus-within. - no: Always invisible (only viewport content is visible). |
1097
1157
  | `resizable` | `boolean` | `true` | Whether to show drag resize handles. |
1098
1158
  | `handles` | `LePreviewFrameHandleSide[] \| string` | `'right'` | Which handles are rendered. Accepts "right", "left", "bottom", "left,right", etc. or a JSON string/array. |
1099
1159
  | `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 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "le-kit",
3
- "version": "0.7.1",
3
+ "version": "0.8.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",