testio-tailwind 3.21.0 → 3.23.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.
Files changed (143) hide show
  1. package/AI_DESIGN_SYSTEM_REFERENCE.md +2618 -0
  2. package/package.json +1 -1
  3. package/src/_data/navigation.json +4 -0
  4. package/src/_includes/example-header-centered.njk +53 -0
  5. package/src/_includes/header.njk +8 -8
  6. package/src/_includes/page-with-sidebar.njk +10 -1
  7. package/src/_layouts/page-example-centered.njk +19 -0
  8. package/src/_layouts/page-example-darkmode.njk +19 -0
  9. package/src/assets/scripts/app.js +27 -0
  10. package/src/assets/stylesheets/components/actionbar.css +8 -0
  11. package/src/assets/stylesheets/components/designsystem/designsystem-styles.css +4 -2
  12. package/src/assets/stylesheets/components/header.css +22 -0
  13. package/src/assets/stylesheets/components/tables.css +4 -0
  14. package/src/pages/buttons/block.haml +1 -0
  15. package/src/pages/buttons/button_group.haml +1 -0
  16. package/src/pages/buttons/buttons-lg.haml +1 -0
  17. package/src/pages/buttons/buttons-round.haml +1 -0
  18. package/src/pages/buttons/buttons-sm.haml +1 -0
  19. package/src/pages/buttons/buttons-xl.haml +1 -0
  20. package/src/pages/buttons/buttons.haml +1 -0
  21. package/src/pages/buttons/buttons_input.haml +4 -0
  22. package/src/pages/buttons/dropdown-menu.haml +2 -11
  23. package/src/pages/buttons/square-buttons.haml +15 -0
  24. package/src/pages/components/alerts.haml +1 -0
  25. package/src/pages/components/banner_cards.haml +1 -0
  26. package/src/pages/components/card_badges.haml +8 -7
  27. package/src/pages/components/cards.haml +15 -22
  28. package/src/pages/components/cards_customer.haml +1 -0
  29. package/src/pages/components/cards_fixedwidth.haml +7 -0
  30. package/src/pages/components/cards_iconheader.haml +1 -0
  31. package/src/pages/components/cards_tester.haml +1 -0
  32. package/src/pages/components/descriptionlist.haml +12 -3
  33. package/src/pages/components/devices.haml +1 -0
  34. package/src/pages/components/drawer.haml +1 -0
  35. package/src/pages/components/drawer_filter.haml +1 -0
  36. package/src/pages/components/emptystate.haml +2 -0
  37. package/src/pages/{buttons → components}/info_popover.haml +2 -1
  38. package/src/pages/components/listitem_with_actionbar.haml +1 -0
  39. package/src/pages/components/listitem_with_footer.haml +1 -0
  40. package/src/pages/components/listitems.haml +1 -0
  41. package/src/pages/components/listitems_badge.haml +1 -0
  42. package/src/pages/components/listitems_collapsable.haml +1 -0
  43. package/src/pages/components/listitems_nested.haml +1 -0
  44. package/src/pages/components/listitems_selectable.haml +1 -0
  45. package/src/pages/components/loading_spinner.haml +1 -0
  46. package/src/pages/components/metasidebar.haml +1 -0
  47. package/src/pages/components/modal_details.haml +3 -1
  48. package/src/pages/components/notifications.haml +2 -1
  49. package/src/pages/components/user_item.haml +1 -0
  50. package/src/pages/forms/attachments.pug +71 -0
  51. package/src/pages/forms/checkboxes.haml +1 -0
  52. package/src/pages/forms/checkboxes_devices.haml +1 -0
  53. package/src/pages/forms/date-time.haml +1 -0
  54. package/src/pages/forms/dropzone.pug +38 -0
  55. package/src/pages/forms/flatpickr.haml +1 -1
  56. package/src/pages/forms/form-addon.haml +1 -0
  57. package/src/pages/forms/form-card.haml +1 -0
  58. package/src/pages/forms/form_grid.haml +1 -0
  59. package/src/pages/forms/form_hint.haml +1 -0
  60. package/src/pages/forms/forms.haml +1 -0
  61. package/src/pages/forms/radiobuttons.haml +1 -0
  62. package/src/pages/forms/rating_scale.haml +1 -0
  63. package/src/pages/forms/search.haml +1 -0
  64. package/src/pages/forms/selectable_token.haml +1 -0
  65. package/src/pages/forms/selectable_token_browsers.haml +1 -0
  66. package/src/pages/forms/selectable_token_lg.haml +1 -0
  67. package/src/pages/forms/selectable_token_xl.haml +1 -0
  68. package/src/pages/forms/textarea.haml +4 -0
  69. package/src/pages/forms/toggle-buttons.haml +1 -0
  70. package/src/pages/forms/toggle-switch.haml +1 -0
  71. package/src/pages/forms/trix_editor.pug +1 -0
  72. package/src/pages/icons/bug-icons.haml +1 -0
  73. package/src/pages/icons/index.njk +18 -14
  74. package/src/pages/icons/status-icons.haml +1 -0
  75. package/src/pages/layout/app_layout.haml +5 -1
  76. package/src/pages/layout/centered_layout.haml +26 -0
  77. package/src/pages/layout/darkmode.haml +9 -0
  78. package/src/pages/layout/margins.haml +1 -0
  79. package/src/pages/layout/max_width.haml +2 -1
  80. package/src/pages/layout/paddings.haml +1 -0
  81. package/src/pages/layout/spacing.haml +1 -0
  82. package/src/pages/{examples → layouts}/agenticqa_splitview.haml +1 -1
  83. package/src/pages/layouts/layout-actionbar.haml +45 -0
  84. package/src/pages/{examples → layouts}/layout-basic.haml +3 -2
  85. package/src/pages/layouts/layout-centered.haml +26 -0
  86. package/src/pages/{examples → layouts}/layout-chat.haml +3 -2
  87. package/src/pages/{examples → layouts}/layout-customer.haml +3 -2
  88. package/src/pages/{examples/layout-sidebar-actionbar.haml → layouts/layout-darkmode.haml} +20 -18
  89. package/src/pages/{examples → layouts}/layout-form-sidebar-actionbar-metasidebar.haml +5 -228
  90. package/src/pages/{examples/layout-sidebar-actionbar-metasidebar.haml → layouts/layout-full.haml} +3 -2
  91. package/src/pages/{examples → layouts}/layout-manager.haml +3 -2
  92. package/src/pages/{examples → layouts}/layout-metasidebar.haml +3 -2
  93. package/src/pages/{examples → layouts}/layout-sidebar.haml +3 -2
  94. package/src/pages/{examples → layouts}/layout-tester.haml +3 -2
  95. package/src/pages/{examples → layouts}/splitview-metasidebar.haml +3 -3
  96. package/src/pages/{examples → layouts}/splitview-testcases.haml +2 -2
  97. package/src/pages/{examples → layouts}/splitview.haml +3 -3
  98. package/src/pages/navigation/header-centered.haml +77 -0
  99. package/src/pages/navigation/header-manager.haml +1 -0
  100. package/src/pages/navigation/header-tester.haml +1 -0
  101. package/src/pages/navigation/header.haml +1 -0
  102. package/src/pages/navigation/header_customer.haml +1 -0
  103. package/src/pages/navigation/header_tester_epam.haml +1 -0
  104. package/src/pages/navigation/product_dropdown.haml +2 -0
  105. package/src/pages/navigation/radio_tabs.haml +1 -0
  106. package/src/pages/navigation/sidebar-manager.haml +2 -1
  107. package/src/pages/navigation/sidebar-tester-elements.haml +1 -0
  108. package/src/pages/navigation/sidebar-tester-seatlimitation.haml +1 -1
  109. package/src/pages/navigation/sidebar-tester.haml +1 -1
  110. package/src/pages/navigation/sidebar.haml +1 -0
  111. package/src/pages/navigation/sidebar_collapsables.haml +1 -0
  112. package/src/pages/navigation/sidebar_customer.haml +1 -0
  113. package/src/pages/navigation/tabnavigation.haml +1 -0
  114. package/src/pages/navigation/tabnavigation_actions.haml +1 -0
  115. package/src/pages/navigation/tabnavigation_pills.haml +1 -0
  116. package/src/pages/navigation/tabnavigation_sm.haml +1 -0
  117. package/src/pages/navigation/test-header-tester.haml +2 -0
  118. package/src/pages/tables/index.njk +7 -0
  119. package/src/pages/tables/tables-cellstyle.haml +38 -0
  120. package/src/pages/tables/tables-grid.haml +31 -0
  121. package/src/pages/tables/tables.haml +16 -0
  122. package/src/pages/tables/tables_alternating.haml +27 -0
  123. package/src/pages/tables/tables_borders.haml +22 -0
  124. package/src/pages/tables/tables_cells.haml +50 -0
  125. package/src/pages/tables/tables_footer.haml +27 -0
  126. package/src/pages/tables/tables_formrow.haml +31 -0
  127. package/src/pages/tables/tables_header.haml +22 -0
  128. package/src/pages/{components → tables}/tables_linked.haml +11 -10
  129. package/src/pages/typography/link_with_icon.haml +10 -2
  130. package/src/pages/typography/linked_icon.haml +6 -0
  131. package/src/pages/typography/section_header.haml +1 -0
  132. package/src/pages/typography/section_header_actions.haml +1 -0
  133. package/src/pages/typography/text_with_icon.haml +3 -2
  134. package/utils/filters.js +161 -0
  135. package/CLAUDE_DESIGN_SYSTEM_REFERENCE.md +0 -1978
  136. package/src/pages/buttons/link-with-icon.haml +0 -13
  137. package/src/pages/components/tables-cellstyle.pug +0 -285
  138. package/src/pages/components/tables-grid.pug +0 -258
  139. package/src/pages/components/tables.haml +0 -57
  140. package/src/pages/components/tables_cells.pug +0 -57
  141. package/src/pages/components/tables_formrow.haml +0 -55
  142. package/src/pages/examples/layout-actionbar.haml +0 -268
  143. package/src/pages/forms/uploads.pug +0 -101
@@ -0,0 +1,77 @@
1
+ ---
2
+ tags: navigation
3
+ title: Centered header
4
+ ---
5
+
6
+ %p.mb-heading Header component with centered elements.
7
+ %nav.header.centered
8
+ .header-wrapper
9
+ .navlinks.logo-wrapper
10
+ %a.navlink.header-logo{href:'#'}
11
+ .navlinks.left
12
+ %a.navlink.active{href:'#'} Navlink active
13
+ %a.navlink{href:'#'} Navlink
14
+ %a.navlink{href:'#'}
15
+ %span.icon.icon-check-circle-filled
16
+ %span Navlink
17
+ %details.header-dropdown
18
+ %summary.navlink Collapsable
19
+ .dropdown-menu
20
+ %a.navlink{href:'#', role:'menuitem'}
21
+ %span.icon.icon-user
22
+ Dropdown-item
23
+ %a.navlink{href:'#', role:'menuitem'}
24
+ %span.icon.icon-cog
25
+ Dropdown-item
26
+ %a.navlink{href:'#', role:'menuitem'}
27
+ %span.icon.icon-shutdown
28
+ Dropdown-item with a longer text to see how things break and behave
29
+ %a.navlink.responsive-label{href:'#'}
30
+ %span.icon.icon-check-circle-filled
31
+ %span Responsive label
32
+ %details.mobile-links
33
+ %summary.mobile-menu-btn
34
+ .navlink
35
+ %span.sr-only Open main menu
36
+ %span.icon.icon-menu{ariahidden:'true'}
37
+ .mobile-menu.sidebar
38
+ %a.navlink.active{href:'#'}
39
+ %span.navlink-badge.icon.icon-home
40
+ Navlink active
41
+ %a.navlink{href:'#'}
42
+ %span.navlink-badge.icon.icon-plus
43
+ Add project
44
+ %details
45
+ %summary.navlink
46
+ %span.icon.icon-product
47
+ Collapsable
48
+ %a.navlink{href:'#'}
49
+ %span.icon.icon-test
50
+ Navlink child
51
+ %a.navlink{href:'#'}
52
+ %span.icon.icon-test
53
+ Navlink child
54
+ %a.navlink{href:'#'}
55
+ %span.icon.icon-test
56
+ Navlink child
57
+ %a.navlink.active{href:'#'}
58
+ %span.icon.icon-test
59
+ Active child
60
+ .navlinks.right
61
+ %details.header-dropdown.user-menu
62
+ %summary.btn-profile.navlink
63
+ %span.sr-only Open user menu
64
+ %img.user-profile{src:'/assets/images/placeholders/profile_supergirl.png', alt:''}
65
+ .user-details
66
+ .profile-role Admin
67
+ .profile-name Anja Berger
68
+ .dropdown-menu.profile-dropdown{role:'menu', ariaorientation:'vertical', arialabelledby:'user-menu'}
69
+ %a.dropdown-link{href:'#', role:'menuitem'}
70
+ %span.icon.icon-user
71
+ Your Profile
72
+ %a.dropdown-link{href:'#', role:'menuitem'}
73
+ %span.icon.icon-cog
74
+ Settings
75
+ %a.dropdown-link{href:'#', role:'menuitem'}
76
+ %span.icon.icon-shutdown
77
+ Sign out
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Header - Manager
4
4
  ---
5
5
 
6
+ %p.mb-heading Header for the Manager UI.
6
7
  %nav.header.manager
7
8
  .navlinks.logo-wrapper
8
9
  %a.navlink.header-logo{href:'#'}
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Header - Tester
4
4
  ---
5
5
 
6
+ %p.mb-heading Header for the Tester UI for freelancers.
6
7
  %nav.header.tester
7
8
  .navlinks.logo-wrapper
8
9
  %a.navlink.header-logo{href:'#'}
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Header
4
4
  ---
5
5
 
6
+ %p.mb-heading Header component with navigation links, dropdowns, and responsive behavior.
6
7
  %nav.header
7
8
  .navlinks.logo-wrapper
8
9
  %a.navlink.header-logo{href:'#'}
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Header - Customer
4
4
  ---
5
5
 
6
+ %p.mb-heading Header for the Customer UI.
6
7
  %nav.header.customer
7
8
  .navlinks.logo-wrapper
8
9
  %a.navlink.header-logo{href:'#'}
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Header - EPAM Tester
4
4
  ---
5
5
 
6
+ %p.mb-heading Header for the Tester UI for EPAM testers.
6
7
  %nav.header.tester
7
8
  .navlinks.logo-wrapper
8
9
  %a.navlink.header-logo{href:'#'}
@@ -2,6 +2,8 @@
2
2
  tags: navigation
3
3
  title: Customer product dropdown
4
4
  ---
5
+
6
+ %p.mb-heading Product dropdown in the Customer UI.
5
7
  .header.customer
6
8
  .navlinks.logo-wrapper
7
9
  %a.navlink.header-logo{href:'#'}
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Radio tabs
4
4
  ---
5
5
 
6
+ %p.mb-heading Radio tabs allow users to switch between different views or sections within the same context. Only one tab can be active at a time.
6
7
  .radio-tabs
7
8
  %input.radio-tab#tab1{checked: "checked", name: "tabs", tabindex: "1", type: "radio"}
8
9
  %label.radio-tab-btn{for: "tab1"} Tab One
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  tags: navigation
3
- title: Sidebar - Teamleader
3
+ title: Sidebar - Manager
4
4
  ---
5
5
 
6
+ %p.mb-heading Sidebar navigation for the Manager UI.
6
7
  %nav.sidebar.manager.ds-removethisclass-flex{arialabel:'Sidebar'}
7
8
  %a.navlink.active{href:'#'}
8
9
  %span.icon.icon-home
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Sidebar - Tester - Elements
4
4
  ---
5
5
 
6
+ %p.mb-heading Sidebar navigation for the Tester UI for freelancers, showcasing various elements.
6
7
  %nav.sidebar.tester.ds-removethisclass-flex{arialabel:'Sidebar'}
7
8
  .profilepicture-wrapper
8
9
  %details.profilepicture-actions
@@ -3,7 +3,7 @@ tags: navigation
3
3
  title: Sidebar - Tester - seat limitation
4
4
  ---
5
5
 
6
- %p.mb-heading Tester sidebar with seat limitation.
6
+ %p.mb-heading Sidebar navigation for the Tester UI with seat limitation and corresponding elements.
7
7
  %nav.sidebar.tester.ds-removethisclass-flex{arialabel:'Sidebar'}
8
8
  .profilepicture-wrapper
9
9
  %details.profilepicture-actions
@@ -3,7 +3,7 @@ tags: navigation
3
3
  title: Sidebar - Tester
4
4
  ---
5
5
 
6
- %p.mb-heading Tester sidebar with no seat limitation
6
+ %p.mb-heading Sidebar navigation for the Tester UI with no seat limitation.
7
7
  %nav.sidebar.tester.ds-removethisclass-flex{arialabel:'Sidebar'}
8
8
  .profilepicture-wrapper
9
9
  %details.profilepicture-actions
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Sidebar
4
4
  ---
5
5
 
6
+ %p.mb-heading Sidebar navigation for the general UI.
6
7
  %nav.sidebar.ds-removethisclass-flex{arialabel:'Sidebar'}
7
8
  %a.navlink.active{href:'#'}
8
9
  %span.icon.icon-home
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Sidebar colored collapsables
4
4
  ---
5
5
 
6
+ %p.mb-heading Sidebar with colored collapsable sections to organize and group navigation links.
6
7
  %nav.sidebar.customer.ds-removethisclass-flex{arialabel:'Sidebar'}
7
8
  .navlinks
8
9
  %details
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Sidebar - Customer
4
4
  ---
5
5
 
6
+ %p.mb-heading Sidebar navigation for the Customer UI.
6
7
  %nav.sidebar.customer.ds-removethisclass-flex{arialabel:'Sidebar'}
7
8
  .profilepicture-wrapper
8
9
  %details.profilepicture-actions
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Tab navigation
4
4
  ---
5
5
 
6
+ %p.mb-heading Tab navigation component showcasing different states.
6
7
  %nav.nav-tabs
7
8
  .navlink.active{href:""} Navlink active
8
9
  .navlink{href:""} Navlink
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Tab navigation with actions
4
4
  ---
5
5
 
6
+ %p.mb-heading Tab navigation component with action links showcasing different states.
6
7
  %nav.nav-tabs
7
8
  .navlinks
8
9
  .navlink.active{href:""} Navlink active
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Tab pill navigation
4
4
  ---
5
5
 
6
+ %p.mb-heading Tab navigation component in pill style showcasing different states.
6
7
  %nav.nav-pills
7
8
  .navlink.active{href:""} Navlink active
8
9
  .navlink{href:""} Navlink
@@ -3,6 +3,7 @@ tags: navigation
3
3
  title: Tab navigation SM
4
4
  ---
5
5
 
6
+ %p.mb-heading Tab navigation component in small size showcasing different states.
6
7
  %nav.nav-tabs.sm
7
8
  .navlinks
8
9
  .navlink.active{href:""} Navlink active
@@ -2,6 +2,8 @@
2
2
  tags: navigation
3
3
  title: Test Header - Tester
4
4
  ---
5
+
6
+ %p.mb-heading Test cycle header component for the Tester UI showcasing different states.
5
7
  %p.mb-xs
6
8
  %span.tag-item.mr-xs.bg-gray-lighter .tester-header.tester
7
9
  Invitation, not joined yet
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: base
3
+ permalink: tables/
4
+ ---
5
+
6
+ {% set collection = collections.tables %}
7
+ {% include "page-with-sidebar.njk" %}
@@ -0,0 +1,38 @@
1
+ ---
2
+ tags: tables
3
+ title: Cell style
4
+ ---
5
+
6
+ %p.mb-heading
7
+ Adding the class
8
+ %code.tag .table-cellstyle
9
+ %span will give cells a background color. This is used to visually separate rows and columns. You can also use additional classes to communicate status information.
10
+ .overflow-x-auto
11
+ %table.table-standard.table-cellstyle
12
+ %thead
13
+ %tr
14
+ %th Header
15
+ %th Header
16
+ %th Header
17
+ %th Header
18
+ %th Header
19
+ %th Header
20
+ %tbody
21
+ %tr
22
+ %td Example content
23
+ %td Example content
24
+ %td Example content
25
+ %td Example content
26
+ %td Example content
27
+ %td Example content
28
+ %tr
29
+ %td Example content
30
+ %td.wrap
31
+ Add
32
+ %code.tag.bg-gray-light .wrap
33
+ %span to allow line breaks within a cell.
34
+ %span Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
35
+ %td.missing Status Missing
36
+ %td.inprogress Status In progress
37
+ %td.completed Status Completed
38
+ %td Example content
@@ -0,0 +1,31 @@
1
+ ---
2
+ tags: tables
3
+ title: Grid tables
4
+ ---
5
+
6
+ %p.mb-heading
7
+ Grid tables use CSS Grid to create a table layout. This allows for more control and layout possibilities compared to traditional HTML tables.
8
+ However you need to define the number of columns manually:
9
+ %code.tag.mb-heading grid-template-columns: repeat({NUMBER OF COLUMNS}, minmax(12rem, 1fr));
10
+ .overflow-x-auto
11
+ %table.table-cellstyle.table-grid{style: "grid-template-columns: repeat(5, minmax(12rem, 1fr));"}
12
+ %thead
13
+ %tr
14
+ %th Header
15
+ %th Header
16
+ %th Header
17
+ %th Header
18
+ %th Header
19
+ %tbody
20
+ %tr
21
+ %td Example content
22
+ %td Example content
23
+ %td Example content
24
+ %td Example content
25
+ %td Example content
26
+ %tr
27
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
28
+ %td Example content
29
+ %td Example content
30
+ %td Example content
31
+ %td Example content
@@ -0,0 +1,16 @@
1
+ ---
2
+ tags: tables
3
+ title: Standard table
4
+ ---
5
+
6
+ %p.mb-heading A standard table with basic styling and a cell with buttons.
7
+ %table.table
8
+ %tr
9
+ %td Cell content
10
+ %td Cell content
11
+ %td Cell content
12
+ %tr
13
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing.
14
+ %td Cell content
15
+ %td.cell-with-buttons
16
+ %button.btn.btn-primary action
@@ -0,0 +1,27 @@
1
+ ---
2
+ tags: tables
3
+ title: Striped rows
4
+ ---
5
+
6
+ %p.mb-heading Table with alternating background colors for rows
7
+ %table.table.table-striped
8
+ %tr
9
+ %td Cell content
10
+ %td Cell content
11
+ %td.cell-with-buttons
12
+ %button.btn.btn-primary action
13
+ %tr
14
+ %td Cell content
15
+ %td Cell content
16
+ %td.cell-with-buttons
17
+ %button.btn.btn-primary action
18
+ %tr
19
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
20
+ %td Cell content
21
+ %td.cell-with-buttons
22
+ %button.btn.btn-primary action
23
+ %tr
24
+ %td Cell content
25
+ %td Cell content
26
+ %td.cell-with-buttons
27
+ %button.btn.btn-primary action
@@ -0,0 +1,22 @@
1
+ ---
2
+ tags: tables
3
+ title: Borders
4
+ ---
5
+
6
+ %p.mb-heading Table with borders
7
+ %table.table.table-bordered
8
+ %tr
9
+ %td Cell content
10
+ %td Cell content
11
+ %td.cell-with-buttons
12
+ %button.btn.btn-primary action
13
+ %tr
14
+ %td Cell content
15
+ %td Cell content
16
+ %td.cell-with-buttons
17
+ %button.btn.btn-primary action
18
+ %tr
19
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
20
+ %td Cell content
21
+ %td.cell-with-buttons
22
+ %button.btn.btn-primary action
@@ -0,0 +1,50 @@
1
+ ---
2
+ tags: tables
3
+ title: Cell behavior
4
+ ---
5
+
6
+ %p.mb-heading
7
+ Using the class
8
+ %code.tag table-standard
9
+ will make the last cell in a row take up all the available space. All previous cells will be as wide as their content.
10
+
11
+ %table.table-standard.table-cellstyle
12
+ %tbody
13
+ %tr
14
+ %td A cell with some lorem ipsum
15
+ %td Cell content
16
+ %td A small cell
17
+ %tr
18
+ %td This cell will take as much space as it's content
19
+ %td Cell content
20
+ %td The last cell will take up all the free space
21
+ .py-sm
22
+ %table.table-standard.table-cellstyle
23
+ %tbody
24
+ %tr
25
+ %td.cell-full-width
26
+ Add
27
+ %code.tag.bg-gray-light .cell-full-width
28
+ to let a cell take all the available space.
29
+ %td.wrap.min-w-12
30
+ Add
31
+ %code.tag.bg-gray-light .wrap
32
+ to allow line breaks within a cell.
33
+ %td Another cell content
34
+ %td € 40.00
35
+ %tr
36
+ %td.cell-full-width.pre
37
+ %p Add
38
+ %code.tag.bg-gray-light .pre
39
+ %br
40
+ to show preformatted white space.
41
+ | Multi
42
+ | Line
43
+ | textbox
44
+ | Cat and dog
45
+ %td.wrap.min-w-spacing-2xl
46
+ Wrapping cells need a
47
+ %code.tag.bg-gray-light .min-w
48
+ rule to not be squished.
49
+ %td Another cell content
50
+ %td € 999.00
@@ -0,0 +1,27 @@
1
+ ---
2
+ tags: tables
3
+ title: Footer
4
+ ---
5
+
6
+ %p.mb-heading Table with header and footer
7
+ %table.table.table-bordered.table-striped
8
+ %thead
9
+ %th Table header
10
+ %th Table header
11
+ %th Table header
12
+ %tbody
13
+ %tr
14
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
15
+ %td Cell content
16
+ %td.cell-with-buttons
17
+ %button.btn.btn-primary action
18
+ %tr
19
+ %td Cell content
20
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
21
+ %td.cell-with-buttons
22
+ %button.btn.btn-primary action
23
+ %tfoot
24
+ %tr
25
+ %td Table footer
26
+ %td Table footer
27
+ %td Table footer
@@ -0,0 +1,31 @@
1
+ ---
2
+ tags: tables
3
+ title: Table within form
4
+ ---
5
+
6
+ %p.mb-xs Tables cannot contain form elements, instead wrap the whole table with a form element.
7
+
8
+ %form
9
+ %table.table.table-bordered.align-top
10
+ %tbody
11
+ %tr
12
+ %td
13
+ %select.tom-select.min-w-spacing-3xl{placeholder: "Please select"}
14
+ %option{value: ""}
15
+ %option{value:"Option 1"} Option 1
16
+ %option{value:"Option 2"} Option 2
17
+ %option{value:"Option 3"} Option 3
18
+ %option{value:"Option 4"} ABC
19
+ %option{value:"Option 5"} DEF
20
+ %option{value:"Option 6"} WHY
21
+ %option{value:"Option 7"} XYZ
22
+ %td
23
+ %input.form-control.min-w-spacing-3xl{type:'text', placeholder:"Add min-w to avoid squishing"}
24
+ %td
25
+ %textarea.form-control.min-w-spacing-3xl{rows:'1', placeholder:"Text area with min-w"}
26
+ %td.text-right
27
+ .btn-group.ml-auto
28
+ %button.btn.btn-success.btn-square
29
+ .icon.icon-check
30
+ %button.btn.btn-danger.btn-square
31
+ .icon.icon-cross
@@ -0,0 +1,22 @@
1
+ ---
2
+ tags: tables
3
+ title: Header
4
+ ---
5
+
6
+ %p.mb-heading Table with header
7
+ %table.table.table-bordered.table-striped
8
+ %thead
9
+ %th Table header
10
+ %th Table header
11
+ %th Table header
12
+ %tbody
13
+ %tr
14
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
15
+ %td Cell content
16
+ %td
17
+ %button.btn.btn-primary action
18
+ %tr
19
+ %td Cell content
20
+ %td Cell content Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
21
+ %td
22
+ %button.btn.btn-primary action
@@ -1,23 +1,24 @@
1
1
  ---
2
- tags: components
3
- title: Tables with linked content
2
+ tags: tables
3
+ title: Linked cells and rows
4
4
  ---
5
5
 
6
6
  %p.mb-heading
7
- Individual cells can be linked with JS. Add the class .linked-cell to highlight it on hover.
8
- %br
9
- If you want to highlight a whole row, but still have action buttons, use the class .highlight-parent-row.
10
- %table.table.table-bordered.table-striped
11
- %thead
12
- %th Table header
13
- %th Table header
14
- %th Table header
7
+ %span Individual cells can be linked with Javascript. Add the class
8
+ %code.tag .linked-cell
9
+ %span to highlight it on hover.
10
+ %table.table.table-bordered
15
11
  %tbody
16
12
  %tr
17
13
  %td.linked-cell{onclick: "location.href='https://test.io'"} Linked cell
18
14
  %td.linked-cell{onclick: "location.href='https://test.io'"} Linked cell
19
15
  %td.cell-with-buttons
20
16
  %a.btn.btn-primary{href:"#"} action
17
+ %p.mb-heading
18
+ %span If you want to highlight a whole row, but still have action buttons, use the class
19
+ %code.tag .highlight-parent-row.
20
+ %table.table.table-bordered
21
+ %tbody
21
22
  %tr
22
23
  %td.highlight-parent-row{onclick: "location.href='https://test.io'"} Highlight parent
23
24
  %td.highlight-parent-row{onclick: "location.href='https://test.io'"} Highlight parent
@@ -3,10 +3,18 @@ tags: typography
3
3
  title: Link with icon
4
4
  ---
5
5
 
6
+ %p.mb-heading This component provides a solution for the common usecase to have links with icons.
6
7
  %a.link-with-icon{href:""}
7
8
  .icon.icon-exclamation-circle
8
- All approved testers must complete this course to achieve bronze level and above.
9
+ Link text
9
10
  .pt-xs
10
11
  %a.link-with-icon{href:""}
11
12
  .icon.icon-exclamation-circle
12
- All approved testers will have a one-month transition period to complete it. If they do not pass, even Diamond testers will be downgraded to copper level.
13
+ A longer link text that might wrap onto multiple lines to demonstrate proper alignment of the icon with the text content.
14
+ %p.my-heading As an alternative consider the use of ghost buttons.
15
+ %a.btn.btn-ghost{href:""}
16
+ .icon.icon-exclamation-circle.mr-icon-spacing
17
+ Button
18
+ %a.btn.btn-ghost.btn-sm{href:""}
19
+ .icon.icon-exclamation-circle.mr-icon-spacing
20
+ Button SM
@@ -3,8 +3,14 @@ tags: typography
3
3
  title: Linked icon
4
4
  ---
5
5
 
6
+ %p.mb-heading This component provides a solution for the common usecase to have linked icons.
6
7
  %a.linked-icon{href:""}
7
8
  .icon.icon-exclamation-circle
8
9
  .pt-xs
9
10
  %a.linked-icon{href:""}
10
11
  .icon.icon-exclamation-circle-filled
12
+ %p.my-heading As an alternative consider the use of square ghost buttons. They offer a larger clickable area.
13
+ %a.btn.btn-square.btn-ghost{href:""}
14
+ .icon.icon-exclamation-circle
15
+ %a.btn.btn-square.btn-ghost.btn-sm{href:""}
16
+ .icon.icon-exclamation-circle
@@ -3,6 +3,7 @@ tags: typography
3
3
  title: Section header
4
4
  ---
5
5
 
6
+ %p.mb-heading This component is used to separate different sections of a page with a header and an optional label.
6
7
  %section
7
8
  .section-header
8
9
  %h1.section-title Section header with h1
@@ -3,6 +3,7 @@ tags: typography
3
3
  title: Section header with actions
4
4
  ---
5
5
 
6
+ %p.mb-heading This component is used to separate different sections of a page with a header and action links or icons.
6
7
  %section
7
8
  .section-header
8
9
  %h1.section-title Section with action h1
@@ -3,10 +3,11 @@ tags: typography
3
3
  title: Text with icon
4
4
  ---
5
5
 
6
+ %p.mb-heading This component provides a solution for the common usecase to have text with icons.
6
7
  .text-with-icon
7
8
  .icon.icon-exclamation-circle
8
- All approved testers must complete this course to achieve bronze level and above.
9
+ Example text
9
10
  .pt-xs
10
11
  .text-with-icon
11
12
  .icon.icon-exclamation-circle
12
- All approved testers will have a one-month transition period to complete it. If they do not pass, even Diamond testers will be downgraded to copper level.
13
+ A longer example text that might wrap onto multiple lines to demonstrate proper alignment of the icon with the text content.