@3t-transform/threeteeui 0.0.7 → 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 (89) hide show
  1. package/dist/cjs/{index-253ca97c.js → index-8a4cb9bc.js} +26 -1
  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.cjs.entry.js +2 -2
  5. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-icon.cjs.entry.js +1861 -0
  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 +2 -2
  11. package/dist/collection/collection-manifest.json +5 -3
  12. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +1 -4
  13. package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +101 -0
  14. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +114 -0
  15. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +47 -0
  16. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +48 -0
  17. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -0
  18. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +15 -0
  19. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +30 -0
  20. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -0
  21. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -0
  22. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +1 -4
  23. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +18 -22
  24. package/dist/collection/components/{atoms/tttx-text-box/tttx-text-box.css → molecules/tttx-input/tttx-input.css} +11 -4
  25. package/dist/collection/components/{atoms/tttx-single-input/tttx-single-input.js → molecules/tttx-input/tttx-input.js} +5 -5
  26. package/dist/collection/components/molecules/tttx-input/tttx-input.stories.js +106 -0
  27. package/dist/collection/components/palette.stories.js +88 -0
  28. package/dist/components/index.d.ts +4 -2
  29. package/dist/components/index.js +4 -2
  30. package/dist/components/tttx-checkbox.js +1 -1
  31. package/dist/components/{tttx-text-box.d.ts → tttx-icon.d.ts} +4 -4
  32. package/dist/components/tttx-icon.js +6 -0
  33. package/dist/components/tttx-icon2.js +1875 -0
  34. package/dist/components/{tttx-single-input.d.ts → tttx-input.d.ts} +4 -4
  35. package/dist/components/tttx-input.js +77 -0
  36. package/dist/components/tttx-loading-spinner.d.ts +11 -0
  37. package/dist/components/tttx-loading-spinner.js +43 -0
  38. package/dist/components/tttx-popover-content.d.ts +11 -0
  39. package/dist/components/tttx-popover-content.js +42 -0
  40. package/dist/esm/{index-fcca6c58.js → index-9654537d.js} +26 -1
  41. package/dist/esm/loader.js +3 -3
  42. package/dist/esm/tttx-button.entry.js +1 -1
  43. package/dist/esm/tttx-checkbox.entry.js +2 -2
  44. package/dist/esm/tttx-form.entry.js +1 -1
  45. package/dist/esm/tttx-icon.entry.js +1857 -0
  46. package/dist/esm/tttx-input.entry.js +40 -0
  47. package/dist/esm/tttx-loading-spinner.entry.js +22 -0
  48. package/dist/esm/tttx-popover-content.entry.js +19 -0
  49. package/dist/esm/tttx.js +3 -3
  50. package/dist/tttx/p-1884203f.entry.js +1 -0
  51. package/dist/tttx/p-317b13d3.entry.js +1 -0
  52. package/dist/tttx/{p-8d1f2e5c.entry.js → p-3cb692d6.entry.js} +1 -1
  53. package/dist/tttx/p-3cd7ad04.entry.js +1 -0
  54. package/dist/tttx/p-674e2f18.entry.js +1 -0
  55. package/dist/tttx/p-a23389f1.entry.js +1 -0
  56. package/dist/tttx/p-b6cc2780.js +2 -0
  57. package/dist/tttx/{p-40709c59.entry.js → p-f30a0e84.entry.js} +1 -1
  58. package/dist/tttx/tttx.esm.js +1 -1
  59. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -0
  60. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -0
  61. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -0
  62. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +5 -0
  63. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -0
  64. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -0
  65. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -5
  66. package/dist/types/components/{atoms/tttx-single-input/tttx-single-input.d.ts → molecules/tttx-input/tttx-input.d.ts} +1 -1
  67. package/dist/types/components/molecules/tttx-input/tttx-input.stories.d.ts +60 -0
  68. package/dist/types/components.d.ts +63 -36
  69. package/package.json +67 -58
  70. package/readme.md +14 -27
  71. package/dist/cjs/tttx-single-input.cjs.entry.js +0 -44
  72. package/dist/cjs/tttx-text-box.cjs.entry.js +0 -38
  73. package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.css +0 -142
  74. package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.stories.js +0 -92
  75. package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.js +0 -150
  76. package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.stories.js +0 -17
  77. package/dist/collection/docs/template.stories.js +0 -10
  78. package/dist/components/tttx-single-input.js +0 -71
  79. package/dist/components/tttx-text-box.js +0 -59
  80. package/dist/esm/tttx-single-input.entry.js +0 -40
  81. package/dist/esm/tttx-text-box.entry.js +0 -34
  82. package/dist/tttx/p-05d7d002.entry.js +0 -1
  83. package/dist/tttx/p-64703252.entry.js +0 -1
  84. package/dist/tttx/p-9bf836ed.entry.js +0 -1
  85. package/dist/tttx/p-a7b95fd2.js +0 -2
  86. package/dist/types/components/atoms/tttx-single-input/tttx-single-input.stories.d.ts +0 -27
  87. package/dist/types/components/atoms/tttx-text-box/tttx-text-box.d.ts +0 -14
  88. package/dist/types/docs/template.stories.d.ts +0 -5
  89. /package/dist/types/components/{atoms/tttx-text-box/tttx-text-box.stories.d.ts → palette.stories.d.ts} +0 -0
@@ -1,10 +0,0 @@
1
- export default {
2
- title: 'Getting Started/Designer',
3
- };
4
- const Template = () => `
5
- <tttx-typography>
6
- <h1>Getting Started</h1>
7
- <p>....</p>
8
- </tttx-typography>
9
- `;
10
- export const Default = Template.bind({});
@@ -1,71 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
-
3
- const tttxSingleInputCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\";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;font-size:16px;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{height:16px;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;color:white;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}.errorstate{border-color:#DC0000}";
4
-
5
- const TttxSingleInput$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.handleFocus = () => {
12
- this.isfocused = true;
13
- };
14
- this.handleBlur = () => {
15
- this.isfocused = false;
16
- };
17
- this.isfocused = false;
18
- this.label = undefined;
19
- this.valid = undefined;
20
- this.showerrormsg = undefined;
21
- this.errormsg = undefined;
22
- this.value = undefined;
23
- this.type = 'text';
24
- this.placeholder = undefined;
25
- this.pattern = undefined;
26
- this.iconleft = undefined;
27
- this.iconright = undefined;
28
- this.required = undefined;
29
- }
30
- handleChange(event) {
31
- const target = event.target;
32
- this.value = target.value;
33
- this.valueChanged.emit(target.value);
34
- }
35
- render() {
36
- const inputClass = ['container', this.showerrormsg ? 'errorstate' : '', this.isfocused ? 'focused' : '', this.iconleft ? 'iconleft' : ''].join(' ');
37
- 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("div", { class: inputClass }, this.iconleft && (h("div", { class: "icon-left" }, h("span", { class: "material-symbols-rounded" }, this.iconleft))), h("input", { class: "input", onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), type: this.type, placeholder: this.placeholder, value: this.value, onInput: event => this.handleChange(event) }), this.iconright && (h("div", { class: "icon-right" }, h("span", { class: "material-symbols-rounded" }, this.iconright)))), this.showerrormsg && this.errormsg && h("div", { class: "errormsg" }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
38
- }
39
- static get style() { return tttxSingleInputCss; }
40
- }, [1, "tttx-single-input", {
41
- "label": [1],
42
- "valid": [4],
43
- "showerrormsg": [4],
44
- "errormsg": [1],
45
- "value": [1025],
46
- "type": [1],
47
- "placeholder": [1],
48
- "pattern": [1],
49
- "iconleft": [1],
50
- "iconright": [1],
51
- "required": [4],
52
- "isfocused": [32]
53
- }]);
54
- function defineCustomElement$1() {
55
- if (typeof customElements === "undefined") {
56
- return;
57
- }
58
- const components = ["tttx-single-input"];
59
- components.forEach(tagName => { switch (tagName) {
60
- case "tttx-single-input":
61
- if (!customElements.get(tagName)) {
62
- customElements.define(tagName, TttxSingleInput$1);
63
- }
64
- break;
65
- } });
66
- }
67
-
68
- const TttxSingleInput = TttxSingleInput$1;
69
- const defineCustomElement = defineCustomElement$1;
70
-
71
- export { TttxSingleInput, defineCustomElement };
@@ -1,59 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
-
3
- const tttxTextBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\";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;font-size:16px;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{height:16px;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;color:white;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}.errorstate{border-color:#DC0000}";
4
-
5
- const TttxTextBox$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.handleFocus = () => {
12
- this.isfocused = true;
13
- };
14
- this.handleBlur = () => {
15
- this.isfocused = false;
16
- };
17
- this.label = undefined;
18
- this.showerrormsg = undefined;
19
- this.errormsg = undefined;
20
- this.required = undefined;
21
- this.value = undefined;
22
- this.isfocused = false;
23
- }
24
- handleChange(event) {
25
- const target = event.target;
26
- this.value = target.value;
27
- this.valueChanged.emit(target.value);
28
- }
29
- render() {
30
- const inputClass = ['container', this.showerrormsg ? 'errorstate' : '', this.isfocused ? 'focused' : ''].join(' ');
31
- 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("div", { class: inputClass }, h("input", { class: "input", type: "text", value: this.value, required: this.required, onInput: event => this.handleChange(event), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this) })), this.showerrormsg && this.errormsg && h("div", { class: "errormsg" }, this.errormsg))));
32
- }
33
- static get style() { return tttxTextBoxCss; }
34
- }, [1, "tttx-text-box", {
35
- "label": [1],
36
- "showerrormsg": [4],
37
- "errormsg": [1],
38
- "required": [4],
39
- "value": [1025],
40
- "isfocused": [32]
41
- }]);
42
- function defineCustomElement$1() {
43
- if (typeof customElements === "undefined") {
44
- return;
45
- }
46
- const components = ["tttx-text-box"];
47
- components.forEach(tagName => { switch (tagName) {
48
- case "tttx-text-box":
49
- if (!customElements.get(tagName)) {
50
- customElements.define(tagName, TttxTextBox$1);
51
- }
52
- break;
53
- } });
54
- }
55
-
56
- const TttxTextBox = TttxTextBox$1;
57
- const defineCustomElement = defineCustomElement$1;
58
-
59
- export { TttxTextBox, defineCustomElement };
@@ -1,40 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-fcca6c58.js';
2
-
3
- const tttxSingleInputCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\";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;font-size:16px;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{height:16px;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;color:white;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}.errorstate{border-color:#DC0000}";
4
-
5
- const TttxSingleInput = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.valueChanged = createEvent(this, "valueChanged", 7);
9
- this.handleFocus = () => {
10
- this.isfocused = true;
11
- };
12
- this.handleBlur = () => {
13
- this.isfocused = false;
14
- };
15
- this.isfocused = false;
16
- this.label = undefined;
17
- this.valid = undefined;
18
- this.showerrormsg = undefined;
19
- this.errormsg = undefined;
20
- this.value = undefined;
21
- this.type = 'text';
22
- this.placeholder = undefined;
23
- this.pattern = undefined;
24
- this.iconleft = undefined;
25
- this.iconright = undefined;
26
- this.required = undefined;
27
- }
28
- handleChange(event) {
29
- const target = event.target;
30
- this.value = target.value;
31
- this.valueChanged.emit(target.value);
32
- }
33
- render() {
34
- const inputClass = ['container', this.showerrormsg ? 'errorstate' : '', this.isfocused ? 'focused' : '', this.iconleft ? 'iconleft' : ''].join(' ');
35
- 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("div", { class: inputClass }, this.iconleft && (h("div", { class: "icon-left" }, h("span", { class: "material-symbols-rounded" }, this.iconleft))), h("input", { class: "input", onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), type: this.type, placeholder: this.placeholder, value: this.value, onInput: event => this.handleChange(event) }), this.iconright && (h("div", { class: "icon-right" }, h("span", { class: "material-symbols-rounded" }, this.iconright)))), this.showerrormsg && this.errormsg && h("div", { class: "errormsg" }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
36
- }
37
- };
38
- TttxSingleInput.style = tttxSingleInputCss;
39
-
40
- export { TttxSingleInput as tttx_single_input };
@@ -1,34 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-fcca6c58.js';
2
-
3
- const tttxTextBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\";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;font-size:16px;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{height:16px;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;color:white;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}.errorstate{border-color:#DC0000}";
4
-
5
- const TttxTextBox = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.valueChanged = createEvent(this, "valueChanged", 7);
9
- this.handleFocus = () => {
10
- this.isfocused = true;
11
- };
12
- this.handleBlur = () => {
13
- this.isfocused = false;
14
- };
15
- this.label = undefined;
16
- this.showerrormsg = undefined;
17
- this.errormsg = undefined;
18
- this.required = undefined;
19
- this.value = undefined;
20
- this.isfocused = false;
21
- }
22
- handleChange(event) {
23
- const target = event.target;
24
- this.value = target.value;
25
- this.valueChanged.emit(target.value);
26
- }
27
- render() {
28
- const inputClass = ['container', this.showerrormsg ? 'errorstate' : '', this.isfocused ? 'focused' : ''].join(' ');
29
- 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("div", { class: inputClass }, h("input", { class: "input", type: "text", value: this.value, required: this.required, onInput: event => this.handleChange(event), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this) })), this.showerrormsg && this.errormsg && h("div", { class: "errormsg" }, this.errormsg))));
30
- }
31
- };
32
- TttxTextBox.style = tttxTextBoxCss;
33
-
34
- export { TttxTextBox as tttx_text_box };
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as o,H as s}from"./p-a7b95fd2.js";const n=class{constructor(o){i(this,o),this.valueChanged=t(this,"valueChanged",7),this.handleFocus=()=>{this.isfocused=!0},this.handleBlur=()=>{this.isfocused=!1},this.isfocused=!1,this.label=void 0,this.valid=void 0,this.showerrormsg=void 0,this.errormsg=void 0,this.value=void 0,this.type="text",this.placeholder=void 0,this.pattern=void 0,this.iconleft=void 0,this.iconright=void 0,this.required=void 0}handleChange(i){const t=i.target;this.value=t.value,this.valueChanged.emit(t.value)}render(){const i=["container",this.showerrormsg?"errorstate":"",this.isfocused?"focused":"",this.iconleft?"iconleft":""].join(" ");return o(s,null,o("div",{class:"field spacing"},this.label&&o("label",{class:"label"},this.label,this.required?"":o("span",{class:"optional"}," (optional)")),o("div",{class:i},this.iconleft&&o("div",{class:"icon-left"},o("span",{class:"material-symbols-rounded"},this.iconleft)),o("input",{class:"input",onFocus:this.handleFocus.bind(this),onBlur:this.handleBlur.bind(this),type:this.type,placeholder:this.placeholder,value:this.value,onInput:i=>this.handleChange(i)}),this.iconright&&o("div",{class:"icon-right"},o("span",{class:"material-symbols-rounded"},this.iconright))),this.showerrormsg&&this.errormsg&&o("div",{class:"errormsg"},o("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg)))}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded";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;font-size:16px;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{height:16px;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;color:white;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}.errorstate{border-color:#DC0000}';export{n as tttx_single_input}
@@ -1 +0,0 @@
1
- import{r as i,c as o,h as t,H as e}from"./p-a7b95fd2.js";const n=class{constructor(t){i(this,t),this.valueChanged=o(this,"valueChanged",7),this.value=void 0,this.label=void 0,this.required=void 0}handleClick(i){const o=i.target;this.value=o.checked,this.valueChanged.emit(o.checked)}render(){return t(e,null,t("div",{class:"field spacing"},this.label&&t("label",{class:"label"},this.label,this.required?"":t("span",{class:"optional"}," (optional)")),t("input",{type:"checkbox",class:"input",onChange:i=>this.handleClick(i),checked:this.value})))}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded";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;font-size:16px;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{height:16px;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;color:white;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}';export{n as tttx_checkbox}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as o,H as e}from"./p-a7b95fd2.js";const n=class{constructor(o){i(this,o),this.valueChanged=t(this,"valueChanged",7),this.handleFocus=()=>{this.isfocused=!0},this.handleBlur=()=>{this.isfocused=!1},this.label=void 0,this.showerrormsg=void 0,this.errormsg=void 0,this.required=void 0,this.value=void 0,this.isfocused=!1}handleChange(i){const t=i.target;this.value=t.value,this.valueChanged.emit(t.value)}render(){const i=["container",this.showerrormsg?"errorstate":"",this.isfocused?"focused":""].join(" ");return o(e,null,o("div",{class:"field spacing"},this.label&&o("label",{class:"label"},this.label,this.required?"":o("span",{class:"optional"}," (optional)")),o("div",{class:i},o("input",{class:"input",type:"text",value:this.value,required:this.required,onInput:i=>this.handleChange(i),onFocus:this.handleFocus.bind(this),onBlur:this.handleBlur.bind(this)})),this.showerrormsg&&this.errormsg&&o("div",{class:"errormsg"},this.errormsg)))}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded";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;font-size:16px;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{height:16px;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;color:white;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}.errorstate{border-color:#DC0000}';export{n as tttx_text_box}
@@ -1,2 +0,0 @@
1
- let t,e,n=!1;const l={},o=t=>"object"==(t=typeof t)||"function"===t;function s(t){var e,n,l;return null!==(l=null===(n=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const c=(t,e,...n)=>{let l=null,s=!1,c=!1;const r=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!o(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?i(null,l):l),c=s)};if(u(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const a=i(t,null);return a.l=e,r.length>0&&(a.o=r),a},i=(t,e)=>({i:0,u:t,t:e,h:null,o:null,l:null}),r={},u=t=>D(t).$,a=(t,e,n)=>{const l=u(t);return{emit:t=>f(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},f=(t,e,n)=>{const l=Q.ce(e,n);return t.dispatchEvent(l),l},d=new WeakMap,h=t=>"sc-"+t.m,$=(t,e,n,l,s,c)=>{if(n!==l){let i=_(t,e),r=e.toLowerCase();if("class"===e){const e=t.classList,o=y(n),s=y(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if(i||"o"!==e[0]||"n"!==e[1]){const r=o(l);if((i||r&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&c||s)&&!r&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):_(J,r)?r.slice(2):r[2]+e.slice(3),n&&Q.rel(t,e,n,!1),l&&Q.ael(t,e,l,!1)}},m=/\s/,y=t=>t?t.split(m):[],p=(t,e,n,o)=>{const s=11===e.h.nodeType&&e.h.host?e.h.host:e.h,c=t&&t.l||l,i=e.l||l;for(o in c)o in i||$(s,o,c[o],void 0,n,e.i);for(o in i)$(s,o,c[o],i[o],n,e.i)},b=(e,n,l)=>{const o=n.o[l];let s,c,i=0;if(null!==o.t)s=o.h=K.createTextNode(o.t);else if(s=o.h=K.createElement(o.u),p(null,o,!1),null!=t&&s["s-si"]!==t&&s.classList.add(s["s-si"]=t),o.o)for(i=0;i<o.o.length;++i)c=b(e,o,i),c&&s.appendChild(c);return s},v=(t,n,l,o,s,c)=>{let i,r=t;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=b(null,l,s),i&&(o[s].h=i,r.insertBefore(i,n)))},w=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.h.remove()},S=(t,e)=>t.u===e.u,g=(t,e)=>{const n=e.h=t.h,l=t.o,o=e.o,s=e.t;null===s?("slot"===e.u||p(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,c=0,i=e.length-1,r=e[0],u=e[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=e[++s]:null==u?u=e[--i]:null==f?f=l[++c]:null==d?d=l[--a]:S(r,f)?(g(r,f),r=e[++s],f=l[++c]):S(u,d)?(g(u,d),u=e[--i],d=l[--a]):S(r,d)?(g(r,d),t.insertBefore(r.h,u.h.nextSibling),r=e[++s],d=l[--a]):S(u,f)?(g(u,f),t.insertBefore(u.h,r.h),u=e[--i],f=l[++c]):(o=b(e&&e[c],n,c),f=l[++c],o&&r.h.parentNode.insertBefore(o,r.h));s>i?v(t,null==l[a+1]?null:l[a+1].h,n,l,c,a):c>a&&w(e,s,i)})(n,l,e,o):null!==o?(null!==t.t&&(n.textContent=""),v(n,null,e,o,0,o.length-1)):null!==l&&w(l,0,l.length-1)):t.t!==s&&(n.data=s)},j=(t,e)=>{e&&!t.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.p=e)))},M=(t,e)=>{if(t.i|=16,!(4&t.i))return j(t,t.v),st((()=>k(t,e)));t.i|=512},k=(t,e)=>{const n=t.S;return e&&(t.i|=256,t.g&&(t.g.map((([t,e])=>E(n,t,e))),t.g=null)),L(void 0,(()=>C(t,n,e)))},C=async(t,e,n)=>{const l=t.$,o=l["s-rc"];n&&(t=>{const e=t.j,n=t.$,l=e.i,o=((t,e)=>{var n;let l=h(e);const o=I.get(l);if(t=11===t.nodeType?t:K,o)if("string"==typeof o){let e,c=d.get(t=t.head||t);if(c||d.set(t,c=new Set),!c.has(l)){{e=K.createElement("style"),e.innerHTML=o;const l=null!==(n=Q.M)&&void 0!==n?n:s(K);null!=l&&e.setAttribute("nonce",l),t.insertBefore(e,t.querySelector("link"))}c&&c.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);O(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>x(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},O=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.$,s=n.k||i(null,null),u=(t=>t&&t.u===r)(l)?l:c(null,null,l);e=o.tagName,u.u=null,u.i|=4,n.k=u,u.h=s.h=o.shadowRoot||o,t=o["s-sc"],g(s,u)})(n,l)}catch(t){z(t,n.$)}return null},x=t=>{const e=t.$,n=t.S,l=t.v;64&t.i||(t.i|=64,N(e),E(n,"componentDidLoad"),t.C(e),l||P()),t.p&&(t.p(),t.p=void 0),512&t.i&&ot((()=>M(t,!1))),t.i&=-517},P=()=>{N(K.documentElement),ot((()=>f(J,"appload",{detail:{namespace:"tttx"}})))},E=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){z(t)}},L=(t,e)=>t&&t.then?t.then(e):e(),N=t=>t.classList.add("hydrated"),T=(t,e,n)=>{if(e.O){const l=Object.entries(e.O),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>D(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=D(t),c=s.P.get(e),i=s.i,r=s.S;n=((t,e)=>null==t||o(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t)(n,l.O[e][0]),8&i&&void 0!==c||n===c||Number.isNaN(c)&&Number.isNaN(n)||(s.P.set(e,n),r&&2==(18&i)&&M(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){Q.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},A=(t,e={})=>{var n;const l=[],o=e.exclude||[],c=J.customElements,i=K.head,r=i.querySelector("meta[charset]"),u=K.createElement("style"),a=[];let f,d=!0;Object.assign(Q,e),Q.L=new URL(e.resourcesUrl||"./",K.baseURI).href,t.map((t=>{t[1].map((e=>{const n={i:e[0],m:e[1],O:e[2],N:e[3]};n.O=e[2],n.N=e[3];const s=n.m,i=class extends HTMLElement{constructor(t){super(t),V(t=this,n),1&n.i&&t.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Q.jmp((()=>(t=>{if(0==(1&Q.i)){const e=D(t),n=e.j,l=()=>{};if(1&e.i)H(t,e,n.N);else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){j(e,e.v=n);break}}n.O&&Object.entries(n.O).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,o)=>{if(0==(32&e.i)){{if(e.i|=32,(o=G(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(T(o,n,2),o.isProxied=!0);const t=()=>{};e.i|=8;try{new o(e)}catch(t){z(t)}e.i&=-9,t()}if(o.style){let t=o.style;const e=h(n);if(!I.has(e)){const l=()=>{};((t,e,n)=>{let l=I.get(t);Y&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,I.set(t,l)})(e,t,!!(1&n.i)),l()}}}const s=e.v,c=()=>M(e,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){Q.jmp((()=>(()=>{if(0==(1&Q.i)){const t=D(this);t.T&&(t.T.map((t=>t())),t.T=void 0)}})()))}componentOnReady(){return D(this).A}};n.H=t[0],o.includes(s)||c.get(s)||(l.push(s),c.define(s,T(i,n,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(n=Q.M)&&void 0!==n?n:s(K);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((t=>t.connectedCallback())):Q.jmp((()=>f=setTimeout(P,30)))},H=(t,e,n)=>{n&&n.map((([n,l,o])=>{const s=t,c=R(e,o),i=U(n);Q.ael(s,l,c,i),(e.T=e.T||[]).push((()=>Q.rel(s,l,c,i)))}))},R=(t,e)=>n=>{try{256&t.i?t.S[e](n):(t.g=t.g||[]).push([e,n])}catch(t){z(t)}},U=t=>0!=(2&t),W=t=>Q.M=t,q=new WeakMap,D=t=>q.get(t),F=(t,e)=>q.set(e.S=t,e),V=(t,e)=>{const n={i:0,$:t,j:e,P:new Map};return n.A=new Promise((t=>n.C=t)),t["s-p"]=[],t["s-rc"]=[],H(t,n,e.N),q.set(t,n)},_=(t,e)=>e in t,z=(t,e)=>(0,console.error)(t,e),B=new Map,G=t=>{const e=t.m.replace(/-/g,"_"),n=t.H,l=B.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(B.set(n,t),t[e])),z)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},I=new Map,J="undefined"!=typeof window?window:{},K=J.document||{head:{}},Q={i:0,L:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},X=t=>Promise.resolve(t),Y=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),Z=[],tt=[],et=(t,e)=>l=>{t.push(l),n||(n=!0,e&&4&Q.i?ot(lt):Q.raf(lt))},nt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){z(t)}t.length=0},lt=()=>{nt(Z),nt(tt),(n=Z.length>0)&&Q.raf(lt)},ot=t=>X().then(t),st=et(tt,!0);export{r as H,A as b,a as c,u as g,c as h,X as p,F as r,W as s}
@@ -1,27 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- argTypes: {
5
- iconleft: {
6
- options: string[];
7
- control: {
8
- type: string;
9
- };
10
- };
11
- iconright: {
12
- options: string[];
13
- control: {
14
- type: string;
15
- };
16
- };
17
- type: {
18
- options: string[];
19
- control: {
20
- type: string;
21
- };
22
- };
23
- };
24
- };
25
- export default _default;
26
- export declare const Default: any;
27
- export declare const Example: any;
@@ -1,14 +0,0 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- export declare class TttxTextBox {
3
- label: string;
4
- showerrormsg: boolean;
5
- errormsg: string;
6
- required: boolean;
7
- value: string;
8
- isfocused: boolean;
9
- valueChanged: EventEmitter<string>;
10
- handleChange(event: Event): void;
11
- handleFocus: () => void;
12
- handleBlur: () => void;
13
- render(): any;
14
- }
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const Default: any;