Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<div class="flex items-center w-full h-full absolute pl-10">
<button class="lui-button lui-button--size-default lui-button--core--primary w-fit w-fit" data-controller="lui--button" onclick="toggleDrawerBar()">
<span class="lui-button__text" data-lui--button-target="text">
Toggle Drawer
</span>
</button>
</div>
<turbo-frame class="lui-show-layout__drawer_wrapper" id="lui-main-layout-drawer_bar" data-controller="drawer-bar">
<div
class="lui-drawer_bar lui-drawer_bar--open"
data-drawer-bar-target="component"
>
<div class="lui-drawer_bar__close_button" data-drawer-bar-target="closeButton" >
<button class="lui-button lui-button--neutral--secondary lui-button--size-tiny w-fit w-fit" data-controller="lui--button" data-action="click->drawer-bar#handleCloseButtonClick">
<i class="lui-button__icon lui-button__icon--tiny fa-regular fa-close" data-lui--button-target="leadingIcon"></i>
</button>
</div>
<div class="lui-drawer_bar__drawer" data-drawer-bar-target="drawer" data-close-on-outside-click="true">
<div class="lui-drawer_bar__drawer__top">
<div class="px-4 pb-4">
<div class="lui-title_description lui-title_description--normal">
<span class="lui-title_description__title">
My title #1
</span>
<span class="lui-title_description__description">
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
</span></div>
</div>
<div class="flex justify-between border-b border-t border-solid border-gray-300 py-[16px] px-[24px]">
<div class="lui-title_description lui-title_description--small">
<span class="lui-title_description__title">
This is a title
</span>
<span class="lui-title_description__description">
This is a description
</span></div>
Some content
</div>
</div>
<div class="lui-drawer_bar__drawer__body">
<div class="lui-tabs_layout" data-controller="tabs" data-tabs-keep-tab-in-url-value="false">
<div class="lui-tabs_layout__tab_list" data-tabs-target="tabList" data-controller="lui--blurred-scroll">
<span data-action="click->tabs#changeTab" data-tabs-target="tab" data-tab-id="0" data-tab-title="Tab 1" class="lui-tabs_layout__tab_entry text-general-global-black lui-tabs_layout__tab_entry--active">
<i class="fa-regular fa-smile"></i>
Tab 1
</span> <span data-action="click->tabs#changeTab" data-tabs-target="tab" data-tab-id="1" data-tab-title="Tab 2" class="lui-tabs_layout__tab_entry text-general-global-black false">
<i class="fa-regular fa-smile"></i>
Tab 2
</span> <span data-action="click->tabs#changeTab" data-tabs-target="tab" data-tab-id="2" data-tab-title="Tab 3" class="lui-tabs_layout__tab_entry text-general-global-black false">
<i class="fa-regular fa-smile"></i>
Tab 3
</span> </div>
<div class="lui-tabs_layout__main">
<turbo-frame class="lui-tabs_layout__tab" data-tabs-target="panel" data-tab-id="0" hidden="hidden" id="lui-tab-Tab 1">
Some content
</turbo-frame>
<turbo-frame class="lui-tabs_layout__tab" data-tabs-target="panel" data-tab-id="1" hidden="hidden" id="lui-tab-Tab 2">
Some other content
</turbo-frame>
<turbo-frame class="lui-tabs_layout__tab" data-tabs-target="panel" data-tab-id="2" hidden="hidden" id="lui-tab-Tab 3">
Last tab
</turbo-frame>
</div>
</div>
</div>
</div>
</div>
</turbo-frame>
<script>
const drawerBar = document.getElementById("lui-main-layout-drawer_bar");
function toggleDrawerBar() {
drawerBar.dispatchEvent(new CustomEvent("toggle"));
}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<div class="flex items-center w-full h-full absolute pl-10">
<%= render LooposUi::Button.new(text: "Toggle Drawer", tag_options: { onclick: "toggleDrawerBar()" })%>
</div>
<turbo-frame class="lui-show-layout__drawer_wrapper" id="lui-main-layout-drawer_bar" data-controller="drawer-bar">
<%= render LooposUi::DrawerBar.new(
default_open: true,
close_on_outside_click: params[:close_on_outside_click]
) do |db| %>
<% db.with_header do %>
<div class="px-4 pb-4">
<%= render LooposUi::TitleDescription.new(
title: "My title #1",
description: "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout."
)%>
</div>
<% end %>
<% db.with_header do %>
<%= render LooposUi::DrawerBar::ContentSection.new(
title: "This is a title",
description: "This is a description"
) do %>
Some content
<% end %>
<% end %>
<%= render LooposUi::TabsLayout.new(keep_tab_in_url: false) do |layout| %>
<% layout.with_tab(title: "Tab 1", icon: :smile) do %>
Some content
<% end %>
<% layout.with_tab(title: "Tab 2", icon: :smile) do %>
Some other content
<% end %>
<% layout.with_tab(title: "Tab 3", icon: :smile) do %>
Last tab
<% end %>
<% end %>
<% end %>
</turbo-frame>
<script>
const drawerBar = document.getElementById("lui-main-layout-drawer_bar");
function toggleDrawerBar() {
drawerBar.dispatchEvent(new CustomEvent("toggle"));
}
</script>
Param Description Input