@3t-transform/threeteeui 0.0.14 → 0.0.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 (121) hide show
  1. package/package.json +7 -4
  2. package/dist/cjs/index-bf39be87.js +0 -1530
  3. package/dist/cjs/index.cjs.js +0 -2
  4. package/dist/cjs/loader.cjs.js +0 -22
  5. package/dist/cjs/tttx-button.cjs.entry.js +0 -28
  6. package/dist/cjs/tttx-checkbox.cjs.entry.js +0 -28
  7. package/dist/cjs/tttx-form.cjs.entry.js +0 -186
  8. package/dist/cjs/tttx-icon.cjs.entry.js +0 -1861
  9. package/dist/cjs/tttx-list.cjs.entry.js +0 -198
  10. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +0 -26
  11. package/dist/cjs/tttx-popover-content.cjs.entry.js +0 -23
  12. package/dist/cjs/tttx-standalone-input.cjs.entry.js +0 -136
  13. package/dist/cjs/tttx.cjs.js +0 -23
  14. package/dist/collection/collection-manifest.json +0 -19
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.css +0 -62
  16. package/dist/collection/components/atoms/tttx-button/tttx-button.js +0 -93
  17. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +0 -27
  18. package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +0 -105
  19. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +0 -114
  20. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +0 -47
  21. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +0 -48
  22. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +0 -66
  23. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +0 -17
  24. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +0 -30
  25. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +0 -96
  26. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +0 -23
  27. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +0 -181
  28. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +0 -101
  29. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +0 -13
  30. package/dist/collection/components/molecules/tttx-form/tttx-form.css +0 -230
  31. package/dist/collection/components/molecules/tttx-form/tttx-form.js +0 -249
  32. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +0 -102
  33. package/dist/collection/components/molecules/tttx-list/tttx-list.css +0 -56
  34. package/dist/collection/components/molecules/tttx-list/tttx-list.js +0 -311
  35. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +0 -37
  36. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +0 -177
  37. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +0 -569
  38. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +0 -156
  39. package/dist/collection/components/palette.stories.js +0 -88
  40. package/dist/collection/docs/gettingstarted-developer.stories.js +0 -9
  41. package/dist/collection/icons.js +0 -2838
  42. package/dist/collection/index.js +0 -1
  43. package/dist/components/index.d.ts +0 -38
  44. package/dist/components/index.js +0 -9
  45. package/dist/components/tttx-button.d.ts +0 -11
  46. package/dist/components/tttx-button.js +0 -45
  47. package/dist/components/tttx-checkbox.d.ts +0 -11
  48. package/dist/components/tttx-checkbox.js +0 -46
  49. package/dist/components/tttx-form.d.ts +0 -11
  50. package/dist/components/tttx-form.js +0 -203
  51. package/dist/components/tttx-icon.d.ts +0 -11
  52. package/dist/components/tttx-icon.js +0 -6
  53. package/dist/components/tttx-icon2.js +0 -1875
  54. package/dist/components/tttx-list.d.ts +0 -11
  55. package/dist/components/tttx-list.js +0 -225
  56. package/dist/components/tttx-loading-spinner.d.ts +0 -11
  57. package/dist/components/tttx-loading-spinner.js +0 -6
  58. package/dist/components/tttx-loading-spinner2.js +0 -40
  59. package/dist/components/tttx-popover-content.d.ts +0 -11
  60. package/dist/components/tttx-popover-content.js +0 -42
  61. package/dist/components/tttx-standalone-input.d.ts +0 -11
  62. package/dist/components/tttx-standalone-input.js +0 -178
  63. package/dist/esm/index-63c4d25e.js +0 -1501
  64. package/dist/esm/index.js +0 -1
  65. package/dist/esm/loader.js +0 -18
  66. package/dist/esm/polyfills/core-js.js +0 -11
  67. package/dist/esm/polyfills/css-shim.js +0 -1
  68. package/dist/esm/polyfills/dom.js +0 -79
  69. package/dist/esm/polyfills/es5-html-element.js +0 -1
  70. package/dist/esm/polyfills/index.js +0 -34
  71. package/dist/esm/polyfills/system.js +0 -6
  72. package/dist/esm/tttx-button.entry.js +0 -24
  73. package/dist/esm/tttx-checkbox.entry.js +0 -24
  74. package/dist/esm/tttx-form.entry.js +0 -182
  75. package/dist/esm/tttx-icon.entry.js +0 -1857
  76. package/dist/esm/tttx-list.entry.js +0 -194
  77. package/dist/esm/tttx-loading-spinner.entry.js +0 -22
  78. package/dist/esm/tttx-popover-content.entry.js +0 -19
  79. package/dist/esm/tttx-standalone-input.entry.js +0 -132
  80. package/dist/esm/tttx.js +0 -18
  81. package/dist/index.cjs.js +0 -1
  82. package/dist/index.js +0 -1
  83. package/dist/tttx/index.esm.js +0 -0
  84. package/dist/tttx/p-1a4eb1f3.entry.js +0 -1
  85. package/dist/tttx/p-28e4c359.entry.js +0 -1
  86. package/dist/tttx/p-2b6720ac.entry.js +0 -1
  87. package/dist/tttx/p-2d54f8aa.entry.js +0 -1
  88. package/dist/tttx/p-4c57bcbd.entry.js +0 -1
  89. package/dist/tttx/p-709246f5.entry.js +0 -1
  90. package/dist/tttx/p-95a29e09.entry.js +0 -1
  91. package/dist/tttx/p-ad0c3fe4.entry.js +0 -1
  92. package/dist/tttx/p-bec472d8.js +0 -2
  93. package/dist/tttx/tttx.esm.js +0 -1
  94. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +0 -9
  95. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +0 -20
  96. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +0 -14
  97. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +0 -21
  98. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +0 -6
  99. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +0 -17
  100. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +0 -7
  101. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +0 -18
  102. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +0 -9
  103. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +0 -6
  104. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -18
  105. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -6
  106. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +0 -51
  107. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -13
  108. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +0 -38
  109. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +0 -106
  110. package/dist/types/components/palette.stories.d.ts +0 -6
  111. package/dist/types/components.d.ts +0 -236
  112. package/dist/types/docs/gettingstarted-developer.stories.d.ts +0 -5
  113. package/dist/types/icons.d.ts +0 -2
  114. package/dist/types/index.d.ts +0 -1
  115. package/dist/types/stencil-public-runtime.d.ts +0 -1637
  116. package/loader/cdn.js +0 -3
  117. package/loader/index.cjs.js +0 -3
  118. package/loader/index.d.ts +0 -21
  119. package/loader/index.es2017.js +0 -3
  120. package/loader/index.js +0 -4
  121. package/loader/package.json +0 -11
@@ -1,105 +0,0 @@
1
- .material-symbols-rounded {
2
- font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
- }
4
-
5
- .material-symbols-rounded {
6
- font-family: "Material Symbols Rounded", sans-serif;
7
- font-weight: 400;
8
- font-style: normal;
9
- font-size: 24px;
10
- line-height: 1;
11
- letter-spacing: normal;
12
- text-transform: none;
13
- display: inline-block;
14
- white-space: nowrap;
15
- word-wrap: normal;
16
- direction: ltr;
17
- text-rendering: optimizeLegibility;
18
- -webkit-font-smoothing: antialiased;
19
- color: #9e9e9e;
20
- }
21
-
22
- :host {
23
- display: block;
24
- }
25
-
26
- .tooltip {
27
- background: #ffffff;
28
- color: #343434;
29
- font-weight: bold;
30
- padding: 8px 16px;
31
- font-size: 13px;
32
- border-radius: 4px;
33
- box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.3);
34
- display: none;
35
- }
36
-
37
- .tooltip[data-show] {
38
- display: block;
39
- }
40
-
41
- .arrow,
42
- .arrow::before {
43
- position: absolute;
44
- width: 8px;
45
- height: 8px;
46
- background: inherit;
47
- }
48
-
49
- .arrow {
50
- visibility: hidden;
51
- }
52
-
53
- .arrow::before {
54
- visibility: visible;
55
- content: "";
56
- transform: rotate(45deg);
57
- }
58
-
59
- .tooltip[data-popper-placement^=top] > .arrow {
60
- bottom: -4px;
61
- }
62
-
63
- .tooltip[data-popper-placement^=bottom] > .arrow {
64
- top: -4px;
65
- }
66
-
67
- .tooltip[data-popper-placement^=left] > .arrow {
68
- right: -4px;
69
- }
70
-
71
- .tooltip[data-popper-placement^=right] > .arrow {
72
- left: -4px;
73
- }
74
-
75
- .red {
76
- color: #dc0000;
77
- }
78
-
79
- .orange {
80
- color: #f59500;
81
- }
82
-
83
- .blue {
84
- color: #1479c6;
85
- }
86
-
87
- .green {
88
- color: #a2bb31;
89
- }
90
-
91
- .gray {
92
- color: #757575;
93
- }
94
-
95
- .black {
96
- color: #212121;
97
- }
98
-
99
- .white {
100
- color: white;
101
- }
102
-
103
- .clickable {
104
- cursor: pointer;
105
- }
@@ -1,114 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- import { createPopper } from '@popperjs/core';
3
- export class TttxIcon {
4
- constructor() {
5
- this.icon = undefined;
6
- this.colour = 'grey';
7
- }
8
- handleDocumentClick(event) {
9
- if (!event.composedPath().includes(this.referenceElement)) {
10
- if (this.popperElement) {
11
- this.popperElement.removeAttribute('data-show');
12
- }
13
- if (this.popperInstance) {
14
- this.popperInstance.update();
15
- }
16
- }
17
- }
18
- componentWillLoad() {
19
- this.hasPopoverSlot = !!this.el.querySelector('[slot="popover"]');
20
- }
21
- componentDidLoad() {
22
- this.popperInstance = createPopper(this.referenceElement, this.popperElement, {
23
- placement: 'top',
24
- modifiers: [
25
- {
26
- name: 'flip',
27
- options: {
28
- fallbackPlacements: ['bottom'],
29
- },
30
- },
31
- {
32
- name: 'offset',
33
- options: {
34
- offset: [0, 12],
35
- },
36
- },
37
- ],
38
- });
39
- }
40
- disconnectedCallback() {
41
- this.popperInstance.destroy();
42
- }
43
- render() {
44
- return (h(Host, null, h("span", { onClick: () => {
45
- if (this.popperElement) {
46
- this.popperElement.setAttribute('data-show', '');
47
- }
48
- if (this.popperInstance) {
49
- this.popperInstance.update();
50
- }
51
- }, ref: el => (this.referenceElement = el), class: `material-symbols-rounded ${this.colour ? this.colour : ''} ${this.hasPopoverSlot ? 'clickable' : ''}` }, this.icon), this.hasPopoverSlot && (h("div", { ref: el => (this.popperElement = el), class: "tooltip" }, h("slot", { name: "popover" }), h("div", { class: "arrow", "data-popper-arrow": true })))));
52
- }
53
- static get is() { return "tttx-icon"; }
54
- static get encapsulation() { return "shadow"; }
55
- static get originalStyleUrls() {
56
- return {
57
- "$": ["tttx-icon.scss"]
58
- };
59
- }
60
- static get styleUrls() {
61
- return {
62
- "$": ["tttx-icon.css"]
63
- };
64
- }
65
- static get properties() {
66
- return {
67
- "icon": {
68
- "type": "string",
69
- "mutable": false,
70
- "complexType": {
71
- "original": "string",
72
- "resolved": "string",
73
- "references": {}
74
- },
75
- "required": false,
76
- "optional": false,
77
- "docs": {
78
- "tags": [],
79
- "text": ""
80
- },
81
- "attribute": "icon",
82
- "reflect": false
83
- },
84
- "colour": {
85
- "type": "string",
86
- "mutable": false,
87
- "complexType": {
88
- "original": "string",
89
- "resolved": "string",
90
- "references": {}
91
- },
92
- "required": false,
93
- "optional": false,
94
- "docs": {
95
- "tags": [],
96
- "text": ""
97
- },
98
- "attribute": "colour",
99
- "reflect": false,
100
- "defaultValue": "'grey'"
101
- }
102
- };
103
- }
104
- static get elementRef() { return "el"; }
105
- static get listeners() {
106
- return [{
107
- "name": "click",
108
- "method": "handleDocumentClick",
109
- "target": "document",
110
- "capture": false,
111
- "passive": false
112
- }];
113
- }
114
- }
@@ -1,47 +0,0 @@
1
- import icons from './../../../icons';
2
- const colours = ['red', 'blue', 'black', 'grey', 'green'];
3
- export default {
4
- title: 'Atoms/Icons',
5
- component: 'tttx-icon',
6
- argTypes: {
7
- icon: {
8
- control: {
9
- type: 'select',
10
- options: icons,
11
- },
12
- },
13
- colour: {
14
- control: {
15
- type: 'select',
16
- options: colours,
17
- },
18
- },
19
- },
20
- };
21
- const Template = ({ icon, colour }) => `<tttx-icon icon="${icon}" colour="${colour}" />`;
22
- export const Basic = Template.bind({});
23
- Basic.args = {
24
- icon: 'warning',
25
- colour: 'red',
26
- };
27
- const WithPopoverTemplate = ({ icon, colour }) => `
28
- <div style="overflow: auto; height: 300px;">
29
- <div style="margin-top:150px; height:300px;">
30
- <tttx-icon icon="${icon}" colour="${colour}">
31
- <div slot="popover">
32
- <tttx-popover-content
33
- header="The humble egg"
34
- body="Most arthropods such as insects, vertebrates (excluding live-bearing mammals), and mollusks lay eggs, although some, such as scorpions, do not."
35
- linkcontext="Wikipedia_egg"
36
- linktext="Learn more about eggs"
37
- />
38
- </div>
39
- </tttx-icon>
40
- </div>
41
- </div>
42
- `;
43
- export const WithPopover = WithPopoverTemplate.bind({});
44
- WithPopover.args = {
45
- icon: 'warning',
46
- colour: 'red',
47
- };
@@ -1,48 +0,0 @@
1
- .material-symbols-rounded {
2
- font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
- }
4
-
5
- .spinner-container {
6
- position: absolute;
7
- }
8
-
9
- .loading-box {
10
- display: flex;
11
- align-items: center;
12
- justify-content: center;
13
- }
14
-
15
- .loading-text {
16
- font-size: 16px;
17
- font-weight: 400;
18
- padding-top: 10px;
19
- text-align: center;
20
- }
21
-
22
- .spinner {
23
- border: solid #1479c6;
24
- border-bottom-color: #d5d5d5;
25
- border-radius: 50%;
26
- position: relative;
27
- box-sizing: border-box;
28
- animation: rotation 1s linear infinite;
29
- }
30
- .spinner.small {
31
- height: 20px;
32
- width: 20px;
33
- border-width: 4px;
34
- }
35
- .spinner.large {
36
- height: 60px;
37
- width: 60px;
38
- border-width: 8px;
39
- }
40
-
41
- @keyframes rotation {
42
- 0% {
43
- transform: rotate(0deg);
44
- }
45
- 100% {
46
- transform: rotate(360deg);
47
- }
48
- }
@@ -1,66 +0,0 @@
1
- import { h } from '@stencil/core';
2
- export class TttxLoadingSpinner {
3
- constructor() {
4
- this.loadingMessage = undefined;
5
- this.size = 'large';
6
- }
7
- renderLoadingMessage() {
8
- if (!this.loadingMessage)
9
- return '';
10
- return h("div", { class: "loading-text" }, "Loading, please wait...");
11
- }
12
- render() {
13
- return (h("div", { class: "spinner-container" }, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
14
- }
15
- static get is() { return "tttx-loading-spinner"; }
16
- static get encapsulation() { return "shadow"; }
17
- static get originalStyleUrls() {
18
- return {
19
- "$": ["tttx-loading-spinner.scss"]
20
- };
21
- }
22
- static get styleUrls() {
23
- return {
24
- "$": ["tttx-loading-spinner.css"]
25
- };
26
- }
27
- static get properties() {
28
- return {
29
- "loadingMessage": {
30
- "type": "boolean",
31
- "mutable": true,
32
- "complexType": {
33
- "original": "boolean",
34
- "resolved": "boolean",
35
- "references": {}
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": ""
42
- },
43
- "attribute": "loading-message",
44
- "reflect": false
45
- },
46
- "size": {
47
- "type": "string",
48
- "mutable": true,
49
- "complexType": {
50
- "original": "'small' | 'large'",
51
- "resolved": "\"large\" | \"small\"",
52
- "references": {}
53
- },
54
- "required": false,
55
- "optional": false,
56
- "docs": {
57
- "tags": [],
58
- "text": ""
59
- },
60
- "attribute": "size",
61
- "reflect": false,
62
- "defaultValue": "'large'"
63
- }
64
- };
65
- }
66
- }
@@ -1,17 +0,0 @@
1
- export default {
2
- title: 'atoms/TTTX 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,30 +0,0 @@
1
- .material-symbols-rounded {
2
- font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
- }
4
-
5
- :host {
6
- display: block;
7
- max-width: 400px;
8
- }
9
-
10
- h4 {
11
- margin: 0;
12
- font-size: 15px;
13
- font-weight: 700;
14
- color: black;
15
- margin-bottom: 4px;
16
- }
17
-
18
- p {
19
- margin: 0;
20
- font-size: 14px;
21
- font-weight: normal;
22
- color: black;
23
- margin-bottom: 4px;
24
- }
25
-
26
- .linky {
27
- color: #1479c6;
28
- text-decoration: none;
29
- cursor: pointer;
30
- }
@@ -1,96 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- export class TttxPopoverContent {
3
- constructor() {
4
- this.header = undefined;
5
- this.body = undefined;
6
- this.linkcontext = undefined;
7
- this.linktext = undefined;
8
- }
9
- render() {
10
- return (h(Host, null, this.header && h("h4", null, this.header), this.body && h("p", null, this.body), this.linkcontext && (h("span", { class: "linky", onClick: evt => console.log(this.linkcontext, evt) }, this.linktext || 'More Information'))));
11
- }
12
- static get is() { return "tttx-popover-content"; }
13
- static get encapsulation() { return "shadow"; }
14
- static get originalStyleUrls() {
15
- return {
16
- "$": ["tttx-popover-content.scss"]
17
- };
18
- }
19
- static get styleUrls() {
20
- return {
21
- "$": ["tttx-popover-content.css"]
22
- };
23
- }
24
- static get properties() {
25
- return {
26
- "header": {
27
- "type": "string",
28
- "mutable": false,
29
- "complexType": {
30
- "original": "string",
31
- "resolved": "string",
32
- "references": {}
33
- },
34
- "required": false,
35
- "optional": false,
36
- "docs": {
37
- "tags": [],
38
- "text": ""
39
- },
40
- "attribute": "header",
41
- "reflect": false
42
- },
43
- "body": {
44
- "type": "string",
45
- "mutable": false,
46
- "complexType": {
47
- "original": "string",
48
- "resolved": "string",
49
- "references": {}
50
- },
51
- "required": false,
52
- "optional": false,
53
- "docs": {
54
- "tags": [],
55
- "text": ""
56
- },
57
- "attribute": "body",
58
- "reflect": false
59
- },
60
- "linkcontext": {
61
- "type": "string",
62
- "mutable": false,
63
- "complexType": {
64
- "original": "string",
65
- "resolved": "string",
66
- "references": {}
67
- },
68
- "required": false,
69
- "optional": false,
70
- "docs": {
71
- "tags": [],
72
- "text": ""
73
- },
74
- "attribute": "linkcontext",
75
- "reflect": false
76
- },
77
- "linktext": {
78
- "type": "string",
79
- "mutable": false,
80
- "complexType": {
81
- "original": "string",
82
- "resolved": "string",
83
- "references": {}
84
- },
85
- "required": false,
86
- "optional": false,
87
- "docs": {
88
- "tags": [],
89
- "text": ""
90
- },
91
- "attribute": "linktext",
92
- "reflect": false
93
- }
94
- };
95
- }
96
- }
@@ -1,23 +0,0 @@
1
- export default {
2
- title: 'Atoms/PopoverContent',
3
- component: 'tttx-popover-content',
4
- argTypes: {
5
- header: {
6
- control: {
7
- type: 'text',
8
- },
9
- },
10
- body: {
11
- control: {
12
- type: 'text',
13
- },
14
- },
15
- },
16
- };
17
- const Template = ({ header, body, linkcontext }) => `<tttx-popover-content header="${header}" body="${body}" linkcontext="${linkcontext}" />`;
18
- export const Basic = Template.bind({});
19
- Basic.args = {
20
- header: 'HEADER',
21
- body: 'BODY',
22
- linkcontext: 'TESTING123',
23
- };