@keboola/design 4.1.2 → 4.2.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/dist/index.d.cts CHANGED
@@ -4675,7 +4675,11 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$1 &
4675
4675
  Sidebar: ({ ref, className, asChild, children, ...props }: SlotProps & {
4676
4676
  ref?: Ref<ElementRef<"div">>;
4677
4677
  }) => react_jsx_runtime.JSX.Element;
4678
- /** Main content outlet. */
4678
+ /**
4679
+ * Main content outlet. Applies an opinionated default page gutter (`tw-p-6`)
4680
+ * so content looks right out of the box; override the padding (e.g. `tw-p-0`)
4681
+ * when the app owns its own gutter.
4682
+ */
4679
4683
  Main: ({ ref, className, asChild, children, ...props }: SlotProps & {
4680
4684
  ref?: Ref<ElementRef<"main">>;
4681
4685
  }) => react_jsx_runtime.JSX.Element;
@@ -5646,14 +5650,22 @@ declare const Separator: ({ className, orientation, size, label, ...props }: Pro
5646
5650
  declare const navbarClassnames: (props?: ({
5647
5651
  bordered?: boolean | null | undefined;
5648
5652
  } & class_variance_authority_types.ClassProp) | undefined) => string;
5649
- type Props$g = ComponentProps<'header'> & VariantProps<typeof navbarClassnames> & {
5653
+ type Props$g = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
5650
5654
  accent?: 'blue' | 'purple' | 'green' | 'orange';
5651
5655
  };
5652
5656
  /**
5653
- * WIP: The design is not yet complete, and the implementation is far from finished. Please do not use it.
5654
- * As of now, its usage is hidden behind the feature flag `sidebar-navigation`.
5655
- * Will be based on radix, which handles accessibility: https://www.radix-ui.com/primitives/docs/components/navigation-menu
5656
- * Design (WIP), missing a lot of actual cases: https://www.figma.com/design/HEBm5hXa4AIxcCh5PGKoF9/Main-Navigation?node-id=1568-1126&t=s3RREpciWrKQTL8p-0
5657
+ * Top navigation bar for the app shell. Host inside `<AppShell.Header>` to give a
5658
+ * top-nav (or `keboola-legacy` top-bar) layout its primary navigation, brand mark,
5659
+ * and account/actions area.
5660
+ *
5661
+ * **Composition:** `Navbar.Header` (left — brand / logo), `Navbar.Content` (center —
5662
+ * primary `Navbar.Menu` of `Navbar.MenuItem` + `Navbar.MenuButton`, horizontally
5663
+ * scrollable), and `Navbar.Footer` (right — search, notifications, `Navbar.MenuAvatar`).
5664
+ * `bordered` renders a top accent hairline whose color follows `accent`. Renders a
5665
+ * `<nav>` landmark with a default `aria-label` — override it via `aria-label` /
5666
+ * `aria-labelledby` when a page has more than one nav.
5667
+ *
5668
+ * @see AppShell — pair with `AppShell.Header`; the sidebar rail uses `Sidebar` instead.
5657
5669
  */
5658
5670
  declare const Navbar: {
5659
5671
  ({ className, accent, bordered, ...rest }: Props$g): react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -4675,7 +4675,11 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$1 &
4675
4675
  Sidebar: ({ ref, className, asChild, children, ...props }: SlotProps & {
4676
4676
  ref?: Ref<ElementRef<"div">>;
4677
4677
  }) => react_jsx_runtime.JSX.Element;
4678
- /** Main content outlet. */
4678
+ /**
4679
+ * Main content outlet. Applies an opinionated default page gutter (`tw-p-6`)
4680
+ * so content looks right out of the box; override the padding (e.g. `tw-p-0`)
4681
+ * when the app owns its own gutter.
4682
+ */
4679
4683
  Main: ({ ref, className, asChild, children, ...props }: SlotProps & {
4680
4684
  ref?: Ref<ElementRef<"main">>;
4681
4685
  }) => react_jsx_runtime.JSX.Element;
@@ -5646,14 +5650,22 @@ declare const Separator: ({ className, orientation, size, label, ...props }: Pro
5646
5650
  declare const navbarClassnames: (props?: ({
5647
5651
  bordered?: boolean | null | undefined;
5648
5652
  } & class_variance_authority_types.ClassProp) | undefined) => string;
5649
- type Props$g = ComponentProps<'header'> & VariantProps<typeof navbarClassnames> & {
5653
+ type Props$g = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
5650
5654
  accent?: 'blue' | 'purple' | 'green' | 'orange';
5651
5655
  };
5652
5656
  /**
5653
- * WIP: The design is not yet complete, and the implementation is far from finished. Please do not use it.
5654
- * As of now, its usage is hidden behind the feature flag `sidebar-navigation`.
5655
- * Will be based on radix, which handles accessibility: https://www.radix-ui.com/primitives/docs/components/navigation-menu
5656
- * Design (WIP), missing a lot of actual cases: https://www.figma.com/design/HEBm5hXa4AIxcCh5PGKoF9/Main-Navigation?node-id=1568-1126&t=s3RREpciWrKQTL8p-0
5657
+ * Top navigation bar for the app shell. Host inside `<AppShell.Header>` to give a
5658
+ * top-nav (or `keboola-legacy` top-bar) layout its primary navigation, brand mark,
5659
+ * and account/actions area.
5660
+ *
5661
+ * **Composition:** `Navbar.Header` (left — brand / logo), `Navbar.Content` (center —
5662
+ * primary `Navbar.Menu` of `Navbar.MenuItem` + `Navbar.MenuButton`, horizontally
5663
+ * scrollable), and `Navbar.Footer` (right — search, notifications, `Navbar.MenuAvatar`).
5664
+ * `bordered` renders a top accent hairline whose color follows `accent`. Renders a
5665
+ * `<nav>` landmark with a default `aria-label` — override it via `aria-label` /
5666
+ * `aria-labelledby` when a page has more than one nav.
5667
+ *
5668
+ * @see AppShell — pair with `AppShell.Header`; the sidebar rail uses `Sidebar` instead.
5657
5669
  */
5658
5670
  declare const Navbar: {
5659
5671
  ({ className, accent, bordered, ...rest }: Props$g): react_jsx_runtime.JSX.Element;