@marianmeres/stuic 3.64.0 → 3.65.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.
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--stuic-onboarding-content-size: var(--text-sm);
|
|
10
10
|
--stuic-onboarding-footer-gap: calc(var(--spacing) * 3);
|
|
11
11
|
--stuic-onboarding-steps-size: var(--text-xs);
|
|
12
|
-
--stuic-onboarding-btn-font-size: var(--text-
|
|
12
|
+
--stuic-onboarding-btn-font-size: var(--text-sm);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.stuic-onboarding-shell {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
value?: string | number;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
onSelect?: (item: TabbedMenuItem) => void;
|
|
22
|
+
orientation?: "horizontal" | "vertical";
|
|
22
23
|
//
|
|
23
24
|
class?: string;
|
|
24
25
|
classItem?: string;
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
value = $bindable(),
|
|
40
41
|
disabled,
|
|
41
42
|
onSelect,
|
|
43
|
+
orientation = "horizontal",
|
|
42
44
|
//
|
|
43
45
|
class: classProp,
|
|
44
46
|
classItem,
|
|
@@ -114,6 +116,8 @@
|
|
|
114
116
|
bind:this={el}
|
|
115
117
|
class={twMerge(!unstyled && "stuic-tabbed-menu", classProp)}
|
|
116
118
|
role="tablist"
|
|
119
|
+
aria-orientation={orientation}
|
|
120
|
+
data-orientation={orientation}
|
|
117
121
|
{...rest}
|
|
118
122
|
>
|
|
119
123
|
{#each items as item (item.id)}
|
|
@@ -14,6 +14,7 @@ export interface Props extends Omit<HTMLAttributes<HTMLUListElement>, "children"
|
|
|
14
14
|
value?: string | number;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
onSelect?: (item: TabbedMenuItem) => void;
|
|
17
|
+
orientation?: "horizontal" | "vertical";
|
|
17
18
|
class?: string;
|
|
18
19
|
classItem?: string;
|
|
19
20
|
classButton?: string;
|
|
@@ -86,4 +86,29 @@
|
|
|
86
86
|
outline: 2px solid var(--stuic-color-ring);
|
|
87
87
|
outline-offset: 2px;
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
/* ============================================================================
|
|
91
|
+
VERTICAL ORIENTATION
|
|
92
|
+
============================================================================ */
|
|
93
|
+
|
|
94
|
+
.stuic-tabbed-menu[data-orientation="vertical"] {
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.stuic-tabbed-menu[data-orientation="vertical"] .stuic-tabbed-menu-item {
|
|
99
|
+
max-width: none;
|
|
100
|
+
flex: none;
|
|
101
|
+
width: var(--stuic-tabbed-menu-item-max-width);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.stuic-tabbed-menu[data-orientation="vertical"] .stuic-tabbed-menu-tab {
|
|
105
|
+
border-radius: var(--stuic-tabbed-menu-radius, var(--stuic-radius)) 0 0 var(--stuic-tabbed-menu-radius, var(--stuic-radius));
|
|
106
|
+
border: 1px solid var(--stuic-tabbed-menu-border);
|
|
107
|
+
border-right: 0;
|
|
108
|
+
text-align: left;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.stuic-tabbed-menu[data-orientation="vertical"] .stuic-tabbed-menu-tab[aria-selected="true"] {
|
|
112
|
+
border-color: var(--stuic-tabbed-menu-border-active);
|
|
113
|
+
}
|
|
89
114
|
}
|