le-kit 0.6.4 → 0.6.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.
Files changed (2) hide show
  1. package/LLM_CONTEXT.md +138 -1
  2. package/package.json +6 -2
package/LLM_CONTEXT.md CHANGED
@@ -10,6 +10,7 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
10
10
  - [le-box](#le-box)
11
11
  - [le-breadcrumbs](#le-breadcrumbs)
12
12
  - [le-button](#le-button)
13
+ - [le-button-group](#le-button-group)
13
14
  - [le-card](#le-card)
14
15
  - [le-checkbox](#le-checkbox)
15
16
  - [le-code-input](#le-code-input)
@@ -22,9 +23,11 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
22
23
  - [le-header-placeholder](#le-header-placeholder)
23
24
  - [le-icon](#le-icon)
24
25
  - [le-item](#le-item)
26
+ - [le-kit](#le-kit)
25
27
  - [le-multiselect](#le-multiselect)
26
28
  - [le-navigation](#le-navigation)
27
29
  - [le-number-input](#le-number-input)
30
+ - [le-overflow-menu](#le-overflow-menu)
28
31
  - [le-popover](#le-popover)
29
32
  - [le-popup](#le-popup)
30
33
  - [le-round-progress](#le-round-progress)
@@ -42,7 +45,9 @@ This file is auto-generated and contains documentation for all Le-Kit web compon
42
45
  - [le-tabs](#le-tabs)
43
46
  - [le-tag](#le-tag)
44
47
  - [le-text](#le-text)
48
+ - [le-tooltip](#le-tooltip)
45
49
  - [le-turntable](#le-turntable)
50
+ - [le-visibility](#le-visibility)
46
51
 
47
52
  ---
48
53
 
@@ -248,10 +253,16 @@ A flexible button component with multiple variants and states.
248
253
  \| 'warning'
249
254
  \| 'danger'
250
255
  \| 'info'
251
- \| 'transparent'` | `'primary'` | Button color theme (uses theme semantic colors) |
256
+ \| 'transparent' \| undefined` | | Button color theme (uses theme semantic colors) |
252
257
  | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Button size |
253
258
  | `selected` | `boolean` | `false` | Whether the button is in a selected/active state |
259
+ | `label` | `string \| undefined` | | Optional label for the button, used for accessibility and tooltips when the button is icon-only. |
260
+ | `tooltip` | `string \| undefined` | | Tooltip text to show on hover |
261
+ | `tooltipPosition` | `TooltipPlacement` | `'top'` | Tooltip position around the button |
254
262
  | `fullWidth` | `boolean` | `false` | Whether the button takes full width of its container |
263
+ | `visibility` | `'visible' \| 'collapsing' \| 'collapsed' \| 'expanding'` | `'visible'` | Visibility state used by responsive containers to animate show/hide transitions. |
264
+ | `groupShape` | `'start' \| 'middle' \| 'end' \| 'single'` | `'single'` | Shape of the button when rendered inside grouped containers. |
265
+ | `motionPreset` | `'none' \| 'soft' \| 'fluid' \| 'spring' \| undefined` | | Optional per-instance motion preset override. |
255
266
  | `iconOnly` | `string \| Node \| undefined` | | Icon only button image or emoji if this prop is set, the button will render only the icon slot |
256
267
  | `iconStart` | `string \| Node \| undefined` | | Start icon image or emoji |
257
268
  | `iconEnd` | `string \| Node \| undefined` | | End icon image or emoji |
@@ -286,6 +297,34 @@ A flexible button component with multiple variants and states.
286
297
 
287
298
  ---
288
299
 
300
+ ## <le-button-group>
301
+
302
+ Groups multiple `le-button` elements and optionally collapses low-priority actions
303
+ into an overflow "more" menu.
304
+
305
+ ### Properties
306
+
307
+ | Name | Type | Default | Description |
308
+ |------|------|---------|-------------|
309
+ | `el` | `HTMLElement` | | |
310
+ | `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
+ | `overflowIcons` | `boolean` | `false` | When true, icons from collapsed buttons are shown in the overflow navigation list. |
312
+
313
+ ### Events
314
+
315
+ | Event | Type | Description |
316
+ |-------|------|-------------|
317
+ | `leOverflowSelect` | `EventEmitter<{ id: string }>` | |
318
+
319
+ ### Slots
320
+
321
+ | Name | Description |
322
+ |------|-------------|
323
+ | Default | Group button elements (`le-button` children) |
324
+ | `"more"` | Custom icon/content for the overflow trigger button |
325
+
326
+ ---
327
+
289
328
  ## <le-card>
290
329
 
291
330
  A flexible card component with header, content, and footer slots.
@@ -699,6 +738,27 @@ The header component updates that variable when it renders.
699
738
 
700
739
  ---
701
740
 
741
+ ## <le-kit>
742
+
743
+ Optional app-level context orchestrator for theme, appearance, and active state.
744
+
745
+ Components continue to work without this wrapper; `le-kit` is opt-in.
746
+
747
+ ### Properties
748
+
749
+ | Name | Type | Default | Description |
750
+ |------|------|---------|-------------|
751
+ | `el` | `HTMLElement` | | |
752
+ | `theme` | `string` | `'default'` | Current theme scope value. |
753
+ | `appearance` | `string` | `'default'` | Current appearance scope value. |
754
+ | `activeContext` | `LeActiveContext` | `'active'` | Current active context scope value. |
755
+ | `watchWindow` | `boolean` | `true` | Whether this instance reacts to window focus/blur. |
756
+ | `watchModals` | `boolean` | `true` | Whether this instance reacts to descendant modal popup open/close events. |
757
+ | `storageKey` | `string` | `'le-kit'` | Local storage namespace for persisted values. |
758
+ | `persist` | `string` | `'theme appearance'` | Persistence keys as a space-separated list: `all`, `none`, `theme`, `appearance`. |
759
+
760
+ ---
761
+
702
762
  ## <le-multiselect>
703
763
 
704
764
  A multiselect component for selecting multiple options.
@@ -758,6 +818,7 @@ Navigation component with vertical (tree) and horizontal (menu) layouts.
758
818
  | `searchPlaceholder` | `string` | `'Search...'` | Placeholder text for the search input. |
759
819
  | `emptyText` | `string` | `'No results found'` | Text shown when no items match the filter. |
760
820
  | `submenuSearchable` | `boolean` | `false` | Whether submenu popovers should include a filter input. |
821
+ | `activationMode` | `LeNavigationActivationMode` | `'manual'` | Whether keyboard focus only highlights, or also activates immediately. |
761
822
 
762
823
  ### Events
763
824
 
@@ -837,6 +898,32 @@ A number input component with validation, keyboard controls, and custom spinners
837
898
 
838
899
  ---
839
900
 
901
+ ## <le-overflow-menu>
902
+
903
+ ### Properties
904
+
905
+ | Name | Type | Default | Description |
906
+ |------|------|---------|-------------|
907
+ | `open` | `boolean` | `false` | Whether the menu popover is open. |
908
+ | `disabled` | `boolean` | `false` | Disables trigger interactions. |
909
+ | `position` | `'top' \| 'right' \| 'bottom' \| 'left'` | `'bottom'` | Popover position. |
910
+ | `align` | `'start' \| 'center' \| 'end'` | `'end'` | Popover alignment relative to trigger. |
911
+ | `offset` | `number` | `8` | Popover offset in px. |
912
+ | `minWidth` | `string` | `'160px'` | Minimum popover width. |
913
+ | `icon` | `string` | `'ellipsis-horizontal'` | Fallback icon name for trigger. |
914
+ | `triggerAriaLabel` | `string` | `'Open menu'` | Aria label for fallback trigger button. |
915
+ | `triggerPart` | `string` | `'trigger-button'` | Part name for fallback trigger button. |
916
+ | `items` | `LeOverflowMenuItem[] \| string` | `[]` | List of menu items represented as options. |
917
+
918
+ ### Events
919
+
920
+ | Event | Type | Description |
921
+ |-------|------|-------------|
922
+ | `leOverflowMenuItemSelect` | `EventEmitter<LeOverflowMenuItemSelectDetail>` | |
923
+ | `leOverflowMenuClose` | `EventEmitter<void>` | |
924
+
925
+ ---
926
+
840
927
  ## <le-popover>
841
928
 
842
929
  A popover component for displaying floating content.
@@ -1498,6 +1585,34 @@ toolbar for bold, italic, links, and paragraph type selection.
1498
1585
 
1499
1586
  ---
1500
1587
 
1588
+ ## <le-tooltip>
1589
+
1590
+ ### Properties
1591
+
1592
+ | Name | Type | Default | Description |
1593
+ |------|------|---------|-------------|
1594
+ | `el` | `HTMLElement` | | |
1595
+ | `mode` | `LeKitMode` | `'default'` | The mode of Le Kit. |
1596
+ | `open` | `boolean` | `false` | Controls whether the tooltip is open. |
1597
+ | `text` | `string` | `''` | Tooltip text shown when no custom content slot is provided. |
1598
+ | `placement` | `TooltipPlacement` | `'auto'` | Preferred tooltip placement relative to trigger. |
1599
+ | `align` | `TooltipAlign` | `'center'` | Alignment along the cross axis for the chosen placement. |
1600
+ | `variant` | `TooltipVariant` | `'default'` | Visual variant of tooltip. |
1601
+ | `disabled` | `boolean` | `false` | Disable tooltip interactions and visibility. |
1602
+ | `showDelay` | `number` | `500` | Delay in milliseconds before showing the tooltip. |
1603
+ | `hideDelay` | `number` | `160` | Delay in milliseconds before hiding the tooltip after leaving trigger/content. |
1604
+ | `offset` | `number` | `8` | Distance in pixels between trigger and tooltip. |
1605
+ | `maxWidth` | `string` | `'280px'` | Max width of the tooltip box. |
1606
+
1607
+ ### Events
1608
+
1609
+ | Event | Type | Description |
1610
+ |-------|------|-------------|
1611
+ | `leTooltipOpen` | `EventEmitter<void> \| undefined` | Emitted when the tooltip opens. |
1612
+ | `leTooltipClose` | `EventEmitter<void> \| undefined` | Emitted when the tooltip closes. |
1613
+
1614
+ ---
1615
+
1501
1616
  ## <le-turntable>
1502
1617
 
1503
1618
  ### Properties
@@ -1517,3 +1632,25 @@ toolbar for bold, italic, links, and paragraph type selection.
1517
1632
 
1518
1633
  ---
1519
1634
 
1635
+ ## <le-visibility>
1636
+
1637
+ Internal visibility transition controller.
1638
+
1639
+ This component controls transition phase + measured size variables.
1640
+
1641
+ Preferred usage wraps the target content:
1642
+ <le-visibility state="collapsed"><div>...</div></le-visibility>
1643
+
1644
+ For backward compatibility, when no children are provided it
1645
+ falls back to controlling the parent host element.
1646
+
1647
+ ### Properties
1648
+
1649
+ | Name | Type | Default | Description |
1650
+ |------|------|---------|-------------|
1651
+ | `el` | `HTMLElement` | | |
1652
+ | `state` | `LeVisibilityState` | `'visible'` | Desired visibility state. |
1653
+ | `mode` | `LeVisibilityMode` | `'width'` | Which dimensions to measure and expose as CSS vars. |
1654
+
1655
+ ---
1656
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "le-kit",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
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",
@@ -51,12 +51,16 @@
51
51
  "analyze": "cem analyze --stencil && npm run generate:llm",
52
52
  "generate:llm": "node scripts/generate-llm-context.mjs"
53
53
  },
54
+ "dependencies": {
55
+ "@nanostores/persistent": "^0.10.2",
56
+ "nanostores": "^0.11.4"
57
+ },
54
58
  "devDependencies": {
55
59
  "@custom-elements-manifest/analyzer": "^0.11.0",
56
60
  "@stencil/core": "^4.27.1",
57
61
  "@stencil/react-output-target": "^1.2.0",
58
62
  "@types/jest": "^29.5.14",
59
- "@types/node": "^22.13.5",
63
+ "@types/node": "^22.19.17",
60
64
  "jest": "^29.7.0",
61
65
  "jest-cli": "^29.7.0",
62
66
  "puppeteer": "^24.3.0"