testio-tailwind 3.20.5 → 3.22.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 +2407 -0
- package/package.json +2 -1
- package/src/_data/navigation.json +4 -0
- package/src/_includes/header.njk +8 -8
- package/src/_includes/page-with-sidebar.njk +10 -1
- package/src/assets/scripts/app.js +43 -0
- package/src/assets/stylesheets/app.css +2 -0
- package/src/assets/stylesheets/components/designsystem/designsystem-styles.css +4 -2
- package/src/assets/stylesheets/components/forms.css +19 -11
- package/src/assets/stylesheets/components/tables.css +4 -0
- package/src/assets/stylesheets/plugin_themes/flatpickr.css +86 -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 +24 -0
- package/src/pages/forms/dropzone.pug +38 -0
- package/src/pages/forms/flatpickr.haml +27 -0
- 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 +2 -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/{examples → layouts}/layout-chat.haml +3 -2
- package/src/pages/{examples/layout-sidebar-actionbar-metasidebar.haml → layouts/layout-chatwindow.haml} +3 -2
- package/src/pages/{examples → layouts}/layout-customer.haml +3 -2
- package/src/pages/{examples → layouts}/layout-form-sidebar-actionbar-metasidebar.haml +5 -228
- 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-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/examples/layout-sidebar-actionbar.haml +0 -308
- package/src/pages/forms/uploads.pug +0 -101
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
tags:
|
|
2
|
+
tags: components
|
|
3
3
|
title: Info popover
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Info popovers are used to display additional information related to an element. They can contain titles, content, icons, and actions.
|
|
6
7
|
.flex.justify-between
|
|
7
8
|
.popover-menu.info
|
|
8
9
|
.popover-title Popover title
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: List-item with actionbar
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading List items with action bars are used to provide a set of actions that can be performed on the list item. The action bar typically appears when the user hovers over or selects the list item, allowing for quick access to relevant actions.
|
|
6
7
|
.list-listitems
|
|
7
8
|
.listitem-with-footer
|
|
8
9
|
%details.listitem
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: List-item with footer
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading List items with footers are used to provide additional actions or information related to the list item. The footer typically contains buttons or links for actions that can be performed on the item.
|
|
6
7
|
.list-listitems
|
|
7
8
|
.listitem-with-footer
|
|
8
9
|
%details.listitem
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: List item badges
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading List item badges are used to highlight or indicate specific statuses or counts associated with list items. They can be styled differently to convey various meanings, such as success, danger, or informational states.
|
|
6
7
|
.list-listitems
|
|
7
8
|
.listitem
|
|
8
9
|
.listitem-badge
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: List item collapsable
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading List items can be made collapsable using the HTML5 details tag. This allows users to expand and collapse additional content related to the list item as needed.
|
|
6
7
|
.list-listitems
|
|
7
8
|
%details.listitem
|
|
8
9
|
%summary.listitem-header
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: List items nested
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading List items can contain nested list items, allowing for hierarchical organization of information. This is useful for displaying related data in a structured manner.
|
|
6
7
|
.list-listitems
|
|
7
8
|
%details.listitem
|
|
8
9
|
%summary.listitem-header
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: Loading spinner
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Loading spinners are used to indicate that a process is ongoing. They can be customized in size and color to fit different design needs.
|
|
6
7
|
.testio-loader-wrapper
|
|
7
8
|
%svg.testio-loader-i{viewbox: "0 0 50 50"}
|
|
8
9
|
%line.anim-bar.stroke{x1: "4px", x2: "4px", y1: "5px", y2: "45px"}
|
|
@@ -3,6 +3,7 @@ tags: components
|
|
|
3
3
|
title: Metasidebar
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Metasidebars are used to display additional contextual information alongside the main content. They can be expanded or collapsed by the user.
|
|
6
7
|
%aside.metasidebar
|
|
7
8
|
%details.metasidebar-wrapper{open:"true"}
|
|
8
9
|
%summary.metasidebar-btn
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
tags: components
|
|
3
|
-
title: Modal
|
|
3
|
+
title: Modal
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading
|
|
7
|
+
Modals are used to display content in a layer above the main content. They can be opened and closed by the user, typically by clicking a button or link. They are an alternative to drawers.
|
|
6
8
|
%p.mb-heading
|
|
7
9
|
Add the class
|
|
8
10
|
%code.bg-gray-lighter.rounded.mx-xxs .modal-close-btn
|
|
@@ -3,7 +3,8 @@ tags: components
|
|
|
3
3
|
title: Notifications
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
%p.mb-heading
|
|
6
|
+
%p.mb-heading Notifications are used to inform users about important information or updates. They can replace alerts.
|
|
7
|
+
%p.mb-heading Remove the classes <code>relative z-0 top-0</code> in production
|
|
7
8
|
|
|
8
9
|
.notification-container.relative.top-0.z-0
|
|
9
10
|
%a.notification{href:""}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: forms
|
|
3
|
+
title: Attachments
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
p.mb-heading Attachments components are used to display files that have been uploaded or are available for download. They can include thumbnails, file names, and action buttons such as remove.
|
|
7
|
+
.attachments
|
|
8
|
+
.attachment
|
|
9
|
+
a.attachment-thumb(href="/assets/images/placeholders/bugdetails.png")
|
|
10
|
+
img(src='/assets/images/placeholders/bugdetails.png', alt='Bug details')
|
|
11
|
+
a.attachment-name(href="/assets/images/placeholders/bugdetails.png") myfile-name.png
|
|
12
|
+
.attachment
|
|
13
|
+
a.attachment-thumb(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png")
|
|
14
|
+
img(src='/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png', alt='Bug details')
|
|
15
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") myfile-name-kjashdflkajsdflkjadsflkjhadsf.png
|
|
16
|
+
button.btn.btn-danger.attachment-btn
|
|
17
|
+
span.icon.text-icon-default.icon-remove
|
|
18
|
+
.attachment
|
|
19
|
+
a.attachment-thumb(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png")
|
|
20
|
+
span.attachment-icon.icon-xl.icon-review-xl
|
|
21
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") myfile-name-kjashdflkajsdflkjadsflkjhadsf.png
|
|
22
|
+
button.btn.btn-danger.attachment-btn
|
|
23
|
+
span.icon.text-icon-default.icon-remove
|
|
24
|
+
p.my-heading Attachments can be selectable, allowing users to choose one or more files.
|
|
25
|
+
.attachments
|
|
26
|
+
input(type='hidden', name='document[context_attributes][external_attachments_attachment_ids][]', value='', autocomplete='off')
|
|
27
|
+
.attachment.selectable
|
|
28
|
+
input#checkable-attachment1(data-checkboxes-target='checkbox', type='checkbox', value='89')
|
|
29
|
+
label(for="checkable-attachment1")
|
|
30
|
+
img.attachment-thumb(src='/assets/images/placeholders/bugdetails.png', alt='Bug details')
|
|
31
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") 1.png
|
|
32
|
+
.attachment.selectable
|
|
33
|
+
input#checkable-attachment2(data-checkboxes-target='checkbox', type='checkbox', value='89', checked='checked')
|
|
34
|
+
label(for="checkable-attachment2")
|
|
35
|
+
img.attachment-thumb(src='/assets/images/placeholders/bugdetails.png', alt='Bug details')
|
|
36
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") 1.png
|
|
37
|
+
.attachment.selectable
|
|
38
|
+
input#checkable-attachment3(data-checkboxes-target='checkbox', type='checkbox', value='89')
|
|
39
|
+
label(for="checkable-attachment3")
|
|
40
|
+
.attachment-thumb
|
|
41
|
+
span.attachment-icon.icon-xl.icon-review-xl
|
|
42
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") another-file-type.docx
|
|
43
|
+
.attachment.selectable
|
|
44
|
+
input#checkable-attachment4(data-checkboxes-target='checkbox', type='checkbox', value='89', checked='checked')
|
|
45
|
+
label(for="checkable-attachment4")
|
|
46
|
+
.attachment-thumb
|
|
47
|
+
span.attachment-icon.icon-xl.icon-review-xl
|
|
48
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") another-file-type.docx
|
|
49
|
+
|
|
50
|
+
.bg-black.p-md.mt-3
|
|
51
|
+
.attachments
|
|
52
|
+
.attachment.inverted
|
|
53
|
+
a.attachment-thumb(href="/assets/images/placeholders/bugdetails.png")
|
|
54
|
+
img(src='/assets/images/placeholders/bugdetails.png', alt='Bug details')
|
|
55
|
+
a.attachment-name(href="/assets/images/placeholders/bugdetails.png") myfile-name.png
|
|
56
|
+
button.btn.btn-danger.attachment-btn
|
|
57
|
+
span.icon.text-icon-default.icon-remove
|
|
58
|
+
|
|
59
|
+
.attachment.inverted
|
|
60
|
+
a.attachment-thumb(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png")
|
|
61
|
+
img(src='/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png', alt='Bug details')
|
|
62
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") myfile-name-kjashdflkajsdflkjadsflkjhadsf.png
|
|
63
|
+
button.btn.btn-danger.attachment-btn
|
|
64
|
+
span.icon.text-icon-default.icon-remove
|
|
65
|
+
|
|
66
|
+
.attachment.inverted
|
|
67
|
+
a.attachment-thumb(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png")
|
|
68
|
+
span.attachment-icon.icon-xl.icon-review-xl
|
|
69
|
+
a.attachment-name(href="/assets/images/placeholders/CustomerUI-Mobile-Sidebar.png") myfile-name-kjashdflkajsdflkjadsflkjhadsf.png
|
|
70
|
+
button.btn.btn-danger.attachment-btn
|
|
71
|
+
span.icon.text-icon-default.icon-remove
|
|
@@ -3,6 +3,7 @@ tags: forms
|
|
|
3
3
|
title: Checkboxes
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Checkboxes allow users to select one or more options from a set. They are commonly used in forms for multiple selections. We offer 2 sizes: default and small (SM).
|
|
6
7
|
.form-grid.single.narrow.mb-3
|
|
7
8
|
.form-check
|
|
8
9
|
%input#check1{type:"checkbox", checked:"true"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: "forms"
|
|
3
|
+
title: Date and time inputs
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
%p.mb-heading Date and time inputs allow users to select dates and times using native browser controls.
|
|
7
|
+
.form-grid
|
|
8
|
+
.form-group
|
|
9
|
+
%label.form-label Native date input
|
|
10
|
+
.form-date
|
|
11
|
+
%input.form-control{type:"date", min:"1920-01-01", max:"2026-01-01", placeholder:"Enter your birthday"}
|
|
12
|
+
.form-group
|
|
13
|
+
%label.form-label Native datetime-local input
|
|
14
|
+
.form-date
|
|
15
|
+
%input.form-control{type:"datetime-local"}
|
|
16
|
+
.form-grid.bg-black.p-3.mt-md
|
|
17
|
+
.form-group.inverted
|
|
18
|
+
%label.form-label Native date input
|
|
19
|
+
.form-date
|
|
20
|
+
%input.form-control{type:"date", min:"1920-01-01", max:"2026-01-01", placeholder:"Enter your birthday"}
|
|
21
|
+
.form-group.inverted
|
|
22
|
+
%label.form-label Native datetime-local input
|
|
23
|
+
.form-date
|
|
24
|
+
%input.form-control{type:"datetime-local"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: forms
|
|
3
|
+
title: Dropzone
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
.mb-heading
|
|
7
|
+
p.mb-xs This component uses <a href="https://www.dropzone.dev/">Dropzone.JS</a> for uploading files. You are viewing dropzone with the following configuration:
|
|
8
|
+
code
|
|
9
|
+
| let dropzone = new Dropzone("#file-upload", {
|
|
10
|
+
br
|
|
11
|
+
| addRemoveLinks: true,
|
|
12
|
+
| uploadMultiple: true,
|
|
13
|
+
| autoQueue: false,
|
|
14
|
+
| dictCancelUpload: "",
|
|
15
|
+
| dictRemoveFile: ""
|
|
16
|
+
br
|
|
17
|
+
| });
|
|
18
|
+
|
|
19
|
+
.form-grid-single
|
|
20
|
+
form.dropzone(action="/file-upload" class="dropzone" id="my-awesome-dropzone")
|
|
21
|
+
.dz-default.dz-message
|
|
22
|
+
p.dropzone-msg-title Click to upload a file or drag and drop
|
|
23
|
+
p.dropzone-msg-desc Files up to 10MB
|
|
24
|
+
p.mt-3 Form errors example
|
|
25
|
+
.form-grid-single
|
|
26
|
+
form.dropzone.field_with_errors(action="/file-upload" class="dropzone" id="my-awesome-dropzone")
|
|
27
|
+
.dz-default.dz-message
|
|
28
|
+
p.dropzone-msg-title Click to upload a file or drag and drop
|
|
29
|
+
p.dropzone-msg-desc Files up to 10MB
|
|
30
|
+
.form-hint.error
|
|
31
|
+
You made a mistake, which is why you see this form validation error message with some helpful 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.
|
|
32
|
+
.bg-black.p-md.mt-3
|
|
33
|
+
.form-grid-single
|
|
34
|
+
form.dropzone.inverted(action="/file-upload" class="dropzone" id="my-awesome-dropzone-inverted")
|
|
35
|
+
.dz-default.dz-message
|
|
36
|
+
p.dropzone-msg-title Click to upload a file or drag and drop
|
|
37
|
+
p.dropzone-msg-desc Files up to 10MB
|
|
38
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
tags: "forms"
|
|
3
|
+
title: Date and time with Flatpickr
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
%p.mb-xs
|
|
7
|
+
This example uses
|
|
8
|
+
%a{href:"https://flatpickr.js.org/"} Flatpickr
|
|
9
|
+
%span as a date and date-time picker replacement giving more control and consistency.
|
|
10
|
+
.form-grid
|
|
11
|
+
.form-group
|
|
12
|
+
%label.form-label Native date input
|
|
13
|
+
.form-date
|
|
14
|
+
%input.form-control.flatpickr{type:"date", placeholder:"Enter your birthday"}
|
|
15
|
+
.form-group
|
|
16
|
+
%label.form-label Native datetime-local input
|
|
17
|
+
.form-date
|
|
18
|
+
%input.form-control.flatpickr-time{type:"datetime-local", placeholder:"Enter your local date time"}
|
|
19
|
+
.form-grid.bg-black.p-3.mt-md
|
|
20
|
+
.form-group.inverted
|
|
21
|
+
%label.form-label Native date input
|
|
22
|
+
.form-date
|
|
23
|
+
%input.form-control.flatpickr{type:"date", placeholder:"Enter your birthday"}
|
|
24
|
+
.form-group.inverted
|
|
25
|
+
%label.form-label Native datetime-local input
|
|
26
|
+
.form-date
|
|
27
|
+
%input.form-control.flatpickr-time{type:"datetime-local", placeholder:"Enter your local date time"}
|
|
@@ -3,6 +3,7 @@ tags: forms
|
|
|
3
3
|
title: Radiobuttons
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Radiobuttons allow users to select one option from a set. They are commonly used in forms for single selections. We offer 2 sizes: default and small (SM).
|
|
6
7
|
.form-grid.single.narrow.mb-3
|
|
7
8
|
.form-radio
|
|
8
9
|
%input#radio1{type:'radio', checked:'true', name:'radio-group', value:'1'}
|
|
@@ -3,6 +3,7 @@ tags: forms
|
|
|
3
3
|
title: Selectable token
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Selectable token components are used to make a selection from a set of options, often used in filters or multi-select scenarios.
|
|
6
7
|
%ul.list-inline.flex.mb-3
|
|
7
8
|
%li.selectable-token
|
|
8
9
|
%input#selectabletoken1{type:"checkbox", checked:"true"}
|
|
@@ -3,6 +3,7 @@ tags: forms
|
|
|
3
3
|
title: Selectable token LG
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Large selectable tokens allow users to select options in a visually engaging way, often used for categories.
|
|
6
7
|
%ul.list-inline.flex.mb-3
|
|
7
8
|
%li.selectable-token.lg
|
|
8
9
|
%input#selectabletokenlg1{type:"checkbox", checked:"true"}
|
|
@@ -3,6 +3,7 @@ tags: forms
|
|
|
3
3
|
title: Selectable token XL
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Selectable token XL components are used to make a selection from a set of options, often used in filters or multi-select scenarios. They the most prominent selection component available.
|
|
6
7
|
%ul.list-inline.flex.mb-3
|
|
7
8
|
%li.selectable-token.xl
|
|
8
9
|
%input#selectabletokenxl1{type:"checkbox", checked:"true"}
|
|
@@ -3,6 +3,10 @@ tags: forms
|
|
|
3
3
|
title: Textarea
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading
|
|
7
|
+
Textareas are multi-line input fields that allow users to enter longer pieces of text. These examples use the
|
|
8
|
+
%code.tag autosize
|
|
9
|
+
%span library to automatically adjust the height of the textarea based on its content.
|
|
6
10
|
.form-grid.mb-heading
|
|
7
11
|
.form-group
|
|
8
12
|
%label.form-label Textarea
|
|
@@ -3,6 +3,7 @@ tags: forms
|
|
|
3
3
|
title: Toggle buttons
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading Toggle button groups allow users to select one option from a set of mutually exclusive options, styled as buttons.
|
|
6
7
|
.toggle-btn-group.mb-1
|
|
7
8
|
.selectable-token
|
|
8
9
|
%input#radiotoggle1{type:'radio', checked:'', name:'radio-togglegroup1', value:'1'}
|
|
@@ -3,6 +3,7 @@ tags: "forms"
|
|
|
3
3
|
title: Trix Editor
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
p.mb-heading Trix editor is a rich text editor for everyday writing. It allows users to format text and include code snippets in a user-friendly way.
|
|
6
7
|
.form-grid
|
|
7
8
|
.form-group.trix-editor
|
|
8
9
|
label.form-label(for='space_branding_full_description') Trix editor
|
|
@@ -53,20 +53,23 @@ fetchIcons(app)
|
|
|
53
53
|
<h4 class="section-title">Icon classes</h4>
|
|
54
54
|
</div>
|
|
55
55
|
<div class="grid gap-5 grid-cols-3">
|
|
56
|
-
<
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
<div>
|
|
57
|
+
<p class="mb-2">Here are the available icon classes which control the height of the icons.</p>
|
|
58
|
+
<dl class="list-inline">
|
|
59
|
+
<dd><span class="icon-xxs icon-check-circle-filled"></span></dd>
|
|
60
|
+
<dt>.icon-xxs</dt>
|
|
61
|
+
<dd><span class="icon-xs icon-check-circle-filled"></span></dd>
|
|
62
|
+
<dt>.icon-xs</dt>
|
|
63
|
+
<dd><span class="icon-sm icon-check-circle-filled"></span></dd>
|
|
64
|
+
<dt>.icon-sm</dt>
|
|
65
|
+
<dd><span class="icon icon-check-circle-filled"></span></dd>
|
|
66
|
+
<dt>.icon</dt>
|
|
67
|
+
<dd><span class="icon-lg icon-check-circle-filled"></span></dd>
|
|
68
|
+
<dt>.icon-lg</dt>
|
|
69
|
+
<dd><span class="icon-xl icon-check-circle-filled"></span></dd>
|
|
70
|
+
<dt>.icon-xl</dt>
|
|
71
|
+
</dl>
|
|
72
|
+
</div>
|
|
70
73
|
<div>
|
|
71
74
|
<p class="mb-2">Some icons have additional versions which you can use with the suffix <code class="bg-gray-lighter">-lg</code> and <code class="bg-gray-lighter">-xl</code></p>
|
|
72
75
|
<dl class="list-inline">
|
|
@@ -100,6 +103,7 @@ fetchIcons(app)
|
|
|
100
103
|
<div class="section-header">
|
|
101
104
|
<h4 class="section-title">Icon list</h4>
|
|
102
105
|
</div>
|
|
106
|
+
<p class="mb-heading">Here's a list of all available icons contained in our iconfont.</p>
|
|
103
107
|
<div class="grid grid-cols-3 gap-2 place-items-start pb-10" id="iconList"></div>
|
|
104
108
|
</section>
|
|
105
109
|
|
|
@@ -3,6 +3,7 @@ tags: layout
|
|
|
3
3
|
title: App layout structure
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading This is the basic structure of an application layout, including header, sidebar, main content area, metasidebar, and action bar.
|
|
6
7
|
.grid.gap-1px.p-xs.bg-card.rounded
|
|
7
8
|
%p.mb-heading .app-body
|
|
8
9
|
.p-xs.pl-md.bg-petrol-dark.text-white.rounded-t .header
|
|
@@ -16,6 +17,7 @@ title: App layout structure
|
|
|
16
17
|
.bg-petrol.text-white.p-xs.pl-md.rounded-br footer.actionbar
|
|
17
18
|
|
|
18
19
|
%h5.mt-md HTML structure
|
|
20
|
+
%p.mb-heading The following code snippet illustrates the HTML structure of the app layout components:
|
|
19
21
|
%code
|
|
20
22
|
<body class="app-body">
|
|
21
23
|
%br
|
|
@@ -3,9 +3,10 @@ tags: layout
|
|
|
3
3
|
title: Max-width capped
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading This page demonstrates the use of the .max-w-capped class to limit the maximum width of various elements for improved readability.
|
|
6
7
|
.card.bg-card.p-sm.max-w-capped.mb-spacing
|
|
7
8
|
%p Card with the class .max-width-capped. The card width will be capped to ensure readability.
|
|
8
|
-
%p.mb-sm.max-w-capped
|
|
9
|
+
%p.mb-sm.max-w-capped 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. 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.
|
|
9
10
|
.form-grid.mb-sm.max-w-capped
|
|
10
11
|
.form-group
|
|
11
12
|
%label.form-label Input
|
|
@@ -3,6 +3,7 @@ tags: layout
|
|
|
3
3
|
title: Paddings
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
%p.mb-heading To provide more consistent padding throughout the application we have a range of custom spacing classes. In addition you can use everything TailWindCSS offers.
|
|
6
7
|
%dl.list-inline
|
|
7
8
|
%dd xxs
|
|
8
9
|
%dt.flex.flex-row.items-start.bg-card
|