@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.
- package/dist/cjs/{index-253ca97c.js → index-8a4cb9bc.js} +26 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +1 -1
- package/dist/cjs/tttx-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/tttx-form.cjs.entry.js +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +1861 -0
- package/dist/cjs/tttx-input.cjs.entry.js +44 -0
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +26 -0
- package/dist/cjs/tttx-popover-content.cjs.entry.js +23 -0
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +1 -4
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +101 -0
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +114 -0
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +47 -0
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +48 -0
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -0
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +15 -0
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +30 -0
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -0
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -0
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +1 -4
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +18 -22
- package/dist/collection/components/{atoms/tttx-text-box/tttx-text-box.css → molecules/tttx-input/tttx-input.css} +11 -4
- package/dist/collection/components/{atoms/tttx-single-input/tttx-single-input.js → molecules/tttx-input/tttx-input.js} +5 -5
- package/dist/collection/components/molecules/tttx-input/tttx-input.stories.js +106 -0
- package/dist/collection/components/palette.stories.js +88 -0
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +4 -2
- package/dist/components/tttx-checkbox.js +1 -1
- package/dist/components/{tttx-text-box.d.ts → tttx-icon.d.ts} +4 -4
- package/dist/components/tttx-icon.js +6 -0
- package/dist/components/tttx-icon2.js +1875 -0
- package/dist/components/{tttx-single-input.d.ts → tttx-input.d.ts} +4 -4
- package/dist/components/tttx-input.js +77 -0
- package/dist/components/tttx-loading-spinner.d.ts +11 -0
- package/dist/components/tttx-loading-spinner.js +43 -0
- package/dist/components/tttx-popover-content.d.ts +11 -0
- package/dist/components/tttx-popover-content.js +42 -0
- package/dist/esm/{index-fcca6c58.js → index-9654537d.js} +26 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tttx-button.entry.js +1 -1
- package/dist/esm/tttx-checkbox.entry.js +2 -2
- package/dist/esm/tttx-form.entry.js +1 -1
- package/dist/esm/tttx-icon.entry.js +1857 -0
- package/dist/esm/tttx-input.entry.js +40 -0
- package/dist/esm/tttx-loading-spinner.entry.js +22 -0
- package/dist/esm/tttx-popover-content.entry.js +19 -0
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/p-1884203f.entry.js +1 -0
- package/dist/tttx/p-317b13d3.entry.js +1 -0
- package/dist/tttx/{p-8d1f2e5c.entry.js → p-3cb692d6.entry.js} +1 -1
- package/dist/tttx/p-3cd7ad04.entry.js +1 -0
- package/dist/tttx/p-674e2f18.entry.js +1 -0
- package/dist/tttx/p-a23389f1.entry.js +1 -0
- package/dist/tttx/p-b6cc2780.js +2 -0
- package/dist/tttx/{p-40709c59.entry.js → p-f30a0e84.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -0
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -0
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -0
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +5 -0
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -0
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -0
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -5
- package/dist/types/components/{atoms/tttx-single-input/tttx-single-input.d.ts → molecules/tttx-input/tttx-input.d.ts} +1 -1
- package/dist/types/components/molecules/tttx-input/tttx-input.stories.d.ts +60 -0
- package/dist/types/components.d.ts +63 -36
- package/package.json +67 -58
- package/readme.md +14 -27
- package/dist/cjs/tttx-single-input.cjs.entry.js +0 -44
- package/dist/cjs/tttx-text-box.cjs.entry.js +0 -38
- package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.css +0 -142
- package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.stories.js +0 -92
- package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.js +0 -150
- package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.stories.js +0 -17
- package/dist/collection/docs/template.stories.js +0 -10
- package/dist/components/tttx-single-input.js +0 -71
- package/dist/components/tttx-text-box.js +0 -59
- package/dist/esm/tttx-single-input.entry.js +0 -40
- package/dist/esm/tttx-text-box.entry.js +0 -34
- package/dist/tttx/p-05d7d002.entry.js +0 -1
- package/dist/tttx/p-64703252.entry.js +0 -1
- package/dist/tttx/p-9bf836ed.entry.js +0 -1
- package/dist/tttx/p-a7b95fd2.js +0 -2
- package/dist/types/components/atoms/tttx-single-input/tttx-single-input.stories.d.ts +0 -27
- package/dist/types/components/atoms/tttx-text-box/tttx-text-box.d.ts +0 -14
- package/dist/types/docs/template.stories.d.ts +0 -5
- /package/dist/types/components/{atoms/tttx-text-box/tttx-text-box.stories.d.ts → palette.stories.d.ts} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.material-symbols-rounded {
|
|
6
|
-
font-family: "Material Symbols Rounded";
|
|
6
|
+
font-family: "Material Symbols Rounded", sans-serif;
|
|
7
7
|
font-weight: 400;
|
|
8
8
|
font-style: normal;
|
|
9
9
|
font-size: 24px;
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
|
|
76
76
|
.label {
|
|
77
77
|
display: block;
|
|
78
|
-
font-size: 16px;
|
|
79
78
|
height: 18px;
|
|
80
79
|
font-weight: 600;
|
|
81
80
|
color: #212121;
|
|
@@ -95,7 +94,6 @@
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
.errormsg {
|
|
98
|
-
height: 16px;
|
|
99
97
|
display: flex;
|
|
100
98
|
justify-content: center;
|
|
101
99
|
align-items: center;
|
|
@@ -105,7 +103,6 @@
|
|
|
105
103
|
background-color: transparent;
|
|
106
104
|
height: 26px;
|
|
107
105
|
font-size: 14px;
|
|
108
|
-
color: white;
|
|
109
106
|
border-radius: none;
|
|
110
107
|
z-index: 2;
|
|
111
108
|
color: #DC0000;
|
|
@@ -8,30 +8,26 @@ export default {
|
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
10
|
export const CreateUserTemplate = () => `
|
|
11
|
-
|
|
12
|
-
<tttx-
|
|
13
|
-
<tttx-
|
|
14
|
-
<tttx-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<tttx-button font-color="font-white" button-style="primary-blue" function-data="submit">Create User</tttx-button>
|
|
19
|
-
</tttx-form>
|
|
11
|
+
<tttx-form>
|
|
12
|
+
<tttx-input label="Email Address" form-data="email" errormsg="Email is required" required showerrormsg></tttx-input>
|
|
13
|
+
<tttx-input label="Password" form-data="password" type="password" errormsg="Enter a password" required showerrormsg></tttx-input>
|
|
14
|
+
<tttx-input label="Repeat Password" form-data="repeatpassword" type="password" errormsg="Repeat your password" required showerrormsg></tttx-input>
|
|
15
|
+
<tttx-checkbox label="Has Signed GDPR" form-data="gdpr" required></tttx-checkbox>
|
|
16
|
+
<tttx-button font-color="font-white" button-style="primary-blue" function-data="submit">Create User</tttx-button>
|
|
17
|
+
</tttx-form>
|
|
20
18
|
`;
|
|
21
19
|
export const LoginTemplate = () => `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</tttx-form>
|
|
20
|
+
<tttx-form>
|
|
21
|
+
<tttx-input label="Email" form-data="email" errormsg="email is required" required></tttx-input>
|
|
22
|
+
<tttx-input label="Password" form-data="password" type="password" errormsg="password is required" required></tttx-input>
|
|
23
|
+
<tttx-checkbox label="Remember my Password" form-data="rememberpassword" required></tttx-checkbox>
|
|
24
|
+
<tttx-button font-color="font-white" button-style="primary-blue" function-data="submit">Log In</tttx-button>
|
|
25
|
+
</tttx-form>
|
|
29
26
|
`;
|
|
30
27
|
export const TextBoxExample = () => `
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</tttx-form>
|
|
28
|
+
<tttx-form>
|
|
29
|
+
<tttx-text-box form-data="firstname" label="First Name" errormsg="Field is required" required></tttx-text-box>
|
|
30
|
+
<tttx-text-box form-data="lastname" label="Last Name"></tttx-text-box>
|
|
31
|
+
<tttx-button font-color="font-white" button-style="primary-blue" function-data="submit">Submit</tttx-button>
|
|
32
|
+
</tttx-form>
|
|
37
33
|
`;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.material-symbols-rounded {
|
|
6
|
-
font-family: "Material Symbols Rounded";
|
|
6
|
+
font-family: "Material Symbols Rounded", sans-serif;
|
|
7
7
|
font-weight: 400;
|
|
8
8
|
font-style: normal;
|
|
9
9
|
font-size: 24px;
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
|
|
76
76
|
.label {
|
|
77
77
|
display: block;
|
|
78
|
-
font-size: 16px;
|
|
79
78
|
height: 18px;
|
|
80
79
|
font-weight: 600;
|
|
81
80
|
color: #212121;
|
|
@@ -95,7 +94,6 @@
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
.errormsg {
|
|
98
|
-
height: 16px;
|
|
99
97
|
display: flex;
|
|
100
98
|
justify-content: center;
|
|
101
99
|
align-items: center;
|
|
@@ -105,7 +103,6 @@
|
|
|
105
103
|
background-color: transparent;
|
|
106
104
|
height: 26px;
|
|
107
105
|
font-size: 14px;
|
|
108
|
-
color: white;
|
|
109
106
|
border-radius: none;
|
|
110
107
|
z-index: 2;
|
|
111
108
|
color: #DC0000;
|
|
@@ -139,4 +136,14 @@
|
|
|
139
136
|
|
|
140
137
|
.errorstate {
|
|
141
138
|
border-color: #DC0000;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.icon-right {
|
|
142
|
+
margin-top: 5px;
|
|
143
|
+
margin-right: 4px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.icon-left {
|
|
147
|
+
margin-top: 5px;
|
|
148
|
+
margin-left: 4px;
|
|
142
149
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
-
export class
|
|
2
|
+
export class TttxInput {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.handleFocus = () => {
|
|
5
5
|
this.isfocused = true;
|
|
@@ -27,18 +27,18 @@ export class TttxSingleInput {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const inputClass = ['container', this.showerrormsg ? 'errorstate' : '', this.isfocused ? 'focused' : '', this.iconleft ? 'iconleft' : ''].join(' ');
|
|
30
|
-
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("
|
|
30
|
+
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("tttx-icon", { icon: this.iconleft, colour: "grey" }))), 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("tttx-icon", { icon: this.iconright, colour: "grey" })))), this.showerrormsg && this.errormsg && h("div", { class: "errormsg" }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
31
31
|
}
|
|
32
|
-
static get is() { return "tttx-
|
|
32
|
+
static get is() { return "tttx-input"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
35
35
|
return {
|
|
36
|
-
"$": ["tttx-
|
|
36
|
+
"$": ["tttx-input.scss"]
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
static get styleUrls() {
|
|
40
40
|
return {
|
|
41
|
-
"$": ["tttx-
|
|
41
|
+
"$": ["tttx-input.css"]
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
static get properties() {
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import icons from '../../../icons';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Molecules/Text Input',
|
|
4
|
+
component: 'tttx-input',
|
|
5
|
+
argTypes: {
|
|
6
|
+
iconleft: {
|
|
7
|
+
options: icons,
|
|
8
|
+
control: { type: 'select' },
|
|
9
|
+
},
|
|
10
|
+
iconright: {
|
|
11
|
+
options: icons,
|
|
12
|
+
control: { type: 'select' },
|
|
13
|
+
},
|
|
14
|
+
type: {
|
|
15
|
+
options: ['text', 'password', 'email', 'number'],
|
|
16
|
+
control: { type: 'radio' },
|
|
17
|
+
},
|
|
18
|
+
value: {
|
|
19
|
+
control: { type: 'text' },
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
control: { type: 'text' },
|
|
23
|
+
},
|
|
24
|
+
required: {
|
|
25
|
+
control: { type: 'boolean' },
|
|
26
|
+
},
|
|
27
|
+
errormsg: {
|
|
28
|
+
control: { type: 'text' },
|
|
29
|
+
},
|
|
30
|
+
showerrormsg: {
|
|
31
|
+
control: { type: 'boolean' },
|
|
32
|
+
},
|
|
33
|
+
placeholder: {
|
|
34
|
+
control: { type: 'text' },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const TemplateTextInput = ({ value, label, iconleft, iconright, type, required, errormsg, showerrormsg, placeholder }) => `
|
|
39
|
+
<tttx-input
|
|
40
|
+
placeholder="${placeholder}"
|
|
41
|
+
iconleft="${iconleft || ''}"
|
|
42
|
+
iconright="${iconright || ''}"
|
|
43
|
+
value="${value}"
|
|
44
|
+
label="${label}"
|
|
45
|
+
type="${type}"
|
|
46
|
+
errormsg="${errormsg}"
|
|
47
|
+
${required ? `required` : ''}
|
|
48
|
+
${showerrormsg ? `showerrormsg` : ''}
|
|
49
|
+
></tttx-input>
|
|
50
|
+
`;
|
|
51
|
+
export const TextInputBasic = TemplateTextInput.bind({});
|
|
52
|
+
TextInputBasic.args = {
|
|
53
|
+
value: 'Uh egg',
|
|
54
|
+
label: 'Please tell me about your egg',
|
|
55
|
+
iconleft: 'egg',
|
|
56
|
+
type: 'text',
|
|
57
|
+
errormsg: 'Incorrect egg, please egg again.',
|
|
58
|
+
required: true,
|
|
59
|
+
showerrormsg: true,
|
|
60
|
+
placeholder: 'Please for the love of god tell me about your egg',
|
|
61
|
+
};
|
|
62
|
+
export const TextInputIconRight = TemplateTextInput.bind({});
|
|
63
|
+
TextInputIconRight.args = {
|
|
64
|
+
value: 'Uh egg',
|
|
65
|
+
label: 'Please tell me about your egg',
|
|
66
|
+
iconright: 'egg',
|
|
67
|
+
type: 'text',
|
|
68
|
+
errormsg: 'Incorrect egg, please egg again.',
|
|
69
|
+
required: true,
|
|
70
|
+
showerrormsg: true,
|
|
71
|
+
placeholder: 'Please for the love of god tell me about your egg',
|
|
72
|
+
};
|
|
73
|
+
export const PasswordInputBasic = TemplateTextInput.bind({});
|
|
74
|
+
PasswordInputBasic.args = {
|
|
75
|
+
value: 'qwefdweferg',
|
|
76
|
+
label: 'Input your Password',
|
|
77
|
+
iconleft: 'lock',
|
|
78
|
+
type: 'password',
|
|
79
|
+
errormsg: 'Password is not strong enough',
|
|
80
|
+
required: true,
|
|
81
|
+
showerrormsg: true,
|
|
82
|
+
placeholder: 'Your password',
|
|
83
|
+
};
|
|
84
|
+
export const EmailInputBasic = TemplateTextInput.bind({});
|
|
85
|
+
EmailInputBasic.args = {
|
|
86
|
+
value: 'email.address@website.com',
|
|
87
|
+
label: 'Choose an email address',
|
|
88
|
+
iconleft: 'mail',
|
|
89
|
+
type: 'email',
|
|
90
|
+
errormsg: 'This email smells funny',
|
|
91
|
+
required: true,
|
|
92
|
+
valid: false,
|
|
93
|
+
showerrormsg: true,
|
|
94
|
+
placeholder: 'Your email address',
|
|
95
|
+
};
|
|
96
|
+
export const NumberInputBasic = TemplateTextInput.bind({});
|
|
97
|
+
NumberInputBasic.args = {
|
|
98
|
+
value: '42069',
|
|
99
|
+
label: 'What is your favourite number?',
|
|
100
|
+
iconleft: '123',
|
|
101
|
+
type: 'number',
|
|
102
|
+
errormsg: 'This number feels wrong',
|
|
103
|
+
required: true,
|
|
104
|
+
showerrormsg: true,
|
|
105
|
+
placeholder: 'Your favourite number',
|
|
106
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Foundations/Palette',
|
|
3
|
+
component: 'tttx-palette',
|
|
4
|
+
};
|
|
5
|
+
const Swatch = (colour, name = "") => `
|
|
6
|
+
<div class="swatch">
|
|
7
|
+
<div class="swatchcontent" style="background-color:${colour};">
|
|
8
|
+
<div class="pill">${colour}</div>
|
|
9
|
+
</div>
|
|
10
|
+
<p>${name}</p>
|
|
11
|
+
</div>
|
|
12
|
+
`;
|
|
13
|
+
const Template = () => `
|
|
14
|
+
|
|
15
|
+
<style>
|
|
16
|
+
h2 { clear:both; margin-top: 2em; display: block; }
|
|
17
|
+
.swatch { width:130px; height:130px; float:left; font-size: 12px; }
|
|
18
|
+
.swatchcontent { width:120px; height:80px; }
|
|
19
|
+
.pill {
|
|
20
|
+
margin: 0.5em;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
padding: 0.25em 0.5em;
|
|
23
|
+
border-radius: 1em;
|
|
24
|
+
background-color: #FFFFFF;
|
|
25
|
+
color: #000000;
|
|
26
|
+
font-size: 1em;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
}
|
|
29
|
+
p { margin: 8px 0 0 0; }
|
|
30
|
+
</style>
|
|
31
|
+
|
|
32
|
+
<h2>Primary</h2>
|
|
33
|
+
${Swatch("#111111", "$black")}
|
|
34
|
+
${Swatch("#FFFFFF", "$white")}
|
|
35
|
+
${Swatch("#00187C", "$brand")}
|
|
36
|
+
${Swatch("#1579C6", "$accent")}
|
|
37
|
+
${Swatch("#E7F1F9", "$selected")}
|
|
38
|
+
|
|
39
|
+
<h2>Text and icons</h2>
|
|
40
|
+
${Swatch("#212121", "$ui-primary")}
|
|
41
|
+
${Swatch("#757575", "$ui-secondary")}
|
|
42
|
+
${Swatch("#9E9E9E", "$ui-placeholder")}
|
|
43
|
+
${Swatch("#4C4C4C", "$ui-disabled")}
|
|
44
|
+
|
|
45
|
+
<h2>Layout</h2>
|
|
46
|
+
${Swatch("#F0F0F0", "$background")}
|
|
47
|
+
${Swatch("#FAFAFA", "$backround-secondary")}
|
|
48
|
+
${Swatch("#D5D5D5", "$ui-border")}
|
|
49
|
+
|
|
50
|
+
<h2>Buttons</h2>
|
|
51
|
+
${Swatch("#1579C6", "$btn-accent")}
|
|
52
|
+
${Swatch("#146EB3", "$btn-accent-hover")}
|
|
53
|
+
${Swatch("#10609D", "$btn-accent-active")}
|
|
54
|
+
<div style="clear:both;"></div>
|
|
55
|
+
${Swatch("#FFFFFF", "$btn-default")}
|
|
56
|
+
${Swatch("#e6e6e6", "$btn-hover")}
|
|
57
|
+
${Swatch("#cccccc", "$btn-active")}
|
|
58
|
+
<div style="clear:both;"></div>
|
|
59
|
+
${Swatch("#DC0000", "$btn-danger")}
|
|
60
|
+
${Swatch("#C70101", "$btn-danger-hover")}
|
|
61
|
+
${Swatch("#B30303", "$btn-danger-active")}
|
|
62
|
+
<div style="clear:both;"></div>
|
|
63
|
+
${Swatch("#BDBDBD", "$btn-disabled")}
|
|
64
|
+
|
|
65
|
+
<h2>Severity</h2>
|
|
66
|
+
${Swatch("#DC0000", "$severity-critical")}
|
|
67
|
+
${Swatch("#F59500", "$severity-warning")}
|
|
68
|
+
${Swatch("#A2BB31", "$severity-success")}
|
|
69
|
+
${Swatch("#00187C", "$severity-info")}
|
|
70
|
+
<div style="clear:both;"></div>
|
|
71
|
+
${Swatch("#F2BEBE", "$message-critical")}
|
|
72
|
+
${Swatch("#F9E1BE", "$message-warning")}
|
|
73
|
+
${Swatch("#E4EBC9", "$message-success")}
|
|
74
|
+
${Swatch("#C2DAEE", "$message-info")}
|
|
75
|
+
|
|
76
|
+
<h2>Diverging</h2>
|
|
77
|
+
${Swatch("#0373A5", "$dv-lowest")}
|
|
78
|
+
${Swatch("#00C2D1", "$dv-very-low")}
|
|
79
|
+
${Swatch("#50A472", "$dv-low")}
|
|
80
|
+
${Swatch("#A2BB31", "$dv-med-low")}
|
|
81
|
+
${Swatch("#FDC500", "$dv-medium")}
|
|
82
|
+
${Swatch("#F59500", "$dv-med-high")}
|
|
83
|
+
${Swatch("#EA6100", "$dv-high")}
|
|
84
|
+
${Swatch("#DC0000", "$dv-very-high")}
|
|
85
|
+
${Swatch("#A20000", "$dv-highest")}
|
|
86
|
+
|
|
87
|
+
`;
|
|
88
|
+
export const Default = Template.bind({});
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
export { TttxButton as TttxButton } from '../types/components/atoms/tttx-button/tttx-button';
|
|
3
3
|
export { TttxCheckbox as TttxCheckbox } from '../types/components/atoms/ttx-checkbox/tttx-checkbox';
|
|
4
4
|
export { TttxForm as TttxForm } from '../types/components/molecules/tttx-form/tttx-form';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
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';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* Used to manually set the base path where assets can be found.
|
package/dist/components/index.js
CHANGED
|
@@ -2,5 +2,7 @@ export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/intern
|
|
|
2
2
|
export { TttxButton, defineCustomElement as defineCustomElementTttxButton } from './tttx-button.js';
|
|
3
3
|
export { TttxCheckbox, defineCustomElement as defineCustomElementTttxCheckbox } from './tttx-checkbox.js';
|
|
4
4
|
export { TttxForm, defineCustomElement as defineCustomElementTttxForm } from './tttx-form.js';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
5
|
+
export { TttxIcon, defineCustomElement as defineCustomElementTttxIcon } from './tttx-icon.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,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
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\";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;
|
|
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
4
|
|
|
5
5
|
const TttxCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface TttxIcon extends Components.TttxIcon, HTMLElement {}
|
|
4
|
+
export const TttxIcon: {
|
|
5
|
+
prototype: TttxIcon;
|
|
6
|
+
new (): TttxIcon;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|