@3t-transform/threeteeui 0.0.13 → 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.
- package/package.json +7 -4
- package/dist/cjs/index-bf39be87.js +0 -1530
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/tttx-button.cjs.entry.js +0 -28
- package/dist/cjs/tttx-checkbox.cjs.entry.js +0 -28
- package/dist/cjs/tttx-form.cjs.entry.js +0 -186
- package/dist/cjs/tttx-icon.cjs.entry.js +0 -1861
- package/dist/cjs/tttx-list.cjs.entry.js +0 -198
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +0 -26
- package/dist/cjs/tttx-popover-content.cjs.entry.js +0 -23
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +0 -136
- package/dist/cjs/tttx.cjs.js +0 -23
- package/dist/collection/collection-manifest.json +0 -19
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +0 -62
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +0 -93
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +0 -27
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +0 -105
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +0 -114
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +0 -47
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +0 -48
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +0 -66
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +0 -17
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +0 -30
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +0 -96
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +0 -23
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +0 -181
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +0 -101
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +0 -13
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +0 -230
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +0 -249
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +0 -102
- package/dist/collection/components/molecules/tttx-list/tttx-list.css +0 -56
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +0 -311
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +0 -37
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +0 -177
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +0 -569
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +0 -156
- package/dist/collection/components/palette.stories.js +0 -88
- package/dist/collection/docs/gettingstarted-developer.stories.js +0 -9
- package/dist/collection/icons.js +0 -2838
- package/dist/collection/index.js +0 -1
- package/dist/components/index.d.ts +0 -38
- package/dist/components/index.js +0 -9
- package/dist/components/tttx-button.d.ts +0 -11
- package/dist/components/tttx-button.js +0 -45
- package/dist/components/tttx-checkbox.d.ts +0 -11
- package/dist/components/tttx-checkbox.js +0 -46
- package/dist/components/tttx-form.d.ts +0 -11
- package/dist/components/tttx-form.js +0 -203
- package/dist/components/tttx-icon.d.ts +0 -11
- package/dist/components/tttx-icon.js +0 -6
- package/dist/components/tttx-icon2.js +0 -1875
- package/dist/components/tttx-list.d.ts +0 -11
- package/dist/components/tttx-list.js +0 -225
- package/dist/components/tttx-loading-spinner.d.ts +0 -11
- package/dist/components/tttx-loading-spinner.js +0 -6
- package/dist/components/tttx-loading-spinner2.js +0 -40
- package/dist/components/tttx-popover-content.d.ts +0 -11
- package/dist/components/tttx-popover-content.js +0 -42
- package/dist/components/tttx-standalone-input.d.ts +0 -11
- package/dist/components/tttx-standalone-input.js +0 -178
- package/dist/esm/index-63c4d25e.js +0 -1501
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/tttx-button.entry.js +0 -24
- package/dist/esm/tttx-checkbox.entry.js +0 -24
- package/dist/esm/tttx-form.entry.js +0 -182
- package/dist/esm/tttx-icon.entry.js +0 -1857
- package/dist/esm/tttx-list.entry.js +0 -194
- package/dist/esm/tttx-loading-spinner.entry.js +0 -22
- package/dist/esm/tttx-popover-content.entry.js +0 -19
- package/dist/esm/tttx-standalone-input.entry.js +0 -132
- package/dist/esm/tttx.js +0 -18
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/tttx/index.esm.js +0 -0
- package/dist/tttx/p-1a4eb1f3.entry.js +0 -1
- package/dist/tttx/p-25953f82.entry.js +0 -1
- package/dist/tttx/p-2b6720ac.entry.js +0 -1
- package/dist/tttx/p-2d54f8aa.entry.js +0 -1
- package/dist/tttx/p-4c57bcbd.entry.js +0 -1
- package/dist/tttx/p-709246f5.entry.js +0 -1
- package/dist/tttx/p-95a29e09.entry.js +0 -1
- package/dist/tttx/p-ad0c3fe4.entry.js +0 -1
- package/dist/tttx/p-bec472d8.js +0 -2
- package/dist/tttx/tttx.esm.js +0 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +0 -9
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +0 -20
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +0 -14
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +0 -21
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +0 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +0 -17
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +0 -7
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +0 -18
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +0 -9
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +0 -6
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -18
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -6
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +0 -51
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -13
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +0 -38
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +0 -106
- package/dist/types/components/palette.stories.d.ts +0 -6
- package/dist/types/components.d.ts +0 -236
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +0 -5
- package/dist/types/icons.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1637
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import icons from '../../../icons';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Molecules/Standalone Input',
|
|
4
|
-
component: 'tttx-standalone-input',
|
|
5
|
-
argTypes: {
|
|
6
|
-
iconleft: {
|
|
7
|
-
options: icons,
|
|
8
|
-
control: { type: 'select' },
|
|
9
|
-
},
|
|
10
|
-
iconright: {
|
|
11
|
-
options: icons,
|
|
12
|
-
control: { type: 'select' },
|
|
13
|
-
},
|
|
14
|
-
label: {
|
|
15
|
-
control: { type: 'text' },
|
|
16
|
-
},
|
|
17
|
-
errormsg: {
|
|
18
|
-
control: { type: 'text' },
|
|
19
|
-
},
|
|
20
|
-
showerrormsg: {
|
|
21
|
-
control: { type: 'boolean' },
|
|
22
|
-
},
|
|
23
|
-
checked: {
|
|
24
|
-
control: { type: 'boolean' },
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
control: { type: 'boolean' },
|
|
28
|
-
},
|
|
29
|
-
max: {
|
|
30
|
-
control: { type: 'text' },
|
|
31
|
-
},
|
|
32
|
-
maxlength: {
|
|
33
|
-
control: { type: 'text' },
|
|
34
|
-
},
|
|
35
|
-
min: {
|
|
36
|
-
control: { type: 'text' },
|
|
37
|
-
},
|
|
38
|
-
minlength: {
|
|
39
|
-
control: { type: 'text' },
|
|
40
|
-
},
|
|
41
|
-
name: {
|
|
42
|
-
control: { type: 'text' },
|
|
43
|
-
},
|
|
44
|
-
pattern: {
|
|
45
|
-
control: { type: 'text' },
|
|
46
|
-
},
|
|
47
|
-
placeholder: {
|
|
48
|
-
control: { type: 'text' },
|
|
49
|
-
},
|
|
50
|
-
readonly: {
|
|
51
|
-
control: { type: 'boolean' },
|
|
52
|
-
},
|
|
53
|
-
required: {
|
|
54
|
-
control: { type: 'boolean' },
|
|
55
|
-
},
|
|
56
|
-
step: {
|
|
57
|
-
control: { type: 'text' },
|
|
58
|
-
},
|
|
59
|
-
type: {
|
|
60
|
-
options: ['text', 'password', 'email', 'number'],
|
|
61
|
-
control: { type: 'radio' },
|
|
62
|
-
},
|
|
63
|
-
value: {
|
|
64
|
-
control: { type: 'text' },
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
const TemplateTextInput = ({ iconleft, iconright, label, errormsg, showerrormsg, checked, disabled, max, maxlength, min, minlength, name, pattern, placeholder, readonly, required, step, type, value, }) => `
|
|
69
|
-
<tttx-standalone-input
|
|
70
|
-
iconleft="${iconleft || ''}"
|
|
71
|
-
iconright="${iconright || ''}"
|
|
72
|
-
label="${label}"
|
|
73
|
-
errormsg="${errormsg}"
|
|
74
|
-
${showerrormsg ? 'showerrormsg' : ''}
|
|
75
|
-
${checked ? 'checked' : ''}
|
|
76
|
-
${disabled ? 'disabled' : ''}
|
|
77
|
-
${max ? `max=${max}` : ''}
|
|
78
|
-
${maxlength ? `maxlength=${maxlength}` : ''}
|
|
79
|
-
${min ? `min=${min}` : ''}
|
|
80
|
-
${minlength ? `minlength=${minlength}` : ''}
|
|
81
|
-
${name ? `name=${name}` : ''}
|
|
82
|
-
${pattern ? `pattern=${pattern}` : ''}
|
|
83
|
-
${placeholder ? `placeholder=${placeholder}` : ''}
|
|
84
|
-
${readonly ? 'readonly' : ''}
|
|
85
|
-
${required ? 'required' : ''}
|
|
86
|
-
${step ? 'step' : ''}
|
|
87
|
-
type="${type}"
|
|
88
|
-
value="${value}"
|
|
89
|
-
/>
|
|
90
|
-
`;
|
|
91
|
-
export const InputField = TemplateTextInput.bind({});
|
|
92
|
-
InputField.args = {
|
|
93
|
-
value: '',
|
|
94
|
-
label: 'First name',
|
|
95
|
-
type: 'text',
|
|
96
|
-
errormsg: 'Please enter your first name',
|
|
97
|
-
required: false,
|
|
98
|
-
showerrormsg: false,
|
|
99
|
-
placeholder: 'Enter first name',
|
|
100
|
-
};
|
|
101
|
-
// export const TextInputIconLeft = TemplateTextInput.bind({});
|
|
102
|
-
// TextInputIconLeft.args = {
|
|
103
|
-
// value: 'Uh egg',
|
|
104
|
-
// label: 'Please tell me about your egg',
|
|
105
|
-
// iconleft: 'egg',
|
|
106
|
-
// type: 'text',
|
|
107
|
-
// errormsg: 'Incorrect egg, please egg again.',
|
|
108
|
-
// required: true,
|
|
109
|
-
// showerrormsg: true,
|
|
110
|
-
// placeholder: 'Please for the love of god tell me about your egg',
|
|
111
|
-
// };
|
|
112
|
-
// export const TextInputIconRight = TemplateTextInput.bind({});
|
|
113
|
-
// TextInputIconRight.args = {
|
|
114
|
-
// value: 'Uh egg',
|
|
115
|
-
// label: 'Please tell me about your egg',
|
|
116
|
-
// iconright: 'egg',
|
|
117
|
-
// type: 'text',
|
|
118
|
-
// errormsg: 'Incorrect egg, please egg again.',
|
|
119
|
-
// required: true,
|
|
120
|
-
// showerrormsg: true,
|
|
121
|
-
// placeholder: 'Please for the love of god tell me about your egg',
|
|
122
|
-
// };
|
|
123
|
-
// export const PasswordInputBasic = TemplateTextInput.bind({});
|
|
124
|
-
// PasswordInputBasic.args = {
|
|
125
|
-
// value: 'qwefdweferg',
|
|
126
|
-
// label: 'Input your Password',
|
|
127
|
-
// iconleft: 'lock',
|
|
128
|
-
// type: 'password',
|
|
129
|
-
// errormsg: 'Password is not strong enough',
|
|
130
|
-
// required: true,
|
|
131
|
-
// showerrormsg: true,
|
|
132
|
-
// placeholder: 'Your password',
|
|
133
|
-
// };
|
|
134
|
-
// export const EmailInputBasic = TemplateTextInput.bind({});
|
|
135
|
-
// EmailInputBasic.args = {
|
|
136
|
-
// value: 'email.address@website.com',
|
|
137
|
-
// label: 'Choose an email address',
|
|
138
|
-
// iconleft: 'mail',
|
|
139
|
-
// type: 'email',
|
|
140
|
-
// errormsg: 'This email smells funny',
|
|
141
|
-
// required: true,
|
|
142
|
-
// valid: false,
|
|
143
|
-
// showerrormsg: true,
|
|
144
|
-
// placeholder: 'Your email address',
|
|
145
|
-
// };
|
|
146
|
-
// export const NumberInputBasic = TemplateTextInput.bind({});
|
|
147
|
-
// NumberInputBasic.args = {
|
|
148
|
-
// value: '42069',
|
|
149
|
-
// label: 'What is your favourite number?',
|
|
150
|
-
// iconleft: '123',
|
|
151
|
-
// type: 'number',
|
|
152
|
-
// errormsg: 'This number feels wrong',
|
|
153
|
-
// required: true,
|
|
154
|
-
// showerrormsg: true,
|
|
155
|
-
// placeholder: 'Your favourite number',
|
|
156
|
-
// };
|
|
@@ -1,88 +0,0 @@
|
|
|
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({});
|