@3t-transform/threeteeui 0.0.6 → 0.0.8

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/dist/cjs/{index-8a7479e4.js → index-8a4cb9bc.js} +256 -407
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +28 -0
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +28 -0
  5. package/dist/cjs/tttx-form.cjs.entry.js +58 -0
  6. package/dist/cjs/tttx-icon.cjs.entry.js +1845 -5
  7. package/dist/cjs/tttx-input.cjs.entry.js +44 -0
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +26 -0
  9. package/dist/cjs/tttx-popover-content.cjs.entry.js +23 -0
  10. package/dist/cjs/tttx.cjs.js +7 -3
  11. package/dist/collection/collection-manifest.json +9 -5
  12. package/dist/collection/components/atoms/tttx-button/tttx-button.css +61 -0
  13. package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -0
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +27 -0
  15. package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +101 -0
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +114 -0
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +47 -0
  18. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +48 -0
  19. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -0
  20. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +15 -0
  21. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +30 -0
  22. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -0
  23. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -0
  24. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +135 -0
  25. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -0
  26. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +13 -0
  27. package/dist/collection/components/molecules/tttx-form/tttx-form.js +109 -0
  28. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +33 -0
  29. package/dist/collection/components/molecules/tttx-input/tttx-input.css +149 -0
  30. package/dist/collection/components/molecules/tttx-input/tttx-input.js +259 -0
  31. package/dist/collection/components/molecules/tttx-input/tttx-input.stories.js +106 -0
  32. package/dist/collection/components/palette.stories.js +88 -0
  33. package/dist/collection/icons.js +2838 -0
  34. package/dist/components/index.d.ts +16 -3
  35. package/dist/components/index.js +7 -3
  36. package/dist/components/{tttx-worksheet.d.ts → tttx-button.d.ts} +4 -4
  37. package/dist/components/tttx-button.js +45 -0
  38. package/dist/components/tttx-checkbox.d.ts +11 -0
  39. package/dist/components/tttx-checkbox.js +46 -0
  40. package/dist/components/{tttx-page.d.ts → tttx-form.d.ts} +4 -4
  41. package/dist/components/tttx-form.js +75 -0
  42. package/dist/components/tttx-icon.js +1 -32
  43. package/dist/components/tttx-icon2.js +1875 -0
  44. package/dist/components/tttx-input.d.ts +11 -0
  45. package/dist/components/tttx-input.js +77 -0
  46. package/dist/components/tttx-loading-spinner.d.ts +11 -0
  47. package/dist/components/tttx-loading-spinner.js +43 -0
  48. package/dist/components/tttx-popover-content.d.ts +11 -0
  49. package/dist/components/tttx-popover-content.js +42 -0
  50. package/dist/esm/{index-854ff56f.js → index-9654537d.js} +254 -408
  51. package/dist/esm/loader.js +4 -3
  52. package/dist/esm/polyfills/css-shim.js +1 -1
  53. package/dist/esm/tttx-button.entry.js +24 -0
  54. package/dist/esm/tttx-checkbox.entry.js +24 -0
  55. package/dist/esm/tttx-form.entry.js +54 -0
  56. package/dist/esm/tttx-icon.entry.js +1845 -5
  57. package/dist/esm/tttx-input.entry.js +40 -0
  58. package/dist/esm/tttx-loading-spinner.entry.js +22 -0
  59. package/dist/esm/tttx-popover-content.entry.js +19 -0
  60. package/dist/esm/tttx.js +4 -3
  61. package/dist/tttx/p-1884203f.entry.js +1 -0
  62. package/dist/tttx/p-317b13d3.entry.js +1 -0
  63. package/dist/tttx/p-3cb692d6.entry.js +1 -0
  64. package/dist/tttx/p-3cd7ad04.entry.js +1 -0
  65. package/dist/tttx/p-674e2f18.entry.js +1 -0
  66. package/dist/tttx/p-a23389f1.entry.js +1 -0
  67. package/dist/tttx/p-b6cc2780.js +2 -0
  68. package/dist/tttx/p-f30a0e84.entry.js +1 -0
  69. package/dist/tttx/tttx.esm.js +1 -1
  70. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -0
  71. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -0
  72. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -0
  73. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -0
  74. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -0
  75. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +5 -0
  76. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -0
  77. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -0
  78. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -0
  79. package/dist/types/{docs/template.stories.d.ts → components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts} +1 -0
  80. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +11 -0
  81. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -0
  82. package/dist/types/components/molecules/tttx-input/tttx-input.d.ts +20 -0
  83. package/dist/types/components/molecules/tttx-input/tttx-input.stories.d.ts +60 -0
  84. package/dist/types/components/palette.stories.d.ts +6 -0
  85. package/dist/types/components.d.ts +142 -38
  86. package/dist/types/icons.d.ts +2 -0
  87. package/dist/types/stencil-public-runtime.d.ts +59 -3
  88. package/loader/index.d.ts +9 -0
  89. package/package.json +33 -25
  90. package/readme.md +14 -32
  91. package/dist/cjs/toolbar-656be6e6.js +0 -34259
  92. package/dist/cjs/tttx-page.cjs.entry.js +0 -927
  93. package/dist/cjs/tttx-worksheet.cjs.entry.js +0 -47
  94. package/dist/collection/components/components/tttx-icon/tttx-icon.css +0 -89
  95. package/dist/collection/components/components/tttx-icon/tttx-icon.js +0 -59
  96. package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +0 -40
  97. package/dist/collection/components/patterns/tttx-page/tttx-page.css +0 -162
  98. package/dist/collection/components/patterns/tttx-page/tttx-page.js +0 -213
  99. package/dist/collection/components/patterns/tttx-page/tttx-page.stories.js +0 -80
  100. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.css +0 -134
  101. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.js +0 -70
  102. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.stories.js +0 -44
  103. package/dist/collection/docs/template.stories.js +0 -10
  104. package/dist/components/tttx-page.js +0 -953
  105. package/dist/components/tttx-worksheet.js +0 -6
  106. package/dist/components/tttx-worksheet2.js +0 -34288
  107. package/dist/esm/toolbar-cede4385.js +0 -34231
  108. package/dist/esm/tttx-page.entry.js +0 -923
  109. package/dist/esm/tttx-worksheet.entry.js +0 -43
  110. package/dist/tttx/p-4b57de2e.entry.js +0 -1
  111. package/dist/tttx/p-61f78304.entry.js +0 -1
  112. package/dist/tttx/p-7244abd4.entry.js +0 -1
  113. package/dist/tttx/p-d038fe18.js +0 -1
  114. package/dist/tttx/p-ddfeb0ba.js +0 -2
  115. package/dist/tttx/tttx.css +0 -1
  116. package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +0 -5
  117. package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +0 -24
  118. package/dist/types/components/patterns/tttx-page/tttx-page.d.ts +0 -21
  119. package/dist/types/components/patterns/tttx-page/tttx-page.stories.d.ts +0 -48
  120. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.d.ts +0 -9
  121. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.stories.d.ts +0 -23
@@ -1,7 +1,11 @@
1
1
  /* tttx custom elements */
2
- export { TttxIcon as TttxIcon } from '../types/components/components/tttx-icon/tttx-icon';
3
- export { TttxPage as TttxPage } from '../types/components/patterns/tttx-page/tttx-page';
4
- export { TttxWorksheet as TttxWorksheet } from '../types/components/patterns/tttx-worksheet/tttx-worksheet';
2
+ export { TttxButton as TttxButton } from '../types/components/atoms/tttx-button/tttx-button';
3
+ export { TttxCheckbox as TttxCheckbox } from '../types/components/atoms/ttx-checkbox/tttx-checkbox';
4
+ export { TttxForm as TttxForm } from '../types/components/molecules/tttx-form/tttx-form';
5
+ export { TttxIcon as TttxIcon } from '../types/components/atoms/tttx-icon/tttx-icon';
6
+ export { TttxInput as TttxInput } from '../types/components/molecules/tttx-input/tttx-input';
7
+ export { TttxLoadingSpinner as TttxLoadingSpinner } from '../types/components/atoms/tttx-loading-spinner/tttx-loading-spinner';
8
+ export { TttxPopoverContent as TttxPopoverContent } from '../types/components/atoms/tttx-popover-content/tttx-popover-content';
5
9
 
6
10
  /**
7
11
  * Used to manually set the base path where assets can be found.
@@ -15,6 +19,15 @@ export { TttxWorksheet as TttxWorksheet } from '../types/components/patterns/ttt
15
19
  */
16
20
  export declare const setAssetPath: (path: string) => void;
17
21
 
22
+ /**
23
+ * Used to specify a nonce value that corresponds with an application's CSP.
24
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
25
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
26
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
27
+ * will result in the same behavior.
28
+ */
29
+ export declare const setNonce: (nonce: string) => void
30
+
18
31
  export interface SetPlatformOptions {
19
32
  raf?: (c: FrameRequestCallback) => number;
20
33
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
@@ -1,4 +1,8 @@
1
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
1
+ export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
+ export { TttxButton, defineCustomElement as defineCustomElementTttxButton } from './tttx-button.js';
3
+ export { TttxCheckbox, defineCustomElement as defineCustomElementTttxCheckbox } from './tttx-checkbox.js';
4
+ export { TttxForm, defineCustomElement as defineCustomElementTttxForm } from './tttx-form.js';
2
5
  export { TttxIcon, defineCustomElement as defineCustomElementTttxIcon } from './tttx-icon.js';
3
- export { TttxPage, defineCustomElement as defineCustomElementTttxPage } from './tttx-page.js';
4
- export { TttxWorksheet, defineCustomElement as defineCustomElementTttxWorksheet } from './tttx-worksheet.js';
6
+ export { TttxInput, defineCustomElement as defineCustomElementTttxInput } from './tttx-input.js';
7
+ export { TttxLoadingSpinner, defineCustomElement as defineCustomElementTttxLoadingSpinner } from './tttx-loading-spinner.js';
8
+ export { TttxPopoverContent, defineCustomElement as defineCustomElementTttxPopoverContent } from './tttx-popover-content.js';
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface TttxWorksheet extends Components.TttxWorksheet, HTMLElement {}
4
- export const TttxWorksheet: {
5
- prototype: TttxWorksheet;
6
- new (): TttxWorksheet;
3
+ interface TttxButton extends Components.TttxButton, HTMLElement {}
4
+ export const TttxButton: {
5
+ prototype: TttxButton;
6
+ new (): TttxButton;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -0,0 +1,45 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{height:36px;padding:8px 16px;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button:hover{background:#f0f0f0}.button:active{background:#e3e3e3}.primary-blue{background:#1479c6;border:1px solid #1479c6}.primary-blue:hover{background:#1169ba}.primary-blue:active{background:#0951a8}.secondary-white{background:white;border:1px solid #212121}:host{display:inline-block}.spacingleft{margin-left:8px}.font-white{color:white}.font-black{color:#212121}";
4
+
5
+ const TttxButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.clickEvent = createEvent(this, "clickEvent", 7);
11
+ this.fontColor = undefined;
12
+ this.buttonStyle = undefined;
13
+ }
14
+ onClick() {
15
+ this.clickEvent.emit('clicked');
16
+ }
17
+ onClicked(event) {
18
+ console.log('Picked up a clickEvent', event);
19
+ }
20
+ render() {
21
+ return (h(Host, null, h("button", { onClick: this.onClick.bind(this), class: `button ${this.fontColor} ${this.buttonStyle}` }, h("span", null, h("slot", null)))));
22
+ }
23
+ static get style() { return tttxButtonCss; }
24
+ }, [1, "tttx-button", {
25
+ "fontColor": [1, "font-color"],
26
+ "buttonStyle": [1, "button-style"]
27
+ }, [[0, "clickEvent", "onClicked"]]]);
28
+ function defineCustomElement$1() {
29
+ if (typeof customElements === "undefined") {
30
+ return;
31
+ }
32
+ const components = ["tttx-button"];
33
+ components.forEach(tagName => { switch (tagName) {
34
+ case "tttx-button":
35
+ if (!customElements.get(tagName)) {
36
+ customElements.define(tagName, TttxButton$1);
37
+ }
38
+ break;
39
+ } });
40
+ }
41
+
42
+ const TttxButton = TttxButton$1;
43
+ const defineCustomElement = defineCustomElement$1;
44
+
45
+ export { TttxButton, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxCheckbox extends Components.TttxCheckbox, HTMLElement {}
4
+ export const TttxCheckbox: {
5
+ prototype: TttxCheckbox;
6
+ new (): TttxCheckbox;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,46 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const tttxCheckboxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.field{clear:both}.container{display:flex;flex-wrap:wrap;box-sizing:border-box;height:36px;border:1px solid #c8c8c8;border-radius:4px}.icon-left,.icon-right{flex-basis:24px}.icon-left span,.icon-right span{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left span{margin-left:4px}.icon-right span{margin-right:4px}.input{flex-grow:1;border:none;outline:none;font-size:16px;padding:8px 16px;background-color:transparent}.iconleft .input{padding-left:4px}.iconright .input{padding-right:4px}.label{display:block;height:18px;font-weight:600;color:#212121;font-size:16px;margin-bottom:4px;z-index:1}.disabled{background:#f0f0f0;color:#9e9e9e;border-color:#c8c8c8}.focused{border-color:#1479c6}.errormsg{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#DC0000}.errormsg .validationicon{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#DC0000}.danger{color:#DC0000}.optional{color:#757575;font-weight:normal}:host{display:block}.spacing{margin-bottom:16px}";
4
+
5
+ const TttxCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.valueChanged = createEvent(this, "valueChanged", 7);
11
+ this.value = undefined;
12
+ this.label = undefined;
13
+ this.required = undefined;
14
+ }
15
+ handleClick(event) {
16
+ const target = event.target;
17
+ this.value = target.checked;
18
+ this.valueChanged.emit(target.checked);
19
+ }
20
+ render() {
21
+ return (h(Host, null, h("div", { class: "field spacing" }, this.label && h("label", { class: "label" }, this.label, !this.required ? h("span", { class: "optional" }, " (optional)") : ''), h("input", { type: "checkbox", class: "input", onChange: event => this.handleClick(event), checked: this.value }))));
22
+ }
23
+ static get style() { return tttxCheckboxCss; }
24
+ }, [1, "tttx-checkbox", {
25
+ "value": [4],
26
+ "label": [1],
27
+ "required": [4]
28
+ }]);
29
+ function defineCustomElement$1() {
30
+ if (typeof customElements === "undefined") {
31
+ return;
32
+ }
33
+ const components = ["tttx-checkbox"];
34
+ components.forEach(tagName => { switch (tagName) {
35
+ case "tttx-checkbox":
36
+ if (!customElements.get(tagName)) {
37
+ customElements.define(tagName, TttxCheckbox$1);
38
+ }
39
+ break;
40
+ } });
41
+ }
42
+
43
+ const TttxCheckbox = TttxCheckbox$1;
44
+ const defineCustomElement = defineCustomElement$1;
45
+
46
+ export { TttxCheckbox, defineCustomElement };
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface TttxPage extends Components.TttxPage, HTMLElement {}
4
- export const TttxPage: {
5
- prototype: TttxPage;
6
- new (): TttxPage;
3
+ interface TttxForm extends Components.TttxForm, HTMLElement {}
4
+ export const TttxForm: {
5
+ prototype: TttxForm;
6
+ new (): TttxForm;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -0,0 +1,75 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+
3
+ const TttxForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
4
+ constructor() {
5
+ super();
6
+ this.__registerHost();
7
+ this.__attachShadow();
8
+ this.formSubmit = createEvent(this, "formSubmit", 7);
9
+ this.fetchFormData = () => {
10
+ let validForm = true;
11
+ const formData = {};
12
+ const elements = this.el.querySelectorAll(`[${this.dataAttribute}]`);
13
+ elements.forEach((element) => {
14
+ const inputElement = element;
15
+ validForm = validForm ? this.validateFormField(inputElement) : false;
16
+ formData[inputElement.getAttribute(this.dataAttribute)] = inputElement.value;
17
+ });
18
+ return validForm ? formData : null;
19
+ };
20
+ this.dataAttribute = 'form-data';
21
+ this.functionAttribute = 'function-data';
22
+ }
23
+ validateFormField(element) {
24
+ let isValid = true;
25
+ const isRequired = element.hasAttribute("required");
26
+ if (isRequired && !element.value) {
27
+ // required and not set, show error
28
+ element.setAttribute("showerrormsg", "true");
29
+ isValid = false;
30
+ }
31
+ else {
32
+ // required and set, ensure error does not show
33
+ element.removeAttribute("showerrormsg");
34
+ }
35
+ return isValid;
36
+ }
37
+ componentDidLoad() {
38
+ const elements = this.el.querySelectorAll(`[${this.functionAttribute}]`);
39
+ elements.forEach((element) => {
40
+ element.addEventListener('click', event => {
41
+ event.preventDefault();
42
+ const formData = this.fetchFormData();
43
+ if (formData) {
44
+ // only emit event if form data is valid
45
+ this.formSubmit.emit(this.fetchFormData());
46
+ }
47
+ });
48
+ });
49
+ }
50
+ render() {
51
+ return (h("div", null, h("slot", null)));
52
+ }
53
+ get el() { return this; }
54
+ }, [1, "tttx-form", {
55
+ "dataAttribute": [1, "data-attribute"],
56
+ "functionAttribute": [1, "function-attribute"]
57
+ }]);
58
+ function defineCustomElement$1() {
59
+ if (typeof customElements === "undefined") {
60
+ return;
61
+ }
62
+ const components = ["tttx-form"];
63
+ components.forEach(tagName => { switch (tagName) {
64
+ case "tttx-form":
65
+ if (!customElements.get(tagName)) {
66
+ customElements.define(tagName, TttxForm$1);
67
+ }
68
+ break;
69
+ } });
70
+ }
71
+
72
+ const TttxForm = TttxForm$1;
73
+ const defineCustomElement = defineCustomElement$1;
74
+
75
+ export { TttxForm, defineCustomElement };
@@ -1,35 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const tttxIconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");@import url(\"https://fonts.googleapis.com/css2?family=Material+Icons+Round\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.material-icons-round{vertical-align:-6px;color:var(--ui-color-lt)}";
4
-
5
- const TttxIcon$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.name = undefined;
10
- this.color = undefined;
11
- }
12
- render() {
13
- return (h("span", { class: "material-icons-round", style: { color: this.color } }, this.name));
14
- }
15
- static get style() { return tttxIconCss; }
16
- }, [0, "tttx-icon", {
17
- "name": [1],
18
- "color": [1]
19
- }]);
20
- function defineCustomElement$1() {
21
- if (typeof customElements === "undefined") {
22
- return;
23
- }
24
- const components = ["tttx-icon"];
25
- components.forEach(tagName => { switch (tagName) {
26
- case "tttx-icon":
27
- if (!customElements.get(tagName)) {
28
- customElements.define(tagName, TttxIcon$1);
29
- }
30
- break;
31
- } });
32
- }
1
+ import { T as TttxIcon$1, d as defineCustomElement$1 } from './tttx-icon2.js';
33
2
 
34
3
  const TttxIcon = TttxIcon$1;
35
4
  const defineCustomElement = defineCustomElement$1;