@3t-transform/threeteeui 0.2.87 → 0.2.89

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 (111) hide show
  1. package/dist/cjs/{index-44c9fa62.js → index-992a9fb3.js} +386 -8
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-checkbox-group-caption.cjs.entry.js +16 -0
  5. package/dist/cjs/tttx-checkbox-group-heading.cjs.entry.js +16 -0
  6. package/dist/cjs/tttx-checkbox-group.cjs.entry.js +19 -0
  7. package/dist/cjs/tttx-checkbox.cjs.entry.js +43 -0
  8. package/dist/cjs/tttx-data-pattern.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-dialog-box.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-expander.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx-filter_4.cjs.entry.js +1 -1
  12. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  13. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  15. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  16. package/dist/cjs/tttx-multiselect-box.cjs.entry.js +1 -1
  17. package/dist/cjs/tttx-percentage-bar.cjs.entry.js +1 -1
  18. package/dist/cjs/tttx-qrcode.cjs.entry.js +1 -1
  19. package/dist/cjs/tttx-select-box.cjs.entry.js +1 -1
  20. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  21. package/dist/cjs/tttx-tabs.cjs.entry.js +1 -1
  22. package/dist/cjs/tttx-tag.cjs.entry.js +1 -1
  23. package/dist/cjs/tttx-textarea.cjs.entry.js +1 -1
  24. package/dist/cjs/tttx-tree-view.cjs.entry.js +5 -9
  25. package/dist/cjs/tttx.cjs.js +2 -2
  26. package/dist/collection/collection-manifest.json +4 -0
  27. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.css +28 -0
  28. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +154 -0
  29. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +69 -0
  30. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +7 -0
  31. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +7 -0
  32. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.css +24 -0
  33. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +18 -0
  34. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +83 -0
  35. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +1 -5
  36. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +22 -7
  37. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +17 -252
  38. package/dist/components/index.d.ts +4 -0
  39. package/dist/components/index.js +4 -0
  40. package/dist/components/tttx-checkbox-group-caption.d.ts +11 -0
  41. package/dist/components/tttx-checkbox-group-caption.js +29 -0
  42. package/dist/components/tttx-checkbox-group-heading.d.ts +11 -0
  43. package/dist/components/tttx-checkbox-group-heading.js +29 -0
  44. package/dist/components/tttx-checkbox-group.d.ts +11 -0
  45. package/dist/components/tttx-checkbox-group.js +33 -0
  46. package/dist/components/tttx-checkbox.d.ts +11 -0
  47. package/dist/components/tttx-checkbox.js +68 -0
  48. package/dist/components/tttx-tree-view.js +4 -8
  49. package/dist/esm/{index-65b1e0d1.js → index-b11965d8.js} +386 -8
  50. package/dist/esm/loader.js +3 -3
  51. package/dist/esm/tttx-button.entry.js +1 -1
  52. package/dist/esm/tttx-checkbox-group-caption.entry.js +12 -0
  53. package/dist/esm/tttx-checkbox-group-heading.entry.js +12 -0
  54. package/dist/esm/tttx-checkbox-group.entry.js +15 -0
  55. package/dist/esm/tttx-checkbox.entry.js +39 -0
  56. package/dist/esm/tttx-data-pattern.entry.js +1 -1
  57. package/dist/esm/tttx-dialog-box.entry.js +1 -1
  58. package/dist/esm/tttx-expander.entry.js +1 -1
  59. package/dist/esm/tttx-filter_4.entry.js +1 -1
  60. package/dist/esm/tttx-form.entry.js +1 -1
  61. package/dist/esm/tttx-icon.entry.js +1 -1
  62. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  63. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  64. package/dist/esm/tttx-multiselect-box.entry.js +1 -1
  65. package/dist/esm/tttx-percentage-bar.entry.js +1 -1
  66. package/dist/esm/tttx-qrcode.entry.js +1 -1
  67. package/dist/esm/tttx-select-box.entry.js +1 -1
  68. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  69. package/dist/esm/tttx-tabs.entry.js +1 -1
  70. package/dist/esm/tttx-tag.entry.js +1 -1
  71. package/dist/esm/tttx-textarea.entry.js +1 -1
  72. package/dist/esm/tttx-tree-view.entry.js +5 -9
  73. package/dist/esm/tttx.js +3 -3
  74. package/dist/tttx/p-12bb33d0.entry.js +1 -0
  75. package/dist/tttx/{p-15a42062.entry.js → p-15b7a577.entry.js} +1 -1
  76. package/dist/tttx/p-177a760d.entry.js +1 -0
  77. package/dist/tttx/{p-6bd70736.entry.js → p-22738f43.entry.js} +1 -1
  78. package/dist/tttx/{p-1c2f0e77.entry.js → p-34f328f9.entry.js} +1 -1
  79. package/dist/tttx/{p-fa12ed9d.entry.js → p-61741832.entry.js} +1 -1
  80. package/dist/tttx/p-61ef7773.entry.js +1 -0
  81. package/dist/tttx/p-65bb4035.js +2 -0
  82. package/dist/tttx/p-67f24d17.entry.js +1 -0
  83. package/dist/tttx/{p-8526fe6d.entry.js → p-69642b71.entry.js} +1 -1
  84. package/dist/tttx/p-73a7a3b8.entry.js +1 -0
  85. package/dist/tttx/{p-02515882.entry.js → p-7f1452fb.entry.js} +1 -1
  86. package/dist/tttx/{p-1190c6e5.entry.js → p-87b6e5a9.entry.js} +1 -1
  87. package/dist/tttx/{p-14d89f70.entry.js → p-93e63568.entry.js} +1 -1
  88. package/dist/tttx/{p-ebcf2c5f.entry.js → p-9ad58b75.entry.js} +1 -1
  89. package/dist/tttx/{p-f12eb43b.entry.js → p-a94f7efc.entry.js} +1 -1
  90. package/dist/tttx/{p-aab2c93c.entry.js → p-b189ca0f.entry.js} +1 -1
  91. package/dist/tttx/{p-46a6a5db.entry.js → p-bc363141.entry.js} +1 -1
  92. package/dist/tttx/{p-f2d08143.entry.js → p-be16cf2d.entry.js} +1 -1
  93. package/dist/tttx/{p-0b2026f7.entry.js → p-e2dda35e.entry.js} +1 -1
  94. package/dist/tttx/{p-a2d59582.entry.js → p-e7b7d2e2.entry.js} +1 -1
  95. package/dist/tttx/{p-003798cb.entry.js → p-f27adb48.entry.js} +1 -1
  96. package/dist/tttx/{p-291d5ae0.entry.js → p-fe6c321b.entry.js} +1 -1
  97. package/dist/tttx/tttx.esm.js +1 -1
  98. package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.d.ts +17 -0
  99. package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.stories.d.ts +47 -0
  100. package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.d.ts +3 -0
  101. package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.d.ts +3 -0
  102. package/dist/types/components/molecules/tttx-checkbox-group/interfaces.d.ts +10 -0
  103. package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.d.ts +3 -0
  104. package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.d.ts +15 -0
  105. package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +5 -2
  106. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +4 -3
  107. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +1 -4
  108. package/dist/types/components.d.ts +69 -1
  109. package/package.json +3 -3
  110. package/dist/tttx/p-99a41e8e.js +0 -2
  111. package/dist/tttx/p-b7a2de3b.entry.js +0 -1
@@ -0,0 +1,24 @@
1
+ .material-symbols-rounded {
2
+ font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
+ }
4
+
5
+ .tttx-checkbox-group {
6
+ display: flex;
7
+ flex-direction: column;
8
+ }
9
+ .tttx-checkbox-group__caption {
10
+ color: #757575;
11
+ font-family: "Roboto", sans-serif;
12
+ font-size: 14px;
13
+ font-weight: normal;
14
+ line-height: 19px;
15
+ margin-bottom: 4px;
16
+ }
17
+ .tttx-checkbox-group__heading {
18
+ color: #212121;
19
+ font-family: "Roboto", sans-serif;
20
+ font-size: 16px;
21
+ font-weight: 500;
22
+ line-height: 16px;
23
+ margin-bottom: 4px;
24
+ }
@@ -0,0 +1,18 @@
1
+ import { Host, h } from '@stencil/core';
2
+ export class TttxCheckboxGroup {
3
+ render() {
4
+ return (h(Host, null, h("div", { class: 'tttx-checkbox-group' }, h("slot", null))));
5
+ }
6
+ static get is() { return "tttx-checkbox-group"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["tttx-checkbox-group.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["tttx-checkbox-group.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,83 @@
1
+ export default {
2
+ title: 'Molecules/CheckboxGroup',
3
+ component: 'tttx-checkbox-group',
4
+ argTypes: {
5
+ checkboxGroupHeading: {
6
+ control: { type: 'text' },
7
+ default: 'Checkbox Group',
8
+ },
9
+ },
10
+ };
11
+ const CheckboxGroupTemplate = ({ heading, checkboxData, captionTop, captionBottom }) => {
12
+ return `
13
+ <tttx-checkbox-group >
14
+ ${heading ? `
15
+ <tttx-checkbox-group-heading>
16
+ ${heading}
17
+ </tttx-checkbox-group-heading>
18
+ ` : ''}
19
+
20
+ ${captionTop ? `
21
+ <tttx-checkbox-group-caption>
22
+ ${captionTop}
23
+ </tttx-checkbox-group-caption>
24
+ ` : ''}
25
+
26
+ ${checkboxData.map(checkboxInfo => {
27
+ const { label, checked, inline, indeterminate } = checkboxInfo;
28
+ return `
29
+ <tttx-checkbox
30
+ checkbox-id="checkbox"
31
+ label="${label}"
32
+ ${inline && 'inline'}
33
+ ${indeterminate && 'indeterminate'}
34
+ ${checked && 'checked'}
35
+ >
36
+ </tttx-checkbox> `;
37
+ }).join('')}
38
+
39
+ ${captionBottom ? `
40
+ <tttx-checkbox-group-caption>
41
+ ${captionBottom}
42
+ </tttx-checkbox-group-caption>
43
+ ` : ''}
44
+ </tttx-checkbox-group>
45
+ `;
46
+ };
47
+ export const singleCheckbox = CheckboxGroupTemplate.bind({});
48
+ singleCheckbox.args = {
49
+ heading: 'Safety-critical',
50
+ captionTop: 'This tags selected activities as safety-critical and can be changed indivudually once added',
51
+ checkboxData: [
52
+ {
53
+ checkboxId: 'checkbox-id',
54
+ label: 'Tag as safety-critical',
55
+ }
56
+ ]
57
+ };
58
+ export const multipleCheckboxes = CheckboxGroupTemplate.bind({});
59
+ multipleCheckboxes.args = {
60
+ heading: 'Favorite Cartoon Dad',
61
+ captionTop: 'This is a primary judge of character',
62
+ checkboxData: [
63
+ {
64
+ checkboxId: 'checkbox-id',
65
+ label: 'Homer Sampson',
66
+ checked: true
67
+ },
68
+ {
69
+ checkboxId: 'checkbox-id',
70
+ label: 'Fred Flinrock',
71
+ indeterminate: true
72
+ },
73
+ {
74
+ checkboxId: 'checkbox-id',
75
+ label: 'George Aeroplanesone',
76
+ },
77
+ {
78
+ checkboxId: 'checkbox-id',
79
+ label: 'Other',
80
+ }
81
+ ],
82
+ captionBottom: 'Only messing',
83
+ };
@@ -31,7 +31,6 @@
31
31
  content: "";
32
32
  position: absolute;
33
33
  left: -50%;
34
- right: -50%;
35
34
  bottom: 0;
36
35
  right: 0;
37
36
  border-bottom: 1px solid #d5d5d5;
@@ -41,12 +40,10 @@
41
40
  content: "";
42
41
  position: absolute;
43
42
  left: -50%;
44
- right: -50%;
45
43
  top: 0;
46
44
  bottom: 0;
47
45
  right: 0;
48
46
  background-color: rgba(17, 17, 17, 0.1);
49
- z-index: -1;
50
47
  }
51
48
 
52
49
  li {
@@ -92,12 +89,11 @@ li {
92
89
  content: "";
93
90
  position: absolute;
94
91
  left: -50%;
95
- right: -50%;
96
92
  top: 0;
97
93
  bottom: 0;
98
94
  background-color: rgba(17, 17, 17, 0.05);
99
95
  opacity: 0.5;
100
- z-index: -1;
101
96
  right: 0;
97
+ z-index: -1;
102
98
  }
103
99
  }
@@ -29,6 +29,7 @@ export class TttxTreeView {
29
29
  event.stopPropagation();
30
30
  node.isOpen = !node.isOpen;
31
31
  this.treeData = [...this.treeData];
32
+ this.expandNode.emit({ node: node, treeViewData: this.treeData });
32
33
  }
33
34
  handleCheckboxChange(node, event) {
34
35
  event.stopPropagation();
@@ -90,13 +91,7 @@ export class TttxTreeView {
90
91
  }
91
92
  }
92
93
  htmlcode(type, node, check_box, check_boxColor) {
93
- const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && h("tttx-icon", { icon: node.icon, color: node.iconColor, class: "padding-icon" }), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: DOMPurify.sanitize(node.html, domSanitiserOptions) }), (node.menuActive || node.chevronActive) && (h("div", { class: "right-buttons-container" }, node.menuActive && (h("tttx-button", { design: "borderless-circle", notext: true, icon: "more_vert", color: "black", class: "padding-icon menu-button", onClick: (event) => {
94
- event.stopPropagation();
95
- this.onClickHandler('menu', event, node);
96
- } })), node.chevronActive && (h("tttx-icon", { icon: "chevron_right", color: "black", class: "padding-icon chevron-button", onClick: (event) => {
97
- event.stopPropagation();
98
- this.onClickHandler('chevron', event, node);
99
- } }))))));
94
+ const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && h("tttx-icon", { icon: node.icon, color: node.iconColor, class: "padding-icon" }), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: DOMPurify.sanitize(node.html, domSanitiserOptions) })));
100
95
  return htmlcode;
101
96
  }
102
97
  render() {
@@ -163,6 +158,26 @@ export class TttxTreeView {
163
158
  "resolved": "any",
164
159
  "references": {}
165
160
  }
161
+ }, {
162
+ "method": "expandNode",
163
+ "name": "expandNode",
164
+ "bubbles": true,
165
+ "cancelable": true,
166
+ "composed": true,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "complexType": {
172
+ "original": "ExpandNodeEvent",
173
+ "resolved": "ExpandNodeEvent",
174
+ "references": {
175
+ "ExpandNodeEvent": {
176
+ "location": "import",
177
+ "path": "./helper/helper"
178
+ }
179
+ }
180
+ }
166
181
  }];
167
182
  }
168
183
  }
@@ -24,7 +24,7 @@ export const Default = TttxTreeViewStory.bind({});
24
24
  Default.args = {
25
25
  data: [
26
26
  {
27
- id: 1,
27
+ id: 'First',
28
28
  title: 'Role Specific Vocational Qualification',
29
29
  isOpen: false,
30
30
  openOrClosed: 'arrow_right',
@@ -34,16 +34,15 @@ Default.args = {
34
34
  iconColor: 'green',
35
35
  child: [
36
36
  {
37
- id: 2,
37
+ id: 'second',
38
38
  title: 'Boop',
39
39
  isOpen: false,
40
40
  openOrClosed: 'arrow_right',
41
41
  icon: 'check_circle',
42
42
  iconColor: 'green',
43
- menuActive: true,
44
43
  child: [
45
44
  {
46
- id: 2,
45
+ id: 'third',
47
46
  hasIcon: true,
48
47
  icon: 'help',
49
48
  iconColor: 'gray',
@@ -69,7 +68,6 @@ Default.args = {
69
68
  openOrClosed: 'arrow_right',
70
69
  icon: 'help',
71
70
  iconColor: 'gray',
72
- chevronActive: true,
73
71
  child: [
74
72
  {
75
73
  id: 4,
@@ -86,8 +84,6 @@ Default.args = {
86
84
  icon: 'help',
87
85
  iconColor: 'gray',
88
86
  title: 'sjdnfkn 2077',
89
- chevronActive: true,
90
- menuActive: true,
91
87
  },
92
88
  ],
93
89
  },
@@ -106,171 +102,23 @@ export const Simple = TttxTreeViewSimple.bind({});
106
102
  Simple.args = {
107
103
  data: [
108
104
  {
109
- id: 1,
110
- title: 'Role Specific Vocational Qualification',
111
- isOpen: false,
112
- openOrClosed: 'arrow_right',
113
- hasCheckbox: false,
114
- hasIcon: false,
115
- child: [
116
- {
117
- id: 2,
118
- title: 'Boop',
119
- isOpen: false,
120
- openOrClosed: 'arrow_right',
121
- child: [
122
- {
123
- id: 2,
124
- hasIcon: false,
125
- title: 'this is a test',
126
- },
127
- ],
128
- },
129
- {
130
- id: 3,
131
- title: 'Boop',
132
- isOpen: false,
133
- openOrClosed: 'arrow_right',
134
- hasIcon: false,
135
- },
136
- ],
137
- },
138
- {
139
- id: 3,
140
- title: 'second route',
141
- isOpen: false,
142
- openOrClosed: 'arrow_right',
143
- hasIcon: false,
144
- hasCheckbox: false,
145
- child: [
146
- {
147
- id: 4,
148
- title: 'Boop 2077',
149
- },
150
- {
151
- id: 4,
152
- title: 'sjdnfkn 2077',
153
- },
154
- ],
155
- },
156
- ],
157
- };
158
- const TttxTreeViewRightButtons = ({ data }) => `
159
- <tttx-tree-view id="treeViewRightButtons"></tttx-tree-view>
160
- <script>
161
- if(!treeViewRightButtons) {
162
- const treeViewRightButtons = document.getElementById('treeViewRightButtons');
163
- }
164
- treeViewRightButtons.data = ${JSON.stringify(data)};
165
- </script>
166
-
167
- `;
168
- export const RightButtons = TttxTreeViewRightButtons.bind({});
169
- RightButtons.args = {
170
- data: [
171
- {
172
- id: 1,
173
- title: 'Role Specific Vocational Qualification',
174
- isOpen: false,
175
- openOrClosed: 'arrow_right',
176
- hasCheckbox: false,
177
- hasIcon: false,
178
- menuActive: true,
179
- chevronActive: true,
180
- child: [
181
- {
182
- id: 2,
183
- title: 'Boop',
184
- isOpen: false,
185
- openOrClosed: 'arrow_right',
186
- hasIcon: false,
187
- menuActive: true,
188
- chevronActive: true,
189
- child: [
190
- {
191
- id: 2,
192
- hasIcon: false,
193
- title: 'this is a test',
194
- menuActive: true,
195
- chevronActive: true,
196
- },
197
- ],
198
- },
199
- {
200
- id: 3,
201
- title: 'Boop',
202
- isOpen: false,
203
- openOrClosed: 'arrow_right',
204
- hasIcon: false,
205
- menuActive: true,
206
- chevronActive: true,
207
- },
208
- ],
209
- },
210
- {
211
- id: 3,
212
- title: 'second route',
213
- isOpen: false,
214
- openOrClosed: 'arrow_right',
215
- hasIcon: false,
216
- menuActive: true,
217
- chevronActive: true,
218
- child: [
219
- {
220
- id: 4,
221
- hasCheckbox: false,
222
- hasIcon: false,
223
- title: 'Boop 2077',
224
- menuActive: true,
225
- chevronActive: true,
226
- },
227
- {
228
- id: 4,
229
- hasCheckbox: false,
230
- hasIcon: false,
231
- title: 'sjdnfkn 2077',
232
- chevronActive: true,
233
- menuActive: true,
234
- },
235
- ],
236
- },
237
- ],
238
- };
239
- const TttxTreeViewMenuButton = ({ data }) => `
240
- <tttx-tree-view id="treeViewMenuButton"></tttx-tree-view>
241
- <script>
242
- if(!treeViewMenuButton) {
243
- const treeViewMenuButton = document.getElementById('treeViewMenuButton');
244
- }
245
- treeViewMenuButton.data = ${JSON.stringify(data)};
246
- </script>
247
-
248
- `;
249
- export const MenuButton = TttxTreeViewMenuButton.bind({});
250
- MenuButton.args = {
251
- data: [
252
- {
253
- id: 1,
105
+ id: 'First',
254
106
  title: 'Role Specific Vocational Qualification',
255
107
  isOpen: false,
256
108
  openOrClosed: 'arrow_right',
257
109
  hasCheckbox: false,
258
110
  hasIcon: false,
259
- menuActive: true,
260
111
  child: [
261
112
  {
262
- id: 2,
113
+ id: 'second',
263
114
  title: 'Boop',
264
115
  isOpen: false,
265
116
  openOrClosed: 'arrow_right',
266
- hasIcon: false,
267
- menuActive: true,
268
117
  child: [
269
118
  {
270
- id: 2,
119
+ id: 'third',
271
120
  hasIcon: false,
272
121
  title: 'this is a test',
273
- menuActive: true,
274
122
  },
275
123
  ],
276
124
  },
@@ -280,7 +128,6 @@ MenuButton.args = {
280
128
  isOpen: false,
281
129
  openOrClosed: 'arrow_right',
282
130
  hasIcon: false,
283
- menuActive: true,
284
131
  },
285
132
  ],
286
133
  },
@@ -290,95 +137,15 @@ MenuButton.args = {
290
137
  isOpen: false,
291
138
  openOrClosed: 'arrow_right',
292
139
  hasIcon: false,
293
- menuActive: true,
294
- child: [
295
- {
296
- id: 4,
297
- hasCheckbox: false,
298
- hasIcon: false,
299
- title: 'Boop 2077',
300
- menuActive: true,
301
- },
302
- {
303
- id: 4,
304
- hasCheckbox: false,
305
- hasIcon: false,
306
- title: 'sjdnfkn 2077',
307
- menuActive: true,
308
- },
309
- ],
310
- },
311
- ],
312
- };
313
- const TttxTreeViewChevron = ({ data }) => `
314
- <tttx-tree-view id="treeViewChevron"></tttx-tree-view>
315
- <script>
316
- if(!treeViewChevron) {
317
- const treeViewChevron = document.getElementById('treeViewChevron');
318
- }
319
- treeViewChevron.data = ${JSON.stringify(data)};
320
- </script>
321
-
322
- `;
323
- export const Chevron = TttxTreeViewChevron.bind({});
324
- Chevron.args = {
325
- data: [
326
- {
327
- id: 1,
328
- title: 'Role Specific Vocational Qualification',
329
- isOpen: false,
330
- openOrClosed: 'arrow_right',
331
140
  hasCheckbox: false,
332
- hasIcon: false,
333
- chevronActive: true,
334
- child: [
335
- {
336
- id: 2,
337
- title: 'Boop',
338
- isOpen: false,
339
- openOrClosed: 'arrow_right',
340
- hasIcon: false,
341
- chevronActive: true,
342
- child: [
343
- {
344
- id: 2,
345
- hasIcon: false,
346
- title: 'this is a test',
347
- chevronActive: true,
348
- },
349
- ],
350
- },
351
- {
352
- id: 3,
353
- title: 'Boop',
354
- isOpen: false,
355
- openOrClosed: 'arrow_right',
356
- hasIcon: false,
357
- chevronActive: true,
358
- },
359
- ],
360
- },
361
- {
362
- id: 3,
363
- title: 'second route',
364
- isOpen: false,
365
- openOrClosed: 'arrow_right',
366
- hasIcon: false,
367
- chevronActive: true,
368
141
  child: [
369
142
  {
370
143
  id: 4,
371
- hasCheckbox: false,
372
- hasIcon: false,
373
144
  title: 'Boop 2077',
374
- chevronActive: true,
375
145
  },
376
146
  {
377
147
  id: 4,
378
- hasCheckbox: false,
379
- hasIcon: false,
380
148
  title: 'sjdnfkn 2077',
381
- chevronActive: true,
382
149
  },
383
150
  ],
384
151
  },
@@ -397,7 +164,7 @@ export const HTML = TttxTreeViewHTML.bind({});
397
164
  HTML.args = {
398
165
  data: [
399
166
  {
400
- id: 1,
167
+ id: 'First',
401
168
  title: 'Role Specific Vocational Qualification',
402
169
  isOpen: false,
403
170
  html: '<div>This is html </div>',
@@ -466,7 +233,7 @@ export const Checkbox = TttxTreeViewCheckbox.bind({});
466
233
  Checkbox.args = {
467
234
  data: [
468
235
  {
469
- id: 1,
236
+ id: 'First',
470
237
  title: 'Role Specific Vocational Qualification',
471
238
  isOpen: false,
472
239
  openOrClosed: 'arrow_right',
@@ -540,7 +307,7 @@ export const Icons = TttxTreeViewIcons.bind({});
540
307
  Icons.args = {
541
308
  data: [
542
309
  {
543
- id: 1,
310
+ id: 'First',
544
311
  title: 'Role Specific Vocational Qualification',
545
312
  isOpen: false,
546
313
  openOrClosed: 'arrow_right',
@@ -619,7 +386,7 @@ export const CheckBoxAndIcons = TttxTreeViewCheckBoxAndIcons.bind({});
619
386
  CheckBoxAndIcons.args = {
620
387
  data: [
621
388
  {
622
- id: 1,
389
+ id: 'First',
623
390
  title: 'Role Specific Vocational Qualification',
624
391
  isOpen: false,
625
392
  openOrClosed: 'arrow_right',
@@ -753,7 +520,7 @@ export const EmptyGroup = TttxTreeViewEmptyGroup.bind({});
753
520
  EmptyGroup.args = {
754
521
  data: [
755
522
  {
756
- id: 1,
523
+ id: 'First',
757
524
  title: 'Role Specific Vocational Qualification',
758
525
  isOpen: false,
759
526
  openOrClosed: 'arrow_right',
@@ -775,11 +542,11 @@ const TttxTreeViewselectable = ({ data }) => `
775
542
  treeViewselectable.data = ${JSON.stringify(data)};
776
543
  </script>
777
544
  `;
778
- export const selectableAndHover = TttxTreeViewselectable.bind({});
779
- selectableAndHover.args = {
545
+ export const SelectableAndHover = TttxTreeViewselectable.bind({});
546
+ SelectableAndHover.args = {
780
547
  data: [
781
548
  {
782
- id: 1,
549
+ id: 'First',
783
550
  title: 'Role Specific Vocational Qualification',
784
551
  isOpen: false,
785
552
  openOrClosed: 'arrow_right',
@@ -788,10 +555,9 @@ selectableAndHover.args = {
788
555
  hasHover: true,
789
556
  selectable: true,
790
557
  selected: false,
791
- chevronActive: true,
792
558
  child: [
793
559
  {
794
- id: 2,
560
+ id: 'second',
795
561
  title: 'Boop',
796
562
  isOpen: false,
797
563
  hasCheckbox: false,
@@ -800,10 +566,9 @@ selectableAndHover.args = {
800
566
  hasHover: true,
801
567
  selectable: true,
802
568
  selected: false,
803
- chevronActive: true,
804
569
  child: [
805
570
  {
806
- id: 4,
571
+ id: 'third',
807
572
  hasCheckbox: false,
808
573
  hasIcon: false,
809
574
  title: 'this is a test',
@@ -814,7 +579,7 @@ selectableAndHover.args = {
814
579
  ],
815
580
  },
816
581
  {
817
- id: 3,
582
+ id: 'fouth',
818
583
  title: 'Boop',
819
584
  isOpen: false,
820
585
  openOrClosed: 'arrow_right',
@@ -1,5 +1,9 @@
1
1
  /* tttx custom elements */
2
2
  export { TttxButton as TttxButton } from '../types/components/atoms/tttx-button/tttx-button';
3
+ export { TttxCheckbox as TttxCheckbox } from '../types/components/atoms/tttx-checkbox/tttx-checkbox';
4
+ export { TttxCheckboxGroup as TttxCheckboxGroup } from '../types/components/molecules/tttx-checkbox-group/tttx-checkbox-group';
5
+ export { TttxCheckboxGroupCaption as TttxCheckboxGroupCaption } from '../types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption';
6
+ export { TttxCheckboxGroupHeading as TttxCheckboxGroupHeading } from '../types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading';
3
7
  export { TttxDataPattern as TttxDataPattern } from '../types/components/organisms/tttx-data-pattern/tttx-data-pattern';
4
8
  export { TttxDialogBox as TttxDialogBox } from '../types/components/molecules/tttx-dialog-box/tttx-dialog-box';
5
9
  export { TttxExpander as TttxExpander } from '../types/components/molecules/tttx-expander/tttx-expander';
@@ -1,5 +1,9 @@
1
1
  export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
2
  export { TttxButton, defineCustomElement as defineCustomElementTttxButton } from './tttx-button.js';
3
+ export { TttxCheckbox, defineCustomElement as defineCustomElementTttxCheckbox } from './tttx-checkbox.js';
4
+ export { TttxCheckboxGroup, defineCustomElement as defineCustomElementTttxCheckboxGroup } from './tttx-checkbox-group.js';
5
+ export { TttxCheckboxGroupCaption, defineCustomElement as defineCustomElementTttxCheckboxGroupCaption } from './tttx-checkbox-group-caption.js';
6
+ export { TttxCheckboxGroupHeading, defineCustomElement as defineCustomElementTttxCheckboxGroupHeading } from './tttx-checkbox-group-heading.js';
3
7
  export { TttxDataPattern, defineCustomElement as defineCustomElementTttxDataPattern } from './tttx-data-pattern.js';
4
8
  export { TttxDialogBox, defineCustomElement as defineCustomElementTttxDialogBox } from './tttx-dialog-box.js';
5
9
  export { TttxExpander, defineCustomElement as defineCustomElementTttxExpander } from './tttx-expander.js';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxCheckboxGroupCaption extends Components.TttxCheckboxGroupCaption, HTMLElement {}
4
+ export const TttxCheckboxGroupCaption: {
5
+ prototype: TttxCheckboxGroupCaption;
6
+ new (): TttxCheckboxGroupCaption;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,29 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const TttxCheckboxGroupCaption$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
4
+ constructor() {
5
+ super();
6
+ this.__registerHost();
7
+ }
8
+ render() {
9
+ return (h(Host, null, h("div", { class: 'tttx-checkbox-group__caption' }, h("slot", null))));
10
+ }
11
+ }, [4, "tttx-checkbox-group-caption"]);
12
+ function defineCustomElement$1() {
13
+ if (typeof customElements === "undefined") {
14
+ return;
15
+ }
16
+ const components = ["tttx-checkbox-group-caption"];
17
+ components.forEach(tagName => { switch (tagName) {
18
+ case "tttx-checkbox-group-caption":
19
+ if (!customElements.get(tagName)) {
20
+ customElements.define(tagName, TttxCheckboxGroupCaption$1);
21
+ }
22
+ break;
23
+ } });
24
+ }
25
+
26
+ const TttxCheckboxGroupCaption = TttxCheckboxGroupCaption$1;
27
+ const defineCustomElement = defineCustomElement$1;
28
+
29
+ export { TttxCheckboxGroupCaption, defineCustomElement };