@apliteni/apliteni-ui 0.141.0 → 0.142.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.141.0",
3
+ "version": "0.142.1",
4
4
 
5
5
  "workspaces": [
6
6
  "react"
@@ -1003,6 +1003,32 @@
1003
1003
  :where(:root[data-theme=light]) .ui-react-app__menu .ui-nav__item.is-active {
1004
1004
  background: var(--surface-3);
1005
1005
  }
1006
+ .ui-app__drawer {
1007
+ --ui-nav-col: 216px;
1008
+ --ui-nav-strip: 41px;
1009
+ --ui-app-av: 30px;
1010
+ }
1011
+ .ui-app__drawer .ui-app__user-trigger {
1012
+ width: 100%;
1013
+ gap: var(--space-2);
1014
+ min-height: 38px;
1015
+ padding: var(--space-1) 0;
1016
+ border: 0;
1017
+ border-radius: var(--radius-sm);
1018
+ background: none;
1019
+ color: var(--text);
1020
+ font-size: inherit;
1021
+ font-weight: inherit;
1022
+ letter-spacing: normal;
1023
+ }
1024
+ .ui-app__drawer .ui-app__user-trigger:hover {
1025
+ background: var(--surface);
1026
+ }
1027
+ @media (max-width: 720px) {
1028
+ .ui-drawer__footer > .ui-app__drawer {
1029
+ width: 100%;
1030
+ }
1031
+ }
1006
1032
  .ui-react-app__band-control {
1007
1033
  display: contents;
1008
1034
  }
@@ -1011,6 +1037,9 @@
1011
1037
  gap: var(--space-1);
1012
1038
  padding-inline: var(--space-2);
1013
1039
  }
1040
+ .ui-react-app .ui-app__bar--phone {
1041
+ gap: var(--space-3);
1042
+ }
1014
1043
  .ui-react-app .ui-app__bar:not(:has(> .ui-app__menu:first-child)) {
1015
1044
  padding-inline-start: var(--space-4);
1016
1045
  }
@@ -888,6 +888,23 @@ type ToastProps = {
888
888
  declare function useToast(): (notice: ToastNotice) => void;
889
889
  declare function Toast({ children, collapse }: ToastProps): react.JSX.Element;
890
890
 
891
+ type BreadcrumbItem = {
892
+ label: string;
893
+ href?: string;
894
+ target?: string;
895
+ icon?: string;
896
+ };
897
+ type BreadcrumbsProps = Omit<ComponentPropsWithoutRef<'nav'>, 'children'> & {
898
+ items: readonly BreadcrumbItem[];
899
+ /** Spread linkProps onto the router link, including children. */
900
+ renderLink?: (item: BreadcrumbItem, linkProps: ComponentPropsWithoutRef<'a'>) => ReactNode;
901
+ };
902
+ declare const Breadcrumbs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
903
+ items: readonly BreadcrumbItem[];
904
+ /** Spread linkProps onto the router link, including children. */
905
+ renderLink?: (item: BreadcrumbItem, linkProps: ComponentPropsWithoutRef<"a">) => ReactNode;
906
+ } & react.RefAttributes<HTMLElement>>;
907
+
891
908
  type AppShellSection = {
892
909
  href: string;
893
910
  label: string;
@@ -896,6 +913,8 @@ type AppShellSection = {
896
913
  };
897
914
  type AppShellProps = {
898
915
  sections: AppShellSection[];
916
+ /** The vanilla rail layout, or the existing band layout. */
917
+ layout?: 'rail' | 'topbar';
899
918
  /** Current router pathname; the longest matching section wins. */
900
919
  pathname: string;
901
920
  title: string;
@@ -908,6 +927,7 @@ type AppShellProps = {
908
927
  href: string;
909
928
  label: string;
910
929
  };
930
+ crumbs?: readonly BreadcrumbItem[];
911
931
  lede?: string;
912
932
  actions?: ReactNode;
913
933
  bandControl?: ReactNode;
@@ -926,7 +946,7 @@ type AppShellProps = {
926
946
  /** Spread linkProps onto the router link, including children and onClick. */
927
947
  renderLink?: (section: AppShellSection, linkProps: ComponentPropsWithoutRef<'a'>) => ReactNode;
928
948
  };
929
- declare function AppShell({ sections, pathname, title, children, word, brand, brandHref, width, back, lede, actions, bandControl, account, onSignOut, searchLabel, searchShortLabel, defaultCollapsed, palette, renderLink }: AppShellProps): react.JSX.Element;
949
+ declare function AppShell({ sections, pathname, title, children, word, brand, layout, brandHref, width, back, crumbs, lede, actions, bandControl, account, onSignOut, searchLabel, searchShortLabel, defaultCollapsed, palette, renderLink }: AppShellProps): react.JSX.Element;
930
950
 
931
951
  type AuthShellProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
932
952
  brand: ReactNode;
@@ -1304,23 +1324,6 @@ declare const NavTabs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
1304
1324
  renderLink?: (item: NavTabItem, linkProps: ComponentPropsWithoutRef<"a">) => ReactNode;
1305
1325
  } & react.RefAttributes<HTMLElement>>;
1306
1326
 
1307
- type BreadcrumbItem = {
1308
- label: string;
1309
- href?: string;
1310
- target?: string;
1311
- icon?: string;
1312
- };
1313
- type BreadcrumbsProps = Omit<ComponentPropsWithoutRef<'nav'>, 'children'> & {
1314
- items: readonly BreadcrumbItem[];
1315
- /** Spread linkProps onto the router link, including children. */
1316
- renderLink?: (item: BreadcrumbItem, linkProps: ComponentPropsWithoutRef<'a'>) => ReactNode;
1317
- };
1318
- declare const Breadcrumbs: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & {
1319
- items: readonly BreadcrumbItem[];
1320
- /** Spread linkProps onto the router link, including children. */
1321
- renderLink?: (item: BreadcrumbItem, linkProps: ComponentPropsWithoutRef<"a">) => ReactNode;
1322
- } & react.RefAttributes<HTMLElement>>;
1323
-
1324
1327
  declare const PAGE_SIZES: readonly number[];
1325
1328
  declare const DEFAULT_PAGE_SIZE: number;
1326
1329