testio-tailwind 3.5.0 → 3.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testio-tailwind",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Tailwind based design system for Test IO",
5
5
  "scripts": {
6
6
  "clean": "del dist --force",
@@ -18,6 +18,7 @@
18
18
  @import './plugin_themes/trix_editor.css' layer(components);
19
19
  @import './plugin_themes/select2.css' layer(components);
20
20
  @import './plugin_themes/markdown_trix_styles.css' layer(components);
21
+ @import './plugin_themes/pagy.css' layer(components);
21
22
 
22
23
  /*//// Components ////*/
23
24
  @import './components/actionbar.css' layer(components);
@@ -0,0 +1,23 @@
1
+ /* uses the pagy gem https://ddnexus.github.io/pagy/extras/tailwind#gsc.tab=0 */
2
+
3
+ .pagy-bootstrap .pagination {
4
+ @apply flex justify-center mt-md;
5
+ }
6
+
7
+ .pagy-bootstrap .page-item {
8
+ @apply mr-xxs last:mr-0;
9
+ }
10
+
11
+ .pagy-bootstrap .page-link {
12
+ @apply inline-flex justify-center items-center w-btn-sm h-btn-sm text-primary border border-primary rounded hover:text-white hover:bg-link-hover hover:border-link-hover;
13
+ }
14
+
15
+ .pagy-bootstrap .page-item.active .page-link {
16
+ @apply bg-primary text-white dark:text-appbody hover:bg-link-hover;
17
+ }
18
+
19
+ .pagy-bootstrap .page-item.disabled .page-link,
20
+ .pagy-bootstrap .page-item:disabled .page-link,
21
+ .pagy-bootstrap .page-item[disabled] .page-link {
22
+ @apply bg-transparent bg-pattern-disabled-bright dark:bg-pattern-disabled-dark text-disabled border-disabled cursor-not-allowed
23
+ }
@@ -0,0 +1,20 @@
1
+ ---
2
+ tags: components
3
+ title: Pagination
4
+ ---
5
+
6
+ %p.mb-3
7
+ This component uses the pagy ruby gem:
8
+ %a{href:"https://ddnexus.github.io/pagy"} https://ddnexus.github.io/pagy
9
+ %nav.pagy-bootstrap.nav
10
+ %ul.pagination
11
+ %li.page-item.prev
12
+ %a.page-link{href:"#"} <
13
+ %li.page-item
14
+ %a.page-link{href:"#"} 1
15
+ %li.page-item.active
16
+ %a.page-link{href:"#"} 2
17
+ %li.page-item
18
+ %a.page-link{href:"#"} 3
19
+ %li.page-item.next.disabled
20
+ %a.page-link{href:"#"} >