@noxlovette/material 0.1.27 → 0.1.29

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.
@@ -20,7 +20,9 @@ SinglePane provides a centered or full-width container for content.
20
20
  ...rest
21
21
  }: SinglePaneProps = $props();
22
22
 
23
- const { base, content } = $derived(singlePane({ padding, gap, centered, full, background, rounded }));
23
+ const { base, content } = $derived(
24
+ singlePane({ padding, gap, centered, full, background, rounded })
25
+ );
24
26
  </script>
25
27
 
26
28
  <div class={base({ class: clsx(className) })} {...rest}>
@@ -4,6 +4,8 @@ Toolbar provides a horizontal (or vertical) container for grouped actions.
4
4
 
5
5
  - variant="floating" — elevated, rounded, inline (default)
6
6
  - variant="docked" — full-width, flat, anchored to top/bottom
7
+ - variant="mobile" — fixed above the bottom Navbar (bottom-20), full-width
8
+ - ghost — renders a h-16 spacer after the toolbar to prevent content scroll-under (pair with variant="mobile")
7
9
  - color="standard" — surface-container background
8
10
  - color="vibrant" — secondary-container background with inverted toggle selection
9
11
  - fab snippet — renders a FAB at the trailing edge (canonical for docked bottom bars)
@@ -20,6 +22,7 @@ Toolbar provides a horizontal (or vertical) container for grouped actions.
20
22
  let {
21
23
  children,
22
24
  fab,
25
+ ghost = false,
23
26
  orientation = 'horizontal',
24
27
  loop = true,
25
28
  variant = 'floating',
@@ -42,3 +45,6 @@ Toolbar provides a horizontal (or vertical) container for grouped actions.
42
45
  </div>
43
46
  {/if}
44
47
  </Toolbar.Root>
48
+ {#if ghost}
49
+ <div class={cls.ghost()} aria-hidden="true"></div>
50
+ {/if}
@@ -5,6 +5,8 @@ import type { ToolbarProps } from './types.js';
5
5
  *
6
6
  * - variant="floating" — elevated, rounded, inline (default)
7
7
  * - variant="docked" — full-width, flat, anchored to top/bottom
8
+ * - variant="mobile" — fixed above the bottom Navbar (bottom-20), full-width
9
+ * - ghost — renders a h-16 spacer after the toolbar to prevent content scroll-under (pair with variant="mobile")
8
10
  * - color="standard" — surface-container background
9
11
  * - color="vibrant" — secondary-container background with inverted toggle selection
10
12
  * - fab snippet — renders a FAB at the trailing edge (canonical for docked bottom bars)
@@ -20,6 +20,9 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
20
20
  docked: {
21
21
  root: string;
22
22
  };
23
+ mobile: {
24
+ root: string;
25
+ };
23
26
  };
24
27
  color: {
25
28
  standard: {
@@ -34,6 +37,7 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
34
37
  group: string;
35
38
  divider: string;
36
39
  fabSlot: string;
40
+ ghost: string;
37
41
  }, undefined, {
38
42
  orientation: {
39
43
  horizontal: {
@@ -52,6 +56,9 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
52
56
  docked: {
53
57
  root: string;
54
58
  };
59
+ mobile: {
60
+ root: string;
61
+ };
55
62
  };
56
63
  color: {
57
64
  standard: {
@@ -66,6 +73,7 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
66
73
  group: string;
67
74
  divider: string;
68
75
  fabSlot: string;
76
+ ghost: string;
69
77
  }, import("tailwind-variants").TVReturnType<{
70
78
  orientation: {
71
79
  horizontal: {
@@ -84,6 +92,9 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
84
92
  docked: {
85
93
  root: string;
86
94
  };
95
+ mobile: {
96
+ root: string;
97
+ };
87
98
  };
88
99
  color: {
89
100
  standard: {
@@ -98,6 +109,7 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
98
109
  group: string;
99
110
  divider: string;
100
111
  fabSlot: string;
112
+ ghost: string;
101
113
  }, undefined, unknown, unknown, undefined>>;
102
114
  export declare const toolbarButton: import("tailwind-variants").TVReturnType<{
103
115
  color: {
@@ -4,7 +4,8 @@ export const toolbar = tv({
4
4
  root: 'items-center gap-0.5 px-2',
5
5
  group: 'inline-flex items-center gap-0.5',
6
6
  divider: 'shrink-0 bg-md-sys-color-outline-variant',
7
- fabSlot: 'ml-auto flex items-center ps-2'
7
+ fabSlot: 'ml-auto flex items-center ps-2',
8
+ ghost: 'h-16 w-full shrink-0 pointer-events-none'
8
9
  },
9
10
  variants: {
10
11
  orientation: {
@@ -13,7 +14,10 @@ export const toolbar = tv({
13
14
  },
14
15
  variant: {
15
16
  floating: { root: 'inline-flex rounded-2xl shadow-elevation-1 py-1' },
16
- docked: { root: 'flex w-full rounded-none py-3' }
17
+ docked: { root: 'flex w-full rounded-none py-3' },
18
+ mobile: {
19
+ root: 'flex w-full rounded-none py-3 fixed bottom-20 left-0 z-10 shadow-elevation-2'
20
+ }
17
21
  },
18
22
  color: {
19
23
  standard: { root: 'bg-md-sys-color-surface-container' },
@@ -6,6 +6,7 @@ export type ToolbarColor = 'standard' | 'vibrant';
6
6
  export type ToolbarProps = ToolbarVariants & Omit<ToolbarRootProps, 'children' | 'child'> & {
7
7
  children?: Snippet;
8
8
  fab?: Snippet;
9
+ ghost?: boolean;
9
10
  class?: string;
10
11
  };
11
12
  export type ToolbarButtonProps = Omit<BitsToolbarButtonProps, 'children' | 'child'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxlovette/material",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {