@3t-transform/threeteeui 0.1.10 → 0.1.19

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 (110) hide show
  1. package/dist/cjs/{index-dc6cc829.js → index-b8a62ede.js} +88 -2
  2. package/dist/cjs/loader.cjs.js +3 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +24 -24
  4. package/dist/cjs/tttx-filter.cjs.entry.js +152 -152
  5. package/dist/cjs/tttx-form.cjs.entry.js +363 -363
  6. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  7. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +62 -59
  8. package/dist/cjs/tttx-list.cjs.entry.js +43 -43
  9. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +60 -60
  11. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  12. package/dist/cjs/tttx.cjs.js +6 -2
  13. package/dist/collection/collection-manifest.json +2 -2
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  18. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.css +2 -0
  19. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +111 -108
  20. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  21. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  22. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  23. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +325 -325
  24. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +89 -89
  25. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
  26. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
  27. package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
  28. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
  29. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  30. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  31. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +627 -627
  32. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +157 -157
  33. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  34. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  35. package/dist/collection/components/palette.stories.js +7 -7
  36. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  37. package/dist/collection/icons.js +2838 -2838
  38. package/dist/collection/index.js +1 -1
  39. package/dist/collection/shared/domsanitiser.options.js +14 -14
  40. package/dist/components/index.d.ts +9 -0
  41. package/dist/components/index.js +1 -1
  42. package/dist/components/tttx-button.js +48 -48
  43. package/dist/components/tttx-filter.js +184 -184
  44. package/dist/components/tttx-form.js +380 -380
  45. package/dist/components/tttx-icon2.js +28 -28
  46. package/dist/components/tttx-keyvalue-block.js +79 -76
  47. package/dist/components/tttx-list.js +65 -65
  48. package/dist/components/tttx-loading-spinner.js +33 -33
  49. package/dist/components/tttx-standalone-input.js +107 -107
  50. package/dist/components/tttx-toolbar.js +26 -26
  51. package/dist/esm/{index-86faeaab.js → index-e888a5f4.js} +88 -3
  52. package/dist/esm/loader.js +3 -2
  53. package/dist/esm/polyfills/core-js.js +0 -0
  54. package/dist/esm/polyfills/css-shim.js +1 -1
  55. package/dist/esm/polyfills/dom.js +0 -0
  56. package/dist/esm/polyfills/es5-html-element.js +0 -0
  57. package/dist/esm/polyfills/index.js +0 -0
  58. package/dist/esm/polyfills/system.js +0 -0
  59. package/dist/esm/tttx-button.entry.js +24 -24
  60. package/dist/esm/tttx-filter.entry.js +152 -152
  61. package/dist/esm/tttx-form.entry.js +363 -363
  62. package/dist/esm/tttx-icon.entry.js +11 -11
  63. package/dist/esm/tttx-keyvalue-block.entry.js +62 -59
  64. package/dist/esm/tttx-list.entry.js +43 -43
  65. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  66. package/dist/esm/tttx-standalone-input.entry.js +60 -60
  67. package/dist/esm/tttx-toolbar.entry.js +10 -10
  68. package/dist/esm/tttx.js +3 -2
  69. package/dist/tttx/{p-bdb054b2.entry.js → p-01f4628e.entry.js} +1 -1
  70. package/dist/tttx/{p-8f3badad.entry.js → p-043f9b8a.entry.js} +1 -1
  71. package/dist/tttx/{p-b0eedc78.entry.js → p-34052e38.entry.js} +1 -1
  72. package/dist/tttx/{p-603f6ebe.entry.js → p-41f5b296.entry.js} +1 -1
  73. package/dist/tttx/{p-ae48fe5a.entry.js → p-4cf3e1e0.entry.js} +1 -1
  74. package/dist/tttx/p-6dff6b5a.entry.js +3 -0
  75. package/dist/tttx/p-6f535da9.entry.js +1 -0
  76. package/dist/tttx/{p-e25d5fe2.entry.js → p-96bbf1ed.entry.js} +1 -1
  77. package/dist/tttx/{p-f1d7eb35.entry.js → p-b3a03986.entry.js} +1 -1
  78. package/dist/tttx/p-f764ffc4.js +2 -0
  79. package/dist/tttx/tttx.esm.js +1 -1
  80. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  81. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  82. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  83. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  84. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  85. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  86. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  87. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  88. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +37 -37
  89. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +43 -43
  90. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  91. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  92. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
  93. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
  94. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  95. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  96. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +56 -56
  97. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +123 -123
  98. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  99. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  100. package/dist/types/components/palette.stories.d.ts +6 -6
  101. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  102. package/dist/types/icons.d.ts +2 -2
  103. package/dist/types/index.d.ts +1 -1
  104. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  105. package/dist/types/stencil-public-runtime.d.ts +59 -3
  106. package/loader/index.d.ts +9 -0
  107. package/package.json +1 -1
  108. package/dist/tttx/p-12fc0b16.entry.js +0 -3
  109. package/dist/tttx/p-52a47b7c.js +0 -2
  110. package/dist/tttx/p-dcd78796.entry.js +0 -1
@@ -1,108 +1,111 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { h, Host } from '@stencil/core';
3
- export class TttxKeyvalueBlock {
4
- constructor() {
5
- this.keyvalues = undefined;
6
- this.horizontal = undefined;
7
- }
8
- renderSingleElements(values) {
9
- const keys = Object.keys(values);
10
- const elements = [];
11
- for (let i = 0; i < keys.length; i++) {
12
- if (this.horizontal) {
13
- elements.push(h("div", null, h("dt", null, keys[i]), h("dd", null, values[keys[i]])));
14
- }
15
- else {
16
- elements.push(h("dt", null, keys[i]));
17
- elements.push(h("dd", null, values[keys[i]]));
18
- }
19
- }
20
- return elements;
21
- }
22
- renderArrayElements(values) {
23
- const elements = [];
24
- const divSize = (100 / values.length).toString();
25
- for (let i = 0; i < values.length; i++) {
26
- const value = values[i];
27
- if (this.horizontal) {
28
- elements.push(h("div", { style: { maxWidth: divSize } }, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
29
- }
30
- else {
31
- elements.push(h("dt", { class: 'mainTitle' }, value.title));
32
- elements.push(h("dt", { class: 'subTitle' }, value.subTitle));
33
- elements.push(h("dd", null, value.data));
34
- }
35
- }
36
- return elements;
37
- }
38
- render() {
39
- if (!this.keyvalues) {
40
- return;
41
- }
42
- let values;
43
- if (typeof this.keyvalues === 'string') {
44
- values = JSON.parse(this.keyvalues);
45
- }
46
- else {
47
- values = this.keyvalues;
48
- }
49
- let elements;
50
- if (Array.isArray(values)) {
51
- elements = this.renderArrayElements(values);
52
- }
53
- else {
54
- elements = this.renderSingleElements(values);
55
- }
56
- return (h(Host, null, h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
57
- }
58
- static get is() { return "tttx-keyvalue-block"; }
59
- static get encapsulation() { return "shadow"; }
60
- static get originalStyleUrls() {
61
- return {
62
- "$": ["tttx-keyvalue-block.scss"]
63
- };
64
- }
65
- static get styleUrls() {
66
- return {
67
- "$": ["tttx-keyvalue-block.css"]
68
- };
69
- }
70
- static get properties() {
71
- return {
72
- "keyvalues": {
73
- "type": "any",
74
- "mutable": false,
75
- "complexType": {
76
- "original": "any | any[] | string",
77
- "resolved": "any",
78
- "references": {}
79
- },
80
- "required": false,
81
- "optional": false,
82
- "docs": {
83
- "tags": [],
84
- "text": ""
85
- },
86
- "attribute": "keyvalues",
87
- "reflect": false
88
- },
89
- "horizontal": {
90
- "type": "boolean",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "boolean",
94
- "resolved": "boolean",
95
- "references": {}
96
- },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": ""
102
- },
103
- "attribute": "horizontal",
104
- "reflect": false
105
- }
106
- };
107
- }
108
- }
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { h, Host } from '@stencil/core';
3
+ export class TttxKeyvalueBlock {
4
+ constructor() {
5
+ this.keyvalues = undefined;
6
+ this.horizontal = undefined;
7
+ }
8
+ renderSingleElements(values) {
9
+ const keys = Object.keys(values);
10
+ const elements = [];
11
+ const divSize = (100 / keys.length).toString() + '%';
12
+ console.log(divSize);
13
+ for (let i = 0; i < keys.length; i++) {
14
+ if (this.horizontal) {
15
+ elements.push(h("div", { style: { maxWidth: divSize } }, h("dt", null, keys[i]), h("dd", null, values[keys[i]])));
16
+ }
17
+ else {
18
+ elements.push(h("dt", null, keys[i]));
19
+ elements.push(h("dd", null, values[keys[i]]));
20
+ }
21
+ }
22
+ return elements;
23
+ }
24
+ renderArrayElements(values) {
25
+ const elements = [];
26
+ const divSize = (100 / values.length).toString() + '%';
27
+ console.log(divSize);
28
+ for (let i = 0; i < values.length; i++) {
29
+ const value = values[i];
30
+ if (this.horizontal) {
31
+ elements.push(h("div", { style: { maxWidth: divSize } }, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
32
+ }
33
+ else {
34
+ elements.push(h("dt", { class: 'mainTitle' }, value.title));
35
+ elements.push(h("dt", { class: 'subTitle' }, value.subTitle));
36
+ elements.push(h("dd", null, value.data));
37
+ }
38
+ }
39
+ return elements;
40
+ }
41
+ render() {
42
+ if (!this.keyvalues) {
43
+ return;
44
+ }
45
+ let values;
46
+ if (typeof this.keyvalues === 'string') {
47
+ values = JSON.parse(this.keyvalues);
48
+ }
49
+ else {
50
+ values = this.keyvalues;
51
+ }
52
+ let elements;
53
+ if (Array.isArray(values)) {
54
+ elements = this.renderArrayElements(values);
55
+ }
56
+ else {
57
+ elements = this.renderSingleElements(values);
58
+ }
59
+ return (h(Host, null, h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
60
+ }
61
+ static get is() { return "tttx-keyvalue-block"; }
62
+ static get encapsulation() { return "shadow"; }
63
+ static get originalStyleUrls() {
64
+ return {
65
+ "$": ["tttx-keyvalue-block.scss"]
66
+ };
67
+ }
68
+ static get styleUrls() {
69
+ return {
70
+ "$": ["tttx-keyvalue-block.css"]
71
+ };
72
+ }
73
+ static get properties() {
74
+ return {
75
+ "keyvalues": {
76
+ "type": "any",
77
+ "mutable": false,
78
+ "complexType": {
79
+ "original": "any | any[] | string",
80
+ "resolved": "any",
81
+ "references": {}
82
+ },
83
+ "required": false,
84
+ "optional": false,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": ""
88
+ },
89
+ "attribute": "keyvalues",
90
+ "reflect": false
91
+ },
92
+ "horizontal": {
93
+ "type": "boolean",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "boolean",
97
+ "resolved": "boolean",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": ""
105
+ },
106
+ "attribute": "horizontal",
107
+ "reflect": false
108
+ }
109
+ };
110
+ }
111
+ }
@@ -1,38 +1,38 @@
1
- export default {
2
- title: 'atoms/Key Value Block',
3
- component: 'tttx-keyvalue-block'
4
- };
5
- const keyValues = {
6
- 'Name': 'John Doe',
7
- 'Date of birth': '14 Jan 1981',
8
- 'Start of postcode': 'AB10'
9
- };
10
- export const KeyValueBlock = () => {
11
- return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValues)}' />`;
12
- };
13
- const keyValueArray = [
14
- {
15
- title: "Electrical Designer",
16
- subTitle: "Satchwell",
17
- data: "18 Oct 2021 - Present"
18
- },
19
- {
20
- title: "Electrical Inspector",
21
- subTitle: "Fastned",
22
- data: "20 Dec 2016 - 10 Oct 2021"
23
- },
24
- {
25
- title: "Electrical Tech Prof I - Eng",
26
- subTitle: "Voltech",
27
- data: "20 Dec 2009 - 20 Nov 2016"
28
- },
29
- ];
30
- export const KeyValueSubtitleBlock = () => {
31
- return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValueArray)}' />`;
32
- };
33
- export const HorizontalKeyValueBlock = () => {
34
- return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValues)}' />`;
35
- };
36
- export const HorizontalKeyValueSubtitleBlock = () => {
37
- return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
38
- };
1
+ export default {
2
+ title: 'atoms/Key Value Block',
3
+ component: 'tttx-keyvalue-block'
4
+ };
5
+ const keyValues = {
6
+ 'Name': 'John Doe',
7
+ 'Date of birth': '14 Jan 1981',
8
+ 'Start of postcode': 'AB10'
9
+ };
10
+ export const KeyValueBlock = () => {
11
+ return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValues)}' />`;
12
+ };
13
+ const keyValueArray = [
14
+ {
15
+ title: "Electrical Designer",
16
+ subTitle: "Satchwell",
17
+ data: "18 Oct 2021 - Present"
18
+ },
19
+ {
20
+ title: "Electrical Inspector",
21
+ subTitle: "Fastned",
22
+ data: "20 Dec 2016 - 10 Oct 2021"
23
+ },
24
+ {
25
+ title: "Electrical Tech Prof I - Eng",
26
+ subTitle: "Voltech",
27
+ data: "20 Dec 2009 - 20 Nov 2016"
28
+ },
29
+ ];
30
+ export const KeyValueSubtitleBlock = () => {
31
+ return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValueArray)}' />`;
32
+ };
33
+ export const HorizontalKeyValueBlock = () => {
34
+ return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValues)}' />`;
35
+ };
36
+ export const HorizontalKeyValueSubtitleBlock = () => {
37
+ return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
38
+ };
@@ -1,67 +1,67 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { h } from '@stencil/core';
3
- export class TttxLoadingSpinner {
4
- constructor() {
5
- this.loadingMessage = undefined;
6
- this.size = 'large';
7
- }
8
- renderLoadingMessage() {
9
- if (!this.loadingMessage)
10
- return '';
11
- return h("div", { class: "loading-text" }, "Loading, please wait...");
12
- }
13
- render() {
14
- return (h("div", { class: "spinner-container" }, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
15
- }
16
- static get is() { return "tttx-loading-spinner"; }
17
- static get encapsulation() { return "shadow"; }
18
- static get originalStyleUrls() {
19
- return {
20
- "$": ["tttx-loading-spinner.scss"]
21
- };
22
- }
23
- static get styleUrls() {
24
- return {
25
- "$": ["tttx-loading-spinner.css"]
26
- };
27
- }
28
- static get properties() {
29
- return {
30
- "loadingMessage": {
31
- "type": "boolean",
32
- "mutable": true,
33
- "complexType": {
34
- "original": "boolean",
35
- "resolved": "boolean",
36
- "references": {}
37
- },
38
- "required": false,
39
- "optional": false,
40
- "docs": {
41
- "tags": [],
42
- "text": ""
43
- },
44
- "attribute": "loading-message",
45
- "reflect": false
46
- },
47
- "size": {
48
- "type": "string",
49
- "mutable": true,
50
- "complexType": {
51
- "original": "'small' | 'large'",
52
- "resolved": "\"large\" | \"small\"",
53
- "references": {}
54
- },
55
- "required": false,
56
- "optional": false,
57
- "docs": {
58
- "tags": [],
59
- "text": ""
60
- },
61
- "attribute": "size",
62
- "reflect": false,
63
- "defaultValue": "'large'"
64
- }
65
- };
66
- }
67
- }
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { h } from '@stencil/core';
3
+ export class TttxLoadingSpinner {
4
+ constructor() {
5
+ this.loadingMessage = undefined;
6
+ this.size = 'large';
7
+ }
8
+ renderLoadingMessage() {
9
+ if (!this.loadingMessage)
10
+ return '';
11
+ return h("div", { class: "loading-text" }, "Loading, please wait...");
12
+ }
13
+ render() {
14
+ return (h("div", { class: "spinner-container" }, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
15
+ }
16
+ static get is() { return "tttx-loading-spinner"; }
17
+ static get encapsulation() { return "shadow"; }
18
+ static get originalStyleUrls() {
19
+ return {
20
+ "$": ["tttx-loading-spinner.scss"]
21
+ };
22
+ }
23
+ static get styleUrls() {
24
+ return {
25
+ "$": ["tttx-loading-spinner.css"]
26
+ };
27
+ }
28
+ static get properties() {
29
+ return {
30
+ "loadingMessage": {
31
+ "type": "boolean",
32
+ "mutable": true,
33
+ "complexType": {
34
+ "original": "boolean",
35
+ "resolved": "boolean",
36
+ "references": {}
37
+ },
38
+ "required": false,
39
+ "optional": false,
40
+ "docs": {
41
+ "tags": [],
42
+ "text": ""
43
+ },
44
+ "attribute": "loading-message",
45
+ "reflect": false
46
+ },
47
+ "size": {
48
+ "type": "string",
49
+ "mutable": true,
50
+ "complexType": {
51
+ "original": "'small' | 'large'",
52
+ "resolved": "\"large\" | \"small\"",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ },
61
+ "attribute": "size",
62
+ "reflect": false,
63
+ "defaultValue": "'large'"
64
+ }
65
+ };
66
+ }
67
+ }
@@ -1,17 +1,17 @@
1
- export default {
2
- title: 'atoms/Loading Spinner',
3
- component: 'tttx-loading-spinner',
4
- argTypes: {
5
- loadingMessage: {
6
- control: 'boolean',
7
- },
8
- size: {
9
- control: { type: 'radio' },
10
- options: ['small', 'large'],
11
- },
12
- },
13
- };
14
- export const Example = args => {
15
- const size = args.size || 'large';
16
- return `<tttx-loading-spinner ${args.loadingMessage ? 'loading-message' : ''} size='${size}' />`;
17
- };
1
+ export default {
2
+ title: 'atoms/Loading Spinner',
3
+ component: 'tttx-loading-spinner',
4
+ argTypes: {
5
+ loadingMessage: {
6
+ control: 'boolean',
7
+ },
8
+ size: {
9
+ control: { type: 'radio' },
10
+ options: ['small', 'large'],
11
+ },
12
+ },
13
+ };
14
+ export const Example = args => {
15
+ const size = args.size || 'large';
16
+ return `<tttx-loading-spinner ${args.loadingMessage ? 'loading-message' : ''} size='${size}' />`;
17
+ };