Skip to content

Commit df4e1cd

Browse files
Implemented Usage documentation for dnn-tab
1 parent 5a44188 commit df4e1cd

File tree

6 files changed

+147
-29
lines changed

6 files changed

+147
-29
lines changed

packages/stencil-library/custom-elements.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"type": {
6262
"text": "\"button\" | \"reset\" | \"submit\""
6363
},
64-
"description": "Optional button type,\ncan be either submit, reset or button and defaults to button if not specified.\nWarning: DNN wraps the whole page in a form, only use this if you are handling\nform submission manually.",
64+
"description": "Optional button type,\r\ncan be either submit, reset or button and defaults to button if not specified.\r\nWarning: DNN wraps the whole page in a form, only use this if you are handling\r\nform submission manually.",
6565
"default": "'button'",
6666
"required": false
6767
},
@@ -88,7 +88,7 @@
8888
"type": {
8989
"text": "\"danger\" | \"primary\" | \"secondary\" | \"tertiary\""
9090
},
91-
"description": "Optional button style,\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
91+
"description": "Optional button style,\r\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
9292
"default": "'primary'",
9393
"required": false
9494
}
@@ -447,7 +447,7 @@
447447
"text": "{ contrast: string; preview: string; cancel: string; confirm: string; normal: string; light: string; dark: string; }"
448448
},
449449
"description": "Can be used to customize the text language.",
450-
"default": "{\n contrast: \"Contrast\",\n preview: \"Preview\",\n cancel: \"Cancel\",\n confirm: \"Confirm\",\n normal: \"Normal\",\n light: \"Light\",\n dark: \"Dark\",\n }",
450+
"default": "{\r\n contrast: \"Contrast\",\r\n preview: \"Preview\",\r\n cancel: \"Cancel\",\r\n confirm: \"Confirm\",\r\n normal: \"Normal\",\r\n light: \"Light\",\r\n dark: \"Dark\",\r\n }",
451451
"required": false
452452
}
453453
],
@@ -563,7 +563,7 @@
563563
"type": {
564564
"text": "boolean"
565565
},
566-
"description": "If true, will allow the user to take a snapshot\nusing the device camera. (only works over https).",
566+
"description": "If true, will allow the user to take a snapshot\r\nusing the device camera. (only works over https).",
567567
"default": "false",
568568
"required": false
569569
},
@@ -572,7 +572,7 @@
572572
"type": {
573573
"text": "number"
574574
},
575-
"description": "Specifies the jpeg quality for when the device\ncamera is used to generate a picture.\nNeeds to be a number between 0 and 1 and defaults to 0.8",
575+
"description": "Specifies the jpeg quality for when the device\r\ncamera is used to generate a picture.\r\nNeeds to be a number between 0 and 1 and defaults to 0.8",
576576
"default": "0.8",
577577
"required": false
578578
},
@@ -600,7 +600,7 @@
600600
"type": {
601601
"text": "string[]"
602602
},
603-
"description": "A list of allowed file extensions.\nIf not specified, any file is allowed.\nEx: [\"jpg\", \"jpeg\", \"gif\", \"png\"]",
603+
"description": "A list of allowed file extensions.\r\nIf not specified, any file is allowed.\r\nEx: [\"jpg\", \"jpeg\", \"gif\", \"png\"]",
604604
"required": false
605605
},
606606
{
@@ -816,7 +816,7 @@
816816
"kind": "class",
817817
"name": "dnn-image-cropper.tsx",
818818
"tagName": "dnn-image-cropper",
819-
"description": "Allows cropping an image in-browser with the option to enforce a specific final size.\nAll computation happens in the browser and the final image is emmited\nin an event that has a data-url of the image.",
819+
"description": "Allows cropping an image in-browser with the option to enforce a specific final size.\r\nAll computation happens in the browser and the final image is emmited\r\nin an event that has a data-url of the image.",
820820
"attributes": [
821821
{
822822
"name": "height",
@@ -868,7 +868,7 @@
868868
"type": {
869869
"text": "ImageCropperResx"
870870
},
871-
"description": "Can be used to customize controls text.\nSome values support tokens, see default values for examples.",
871+
"description": "Can be used to customize controls text.\r\nSome values support tokens, see default values for examples.",
872872
"required": false
873873
},
874874
{
@@ -891,7 +891,7 @@
891891
"type": {
892892
"text": "File"
893893
},
894-
"description": "Emits both when a file is initially select and when the crop has changed.\nCompared to imageCropChanged, this event emits the file itself, which can be useful for uploading the file to a server including its name."
894+
"description": "Emits both when a file is initially select and when the crop has changed.\r\nCompared to imageCropChanged, this event emits the file itself, which can be useful for uploading the file to a server including its name."
895895
}
896896
],
897897
"slots": [],
@@ -1151,7 +1151,7 @@
11511151
"type": {
11521152
"text": "string"
11531153
},
1154-
"description": "Optionally pass the aria-label text for the close button.\nDefaults to \"Close modal\" if not provided.",
1154+
"description": "Optionally pass the aria-label text for the close button.\r\nDefaults to \"Close modal\" if not provided.",
11551155
"default": "\"Close modal\"",
11561156
"required": false
11571157
},
@@ -1169,7 +1169,7 @@
11691169
"type": {
11701170
"text": "boolean"
11711171
},
1172-
"description": "Optionally you can pass false to not show the close button.\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\nor provide your own dismissal logic in the modal content.",
1172+
"description": "Optionally you can pass false to not show the close button.\r\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\r\nor provide your own dismissal logic in the modal content.",
11731173
"default": "true",
11741174
"required": false
11751175
},
@@ -1542,7 +1542,7 @@
15421542
"type": {
15431543
"text": "string"
15441544
},
1545-
"description": "Fires up each time the search query changes.\nThe data passed is the new query."
1545+
"description": "Fires up each time the search query changes.\r\nThe data passed is the new query."
15461546
}
15471547
],
15481548
"slots": [],
@@ -2131,7 +2131,7 @@
21312131
"kind": "class",
21322132
"name": "dnn-vertical-splitview.tsx",
21332133
"tagName": "dnn-vertical-splitview",
2134-
"description": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\n- The content for the left part should be injected in the `left` slot.\n- The content for the right part should be injected in the `right` slot.\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component.",
2134+
"description": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\r\n- The content for the left part should be injected in the `left` slot.\r\n- The content for the right part should be injected in the `right` slot.\r\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component.",
21352135
"attributes": [
21362136
{
21372137
"name": "split-width-percentage",
+82-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,94 @@
11
{
2+
"@babel/code-frame@7.12.11": {
3+
"licenses": "MIT",
4+
"repository": "https://github.com/babel/babel",
5+
"publisher": "Sebastian McKenzie",
6+
"email": "sebmck@gmail.com",
7+
"path": "node_modules\\@babel\\code-frame",
8+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@babel\\code-frame\\LICENSE"
9+
},
210
"@dnncommunity/dnn-elements@0.23.3-alpha.7": {
311
"licenses": "MIT",
412
"repository": "https://github.com/dnncommunity/dnn-elements",
513
"path": "",
6-
"licenseFile": "D:\\dnn-elements\\dnn-elements\\packages\\stencil-library\\README.md"
14+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\README.md"
15+
},
16+
"@eslint/eslintrc@0.4.3": {
17+
"licenses": "MIT",
18+
"repository": "https://github.com/eslint/eslintrc",
19+
"publisher": "Nicholas C. Zakas",
20+
"path": "node_modules\\@eslint\\eslintrc",
21+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@eslint\\eslintrc\\LICENSE"
22+
},
23+
"@humanwhocodes/config-array@0.5.0": {
24+
"licenses": "Apache-2.0",
25+
"repository": "https://github.com/humanwhocodes/config-array",
26+
"publisher": "Nicholas C. Zakas",
27+
"path": "node_modules\\@humanwhocodes\\config-array",
28+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@humanwhocodes\\config-array\\LICENSE"
29+
},
30+
"@stencil/eslint-plugin@0.4.0": {
31+
"licenses": "MIT",
32+
"repository": "https://github.com/ionic-team/stencil-eslint",
33+
"path": "node_modules\\@stencil\\eslint-plugin",
34+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@stencil\\eslint-plugin\\LICENSE.md"
35+
},
36+
"eslint-utils@2.1.0": {
37+
"licenses": "MIT",
38+
"repository": "https://github.com/mysticatea/eslint-utils",
39+
"publisher": "Toru Nagashima",
40+
"path": "node_modules\\eslint\\node_modules\\eslint-utils",
41+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\eslint\\node_modules\\eslint-utils\\LICENSE"
42+
},
43+
"eslint-visitor-keys@1.3.0": {
44+
"licenses": "Apache-2.0",
45+
"repository": "https://github.com/eslint/eslint-visitor-keys",
46+
"publisher": "Toru Nagashima",
47+
"path": "node_modules\\espree\\node_modules\\eslint-visitor-keys",
48+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\espree\\node_modules\\eslint-visitor-keys\\LICENSE"
49+
},
50+
"eslint@7.32.0": {
51+
"licenses": "MIT",
52+
"repository": "https://github.com/eslint/eslint",
53+
"publisher": "Nicholas C. Zakas",
54+
"email": "nicholas+npm@nczconsulting.com",
55+
"path": "node_modules\\eslint",
56+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\eslint\\LICENSE"
57+
},
58+
"espree@7.3.1": {
59+
"licenses": "BSD-2-Clause",
60+
"repository": "https://github.com/eslint/espree",
61+
"publisher": "Nicholas C. Zakas",
62+
"email": "nicholas+npm@nczconsulting.com",
63+
"path": "node_modules\\espree",
64+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\espree\\LICENSE"
65+
},
66+
"ignore@4.0.6": {
67+
"licenses": "MIT",
68+
"repository": "https://github.com/kaelzhang/node-ignore",
69+
"publisher": "kael",
70+
"path": "node_modules\\ignore",
71+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\ignore\\LICENSE-MIT"
72+
},
73+
"tslib@1.14.1": {
74+
"licenses": "0BSD",
75+
"repository": "https://github.com/Microsoft/tslib",
76+
"publisher": "Microsoft Corp.",
77+
"path": "node_modules\\tslib",
78+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\tslib\\LICENSE.txt"
79+
},
80+
"tsutils@3.0.0": {
81+
"licenses": "MIT",
82+
"repository": "https://github.com/ajafff/tsutils",
83+
"publisher": "Klaus Meinhardt",
84+
"path": "node_modules\\tsutils",
85+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\tsutils\\LICENSE"
786
},
8-
"typescript@5.2.2": {
87+
"typescript@4.9.5": {
988
"licenses": "Apache-2.0",
1089
"repository": "https://github.com/Microsoft/TypeScript",
1190
"publisher": "Microsoft Corp.",
1291
"path": "node_modules\\typescript",
13-
"licenseFile": "D:\\dnn-elements\\dnn-elements\\packages\\stencil-library\\node_modules\\typescript\\LICENSE.txt"
92+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\typescript\\LICENSE.txt"
1493
}
1594
}

packages/stencil-library/src/components/dnn-tab/readme.md

+24-5
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,43 @@
22

33
`dnn-tab` should only be used as part of `dnn-tabs` in order to define the title and content of each of the tabs.
44

5-
## Example usage
5+
<!-- Auto Generated Below -->
6+
7+
8+
## Overview
9+
10+
Represents a single tab and must be used inside a dnn-tabs element.
11+
12+
## Usage
13+
14+
### HTML
15+
616
```html
717
<dnn-tabs>
818
<dnn-tab tab-title="First Tab">
919
<p>Content of the first tab.</p>
1020
</dnn-tab>
1121
<dnn-tab tab-title="Second Tab">
12-
<p>This is the second tab<p>
22+
<p>This is the second tab</p>
1323
</dnn-tab>
1424
</dnn-tabs>
1525
```
1626

17-
<!-- Auto Generated Below -->
1827

28+
### JSX-TSX
29+
30+
```tsx
31+
<dnn-tabs>
32+
<dnn-tab tabTitle="First Tab">
33+
<p>Content of the first tab.</p>
34+
</dnn-tab>
35+
<dnn-tab tabTitle="Second Tab">
36+
<p>This is the second tab</p>
37+
</dnn-tab>
38+
</dnn-tabs>
39+
```
1940

20-
## Overview
2141

22-
Represents a single tab and must be used inside a dnn-tabs element.
2342

2443
## Properties
2544

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```html
2+
<dnn-tabs>
3+
<dnn-tab tab-title="First Tab">
4+
<p>Content of the first tab.</p>
5+
</dnn-tab>
6+
<dnn-tab tab-title="Second Tab">
7+
<p>This is the second tab</p>
8+
</dnn-tab>
9+
</dnn-tabs>
10+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```tsx
2+
<dnn-tabs>
3+
<dnn-tab tabTitle="First Tab">
4+
<p>Content of the first tab.</p>
5+
</dnn-tab>
6+
<dnn-tab tabTitle="Second Tab">
7+
<p>This is the second tab</p>
8+
</dnn-tab>
9+
</dnn-tabs>
10+
```

packages/stencil-library/vscode-data.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"name": "form-button-type",
33-
"description": "Optional button type,\ncan be either submit, reset or button and defaults to button if not specified.\nWarning: DNN wraps the whole page in a form, only use this if you are handling\nform submission manually.",
33+
"description": "Optional button type,\r\ncan be either submit, reset or button and defaults to button if not specified.\r\nWarning: DNN wraps the whole page in a form, only use this if you are handling\r\nform submission manually.",
3434
"values": [
3535
{
3636
"name": "button"
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"name": "type",
67-
"description": "Optional button style,\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
67+
"description": "Optional button style,\r\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
6868
"values": [
6969
{
7070
"name": "danger"
@@ -235,11 +235,11 @@
235235
"attributes": [
236236
{
237237
"name": "allow-camera-mode",
238-
"description": "If true, will allow the user to take a snapshot\nusing the device camera. (only works over https)."
238+
"description": "If true, will allow the user to take a snapshot\r\nusing the device camera. (only works over https)."
239239
},
240240
{
241241
"name": "capture-quality",
242-
"description": "Specifies the jpeg quality for when the device\ncamera is used to generate a picture.\nNeeds to be a number between 0 and 1 and defaults to 0.8"
242+
"description": "Specifies the jpeg quality for when the device\r\ncamera is used to generate a picture.\r\nNeeds to be a number between 0 and 1 and defaults to 0.8"
243243
},
244244
{
245245
"name": "max-file-size",
@@ -320,7 +320,7 @@
320320
"name": "dnn-image-cropper",
321321
"description": {
322322
"kind": "markdown",
323-
"value": "Allows cropping an image in-browser with the option to enforce a specific final size.\nAll computation happens in the browser and the final image is emmited\nin an event that has a data-url of the image."
323+
"value": "Allows cropping an image in-browser with the option to enforce a specific final size.\r\nAll computation happens in the browser and the final image is emmited\r\nin an event that has a data-url of the image."
324324
},
325325
"attributes": [
326326
{
@@ -471,15 +471,15 @@
471471
},
472472
{
473473
"name": "close-text",
474-
"description": "Optionally pass the aria-label text for the close button.\nDefaults to \"Close modal\" if not provided."
474+
"description": "Optionally pass the aria-label text for the close button.\r\nDefaults to \"Close modal\" if not provided."
475475
},
476476
{
477477
"name": "resizable",
478478
"description": "If set to true, the modal becomes resizable."
479479
},
480480
{
481481
"name": "show-close-button",
482-
"description": "Optionally you can pass false to not show the close button.\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\nor provide your own dismissal logic in the modal content."
482+
"description": "Optionally you can pass false to not show the close button.\r\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\r\nor provide your own dismissal logic in the modal content."
483483
},
484484
{
485485
"name": "visible",
@@ -896,7 +896,7 @@
896896
"name": "dnn-vertical-splitview",
897897
"description": {
898898
"kind": "markdown",
899-
"value": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\n- The content for the left part should be injected in the `left` slot.\n- The content for the right part should be injected in the `right` slot.\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component."
899+
"value": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\r\n- The content for the left part should be injected in the `left` slot.\r\n- The content for the right part should be injected in the `right` slot.\r\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component."
900900
},
901901
"attributes": [
902902
{

0 commit comments

Comments
 (0)