Skip to content

Commit ce226bc

Browse files
author
hoangdevnull
committed
0.0.8
1 parent 09acfd1 commit ce226bc

9 files changed

Lines changed: 44 additions & 9 deletions

File tree

apps/web/src/stories/layout.stories.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,28 @@ const links = [
197197
icon: <UsersPlusIcon className="h-5 w-5" />,
198198
label: 'Recruitment Management',
199199
value: 'Recruitment Management',
200-
href: '/',
200+
dropdowns: [
201+
{
202+
label: 'Work from home',
203+
value: 'Work from home',
204+
href: '/',
205+
},
206+
{
207+
label: 'Day off',
208+
value: 'Day off',
209+
href: '/',
210+
},
211+
{
212+
label: 'CI/CO',
213+
value: 'CI/CO',
214+
href: '/',
215+
},
216+
{
217+
label: 'Overtime',
218+
value: 'Overtime',
219+
href: '/',
220+
},
221+
],
201222
},
202223
{
203224
icon: <GraduationHat01Icon className="h-5 w-5" />,

apps/web/src/stories/select.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const meta: Meta = {
3333
description: 'The open state of the menu.',
3434
control: { type: 'boolean' },
3535
},
36+
disabled: {
37+
control: { type: 'boolean' },
38+
},
3639
},
3740
args: {
3841
withScrollAction: true,

packages/icons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@var-meta/icons",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"sideEffects": [
55
"*.svg"
66
],

packages/theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@var-meta/theme",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@var-meta/ui",
33
"license": "MIT",
4-
"version": "0.0.7",
4+
"version": "0.0.8",
55
"sideEffects": [
66
"**/*.css"
77
],

packages/ui/src/components/layout/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { SidebarProvider as BaseSidebarProvider } from './sidebar.context';
77

88
export interface LayoutProps extends VisibleState {
99
expandOnHover?: boolean;
10+
/**
11+
* Width of the sidebar
12+
* @default 272
13+
*/
1014
sidebarWidth?: number;
1115
active?: string;
1216
defaultActive?: string;

packages/ui/src/components/navigation/navigation-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const NavigationDropdown = forwardRef<ElementRef<'div'>, NavigationDropdownProps
7777
{...etc}
7878
>
7979
{collapsedIcon ?? (
80-
<ChevronRightIcon className="h-5 w-5 transition-transform duration-300 group-aria-expanded/nav-item:rotate-90" />
80+
<ChevronRightIcon className="h-5 w-5 min-w-5 transition-transform duration-300 group-aria-expanded/nav-item:rotate-90" />
8181
)}
8282
</NavigationItem>
8383
</CollapsibleTrigger>

packages/ui/src/components/navigation/navigation-item.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,17 @@ const NavigationItem = forwardRef<ElementRef<'div'>, NavigationItemProps>(
8686
<div className="aspect-square min-w-5">{icon}</div>
8787
) : (
8888
<>
89-
<div className="flex flex-1 items-center gap-3">
89+
<div
90+
className={cn('flex flex-1 items-center gap-3', {
91+
'w-[calc(100%-28px)]': !!children,
92+
})}
93+
>
9094
{icon}
91-
<div className="flex-1 whitespace-nowrap">{label}</div>
95+
<div className="flex-1 truncate whitespace-nowrap" title={String(label)}>
96+
{label}
97+
</div>
9298
</div>
93-
<div className="ml-2">{children}</div>
99+
{children && <>{children}</>}
94100
</>
95101
)}
96102

packages/ui/src/components/select/core-select.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ const SelectValue = React.forwardRef<
2424

2525
export const selectTriggerVariants = tv({
2626
base: [
27-
'flex items-center justify-between text-foreground data-[placeholder]:text-muted disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
27+
'flex items-center justify-between text-foreground data-[placeholder]:text-muted [&>span]:line-clamp-1',
2828
'border outline-none ',
2929
'focus:outline-none outline-none group',
30+
'disabled:cursor-not-allowed disabled:shadow-xs disabled:bg-background-disabled disabled:text-disabled',
3031
],
3132
variants: {
3233
variant: {

0 commit comments

Comments
 (0)