@limetech/lime-elements 39.17.2 → 39.18.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 (161) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-action-bar_3.cjs.entry.js +17 -49
  4. package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
  5. package/dist/cjs/limel-banner.cjs.entry.js +1 -1
  6. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-button.cjs.entry.js +2 -2
  8. package/dist/cjs/limel-callout.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-card.cjs.entry.js +1 -1
  10. package/dist/cjs/limel-chart.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-chip_2.cjs.entry.js +3 -3
  12. package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
  13. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
  15. package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
  16. package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
  17. package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-header.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
  23. package/dist/cjs/limel-list-item.cjs.entry.js +1 -1
  24. package/dist/cjs/limel-picker.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
  26. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
  27. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  28. package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
  30. package/dist/cjs/limel-table.cjs.entry.js +1 -1
  31. package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +1 -1
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/cjs/{translations-Bu_0fli7.js → translations-D4j_eojG.js} +8 -24
  34. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -34
  35. package/dist/collection/components/action-bar/action-bar.css +0 -193
  36. package/dist/collection/components/action-bar/action-bar.js +41 -63
  37. package/dist/collection/components/banner/banner.js +10 -3
  38. package/dist/collection/components/button/button.js +9 -3
  39. package/dist/collection/components/card/card.js +8 -2
  40. package/dist/collection/components/chip/chip.js +8 -2
  41. package/dist/collection/components/chip-set/chip-set.js +10 -3
  42. package/dist/collection/components/collapsible-section/collapsible-section.js +8 -2
  43. package/dist/collection/components/header/header.js +8 -2
  44. package/dist/collection/components/icon-button/icon-button.js +8 -2
  45. package/dist/collection/components/input-field/input-field.js +19 -5
  46. package/dist/collection/components/picker/picker.js +10 -3
  47. package/dist/collection/components/profile-picture/profile-picture.js +7 -1
  48. package/dist/collection/components/shortcut/shortcut.js +10 -3
  49. package/dist/collection/components/split-button/split-button.js +11 -4
  50. package/dist/collection/translations/da.js +1 -3
  51. package/dist/collection/translations/de.js +1 -3
  52. package/dist/collection/translations/en.js +1 -3
  53. package/dist/collection/translations/fi.js +1 -3
  54. package/dist/collection/translations/fr.js +1 -3
  55. package/dist/collection/translations/nl.js +1 -3
  56. package/dist/collection/translations/no.js +1 -3
  57. package/dist/collection/translations/sv.js +1 -3
  58. package/dist/esm/lime-elements.js +1 -1
  59. package/dist/esm/limel-action-bar_3.entry.js +17 -49
  60. package/dist/esm/limel-ai-avatar.entry.js +1 -1
  61. package/dist/esm/limel-banner.entry.js +1 -1
  62. package/dist/esm/limel-breadcrumbs_7.entry.js +1 -1
  63. package/dist/esm/limel-button.entry.js +2 -2
  64. package/dist/esm/limel-callout.entry.js +1 -1
  65. package/dist/esm/limel-card.entry.js +1 -1
  66. package/dist/esm/limel-chart.entry.js +1 -1
  67. package/dist/esm/limel-chip_2.entry.js +3 -3
  68. package/dist/esm/limel-code-diff.entry.js +1 -1
  69. package/dist/esm/limel-code-editor.entry.js +1 -1
  70. package/dist/esm/limel-collapsible-section.entry.js +2 -2
  71. package/dist/esm/limel-drag-handle.entry.js +1 -1
  72. package/dist/esm/limel-email-viewer.entry.js +1 -1
  73. package/dist/esm/limel-file-viewer.entry.js +1 -1
  74. package/dist/esm/limel-file.entry.js +1 -1
  75. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  76. package/dist/esm/limel-header.entry.js +1 -1
  77. package/dist/esm/limel-icon-button.entry.js +1 -1
  78. package/dist/esm/limel-linear-progress.entry.js +1 -1
  79. package/dist/esm/limel-list-item.entry.js +1 -1
  80. package/dist/esm/limel-picker.entry.js +1 -1
  81. package/dist/esm/limel-profile-picture.entry.js +1 -1
  82. package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
  83. package/dist/esm/limel-shortcut.entry.js +1 -1
  84. package/dist/esm/limel-snackbar.entry.js +1 -1
  85. package/dist/esm/limel-split-button.entry.js +2 -2
  86. package/dist/esm/limel-table.entry.js +1 -1
  87. package/dist/esm/limel-text-editor-link-menu.entry.js +1 -1
  88. package/dist/esm/loader.js +1 -1
  89. package/dist/esm/{translations-DVRaJQvC.js → translations-Dv3YcsA7.js} +8 -24
  90. package/dist/lime-elements/lime-elements.esm.js +1 -1
  91. package/dist/lime-elements/{p-41be4893.entry.js → p-05d533b5.entry.js} +1 -1
  92. package/dist/lime-elements/{p-01e2da83.entry.js → p-067a13bb.entry.js} +1 -1
  93. package/dist/lime-elements/{p-db826a0e.entry.js → p-104d0fb3.entry.js} +1 -1
  94. package/dist/lime-elements/{p-b91b1aed.entry.js → p-19d0861e.entry.js} +1 -1
  95. package/dist/lime-elements/{p-c7110762.entry.js → p-1fba4922.entry.js} +1 -1
  96. package/dist/lime-elements/{p-a334ac50.entry.js → p-42b9b57a.entry.js} +1 -1
  97. package/dist/lime-elements/p-504dcdb6.entry.js +1 -0
  98. package/dist/lime-elements/{p-341857fa.entry.js → p-512b2e14.entry.js} +1 -1
  99. package/dist/lime-elements/p-51734986.entry.js +1 -0
  100. package/dist/lime-elements/p-56cc6800.entry.js +1 -0
  101. package/dist/lime-elements/{p-61253dea.entry.js → p-59f1460d.entry.js} +1 -1
  102. package/dist/lime-elements/{p-4b761d70.entry.js → p-5b31c118.entry.js} +1 -1
  103. package/dist/lime-elements/{p-1088b462.entry.js → p-5cc370fe.entry.js} +1 -1
  104. package/dist/lime-elements/{p-8784a57c.entry.js → p-5eadcd4a.entry.js} +1 -1
  105. package/dist/lime-elements/{p-44295cc0.entry.js → p-7436490f.entry.js} +1 -1
  106. package/dist/lime-elements/{p-4e130ff5.entry.js → p-757896f5.entry.js} +1 -1
  107. package/dist/lime-elements/{p-a489f4b0.entry.js → p-9caeca33.entry.js} +1 -1
  108. package/dist/lime-elements/p-Dv3YcsA7.js +1 -0
  109. package/dist/lime-elements/{p-afcf580c.entry.js → p-a416d439.entry.js} +1 -1
  110. package/dist/lime-elements/{p-585b0a3a.entry.js → p-a435d1c3.entry.js} +1 -1
  111. package/dist/lime-elements/p-aa43c751.entry.js +1 -0
  112. package/dist/lime-elements/{p-b46fa7b5.entry.js → p-b306735b.entry.js} +1 -1
  113. package/dist/lime-elements/{p-3a662d7e.entry.js → p-cab66fcc.entry.js} +1 -1
  114. package/dist/lime-elements/{p-c2c6dba1.entry.js → p-cae35eb0.entry.js} +1 -1
  115. package/dist/lime-elements/{p-268d2a30.entry.js → p-cc17846b.entry.js} +1 -1
  116. package/dist/lime-elements/{p-21dc4586.entry.js → p-cebdd797.entry.js} +1 -1
  117. package/dist/lime-elements/{p-25ae3a55.entry.js → p-cfe85e59.entry.js} +1 -1
  118. package/dist/lime-elements/{p-7e584d40.entry.js → p-d227f4df.entry.js} +1 -1
  119. package/dist/lime-elements/{p-3a4e858e.entry.js → p-eff0a330.entry.js} +1 -1
  120. package/dist/lime-elements/{p-e5b03d42.entry.js → p-f2f01f2a.entry.js} +1 -1
  121. package/dist/types/components/action-bar/action-bar-item/action-bar-overflow-menu.d.ts +0 -7
  122. package/dist/types/components/action-bar/action-bar.d.ts +14 -15
  123. package/dist/types/components/action-bar/action-bar.types.d.ts +2 -2
  124. package/dist/types/components/banner/banner.d.ts +2 -1
  125. package/dist/types/components/button/button.d.ts +2 -2
  126. package/dist/types/components/card/card.d.ts +2 -2
  127. package/dist/types/components/chip/chip.d.ts +2 -2
  128. package/dist/types/components/chip-set/chip-set.d.ts +2 -1
  129. package/dist/types/components/chip-set/chip.types.d.ts +2 -2
  130. package/dist/types/components/collapsible-section/collapsible-section.d.ts +2 -2
  131. package/dist/types/components/dialog/dialog.types.d.ts +2 -2
  132. package/dist/types/components/dock/dock.types.d.ts +2 -1
  133. package/dist/types/components/dynamic-label/label.types.d.ts +2 -2
  134. package/dist/types/components/header/header.d.ts +2 -2
  135. package/dist/types/components/icon-button/icon-button.d.ts +2 -2
  136. package/dist/types/components/input-field/input-field.d.ts +3 -2
  137. package/dist/types/components/list-item/list-item.types.d.ts +2 -2
  138. package/dist/types/components/menu/menu.types.d.ts +2 -2
  139. package/dist/types/components/picker/picker.d.ts +2 -1
  140. package/dist/types/components/profile-picture/profile-picture.d.ts +2 -2
  141. package/dist/types/components/select/option.types.d.ts +2 -2
  142. package/dist/types/components/shortcut/shortcut.d.ts +2 -1
  143. package/dist/types/components/split-button/split-button.d.ts +2 -1
  144. package/dist/types/components/tab-bar/tab.types.d.ts +2 -2
  145. package/dist/types/components.d.ts +51 -63
  146. package/dist/types/global/shared-types/file.types.d.ts +2 -2
  147. package/dist/types/global/shared-types/icon.types.d.ts +30 -1
  148. package/dist/types/translations/da.d.ts +1 -3
  149. package/dist/types/translations/de.d.ts +1 -3
  150. package/dist/types/translations/en.d.ts +1 -3
  151. package/dist/types/translations/fi.d.ts +1 -3
  152. package/dist/types/translations/fr.d.ts +1 -3
  153. package/dist/types/translations/nl.d.ts +1 -3
  154. package/dist/types/translations/no.d.ts +1 -3
  155. package/dist/types/translations/sv.d.ts +1 -3
  156. package/package.json +1 -1
  157. package/dist/lime-elements/p-6b956d6d.entry.js +0 -1
  158. package/dist/lime-elements/p-8a6721f9.entry.js +0 -1
  159. package/dist/lime-elements/p-930fce68.entry.js +0 -1
  160. package/dist/lime-elements/p-DVRaJQvC.js +0 -1
  161. package/dist/lime-elements/p-c5d8079b.entry.js +0 -1
@@ -9,7 +9,7 @@ import { ActionBarItem } from "./components/action-bar/action-bar.types";
9
9
  import { ListItem, ListSeparator } from "./components/list-item/list-item.types";
10
10
  import { DateType, Languages } from "./components/date-picker/date.types";
11
11
  import { MenuItem, MenuSearcher, OpenDirection, SurfaceWidth } from "./components/menu/menu.types";
12
- import { Icon } from "./global/shared-types/icon.types";
12
+ import { Icon, IconName } from "./global/shared-types/icon.types";
13
13
  import { BreadcrumbsItem } from "./components/breadcrumbs/breadcrumbs.types";
14
14
  import { Button } from "./components/button/button.types";
15
15
  import { CalloutType } from "./components/callout/callout.types";
@@ -53,7 +53,7 @@ export { ActionBarItem } from "./components/action-bar/action-bar.types";
53
53
  export { ListItem, ListSeparator } from "./components/list-item/list-item.types";
54
54
  export { DateType, Languages } from "./components/date-picker/date.types";
55
55
  export { MenuItem, MenuSearcher, OpenDirection, SurfaceWidth } from "./components/menu/menu.types";
56
- export { Icon } from "./global/shared-types/icon.types";
56
+ export { Icon, IconName } from "./global/shared-types/icon.types";
57
57
  export { BreadcrumbsItem } from "./components/breadcrumbs/breadcrumbs.types";
58
58
  export { Button } from "./components/button/button.types";
59
59
  export { CalloutType } from "./components/callout/callout.types";
@@ -126,14 +126,13 @@ export namespace Components {
126
126
  * @exampleComponent limel-example-action-bar-selected-item
127
127
  * @exampleComponent limel-example-action-bar-colors
128
128
  * @exampleComponent limel-example-action-bar-floating
129
- * @exampleComponent limel-example-action-bar-floating-expand
130
129
  * @exampleComponent limel-example-action-bar-styling
131
130
  * @exampleComponent limel-example-action-bar-as-primary-component
132
131
  * @exampleComponent limel-example-action-bar-icon-title
133
132
  */
134
133
  interface LimelActionBar {
135
134
  /**
136
- * A label used to describe the purpose of the element to users of assistive technologies, like screen readers. Example value: "toolbar"
135
+ * A label used to describe the purpose of the element to users of assistive technologies, like screen readers. If not set, a localized default ("Action bar" in English, translated via the `language` prop) is used, so the element is never announced without a name. Override this when a more specific label would help users tell multiple action bars apart — for example "Bulk actions" or "Contextual actions".
137
136
  */
138
137
  "accessibleLabel"?: string;
139
138
  /**
@@ -142,13 +141,13 @@ export namespace Components {
142
141
  */
143
142
  "actions": Array<ActionBarItem | ListSeparator>;
144
143
  /**
145
- * When set to `true`, the action bar will be collapsible.
144
+ * @deprecated The prop has no effect any longer. It will be removed in a future major version. If you need this behavior, implement the expand/shrink (or resize) in the consuming UI instead.
146
145
  * @default false
147
146
  */
148
147
  "collapsible": boolean;
149
148
  /**
150
149
  * Defines the language for translations.
151
- * @default document.documentElement.lang as Languages
150
+ * @default 'en'
152
151
  */
153
152
  "language": Languages;
154
153
  /**
@@ -192,10 +191,6 @@ export namespace Components {
192
191
  * @default 'bottom-end'
193
192
  */
194
193
  "openDirection": OpenDirection;
195
- /**
196
- * Icon to display in the overflow menu trigger. If not provided, the number of items in the overflow menu will be displayed.
197
- */
198
- "overFlowIcon"?: Icon;
199
194
  }
200
195
  /**
201
196
  * This component displays an avatar, representing Lime AI assistants.
@@ -247,7 +242,7 @@ export namespace Components {
247
242
  /**
248
243
  * Set icon for the banner
249
244
  */
250
- "icon": string;
245
+ "icon": IconName;
251
246
  /**
252
247
  * The text to show on the banner.
253
248
  */
@@ -323,7 +318,7 @@ export namespace Components {
323
318
  /**
324
319
  * Set icon for the button
325
320
  */
326
- "icon": string | Icon;
321
+ "icon": IconName | Icon;
327
322
  /**
328
323
  * The text to show on the button.
329
324
  */
@@ -468,7 +463,7 @@ export namespace Components {
468
463
  /**
469
464
  * An icon, to display along with the heading and subheading.
470
465
  */
471
- "icon"?: string | Icon;
466
+ "icon"?: IconName | Icon;
472
467
  /**
473
468
  * A hero image to display in the card, to enrich the content with visual information.
474
469
  */
@@ -711,7 +706,7 @@ export namespace Components {
711
706
  /**
712
707
  * Icon of the chip.
713
708
  */
714
- "icon"?: string | Icon;
709
+ "icon"?: IconName | Icon;
715
710
  /**
716
711
  * Identifier for the chip. Must be unique.
717
712
  * @default crypto.randomUUID()
@@ -880,7 +875,7 @@ export namespace Components {
880
875
  * For chip-sets of type `input`. When the value is null, no leading icon is used. Leading icon to show to the far left in the text field
881
876
  * @default null
882
877
  */
883
- "leadingIcon": string;
878
+ "leadingIcon": IconName;
884
879
  /**
885
880
  * For chip-sets of type `input`. Limits the maximum number of chips. When the value is `0` or not set, no limit is applied.
886
881
  */
@@ -1139,7 +1134,7 @@ export namespace Components {
1139
1134
  /**
1140
1135
  * Icon to display in the header of the section
1141
1136
  */
1142
- "icon"?: string | Icon;
1137
+ "icon"?: IconName | Icon;
1143
1138
  /**
1144
1139
  * `true` if the section is invalid, `false` if valid. This can be used to indicate that the content inside the section is invalid.
1145
1140
  * @default false
@@ -1918,7 +1913,7 @@ export namespace Components {
1918
1913
  /**
1919
1914
  * Icon to display
1920
1915
  */
1921
- "icon"?: string | Icon;
1916
+ "icon"?: IconName | Icon;
1922
1917
  /**
1923
1918
  * Subheading to display
1924
1919
  */
@@ -2096,7 +2091,7 @@ export namespace Components {
2096
2091
  /**
2097
2092
  * The icon to display.
2098
2093
  */
2099
- "icon": string | Icon;
2094
+ "icon": IconName | Icon;
2100
2095
  /**
2101
2096
  * The text to show to screenreaders and other assistive tech. It is also displayed as a tooltip when the user hovers or focuses the button.
2102
2097
  */
@@ -2224,7 +2219,7 @@ export namespace Components {
2224
2219
  /**
2225
2220
  * Leading icon to show to the far left in the field.
2226
2221
  */
2227
- "leadingIcon": string;
2222
+ "leadingIcon": IconName;
2228
2223
  /**
2229
2224
  * The locale to use for formatting numbers.
2230
2225
  * @default globalConfig.defaultLocale
@@ -2285,7 +2280,7 @@ export namespace Components {
2285
2280
  /**
2286
2281
  * Trailing icon to show to the far right in the field.
2287
2282
  */
2288
- "trailingIcon": string;
2283
+ "trailingIcon": IconName;
2289
2284
  /**
2290
2285
  * Type of input. Note** regarding type `url`: `limel-input` uses the native validation built into the browser for many types of input fields. The native validation for `url` is very strict, and does not allow relative urls, nor any other formats that are not a "fully qualified" url. To allow such urls, use the type `urlAsText` instead. `urlAsText` works exactly like `text` in all regards, except that it enables use of the `showLink` property.
2291
2286
  * @default 'text'
@@ -2813,7 +2808,7 @@ export namespace Components {
2813
2808
  /**
2814
2809
  * Leading icon to show to the far left in the text field
2815
2810
  */
2816
- "leadingIcon": string;
2811
+ "leadingIcon": IconName;
2817
2812
  /**
2818
2813
  * True if multiple values are allowed
2819
2814
  * @default false
@@ -3002,7 +2997,7 @@ export namespace Components {
3002
2997
  * Placeholder icon of the component, displayed when no image is present.
3003
2998
  * @default 'user'
3004
2999
  */
3005
- "icon": string | Icon;
3000
+ "icon": IconName | Icon;
3006
3001
  /**
3007
3002
  * How the image should fit within the container. - `cover` will fill the container and crop excess parts. - `contain` will scale the image to fit within the container without cropping.
3008
3003
  * @default 'cover'
@@ -3306,7 +3301,7 @@ export namespace Components {
3306
3301
  /**
3307
3302
  * Name of icon for the shortcut.
3308
3303
  */
3309
- "icon": string;
3304
+ "icon": IconName;
3310
3305
  /**
3311
3306
  * The text to show below the shortcut. Long label will be truncated.
3312
3307
  * @default null
@@ -3493,7 +3488,7 @@ export namespace Components {
3493
3488
  /**
3494
3489
  * Set icon for the button
3495
3490
  */
3496
- "icon": string;
3491
+ "icon": IconName;
3497
3492
  /**
3498
3493
  * A list of items and separators to show in the menu.
3499
3494
  * @default []
@@ -4142,7 +4137,6 @@ declare global {
4142
4137
  * @exampleComponent limel-example-action-bar-selected-item
4143
4138
  * @exampleComponent limel-example-action-bar-colors
4144
4139
  * @exampleComponent limel-example-action-bar-floating
4145
- * @exampleComponent limel-example-action-bar-floating-expand
4146
4140
  * @exampleComponent limel-example-action-bar-styling
4147
4141
  * @exampleComponent limel-example-action-bar-as-primary-component
4148
4142
  * @exampleComponent limel-example-action-bar-icon-title
@@ -6524,14 +6518,13 @@ declare namespace LocalJSX {
6524
6518
  * @exampleComponent limel-example-action-bar-selected-item
6525
6519
  * @exampleComponent limel-example-action-bar-colors
6526
6520
  * @exampleComponent limel-example-action-bar-floating
6527
- * @exampleComponent limel-example-action-bar-floating-expand
6528
6521
  * @exampleComponent limel-example-action-bar-styling
6529
6522
  * @exampleComponent limel-example-action-bar-as-primary-component
6530
6523
  * @exampleComponent limel-example-action-bar-icon-title
6531
6524
  */
6532
6525
  interface LimelActionBar {
6533
6526
  /**
6534
- * A label used to describe the purpose of the element to users of assistive technologies, like screen readers. Example value: "toolbar"
6527
+ * A label used to describe the purpose of the element to users of assistive technologies, like screen readers. If not set, a localized default ("Action bar" in English, translated via the `language` prop) is used, so the element is never announced without a name. Override this when a more specific label would help users tell multiple action bars apart — for example "Bulk actions" or "Contextual actions".
6535
6528
  */
6536
6529
  "accessibleLabel"?: string;
6537
6530
  /**
@@ -6540,13 +6533,13 @@ declare namespace LocalJSX {
6540
6533
  */
6541
6534
  "actions"?: Array<ActionBarItem | ListSeparator>;
6542
6535
  /**
6543
- * When set to `true`, the action bar will be collapsible.
6536
+ * @deprecated The prop has no effect any longer. It will be removed in a future major version. If you need this behavior, implement the expand/shrink (or resize) in the consuming UI instead.
6544
6537
  * @default false
6545
6538
  */
6546
6539
  "collapsible"?: boolean;
6547
6540
  /**
6548
6541
  * Defines the language for translations.
6549
- * @default document.documentElement.lang as Languages
6542
+ * @default 'en'
6550
6543
  */
6551
6544
  "language"?: Languages;
6552
6545
  /**
@@ -6605,10 +6598,6 @@ declare namespace LocalJSX {
6605
6598
  * @default 'bottom-end'
6606
6599
  */
6607
6600
  "openDirection"?: OpenDirection;
6608
- /**
6609
- * Icon to display in the overflow menu trigger. If not provided, the number of items in the overflow menu will be displayed.
6610
- */
6611
- "overFlowIcon"?: Icon;
6612
6601
  }
6613
6602
  /**
6614
6603
  * This component displays an avatar, representing Lime AI assistants.
@@ -6656,7 +6645,7 @@ declare namespace LocalJSX {
6656
6645
  /**
6657
6646
  * Set icon for the banner
6658
6647
  */
6659
- "icon"?: string;
6648
+ "icon"?: IconName;
6660
6649
  /**
6661
6650
  * The text to show on the banner.
6662
6651
  */
@@ -6732,7 +6721,7 @@ declare namespace LocalJSX {
6732
6721
  /**
6733
6722
  * Set icon for the button
6734
6723
  */
6735
- "icon"?: string | Icon;
6724
+ "icon"?: IconName | Icon;
6736
6725
  /**
6737
6726
  * The text to show on the button.
6738
6727
  */
@@ -6881,7 +6870,7 @@ declare namespace LocalJSX {
6881
6870
  /**
6882
6871
  * An icon, to display along with the heading and subheading.
6883
6872
  */
6884
- "icon"?: string | Icon;
6873
+ "icon"?: IconName | Icon;
6885
6874
  /**
6886
6875
  * A hero image to display in the card, to enrich the content with visual information.
6887
6876
  */
@@ -7136,7 +7125,7 @@ declare namespace LocalJSX {
7136
7125
  /**
7137
7126
  * Icon of the chip.
7138
7127
  */
7139
- "icon"?: string | Icon;
7128
+ "icon"?: IconName | Icon;
7140
7129
  /**
7141
7130
  * Identifier for the chip. Must be unique.
7142
7131
  * @default crypto.randomUUID()
@@ -7303,7 +7292,7 @@ declare namespace LocalJSX {
7303
7292
  * For chip-sets of type `input`. When the value is null, no leading icon is used. Leading icon to show to the far left in the text field
7304
7293
  * @default null
7305
7294
  */
7306
- "leadingIcon"?: string;
7295
+ "leadingIcon"?: IconName;
7307
7296
  /**
7308
7297
  * For chip-sets of type `input`. Limits the maximum number of chips. When the value is `0` or not set, no limit is applied.
7309
7298
  */
@@ -7580,7 +7569,7 @@ declare namespace LocalJSX {
7580
7569
  /**
7581
7570
  * Icon to display in the header of the section
7582
7571
  */
7583
- "icon"?: string | Icon;
7572
+ "icon"?: IconName | Icon;
7584
7573
  /**
7585
7574
  * `true` if the section is invalid, `false` if valid. This can be used to indicate that the content inside the section is invalid.
7586
7575
  * @default false
@@ -8456,7 +8445,7 @@ declare namespace LocalJSX {
8456
8445
  /**
8457
8446
  * Icon to display
8458
8447
  */
8459
- "icon"?: string | Icon;
8448
+ "icon"?: IconName | Icon;
8460
8449
  /**
8461
8450
  * Subheading to display
8462
8451
  */
@@ -8634,7 +8623,7 @@ declare namespace LocalJSX {
8634
8623
  /**
8635
8624
  * The icon to display.
8636
8625
  */
8637
- "icon"?: string | Icon;
8626
+ "icon"?: IconName | Icon;
8638
8627
  /**
8639
8628
  * The text to show to screenreaders and other assistive tech. It is also displayed as a tooltip when the user hovers or focuses the button.
8640
8629
  */
@@ -8750,7 +8739,7 @@ declare namespace LocalJSX {
8750
8739
  /**
8751
8740
  * Leading icon to show to the far left in the field.
8752
8741
  */
8753
- "leadingIcon"?: string;
8742
+ "leadingIcon"?: IconName;
8754
8743
  /**
8755
8744
  * The locale to use for formatting numbers.
8756
8745
  * @default globalConfig.defaultLocale
@@ -8819,7 +8808,7 @@ declare namespace LocalJSX {
8819
8808
  /**
8820
8809
  * Trailing icon to show to the far right in the field.
8821
8810
  */
8822
- "trailingIcon"?: string;
8811
+ "trailingIcon"?: IconName;
8823
8812
  /**
8824
8813
  * Type of input. Note** regarding type `url`: `limel-input` uses the native validation built into the browser for many types of input fields. The native validation for `url` is very strict, and does not allow relative urls, nor any other formats that are not a "fully qualified" url. To allow such urls, use the type `urlAsText` instead. `urlAsText` works exactly like `text` in all regards, except that it enables use of the `showLink` property.
8825
8814
  * @default 'text'
@@ -9374,7 +9363,7 @@ declare namespace LocalJSX {
9374
9363
  /**
9375
9364
  * Leading icon to show to the far left in the text field
9376
9365
  */
9377
- "leadingIcon"?: string;
9366
+ "leadingIcon"?: IconName;
9378
9367
  /**
9379
9368
  * True if multiple values are allowed
9380
9369
  * @default false
@@ -9579,7 +9568,7 @@ declare namespace LocalJSX {
9579
9568
  * Placeholder icon of the component, displayed when no image is present.
9580
9569
  * @default 'user'
9581
9570
  */
9582
- "icon"?: string | Icon;
9571
+ "icon"?: IconName | Icon;
9583
9572
  /**
9584
9573
  * How the image should fit within the container. - `cover` will fill the container and crop excess parts. - `contain` will scale the image to fit within the container without cropping.
9585
9574
  * @default 'cover'
@@ -9929,7 +9918,7 @@ declare namespace LocalJSX {
9929
9918
  /**
9930
9919
  * Name of icon for the shortcut.
9931
9920
  */
9932
- "icon"?: string;
9921
+ "icon"?: IconName;
9933
9922
  /**
9934
9923
  * The text to show below the shortcut. Long label will be truncated.
9935
9924
  * @default null
@@ -10123,7 +10112,7 @@ declare namespace LocalJSX {
10123
10112
  /**
10124
10113
  * Set icon for the button
10125
10114
  */
10126
- "icon"?: string;
10115
+ "icon"?: IconName;
10127
10116
  /**
10128
10117
  * A list of items and separators to show in the menu.
10129
10118
  * @default []
@@ -10642,8 +10631,8 @@ declare namespace LocalJSX {
10642
10631
  }
10643
10632
 
10644
10633
  interface LimelActionBarAttributes {
10645
- "language": Languages;
10646
10634
  "accessibleLabel": string;
10635
+ "language": Languages;
10647
10636
  "layout": 'fullWidth' | 'floating';
10648
10637
  "collapsible": boolean;
10649
10638
  "openDirection": OpenDirection;
@@ -10664,7 +10653,7 @@ declare namespace LocalJSX {
10664
10653
  }
10665
10654
  interface LimelBannerAttributes {
10666
10655
  "message": string;
10667
- "icon": string;
10656
+ "icon": IconName;
10668
10657
  }
10669
10658
  interface LimelBreadcrumbsAttributes {
10670
10659
  "divider": string;
@@ -10673,7 +10662,7 @@ declare namespace LocalJSX {
10673
10662
  "label": string;
10674
10663
  "primary": boolean;
10675
10664
  "outlined": boolean;
10676
- "icon": string | Icon;
10665
+ "icon": IconName | Icon;
10677
10666
  "disabled": boolean;
10678
10667
  "loading": boolean;
10679
10668
  "loadingFailed": boolean;
@@ -10690,7 +10679,7 @@ declare namespace LocalJSX {
10690
10679
  interface LimelCardAttributes {
10691
10680
  "heading": string;
10692
10681
  "subheading": string;
10693
- "icon": string | Icon;
10682
+ "icon": IconName | Icon;
10694
10683
  "value": string;
10695
10684
  "clickable": boolean;
10696
10685
  "orientation": 'landscape' | 'portrait';
@@ -10732,7 +10721,7 @@ declare namespace LocalJSX {
10732
10721
  interface LimelChipAttributes {
10733
10722
  "language": Languages;
10734
10723
  "text": string;
10735
- "icon": string | Icon;
10724
+ "icon": IconName | Icon;
10736
10725
  "badge": string;
10737
10726
  "disabled": boolean;
10738
10727
  "readonly": boolean;
@@ -10758,7 +10747,7 @@ declare namespace LocalJSX {
10758
10747
  "searchLabel": string;
10759
10748
  "emptyInputOnBlur": boolean;
10760
10749
  "clearAllButton": boolean;
10761
- "leadingIcon": string;
10750
+ "leadingIcon": IconName;
10762
10751
  "delimiter": string;
10763
10752
  "autocomplete": string;
10764
10753
  "language": Languages;
@@ -10803,7 +10792,7 @@ declare namespace LocalJSX {
10803
10792
  interface LimelCollapsibleSectionAttributes {
10804
10793
  "isOpen": boolean;
10805
10794
  "header": string;
10806
- "icon": string | Icon;
10795
+ "icon": IconName | Icon;
10807
10796
  "invalid": boolean;
10808
10797
  "language": Languages;
10809
10798
  }
@@ -10916,7 +10905,7 @@ declare namespace LocalJSX {
10916
10905
  "disabled": boolean;
10917
10906
  }
10918
10907
  interface LimelHeaderAttributes {
10919
- "icon": string | Icon;
10908
+ "icon": IconName | Icon;
10920
10909
  "heading": string;
10921
10910
  "subheading": string;
10922
10911
  "supportingText": string;
@@ -10947,7 +10936,7 @@ declare namespace LocalJSX {
10947
10936
  "badge": boolean;
10948
10937
  }
10949
10938
  interface LimelIconButtonAttributes {
10950
- "icon": string | Icon;
10939
+ "icon": IconName | Icon;
10951
10940
  "elevated": boolean;
10952
10941
  "label": string;
10953
10942
  "helperLabel": string;
@@ -10974,8 +10963,8 @@ declare namespace LocalJSX {
10974
10963
  "suffix": string;
10975
10964
  "required": boolean;
10976
10965
  "value": string;
10977
- "trailingIcon": string;
10978
- "leadingIcon": string;
10966
+ "trailingIcon": IconName;
10967
+ "leadingIcon": IconName;
10979
10968
  "pattern": string;
10980
10969
  "type": InputType;
10981
10970
  "formatNumber": boolean;
@@ -11061,7 +11050,7 @@ declare namespace LocalJSX {
11061
11050
  "label": string;
11062
11051
  "searchLabel": string;
11063
11052
  "helperText": string;
11064
- "leadingIcon": string;
11053
+ "leadingIcon": IconName;
11065
11054
  "emptyResultMessage": string;
11066
11055
  "required": boolean;
11067
11056
  "invalid": boolean;
@@ -11085,7 +11074,7 @@ declare namespace LocalJSX {
11085
11074
  interface LimelProfilePictureAttributes {
11086
11075
  "language": Languages;
11087
11076
  "label": string;
11088
- "icon": string | Icon;
11077
+ "icon": IconName | Icon;
11089
11078
  "helperText": string;
11090
11079
  "disabled": boolean;
11091
11080
  "readonly": boolean;
@@ -11133,7 +11122,7 @@ declare namespace LocalJSX {
11133
11122
  "multiple": boolean;
11134
11123
  }
11135
11124
  interface LimelShortcutAttributes {
11136
- "icon": string;
11125
+ "icon": IconName;
11137
11126
  "label": string;
11138
11127
  "disabled": boolean;
11139
11128
  "badge": string;
@@ -11169,7 +11158,7 @@ declare namespace LocalJSX {
11169
11158
  interface LimelSplitButtonAttributes {
11170
11159
  "label": string;
11171
11160
  "primary": boolean;
11172
- "icon": string;
11161
+ "icon": IconName;
11173
11162
  "disabled": boolean;
11174
11163
  "loading": boolean;
11175
11164
  "loadingFailed": boolean;
@@ -11348,7 +11337,6 @@ declare module "@stencil/core" {
11348
11337
  * @exampleComponent limel-example-action-bar-selected-item
11349
11338
  * @exampleComponent limel-example-action-bar-colors
11350
11339
  * @exampleComponent limel-example-action-bar-floating
11351
- * @exampleComponent limel-example-action-bar-floating-expand
11352
11340
  * @exampleComponent limel-example-action-bar-styling
11353
11341
  * @exampleComponent limel-example-action-bar-as-primary-component
11354
11342
  * @exampleComponent limel-example-action-bar-icon-title
@@ -1,5 +1,5 @@
1
1
  import { MenuItem } from '../../components';
2
- import { Icon } from '../../global/shared-types/icon.types';
2
+ import { Icon, IconName } from './icon.types';
3
3
  import { Color } from './color.types';
4
4
  import { ListSeparator } from './separator.types';
5
5
  /**
@@ -37,7 +37,7 @@ export interface FileInfo {
37
37
  /**
38
38
  * Name of the icon to use.
39
39
  */
40
- icon?: string | Icon;
40
+ icon?: IconName | Icon;
41
41
  /**
42
42
  * Icon color. Overrides `--icon-color`.
43
43
  *
@@ -1,4 +1,33 @@
1
1
  import { Color } from './color.types';
2
+ /**
3
+ * An empty interface intended for module augmentation by consuming packages.
4
+ *
5
+ * Packages can extend this interface to register their own icon names,
6
+ * enabling type-safe autocompletion for custom icon sets.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * declare module '@limetech/lime-elements' {
11
+ * interface IconNameRegistry {
12
+ * 'my-custom-icon': string;
13
+ * 'another-icon': string;
14
+ * }
15
+ * }
16
+ * ```
17
+ *
18
+ * @public
19
+ */
20
+ export interface IconNameRegistry {
21
+ }
22
+ /**
23
+ * Represents a valid icon name.
24
+ *
25
+ * When `IconNameRegistry` is augmented, this type provides autocompletion
26
+ * for registered icon names while still accepting any string value.
27
+ *
28
+ * @public
29
+ */
30
+ export type IconName = keyof IconNameRegistry extends never ? string : keyof IconNameRegistry | (string & {});
2
31
  /**
3
32
  * This interface is used to specify which icon to use in many components,
4
33
  * along with related properties, like color.
@@ -8,7 +37,7 @@ export interface Icon {
8
37
  /**
9
38
  * Name of the icon, refers to the icon's filename in lime-icons8 repository.
10
39
  */
11
- name: string;
40
+ name: IconName;
12
41
  /**
13
42
  * Color of the icon.
14
43
  */
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
@@ -5,9 +5,7 @@ declare const _default: {
5
5
  loading: string;
6
6
  value: string;
7
7
  items: string;
8
- 'action-bar.collapse': string;
9
- 'action-bar.expand': string;
10
- 'action-bar.actions': string;
8
+ 'action-bar': string;
11
9
  'callout.note': string;
12
10
  'callout.important': string;
13
11
  'callout.tip': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "39.17.2",
3
+ "version": "39.18.0",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -1 +0,0 @@
1
- import{r as o,h as t,H as e,a as n}from"./p-DBTJNfo7.js";import{m as a,r as i}from"./p-BgTwPGeH.js";import{c as s}from"./p-JbKhhoXs.js";import{d as r,g as l}from"./p-CgNJbSP4.js";const d=class{constructor(t){o(this,t),this.elevated=!1,this.disabled=!1,this.tooltipId=s(),this.filterClickWhenDisabled=o=>{this.disabled&&o.preventDefault()}}connectedCallback(){this.initialize()}componentWillLoad(){a(this.host)}disconnectedCallback(){i(this.host)}componentDidLoad(){this.initialize()}initialize(){this.host.shadowRoot.querySelector(".mdc-icon-button")}render(){const o={};return this.host.hasAttribute("tabindex")&&(o.tabindex=this.host.getAttribute("tabindex")),t(e,{key:"0df3febef19dcdb72c7c7f3740090414b313be51",onClick:this.filterClickWhenDisabled},t("button",Object.assign({key:"119641239ebd336ca5af28ce3452c940a552eccb","aria-label":this.label,disabled:this.disabled,id:this.tooltipId},o),this.renderIcon(),this.renderTooltip(this.tooltipId)))}renderIcon(){var o,e;const n=l(this.icon),a=r(this.icon);return t("limel-icon",{name:n,"aria-label":a,"aria-hidden":a?null:"true",style:{color:`${null===(o=this.icon)||void 0===o?void 0:o.color}`,"--icon-background-color":`${null===(e=this.icon)||void 0===e?void 0:e.backgroundColor}`}})}renderTooltip(o){if(this.label)return t("limel-tooltip",{elementId:o,label:this.label,helperLabel:this.helperLabel})}static get delegatesFocus(){return!0}get host(){return n(this)}};d.style='@charset "UTF-8";:host([hidden]){display:none}:host([aria-expanded=true]) button,:host([aria-expanded]:not([aria-expanded=false])) button{box-shadow:var(--button-shadow-inset-pressed) !important}button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit}button:not(:disabled){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--icon-background-color, transparent)}button:not(:disabled):hover,button:not(:disabled):focus,button:not(:disabled):focus-visible{will-change:color, background-color, box-shadow, transform}button:not(:disabled):hover,button:not(:disabled):focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}button:not(:disabled):hover{box-shadow:var(--button-shadow-hovered)}button:not(:disabled):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}button:not(:disabled):hover,button:not(:disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button:not(:disabled):focus{outline:none}button:not(:disabled):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;width:2.25rem;border-radius:50%}button:disabled{cursor:not-allowed;color:var(--limel-theme-text-disabled-on-background-color)}:host([elevated]) button:not(:hover):not(:active):not(:disabled):not(:focus-visible){box-shadow:var(--button-shadow-normal)}:host([elevated]) button:disabled{box-shadow:var(--button-shadow-normal)}limel-icon{padding:0.25rem;width:1.75rem}';export{d as limel_icon_button}