@3t-transform/threeteeui 0.1.28 → 0.1.30
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-dc6cc829.js → index-457ca775.js} +104 -2
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/tttx-button.cjs.entry.js +24 -24
- package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
- package/dist/cjs/tttx-form.cjs.entry.js +376 -364
- package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
- package/dist/cjs/tttx-list.cjs.entry.js +43 -43
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +62 -62
- package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
- package/dist/cjs/tttx.cjs.js +7 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -35
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +5 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +396 -364
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +248 -127
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +27 -5
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +645 -645
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +163 -163
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/components/tttx-button.js +48 -48
- package/dist/components/tttx-filter.js +191 -191
- package/dist/components/tttx-form.js +394 -381
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +65 -65
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-sorter.js +130 -130
- package/dist/components/tttx-standalone-input.js +110 -110
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/{index-86faeaab.js → index-d784fb3e.js} +104 -3
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +24 -24
- package/dist/esm/tttx-filter.entry.js +159 -159
- package/dist/esm/tttx-form.entry.js +376 -364
- package/dist/esm/tttx-icon.entry.js +11 -11
- package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
- package/dist/esm/tttx-list.entry.js +43 -43
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-sorter.entry.js +102 -102
- package/dist/esm/tttx-standalone-input.entry.js +62 -62
- package/dist/esm/tttx-toolbar.entry.js +10 -10
- package/dist/esm/tttx.js +4 -3
- package/dist/tttx/p-0ebffdfc.js +2 -0
- package/dist/tttx/p-1112ed2e.entry.js +1 -0
- package/dist/tttx/p-13495422.entry.js +1 -0
- package/dist/tttx/{p-ae00cae3.entry.js → p-1ed7a43d.entry.js} +1 -1
- package/dist/tttx/p-237fe0d5.entry.js +1 -0
- package/dist/tttx/p-2731fbc6.entry.js +1 -0
- package/dist/tttx/p-280b8e45.entry.js +1 -0
- package/dist/tttx/p-3772f4d0.entry.js +1 -0
- package/dist/tttx/p-390d97dd.entry.js +1 -0
- package/dist/tttx/p-49796abf.entry.js +1 -0
- package/dist/tttx/p-4f68f1eb.entry.js +1 -0
- package/dist/tttx/p-53793ed2.entry.js +1 -0
- package/dist/tttx/p-5f335153.entry.js +1 -0
- package/dist/tttx/p-60a0fee2.entry.js +1 -0
- package/dist/tttx/p-6ab75c0b.entry.js +1 -0
- package/dist/tttx/{p-daa27411.entry.js → p-6b006ccf.entry.js} +1 -1
- package/dist/tttx/p-6cbe1824.entry.js +1 -0
- package/dist/tttx/p-6cefa1ce.entry.js +1 -0
- package/dist/tttx/p-72e7f7dd.entry.js +3 -0
- package/dist/tttx/{p-c72d1a03.entry.js → p-798a098a.entry.js} +1 -1
- package/dist/tttx/p-824af346.entry.js +1 -0
- package/dist/tttx/{p-f1d7eb35.entry.js → p-91e42647.entry.js} +1 -1
- package/dist/tttx/{p-8f3badad.entry.js → p-b720c4ad.entry.js} +1 -1
- package/dist/tttx/p-c06f1207.entry.js +1 -0
- package/dist/tttx/p-c0a15524.entry.js +1 -0
- package/dist/tttx/{p-e25d5fe2.entry.js → p-c4162029.entry.js} +1 -1
- package/dist/tttx/p-c7c968dd.entry.js +1 -0
- package/dist/tttx/{p-c4538d55.entry.js → p-cac26a1b.entry.js} +1 -1
- package/dist/tttx/p-ce728715.entry.js +1 -0
- package/dist/tttx/p-d3932db5.entry.js +1 -0
- package/dist/tttx/p-d575ef2d.entry.js +1 -0
- package/dist/tttx/p-d83edcfb.entry.js +1 -0
- package/dist/tttx/p-d8e03ed6.entry.js +1 -0
- package/dist/tttx/p-ebb496a2.entry.js +1 -0
- package/dist/tttx/p-fb5e737b.entry.js +1 -0
- package/dist/tttx/p-fce571c2.entry.js +1 -0
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +111 -114
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +60 -60
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +128 -128
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +3 -2
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/loader/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/cjs/domsanitiser.options-277161b9.js +0 -1667
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +0 -9
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +0 -83
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +0 -9
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +0 -16
- package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +0 -216
- package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +0 -64
- package/dist/collection/components/molecules/tttx-filter/test/tttx-filter.spec.js +0 -231
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.spec.js +0 -38
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +0 -214
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +0 -9
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +0 -232
- package/dist/collection/components/molecules/tttx-list/test/ttttx-list.spec.e2e.js +0 -26
- package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +0 -183
- package/dist/collection/components/molecules/tttx-sorter/test/tttx-sorter.spec.js +0 -87
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +0 -9
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +0 -215
- package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.spec.js +0 -52
- package/dist/collection/shared/test/domsanitiser.options.spec.js +0 -23
- package/dist/components/domsanitiser.options.js +0 -1664
- package/dist/esm/domsanitiser.options-cc420431.js +0 -1664
- package/dist/tttx/p-12fc0b16.entry.js +0 -3
- package/dist/tttx/p-2e43a578.entry.js +0 -1
- package/dist/tttx/p-33c0cbdc.entry.js +0 -1
- package/dist/tttx/p-52a47b7c.js +0 -2
- package/dist/tttx/p-72b4c98a.entry.js +0 -1
- package/dist/tttx/p-7e6fa227.entry.js +0 -1
- package/dist/tttx/p-90b0f72a.entry.js +0 -1
- package/dist/tttx/p-b4290a5b.js +0 -3
- package/dist/tttx/p-c4f2186e.entry.js +0 -1
- package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +0 -1
- package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +0 -1
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +0 -1
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +0 -1
- package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +0 -1
- package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-filter/test/tttx-filter.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-list/test/ttttx-list.spec.e2e.d.ts +0 -1
- package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-sorter/test/tttx-sorter.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +0 -1
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.spec.d.ts +0 -1
- package/dist/types/shared/test/domsanitiser.options.spec.d.ts +0 -1
package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
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
|
-
inputicon: {
|
|
15
|
-
options: icons,
|
|
16
|
-
control: { type: 'select' },
|
|
17
|
-
},
|
|
18
|
-
label: {
|
|
19
|
-
control: { type: 'text' },
|
|
20
|
-
},
|
|
21
|
-
secondarylabel: {
|
|
22
|
-
control: { type: 'text' },
|
|
23
|
-
},
|
|
24
|
-
errormsg: {
|
|
25
|
-
control: { type: 'text' },
|
|
26
|
-
},
|
|
27
|
-
showerrorbubble: {
|
|
28
|
-
control: { type: 'boolean' },
|
|
29
|
-
},
|
|
30
|
-
showerrormsg: {
|
|
31
|
-
control: { type: 'boolean' },
|
|
32
|
-
},
|
|
33
|
-
inline: {
|
|
34
|
-
control: { type: 'boolean' },
|
|
35
|
-
},
|
|
36
|
-
checked: {
|
|
37
|
-
control: { type: 'boolean' },
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
control: { type: 'boolean' },
|
|
41
|
-
},
|
|
42
|
-
max: {
|
|
43
|
-
control: { type: 'text' },
|
|
44
|
-
},
|
|
45
|
-
maxlength: {
|
|
46
|
-
control: { type: 'text' },
|
|
47
|
-
},
|
|
48
|
-
min: {
|
|
49
|
-
control: { type: 'text' },
|
|
50
|
-
},
|
|
51
|
-
minlength: {
|
|
52
|
-
control: { type: 'text' },
|
|
53
|
-
},
|
|
54
|
-
name: {
|
|
55
|
-
control: { type: 'text' },
|
|
56
|
-
},
|
|
57
|
-
pattern: {
|
|
58
|
-
control: { type: 'text' },
|
|
59
|
-
},
|
|
60
|
-
placeholder: {
|
|
61
|
-
control: { type: 'text' },
|
|
62
|
-
},
|
|
63
|
-
readonly: {
|
|
64
|
-
control: { type: 'boolean' },
|
|
65
|
-
},
|
|
66
|
-
required: {
|
|
67
|
-
control: { type: 'boolean' },
|
|
68
|
-
},
|
|
69
|
-
step: {
|
|
70
|
-
control: { type: 'text' },
|
|
71
|
-
},
|
|
72
|
-
type: {
|
|
73
|
-
options: ['text', 'password', 'email', 'number'],
|
|
74
|
-
control: { type: 'radio' },
|
|
75
|
-
},
|
|
76
|
-
value: {
|
|
77
|
-
control: { type: 'text' },
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
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
|
+
inputicon: {
|
|
15
|
+
options: icons,
|
|
16
|
+
control: { type: 'select' },
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
control: { type: 'text' },
|
|
20
|
+
},
|
|
21
|
+
secondarylabel: {
|
|
22
|
+
control: { type: 'text' },
|
|
23
|
+
},
|
|
24
|
+
errormsg: {
|
|
25
|
+
control: { type: 'text' },
|
|
26
|
+
},
|
|
27
|
+
showerrorbubble: {
|
|
28
|
+
control: { type: 'boolean' },
|
|
29
|
+
},
|
|
30
|
+
showerrormsg: {
|
|
31
|
+
control: { type: 'boolean' },
|
|
32
|
+
},
|
|
33
|
+
inline: {
|
|
34
|
+
control: { type: 'boolean' },
|
|
35
|
+
},
|
|
36
|
+
checked: {
|
|
37
|
+
control: { type: 'boolean' },
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
control: { type: 'boolean' },
|
|
41
|
+
},
|
|
42
|
+
max: {
|
|
43
|
+
control: { type: 'text' },
|
|
44
|
+
},
|
|
45
|
+
maxlength: {
|
|
46
|
+
control: { type: 'text' },
|
|
47
|
+
},
|
|
48
|
+
min: {
|
|
49
|
+
control: { type: 'text' },
|
|
50
|
+
},
|
|
51
|
+
minlength: {
|
|
52
|
+
control: { type: 'text' },
|
|
53
|
+
},
|
|
54
|
+
name: {
|
|
55
|
+
control: { type: 'text' },
|
|
56
|
+
},
|
|
57
|
+
pattern: {
|
|
58
|
+
control: { type: 'text' },
|
|
59
|
+
},
|
|
60
|
+
placeholder: {
|
|
61
|
+
control: { type: 'text' },
|
|
62
|
+
},
|
|
63
|
+
readonly: {
|
|
64
|
+
control: { type: 'boolean' },
|
|
65
|
+
},
|
|
66
|
+
required: {
|
|
67
|
+
control: { type: 'boolean' },
|
|
68
|
+
},
|
|
69
|
+
step: {
|
|
70
|
+
control: { type: 'text' },
|
|
71
|
+
},
|
|
72
|
+
type: {
|
|
73
|
+
options: ['text', 'password', 'email', 'number'],
|
|
74
|
+
control: { type: 'radio' },
|
|
75
|
+
},
|
|
76
|
+
value: {
|
|
77
|
+
control: { type: 'text' },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
81
|
const TemplateTextInput = ({ iconleft, iconright, inputicon, label, secondarylabel, errormsg, showerrorbubble, showerrormsg, inline, checked, disabled, max, maxlength, min, minlength, name, pattern, placeholder, readonly, required, step, type, value, }) => `
|
|
82
82
|
<tttx-standalone-input
|
|
83
83
|
iconleft="${iconleft || ''}"
|
|
@@ -104,86 +104,86 @@ const TemplateTextInput = ({ iconleft, iconright, inputicon, label, secondarylab
|
|
|
104
104
|
type="${type}"
|
|
105
105
|
value="${value}"
|
|
106
106
|
/>
|
|
107
|
-
`;
|
|
108
|
-
export const InputField = TemplateTextInput.bind({});
|
|
109
|
-
InputField.args = {
|
|
110
|
-
value: '',
|
|
111
|
-
label: 'First name',
|
|
112
|
-
secondarylabel: 'First name can be up to 100 characters long',
|
|
113
|
-
maxlength: '100',
|
|
114
|
-
type: 'text',
|
|
115
|
-
errormsg: 'Please enter your first name',
|
|
116
|
-
required: false,
|
|
117
|
-
showerrormsg: false,
|
|
118
|
-
placeholder: 'Enter first name',
|
|
119
|
-
};
|
|
120
|
-
export const searchField = TemplateTextInput.bind({});
|
|
121
|
-
searchField.args = {
|
|
122
|
-
value: '',
|
|
123
|
-
label: '',
|
|
124
|
-
type: 'text',
|
|
125
|
-
errormsg: 'Please enter your first name',
|
|
126
|
-
required: true,
|
|
127
|
-
showerrormsg: false,
|
|
128
|
-
showerrorbubble: false,
|
|
129
|
-
placeholder: 'Search',
|
|
130
|
-
inline: false,
|
|
131
|
-
inputicon: 'search',
|
|
132
|
-
iconright: 'cancel'
|
|
133
|
-
};
|
|
134
|
-
// export const TextInputIconLeft = TemplateTextInput.bind({});
|
|
135
|
-
// TextInputIconLeft.args = {
|
|
136
|
-
// value: 'Uh egg',
|
|
137
|
-
// label: 'Please tell me about your egg',
|
|
138
|
-
// iconleft: 'egg',
|
|
139
|
-
// type: 'text',
|
|
140
|
-
// errormsg: 'Incorrect egg, please egg again.',
|
|
141
|
-
// required: true,
|
|
142
|
-
// showerrormsg: true,
|
|
143
|
-
// placeholder: 'Please for the love of god tell me about your egg',
|
|
144
|
-
// };
|
|
145
|
-
// export const TextInputIconRight = TemplateTextInput.bind({});
|
|
146
|
-
// TextInputIconRight.args = {
|
|
147
|
-
// value: 'Uh egg',
|
|
148
|
-
// label: 'Please tell me about your egg',
|
|
149
|
-
// iconright: 'egg',
|
|
150
|
-
// type: 'text',
|
|
151
|
-
// errormsg: 'Incorrect egg, please egg again.',
|
|
152
|
-
// required: true,
|
|
153
|
-
// showerrormsg: true,
|
|
154
|
-
// placeholder: 'Please for the love of god tell me about your egg',
|
|
155
|
-
// };
|
|
156
|
-
// export const PasswordInputBasic = TemplateTextInput.bind({});
|
|
157
|
-
// PasswordInputBasic.args = {
|
|
158
|
-
// value: 'qwefdweferg',
|
|
159
|
-
// label: 'Input your Password',
|
|
160
|
-
// iconleft: 'lock',
|
|
161
|
-
// type: 'password',
|
|
162
|
-
// errormsg: 'Password is not strong enough',
|
|
163
|
-
// required: true,
|
|
164
|
-
// showerrormsg: true,
|
|
165
|
-
// placeholder: 'Your password',
|
|
166
|
-
// };
|
|
167
|
-
// export const EmailInputBasic = TemplateTextInput.bind({});
|
|
168
|
-
// EmailInputBasic.args = {
|
|
169
|
-
// value: 'email.address@website.com',
|
|
170
|
-
// label: 'Choose an email address',
|
|
171
|
-
// iconleft: 'mail',
|
|
172
|
-
// type: 'email',
|
|
173
|
-
// errormsg: 'This email smells funny',
|
|
174
|
-
// required: true,
|
|
175
|
-
// valid: false,
|
|
176
|
-
// showerrormsg: true,
|
|
177
|
-
// placeholder: 'Your email address',
|
|
178
|
-
// };
|
|
179
|
-
// export const NumberInputBasic = TemplateTextInput.bind({});
|
|
180
|
-
// NumberInputBasic.args = {
|
|
181
|
-
// value: '42069',
|
|
182
|
-
// label: 'What is your favourite number?',
|
|
183
|
-
// iconleft: '123',
|
|
184
|
-
// type: 'number',
|
|
185
|
-
// errormsg: 'This number feels wrong',
|
|
186
|
-
// required: true,
|
|
187
|
-
// showerrormsg: true,
|
|
188
|
-
// placeholder: 'Your favourite number',
|
|
189
|
-
// };
|
|
107
|
+
`;
|
|
108
|
+
export const InputField = TemplateTextInput.bind({});
|
|
109
|
+
InputField.args = {
|
|
110
|
+
value: '',
|
|
111
|
+
label: 'First name',
|
|
112
|
+
secondarylabel: 'First name can be up to 100 characters long',
|
|
113
|
+
maxlength: '100',
|
|
114
|
+
type: 'text',
|
|
115
|
+
errormsg: 'Please enter your first name',
|
|
116
|
+
required: false,
|
|
117
|
+
showerrormsg: false,
|
|
118
|
+
placeholder: 'Enter first name',
|
|
119
|
+
};
|
|
120
|
+
export const searchField = TemplateTextInput.bind({});
|
|
121
|
+
searchField.args = {
|
|
122
|
+
value: '',
|
|
123
|
+
label: '',
|
|
124
|
+
type: 'text',
|
|
125
|
+
errormsg: 'Please enter your first name',
|
|
126
|
+
required: true,
|
|
127
|
+
showerrormsg: false,
|
|
128
|
+
showerrorbubble: false,
|
|
129
|
+
placeholder: 'Search',
|
|
130
|
+
inline: false,
|
|
131
|
+
inputicon: 'search',
|
|
132
|
+
iconright: 'cancel'
|
|
133
|
+
};
|
|
134
|
+
// export const TextInputIconLeft = TemplateTextInput.bind({});
|
|
135
|
+
// TextInputIconLeft.args = {
|
|
136
|
+
// value: 'Uh egg',
|
|
137
|
+
// label: 'Please tell me about your egg',
|
|
138
|
+
// iconleft: 'egg',
|
|
139
|
+
// type: 'text',
|
|
140
|
+
// errormsg: 'Incorrect egg, please egg again.',
|
|
141
|
+
// required: true,
|
|
142
|
+
// showerrormsg: true,
|
|
143
|
+
// placeholder: 'Please for the love of god tell me about your egg',
|
|
144
|
+
// };
|
|
145
|
+
// export const TextInputIconRight = TemplateTextInput.bind({});
|
|
146
|
+
// TextInputIconRight.args = {
|
|
147
|
+
// value: 'Uh egg',
|
|
148
|
+
// label: 'Please tell me about your egg',
|
|
149
|
+
// iconright: 'egg',
|
|
150
|
+
// type: 'text',
|
|
151
|
+
// errormsg: 'Incorrect egg, please egg again.',
|
|
152
|
+
// required: true,
|
|
153
|
+
// showerrormsg: true,
|
|
154
|
+
// placeholder: 'Please for the love of god tell me about your egg',
|
|
155
|
+
// };
|
|
156
|
+
// export const PasswordInputBasic = TemplateTextInput.bind({});
|
|
157
|
+
// PasswordInputBasic.args = {
|
|
158
|
+
// value: 'qwefdweferg',
|
|
159
|
+
// label: 'Input your Password',
|
|
160
|
+
// iconleft: 'lock',
|
|
161
|
+
// type: 'password',
|
|
162
|
+
// errormsg: 'Password is not strong enough',
|
|
163
|
+
// required: true,
|
|
164
|
+
// showerrormsg: true,
|
|
165
|
+
// placeholder: 'Your password',
|
|
166
|
+
// };
|
|
167
|
+
// export const EmailInputBasic = TemplateTextInput.bind({});
|
|
168
|
+
// EmailInputBasic.args = {
|
|
169
|
+
// value: 'email.address@website.com',
|
|
170
|
+
// label: 'Choose an email address',
|
|
171
|
+
// iconleft: 'mail',
|
|
172
|
+
// type: 'email',
|
|
173
|
+
// errormsg: 'This email smells funny',
|
|
174
|
+
// required: true,
|
|
175
|
+
// valid: false,
|
|
176
|
+
// showerrormsg: true,
|
|
177
|
+
// placeholder: 'Your email address',
|
|
178
|
+
// };
|
|
179
|
+
// export const NumberInputBasic = TemplateTextInput.bind({});
|
|
180
|
+
// NumberInputBasic.args = {
|
|
181
|
+
// value: '42069',
|
|
182
|
+
// label: 'What is your favourite number?',
|
|
183
|
+
// iconleft: '123',
|
|
184
|
+
// type: 'number',
|
|
185
|
+
// errormsg: 'This number feels wrong',
|
|
186
|
+
// required: true,
|
|
187
|
+
// showerrormsg: true,
|
|
188
|
+
// placeholder: 'Your favourite number',
|
|
189
|
+
// };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import { h, Host } from '@stencil/core';
|
|
3
|
-
export class TttxToolbar {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.border = true;
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return (h(Host, { class: this.border ? 'bordered' : '' }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' })));
|
|
9
|
-
}
|
|
10
|
-
static get is() { return "tttx-toolbar"; }
|
|
11
|
-
static get encapsulation() { return "shadow"; }
|
|
12
|
-
static get originalStyleUrls() {
|
|
13
|
-
return {
|
|
14
|
-
"$": ["tttx-toolbar.scss"]
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
static get styleUrls() {
|
|
18
|
-
return {
|
|
19
|
-
"$": ["tttx-toolbar.css"]
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
static get properties() {
|
|
23
|
-
return {
|
|
24
|
-
"border": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"mutable": false,
|
|
27
|
-
"complexType": {
|
|
28
|
-
"original": "boolean",
|
|
29
|
-
"resolved": "boolean",
|
|
30
|
-
"references": {}
|
|
31
|
-
},
|
|
32
|
-
"required": false,
|
|
33
|
-
"optional": false,
|
|
34
|
-
"docs": {
|
|
35
|
-
"tags": [],
|
|
36
|
-
"text": ""
|
|
37
|
-
},
|
|
38
|
-
"attribute": "border",
|
|
39
|
-
"reflect": false,
|
|
40
|
-
"defaultValue": "true"
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
+
import { h, Host } from '@stencil/core';
|
|
3
|
+
export class TttxToolbar {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.border = true;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: this.border ? 'bordered' : '' }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' })));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "tttx-toolbar"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["tttx-toolbar.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["tttx-toolbar.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"border": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "boolean",
|
|
29
|
+
"resolved": "boolean",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": false,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "border",
|
|
39
|
+
"reflect": false,
|
|
40
|
+
"defaultValue": "true"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'molecules/Toolbar',
|
|
3
|
-
component: 'tttx-toolbar',
|
|
4
|
-
argTypes: {
|
|
5
|
-
border: {
|
|
6
|
-
control: { type: 'boolean' }
|
|
7
|
-
},
|
|
8
|
-
},
|
|
9
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
title: 'molecules/Toolbar',
|
|
3
|
+
component: 'tttx-toolbar',
|
|
4
|
+
argTypes: {
|
|
5
|
+
border: {
|
|
6
|
+
control: { type: 'boolean' }
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
10
|
const Default = ({ border }) => `
|
|
11
11
|
<tttx-toolbar border="${border ? 'true' : 'false'}">
|
|
12
12
|
<span slot="before"><tttx-button design="primary">Before</tttx-button></span>
|
|
13
13
|
<span slot="center"><div style="position: relative; top: -4px;"><tttx-standalone-input placeholder="center" inline required showerrorbubble="false" inputicon="search" /></div></span>
|
|
14
14
|
<span slot="after"><tttx-keyvalue-block horizontal keyvalues='{"Position":"after"}' /></span>
|
|
15
15
|
</tttx-toolbar>
|
|
16
|
-
`;
|
|
17
|
-
export const BasicStringList = Default.bind({});
|
|
18
|
-
BasicStringList.args = {
|
|
19
|
-
border: true
|
|
20
|
-
};
|
|
16
|
+
`;
|
|
17
|
+
export const BasicStringList = Default.bind({});
|
|
18
|
+
BasicStringList.args = {
|
|
19
|
+
border: true
|
|
20
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Foundations/Palette',
|
|
3
|
-
component: 'tttx-palette',
|
|
4
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Foundations/Palette',
|
|
3
|
+
component: 'tttx-palette',
|
|
4
|
+
};
|
|
5
5
|
const Swatch = (colour, name = '') => `
|
|
6
6
|
<div class="swatch">
|
|
7
7
|
<div class="swatchcontent" style="background-color:${colour};">
|
|
@@ -9,7 +9,7 @@ const Swatch = (colour, name = '') => `
|
|
|
9
9
|
</div>
|
|
10
10
|
<p>${name}</p>
|
|
11
11
|
</div>
|
|
12
|
-
`;
|
|
12
|
+
`;
|
|
13
13
|
const Template = () => `
|
|
14
14
|
|
|
15
15
|
<style>
|
|
@@ -84,5 +84,5 @@ ${Swatch('#EA6100', '$dv-high')}
|
|
|
84
84
|
${Swatch('#DC0000', '$dv-very-high')}
|
|
85
85
|
${Swatch('#A20000', '$dv-highest')}
|
|
86
86
|
|
|
87
|
-
`;
|
|
88
|
-
export const Default = Template.bind({});
|
|
87
|
+
`;
|
|
88
|
+
export const Default = Template.bind({});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Getting Started/Developer',
|
|
3
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Getting Started/Developer',
|
|
3
|
+
};
|
|
4
4
|
const Template = () => `
|
|
5
5
|
<tttx-typography>
|
|
6
6
|
<p>Quick start guide for developers</p>
|
|
7
7
|
</tttx-typography>
|
|
8
|
-
`;
|
|
9
|
-
export const Default = Template.bind({});
|
|
8
|
+
`;
|
|
9
|
+
export const Default = Template.bind({});
|