@nordmanai/nif 0.2.15 → 0.2.16
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/dist/index.js +3 -2
- package/dist/styles.css +1 -1
- package/dist/ui/components/nm-sidebar/nm-sidebar.d.ts +3 -2
- package/package.json +1 -1
- package/registry/index.json +1 -1
- package/registry/ui/components/nm-sidebar/nm-sidebar.css +5 -0
- package/registry/ui/components/nm-sidebar/nm-sidebar.tsx +3 -3
|
@@ -150,9 +150,10 @@ export declare function NmSidebarMenuSubButton({ render, size, isActive, disable
|
|
|
150
150
|
/** Not available. A link gets aria-disabled; a rendered button gets disabled. */
|
|
151
151
|
disabled?: boolean;
|
|
152
152
|
}): ReactNode;
|
|
153
|
-
/** A chevron at the end of a row. In a collapsible row it points right and turns down when the row is open. With `menu` it points down, for a row that opens a menu. */
|
|
154
|
-
export declare function NmSidebarChevron({ className, menu, ...props }: Omit<ComponentProps<typeof NmIcon>, 'id'> & {
|
|
153
|
+
/** A chevron at the end of a row. In a collapsible row it points right and turns down when the row is open. With `menu` it points down, for a row that opens a menu below. With `flyout` it keeps pointing right, for a row whose menu opens beside the sidebar. */
|
|
154
|
+
export declare function NmSidebarChevron({ className, menu, flyout, ...props }: Omit<ComponentProps<typeof NmIcon>, 'id'> & {
|
|
155
155
|
menu?: boolean;
|
|
156
|
+
flyout?: boolean;
|
|
156
157
|
}): ReactNode;
|
|
157
158
|
/**
|
|
158
159
|
* A dropdown menu opened from the sidebar. It closes the moment the sidebar goes out of view
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordmanai/nif",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Nordman Interface Framework: the one UI and UX system for every Nordman product. Base UI, in the shadcn composition, styled by NIF tokens.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
package/registry/index.json
CHANGED
|
@@ -510,6 +510,11 @@
|
|
|
510
510
|
.nm-sidebar__chevron[data-menu] {
|
|
511
511
|
transform: none;
|
|
512
512
|
}
|
|
513
|
+
[aria-expanded='true'] > .nm-sidebar__chevron[data-flyout],
|
|
514
|
+
[data-popup-open] > .nm-sidebar__chevron[data-flyout],
|
|
515
|
+
.nm-sidebar__chevron[data-flyout] {
|
|
516
|
+
transform: rotate(-90deg);
|
|
517
|
+
}
|
|
513
518
|
|
|
514
519
|
/* The action at the end of a row sits over the row's end, centred on its height. */
|
|
515
520
|
.nm-sidebar__menu-action {
|
|
@@ -571,9 +571,9 @@ export function NmSidebarMenuSubButton({
|
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
/** A chevron at the end of a row. In a collapsible row it points right and turns down when the row is open. With `menu` it points down, for a row that opens a menu. */
|
|
575
|
-
export function NmSidebarChevron({ className, menu = false, ...props }: Omit<ComponentProps<typeof NmIcon>, 'id'> & { menu?: boolean }): ReactNode {
|
|
576
|
-
return <NmIcon id="chevron" data-menu={menu ? '' : undefined} className={nmClass('nm-sidebar__chevron', className)} {...props} />;
|
|
574
|
+
/** A chevron at the end of a row. In a collapsible row it points right and turns down when the row is open. With `menu` it points down, for a row that opens a menu below. With `flyout` it keeps pointing right, for a row whose menu opens beside the sidebar. */
|
|
575
|
+
export function NmSidebarChevron({ className, menu = false, flyout = false, ...props }: Omit<ComponentProps<typeof NmIcon>, 'id'> & { menu?: boolean; flyout?: boolean }): ReactNode {
|
|
576
|
+
return <NmIcon id="chevron" data-menu={menu ? '' : undefined} data-flyout={flyout ? '' : undefined} className={nmClass('nm-sidebar__chevron', className)} {...props} />;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
/**
|