testio-tailwind 0.8.7 → 1.0.0

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/README.md CHANGED
@@ -47,6 +47,41 @@ npm run build
47
47
 
48
48
  ### Integration of the design system into your app
49
49
 
50
- * If possible import `app.css` to get all relevant modules and files.
51
- * Be sure to use `tailwind.config.js` from the package to have all relevant variables ready to use. Otherwise you might get errors due to missing variables.
52
-
50
+ 1. Import `app.css` to get all relevant modules and files.
51
+ 2. Use the following PostCss configuration in your code `postcss.config.js` file:
52
+
53
+ ```
54
+ const tailwindConfig = require('./PATHTO/tailwind.config');
55
+
56
+ module.exports = {
57
+ plugins: [
58
+ require('postcss-import'),
59
+ require('tailwindcss/nesting'),
60
+ require('tailwindcss')({
61
+ content: [
62
+ './YOUR_LAYOUTS/**/*.{html,js,haml,pug,njk}',
63
+ ],
64
+ theme: tailwindConfig.theme,
65
+ plugins: tailwindConfig.plugins,
66
+ }),
67
+ require('postcss-simple-vars')(
68
+ {
69
+ variables: {
70
+ package_path: '../../..',
71
+ fonts_path: 'fonts'
72
+ }
73
+ }
74
+ ),
75
+ require('autoprefixer')
76
+ ]
77
+ }
78
+ 4. Change the path to the `tailwind.config.js` file from the package.
79
+
80
+ ```
81
+ const tailwindConfig = require('PATH_TO_TAILWINDCONFIG');
82
+ 6. Add all paths to your layouts and components in the content block. Otherwise TailWind will not generate your required classes.
83
+
84
+ ```
85
+ content: [
86
+ './YOUR_PATH_HERE/**/*.{html,js,haml,pug,njk}',
87
+ ],
package/index.html CHANGED
@@ -172,38 +172,38 @@
172
172
  Form layout with sidebar, metasidebar and actionbar
173
173
  </a>
174
174
 
175
+ <a href="/pages/examples/layout-manager/" class="dropdown-link">
176
+ Layout Team Leader UI
177
+ </a>
178
+
175
179
  <a href="/pages/examples/layout-metasidebar/" class="dropdown-link">
176
180
  Layout with metasidebar
177
181
  </a>
178
182
 
179
- <a href="/pages/examples/layout-sidebar/" class="dropdown-link">
180
- Layout with sidebar
183
+ <a href="/pages/examples/layout-sidebar-actionbar-metasidebar/" class="dropdown-link">
184
+ Layout with sidebar, metasidebar and actionbar
181
185
  </a>
182
186
 
183
187
  <a href="/pages/examples/layout-sidebar-actionbar/" class="dropdown-link">
184
188
  Layout with sidebar and actionbar
185
189
  </a>
186
190
 
187
- <a href="/pages/examples/layout-sidebar-actionbar-metasidebar/" class="dropdown-link">
188
- Layout with sidebar, metasidebar and actionbar
189
- </a>
190
-
191
- <a href="/pages/examples/layout-manager/" class="dropdown-link">
192
- Layout Team Leader UI
191
+ <a href="/pages/examples/layout-sidebar/" class="dropdown-link">
192
+ Layout with sidebar
193
193
  </a>
194
194
 
195
195
  <a href="/pages/examples/layout-tester/" class="dropdown-link">
196
196
  Layout Tester UI
197
197
  </a>
198
198
 
199
- <a href="/pages/examples/splitview/" class="dropdown-link">
200
- Splitview Layout
201
- </a>
202
-
203
199
  <a href="/pages/examples/splitview-testcases/" class="dropdown-link">
204
200
  Splitview Test Case Executions
205
201
  </a>
206
202
 
203
+ <a href="/pages/examples/splitview/" class="dropdown-link">
204
+ Splitview Layout
205
+ </a>
206
+
207
207
  </div>
208
208
  </details>
209
209
 
@@ -291,38 +291,38 @@
291
291
  Form layout with sidebar, metasidebar and actionbar
292
292
  </a>
293
293
 
294
+ <a href="/pages/examples/layout-manager/" class="navlink">
295
+ Layout Team Leader UI
296
+ </a>
297
+
294
298
  <a href="/pages/examples/layout-metasidebar/" class="navlink">
295
299
  Layout with metasidebar
296
300
  </a>
297
301
 
298
- <a href="/pages/examples/layout-sidebar/" class="navlink">
299
- Layout with sidebar
302
+ <a href="/pages/examples/layout-sidebar-actionbar-metasidebar/" class="navlink">
303
+ Layout with sidebar, metasidebar and actionbar
300
304
  </a>
301
305
 
302
306
  <a href="/pages/examples/layout-sidebar-actionbar/" class="navlink">
303
307
  Layout with sidebar and actionbar
304
308
  </a>
305
309
 
306
- <a href="/pages/examples/layout-sidebar-actionbar-metasidebar/" class="navlink">
307
- Layout with sidebar, metasidebar and actionbar
308
- </a>
309
-
310
- <a href="/pages/examples/layout-manager/" class="navlink">
311
- Layout Team Leader UI
310
+ <a href="/pages/examples/layout-sidebar/" class="navlink">
311
+ Layout with sidebar
312
312
  </a>
313
313
 
314
314
  <a href="/pages/examples/layout-tester/" class="navlink">
315
315
  Layout Tester UI
316
316
  </a>
317
317
 
318
- <a href="/pages/examples/splitview/" class="navlink">
319
- Splitview Layout
320
- </a>
321
-
322
318
  <a href="/pages/examples/splitview-testcases/" class="navlink">
323
319
  Splitview Test Case Executions
324
320
  </a>
325
321
 
322
+ <a href="/pages/examples/splitview/" class="navlink">
323
+ Splitview Layout
324
+ </a>
325
+
326
326
  </details>
327
327
  </div>
328
328
  </details>
@@ -331,8 +331,24 @@
331
331
  </header>
332
332
 
333
333
 
334
- <main class="main-content main-content-padding flex flex-col justify-start items-center"><div class="w-spacing-8xl flex flex-col justify-center items-center"><img class="w-spacing-3xl h-spacing-3xl mb-8 mt-5" src="/assets/images/logo-testio/testio_vertical_purpleteal_black.svg"><p class="max-w-paragraph mb-8">This design system provides Test IO themed components based on TailWindCSS. It helps designers and developers build products and services more easily. Component classes, and HTML snippets offer a starting point for development.</p><a class="mb-8" href="https://badge.fury.io/js/testio-tailwind"><img src="https://badge.fury.io/js/testio-tailwind.svg" alt="npm version" height="40"></a></div><div class="w-spacing-8xl"><div class="section-header"><h3 class="section-title">Technology</h3></div><div class="trix-content"><ul class="max-w-paragraph mb-8"><li>TailWindCSS V3</li><li>PostCSS</li></ul></div><div class="section-header"><h3 class="section-title">Integration</h3></div><div class="trix-content"><p class="max-w-paragraph">Import <code>app.css</code>to get all relevant modules and files.
335
- Be sure to use <code>tailwind.config.js</code>from the package to have all relevant variables ready to use. Otherwise you might get errors due to missing variables.</p></div><div class="section-header"><h3 class="section-title">Simple start</h3></div><p class="max-w-paragraph mb-heading">To get started without any customization just download the current compiled CSS below and implement your components with the provided code.</p><a class="btn btn-block btn-primary max-w-paragraph mb-8" href="/static/app.compiled.css" target="_blank"><div class="icon icon-cloud-download mr-icon-spacing"></div>Download compiled CSS</a></div></main>
334
+ <main class="main-content main-content-padding flex flex-col justify-start items-center"><div class="w-spacing-8xl flex flex-col justify-center items-center"><img class="w-spacing-3xl h-spacing-3xl mb-8 mt-5" src="/assets/images/logo-testio/testio_vertical_purpleteal_black.svg"><p class="max-w-paragraph mb-8">This design system provides Test IO themed components based on TailWindCSS. It helps designers and developers build products and services more easily. Component classes, and HTML snippets offer a starting point for development.</p><a class="mb-8" href="https://badge.fury.io/js/testio-tailwind"><img src="https://badge.fury.io/js/testio-tailwind.svg" alt="npm version" height="40"></a></div><div class="w-spacing-8xl"><div class="section-header"><h3 class="section-title">Technology</h3></div><div class="trix-content"><ul class="max-w-paragraph mb-8"><li>TailWindCSS V3</li><li>PostCSS</li></ul></div><div class="section-header"><h3 class="section-title">Integration</h3></div><div class="trix-content max-w-paragraph"><ol><li>Import <code>app.css</code>to get all relevant modules and files.</li><li>Use the following PostCss configuration in your <code>postcss.config.js </code>file:<pre class="mt-xs"><code class="language-js">const tailwindConfig = require('PATH_TO_TAILWINDCONFIG');
335
+
336
+ module.exports = {
337
+ plugins: [
338
+ require('postcss-import'),
339
+ require('tailwindcss/nesting'),
340
+ require('tailwindcss')({
341
+ content: [
342
+ './YOUR_PATH_HERE/**/*.{html,js,haml,pug,njk}',
343
+ ],
344
+ theme: tailwindConfig.theme,
345
+ plugins: tailwindConfig.plugins,
346
+ }),
347
+ require('autoprefixer')
348
+ ]
349
+ }</code></pre></li><li>Change the path to the tailwind.config.js file from the package.<pre class="mt-xs"><code class="language-js">const tailwindConfig = require('PATH_TO_TAILWINDCONFIG');</code></pre></li><li>Add all paths to your layouts and components in the content block. Otherwise TailWind will not generate your required classes.<pre class="mt-xs"><code class="language-js"> content: [
350
+ './YOUR_PATH_HERE/**/*.{html,js,haml,pug,njk}',
351
+ ],</code></pre></li></ol></div><div class="section-header"><h3 class="section-title">Simple start</h3></div><p class="max-w-paragraph mb-heading">To get started without any customization just download the current compiled CSS below and implement your components with the provided code.</p><a class="btn btn-block btn-primary max-w-paragraph mb-8" href="/static/app.compiled.css" target="_blank"><div class="icon icon-cloud-download mr-icon-spacing"></div>Download compiled CSS</a></div></main>
336
352
 
337
353
 
338
354
  <script src="/static/app.bundled.js"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testio-tailwind",
3
- "version": "0.8.7",
3
+ "version": "1.0.0",
4
4
  "description": "Tailwind based design system for Test IO",
5
5
  "scripts": {
6
6
  "clean": "del dist",
@@ -2,7 +2,6 @@
2
2
 
3
3
  @import "tailwindcss/base";
4
4
  @import "tailwindcss/components";
5
- @import "tailwindcss/utilities";
6
5
 
7
6
  @import "tom-select/dist/css/tom-select.css";
8
7
  @import "select2/dist/css/select2.css";
@@ -76,3 +75,5 @@
76
75
  @import "components/manager/manager_sidebar";
77
76
 
78
77
  @import "components/designsystem/designsystem-styles";
78
+
79
+ @import "tailwindcss/utilities";
@@ -152,6 +152,7 @@ input[type="submit"].btn-dashed {
152
152
 
153
153
  .btn:disabled,
154
154
  .btn[disabled],
155
+ .btn-inverted[disabled],
155
156
  button:disabled,
156
157
  button[disabled],
157
158
  .btn.disabled,
@@ -174,7 +175,8 @@ input.btn-lg[disabled] {
174
175
  @apply text-disabled border border-disabled bg-pattern-disabled-bright hover:bg-pattern-disabled-bright bg-transparent hover:bg-transparent hover:text-disabled shadow-none cursor-not-allowed;
175
176
 
176
177
  &:hover .icon,
177
- &:focus .icon {
178
+ &:focus .icon,
179
+ .icon {
178
180
  @apply text-disabled;
179
181
  }
180
182
 
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .device.outline {
23
- @apply p-sm border border-bordercolor rounded;
23
+ @apply p-sm border border-bordercolor rounded outline-none;
24
24
  }
25
25
 
26
26
  .device-icon {
@@ -1035,4 +1035,6 @@
1035
1035
  <glyph unicode="&#xecf1;" glyph-name="banking" horiz-adv-x="717" d="M716.749 98.944v-23.245h-614.4v51.2h614.4v256c0 56.525-45.875 102.4-102.4 102.4h-512c-56.525 0-102.4-45.875-102.4-102.4v-307.2c0-56.499 45.875-102.4 102.4-102.4h512c56.525 0 102.4 45.901 102.4 102.4v23.245zM230.425 357.299v-128.025h-128.025v128.025h128.025zM614.349 229.299h-307.2v51.2h307.2v-51.2zM409.549 306.099h-102.4v51.2h102.4v-51.2zM614.349 306.099h-179.2v51.2h179.2v-51.2z" />
1036
1036
  <glyph unicode="&#xecf2;" glyph-name="wallet-lg" horiz-adv-x="640" d="M640 256c0 14.131-11.469 25.6-25.6 25.6h-166.4c-14.131 0-25.6-11.469-25.6-25.6v-76.8c0-14.131 11.469-25.6 25.6-25.6h166.4c14.131 0 25.6 11.469 25.6 25.6v76.8zM486.669 243.2c14.285 0 25.881-11.597 25.881-25.869 0-14.285-11.597-25.882-25.882-25.882-14.272 0-25.869 11.597-25.869 25.882 0 14.272 11.597 25.869 25.869 25.869zM614.4 128c0 0 0-45.978 0-89.6 0-42.419-34.381-76.8-76.8-76.8-118.041 0-342.759 0-460.8 0-42.419 0-76.8 34.381-76.8 76.8 0 96.666 0 261.734 0 358.4 0 42.419 34.381 76.8 76.8 76.8 118.041 0 342.759 0 460.8 0 20.378 0 39.923-8.102 54.323-22.515s22.49-33.959 22.477-54.336c0-43.61 0-89.549 0-89.549h-179.2c-21.197 0-38.4-17.203-38.4-38.4v-102.4c0-21.197 17.203-38.4 38.4-38.4 0 0 179.2 0 179.2 0zM563.2 25.050h-512v-25.6h512v25.6z" />
1037
1037
  <glyph unicode="&#xecf3;" glyph-name="banking-lg" horiz-adv-x="717" d="M716.774 50.65l-614.375 0.55v50.649h614.375v268.8c0 56.525-45.888 102.4-102.4 102.4h-512c-56.512 0-102.4-45.875-102.4-102.4v-307.2c0-56.512 45.888-102.4 102.4-102.4h512c52.365 0 96.333 38.848 102.4 89.6zM332.774 140.25h-89.6v25.6h89.6v-25.6zM473.575 140.25h-89.6v25.6h89.6v-25.6zM614.375 140.25h-89.6v25.6h89.6v-25.6zM191.975 140.25h-89.6v25.6h89.6v-25.6zM230.579 345.049v-128.102h-128.102v128.102h128.102zM614.375 217.050h-294.4v51.2h294.4v-51.2zM614.375 293.85h-179.2v51.2h179.2v-51.2zM409.575 293.85h-89.6v51.2h89.6v-51.2z" />
1038
+ <glyph unicode="&#xecf4;" glyph-name="cross-thick-centered" d="M256 284.16l-73.139 73.139-54.861-54.861 73.139-73.139-73.139-73.139 54.861-54.861 73.139 73.139 73.139-73.139 54.861 54.861-73.139 73.139 73.139 73.139-54.861 54.861-73.139-73.139z" />
1039
+ <glyph unicode="&#xecf5;" glyph-name="check-thick-centered" d="M115.072 198.041l104.73-95.642 177.126 206.643-57.575 49.357-126.208-147.226c0 0-46.925 42.855-46.925 42.855l-51.149-55.987z" />
1038
1040
  </font></defs></svg>