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.
- package/AI_DESIGN_SYSTEM_REFERENCE.md +2618 -0
- package/package.json +1 -1
- package/src/_data/navigation.json +4 -0
- package/src/_includes/example-header-centered.njk +53 -0
- package/src/_includes/header.njk +8 -8
- package/src/_includes/page-with-sidebar.njk +10 -1
- package/src/_layouts/page-example-centered.njk +19 -0
- package/src/_layouts/page-example-darkmode.njk +19 -0
- package/src/assets/scripts/app.js +27 -0
- package/src/assets/stylesheets/components/actionbar.css +8 -0
- package/src/assets/stylesheets/components/designsystem/designsystem-styles.css +4 -2
- package/src/assets/stylesheets/components/header.css +22 -0
- package/src/assets/stylesheets/components/tables.css +4 -0
- package/src/pages/buttons/block.haml +1 -0
- package/src/pages/buttons/button_group.haml +1 -0
- package/src/pages/buttons/buttons-lg.haml +1 -0
- package/src/pages/buttons/buttons-round.haml +1 -0
- package/src/pages/buttons/buttons-sm.haml +1 -0
- package/src/pages/buttons/buttons-xl.haml +1 -0
- package/src/pages/buttons/buttons.haml +1 -0
- package/src/pages/buttons/buttons_input.haml +4 -0
- package/src/pages/buttons/dropdown-menu.haml +2 -11
- package/src/pages/buttons/square-buttons.haml +15 -0
- package/src/pages/components/alerts.haml +1 -0
- package/src/pages/components/banner_cards.haml +1 -0
- package/src/pages/components/card_badges.haml +8 -7
- package/src/pages/components/cards.haml +15 -22
- package/src/pages/components/cards_customer.haml +1 -0
- package/src/pages/components/cards_fixedwidth.haml +7 -0
- package/src/pages/components/cards_iconheader.haml +1 -0
- package/src/pages/components/cards_tester.haml +1 -0
- package/src/pages/components/descriptionlist.haml +12 -3
- package/src/pages/components/devices.haml +1 -0
- package/src/pages/components/drawer.haml +1 -0
- package/src/pages/components/drawer_filter.haml +1 -0
- package/src/pages/components/emptystate.haml +2 -0
- package/src/pages/{buttons → components}/info_popover.haml +2 -1
- package/src/pages/components/listitem_with_actionbar.haml +1 -0
- package/src/pages/components/listitem_with_footer.haml +1 -0
- package/src/pages/components/listitems.haml +1 -0
- package/src/pages/components/listitems_badge.haml +1 -0
- package/src/pages/components/listitems_collapsable.haml +1 -0
- package/src/pages/components/listitems_nested.haml +1 -0
- package/src/pages/components/listitems_selectable.haml +1 -0
- package/src/pages/components/loading_spinner.haml +1 -0
- package/src/pages/components/metasidebar.haml +1 -0
- package/src/pages/components/modal_details.haml +3 -1
- package/src/pages/components/notifications.haml +2 -1
- package/src/pages/components/user_item.haml +1 -0
- package/src/pages/forms/attachments.pug +71 -0
- package/src/pages/forms/checkboxes.haml +1 -0
- package/src/pages/forms/checkboxes_devices.haml +1 -0
- package/src/pages/forms/date-time.haml +1 -0
- package/src/pages/forms/dropzone.pug +38 -0
- package/src/pages/forms/flatpickr.haml +1 -1
- package/src/pages/forms/form-addon.haml +1 -0
- package/src/pages/forms/form-card.haml +1 -0
- package/src/pages/forms/form_grid.haml +1 -0
- package/src/pages/forms/form_hint.haml +1 -0
- package/src/pages/forms/forms.haml +1 -0
- package/src/pages/forms/radiobuttons.haml +1 -0
- package/src/pages/forms/rating_scale.haml +1 -0
- package/src/pages/forms/search.haml +1 -0
- package/src/pages/forms/selectable_token.haml +1 -0
- package/src/pages/forms/selectable_token_browsers.haml +1 -0
- package/src/pages/forms/selectable_token_lg.haml +1 -0
- package/src/pages/forms/selectable_token_xl.haml +1 -0
- package/src/pages/forms/textarea.haml +4 -0
- package/src/pages/forms/toggle-buttons.haml +1 -0
- package/src/pages/forms/toggle-switch.haml +1 -0
- package/src/pages/forms/trix_editor.pug +1 -0
- package/src/pages/icons/bug-icons.haml +1 -0
- package/src/pages/icons/index.njk +18 -14
- package/src/pages/icons/status-icons.haml +1 -0
- package/src/pages/layout/app_layout.haml +5 -1
- package/src/pages/layout/centered_layout.haml +26 -0
- package/src/pages/layout/darkmode.haml +9 -0
- package/src/pages/layout/margins.haml +1 -0
- package/src/pages/layout/max_width.haml +2 -1
- package/src/pages/layout/paddings.haml +1 -0
- package/src/pages/layout/spacing.haml +1 -0
- package/src/pages/{examples → layouts}/agenticqa_splitview.haml +1 -1
- package/src/pages/layouts/layout-actionbar.haml +45 -0
- package/src/pages/{examples → layouts}/layout-basic.haml +3 -2
- package/src/pages/layouts/layout-centered.haml +26 -0
- package/src/pages/{examples → layouts}/layout-chat.haml +3 -2
- package/src/pages/{examples → layouts}/layout-customer.haml +3 -2
- package/src/pages/{examples/layout-sidebar-actionbar.haml → layouts/layout-darkmode.haml} +20 -18
- package/src/pages/{examples → layouts}/layout-form-sidebar-actionbar-metasidebar.haml +5 -228
- package/src/pages/{examples/layout-sidebar-actionbar-metasidebar.haml → layouts/layout-full.haml} +3 -2
- package/src/pages/{examples → layouts}/layout-manager.haml +3 -2
- package/src/pages/{examples → layouts}/layout-metasidebar.haml +3 -2
- package/src/pages/{examples → layouts}/layout-sidebar.haml +3 -2
- package/src/pages/{examples → layouts}/layout-tester.haml +3 -2
- package/src/pages/{examples → layouts}/splitview-metasidebar.haml +3 -3
- package/src/pages/{examples → layouts}/splitview-testcases.haml +2 -2
- package/src/pages/{examples → layouts}/splitview.haml +3 -3
- package/src/pages/navigation/header-centered.haml +77 -0
- package/src/pages/navigation/header-manager.haml +1 -0
- package/src/pages/navigation/header-tester.haml +1 -0
- package/src/pages/navigation/header.haml +1 -0
- package/src/pages/navigation/header_customer.haml +1 -0
- package/src/pages/navigation/header_tester_epam.haml +1 -0
- package/src/pages/navigation/product_dropdown.haml +2 -0
- package/src/pages/navigation/radio_tabs.haml +1 -0
- package/src/pages/navigation/sidebar-manager.haml +2 -1
- package/src/pages/navigation/sidebar-tester-elements.haml +1 -0
- package/src/pages/navigation/sidebar-tester-seatlimitation.haml +1 -1
- package/src/pages/navigation/sidebar-tester.haml +1 -1
- package/src/pages/navigation/sidebar.haml +1 -0
- package/src/pages/navigation/sidebar_collapsables.haml +1 -0
- package/src/pages/navigation/sidebar_customer.haml +1 -0
- package/src/pages/navigation/tabnavigation.haml +1 -0
- package/src/pages/navigation/tabnavigation_actions.haml +1 -0
- package/src/pages/navigation/tabnavigation_pills.haml +1 -0
- package/src/pages/navigation/tabnavigation_sm.haml +1 -0
- package/src/pages/navigation/test-header-tester.haml +2 -0
- package/src/pages/tables/index.njk +7 -0
- package/src/pages/tables/tables-cellstyle.haml +38 -0
- package/src/pages/tables/tables-grid.haml +31 -0
- package/src/pages/tables/tables.haml +16 -0
- package/src/pages/tables/tables_alternating.haml +27 -0
- package/src/pages/tables/tables_borders.haml +22 -0
- package/src/pages/tables/tables_cells.haml +50 -0
- package/src/pages/tables/tables_footer.haml +27 -0
- package/src/pages/tables/tables_formrow.haml +31 -0
- package/src/pages/tables/tables_header.haml +22 -0
- package/src/pages/{components → tables}/tables_linked.haml +11 -10
- package/src/pages/typography/link_with_icon.haml +10 -2
- package/src/pages/typography/linked_icon.haml +6 -0
- package/src/pages/typography/section_header.haml +1 -0
- package/src/pages/typography/section_header_actions.haml +1 -0
- package/src/pages/typography/text_with_icon.haml +3 -2
- package/utils/filters.js +161 -0
- package/CLAUDE_DESIGN_SYSTEM_REFERENCE.md +0 -1978
- package/src/pages/buttons/link-with-icon.haml +0 -13
- package/src/pages/components/tables-cellstyle.pug +0 -285
- package/src/pages/components/tables-grid.pug +0 -258
- package/src/pages/components/tables.haml +0 -57
- package/src/pages/components/tables_cells.pug +0 -57
- package/src/pages/components/tables_formrow.haml +0 -55
- package/src/pages/examples/layout-actionbar.haml +0 -268
- 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: 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 -
|
|
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
|
|
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
|
|
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
|
|
@@ -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:
|
|
3
|
-
title:
|
|
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
|
|
8
|
-
%
|
|
9
|
-
|
|
10
|
-
%table.table.table-bordered
|
|
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
|
-
|
|
9
|
+
Link text
|
|
9
10
|
.pt-xs
|
|
10
11
|
%a.link-with-icon{href:""}
|
|
11
12
|
.icon.icon-exclamation-circle
|
|
12
|
-
|
|
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,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
|
-
|
|
9
|
+
Example text
|
|
9
10
|
.pt-xs
|
|
10
11
|
.text-with-icon
|
|
11
12
|
.icon.icon-exclamation-circle
|
|
12
|
-
|
|
13
|
+
A longer example text that might wrap onto multiple lines to demonstrate proper alignment of the icon with the text content.
|