le-kit 0.6.0 → 0.6.2

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 +108 -61
  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-round-progress](#le-round-progress)
31
31
  - [le-scroll-progress](#le-scroll-progress)
32
32
  - [le-segmented-control](#le-segmented-control)
33
+ - [le-select](#le-select)
33
34
  - [le-side-panel](#le-side-panel)
34
35
  - [le-side-panel-toggle](#le-side-panel-toggle)
35
36
  - [le-slot](#le-slot)
@@ -68,7 +69,7 @@ row and handles overflow according to the `overflow` prop.
68
69
 
69
70
  | Event | Type | Description |
70
71
  |-------|------|-------------|
71
- | `leBarOverflowChange` | `EventEmitter<LeBarOverflowChangeDetail>` | Emitted when overflow state changes. |
72
+ | `leBarOverflowChange` | `EventEmitter<LeBarOverflowChangeDetail> \| undefined` | Emitted when overflow state changes. |
72
73
 
73
74
  ### Slots
74
75
 
@@ -323,17 +324,23 @@ A checkbox component with support for labels, descriptions, and external IDs.
323
324
  | Name | Type | Default | Description |
324
325
  |------|------|---------|-------------|
325
326
  | `el` | `HTMLElement` | | |
327
+ | `id` | `string` | ``le-checkbox-${Math.random().toString(36).substring(2, 9)}`` | The ID of the checkbox input. This is used for linking the label to the input for accessibility. In case there is no ID provided, a random one will be generated internally. |
326
328
  | `checked` | `boolean` | `false` | Whether the checkbox is checked |
327
329
  | `disabled` | `boolean` | `false` | Whether the checkbox is disabled |
328
- | `name` | `string` | | The name of the checkbox input |
329
- | `value` | `string` | | The value of the checkbox input |
330
- | `externalId` | `string` | | External ID for linking with external systems (e.g. database ID, PDF form field ID) |
330
+ | `name` | `string \| undefined` | | The name of the checkbox input |
331
+ | `value` | `string \| undefined` | | The value of the checkbox input |
332
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems (e.g. database ID, PDF form field ID) |
331
333
 
332
334
  ### Events
333
335
 
334
336
  | Event | Type | Description |
335
337
  |-------|------|-------------|
336
- | `change` | `EventEmitter<{ checked: boolean; value: string; name: string; externalId: string }>` | Emitted when the checked state changes |
338
+ | `change` | `EventEmitter<{
339
+ checked: boolean;
340
+ value?: string;
341
+ name?: string;
342
+ externalId?: string;
343
+ }>` | Emitted when the checked state changes |
337
344
 
338
345
  ### Slots
339
346
 
@@ -364,24 +371,24 @@ Supports standard copy/paste and range selection behaviors.
364
371
  |------|------|---------|-------------|
365
372
  | `el` | `HTMLElement` | | |
366
373
  | `value` | `string` | `''` | The value of the input |
367
- | `name` | `string` | | The name of the input |
368
- | `label` | `string` | | Label for the input |
374
+ | `name` | `string \| undefined` | | The name of the input |
375
+ | `label` | `string \| undefined` | | Label for the input |
369
376
  | `length` | `number` | `6` | Length of the code (number of characters) |
370
377
  | `description` | `string \| undefined` | | Description text displayed below the input in case there is a more complex markup, it can be provided via slot as well |
371
378
  | `type` | `'text' \| 'number'` | `'text'` | The type of code (numeric or alphanumeric) This affects the keyboard layout on mobile devices. |
372
379
  | `disabled` | `boolean` | `false` | Whether the input is disabled |
373
380
  | `readonly` | `boolean` | `false` | Whether the input is read-only |
374
- | `externalId` | `string` | | External ID for linking with external systems |
381
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems |
375
382
  | `error` | `boolean` | `false` | Internal validation state (can be set externally manually or via simple check) |
376
383
 
377
384
  ### Events
378
385
 
379
386
  | Event | Type | Description |
380
387
  |-------|------|-------------|
381
- | `leChange` | `EventEmitter<{ value: string; name: string; externalId: string }>` | Emitted when the value changes (on blur or Enter) |
382
- | `leInput` | `EventEmitter<{ value: string; name: string; externalId: string }>` | Emitted when the input value changes (on keystroke) |
383
- | `leFocus` | `EventEmitter<void>` | Emitted when the input is focused |
384
- | `leBlur` | `EventEmitter<void>` | Emitted when the input is blurred |
388
+ | `leChange` | `EventEmitter<{ value: string; name?: string; externalId?: string }> \| undefined` | Emitted when the value changes (on blur or Enter) |
389
+ | `leInput` | `EventEmitter<{ value: string; name?: string; externalId?: string }> \| undefined` | Emitted when the input value changes (on keystroke) |
390
+ | `leFocus` | `EventEmitter<void> \| undefined` | Emitted when the input is focused |
391
+ | `leBlur` | `EventEmitter<void> \| undefined` | Emitted when the input is blurred |
385
392
 
386
393
  ### Slots
387
394
 
@@ -671,7 +678,7 @@ The header component updates that variable when it renders.
671
678
  | Name | Type | Default | Description |
672
679
  |------|------|---------|-------------|
673
680
  | `el` | `HTMLElement` | | |
674
- | `name` | `string` | `null` | Name of the icon to display. Corresponds to a JSON file in the assets folder. For example, "search" will load the "search.json" file. |
681
+ | `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. |
675
682
  | `size` | `number` | `16` | Size of the icon in pixels. Default is 16. |
676
683
 
677
684
  ---
@@ -771,10 +778,10 @@ A number input component with validation, keyboard controls, and custom spinners
771
778
  | Name | Type | Default | Description |
772
779
  |------|------|---------|-------------|
773
780
  | `el` | `HTMLElement` | | |
774
- | `value` | `number` | | The value of the input |
775
- | `name` | `string` | | The name of the input |
776
- | `label` | `string` | | Label for the input |
777
- | `placeholder` | `string` | | Placeholder text |
781
+ | `value` | `number \| undefined` | | The value of the input |
782
+ | `name` | `string \| undefined` | | The name of the input |
783
+ | `label` | `string \| undefined` | | Label for the input |
784
+ | `placeholder` | `string \| undefined` | | Placeholder text |
778
785
  | `min` | `number \| undefined` | | Minimum allowed value |
779
786
  | `max` | `number \| undefined` | | Maximum allowed value |
780
787
  | `step` | `number` | `1` | Step value for increment/decrement |
@@ -783,14 +790,24 @@ A number input component with validation, keyboard controls, and custom spinners
783
790
  | `readonly` | `boolean` | `false` | Whether the input is read-only |
784
791
  | `iconStart` | `string \| undefined` | | Icon for the start icon |
785
792
  | `showSpinners` | `boolean` | `true` | Whether to show the spinner controls |
786
- | `externalId` | `string` | | External ID for linking with external systems |
793
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems |
787
794
 
788
795
  ### Events
789
796
 
790
797
  | Event | Type | Description |
791
798
  |-------|------|-------------|
792
- | `leChange` | `EventEmitter<{ value: number; name: string; externalId: string; isValid: boolean }>` | Emitted when the value changes (on blur or Enter) |
793
- | `leInput` | `EventEmitter<{ value: number; name: string; externalId: string; isValid: boolean }>` | Emitted when the input value changes (on keystroke/spin) |
799
+ | `leChange` | `EventEmitter<{
800
+ value?: number;
801
+ name?: string;
802
+ externalId?: string;
803
+ isValid: boolean;
804
+ }> \| undefined` | Emitted when the value changes (on blur or Enter) |
805
+ | `leInput` | `EventEmitter<{
806
+ value?: number;
807
+ name?: string;
808
+ externalId?: string;
809
+ isValid: boolean;
810
+ }> \| undefined` | Emitted when the input value changes (on keystroke/spin) |
794
811
 
795
812
  ### Slots
796
813
 
@@ -826,7 +843,7 @@ and other top-layer elements. Falls back gracefully in older browsers.
826
843
  | Name | Type | Default | Description |
827
844
  |------|------|---------|-------------|
828
845
  | `el` | `HTMLElement` | | |
829
- | `mode` | `'default' \| 'admin'` | | Mode of the popover should be 'default' for internal use |
846
+ | `mode` | `'default' \| 'admin'` | `'default'` | Mode of the popover should be 'default' for internal use |
830
847
  | `open` | `boolean` | `false` | Whether the popover is currently open |
831
848
  | `position` | `'top' \| 'bottom' \| 'left' \| 'right' \| 'auto'` | `'bottom'` | Position of the popover relative to its trigger |
832
849
  | `align` | `'start' \| 'center' \| 'end'` | `'start'` | Alignment of the popover |
@@ -844,8 +861,8 @@ and other top-layer elements. Falls back gracefully in older browsers.
844
861
 
845
862
  | Event | Type | Description |
846
863
  |-------|------|-------------|
847
- | `lePopoverOpen` | `EventEmitter<void>` | Emitted when the popover opens |
848
- | `lePopoverClose` | `EventEmitter<void>` | Emitted when the popover closes |
864
+ | `lePopoverOpen` | `EventEmitter<void> \| undefined` | Emitted when the popover opens |
865
+ | `lePopoverClose` | `EventEmitter<void> \| undefined` | Emitted when the popover closes |
849
866
 
850
867
  ### Slots
851
868
 
@@ -888,8 +905,8 @@ via leAlert(), leConfirm(), lePrompt().
888
905
  | Event | Type | Description |
889
906
  |-------|------|-------------|
890
907
  | `leConfirm` | `EventEmitter<PopupResult>` | Emitted when the popup is confirmed (OK clicked) |
891
- | `leCancel` | `EventEmitter<PopupResult>` | Emitted when the popup is cancelled (Cancel clicked or dismissed) |
892
- | `leOpen` | `EventEmitter<void>` | Emitted when the popup opens |
908
+ | `leCancel` | `EventEmitter<PopupResult> \| undefined` | Emitted when the popup is cancelled (Cancel clicked or dismissed) |
909
+ | `leOpen` | `EventEmitter<void> \| undefined` | Emitted when the popup opens |
893
910
  | `leClose` | `EventEmitter<PopupResult>` | Emitted when the popup closes |
894
911
 
895
912
  ### Slots
@@ -912,7 +929,6 @@ via leAlert(), leConfirm(), lePrompt().
912
929
  | `value` | `number` | `0` | |
913
930
  | `padding` | `number` | `0` | |
914
931
  | `paths` | `string` | | |
915
- | `progressPaths` | `any[]` | | |
916
932
  | `params` | `{
917
933
  width: number;
918
934
  diameter: number;
@@ -972,7 +988,7 @@ Perfect for toggling between a small set of related options.
972
988
 
973
989
  | Event | Type | Description |
974
990
  |-------|------|-------------|
975
- | `leChange` | `EventEmitter<LeOptionSelectDetail>` | Emitted when the selection changes. |
991
+ | `leChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selection changes. |
976
992
 
977
993
  ### CSS Variables
978
994
 
@@ -985,6 +1001,35 @@ Perfect for toggling between a small set of related options.
985
1001
 
986
1002
  ---
987
1003
 
1004
+ ## <le-select>
1005
+
1006
+ A select dropdown component for single selection.
1007
+
1008
+ ### Properties
1009
+
1010
+ | Name | Type | Default | Description |
1011
+ |------|------|---------|-------------|
1012
+ | `el` | `HTMLElement` | | |
1013
+ | `options` | `LeOption[] \| string` | `[]` | The options to display in the dropdown. |
1014
+ | `value` | `LeOptionValue \| undefined` | | The currently selected value. |
1015
+ | `placeholder` | `string` | `'Select an option'` | Placeholder text when no option is selected. |
1016
+ | `disabled` | `boolean` | `false` | Whether the select is disabled. |
1017
+ | `required` | `boolean` | `false` | Whether selection is required. |
1018
+ | `name` | `string \| undefined` | | Name attribute for form submission. |
1019
+ | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Size variant of the select. |
1020
+ | `variant` | `'default' \| 'outlined' \| 'solid'` | `'default'` | Visual variant of the select. |
1021
+ | `open` | `boolean` | `false` | Whether the dropdown is currently open. |
1022
+
1023
+ ### Events
1024
+
1025
+ | Event | Type | Description |
1026
+ |-------|------|-------------|
1027
+ | `leChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selected value changes. |
1028
+ | `leOpen` | `EventEmitter<void> \| undefined` | Emitted when the dropdown opens. |
1029
+ | `leClose` | `EventEmitter<void> \| undefined` | Emitted when the dropdown closes. |
1030
+
1031
+ ---
1032
+
988
1033
  ## <le-side-panel>
989
1034
 
990
1035
  ### Properties
@@ -1032,7 +1077,7 @@ Perfect for toggling between a small set of related options.
1032
1077
  | `action` | `LeSidePanelToggleAction` | `'toggle'` | Action to emit. Default toggles the panel. |
1033
1078
  | `shortcut` | `string \| undefined` | | Optional keyboard shortcut like `Mod+B` or `Alt+N`. |
1034
1079
  | `disabled` | `boolean` | `false` | Disables the toggle. |
1035
- | `mode` | `'default' \| 'admin'` | | |
1080
+ | `mode` | `'default' \| 'admin'` | `'default'` | |
1036
1081
  | `variant` | `'solid' \| 'outlined' \| 'clear' \| 'system'` | `'solid'` | |
1037
1082
  | `color` | `'primary' \| 'secondary' \| 'success' \| 'warning' \| 'danger' \| 'info'` | `'primary'` | |
1038
1083
  | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | |
@@ -1142,39 +1187,41 @@ A text input component with support for labels, descriptions, icons, and externa
1142
1187
  |------|------|---------|-------------|
1143
1188
  | `el` | `HTMLElement` | | |
1144
1189
  | `inputRef` | `(el: HTMLInputElement) => void \| undefined` | | Pass the ref of the input element to the parent component |
1145
- | `mode` | `'default' \| 'admin'` | | Mode of the popover should be 'default' for internal use |
1146
- | `value` | `string` | | The value of the input |
1147
- | `name` | `string` | | The name of the input |
1148
- | `type` | `'text' \| 'email' \| 'password' \| 'tel' \| 'url'` | `'text'` | The type of the input (text, email, password, etc.) |
1149
- | `label` | `string` | | Label for the input |
1150
- | `iconStart` | `string` | | Icon for the start icon |
1151
- | `iconEnd` | `string` | | Icon for the end icon |
1152
- | `placeholder` | `string` | | Placeholder text |
1153
- | `hideDescription` | `boolean` | `false` | Hide description slot |
1190
+ | `mode` | `'default' \| 'admin'` | `'default'` | Mode of the popover should be 'default' for internal use |
1191
+ | `value` | `string \| undefined` | | The value of the input |
1192
+ | `name` | `string \| undefined` | | The name of the input |
1193
+ | `type` | `'text' \| 'email' \| 'password' \| 'search' \| 'tel' \| 'url'` | `'text'` | The type of the input (text, email, password, etc.) |
1194
+ | `label` | `string \| undefined` | | Label for the input |
1195
+ | `description` | `string \| undefined` | | Description text displayed below the input |
1196
+ | `iconStart` | `string \| undefined` | | Icon for the start icon |
1197
+ | `iconEnd` | `string \| undefined` | | Icon for the end icon |
1198
+ | `placeholder` | `string \| undefined` | | Placeholder text |
1199
+ | `clearable` | `boolean` | `false` | Whether the input can be cleared with a built-in clear button |
1200
+ | `autocomplete` | `string \| undefined` | | Native autocomplete attribute forwarded to the input |
1154
1201
  | `disabled` | `boolean` | `false` | Whether the input is disabled |
1155
1202
  | `readonly` | `boolean` | `false` | Whether the input is read-only |
1156
- | `externalId` | `string` | | External ID for linking with external systems |
1203
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems |
1157
1204
 
1158
1205
  ### Events
1159
1206
 
1160
1207
  | Event | Type | Description |
1161
1208
  |-------|------|-------------|
1162
- | `change` | `EventEmitter<{
1163
- value: string;
1164
- name: string;
1165
- externalId: string;
1166
- }>` | Emitted when the value changes (on blur or Enter) |
1167
- | `input` | `EventEmitter<{
1168
- value: string;
1169
- name: string;
1170
- externalId: string;
1171
- }>` | Emitted when the input value changes (on keystroke) |
1209
+ | `leChange` | `EventEmitter<{
1210
+ value?: string;
1211
+ name?: string;
1212
+ externalId?: string;
1213
+ }> \| undefined` | Emitted when the value changes (on blur or Enter) |
1214
+ | `leInput` | `EventEmitter<{
1215
+ value?: string;
1216
+ name?: string;
1217
+ externalId?: string;
1218
+ }> \| undefined` | Emitted when the input value changes (on keystroke) |
1172
1219
 
1173
1220
  ### Slots
1174
1221
 
1175
1222
  | Name | Description |
1176
1223
  |------|-------------|
1177
- | Default | The label text for the input |
1224
+ | `"label"` | The label content for the input |
1178
1225
  | `"description"` | Additional description text displayed below the input |
1179
1226
  | `"icon-start"` | Icon to display at the start of the input |
1180
1227
  | `"icon-end"` | Icon to display at the end of the input |
@@ -1201,7 +1248,7 @@ A flexible tab component with multiple variants and states.
1201
1248
  | Name | Type | Default | Description |
1202
1249
  |------|------|---------|-------------|
1203
1250
  | `el` | `HTMLElement` | | |
1204
- | `mode` | `'default' \| 'admin'` | | Mode of the popover should be 'default' for internal use |
1251
+ | `mode` | `'default' \| 'admin'` | `'default'` | Mode of the popover should be 'default' for internal use |
1205
1252
  | `label` | `string \| undefined` | | Label if it is not provided via slot |
1206
1253
  | `value` | `string \| undefined` | | Value of the tab, defaults to label if not provided |
1207
1254
  | `variant` | `'underlined' \| 'solid' \| 'pills' \| 'enclosed' \| 'icon-only'` | `'underlined'` | Tab variant style |
@@ -1223,7 +1270,7 @@ A flexible tab component with multiple variants and states.
1223
1270
 
1224
1271
  | Event | Type | Description |
1225
1272
  |-------|------|-------------|
1226
- | `click` | `EventEmitter<PointerEvent>` | Emitted when the tab is clicked. This is a custom event that wraps the native click but ensures the target is the le-tab. |
1273
+ | `click` | `EventEmitter<PointerEvent> \| undefined` | Emitted when the tab is clicked. This is a custom event that wraps the native click but ensures the target is the le-tab. |
1227
1274
 
1228
1275
  ### Slots
1229
1276
 
@@ -1269,7 +1316,7 @@ use `le-tabs` instead.
1269
1316
 
1270
1317
  | Event | Type | Description |
1271
1318
  |-------|------|-------------|
1272
- | `leTabChange` | `EventEmitter<LeOptionSelectDetail>` | Emitted when the selected tab changes. |
1319
+ | `leTabChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selected tab changes. |
1273
1320
 
1274
1321
  ### CSS Variables
1275
1322
 
@@ -1342,7 +1389,7 @@ Full keyboard navigation and ARIA support included.
1342
1389
 
1343
1390
  | Event | Type | Description |
1344
1391
  |-------|------|-------------|
1345
- | `leTabChange` | `EventEmitter<LeOptionSelectDetail>` | Emitted when the selected tab changes. |
1392
+ | `leTabChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selected tab changes. |
1346
1393
 
1347
1394
  ### Slots
1348
1395
 
@@ -1371,8 +1418,8 @@ A tag/chip component for displaying labels with optional dismiss functionality.
1371
1418
 
1372
1419
  | Name | Type | Default | Description |
1373
1420
  |------|------|---------|-------------|
1374
- | `label` | `string` | | The text label to display in the tag. |
1375
- | `mode` | `'default' \| 'admin'` | | Mode of the popover should be 'default' for internal use |
1421
+ | `label` | `string \| undefined` | | The text label to display in the tag. |
1422
+ | `mode` | `'default' \| 'admin' \| undefined` | | Mode of the popover should be 'default' for internal use |
1376
1423
  | `icon` | `string \| undefined` | | Icon to display before the label. Can be an emoji, URL, or icon name. |
1377
1424
  | `dismissible` | `boolean` | `false` | Whether the tag can be dismissed (shows close button). |
1378
1425
  | `disabled` | `boolean` | `false` | Whether the tag is disabled. |
@@ -1383,7 +1430,7 @@ A tag/chip component for displaying labels with optional dismiss functionality.
1383
1430
 
1384
1431
  | Event | Type | Description |
1385
1432
  |-------|------|-------------|
1386
- | `leDismiss` | `EventEmitter<void>` | Emitted when the dismiss button is clicked. |
1433
+ | `leDismiss` | `EventEmitter<void> \| undefined` | Emitted when the dismiss button is clicked. |
1387
1434
 
1388
1435
  ### Slots
1389
1436
 
@@ -1449,12 +1496,12 @@ toolbar for bold, italic, links, and paragraph type selection.
1449
1496
  | `center` | `string` | `'center'` | |
1450
1497
  | `value` | `number` | `0` | |
1451
1498
  | `rotating` | `boolean` | `false` | Internal state using properties instead of |
1452
- | `centerX` | `number` | | |
1453
- | `centerY` | `number` | | |
1454
- | `pageX` | `number` | | |
1455
- | `pageY` | `number` | | |
1499
+ | `centerX` | `number \| undefined` | | |
1500
+ | `centerY` | `number \| undefined` | | |
1501
+ | `pageX` | `number \| undefined` | | |
1502
+ | `pageY` | `number \| undefined` | | |
1456
1503
  | `currentAngle` | `number` | `0` | |
1457
- | `startAngle` | `number` | | |
1504
+ | `startAngle` | `number \| undefined` | | |
1458
1505
 
1459
1506
  ---
1460
1507
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "le-kit",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
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",