le-kit 0.6.0 → 0.6.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.
Files changed (2) hide show
  1. package/LLM_CONTEXT.md +100 -56
  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
 
@@ -325,15 +326,20 @@ A checkbox component with support for labels, descriptions, and external IDs.
325
326
  | `el` | `HTMLElement` | | |
326
327
  | `checked` | `boolean` | `false` | Whether the checkbox is checked |
327
328
  | `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) |
329
+ | `name` | `string \| undefined` | | The name of the checkbox input |
330
+ | `value` | `string \| undefined` | | The value of the checkbox input |
331
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems (e.g. database ID, PDF form field ID) |
331
332
 
332
333
  ### Events
333
334
 
334
335
  | Event | Type | Description |
335
336
  |-------|------|-------------|
336
- | `change` | `EventEmitter<{ checked: boolean; value: string; name: string; externalId: string }>` | Emitted when the checked state changes |
337
+ | `change` | `EventEmitter<{
338
+ checked: boolean;
339
+ value?: string;
340
+ name?: string;
341
+ externalId?: string;
342
+ }>` | Emitted when the checked state changes |
337
343
 
338
344
  ### Slots
339
345
 
@@ -364,24 +370,24 @@ Supports standard copy/paste and range selection behaviors.
364
370
  |------|------|---------|-------------|
365
371
  | `el` | `HTMLElement` | | |
366
372
  | `value` | `string` | `''` | The value of the input |
367
- | `name` | `string` | | The name of the input |
368
- | `label` | `string` | | Label for the input |
373
+ | `name` | `string \| undefined` | | The name of the input |
374
+ | `label` | `string \| undefined` | | Label for the input |
369
375
  | `length` | `number` | `6` | Length of the code (number of characters) |
370
376
  | `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
377
  | `type` | `'text' \| 'number'` | `'text'` | The type of code (numeric or alphanumeric) This affects the keyboard layout on mobile devices. |
372
378
  | `disabled` | `boolean` | `false` | Whether the input is disabled |
373
379
  | `readonly` | `boolean` | `false` | Whether the input is read-only |
374
- | `externalId` | `string` | | External ID for linking with external systems |
380
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems |
375
381
  | `error` | `boolean` | `false` | Internal validation state (can be set externally manually or via simple check) |
376
382
 
377
383
  ### Events
378
384
 
379
385
  | Event | Type | Description |
380
386
  |-------|------|-------------|
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 |
387
+ | `leChange` | `EventEmitter<{ value: string; name?: string; externalId?: string }> \| undefined` | Emitted when the value changes (on blur or Enter) |
388
+ | `leInput` | `EventEmitter<{ value: string; name?: string; externalId?: string }> \| undefined` | Emitted when the input value changes (on keystroke) |
389
+ | `leFocus` | `EventEmitter<void> \| undefined` | Emitted when the input is focused |
390
+ | `leBlur` | `EventEmitter<void> \| undefined` | Emitted when the input is blurred |
385
391
 
386
392
  ### Slots
387
393
 
@@ -671,7 +677,7 @@ The header component updates that variable when it renders.
671
677
  | Name | Type | Default | Description |
672
678
  |------|------|---------|-------------|
673
679
  | `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. |
680
+ | `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
681
  | `size` | `number` | `16` | Size of the icon in pixels. Default is 16. |
676
682
 
677
683
  ---
@@ -771,10 +777,10 @@ A number input component with validation, keyboard controls, and custom spinners
771
777
  | Name | Type | Default | Description |
772
778
  |------|------|---------|-------------|
773
779
  | `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 |
780
+ | `value` | `number \| undefined` | | The value of the input |
781
+ | `name` | `string \| undefined` | | The name of the input |
782
+ | `label` | `string \| undefined` | | Label for the input |
783
+ | `placeholder` | `string \| undefined` | | Placeholder text |
778
784
  | `min` | `number \| undefined` | | Minimum allowed value |
779
785
  | `max` | `number \| undefined` | | Maximum allowed value |
780
786
  | `step` | `number` | `1` | Step value for increment/decrement |
@@ -783,14 +789,24 @@ A number input component with validation, keyboard controls, and custom spinners
783
789
  | `readonly` | `boolean` | `false` | Whether the input is read-only |
784
790
  | `iconStart` | `string \| undefined` | | Icon for the start icon |
785
791
  | `showSpinners` | `boolean` | `true` | Whether to show the spinner controls |
786
- | `externalId` | `string` | | External ID for linking with external systems |
792
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems |
787
793
 
788
794
  ### Events
789
795
 
790
796
  | Event | Type | Description |
791
797
  |-------|------|-------------|
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) |
798
+ | `leChange` | `EventEmitter<{
799
+ value?: number;
800
+ name?: string;
801
+ externalId?: string;
802
+ isValid: boolean;
803
+ }> \| undefined` | Emitted when the value changes (on blur or Enter) |
804
+ | `leInput` | `EventEmitter<{
805
+ value?: number;
806
+ name?: string;
807
+ externalId?: string;
808
+ isValid: boolean;
809
+ }> \| undefined` | Emitted when the input value changes (on keystroke/spin) |
794
810
 
795
811
  ### Slots
796
812
 
@@ -826,7 +842,7 @@ and other top-layer elements. Falls back gracefully in older browsers.
826
842
  | Name | Type | Default | Description |
827
843
  |------|------|---------|-------------|
828
844
  | `el` | `HTMLElement` | | |
829
- | `mode` | `'default' \| 'admin'` | | Mode of the popover should be 'default' for internal use |
845
+ | `mode` | `'default' \| 'admin'` | `'default'` | Mode of the popover should be 'default' for internal use |
830
846
  | `open` | `boolean` | `false` | Whether the popover is currently open |
831
847
  | `position` | `'top' \| 'bottom' \| 'left' \| 'right' \| 'auto'` | `'bottom'` | Position of the popover relative to its trigger |
832
848
  | `align` | `'start' \| 'center' \| 'end'` | `'start'` | Alignment of the popover |
@@ -844,8 +860,8 @@ and other top-layer elements. Falls back gracefully in older browsers.
844
860
 
845
861
  | Event | Type | Description |
846
862
  |-------|------|-------------|
847
- | `lePopoverOpen` | `EventEmitter<void>` | Emitted when the popover opens |
848
- | `lePopoverClose` | `EventEmitter<void>` | Emitted when the popover closes |
863
+ | `lePopoverOpen` | `EventEmitter<void> \| undefined` | Emitted when the popover opens |
864
+ | `lePopoverClose` | `EventEmitter<void> \| undefined` | Emitted when the popover closes |
849
865
 
850
866
  ### Slots
851
867
 
@@ -888,8 +904,8 @@ via leAlert(), leConfirm(), lePrompt().
888
904
  | Event | Type | Description |
889
905
  |-------|------|-------------|
890
906
  | `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 |
907
+ | `leCancel` | `EventEmitter<PopupResult> \| undefined` | Emitted when the popup is cancelled (Cancel clicked or dismissed) |
908
+ | `leOpen` | `EventEmitter<void> \| undefined` | Emitted when the popup opens |
893
909
  | `leClose` | `EventEmitter<PopupResult>` | Emitted when the popup closes |
894
910
 
895
911
  ### Slots
@@ -912,7 +928,6 @@ via leAlert(), leConfirm(), lePrompt().
912
928
  | `value` | `number` | `0` | |
913
929
  | `padding` | `number` | `0` | |
914
930
  | `paths` | `string` | | |
915
- | `progressPaths` | `any[]` | | |
916
931
  | `params` | `{
917
932
  width: number;
918
933
  diameter: number;
@@ -972,7 +987,7 @@ Perfect for toggling between a small set of related options.
972
987
 
973
988
  | Event | Type | Description |
974
989
  |-------|------|-------------|
975
- | `leChange` | `EventEmitter<LeOptionSelectDetail>` | Emitted when the selection changes. |
990
+ | `leChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selection changes. |
976
991
 
977
992
  ### CSS Variables
978
993
 
@@ -985,6 +1000,35 @@ Perfect for toggling between a small set of related options.
985
1000
 
986
1001
  ---
987
1002
 
1003
+ ## <le-select>
1004
+
1005
+ A select dropdown component for single selection.
1006
+
1007
+ ### Properties
1008
+
1009
+ | Name | Type | Default | Description |
1010
+ |------|------|---------|-------------|
1011
+ | `el` | `HTMLElement` | | |
1012
+ | `options` | `LeOption[] \| string` | `[]` | The options to display in the dropdown. |
1013
+ | `value` | `LeOptionValue \| undefined` | | The currently selected value. |
1014
+ | `placeholder` | `string` | `'Select an option'` | Placeholder text when no option is selected. |
1015
+ | `disabled` | `boolean` | `false` | Whether the select is disabled. |
1016
+ | `required` | `boolean` | `false` | Whether selection is required. |
1017
+ | `name` | `string \| undefined` | | Name attribute for form submission. |
1018
+ | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Size variant of the select. |
1019
+ | `variant` | `'default' \| 'outlined' \| 'solid'` | `'default'` | Visual variant of the select. |
1020
+ | `open` | `boolean` | `false` | Whether the dropdown is currently open. |
1021
+
1022
+ ### Events
1023
+
1024
+ | Event | Type | Description |
1025
+ |-------|------|-------------|
1026
+ | `leChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selected value changes. |
1027
+ | `leOpen` | `EventEmitter<void> \| undefined` | Emitted when the dropdown opens. |
1028
+ | `leClose` | `EventEmitter<void> \| undefined` | Emitted when the dropdown closes. |
1029
+
1030
+ ---
1031
+
988
1032
  ## <le-side-panel>
989
1033
 
990
1034
  ### Properties
@@ -1032,7 +1076,7 @@ Perfect for toggling between a small set of related options.
1032
1076
  | `action` | `LeSidePanelToggleAction` | `'toggle'` | Action to emit. Default toggles the panel. |
1033
1077
  | `shortcut` | `string \| undefined` | | Optional keyboard shortcut like `Mod+B` or `Alt+N`. |
1034
1078
  | `disabled` | `boolean` | `false` | Disables the toggle. |
1035
- | `mode` | `'default' \| 'admin'` | | |
1079
+ | `mode` | `'default' \| 'admin'` | `'default'` | |
1036
1080
  | `variant` | `'solid' \| 'outlined' \| 'clear' \| 'system'` | `'solid'` | |
1037
1081
  | `color` | `'primary' \| 'secondary' \| 'success' \| 'warning' \| 'danger' \| 'info'` | `'primary'` | |
1038
1082
  | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | |
@@ -1142,33 +1186,33 @@ A text input component with support for labels, descriptions, icons, and externa
1142
1186
  |------|------|---------|-------------|
1143
1187
  | `el` | `HTMLElement` | | |
1144
1188
  | `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 |
1189
+ | `mode` | `'default' \| 'admin'` | `'default'` | Mode of the popover should be 'default' for internal use |
1190
+ | `value` | `string \| undefined` | | The value of the input |
1191
+ | `name` | `string \| undefined` | | The name of the input |
1148
1192
  | `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 |
1193
+ | `label` | `string \| undefined` | | Label for the input |
1194
+ | `iconStart` | `string \| undefined` | | Icon for the start icon |
1195
+ | `iconEnd` | `string \| undefined` | | Icon for the end icon |
1196
+ | `placeholder` | `string \| undefined` | | Placeholder text |
1153
1197
  | `hideDescription` | `boolean` | `false` | Hide description slot |
1154
1198
  | `disabled` | `boolean` | `false` | Whether the input is disabled |
1155
1199
  | `readonly` | `boolean` | `false` | Whether the input is read-only |
1156
- | `externalId` | `string` | | External ID for linking with external systems |
1200
+ | `externalId` | `string \| undefined` | | External ID for linking with external systems |
1157
1201
 
1158
1202
  ### Events
1159
1203
 
1160
1204
  | Event | Type | Description |
1161
1205
  |-------|------|-------------|
1162
1206
  | `change` | `EventEmitter<{
1163
- value: string;
1164
- name: string;
1165
- externalId: string;
1166
- }>` | Emitted when the value changes (on blur or Enter) |
1207
+ value?: string;
1208
+ name?: string;
1209
+ externalId?: string;
1210
+ }> \| undefined` | Emitted when the value changes (on blur or Enter) |
1167
1211
  | `input` | `EventEmitter<{
1168
- value: string;
1169
- name: string;
1170
- externalId: string;
1171
- }>` | Emitted when the input value changes (on keystroke) |
1212
+ value?: string;
1213
+ name?: string;
1214
+ externalId?: string;
1215
+ }> \| undefined` | Emitted when the input value changes (on keystroke) |
1172
1216
 
1173
1217
  ### Slots
1174
1218
 
@@ -1201,7 +1245,7 @@ A flexible tab component with multiple variants and states.
1201
1245
  | Name | Type | Default | Description |
1202
1246
  |------|------|---------|-------------|
1203
1247
  | `el` | `HTMLElement` | | |
1204
- | `mode` | `'default' \| 'admin'` | | Mode of the popover should be 'default' for internal use |
1248
+ | `mode` | `'default' \| 'admin'` | `'default'` | Mode of the popover should be 'default' for internal use |
1205
1249
  | `label` | `string \| undefined` | | Label if it is not provided via slot |
1206
1250
  | `value` | `string \| undefined` | | Value of the tab, defaults to label if not provided |
1207
1251
  | `variant` | `'underlined' \| 'solid' \| 'pills' \| 'enclosed' \| 'icon-only'` | `'underlined'` | Tab variant style |
@@ -1223,7 +1267,7 @@ A flexible tab component with multiple variants and states.
1223
1267
 
1224
1268
  | Event | Type | Description |
1225
1269
  |-------|------|-------------|
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. |
1270
+ | `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
1271
 
1228
1272
  ### Slots
1229
1273
 
@@ -1269,7 +1313,7 @@ use `le-tabs` instead.
1269
1313
 
1270
1314
  | Event | Type | Description |
1271
1315
  |-------|------|-------------|
1272
- | `leTabChange` | `EventEmitter<LeOptionSelectDetail>` | Emitted when the selected tab changes. |
1316
+ | `leTabChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selected tab changes. |
1273
1317
 
1274
1318
  ### CSS Variables
1275
1319
 
@@ -1342,7 +1386,7 @@ Full keyboard navigation and ARIA support included.
1342
1386
 
1343
1387
  | Event | Type | Description |
1344
1388
  |-------|------|-------------|
1345
- | `leTabChange` | `EventEmitter<LeOptionSelectDetail>` | Emitted when the selected tab changes. |
1389
+ | `leTabChange` | `EventEmitter<LeOptionSelectDetail> \| undefined` | Emitted when the selected tab changes. |
1346
1390
 
1347
1391
  ### Slots
1348
1392
 
@@ -1371,8 +1415,8 @@ A tag/chip component for displaying labels with optional dismiss functionality.
1371
1415
 
1372
1416
  | Name | Type | Default | Description |
1373
1417
  |------|------|---------|-------------|
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 |
1418
+ | `label` | `string \| undefined` | | The text label to display in the tag. |
1419
+ | `mode` | `'default' \| 'admin' \| undefined` | | Mode of the popover should be 'default' for internal use |
1376
1420
  | `icon` | `string \| undefined` | | Icon to display before the label. Can be an emoji, URL, or icon name. |
1377
1421
  | `dismissible` | `boolean` | `false` | Whether the tag can be dismissed (shows close button). |
1378
1422
  | `disabled` | `boolean` | `false` | Whether the tag is disabled. |
@@ -1383,7 +1427,7 @@ A tag/chip component for displaying labels with optional dismiss functionality.
1383
1427
 
1384
1428
  | Event | Type | Description |
1385
1429
  |-------|------|-------------|
1386
- | `leDismiss` | `EventEmitter<void>` | Emitted when the dismiss button is clicked. |
1430
+ | `leDismiss` | `EventEmitter<void> \| undefined` | Emitted when the dismiss button is clicked. |
1387
1431
 
1388
1432
  ### Slots
1389
1433
 
@@ -1449,12 +1493,12 @@ toolbar for bold, italic, links, and paragraph type selection.
1449
1493
  | `center` | `string` | `'center'` | |
1450
1494
  | `value` | `number` | `0` | |
1451
1495
  | `rotating` | `boolean` | `false` | Internal state using properties instead of |
1452
- | `centerX` | `number` | | |
1453
- | `centerY` | `number` | | |
1454
- | `pageX` | `number` | | |
1455
- | `pageY` | `number` | | |
1496
+ | `centerX` | `number \| undefined` | | |
1497
+ | `centerY` | `number \| undefined` | | |
1498
+ | `pageX` | `number \| undefined` | | |
1499
+ | `pageY` | `number \| undefined` | | |
1456
1500
  | `currentAngle` | `number` | `0` | |
1457
- | `startAngle` | `number` | | |
1501
+ | `startAngle` | `number \| undefined` | | |
1458
1502
 
1459
1503
  ---
1460
1504
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "le-kit",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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",