@r2digisolutions/components 0.25.20 → 0.26.0

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.
Files changed (43) hide show
  1. package/README.md +4 -0
  2. package/WORKSPACE.md +48 -0
  3. package/dist/components/molecules/ActionRow/ActionRow.stories.js +9 -0
  4. package/dist/components/molecules/ActionRow/ActionRow.svelte +84 -0
  5. package/dist/components/molecules/ActionRow/ActionRow.svelte.d.ts +31 -0
  6. package/dist/components/molecules/ActionRow/ActionRowStory.svelte +36 -0
  7. package/dist/components/molecules/ActionRow/ActionRowStory.svelte.d.ts +18 -0
  8. package/dist/components/molecules/Card/Card.svelte +4 -0
  9. package/dist/components/molecules/Card/Card.svelte.d.ts +2 -0
  10. package/dist/components/molecules/EntityHero/EntityHero.stories.js +9 -0
  11. package/dist/components/molecules/EntityHero/EntityHero.svelte +162 -0
  12. package/dist/components/molecules/EntityHero/EntityHero.svelte.d.ts +37 -0
  13. package/dist/components/molecules/EntityHero/EntityHeroStory.svelte +28 -0
  14. package/dist/components/molecules/EntityHero/EntityHeroStory.svelte.d.ts +18 -0
  15. package/dist/components/molecules/OrgSwitcher/OrgSwitcher.svelte +68 -23
  16. package/dist/components/molecules/OrgSwitcher/OrgSwitcher.svelte.d.ts +12 -0
  17. package/dist/components/molecules/SectionNav/SectionNav.stories.d.ts +12 -0
  18. package/dist/components/molecules/SectionNav/SectionNav.stories.js +9 -0
  19. package/dist/components/molecules/SectionNav/SectionNav.svelte +139 -0
  20. package/dist/components/molecules/SectionNav/SectionNav.svelte.d.ts +41 -0
  21. package/dist/components/molecules/SectionNav/SectionNavStory.svelte +48 -0
  22. package/dist/components/molecules/SectionNav/SectionNavStory.svelte.d.ts +3 -0
  23. package/dist/components/molecules/StatCard/StatCard.svelte +51 -15
  24. package/dist/components/molecules/StatCard/StatCard.svelte.d.ts +13 -2
  25. package/dist/components/organisms/BottomNav/BottomNav.svelte +93 -53
  26. package/dist/components/organisms/BottomNav/BottomNav.svelte.d.ts +17 -2
  27. package/dist/components/organisms/NavRail/NavRail.svelte +106 -34
  28. package/dist/components/organisms/NavRail/NavRail.svelte.d.ts +12 -0
  29. package/dist/components/organisms/ProfilePicker/ProfilePicker.stories.d.ts +12 -0
  30. package/dist/components/organisms/ProfilePicker/ProfilePicker.stories.js +9 -0
  31. package/dist/components/organisms/ProfilePicker/ProfilePicker.svelte +183 -0
  32. package/dist/components/organisms/ProfilePicker/ProfilePicker.svelte.d.ts +37 -0
  33. package/dist/components/organisms/ProfilePicker/ProfilePickerStory.svelte +18 -0
  34. package/dist/components/organisms/ProfilePicker/ProfilePickerStory.svelte.d.ts +3 -0
  35. package/dist/components/organisms/WorkspaceShell/WorkspaceShell.stories.d.ts +12 -0
  36. package/dist/components/organisms/WorkspaceShell/WorkspaceShell.stories.js +9 -0
  37. package/dist/components/organisms/WorkspaceShell/WorkspaceShell.svelte +75 -0
  38. package/dist/components/organisms/WorkspaceShell/WorkspaceShell.svelte.d.ts +30 -0
  39. package/dist/components/organisms/WorkspaceShell/WorkspaceShellStory.svelte +71 -0
  40. package/dist/components/organisms/WorkspaceShell/WorkspaceShellStory.svelte.d.ts +3 -0
  41. package/dist/index.d.ts +11 -2
  42. package/dist/index.js +5 -0
  43. package/package.json +2 -1
@@ -0,0 +1,183 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import Plus from '@lucide/svelte/icons/plus';
4
+
5
+ export interface ProfilePickerItem {
6
+ id: string;
7
+ name: string;
8
+ /** Role, plan, category… */
9
+ subtitle?: string;
10
+ src?: string;
11
+ initials?: string;
12
+ /** Tile colour (any CSS colour). Defaults to the brand colour. */
13
+ color?: string;
14
+ /** Pending count on the corner. Hidden when 0. */
15
+ badge?: string | number;
16
+ href?: string;
17
+ }
18
+
19
+ interface ProfilePickerProps {
20
+ /** Big question at the top («¿Qué empresa quieres gestionar?»). */
21
+ title?: string;
22
+ profiles?: ProfilePickerItem[];
23
+ /** The current one gets a ring. */
24
+ value?: string;
25
+ createLabel?: string;
26
+ createSubtitle?: string;
27
+ /** Small note under everything (e.g. linked account). */
28
+ note?: string;
29
+ /** `screen` fills the viewport with the brand background; `inline` is a plain block. */
30
+ variant?: 'screen' | 'inline';
31
+ class?: string;
32
+ /** Logo above the title. */
33
+ brand?: Snippet;
34
+ /** Extra buttons under the grid («Gestionar empresas»). */
35
+ footer?: Snippet;
36
+ onselect?: (profile: ProfilePickerItem) => void;
37
+ oncreate?: () => void;
38
+ }
39
+
40
+ let {
41
+ title = '¿Quién eres?',
42
+ profiles = [],
43
+ value = $bindable(''),
44
+ createLabel = 'Añadir',
45
+ createSubtitle,
46
+ note,
47
+ variant = 'screen',
48
+ class: className = '',
49
+ brand,
50
+ footer,
51
+ onselect,
52
+ oncreate
53
+ }: ProfilePickerProps = $props();
54
+
55
+ const screen = $derived(variant === 'screen');
56
+ const initialsOf = (p: ProfilePickerItem) =>
57
+ p.initials ??
58
+ p.name
59
+ .split(/\s+/)
60
+ .filter(Boolean)
61
+ .slice(0, 2)
62
+ .map((w) => w[0]?.toUpperCase() ?? '')
63
+ .join('');
64
+ const hasBadge = (p: ProfilePickerItem) =>
65
+ p.badge !== undefined && p.badge !== '' && p.badge !== 0;
66
+
67
+ function pick(p: ProfilePickerItem) {
68
+ value = p.id;
69
+ onselect?.(p);
70
+ }
71
+ </script>
72
+
73
+ {#snippet tile(p: ProfilePickerItem)}
74
+ <span
75
+ class={[
76
+ 'text-3xl font-bold text-white sm:text-4xl relative flex aspect-square w-full items-center justify-center rounded-[1.75rem] transition-transform duration-200 group-hover:scale-[1.04]',
77
+ value === p.id &&
78
+ (screen
79
+ ? 'ring-brand-200 ring-offset-brand-800 ring-[3px] ring-offset-4'
80
+ : 'ring-brand-500 ring-offset-surface ring-[3px] ring-offset-4')
81
+ ]}
82
+ style={`background:${p.color ?? 'var(--color-brand-600)'}`}
83
+ >
84
+ {#if p.src}<img
85
+ src={p.src}
86
+ alt=""
87
+ class="h-full w-full rounded-[1.75rem] object-cover"
88
+ />{:else}{initialsOf(p)}{/if}
89
+ {#if hasBadge(p)}
90
+ <span
91
+ class="-right-2 -top-2 bg-amber-400 px-2 py-0.5 text-xs font-bold text-amber-950 shadow absolute rounded-full"
92
+ >{p.badge}</span
93
+ >
94
+ {/if}
95
+ </span>
96
+ <span
97
+ class={[
98
+ 'mt-2.5 font-semibold block truncate text-center text-[15px]',
99
+ screen ? 'text-white' : 'text-primary'
100
+ ]}>{p.name}</span
101
+ >
102
+ {#if p.subtitle}
103
+ <span
104
+ class={['text-xs block truncate text-center', screen ? 'text-brand-200/80' : 'text-muted']}
105
+ >{p.subtitle}</span
106
+ >
107
+ {/if}
108
+ {/snippet}
109
+
110
+ <div
111
+ class={[
112
+ 'px-6 py-10 flex flex-col items-center',
113
+ screen && 'from-brand-800 to-brand-950 text-white min-h-dvh justify-center bg-gradient-to-b',
114
+ className
115
+ ]}
116
+ >
117
+ {#if brand}<div class="mb-8">{@render brand()}</div>{/if}
118
+ <h1
119
+ class={[
120
+ 'max-w-md text-2xl font-bold tracking-tight sm:text-3xl text-center',
121
+ !screen && 'text-primary'
122
+ ]}
123
+ >
124
+ {title}
125
+ </h1>
126
+ <ul class="mt-10 max-w-2xl gap-x-6 gap-y-8 sm:grid-cols-3 md:grid-cols-4 grid w-full grid-cols-2">
127
+ {#each profiles as p (p.id)}
128
+ <li class="min-w-0">
129
+ {#if p.href}
130
+ <a
131
+ href={p.href}
132
+ class="group rounded-3xl focus-visible:ring-brand-300 block focus-visible:ring-2 focus-visible:outline-none"
133
+ onclick={() => pick(p)}>{@render tile(p)}</a
134
+ >
135
+ {:else}
136
+ <button
137
+ type="button"
138
+ class="group rounded-3xl focus-visible:ring-brand-300 block w-full focus-visible:ring-2 focus-visible:outline-none"
139
+ onclick={() => pick(p)}>{@render tile(p)}</button
140
+ >
141
+ {/if}
142
+ </li>
143
+ {/each}
144
+ {#if oncreate}
145
+ <li class="min-w-0">
146
+ <button
147
+ type="button"
148
+ class="group rounded-3xl focus-visible:ring-brand-300 block w-full focus-visible:ring-2 focus-visible:outline-none"
149
+ onclick={() => oncreate?.()}
150
+ >
151
+ <span
152
+ class={[
153
+ 'flex aspect-square w-full items-center justify-center rounded-[1.75rem] border-2 border-dashed transition-colors',
154
+ screen
155
+ ? 'border-brand-400/70 text-brand-200 group-hover:bg-white/5'
156
+ : 'border-border-strong text-muted group-hover:bg-surface-overlay'
157
+ ]}
158
+ >
159
+ <Plus class="h-10 w-10" strokeWidth={1.75} />
160
+ </span>
161
+ <span
162
+ class={[
163
+ 'mt-2.5 font-semibold block truncate text-center text-[15px]',
164
+ screen ? 'text-white' : 'text-primary'
165
+ ]}>{createLabel}</span
166
+ >
167
+ {#if createSubtitle}
168
+ <span
169
+ class={[
170
+ 'text-xs block truncate text-center',
171
+ screen ? 'text-brand-200/80' : 'text-muted'
172
+ ]}>{createSubtitle}</span
173
+ >
174
+ {/if}
175
+ </button>
176
+ </li>
177
+ {/if}
178
+ </ul>
179
+ {#if footer}<div class="mt-10 gap-3 flex flex-wrap justify-center">{@render footer()}</div>{/if}
180
+ {#if note}<p class={['mt-5 text-xs text-center', screen ? 'text-brand-200/70' : 'text-muted']}>
181
+ {note}
182
+ </p>{/if}
183
+ </div>
@@ -0,0 +1,37 @@
1
+ import type { Snippet } from 'svelte';
2
+ export interface ProfilePickerItem {
3
+ id: string;
4
+ name: string;
5
+ /** Role, plan, category… */
6
+ subtitle?: string;
7
+ src?: string;
8
+ initials?: string;
9
+ /** Tile colour (any CSS colour). Defaults to the brand colour. */
10
+ color?: string;
11
+ /** Pending count on the corner. Hidden when 0. */
12
+ badge?: string | number;
13
+ href?: string;
14
+ }
15
+ interface ProfilePickerProps {
16
+ /** Big question at the top («¿Qué empresa quieres gestionar?»). */
17
+ title?: string;
18
+ profiles?: ProfilePickerItem[];
19
+ /** The current one gets a ring. */
20
+ value?: string;
21
+ createLabel?: string;
22
+ createSubtitle?: string;
23
+ /** Small note under everything (e.g. linked account). */
24
+ note?: string;
25
+ /** `screen` fills the viewport with the brand background; `inline` is a plain block. */
26
+ variant?: 'screen' | 'inline';
27
+ class?: string;
28
+ /** Logo above the title. */
29
+ brand?: Snippet;
30
+ /** Extra buttons under the grid («Gestionar empresas»). */
31
+ footer?: Snippet;
32
+ onselect?: (profile: ProfilePickerItem) => void;
33
+ oncreate?: () => void;
34
+ }
35
+ declare const ProfilePicker: import("svelte").Component<ProfilePickerProps, {}, "value">;
36
+ type ProfilePicker = ReturnType<typeof ProfilePicker>;
37
+ export default ProfilePicker;
@@ -0,0 +1,18 @@
1
+ <script lang="ts">
2
+ import ProfilePicker from './ProfilePicker.svelte';
3
+ let value = $state('bl');
4
+ </script>
5
+
6
+ <ProfilePicker
7
+ title="¿Qué empresa quieres gestionar?"
8
+ bind:value
9
+ profiles={[
10
+ { id: 'bl', name: 'Bar La Plaza', subtitle: 'Propietario' },
11
+ { id: 'rp', name: 'Reformas Plaza', subtitle: 'Propietario', color: '#8a5a2b', badge: 2 },
12
+ { id: 'fc', name: 'Fontanería Centro', subtitle: 'Gestor', color: '#2b5f8a' }
13
+ ]}
14
+ createLabel="Añadir empresa"
15
+ createSubtitle="Crear o vincular"
16
+ note="Conectado con tu cuenta"
17
+ oncreate={() => {}}
18
+ />
@@ -0,0 +1,3 @@
1
+ declare const ProfilePickerStory: import("svelte").Component<Record<string, never>, {}, "">;
2
+ type ProfilePickerStory = ReturnType<typeof ProfilePickerStory>;
3
+ export default ProfilePickerStory;
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/svelte';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("svelte").Component<Record<string, never>, {}, "">;
5
+ tags: string[];
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
@@ -0,0 +1,9 @@
1
+ import WorkspaceShellStory from './WorkspaceShellStory.svelte';
2
+ const meta = {
3
+ title: 'Organisms/WorkspaceShell',
4
+ component: WorkspaceShellStory,
5
+ tags: ['autodocs'],
6
+ parameters: { layout: 'fullscreen' }
7
+ };
8
+ export default meta;
9
+ export const Default = {};
@@ -0,0 +1,75 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+
4
+ /**
5
+ * Two-level workspace layout (rail + section menu) that turns into
6
+ * header + bottom bar on phones. Every region is a snippet so any app
7
+ * can plug its own NavRail, SectionNav, search, BottomNav…
8
+ *
9
+ * Desktop (≥ lg): rail | secondary | (topbar / content)
10
+ * Tablet (md): rail | (topbar / content) — secondary hidden
11
+ * Phone: mobileHeader / content / bottomNav
12
+ */
13
+ interface WorkspaceShellProps {
14
+ /** Narrow icon rail (NavRail variant="solid" showLabels). */
15
+ rail?: Snippet;
16
+ /** Section menu next to the rail (SectionNav). */
17
+ secondary?: Snippet;
18
+ /** Top bar over the content on tablet/desktop (breadcrumb, search, actions). */
19
+ topbar?: Snippet;
20
+ /** Header on phones (switcher, search button, section tabs). */
21
+ mobileHeader?: Snippet;
22
+ /** Bottom bar on phones (BottomNav). */
23
+ bottomNav?: Snippet;
24
+ children?: Snippet;
25
+ /** Max width of the content column. */
26
+ contentWidth?: 'full' | 'xl' | '2xl';
27
+ class?: string;
28
+ contentClass?: string;
29
+ }
30
+
31
+ const {
32
+ rail,
33
+ secondary,
34
+ topbar,
35
+ mobileHeader,
36
+ bottomNav,
37
+ children,
38
+ contentWidth = 'full',
39
+ class: className = '',
40
+ contentClass = ''
41
+ }: WorkspaceShellProps = $props();
42
+
43
+ const WIDTH = { full: '', xl: 'max-w-7xl', '2xl': 'max-w-[96rem]' } as const;
44
+ </script>
45
+
46
+ <div class={['bg-surface text-primary flex min-h-dvh', className]}>
47
+ {#if rail}
48
+ <div class="top-0 md:flex sticky hidden h-dvh">{@render rail()}</div>
49
+ {/if}
50
+ {#if secondary}
51
+ <div class="top-0 lg:flex sticky hidden h-dvh">{@render secondary()}</div>
52
+ {/if}
53
+ <div class="min-w-0 flex flex-1 flex-col">
54
+ {#if mobileHeader}
55
+ <div class="top-0 md:hidden sticky z-30">{@render mobileHeader()}</div>
56
+ {/if}
57
+ {#if topbar}
58
+ <div class="top-0 bg-surface/90 backdrop-blur md:block sticky z-30 hidden">
59
+ {@render topbar()}
60
+ </div>
61
+ {/if}
62
+ <main
63
+ class={[
64
+ 'min-w-0 px-4 pb-28 pt-4 md:px-6 md:pb-10 md:pt-2 mx-auto w-full flex-1',
65
+ WIDTH[contentWidth],
66
+ contentClass
67
+ ]}
68
+ >
69
+ {@render children?.()}
70
+ </main>
71
+ </div>
72
+ {#if bottomNav}
73
+ <div class="inset-x-0 bottom-0 md:hidden fixed z-40">{@render bottomNav()}</div>
74
+ {/if}
75
+ </div>
@@ -0,0 +1,30 @@
1
+ import type { Snippet } from 'svelte';
2
+ /**
3
+ * Two-level workspace layout (rail + section menu) that turns into
4
+ * header + bottom bar on phones. Every region is a snippet so any app
5
+ * can plug its own NavRail, SectionNav, search, BottomNav…
6
+ *
7
+ * Desktop (≥ lg): rail | secondary | (topbar / content)
8
+ * Tablet (md): rail | (topbar / content) — secondary hidden
9
+ * Phone: mobileHeader / content / bottomNav
10
+ */
11
+ interface WorkspaceShellProps {
12
+ /** Narrow icon rail (NavRail variant="solid" showLabels). */
13
+ rail?: Snippet;
14
+ /** Section menu next to the rail (SectionNav). */
15
+ secondary?: Snippet;
16
+ /** Top bar over the content on tablet/desktop (breadcrumb, search, actions). */
17
+ topbar?: Snippet;
18
+ /** Header on phones (switcher, search button, section tabs). */
19
+ mobileHeader?: Snippet;
20
+ /** Bottom bar on phones (BottomNav). */
21
+ bottomNav?: Snippet;
22
+ children?: Snippet;
23
+ /** Max width of the content column. */
24
+ contentWidth?: 'full' | 'xl' | '2xl';
25
+ class?: string;
26
+ contentClass?: string;
27
+ }
28
+ declare const WorkspaceShell: import("svelte").Component<WorkspaceShellProps, {}, "">;
29
+ type WorkspaceShell = ReturnType<typeof WorkspaceShell>;
30
+ export default WorkspaceShell;
@@ -0,0 +1,71 @@
1
+ <script lang="ts">
2
+ import WorkspaceShell from './WorkspaceShell.svelte';
3
+ import NavRail, { type NavRailItem } from '../NavRail/NavRail.svelte';
4
+ import SectionNav from '../../molecules/SectionNav/SectionNav.svelte';
5
+ import BottomNav from '../BottomNav/BottomNav.svelte';
6
+ import {
7
+ House,
8
+ Store,
9
+ Users,
10
+ ChartColumn,
11
+ Settings,
12
+ Shield,
13
+ FileText,
14
+ Images,
15
+ Plus,
16
+ Menu
17
+ } from '@lucide/svelte';
18
+
19
+ const items: NavRailItem[] = [
20
+ { id: 'inicio', label: 'Inicio', icon: House, href: '#' },
21
+ { id: 'escaparate', label: 'Escaparate', icon: Store, href: '#' },
22
+ { id: 'clientes', label: 'Clientes', icon: Users, href: '#', badge: 9 },
23
+ { id: 'stats', label: 'Estadíst.', icon: ChartColumn, href: '#' },
24
+ { id: 'ajustes', label: 'Ajustes', icon: Settings, href: '#' }
25
+ ];
26
+ let section = $state('escaparate');
27
+ </script>
28
+
29
+ <div class="rounded-xl border-border h-[40rem] overflow-hidden border">
30
+ <WorkspaceShell>
31
+ {#snippet rail()}
32
+ <NavRail
33
+ variant="solid"
34
+ showLabels
35
+ {items}
36
+ footerItems={[{ id: 'admin', label: 'Admin', icon: Shield, href: '#' }]}
37
+ bind:value={section}
38
+ />
39
+ {/snippet}
40
+ {#snippet secondary()}
41
+ <SectionNav
42
+ title="Escaparate"
43
+ description="Lo que ven tus clientes"
44
+ value="galeria"
45
+ groups={[
46
+ {
47
+ id: 'g',
48
+ items: [
49
+ { id: 'ficha', label: 'Mi ficha', icon: FileText, href: '#' },
50
+ { id: 'galeria', label: 'Galería', icon: Images, href: '#' }
51
+ ]
52
+ }
53
+ ]}
54
+ />
55
+ {/snippet}
56
+ {#snippet bottomNav()}
57
+ <BottomNav
58
+ variant="default"
59
+ items={[
60
+ { id: 'inicio', label: 'Inicio', iconComponent: House, href: '#' },
61
+ { id: 'escaparate', label: 'Escaparate', iconComponent: Store, href: '#' },
62
+ { id: 'crear', label: 'Crear', iconComponent: Plus, primary: true },
63
+ { id: 'clientes', label: 'Clientes', iconComponent: Users, href: '#', badge: 9 },
64
+ { id: 'mas', label: 'Más', iconComponent: Menu, href: '#' }
65
+ ]}
66
+ value={section}
67
+ />
68
+ {/snippet}
69
+ <p class="text-sm text-muted">Contenido de la sección</p>
70
+ </WorkspaceShell>
71
+ </div>
@@ -0,0 +1,3 @@
1
+ declare const WorkspaceShellStory: import("svelte").Component<Record<string, never>, {}, "">;
2
+ type WorkspaceShellStory = ReturnType<typeof WorkspaceShellStory>;
3
+ export default WorkspaceShellStory;
package/dist/index.d.ts CHANGED
@@ -404,6 +404,12 @@ export { default as WorkspaceCard } from './components/molecules/WorkspaceCard/W
404
404
  export type { WorkspaceItem, WorkspaceSeats, WorkspaceCardTone, WorkspaceCardStatus, WorkspaceCardLayout, WorkspaceCard as WorkspaceCardData } from './components/molecules/WorkspaceCard/WorkspaceCard.svelte';
405
405
  export { default as OrgSwitcher } from './components/molecules/OrgSwitcher/OrgSwitcher.svelte';
406
406
  export type { OrgItem } from './components/molecules/OrgSwitcher/OrgSwitcher.svelte';
407
+ export { default as SectionNav } from './components/molecules/SectionNav/SectionNav.svelte';
408
+ export type { SectionNavItem, SectionNavGroup, SectionNavIcon } from './components/molecules/SectionNav/SectionNav.svelte';
409
+ export { default as EntityHero } from './components/molecules/EntityHero/EntityHero.svelte';
410
+ export type { EntityHeroStat } from './components/molecules/EntityHero/EntityHero.svelte';
411
+ export { default as ActionRow } from './components/molecules/ActionRow/ActionRow.svelte';
412
+ export type { ActionRowIcon, ActionRowTone } from './components/molecules/ActionRow/ActionRow.svelte';
407
413
  export { default as SessionRow } from './components/molecules/SessionRow/SessionRow.svelte';
408
414
  export type { SessionInfo, SessionDevice } from './components/molecules/SessionRow/SessionRow.svelte';
409
415
  export { default as WebhookCard } from './components/molecules/WebhookCard/WebhookCard.svelte';
@@ -674,11 +680,14 @@ export type { Toast, ToastVariant, ToastPosition, ToastAppearance, ToastAction }
674
680
  export { default as Sidebar } from './components/organisms/Sidebar/Sidebar.svelte';
675
681
  export type { SidebarItem, SidebarGroup, SidebarIcon } from './components/organisms/Sidebar/Sidebar.svelte';
676
682
  export { default as NavRail } from './components/organisms/NavRail/NavRail.svelte';
677
- export type { NavRailItem, NavRailIcon } from './components/organisms/NavRail/NavRail.svelte';
683
+ export type { NavRailItem, NavRailIcon, NavRailVariant } from './components/organisms/NavRail/NavRail.svelte';
684
+ export { default as WorkspaceShell } from './components/organisms/WorkspaceShell/WorkspaceShell.svelte';
685
+ export { default as ProfilePicker } from './components/organisms/ProfilePicker/ProfilePicker.svelte';
686
+ export type { ProfilePickerItem } from './components/organisms/ProfilePicker/ProfilePicker.svelte';
678
687
  export { default as Navbar } from './components/organisms/Navbar/Navbar.svelte';
679
688
  export type { NavbarLink } from './components/organisms/Navbar/Navbar.svelte';
680
689
  export { default as BottomNav } from './components/organisms/BottomNav/BottomNav.svelte';
681
- export type { BottomNavItem, BottomNavIcon } from './components/organisms/BottomNav/BottomNav.svelte';
690
+ export type { BottomNavItem, BottomNavIcon, BottomNavIconComponent } from './components/organisms/BottomNav/BottomNav.svelte';
682
691
  export { default as CommandPalette } from './components/organisms/CommandPalette/CommandPalette.svelte';
683
692
  export type { CommandItem, CommandIcon } from './components/organisms/CommandPalette/CommandPalette.svelte';
684
693
  export { default as AppShell } from './components/organisms/AppShell/AppShell.svelte';
package/dist/index.js CHANGED
@@ -295,6 +295,9 @@ export { default as RoleCard } from './components/molecules/RoleCard/RoleCard.sv
295
295
  export { default as SeatMeter } from './components/molecules/SeatMeter/SeatMeter.svelte';
296
296
  export { default as WorkspaceCard } from './components/molecules/WorkspaceCard/WorkspaceCard.svelte';
297
297
  export { default as OrgSwitcher } from './components/molecules/OrgSwitcher/OrgSwitcher.svelte';
298
+ export { default as SectionNav } from './components/molecules/SectionNav/SectionNav.svelte';
299
+ export { default as EntityHero } from './components/molecules/EntityHero/EntityHero.svelte';
300
+ export { default as ActionRow } from './components/molecules/ActionRow/ActionRow.svelte';
298
301
  export { default as SessionRow } from './components/molecules/SessionRow/SessionRow.svelte';
299
302
  export { default as WebhookCard } from './components/molecules/WebhookCard/WebhookCard.svelte';
300
303
  export { default as FeatureFlagRow } from './components/molecules/FeatureFlagRow/FeatureFlagRow.svelte';
@@ -466,6 +469,8 @@ export { default as ToastContainer } from './components/organisms/Toast/ToastCon
466
469
  export { toastStore, toast } from './components/organisms/Toast/toast.svelte.js';
467
470
  export { default as Sidebar } from './components/organisms/Sidebar/Sidebar.svelte';
468
471
  export { default as NavRail } from './components/organisms/NavRail/NavRail.svelte';
472
+ export { default as WorkspaceShell } from './components/organisms/WorkspaceShell/WorkspaceShell.svelte';
473
+ export { default as ProfilePicker } from './components/organisms/ProfilePicker/ProfilePicker.svelte';
469
474
  export { default as Navbar } from './components/organisms/Navbar/Navbar.svelte';
470
475
  export { default as BottomNav } from './components/organisms/BottomNav/BottomNav.svelte';
471
476
  export { default as CommandPalette } from './components/organisms/CommandPalette/CommandPalette.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.25.20",
3
+ "version": "0.26.0",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "files": [
36
36
  "dist",
37
+ "WORKSPACE.md",
37
38
  "!dist/**/*.test.*",
38
39
  "!dist/**/*.spec.*"
39
40
  ],