@limetech/lime-elements 33.14.0-next.11 → 33.14.0-next.15

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 (66) hide show
  1. package/dist/cjs/component-f7ef9087.js +2365 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-list_2.cjs.entry.js +497 -0
  4. package/dist/cjs/limel-menu-list.cjs.entry.js +885 -0
  5. package/dist/cjs/limel-menu.cjs.entry.js +4 -4
  6. package/dist/cjs/limel-portal.cjs.entry.js +1935 -0
  7. package/dist/cjs/limel-tooltip-content.cjs.entry.js +5 -2
  8. package/dist/cjs/limel-tooltip.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +1 -0
  11. package/dist/collection/components/header/header.js +0 -1
  12. package/dist/collection/components/list/list-renderer.js +161 -163
  13. package/dist/collection/components/list/list.css +0 -10
  14. package/dist/collection/components/list/list.js +77 -125
  15. package/dist/collection/components/menu/menu.js +9 -9
  16. package/dist/collection/components/menu-list/menu-list-renderer-config.js +1 -0
  17. package/dist/collection/components/menu-list/menu-list-renderer.js +158 -0
  18. package/dist/collection/components/menu-list/menu-list.css +3397 -0
  19. package/dist/collection/components/menu-list/menu-list.js +288 -0
  20. package/dist/collection/components/menu-list/menu-list.types.js +1 -0
  21. package/dist/collection/components/menu-surface/menu-surface.js +84 -87
  22. package/dist/collection/components/popover/popover.js +0 -1
  23. package/dist/collection/components/tooltip/tooltip-content.css +25 -13
  24. package/dist/collection/components/tooltip/tooltip-content.js +4 -3
  25. package/dist/collection/components/tooltip/tooltip.css +0 -6
  26. package/dist/collection/components/tooltip/tooltip.js +31 -5
  27. package/dist/esm/component-2eb4e07b.js +2357 -0
  28. package/dist/esm/lime-elements.js +1 -1
  29. package/dist/esm/limel-list_2.entry.js +492 -0
  30. package/dist/esm/limel-menu-list.entry.js +881 -0
  31. package/dist/esm/limel-menu.entry.js +4 -4
  32. package/dist/esm/limel-portal.entry.js +1931 -0
  33. package/dist/esm/limel-tooltip-content.entry.js +5 -2
  34. package/dist/esm/limel-tooltip.entry.js +1 -1
  35. package/dist/esm/loader.js +1 -1
  36. package/dist/lime-elements/lime-elements.esm.js +1 -1
  37. package/dist/lime-elements/p-31299106.js +126 -0
  38. package/dist/lime-elements/p-6ea02589.entry.js +82 -0
  39. package/dist/lime-elements/{p-b0b18dfc.entry.js → p-8e4e13b3.entry.js} +1 -1
  40. package/dist/lime-elements/p-aeada929.entry.js +1 -0
  41. package/dist/lime-elements/{p-63e4f918.entry.js → p-cd5e3858.entry.js} +1 -1
  42. package/dist/lime-elements/p-d3aefa5f.entry.js +1 -0
  43. package/dist/lime-elements/p-f8c33335.entry.js +1 -0
  44. package/dist/types/components/header/header.d.ts +0 -1
  45. package/dist/types/components/list/list-item.types.d.ts +2 -1
  46. package/dist/types/components/list/list-renderer-config.d.ts +0 -1
  47. package/dist/types/components/list/list-renderer.d.ts +0 -1
  48. package/dist/types/components/list/list.d.ts +0 -7
  49. package/dist/types/components/list/list.types.d.ts +1 -1
  50. package/dist/types/components/menu/menu.d.ts +2 -3
  51. package/dist/types/components/menu/menu.types.d.ts +35 -3
  52. package/dist/types/components/menu-list/menu-list-renderer-config.d.ts +8 -0
  53. package/dist/types/components/menu-list/menu-list-renderer.d.ts +49 -0
  54. package/dist/types/components/menu-list/menu-list.d.ts +59 -0
  55. package/dist/types/components/menu-list/menu-list.types.d.ts +6 -0
  56. package/dist/types/components/menu-surface/menu-surface.d.ts +0 -1
  57. package/dist/types/components/popover/popover.d.ts +0 -1
  58. package/dist/types/components/tooltip/tooltip-content.d.ts +1 -1
  59. package/dist/types/components/tooltip/tooltip.d.ts +31 -5
  60. package/dist/types/components.d.ts +66 -5
  61. package/dist/types/interface.d.ts +1 -0
  62. package/package.json +2 -1
  63. package/dist/cjs/limel-list_3.cjs.entry.js +0 -5418
  64. package/dist/esm/limel-list_3.entry.js +0 -5412
  65. package/dist/lime-elements/p-a6a7dd00.entry.js +0 -1
  66. package/dist/lime-elements/p-e078c459.entry.js +0 -177
@@ -1,15 +1,41 @@
1
1
  /**
2
- * Tooltips display a text label identifying an element, such as a description
3
- * of its function.
2
+ * A tooltip can be used to display a descriptive text for any element.
3
+ * The displayed content must be a brief and supplemental string of text,
4
+ * identifying the element or describing its function for the user,
5
+ * helping them better understand unfamiliar objects that aren't described
6
+ * directly in the UI.
4
7
  *
5
- * In order to display the tooltip, the tooltip element and the owner element
6
- * that it should describe must be within the same document or document
7
- * fragment. A good practice is to just render them next to each other like so:
8
+ * ## Interaction
9
+ * The tooltip appears after a slight delay, when the element is hovered;
10
+ * and disappears as soon as the cursor leaves the element.
11
+ * Therefore, users cannot interact with the tip, but if the trigger element
12
+ * itself is interactive, it will remain interactible even with a tooltip bound
13
+ * to it.
14
+ *
15
+ * :::note
16
+ * In order to display the tooltip, the tooltip element and its trigger element
17
+ * must be within the same document or document fragment.
18
+ * A good practice is to just place them next to each other like below:
8
19
  *
9
20
  * ```html
10
21
  * <limel-button icon="search" id="tooltip-example" />
11
22
  * <limel-tooltip label="Search" elementId="tooltip-example" />
12
23
  * ```
24
+ * :::
25
+ *
26
+ * ## Usage
27
+ * - Keep in mind that tooltips can be distracting, and can be perceived as an interruption.
28
+ * Use them only when they add significant value.
29
+ * - A good tip is concise, helpful, and informative.
30
+ * Don't explain the obvious or simply repeat what is already on the screen.
31
+ * When used correctly, supplemental info of a tooltip helps to [declutter the UI](/#/DesignGuidelines/decluttering.md/).
32
+ * - If the tip is essential to the primary tasks that the user is performing,
33
+ * such as warnings or important notes, include the information directly in the
34
+ * interface instead.
35
+ * - When a component offers a helper text (e.g. [Input field](/#/component/limel-input-field/)),
36
+ * use that, not a tooltip.
37
+ * - Make sure to use the tooltip on an element that users naturally and
38
+ * effortlessly recognize can be hovered.
13
39
  *
14
40
  * @exampleComponent limel-example-tooltip
15
41
  * @private
@@ -6,15 +6,15 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Button } from "./components/button/button.types";
9
- import { Action as Action1, Chip, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, ListItem, ListSeparator, ListType, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
9
+ import { Action as Action1, Chip, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, ListItem, ListSeparator, ListType, MenuItem, MenuListType, OpenDirection, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
10
10
  import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
11
11
  import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
12
12
  import { Action } from "./components/collapsible-section/action";
13
13
  import { ValidationStatus } from "./components/form/form.types";
14
14
  import { IconSize } from "./components/icon/icon.types";
15
15
  import { InputType } from "./components/input-field/input-field.types";
16
- import { MenuItem, OpenDirection } from "./components/menu/menu.types";
17
16
  import { ActionPosition, ActionScrollBehavior } from "./components/picker/actions.types";
17
+ import { OpenDirection as OpenDirection1 } from "./components/menu/menu.types";
18
18
  import { FlowItem } from "./components/progress-flow/progress-flow.types";
19
19
  import { Tab } from "./components/tab-bar/tab.types";
20
20
  import { Column, ColumnSorter, TableParams } from "./components/table/table.types";
@@ -548,7 +548,7 @@ export namespace Components {
548
548
  */
549
549
  "maxLinesSecondaryText": number;
550
550
  /**
551
- * The type of the list, omit to get a regular list. Available types are: `selectable`: regular list with single selection. `radio`: radio button list with single selection. `checkbox`: checkbox list with multiple selection. `menu`: menu list with single selection.
551
+ * The type of the list, omit to get a regular list. Available types are: `selectable`: regular list with single selection. `radio`: radio button list with single selection. `checkbox`: checkbox list with multiple selection.
552
552
  */
553
553
  "type": ListType;
554
554
  }
@@ -588,6 +588,28 @@ export namespace Components {
588
588
  */
589
589
  "openDirection": OpenDirection;
590
590
  }
591
+ interface LimelMenuList {
592
+ /**
593
+ * Set to `true` if the list should display larger icons with a background
594
+ */
595
+ "badgeIcons": boolean;
596
+ /**
597
+ * Size of the icons in the list
598
+ */
599
+ "iconSize": IconSize;
600
+ /**
601
+ * List of items to display
602
+ */
603
+ "items": Array<MenuItem | ListSeparator>;
604
+ /**
605
+ * By default, lists will display 3 lines of text, and then truncate the rest. Consumers can increase or decrease this number by specifying `maxLinesSecondaryText`. If consumer enters zero or negative numbers we default to 1; and if they type decimals we round up.
606
+ */
607
+ "maxLinesSecondaryText": number;
608
+ /**
609
+ * The type of the menu, omit to get a regular vertical menu. Available types are: `menu`: regular vertical menu.
610
+ */
611
+ "type": MenuListType;
612
+ }
591
613
  interface LimelMenuSurface {
592
614
  /**
593
615
  * Clicks in this element should not be prevented when the menu surface is open
@@ -1097,6 +1119,12 @@ declare global {
1097
1119
  prototype: HTMLLimelMenuElement;
1098
1120
  new (): HTMLLimelMenuElement;
1099
1121
  };
1122
+ interface HTMLLimelMenuListElement extends Components.LimelMenuList, HTMLStencilElement {
1123
+ }
1124
+ var HTMLLimelMenuListElement: {
1125
+ prototype: HTMLLimelMenuListElement;
1126
+ new (): HTMLLimelMenuListElement;
1127
+ };
1100
1128
  interface HTMLLimelMenuSurfaceElement extends Components.LimelMenuSurface, HTMLStencilElement {
1101
1129
  }
1102
1130
  var HTMLLimelMenuSurfaceElement: {
@@ -1224,6 +1252,7 @@ declare global {
1224
1252
  "limel-linear-progress": HTMLLimelLinearProgressElement;
1225
1253
  "limel-list": HTMLLimelListElement;
1226
1254
  "limel-menu": HTMLLimelMenuElement;
1255
+ "limel-menu-list": HTMLLimelMenuListElement;
1227
1256
  "limel-menu-surface": HTMLLimelMenuSurfaceElement;
1228
1257
  "limel-picker": HTMLLimelPickerElement;
1229
1258
  "limel-popover": HTMLLimelPopoverElement;
@@ -1837,7 +1866,7 @@ declare namespace LocalJSX {
1837
1866
  */
1838
1867
  "onSelect"?: (event: CustomEvent<ListItem | ListItem[]>) => void;
1839
1868
  /**
1840
- * The type of the list, omit to get a regular list. Available types are: `selectable`: regular list with single selection. `radio`: radio button list with single selection. `checkbox`: checkbox list with multiple selection. `menu`: menu list with single selection.
1869
+ * The type of the list, omit to get a regular list. Available types are: `selectable`: regular list with single selection. `radio`: radio button list with single selection. `checkbox`: checkbox list with multiple selection.
1841
1870
  */
1842
1871
  "type"?: ListType;
1843
1872
  }
@@ -1875,7 +1904,7 @@ declare namespace LocalJSX {
1875
1904
  /**
1876
1905
  * Is emitted when a menu item is selected.
1877
1906
  */
1878
- "onSelect"?: (event: CustomEvent<ListItem | ListItem[]>) => void;
1907
+ "onSelect"?: (event: CustomEvent<MenuItem | MenuItem[]>) => void;
1879
1908
  /**
1880
1909
  * Sets the open state of the menu.
1881
1910
  */
@@ -1885,6 +1914,36 @@ declare namespace LocalJSX {
1885
1914
  */
1886
1915
  "openDirection"?: OpenDirection;
1887
1916
  }
1917
+ interface LimelMenuList {
1918
+ /**
1919
+ * Set to `true` if the list should display larger icons with a background
1920
+ */
1921
+ "badgeIcons"?: boolean;
1922
+ /**
1923
+ * Size of the icons in the list
1924
+ */
1925
+ "iconSize"?: IconSize;
1926
+ /**
1927
+ * List of items to display
1928
+ */
1929
+ "items"?: Array<MenuItem | ListSeparator>;
1930
+ /**
1931
+ * By default, lists will display 3 lines of text, and then truncate the rest. Consumers can increase or decrease this number by specifying `maxLinesSecondaryText`. If consumer enters zero or negative numbers we default to 1; and if they type decimals we round up.
1932
+ */
1933
+ "maxLinesSecondaryText"?: number;
1934
+ /**
1935
+ * Fired when a new value has been selected from the list. Only fired if selectable is set to true
1936
+ */
1937
+ "onChange"?: (event: CustomEvent<MenuItem | MenuItem[]>) => void;
1938
+ /**
1939
+ * Fired when an action has been selected from the action menu of a list item
1940
+ */
1941
+ "onSelect"?: (event: CustomEvent<MenuItem | MenuItem[]>) => void;
1942
+ /**
1943
+ * The type of the menu, omit to get a regular vertical menu. Available types are: `menu`: regular vertical menu.
1944
+ */
1945
+ "type"?: MenuListType;
1946
+ }
1888
1947
  interface LimelMenuSurface {
1889
1948
  /**
1890
1949
  * Clicks in this element should not be prevented when the menu surface is open
@@ -2345,6 +2404,7 @@ declare namespace LocalJSX {
2345
2404
  "limel-linear-progress": LimelLinearProgress;
2346
2405
  "limel-list": LimelList;
2347
2406
  "limel-menu": LimelMenu;
2407
+ "limel-menu-list": LimelMenuList;
2348
2408
  "limel-menu-surface": LimelMenuSurface;
2349
2409
  "limel-picker": LimelPicker;
2350
2410
  "limel-popover": LimelPopover;
@@ -2392,6 +2452,7 @@ declare module "@stencil/core" {
2392
2452
  "limel-linear-progress": LocalJSX.LimelLinearProgress & JSXBase.HTMLAttributes<HTMLLimelLinearProgressElement>;
2393
2453
  "limel-list": LocalJSX.LimelList & JSXBase.HTMLAttributes<HTMLLimelListElement>;
2394
2454
  "limel-menu": LocalJSX.LimelMenu & JSXBase.HTMLAttributes<HTMLLimelMenuElement>;
2455
+ "limel-menu-list": LocalJSX.LimelMenuList & JSXBase.HTMLAttributes<HTMLLimelMenuListElement>;
2395
2456
  "limel-menu-surface": LocalJSX.LimelMenuSurface & JSXBase.HTMLAttributes<HTMLLimelMenuSurfaceElement>;
2396
2457
  "limel-picker": LocalJSX.LimelPicker & JSXBase.HTMLAttributes<HTMLLimelPickerElement>;
2397
2458
  "limel-popover": LocalJSX.LimelPopover & JSXBase.HTMLAttributes<HTMLLimelPopoverElement>;
@@ -12,6 +12,7 @@ export * from './components/input-field/input-field.types';
12
12
  export * from './components/list/list-item.types';
13
13
  export * from './components/list/list.types';
14
14
  export * from './components/menu/menu.types';
15
+ export * from './components/menu-list/menu-list.types';
15
16
  export * from './components/picker/searcher.types';
16
17
  export * from './components/progress-flow/progress-flow.types';
17
18
  export * from './components/select/option.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "33.14.0-next.11",
3
+ "version": "33.14.0-next.15",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -33,6 +33,7 @@
33
33
  "lint:scss:prod": "prettier -c --end-of-line lf --ignore-path ./.gitignore **/*.scss",
34
34
  "start": "npm run watch",
35
35
  "test": "npm run test:spec && npm run test:e2e",
36
+ "test:watch": "cross-env-shell SASS_PATH=node_modules \"stencil test --spec --e2e --watch\"",
36
37
  "test:e2e": "cross-env-shell SASS_PATH=node_modules \"stencil test --e2e\"",
37
38
  "test:e2e:watch": "cross-env-shell SASS_PATH=node_modules \"stencil test --e2e --watch\"",
38
39
  "test:spec": "stencil test --spec",