@3t-transform/threeteeui 0.1.43 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  2. package/dist/cjs/{domsanitiser.options-975e3317.js → domsanitiser.options-b2d88e35.js} +16 -30
  3. package/dist/cjs/{index-457ca775.js → index-1a35850c.js} +62 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/tttx-button.cjs.entry.js +24 -24
  6. package/dist/cjs/tttx-dialog-box.cjs.entry.js +81 -0
  7. package/dist/cjs/tttx-filter.cjs.entry.js +177 -177
  8. package/dist/cjs/tttx-form.cjs.entry.js +459 -458
  9. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  10. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
  11. package/dist/cjs/tttx-list.cjs.entry.js +33 -32
  12. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  13. package/dist/cjs/tttx-qrcode.cjs.entry.js +37 -0
  14. package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
  15. package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
  16. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  17. package/dist/cjs/tttx.cjs.js +2 -2
  18. package/dist/collection/collection-manifest.json +2 -0
  19. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  20. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  21. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  22. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  23. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
  24. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  25. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  26. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  27. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.css +0 -0
  28. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +74 -0
  29. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -0
  30. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.css +146 -0
  31. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +172 -0
  32. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +380 -0
  33. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +369 -369
  34. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +72 -72
  35. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
  36. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -61
  37. package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -479
  38. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +272 -272
  39. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  40. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  41. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
  42. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
  43. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
  44. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
  45. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  46. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  47. package/dist/collection/components/palette.stories.js +7 -7
  48. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  49. package/dist/collection/icons.js +2838 -2838
  50. package/dist/collection/index.js +1 -1
  51. package/dist/collection/shared/domsanitiser.options.js +14 -14
  52. package/dist/components/_commonjsHelpers.js +17 -0
  53. package/dist/components/domsanitiser.options.js +13 -27
  54. package/dist/components/index.d.ts +2 -0
  55. package/dist/components/index.js +2 -0
  56. package/dist/components/tttx-button.js +1 -54
  57. package/dist/components/tttx-button2.js +56 -0
  58. package/dist/components/tttx-dialog-box.d.ts +11 -0
  59. package/dist/components/tttx-dialog-box.js +110 -0
  60. package/dist/components/tttx-filter.js +210 -210
  61. package/dist/components/tttx-form.js +475 -475
  62. package/dist/components/tttx-icon2.js +28 -28
  63. package/dist/components/tttx-keyvalue-block.js +76 -76
  64. package/dist/components/tttx-list.js +53 -53
  65. package/dist/components/tttx-loading-spinner.js +33 -33
  66. package/dist/components/tttx-qrcode.d.ts +11 -0
  67. package/dist/components/tttx-qrcode.js +53 -0
  68. package/dist/components/tttx-sorter.js +130 -130
  69. package/dist/components/tttx-standalone-input.js +130 -130
  70. package/dist/components/tttx-toolbar.js +26 -26
  71. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  72. package/dist/esm/{domsanitiser.options-3c7ded83.js → domsanitiser.options-81611f82.js} +13 -27
  73. package/dist/esm/{index-d784fb3e.js → index-a848bfb4.js} +62 -1
  74. package/dist/esm/loader.js +3 -3
  75. package/dist/esm/polyfills/core-js.js +0 -0
  76. package/dist/esm/polyfills/dom.js +0 -0
  77. package/dist/esm/polyfills/es5-html-element.js +0 -0
  78. package/dist/esm/polyfills/index.js +0 -0
  79. package/dist/esm/polyfills/system.js +0 -0
  80. package/dist/esm/tttx-button.entry.js +24 -24
  81. package/dist/esm/tttx-dialog-box.entry.js +77 -0
  82. package/dist/esm/tttx-filter.entry.js +177 -177
  83. package/dist/esm/tttx-form.entry.js +459 -458
  84. package/dist/esm/tttx-icon.entry.js +11 -11
  85. package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
  86. package/dist/esm/tttx-list.entry.js +33 -32
  87. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  88. package/dist/esm/tttx-qrcode.entry.js +33 -0
  89. package/dist/esm/tttx-sorter.entry.js +102 -102
  90. package/dist/esm/tttx-standalone-input.entry.js +79 -79
  91. package/dist/esm/tttx-toolbar.entry.js +10 -10
  92. package/dist/esm/tttx.js +3 -3
  93. package/dist/tttx/p-0b25ac9c.js +3 -0
  94. package/dist/tttx/p-112455b1.js +1 -0
  95. package/dist/tttx/{p-b720c4ad.entry.js → p-120a0732.entry.js} +1 -1
  96. package/dist/tttx/p-2d130f82.entry.js +1 -0
  97. package/dist/tttx/{p-aaf02902.entry.js → p-42349ae5.entry.js} +1 -1
  98. package/dist/tttx/{p-92cade7f.entry.js → p-623b9147.entry.js} +1 -1
  99. package/dist/tttx/{p-cac26a1b.entry.js → p-7428fc97.entry.js} +1 -1
  100. package/dist/tttx/{p-ab6ce9f6.entry.js → p-77fb8e0f.entry.js} +1 -1
  101. package/dist/tttx/p-83563ce9.entry.js +1 -0
  102. package/dist/tttx/p-a092cd71.entry.js +1 -0
  103. package/dist/tttx/p-ab4652a8.js +2 -0
  104. package/dist/tttx/p-af7ff3b3.entry.js +1 -0
  105. package/dist/tttx/{p-563605b2.entry.js → p-d0ca435d.entry.js} +1 -1
  106. package/dist/tttx/{p-798a098a.entry.js → p-d2b0ec0a.entry.js} +1 -1
  107. package/dist/tttx/{p-ec253eea.entry.js → p-e1efb888.entry.js} +1 -1
  108. package/dist/tttx/tttx.esm.js +1 -1
  109. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  110. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  111. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  112. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  113. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  114. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  115. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  116. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  117. package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.d.ts +6 -0
  118. package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -0
  119. package/dist/types/components/molecules/tttx-dialog-box/interfaces.d.ts +25 -0
  120. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +18 -0
  121. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +23 -0
  122. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +41 -41
  123. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  124. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  125. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -133
  126. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  127. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
  128. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
  129. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
  130. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  131. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  132. package/dist/types/components/palette.stories.d.ts +6 -6
  133. package/dist/types/components.d.ts +41 -0
  134. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  135. package/dist/types/icons.d.ts +2 -2
  136. package/dist/types/index.d.ts +1 -1
  137. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  138. package/package.json +7 -5
  139. package/readme.md +19 -7
  140. package/dist/tttx/p-0ebffdfc.js +0 -2
  141. package/dist/tttx/p-1db3704e.entry.js +0 -1
  142. package/dist/tttx/p-350ddb03.js +0 -3
  143. package/dist/tttx/p-f702df4f.entry.js +0 -1
  144. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +0 -70
  145. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -278
  146. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -14
  147. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +0 -30
@@ -1,92 +1,92 @@
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
- iconleftcolor: {
11
- control: { type: 'text' },
12
- },
13
- iconright: {
14
- options: icons,
15
- control: { type: 'select' },
16
- },
17
- iconrightcolor: {
18
- control: { type: 'text' },
19
- },
20
- inputicon: {
21
- options: icons,
22
- control: { type: 'select' },
23
- },
24
- inputiconcolor: {
25
- control: { type: 'text' },
26
- },
27
- label: {
28
- control: { type: 'text' },
29
- },
30
- secondarylabel: {
31
- control: { type: 'text' },
32
- },
33
- errormsg: {
34
- control: { type: 'text' },
35
- },
36
- showerrorbubble: {
37
- control: { type: 'boolean' },
38
- },
39
- showerrormsg: {
40
- control: { type: 'boolean' },
41
- },
42
- inline: {
43
- control: { type: 'boolean' },
44
- },
45
- checked: {
46
- control: { type: 'boolean' },
47
- },
48
- disabled: {
49
- control: { type: 'boolean' },
50
- },
51
- max: {
52
- control: { type: 'text' },
53
- },
54
- maxlength: {
55
- control: { type: 'text' },
56
- },
57
- min: {
58
- control: { type: 'text' },
59
- },
60
- minlength: {
61
- control: { type: 'text' },
62
- },
63
- name: {
64
- control: { type: 'text' },
65
- },
66
- pattern: {
67
- control: { type: 'text' },
68
- },
69
- placeholder: {
70
- control: { type: 'text' },
71
- },
72
- readonly: {
73
- control: { type: 'boolean' },
74
- },
75
- required: {
76
- control: { type: 'boolean' },
77
- },
78
- step: {
79
- control: { type: 'text' },
80
- },
81
- type: {
82
- options: ['text', 'password', 'email', 'number'],
83
- control: { type: 'radio' },
84
- },
85
- value: {
86
- control: { type: 'text' },
87
- },
88
- },
89
- };
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
+ iconleftcolor: {
11
+ control: { type: 'text' },
12
+ },
13
+ iconright: {
14
+ options: icons,
15
+ control: { type: 'select' },
16
+ },
17
+ iconrightcolor: {
18
+ control: { type: 'text' },
19
+ },
20
+ inputicon: {
21
+ options: icons,
22
+ control: { type: 'select' },
23
+ },
24
+ inputiconcolor: {
25
+ control: { type: 'text' },
26
+ },
27
+ label: {
28
+ control: { type: 'text' },
29
+ },
30
+ secondarylabel: {
31
+ control: { type: 'text' },
32
+ },
33
+ errormsg: {
34
+ control: { type: 'text' },
35
+ },
36
+ showerrorbubble: {
37
+ control: { type: 'boolean' },
38
+ },
39
+ showerrormsg: {
40
+ control: { type: 'boolean' },
41
+ },
42
+ inline: {
43
+ control: { type: 'boolean' },
44
+ },
45
+ checked: {
46
+ control: { type: 'boolean' },
47
+ },
48
+ disabled: {
49
+ control: { type: 'boolean' },
50
+ },
51
+ max: {
52
+ control: { type: 'text' },
53
+ },
54
+ maxlength: {
55
+ control: { type: 'text' },
56
+ },
57
+ min: {
58
+ control: { type: 'text' },
59
+ },
60
+ minlength: {
61
+ control: { type: 'text' },
62
+ },
63
+ name: {
64
+ control: { type: 'text' },
65
+ },
66
+ pattern: {
67
+ control: { type: 'text' },
68
+ },
69
+ placeholder: {
70
+ control: { type: 'text' },
71
+ },
72
+ readonly: {
73
+ control: { type: 'boolean' },
74
+ },
75
+ required: {
76
+ control: { type: 'boolean' },
77
+ },
78
+ step: {
79
+ control: { type: 'text' },
80
+ },
81
+ type: {
82
+ options: ['text', 'password', 'email', 'number'],
83
+ control: { type: 'radio' },
84
+ },
85
+ value: {
86
+ control: { type: 'text' },
87
+ },
88
+ },
89
+ };
90
90
  const TemplateTextInput = ({ iconleft, iconleftcolor, iconright, iconrightcolor, inputicon, inputiconcolor, label, secondarylabel, errormsg, showerrorbubble, showerrormsg, inline, checked, disabled, max, maxlength, min, minlength, name, pattern, placeholder, readonly, required, step, type, value, }) => `
91
91
  <tttx-standalone-input
92
92
  iconleft="${iconleft || ''}"
@@ -116,86 +116,86 @@ const TemplateTextInput = ({ iconleft, iconleftcolor, iconright, iconrightcolor,
116
116
  type="${type}"
117
117
  value="${value}"
118
118
  />
119
- `;
120
- export const InputField = TemplateTextInput.bind({});
121
- InputField.args = {
122
- value: '',
123
- label: 'First name',
124
- secondarylabel: 'First name can be up to 100 characters long',
125
- maxlength: '100',
126
- type: 'text',
127
- errormsg: 'Please enter your first name',
128
- required: false,
129
- showerrormsg: false,
130
- placeholder: 'Enter first name',
131
- };
132
- export const searchField = TemplateTextInput.bind({});
133
- searchField.args = {
134
- value: '',
135
- label: '',
136
- type: 'text',
137
- errormsg: 'Please enter your first name',
138
- required: true,
139
- showerrormsg: false,
140
- showerrorbubble: false,
141
- placeholder: 'Search',
142
- inline: false,
143
- inputicon: 'search',
144
- iconright: 'cancel'
145
- };
146
- // export const TextInputIconLeft = TemplateTextInput.bind({});
147
- // TextInputIconLeft.args = {
148
- // value: 'Uh egg',
149
- // label: 'Please tell me about your egg',
150
- // iconleft: 'egg',
151
- // type: 'text',
152
- // errormsg: 'Incorrect egg, please egg again.',
153
- // required: true,
154
- // showerrormsg: true,
155
- // placeholder: 'Please for the love of god tell me about your egg',
156
- // };
157
- // export const TextInputIconRight = TemplateTextInput.bind({});
158
- // TextInputIconRight.args = {
159
- // value: 'Uh egg',
160
- // label: 'Please tell me about your egg',
161
- // iconright: 'egg',
162
- // type: 'text',
163
- // errormsg: 'Incorrect egg, please egg again.',
164
- // required: true,
165
- // showerrormsg: true,
166
- // placeholder: 'Please for the love of god tell me about your egg',
167
- // };
168
- // export const PasswordInputBasic = TemplateTextInput.bind({});
169
- // PasswordInputBasic.args = {
170
- // value: 'qwefdweferg',
171
- // label: 'Input your Password',
172
- // iconleft: 'lock',
173
- // type: 'password',
174
- // errormsg: 'Password is not strong enough',
175
- // required: true,
176
- // showerrormsg: true,
177
- // placeholder: 'Your password',
178
- // };
179
- // export const EmailInputBasic = TemplateTextInput.bind({});
180
- // EmailInputBasic.args = {
181
- // value: 'email.address@website.com',
182
- // label: 'Choose an email address',
183
- // iconleft: 'mail',
184
- // type: 'email',
185
- // errormsg: 'This email smells funny',
186
- // required: true,
187
- // valid: false,
188
- // showerrormsg: true,
189
- // placeholder: 'Your email address',
190
- // };
191
- // export const NumberInputBasic = TemplateTextInput.bind({});
192
- // NumberInputBasic.args = {
193
- // value: '42069',
194
- // label: 'What is your favourite number?',
195
- // iconleft: '123',
196
- // type: 'number',
197
- // errormsg: 'This number feels wrong',
198
- // required: true,
199
- // showerrormsg: true,
200
- // placeholder: 'Your favourite number',
201
- // };
119
+ `;
120
+ export const InputField = TemplateTextInput.bind({});
121
+ InputField.args = {
122
+ value: '',
123
+ label: 'First name',
124
+ secondarylabel: 'First name can be up to 100 characters long',
125
+ maxlength: '100',
126
+ type: 'text',
127
+ errormsg: 'Please enter your first name',
128
+ required: false,
129
+ showerrormsg: false,
130
+ placeholder: 'Enter first name',
131
+ };
132
+ export const searchField = TemplateTextInput.bind({});
133
+ searchField.args = {
134
+ value: '',
135
+ label: '',
136
+ type: 'text',
137
+ errormsg: 'Please enter your first name',
138
+ required: true,
139
+ showerrormsg: false,
140
+ showerrorbubble: false,
141
+ placeholder: 'Search',
142
+ inline: false,
143
+ inputicon: 'search',
144
+ iconright: 'cancel'
145
+ };
146
+ // export const TextInputIconLeft = TemplateTextInput.bind({});
147
+ // TextInputIconLeft.args = {
148
+ // value: 'Uh egg',
149
+ // label: 'Please tell me about your egg',
150
+ // iconleft: 'egg',
151
+ // type: 'text',
152
+ // errormsg: 'Incorrect egg, please egg again.',
153
+ // required: true,
154
+ // showerrormsg: true,
155
+ // placeholder: 'Please for the love of god tell me about your egg',
156
+ // };
157
+ // export const TextInputIconRight = TemplateTextInput.bind({});
158
+ // TextInputIconRight.args = {
159
+ // value: 'Uh egg',
160
+ // label: 'Please tell me about your egg',
161
+ // iconright: 'egg',
162
+ // type: 'text',
163
+ // errormsg: 'Incorrect egg, please egg again.',
164
+ // required: true,
165
+ // showerrormsg: true,
166
+ // placeholder: 'Please for the love of god tell me about your egg',
167
+ // };
168
+ // export const PasswordInputBasic = TemplateTextInput.bind({});
169
+ // PasswordInputBasic.args = {
170
+ // value: 'qwefdweferg',
171
+ // label: 'Input your Password',
172
+ // iconleft: 'lock',
173
+ // type: 'password',
174
+ // errormsg: 'Password is not strong enough',
175
+ // required: true,
176
+ // showerrormsg: true,
177
+ // placeholder: 'Your password',
178
+ // };
179
+ // export const EmailInputBasic = TemplateTextInput.bind({});
180
+ // EmailInputBasic.args = {
181
+ // value: 'email.address@website.com',
182
+ // label: 'Choose an email address',
183
+ // iconleft: 'mail',
184
+ // type: 'email',
185
+ // errormsg: 'This email smells funny',
186
+ // required: true,
187
+ // valid: false,
188
+ // showerrormsg: true,
189
+ // placeholder: 'Your email address',
190
+ // };
191
+ // export const NumberInputBasic = TemplateTextInput.bind({});
192
+ // NumberInputBasic.args = {
193
+ // value: '42069',
194
+ // label: 'What is your favourite number?',
195
+ // iconleft: '123',
196
+ // type: 'number',
197
+ // errormsg: 'This number feels wrong',
198
+ // required: true,
199
+ // showerrormsg: true,
200
+ // placeholder: 'Your favourite number',
201
+ // };
@@ -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({});