@3t-transform/threeteeui 0.1.52 → 0.1.57
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/{domsanitiser.options-b2d88e35.js → domsanitiser.options-cd2932a9.js} +17 -17
- package/dist/cjs/tttx-button.cjs.entry.js +23 -23
- package/dist/cjs/tttx-dialog-box.cjs.entry.js +69 -69
- package/dist/cjs/tttx-filter.cjs.entry.js +182 -180
- package/dist/cjs/tttx-form.cjs.entry.js +457 -457
- package/dist/cjs/tttx-icon.cjs.entry.js +10 -10
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +58 -58
- package/dist/cjs/tttx-list.cjs.entry.js +31 -31
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +15 -15
- package/dist/cjs/tttx-qrcode.cjs.entry.js +27 -27
- package/dist/cjs/tttx-sorter.cjs.entry.js +107 -104
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +78 -78
- package/dist/cjs/tttx-toolbar.cjs.entry.js +9 -9
- 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/atoms/tttx-qrcode/tttx-qrcode.js +81 -81
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -22
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +172 -172
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +289 -289
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +416 -400
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +80 -80
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -61
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -479
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +272 -272
- 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 +253 -236
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
- 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/domsanitiser.options.js +17 -17
- package/dist/components/tttx-button2.js +48 -48
- package/dist/components/tttx-dialog-box.js +97 -97
- package/dist/components/tttx-filter.js +217 -215
- package/dist/components/tttx-form.js +475 -475
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +53 -53
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-qrcode.js +45 -45
- package/dist/components/tttx-sorter.js +136 -133
- package/dist/components/tttx-standalone-input.js +130 -130
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/{domsanitiser.options-81611f82.js → domsanitiser.options-563c1cf3.js} +17 -17
- package/dist/esm/polyfills/core-js.js +0 -0
- 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 +23 -23
- package/dist/esm/tttx-dialog-box.entry.js +69 -69
- package/dist/esm/tttx-filter.entry.js +182 -180
- package/dist/esm/tttx-form.entry.js +457 -457
- package/dist/esm/tttx-icon.entry.js +10 -10
- package/dist/esm/tttx-keyvalue-block.entry.js +58 -58
- package/dist/esm/tttx-list.entry.js +31 -31
- package/dist/esm/tttx-loading-spinner.entry.js +15 -15
- package/dist/esm/tttx-qrcode.entry.js +27 -27
- package/dist/esm/tttx-sorter.entry.js +107 -104
- package/dist/esm/tttx-standalone-input.entry.js +78 -78
- package/dist/esm/tttx-toolbar.entry.js +9 -9
- package/dist/tttx/p-225e6fa6.entry.js +1 -0
- package/dist/tttx/{p-bc3b9283.entry.js → p-58d7c978.entry.js} +1 -1
- package/dist/tttx/{p-c751ebc2.entry.js → p-8b511fff.entry.js} +1 -1
- package/dist/tttx/{p-6a6ff7b7.entry.js → p-909c090d.entry.js} +1 -1
- package/dist/tttx/p-a658e1ac.entry.js +1 -0
- package/dist/tttx/{p-0b25ac9c.js → p-d3835fde.js} +2 -2
- 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/atoms/tttx-qrcode/tttx-qrcode.d.ts +8 -8
- package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -23
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +18 -18
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +24 -24
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +44 -43
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +76 -0
- 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 +133 -133
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -0
- 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 -0
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +21 -20
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
- 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 +2 -0
- 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/package.json +1 -1
- package/dist/tttx/p-3b29e8af.entry.js +0 -1
- package/dist/tttx/p-637e7e88.entry.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'molecules/Dialog box',
|
|
3
|
-
component: 'tttx-dialog-box',
|
|
4
|
-
parameters: {
|
|
5
|
-
docs: {
|
|
6
|
-
description: {
|
|
7
|
-
component: 'A magical storybook story about Tttx Dialog Box.',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
title: 'molecules/Dialog box',
|
|
3
|
+
component: 'tttx-dialog-box',
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: 'A magical storybook story about Tttx Dialog Box.',
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
12
|
const TttxDialogBoxStory = ({ data }) => `
|
|
13
13
|
<tttx-dialog-box
|
|
14
14
|
id='dialogBox'
|
|
@@ -19,28 +19,28 @@ const TttxDialogBoxStory = ({ data }) => `
|
|
|
19
19
|
}
|
|
20
20
|
dialogBox.data = ${JSON.stringify(data)};
|
|
21
21
|
</script>
|
|
22
|
-
`;
|
|
23
|
-
export const Default = TttxDialogBoxStory.bind({});
|
|
24
|
-
Default.args = {
|
|
25
|
-
data: {
|
|
26
|
-
header: {
|
|
27
|
-
title: 'Dialog Title',
|
|
28
|
-
hasIcon: false,
|
|
29
|
-
hasClose: true,
|
|
30
|
-
},
|
|
31
|
-
body: {
|
|
32
|
-
isCustomHtml: false,
|
|
33
|
-
contentText: 'this is the default dialog',
|
|
34
|
-
},
|
|
35
|
-
footer: {
|
|
36
|
-
buttons: [
|
|
37
|
-
{ name: 'primary', type: 'primary' },
|
|
38
|
-
{ name: 'default', type: 'default' },
|
|
39
|
-
{ name: 'No border', type: 'borderless' },
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
22
|
+
`;
|
|
23
|
+
export const Default = TttxDialogBoxStory.bind({});
|
|
24
|
+
Default.args = {
|
|
25
|
+
data: {
|
|
26
|
+
header: {
|
|
27
|
+
title: 'Dialog Title',
|
|
28
|
+
hasIcon: false,
|
|
29
|
+
hasClose: true,
|
|
30
|
+
},
|
|
31
|
+
body: {
|
|
32
|
+
isCustomHtml: false,
|
|
33
|
+
contentText: 'this is the default dialog',
|
|
34
|
+
},
|
|
35
|
+
footer: {
|
|
36
|
+
buttons: [
|
|
37
|
+
{ name: 'primary', type: 'primary' },
|
|
38
|
+
{ name: 'default', type: 'default' },
|
|
39
|
+
{ name: 'No border', type: 'borderless' },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
44
|
const TttxDialogBoxMobile = ({ data }) => `
|
|
45
45
|
<tttx-dialog-box
|
|
46
46
|
id='dialogBoxMobile'
|
|
@@ -52,28 +52,28 @@ const TttxDialogBoxMobile = ({ data }) => `
|
|
|
52
52
|
dialogBoxMobile.data = ${JSON.stringify(data)};
|
|
53
53
|
dialogBoxMobile.size = "mobile"
|
|
54
54
|
</script>
|
|
55
|
-
`;
|
|
56
|
-
export const Mobile = TttxDialogBoxMobile.bind({});
|
|
57
|
-
Mobile.args = {
|
|
58
|
-
data: {
|
|
59
|
-
header: {
|
|
60
|
-
title: 'Mobile Dialog',
|
|
61
|
-
hasIcon: false,
|
|
62
|
-
hasClose: true,
|
|
63
|
-
},
|
|
64
|
-
body: {
|
|
65
|
-
isCustomHtml: false,
|
|
66
|
-
contentText: 'this is a Mobile dialog',
|
|
67
|
-
},
|
|
68
|
-
footer: {
|
|
69
|
-
buttons: [
|
|
70
|
-
{ name: 'primary', type: 'primary' },
|
|
71
|
-
{ name: 'default', type: 'default' },
|
|
72
|
-
{ name: 'copy', icon: 'content_copy', type: 'default' },
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
};
|
|
55
|
+
`;
|
|
56
|
+
export const Mobile = TttxDialogBoxMobile.bind({});
|
|
57
|
+
Mobile.args = {
|
|
58
|
+
data: {
|
|
59
|
+
header: {
|
|
60
|
+
title: 'Mobile Dialog',
|
|
61
|
+
hasIcon: false,
|
|
62
|
+
hasClose: true,
|
|
63
|
+
},
|
|
64
|
+
body: {
|
|
65
|
+
isCustomHtml: false,
|
|
66
|
+
contentText: 'this is a Mobile dialog',
|
|
67
|
+
},
|
|
68
|
+
footer: {
|
|
69
|
+
buttons: [
|
|
70
|
+
{ name: 'primary', type: 'primary' },
|
|
71
|
+
{ name: 'default', type: 'default' },
|
|
72
|
+
{ name: 'copy', icon: 'content_copy', type: 'default' },
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
77
|
const TttxDialogBoxSmall = ({ data }) => `
|
|
78
78
|
<tttx-dialog-box
|
|
79
79
|
id='dialogBoxSmall'
|
|
@@ -85,28 +85,28 @@ const TttxDialogBoxSmall = ({ data }) => `
|
|
|
85
85
|
dialogBoxSmall.data = ${JSON.stringify(data)};
|
|
86
86
|
dialogBoxSmall.size = "small"
|
|
87
87
|
</script>
|
|
88
|
-
`;
|
|
89
|
-
export const Small = TttxDialogBoxSmall.bind({});
|
|
90
|
-
Small.args = {
|
|
91
|
-
data: {
|
|
92
|
-
header: {
|
|
93
|
-
title: 'Small Dialog',
|
|
94
|
-
hasIcon: false,
|
|
95
|
-
hasClose: true,
|
|
96
|
-
},
|
|
97
|
-
body: {
|
|
98
|
-
isCustomHtml: false,
|
|
99
|
-
contentText: 'this is a small dialog',
|
|
100
|
-
},
|
|
101
|
-
footer: {
|
|
102
|
-
buttons: [
|
|
103
|
-
{ name: 'primary', type: 'primary' },
|
|
104
|
-
{ name: 'default', type: 'default' },
|
|
105
|
-
{ name: 'No border', type: 'borderless' },
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
};
|
|
88
|
+
`;
|
|
89
|
+
export const Small = TttxDialogBoxSmall.bind({});
|
|
90
|
+
Small.args = {
|
|
91
|
+
data: {
|
|
92
|
+
header: {
|
|
93
|
+
title: 'Small Dialog',
|
|
94
|
+
hasIcon: false,
|
|
95
|
+
hasClose: true,
|
|
96
|
+
},
|
|
97
|
+
body: {
|
|
98
|
+
isCustomHtml: false,
|
|
99
|
+
contentText: 'this is a small dialog',
|
|
100
|
+
},
|
|
101
|
+
footer: {
|
|
102
|
+
buttons: [
|
|
103
|
+
{ name: 'primary', type: 'primary' },
|
|
104
|
+
{ name: 'default', type: 'default' },
|
|
105
|
+
{ name: 'No border', type: 'borderless' },
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
110
|
const TttxDialogBoxLarge = ({ data }) => `
|
|
111
111
|
<tttx-dialog-box
|
|
112
112
|
id='dialogBoxLarge'
|
|
@@ -118,28 +118,28 @@ const TttxDialogBoxLarge = ({ data }) => `
|
|
|
118
118
|
dialogBoxLarge.data = ${JSON.stringify(data)};
|
|
119
119
|
dialogBoxLarge.size = "large"
|
|
120
120
|
</script>
|
|
121
|
-
`;
|
|
122
|
-
export const Large = TttxDialogBoxLarge.bind({});
|
|
123
|
-
Large.args = {
|
|
124
|
-
data: {
|
|
125
|
-
header: {
|
|
126
|
-
title: 'Large Dialog',
|
|
127
|
-
hasIcon: false,
|
|
128
|
-
hasClose: true,
|
|
129
|
-
},
|
|
130
|
-
body: {
|
|
131
|
-
isCustomHtml: false,
|
|
132
|
-
contentText: 'this is a large dialog',
|
|
133
|
-
},
|
|
134
|
-
footer: {
|
|
135
|
-
buttons: [
|
|
136
|
-
{ name: 'primary', type: 'primary' },
|
|
137
|
-
{ name: 'default', type: 'default' },
|
|
138
|
-
{ name: 'No border', type: 'borderless' },
|
|
139
|
-
],
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
};
|
|
121
|
+
`;
|
|
122
|
+
export const Large = TttxDialogBoxLarge.bind({});
|
|
123
|
+
Large.args = {
|
|
124
|
+
data: {
|
|
125
|
+
header: {
|
|
126
|
+
title: 'Large Dialog',
|
|
127
|
+
hasIcon: false,
|
|
128
|
+
hasClose: true,
|
|
129
|
+
},
|
|
130
|
+
body: {
|
|
131
|
+
isCustomHtml: false,
|
|
132
|
+
contentText: 'this is a large dialog',
|
|
133
|
+
},
|
|
134
|
+
footer: {
|
|
135
|
+
buttons: [
|
|
136
|
+
{ name: 'primary', type: 'primary' },
|
|
137
|
+
{ name: 'default', type: 'default' },
|
|
138
|
+
{ name: 'No border', type: 'borderless' },
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
143
|
const TttxDialogBoxWithoutCloseButton = ({ data }) => `
|
|
144
144
|
<tttx-dialog-box
|
|
145
145
|
id='dialogBoxNoClose'
|
|
@@ -150,28 +150,28 @@ const TttxDialogBoxWithoutCloseButton = ({ data }) => `
|
|
|
150
150
|
}
|
|
151
151
|
dialogBoxNoClose.data = ${JSON.stringify(data)};
|
|
152
152
|
</script>
|
|
153
|
-
`;
|
|
154
|
-
export const closeDisabled = TttxDialogBoxWithoutCloseButton.bind({});
|
|
155
|
-
closeDisabled.args = {
|
|
156
|
-
data: {
|
|
157
|
-
header: {
|
|
158
|
-
title: 'Dialog Without Close Button',
|
|
159
|
-
hasIcon: false,
|
|
160
|
-
hasClose: false,
|
|
161
|
-
},
|
|
162
|
-
body: {
|
|
163
|
-
isCustomHtml: false,
|
|
164
|
-
contentText: 'this is a dialog box without a close buttons',
|
|
165
|
-
},
|
|
166
|
-
footer: {
|
|
167
|
-
buttons: [
|
|
168
|
-
{ name: 'primary', type: 'primary' },
|
|
169
|
-
{ name: 'default', type: 'default' },
|
|
170
|
-
{ name: 'No border', type: 'borderless' },
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
};
|
|
153
|
+
`;
|
|
154
|
+
export const closeDisabled = TttxDialogBoxWithoutCloseButton.bind({});
|
|
155
|
+
closeDisabled.args = {
|
|
156
|
+
data: {
|
|
157
|
+
header: {
|
|
158
|
+
title: 'Dialog Without Close Button',
|
|
159
|
+
hasIcon: false,
|
|
160
|
+
hasClose: false,
|
|
161
|
+
},
|
|
162
|
+
body: {
|
|
163
|
+
isCustomHtml: false,
|
|
164
|
+
contentText: 'this is a dialog box without a close buttons',
|
|
165
|
+
},
|
|
166
|
+
footer: {
|
|
167
|
+
buttons: [
|
|
168
|
+
{ name: 'primary', type: 'primary' },
|
|
169
|
+
{ name: 'default', type: 'default' },
|
|
170
|
+
{ name: 'No border', type: 'borderless' },
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
175
|
const TttxDialogBoxWithIcon = ({ data }) => `
|
|
176
176
|
<tttx-dialog-box
|
|
177
177
|
id='dialogBoxIcon'
|
|
@@ -182,30 +182,30 @@ const TttxDialogBoxWithIcon = ({ data }) => `
|
|
|
182
182
|
}
|
|
183
183
|
dialogBoxIcon.data = ${JSON.stringify(data)};
|
|
184
184
|
</script>
|
|
185
|
-
`;
|
|
186
|
-
export const Icon = TttxDialogBoxWithIcon.bind({});
|
|
187
|
-
Icon.args = {
|
|
188
|
-
data: {
|
|
189
|
-
header: {
|
|
190
|
-
title: 'Icons Dialog',
|
|
191
|
-
hasIcon: true,
|
|
192
|
-
iconName: 'egg',
|
|
193
|
-
iconColor: 'green',
|
|
194
|
-
hasClose: true,
|
|
195
|
-
},
|
|
196
|
-
body: {
|
|
197
|
-
isCustomHtml: false,
|
|
198
|
-
contentText: 'this is a dialog box with an icon in the header and on the buttonss',
|
|
199
|
-
},
|
|
200
|
-
footer: {
|
|
201
|
-
buttons: [
|
|
202
|
-
{ name: 'Primary Icon', icon: 'egg', type: 'primary' },
|
|
203
|
-
{ name: 'default Icon', icon: 'egg', type: 'default' },
|
|
204
|
-
{ name: 'boderless Icon', icon: 'egg', type: 'borderless' },
|
|
205
|
-
],
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
};
|
|
185
|
+
`;
|
|
186
|
+
export const Icon = TttxDialogBoxWithIcon.bind({});
|
|
187
|
+
Icon.args = {
|
|
188
|
+
data: {
|
|
189
|
+
header: {
|
|
190
|
+
title: 'Icons Dialog',
|
|
191
|
+
hasIcon: true,
|
|
192
|
+
iconName: 'egg',
|
|
193
|
+
iconColor: 'green',
|
|
194
|
+
hasClose: true,
|
|
195
|
+
},
|
|
196
|
+
body: {
|
|
197
|
+
isCustomHtml: false,
|
|
198
|
+
contentText: 'this is a dialog box with an icon in the header and on the buttonss',
|
|
199
|
+
},
|
|
200
|
+
footer: {
|
|
201
|
+
buttons: [
|
|
202
|
+
{ name: 'Primary Icon', icon: 'egg', type: 'primary' },
|
|
203
|
+
{ name: 'default Icon', icon: 'egg', type: 'default' },
|
|
204
|
+
{ name: 'boderless Icon', icon: 'egg', type: 'borderless' },
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
209
|
const TttxDialogBoxInfo = ({ data }) => `
|
|
210
210
|
<tttx-dialog-box
|
|
211
211
|
id='dialogBoxInfo'
|
|
@@ -216,31 +216,31 @@ const TttxDialogBoxInfo = ({ data }) => `
|
|
|
216
216
|
}
|
|
217
217
|
dialogBoxInfo.data = ${JSON.stringify(data)};
|
|
218
218
|
</script>
|
|
219
|
-
`;
|
|
220
|
-
export const Info = TttxDialogBoxInfo.bind({});
|
|
221
|
-
Info.args = {
|
|
222
|
-
data: {
|
|
223
|
-
type: 'info',
|
|
224
|
-
header: {
|
|
225
|
-
title: 'Info',
|
|
226
|
-
hasIcon: true,
|
|
227
|
-
iconName: 'info',
|
|
228
|
-
iconColor: 'blue',
|
|
229
|
-
hasClose: true,
|
|
230
|
-
},
|
|
231
|
-
body: {
|
|
232
|
-
isCustomHtml: false,
|
|
233
|
-
contentText: 'there is some info',
|
|
234
|
-
},
|
|
235
|
-
footer: {
|
|
236
|
-
buttons: [
|
|
237
|
-
{ name: 'primary', type: 'primary' },
|
|
238
|
-
{ name: 'default', type: 'default' },
|
|
239
|
-
{ name: 'No border', type: 'borderless' },
|
|
240
|
-
],
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
};
|
|
219
|
+
`;
|
|
220
|
+
export const Info = TttxDialogBoxInfo.bind({});
|
|
221
|
+
Info.args = {
|
|
222
|
+
data: {
|
|
223
|
+
type: 'info',
|
|
224
|
+
header: {
|
|
225
|
+
title: 'Info',
|
|
226
|
+
hasIcon: true,
|
|
227
|
+
iconName: 'info',
|
|
228
|
+
iconColor: 'blue',
|
|
229
|
+
hasClose: true,
|
|
230
|
+
},
|
|
231
|
+
body: {
|
|
232
|
+
isCustomHtml: false,
|
|
233
|
+
contentText: 'there is some info',
|
|
234
|
+
},
|
|
235
|
+
footer: {
|
|
236
|
+
buttons: [
|
|
237
|
+
{ name: 'primary', type: 'primary' },
|
|
238
|
+
{ name: 'default', type: 'default' },
|
|
239
|
+
{ name: 'No border', type: 'borderless' },
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
244
|
const TttxDialogBoxSuccess = ({ data }) => `
|
|
245
245
|
<tttx-dialog-box
|
|
246
246
|
id='dialogBoxSuccess'
|
|
@@ -251,31 +251,31 @@ const TttxDialogBoxSuccess = ({ data }) => `
|
|
|
251
251
|
}
|
|
252
252
|
dialogBoxSuccess.data = ${JSON.stringify(data)};
|
|
253
253
|
</script>
|
|
254
|
-
`;
|
|
255
|
-
export const Success = TttxDialogBoxSuccess.bind({});
|
|
256
|
-
Success.args = {
|
|
257
|
-
data: {
|
|
258
|
-
type: 'success',
|
|
259
|
-
header: {
|
|
260
|
-
title: 'Success',
|
|
261
|
-
hasIcon: true,
|
|
262
|
-
iconName: 'check_circle',
|
|
263
|
-
iconColor: 'green',
|
|
264
|
-
hasClose: true,
|
|
265
|
-
},
|
|
266
|
-
body: {
|
|
267
|
-
isCustomHtml: false,
|
|
268
|
-
contentText: 'there is no content',
|
|
269
|
-
},
|
|
270
|
-
footer: {
|
|
271
|
-
buttons: [
|
|
272
|
-
{ name: 'primary', type: 'primary' },
|
|
273
|
-
{ name: 'default', type: 'default' },
|
|
274
|
-
{ name: 'No border', type: 'borderless' },
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
};
|
|
254
|
+
`;
|
|
255
|
+
export const Success = TttxDialogBoxSuccess.bind({});
|
|
256
|
+
Success.args = {
|
|
257
|
+
data: {
|
|
258
|
+
type: 'success',
|
|
259
|
+
header: {
|
|
260
|
+
title: 'Success',
|
|
261
|
+
hasIcon: true,
|
|
262
|
+
iconName: 'check_circle',
|
|
263
|
+
iconColor: 'green',
|
|
264
|
+
hasClose: true,
|
|
265
|
+
},
|
|
266
|
+
body: {
|
|
267
|
+
isCustomHtml: false,
|
|
268
|
+
contentText: 'there is no content',
|
|
269
|
+
},
|
|
270
|
+
footer: {
|
|
271
|
+
buttons: [
|
|
272
|
+
{ name: 'primary', type: 'primary' },
|
|
273
|
+
{ name: 'default', type: 'default' },
|
|
274
|
+
{ name: 'No border', type: 'borderless' },
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
279
|
const TttxDialogBoxWarning = ({ data }) => `
|
|
280
280
|
<tttx-dialog-box
|
|
281
281
|
id='dialogBoxWarning'
|
|
@@ -286,31 +286,31 @@ const TttxDialogBoxWarning = ({ data }) => `
|
|
|
286
286
|
}
|
|
287
287
|
dialogBoxWarning.data = ${JSON.stringify(data)};
|
|
288
288
|
</script>
|
|
289
|
-
`;
|
|
290
|
-
export const Warning = TttxDialogBoxWarning.bind({});
|
|
291
|
-
Warning.args = {
|
|
292
|
-
data: {
|
|
293
|
-
type: 'warning',
|
|
294
|
-
header: {
|
|
295
|
-
title: 'Warning',
|
|
296
|
-
hasIcon: true,
|
|
297
|
-
iconName: 'warning',
|
|
298
|
-
iconColor: 'orange',
|
|
299
|
-
hasClose: true,
|
|
300
|
-
},
|
|
301
|
-
body: {
|
|
302
|
-
isCustomHtml: false,
|
|
303
|
-
contentText: 'there is a warning',
|
|
304
|
-
},
|
|
305
|
-
footer: {
|
|
306
|
-
buttons: [
|
|
307
|
-
{ name: 'primary', type: 'primary' },
|
|
308
|
-
{ name: 'default', type: 'default' },
|
|
309
|
-
{ name: 'No border', type: 'borderless' },
|
|
310
|
-
],
|
|
311
|
-
},
|
|
312
|
-
},
|
|
313
|
-
};
|
|
289
|
+
`;
|
|
290
|
+
export const Warning = TttxDialogBoxWarning.bind({});
|
|
291
|
+
Warning.args = {
|
|
292
|
+
data: {
|
|
293
|
+
type: 'warning',
|
|
294
|
+
header: {
|
|
295
|
+
title: 'Warning',
|
|
296
|
+
hasIcon: true,
|
|
297
|
+
iconName: 'warning',
|
|
298
|
+
iconColor: 'orange',
|
|
299
|
+
hasClose: true,
|
|
300
|
+
},
|
|
301
|
+
body: {
|
|
302
|
+
isCustomHtml: false,
|
|
303
|
+
contentText: 'there is a warning',
|
|
304
|
+
},
|
|
305
|
+
footer: {
|
|
306
|
+
buttons: [
|
|
307
|
+
{ name: 'primary', type: 'primary' },
|
|
308
|
+
{ name: 'default', type: 'default' },
|
|
309
|
+
{ name: 'No border', type: 'borderless' },
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
314
|
const TttxDialogBoxCritical = ({ data }) => `
|
|
315
315
|
<tttx-dialog-box
|
|
316
316
|
id='dialogBoxCritical'
|
|
@@ -321,31 +321,31 @@ const TttxDialogBoxCritical = ({ data }) => `
|
|
|
321
321
|
}
|
|
322
322
|
dialogBoxCritical.data = ${JSON.stringify(data)};
|
|
323
323
|
</script>
|
|
324
|
-
`;
|
|
325
|
-
export const Critical = TttxDialogBoxCritical.bind({});
|
|
326
|
-
Critical.args = {
|
|
327
|
-
data: {
|
|
328
|
-
type: 'critical',
|
|
329
|
-
header: {
|
|
330
|
-
title: 'Critical',
|
|
331
|
-
hasIcon: true,
|
|
332
|
-
iconName: 'report',
|
|
333
|
-
iconColor: 'red',
|
|
334
|
-
hasClose: true,
|
|
335
|
-
},
|
|
336
|
-
body: {
|
|
337
|
-
isCustomHtml: false,
|
|
338
|
-
contentText: 'there is a critical error',
|
|
339
|
-
},
|
|
340
|
-
footer: {
|
|
341
|
-
buttons: [
|
|
342
|
-
{ name: 'primary', type: 'primary' },
|
|
343
|
-
{ name: 'default', type: 'default' },
|
|
344
|
-
{ name: 'No border', type: 'borderless' },
|
|
345
|
-
],
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
};
|
|
324
|
+
`;
|
|
325
|
+
export const Critical = TttxDialogBoxCritical.bind({});
|
|
326
|
+
Critical.args = {
|
|
327
|
+
data: {
|
|
328
|
+
type: 'critical',
|
|
329
|
+
header: {
|
|
330
|
+
title: 'Critical',
|
|
331
|
+
hasIcon: true,
|
|
332
|
+
iconName: 'report',
|
|
333
|
+
iconColor: 'red',
|
|
334
|
+
hasClose: true,
|
|
335
|
+
},
|
|
336
|
+
body: {
|
|
337
|
+
isCustomHtml: false,
|
|
338
|
+
contentText: 'there is a critical error',
|
|
339
|
+
},
|
|
340
|
+
footer: {
|
|
341
|
+
buttons: [
|
|
342
|
+
{ name: 'primary', type: 'primary' },
|
|
343
|
+
{ name: 'default', type: 'default' },
|
|
344
|
+
{ name: 'No border', type: 'borderless' },
|
|
345
|
+
],
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
};
|
|
349
349
|
const TttxDialogBoxHTML = ({ data }) => `
|
|
350
350
|
<tttx-dialog-box
|
|
351
351
|
id='dialogBoxHTML'
|
|
@@ -356,53 +356,53 @@ const TttxDialogBoxHTML = ({ data }) => `
|
|
|
356
356
|
}
|
|
357
357
|
dialogBoxHTML.data = ${JSON.stringify(data)};
|
|
358
358
|
</script>
|
|
359
|
-
`;
|
|
360
|
-
export const CustomHTML = TttxDialogBoxHTML.bind({});
|
|
361
|
-
CustomHTML.args = {
|
|
362
|
-
data: {
|
|
363
|
-
header: {
|
|
364
|
-
title: 'html Dialog',
|
|
365
|
-
hasIcon: false,
|
|
366
|
-
hasClose: true,
|
|
367
|
-
},
|
|
368
|
-
body: {
|
|
369
|
-
isCustomHtml: true,
|
|
370
|
-
customHtml: '<div><div>This is a custom html</div><a href="https://example.com/">Click here</a></div>',
|
|
371
|
-
},
|
|
372
|
-
footer: {
|
|
373
|
-
buttons: [
|
|
374
|
-
{ name: 'primary', type: 'primary' },
|
|
375
|
-
{ name: 'default', type: 'default' },
|
|
376
|
-
{ name: 'No border', type: 'borderless' },
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
};
|
|
381
|
-
const link = 'https://uat.3tplatform.com/U2FsdGVkX18l6CTkVQIEFERL%2FnhogHPK3H4e%2FKrELJcM6Jg2cFG6MDMRpJnhzg%2FnNx0cNFOn5IqC8PchiG%2BIded4%2B%2Foe2u%2BPeGnMmrhU38kPG8y2EHRrAXfHe24dNz0vZYauMC7I88j1SHCI%2F564ZkSDjIeqQJ2KBuVpNRFvNnyjfL0ENeiQqvPTCz%2ByCjexJ9bREgkeHDfvMplRI8CH92m%2B1rwWdoQbD09qb4w1wWiJE7MhLhBuXe6OeP1vNheORIeZObDC1KgAluvtbSDbGuSVGTkBgCZv2%2FD%2BIHbEMOQwjO7V7fHp0hNlb%2BPdc0Qg9RUOn%2BcVQiz4SEWBsRr1PF%2BXRIW736L8udcse%2FJYrkkq15ilKYhSwEmm7RdIxxgTTUyOanmYJBXONn0zbYDlRQ%3D%3D';
|
|
382
|
-
export const OverflowingText = TttxDialogBoxStory.bind({});
|
|
383
|
-
OverflowingText.args = {
|
|
384
|
-
data: {
|
|
385
|
-
header: {
|
|
386
|
-
title: 'Dialog Title',
|
|
387
|
-
hasIcon: false,
|
|
388
|
-
hasClose: true,
|
|
389
|
-
},
|
|
390
|
-
body: {
|
|
391
|
-
isCustomHtml: true,
|
|
359
|
+
`;
|
|
360
|
+
export const CustomHTML = TttxDialogBoxHTML.bind({});
|
|
361
|
+
CustomHTML.args = {
|
|
362
|
+
data: {
|
|
363
|
+
header: {
|
|
364
|
+
title: 'html Dialog',
|
|
365
|
+
hasIcon: false,
|
|
366
|
+
hasClose: true,
|
|
367
|
+
},
|
|
368
|
+
body: {
|
|
369
|
+
isCustomHtml: true,
|
|
370
|
+
customHtml: '<div><div>This is a custom html</div><a href="https://example.com/">Click here</a></div>',
|
|
371
|
+
},
|
|
372
|
+
footer: {
|
|
373
|
+
buttons: [
|
|
374
|
+
{ name: 'primary', type: 'primary' },
|
|
375
|
+
{ name: 'default', type: 'default' },
|
|
376
|
+
{ name: 'No border', type: 'borderless' },
|
|
377
|
+
],
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
};
|
|
381
|
+
const link = 'https://uat.3tplatform.com/U2FsdGVkX18l6CTkVQIEFERL%2FnhogHPK3H4e%2FKrELJcM6Jg2cFG6MDMRpJnhzg%2FnNx0cNFOn5IqC8PchiG%2BIded4%2B%2Foe2u%2BPeGnMmrhU38kPG8y2EHRrAXfHe24dNz0vZYauMC7I88j1SHCI%2F564ZkSDjIeqQJ2KBuVpNRFvNnyjfL0ENeiQqvPTCz%2ByCjexJ9bREgkeHDfvMplRI8CH92m%2B1rwWdoQbD09qb4w1wWiJE7MhLhBuXe6OeP1vNheORIeZObDC1KgAluvtbSDbGuSVGTkBgCZv2%2FD%2BIHbEMOQwjO7V7fHp0hNlb%2BPdc0Qg9RUOn%2BcVQiz4SEWBsRr1PF%2BXRIW736L8udcse%2FJYrkkq15ilKYhSwEmm7RdIxxgTTUyOanmYJBXONn0zbYDlRQ%3D%3D';
|
|
382
|
+
export const OverflowingText = TttxDialogBoxStory.bind({});
|
|
383
|
+
OverflowingText.args = {
|
|
384
|
+
data: {
|
|
385
|
+
header: {
|
|
386
|
+
title: 'Dialog Title',
|
|
387
|
+
hasIcon: false,
|
|
388
|
+
hasClose: true,
|
|
389
|
+
},
|
|
390
|
+
body: {
|
|
391
|
+
isCustomHtml: true,
|
|
392
392
|
customHtml: `
|
|
393
393
|
<p>Copy the link below to share a PDF of your qualifications<p>
|
|
394
394
|
<p><a href=${link}>${link}</a><p>
|
|
395
395
|
<p>
|
|
396
396
|
Please note, the link above is only valid for 3 days.
|
|
397
397
|
Anyone with access to these links in this time will be able to view your qualifications</p>
|
|
398
|
-
`,
|
|
399
|
-
},
|
|
400
|
-
footer: {
|
|
401
|
-
buttons: [
|
|
402
|
-
{ name: 'primary', type: 'primary' },
|
|
403
|
-
{ name: 'default', type: 'default' },
|
|
404
|
-
{ name: 'No border', type: 'borderless' },
|
|
405
|
-
],
|
|
406
|
-
},
|
|
407
|
-
},
|
|
408
|
-
};
|
|
398
|
+
`,
|
|
399
|
+
},
|
|
400
|
+
footer: {
|
|
401
|
+
buttons: [
|
|
402
|
+
{ name: 'primary', type: 'primary' },
|
|
403
|
+
{ name: 'default', type: 'default' },
|
|
404
|
+
{ name: 'No border', type: 'borderless' },
|
|
405
|
+
],
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
};
|