@limetech/lime-elements 37.1.0-next.73 → 37.1.0-next.75
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.
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +33 -0
- package/dist/cjs/limel-help-content.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-help.cjs.entry.js +38 -0
- package/dist/cjs/limel-help.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-markdown.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/help/help-content.js +82 -0
- package/dist/collection/components/help/help-content.js.map +1 -0
- package/dist/collection/components/help/help.css +84 -0
- package/dist/collection/components/help/help.js +145 -0
- package/dist/collection/components/help/help.js.map +1 -0
- package/dist/collection/components/help/limel-help-content.css +107 -0
- package/dist/collection/components/markdown/markdown.css +6 -2
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-help-content.entry.js +29 -0
- package/dist/esm/limel-help-content.entry.js.map +1 -0
- package/dist/esm/limel-help.entry.js +34 -0
- package/dist/esm/limel-help.entry.js.map +1 -0
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-markdown.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/p-1ca94bcf.entry.js +2 -0
- package/dist/lime-elements/p-1ca94bcf.entry.js.map +1 -0
- package/dist/lime-elements/p-27f1d404.entry.js +2 -0
- package/dist/lime-elements/p-27f1d404.entry.js.map +1 -0
- package/dist/lime-elements/{p-40615c84.entry.js → p-b7c8aad3.entry.js} +2 -2
- package/dist/lime-elements/{p-40615c84.entry.js.map → p-b7c8aad3.entry.js.map} +1 -1
- package/dist/types/components/help/help-content.d.ts +15 -0
- package/dist/types/components/help/help.d.ts +52 -0
- package/dist/types/components.d.ts +166 -0
- package/package.json +5 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Link } from '../../interface';
|
|
2
|
+
/**
|
|
3
|
+
* Help content
|
|
4
|
+
* This is scrollable content that is placed in the popover of the Help component.
|
|
5
|
+
* Moved here mostly to avoid having inlined styles in the parent component.
|
|
6
|
+
* Since you cannot send styles to the Portal component, we need to have this
|
|
7
|
+
* child component.
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
export declare class HelpContent {
|
|
11
|
+
value: string;
|
|
12
|
+
readMoreLink?: Link;
|
|
13
|
+
render(): any[];
|
|
14
|
+
private renderReadMoreLink;
|
|
15
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OpenDirection } from '../menu/menu.types';
|
|
2
|
+
import { Link } from '../../interface';
|
|
3
|
+
/**
|
|
4
|
+
* A good design is self-explanatory! However, sometimes concepts are
|
|
5
|
+
* too complex to understand, no matter how well-designed a user interface is.
|
|
6
|
+
* In such cases, contextual help can be a great way to provide users with
|
|
7
|
+
* help precisely where and when users need it.
|
|
8
|
+
*
|
|
9
|
+
* In app interface design, providing contextual help emerges as a viable practice
|
|
10
|
+
* for enhancing user experience and usability.
|
|
11
|
+
* Contextual help serves as a quick-to-access guiding,
|
|
12
|
+
* empowering users to more easily understand and navigate through
|
|
13
|
+
* the intricacies of an application.
|
|
14
|
+
*
|
|
15
|
+
* Using this component designers empower users to grasp the functionality
|
|
16
|
+
* of an app more effortlessly, minimizes the learning curve,
|
|
17
|
+
* transforming complex features into accessible opportunities for exploration.
|
|
18
|
+
* @exampleComponent limel-example-help
|
|
19
|
+
* @exampleComponent limel-example-read-more
|
|
20
|
+
* @exampleComponent limel-example-open-direction
|
|
21
|
+
* @exampleComponent limel-example-placement
|
|
22
|
+
*/
|
|
23
|
+
export declare class Help {
|
|
24
|
+
/**
|
|
25
|
+
* The markdown content that will be displayed in the popover.
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* Visualizes the trigger element. Defaults to: **?**
|
|
30
|
+
* :::important
|
|
31
|
+
* Be consistent across the product if you want to change it to a custom character.
|
|
32
|
+
* All instances of the help component should have the same trigger visualization.
|
|
33
|
+
* :::
|
|
34
|
+
*/
|
|
35
|
+
trigger: string;
|
|
36
|
+
/**
|
|
37
|
+
* If supplied, it will render a "Read more" link at the bottom of the content.
|
|
38
|
+
* Even though you can add a link anywhere in the content, it is recommended to
|
|
39
|
+
* use the read more link. Because it will always be displayed at the bottom
|
|
40
|
+
* of the popover after the content, does not scroll away with the content,
|
|
41
|
+
* and it will be styled in a consistent way.
|
|
42
|
+
*/
|
|
43
|
+
readMoreLink?: Link;
|
|
44
|
+
/**
|
|
45
|
+
* Decides the popover's location in relation to the trigger.
|
|
46
|
+
*/
|
|
47
|
+
openDirection: OpenDirection;
|
|
48
|
+
private isOpen;
|
|
49
|
+
render(): any[];
|
|
50
|
+
private openPopover;
|
|
51
|
+
private onPopoverClose;
|
|
52
|
+
}
|
|
@@ -1031,6 +1031,54 @@ export namespace Components {
|
|
|
1031
1031
|
*/
|
|
1032
1032
|
"supportingText": string;
|
|
1033
1033
|
}
|
|
1034
|
+
/**
|
|
1035
|
+
* A good design is self-explanatory! However, sometimes concepts are
|
|
1036
|
+
* too complex to understand, no matter how well-designed a user interface is.
|
|
1037
|
+
* In such cases, contextual help can be a great way to provide users with
|
|
1038
|
+
* help precisely where and when users need it.
|
|
1039
|
+
* In app interface design, providing contextual help emerges as a viable practice
|
|
1040
|
+
* for enhancing user experience and usability.
|
|
1041
|
+
* Contextual help serves as a quick-to-access guiding,
|
|
1042
|
+
* empowering users to more easily understand and navigate through
|
|
1043
|
+
* the intricacies of an application.
|
|
1044
|
+
* Using this component designers empower users to grasp the functionality
|
|
1045
|
+
* of an app more effortlessly, minimizes the learning curve,
|
|
1046
|
+
* transforming complex features into accessible opportunities for exploration.
|
|
1047
|
+
* @exampleComponent limel-example-help
|
|
1048
|
+
* @exampleComponent limel-example-read-more
|
|
1049
|
+
* @exampleComponent limel-example-open-direction
|
|
1050
|
+
* @exampleComponent limel-example-placement
|
|
1051
|
+
*/
|
|
1052
|
+
interface LimelHelp {
|
|
1053
|
+
/**
|
|
1054
|
+
* Decides the popover's location in relation to the trigger.
|
|
1055
|
+
*/
|
|
1056
|
+
"openDirection": OpenDirection1;
|
|
1057
|
+
/**
|
|
1058
|
+
* If supplied, it will render a "Read more" link at the bottom of the content. Even though you can add a link anywhere in the content, it is recommended to use the read more link. Because it will always be displayed at the bottom of the popover after the content, does not scroll away with the content, and it will be styled in a consistent way.
|
|
1059
|
+
*/
|
|
1060
|
+
"readMoreLink"?: Link;
|
|
1061
|
+
/**
|
|
1062
|
+
* Visualizes the trigger element. Defaults to: **?** :::important Be consistent across the product if you want to change it to a custom character. All instances of the help component should have the same trigger visualization. :::
|
|
1063
|
+
*/
|
|
1064
|
+
"trigger": string;
|
|
1065
|
+
/**
|
|
1066
|
+
* The markdown content that will be displayed in the popover.
|
|
1067
|
+
*/
|
|
1068
|
+
"value": string;
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Help content
|
|
1072
|
+
* This is scrollable content that is placed in the popover of the Help component.
|
|
1073
|
+
* Moved here mostly to avoid having inlined styles in the parent component.
|
|
1074
|
+
* Since you cannot send styles to the Portal component, we need to have this
|
|
1075
|
+
* child component.
|
|
1076
|
+
* @private
|
|
1077
|
+
*/
|
|
1078
|
+
interface LimelHelpContent {
|
|
1079
|
+
"readMoreLink"?: Link;
|
|
1080
|
+
"value": string;
|
|
1081
|
+
}
|
|
1034
1082
|
/**
|
|
1035
1083
|
* This is an internal and private component that many input fields
|
|
1036
1084
|
* use to display a helper text, along with a character counter below the
|
|
@@ -2890,6 +2938,44 @@ declare global {
|
|
|
2890
2938
|
prototype: HTMLLimelHeaderElement;
|
|
2891
2939
|
new (): HTMLLimelHeaderElement;
|
|
2892
2940
|
};
|
|
2941
|
+
/**
|
|
2942
|
+
* A good design is self-explanatory! However, sometimes concepts are
|
|
2943
|
+
* too complex to understand, no matter how well-designed a user interface is.
|
|
2944
|
+
* In such cases, contextual help can be a great way to provide users with
|
|
2945
|
+
* help precisely where and when users need it.
|
|
2946
|
+
* In app interface design, providing contextual help emerges as a viable practice
|
|
2947
|
+
* for enhancing user experience and usability.
|
|
2948
|
+
* Contextual help serves as a quick-to-access guiding,
|
|
2949
|
+
* empowering users to more easily understand and navigate through
|
|
2950
|
+
* the intricacies of an application.
|
|
2951
|
+
* Using this component designers empower users to grasp the functionality
|
|
2952
|
+
* of an app more effortlessly, minimizes the learning curve,
|
|
2953
|
+
* transforming complex features into accessible opportunities for exploration.
|
|
2954
|
+
* @exampleComponent limel-example-help
|
|
2955
|
+
* @exampleComponent limel-example-read-more
|
|
2956
|
+
* @exampleComponent limel-example-open-direction
|
|
2957
|
+
* @exampleComponent limel-example-placement
|
|
2958
|
+
*/
|
|
2959
|
+
interface HTMLLimelHelpElement extends Components.LimelHelp, HTMLStencilElement {
|
|
2960
|
+
}
|
|
2961
|
+
var HTMLLimelHelpElement: {
|
|
2962
|
+
prototype: HTMLLimelHelpElement;
|
|
2963
|
+
new (): HTMLLimelHelpElement;
|
|
2964
|
+
};
|
|
2965
|
+
/**
|
|
2966
|
+
* Help content
|
|
2967
|
+
* This is scrollable content that is placed in the popover of the Help component.
|
|
2968
|
+
* Moved here mostly to avoid having inlined styles in the parent component.
|
|
2969
|
+
* Since you cannot send styles to the Portal component, we need to have this
|
|
2970
|
+
* child component.
|
|
2971
|
+
* @private
|
|
2972
|
+
*/
|
|
2973
|
+
interface HTMLLimelHelpContentElement extends Components.LimelHelpContent, HTMLStencilElement {
|
|
2974
|
+
}
|
|
2975
|
+
var HTMLLimelHelpContentElement: {
|
|
2976
|
+
prototype: HTMLLimelHelpContentElement;
|
|
2977
|
+
new (): HTMLLimelHelpContentElement;
|
|
2978
|
+
};
|
|
2893
2979
|
/**
|
|
2894
2980
|
* This is an internal and private component that many input fields
|
|
2895
2981
|
* use to display a helper text, along with a character counter below the
|
|
@@ -3509,6 +3595,8 @@ declare global {
|
|
|
3509
3595
|
"limel-form": HTMLLimelFormElement;
|
|
3510
3596
|
"limel-grid": HTMLLimelGridElement;
|
|
3511
3597
|
"limel-header": HTMLLimelHeaderElement;
|
|
3598
|
+
"limel-help": HTMLLimelHelpElement;
|
|
3599
|
+
"limel-help-content": HTMLLimelHelpContentElement;
|
|
3512
3600
|
"limel-helper-line": HTMLLimelHelperLineElement;
|
|
3513
3601
|
"limel-icon": HTMLLimelIconElement;
|
|
3514
3602
|
"limel-icon-button": HTMLLimelIconButtonElement;
|
|
@@ -4657,6 +4745,54 @@ declare namespace LocalJSX {
|
|
|
4657
4745
|
*/
|
|
4658
4746
|
"supportingText"?: string;
|
|
4659
4747
|
}
|
|
4748
|
+
/**
|
|
4749
|
+
* A good design is self-explanatory! However, sometimes concepts are
|
|
4750
|
+
* too complex to understand, no matter how well-designed a user interface is.
|
|
4751
|
+
* In such cases, contextual help can be a great way to provide users with
|
|
4752
|
+
* help precisely where and when users need it.
|
|
4753
|
+
* In app interface design, providing contextual help emerges as a viable practice
|
|
4754
|
+
* for enhancing user experience and usability.
|
|
4755
|
+
* Contextual help serves as a quick-to-access guiding,
|
|
4756
|
+
* empowering users to more easily understand and navigate through
|
|
4757
|
+
* the intricacies of an application.
|
|
4758
|
+
* Using this component designers empower users to grasp the functionality
|
|
4759
|
+
* of an app more effortlessly, minimizes the learning curve,
|
|
4760
|
+
* transforming complex features into accessible opportunities for exploration.
|
|
4761
|
+
* @exampleComponent limel-example-help
|
|
4762
|
+
* @exampleComponent limel-example-read-more
|
|
4763
|
+
* @exampleComponent limel-example-open-direction
|
|
4764
|
+
* @exampleComponent limel-example-placement
|
|
4765
|
+
*/
|
|
4766
|
+
interface LimelHelp {
|
|
4767
|
+
/**
|
|
4768
|
+
* Decides the popover's location in relation to the trigger.
|
|
4769
|
+
*/
|
|
4770
|
+
"openDirection"?: OpenDirection1;
|
|
4771
|
+
/**
|
|
4772
|
+
* If supplied, it will render a "Read more" link at the bottom of the content. Even though you can add a link anywhere in the content, it is recommended to use the read more link. Because it will always be displayed at the bottom of the popover after the content, does not scroll away with the content, and it will be styled in a consistent way.
|
|
4773
|
+
*/
|
|
4774
|
+
"readMoreLink"?: Link;
|
|
4775
|
+
/**
|
|
4776
|
+
* Visualizes the trigger element. Defaults to: **?** :::important Be consistent across the product if you want to change it to a custom character. All instances of the help component should have the same trigger visualization. :::
|
|
4777
|
+
*/
|
|
4778
|
+
"trigger"?: string;
|
|
4779
|
+
/**
|
|
4780
|
+
* The markdown content that will be displayed in the popover.
|
|
4781
|
+
*/
|
|
4782
|
+
"value"?: string;
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* Help content
|
|
4786
|
+
* This is scrollable content that is placed in the popover of the Help component.
|
|
4787
|
+
* Moved here mostly to avoid having inlined styles in the parent component.
|
|
4788
|
+
* Since you cannot send styles to the Portal component, we need to have this
|
|
4789
|
+
* child component.
|
|
4790
|
+
* @private
|
|
4791
|
+
*/
|
|
4792
|
+
interface LimelHelpContent {
|
|
4793
|
+
"readMoreLink"?: Link;
|
|
4794
|
+
"value"?: string;
|
|
4795
|
+
}
|
|
4660
4796
|
/**
|
|
4661
4797
|
* This is an internal and private component that many input fields
|
|
4662
4798
|
* use to display a helper text, along with a character counter below the
|
|
@@ -5968,6 +6104,8 @@ declare namespace LocalJSX {
|
|
|
5968
6104
|
"limel-form": LimelForm;
|
|
5969
6105
|
"limel-grid": LimelGrid;
|
|
5970
6106
|
"limel-header": LimelHeader;
|
|
6107
|
+
"limel-help": LimelHelp;
|
|
6108
|
+
"limel-help-content": LimelHelpContent;
|
|
5971
6109
|
"limel-helper-line": LimelHelperLine;
|
|
5972
6110
|
"limel-icon": LimelIcon;
|
|
5973
6111
|
"limel-icon-button": LimelIconButton;
|
|
@@ -6402,6 +6540,34 @@ declare module "@stencil/core" {
|
|
|
6402
6540
|
* @exampleComponent limel-example-header-narrow
|
|
6403
6541
|
*/
|
|
6404
6542
|
"limel-header": LocalJSX.LimelHeader & JSXBase.HTMLAttributes<HTMLLimelHeaderElement>;
|
|
6543
|
+
/**
|
|
6544
|
+
* A good design is self-explanatory! However, sometimes concepts are
|
|
6545
|
+
* too complex to understand, no matter how well-designed a user interface is.
|
|
6546
|
+
* In such cases, contextual help can be a great way to provide users with
|
|
6547
|
+
* help precisely where and when users need it.
|
|
6548
|
+
* In app interface design, providing contextual help emerges as a viable practice
|
|
6549
|
+
* for enhancing user experience and usability.
|
|
6550
|
+
* Contextual help serves as a quick-to-access guiding,
|
|
6551
|
+
* empowering users to more easily understand and navigate through
|
|
6552
|
+
* the intricacies of an application.
|
|
6553
|
+
* Using this component designers empower users to grasp the functionality
|
|
6554
|
+
* of an app more effortlessly, minimizes the learning curve,
|
|
6555
|
+
* transforming complex features into accessible opportunities for exploration.
|
|
6556
|
+
* @exampleComponent limel-example-help
|
|
6557
|
+
* @exampleComponent limel-example-read-more
|
|
6558
|
+
* @exampleComponent limel-example-open-direction
|
|
6559
|
+
* @exampleComponent limel-example-placement
|
|
6560
|
+
*/
|
|
6561
|
+
"limel-help": LocalJSX.LimelHelp & JSXBase.HTMLAttributes<HTMLLimelHelpElement>;
|
|
6562
|
+
/**
|
|
6563
|
+
* Help content
|
|
6564
|
+
* This is scrollable content that is placed in the popover of the Help component.
|
|
6565
|
+
* Moved here mostly to avoid having inlined styles in the parent component.
|
|
6566
|
+
* Since you cannot send styles to the Portal component, we need to have this
|
|
6567
|
+
* child component.
|
|
6568
|
+
* @private
|
|
6569
|
+
*/
|
|
6570
|
+
"limel-help-content": LocalJSX.LimelHelpContent & JSXBase.HTMLAttributes<HTMLLimelHelpContentElement>;
|
|
6405
6571
|
/**
|
|
6406
6572
|
* This is an internal and private component that many input fields
|
|
6407
6573
|
* use to display a helper text, along with a character counter below the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "37.1.0-next.
|
|
3
|
+
"version": "37.1.0-next.75",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@types/html-escaper": "^3.0.2",
|
|
51
51
|
"@types/jest": "^27.4.0",
|
|
52
52
|
"@types/lodash-es": "^4.17.12",
|
|
53
|
-
"@types/react": "^18.2.
|
|
53
|
+
"@types/react": "^18.2.45",
|
|
54
54
|
"@types/react-dom": "^18.2.17",
|
|
55
55
|
"@types/tabulator-tables": "^4.9.4",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"codemirror": "^5.65.9",
|
|
60
60
|
"cross-env": "^7.0.3",
|
|
61
61
|
"dayjs": "^1.11.10",
|
|
62
|
-
"eslint": "^8.
|
|
63
|
-
"eslint-config-prettier": "^9.
|
|
62
|
+
"eslint": "^8.55.0",
|
|
63
|
+
"eslint-config-prettier": "^9.1.0",
|
|
64
64
|
"eslint-plugin-ban": "^1.6.0",
|
|
65
|
-
"eslint-plugin-jsdoc": "^46.9.
|
|
65
|
+
"eslint-plugin-jsdoc": "^46.9.1",
|
|
66
66
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
67
67
|
"eslint-plugin-prettier": "^4.2.1",
|
|
68
68
|
"eslint-plugin-react": "^7.33.2",
|