@orangecheck/app-design 0.6.1 → 1.1.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 (81) hide show
  1. package/README.md +23 -6
  2. package/dist/brand.js.map +1 -1
  3. package/dist/brand.mjs.map +1 -1
  4. package/dist/chrome.d.mts +78 -55
  5. package/dist/chrome.d.ts +78 -55
  6. package/dist/chrome.js +1100 -59
  7. package/dist/chrome.js.map +1 -1
  8. package/dist/chrome.mjs +1091 -61
  9. package/dist/chrome.mjs.map +1 -1
  10. package/dist/code.d.mts +52 -0
  11. package/dist/code.d.ts +52 -0
  12. package/dist/code.js +534 -0
  13. package/dist/code.js.map +1 -0
  14. package/dist/code.mjs +522 -0
  15. package/dist/code.mjs.map +1 -0
  16. package/dist/components.d.mts +216 -42
  17. package/dist/components.d.ts +216 -42
  18. package/dist/components.js +3350 -100
  19. package/dist/components.js.map +1 -1
  20. package/dist/components.mjs +3293 -103
  21. package/dist/components.mjs.map +1 -1
  22. package/dist/docs-DhnstueM.d.ts +219 -0
  23. package/dist/docs-DiR6s43s.d.mts +219 -0
  24. package/dist/family.d.mts +2 -0
  25. package/dist/family.d.ts +2 -0
  26. package/dist/family.js +167 -0
  27. package/dist/family.js.map +1 -0
  28. package/dist/family.mjs +154 -0
  29. package/dist/family.mjs.map +1 -0
  30. package/dist/format.d.mts +12 -0
  31. package/dist/format.d.ts +12 -0
  32. package/dist/format.js +65 -0
  33. package/dist/format.js.map +1 -0
  34. package/dist/format.mjs +58 -0
  35. package/dist/format.mjs.map +1 -0
  36. package/dist/hero-Dn37il-9.d.mts +31 -0
  37. package/dist/hero-Dn37il-9.d.ts +31 -0
  38. package/dist/index-C6hDqOOS.d.mts +58 -0
  39. package/dist/index-C6hDqOOS.d.ts +58 -0
  40. package/dist/index.d.mts +12 -3
  41. package/dist/index.d.ts +12 -3
  42. package/dist/index.js +4319 -295
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +4219 -298
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/mdx.d.mts +58 -0
  47. package/dist/mdx.d.ts +58 -0
  48. package/dist/mdx.js +1712 -0
  49. package/dist/mdx.js.map +1 -0
  50. package/dist/mdx.mjs +1685 -0
  51. package/dist/mdx.mjs.map +1 -0
  52. package/dist/primitives.d.mts +73 -5
  53. package/dist/primitives.d.ts +73 -5
  54. package/dist/primitives.js +331 -8
  55. package/dist/primitives.js.map +1 -1
  56. package/dist/primitives.mjs +320 -11
  57. package/dist/primitives.mjs.map +1 -1
  58. package/dist/session.d.mts +18 -0
  59. package/dist/session.d.ts +18 -0
  60. package/dist/session.js +432 -0
  61. package/dist/session.js.map +1 -0
  62. package/dist/session.mjs +401 -0
  63. package/dist/session.mjs.map +1 -0
  64. package/dist/status-badge-BEOxeY9j.d.ts +13 -0
  65. package/dist/status-badge-DRwGhB0h.d.mts +13 -0
  66. package/dist/styles/code.css +97 -0
  67. package/dist/styles/fonts.css +1 -1
  68. package/dist/styles/theme.css +2 -0
  69. package/dist/styles/tokens.css +44 -2
  70. package/dist/styles.css +1 -0
  71. package/dist/tokens.d.mts +3 -1
  72. package/dist/tokens.d.ts +3 -1
  73. package/dist/tokens.js +5 -3
  74. package/dist/tokens.js.map +1 -1
  75. package/dist/tokens.mjs +5 -3
  76. package/dist/tokens.mjs.map +1 -1
  77. package/dist/tool-shell-B1C7ahKE.d.ts +81 -0
  78. package/dist/tool-shell-BDx_N5ai.d.mts +81 -0
  79. package/dist/tools-BggNN5DV.d.ts +131 -0
  80. package/dist/tools-DFIxIj5p.d.mts +131 -0
  81. package/package.json +38 -2
package/dist/chrome.d.ts CHANGED
@@ -1,78 +1,101 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
+ import { e as FooterColumn, d as FamilySlug, N as NavItem } from './index-C6hDqOOS.js';
4
+ import { T as TocItem } from './hero-Dn37il-9.js';
5
+ import { a as Status } from './status-badge-BEOxeY9j.js';
6
+ export { A as AccountMenu, a as AccountMenuItem, b as AppShell, O as OCHK_APP_ACCOUNT, S as SessionAccountView, c as SessionState, d as ShellNavGroup, e as ShellNavItem, f as ShellSection, T as ThemeToggle, g as ToolShell, h as ToolShellProps } from './tool-shell-B1C7ahKE.js';
7
+ import './tools-BggNN5DV.js';
8
+ import './format.js';
3
9
 
4
- interface NavItem {
5
- href: string;
6
- label: ReactNode;
7
- active?: boolean;
8
- external?: boolean;
9
- }
10
- declare function SiteHeader({ home, brand, nav, actions, className, }: {
10
+ interface SiteHeaderProps {
11
11
  home?: string;
12
12
  brand?: ReactNode;
13
- nav?: NavItem[];
13
+ product?: string;
14
+ family?: boolean | FamilySlug;
15
+ nav?: readonly NavItem[];
16
+ search?: ReactNode;
14
17
  actions?: ReactNode;
18
+ variant?: 'site' | 'tool';
19
+ navOnPhone?: boolean;
20
+ menu?: ReactNode;
15
21
  className?: string;
16
- }): react.JSX.Element;
17
- interface FooterColumn {
18
- heading: string;
19
- links: NavItem[];
20
22
  }
21
- declare function SiteFooter({ columns, fineprint, meta, signature, className, }: {
22
- columns?: FooterColumn[];
23
+ declare function SiteHeader({ home, brand, product, family, nav, search, actions, variant, navOnPhone, menu: menuExtra, className, }: SiteHeaderProps): react.JSX.Element;
24
+ declare function SkipLink({ href, children }: {
25
+ href?: string;
26
+ children?: ReactNode;
27
+ }): react.JSX.Element;
28
+ declare const BANNER_TONE: {
29
+ readonly neutral: "border-border bg-muted";
30
+ readonly brand: "border-[color-mix(in_oklab,var(--oca-orange)_30%,var(--border))] bg-[color-mix(in_oklab,var(--oca-orange)_9%,var(--background))]";
31
+ readonly danger: "border-[color-mix(in_oklab,var(--destructive)_35%,var(--border))] bg-[color-mix(in_oklab,var(--destructive)_8%,var(--background))]";
32
+ };
33
+ declare function SiteBanner({ tone, children, action, className, }: {
34
+ tone?: keyof typeof BANNER_TONE;
35
+ children: ReactNode;
36
+ action?: ReactNode;
37
+ className?: string;
38
+ }): react.JSX.Element;
39
+ interface SiteFooterProps {
40
+ columns?: readonly FooterColumn[];
41
+ family?: boolean;
42
+ legal?: boolean;
43
+ compact?: boolean;
23
44
  fineprint?: ReactNode;
24
45
  meta?: ReactNode;
25
46
  signature?: boolean;
26
47
  className?: string;
48
+ }
49
+ declare function SiteFooter({ columns, family, legal, compact, fineprint, meta, signature, className, }: SiteFooterProps): react.JSX.Element;
50
+
51
+ declare function FamilyMenu({ current, className }: {
52
+ current?: FamilySlug;
53
+ className?: string;
27
54
  }): react.JSX.Element;
28
55
 
29
- interface ShellNavItem {
30
- href: string;
31
- label: string;
32
- icon?: ReactNode;
33
- active?: boolean;
34
- badge?: ReactNode;
35
- }
36
- interface ShellNavGroup {
37
- label?: string;
38
- items: ShellNavItem[];
39
- }
40
- interface ShellSection {
41
- id: string;
42
- label: string;
43
- title?: string;
44
- href: string;
45
- groups: ShellNavGroup[];
46
- }
47
- declare function AppShell({ nav, sections, activeSection, page: pageOverride, persistent, home, account, banner, footer, children, className, }: {
48
- nav?: ShellNavGroup[];
49
- sections?: ShellSection[];
50
- activeSection?: string;
51
- page?: string;
52
- persistent?: ShellNavGroup[];
53
- home?: string;
54
- account?: ReactNode;
55
- banner?: ReactNode;
56
- footer?: ReactNode;
56
+ declare function SignInFrame({ title, lead, children, error, fineprint, brand, home, back, art, caption, className, }: {
57
+ title?: ReactNode;
58
+ lead?: ReactNode;
57
59
  children: ReactNode;
60
+ error?: ReactNode;
61
+ fineprint?: ReactNode;
62
+ brand?: ReactNode;
63
+ home?: string;
64
+ back?: ReactNode;
65
+ art?: ReactNode;
66
+ caption?: ReactNode;
58
67
  className?: string;
59
68
  }): react.JSX.Element;
60
- interface AccountMenuItem {
69
+
70
+ interface DocsNavItem {
71
+ href: string;
72
+ label: ReactNode;
73
+ badge?: Status | ReactNode;
74
+ }
75
+ interface DocsNavSection {
61
76
  label: string;
62
- href?: string;
63
- onSelect?: () => void;
64
- icon?: ReactNode;
65
- destructive?: boolean;
77
+ items: DocsNavItem[];
66
78
  }
67
- declare function AccountMenu({ name, detail, items, nameFrom, }: {
68
- name: string;
69
- detail?: string;
70
- items: (AccountMenuItem | 'separator')[];
71
- nameFrom?: 'sm' | 'lg';
72
- }): react.JSX.Element;
73
- declare function ThemeToggle({ className }: {
79
+ declare function DocsNav({ sections, current, onNavigate, className, }: {
80
+ sections: readonly DocsNavSection[];
81
+ current: string;
82
+ onNavigate?: () => void;
74
83
  className?: string;
75
84
  }): react.JSX.Element;
85
+ declare const DOCS_HEADER_NAV: readonly NavItem[];
86
+ interface DocsShellProps {
87
+ nav: readonly DocsNavSection[];
88
+ current: string;
89
+ header?: ReactNode;
90
+ search?: ReactNode;
91
+ actions?: ReactNode;
92
+ breadcrumbs?: ReactNode;
93
+ toc?: TocItem[];
94
+ pager?: ReactNode;
95
+ footer?: ReactNode;
96
+ children: ReactNode;
97
+ }
98
+ declare function DocsShell({ nav, current, header, search, actions, breadcrumbs, toc, pager, footer, children, }: DocsShellProps): react.JSX.Element;
76
99
 
77
100
  interface ShellPlace {
78
101
  section?: string;
@@ -81,4 +104,4 @@ interface ShellPlace {
81
104
  declare const ShellContext: react.Context<ShellPlace>;
82
105
  declare function useShellPlace(): ShellPlace;
83
106
 
84
- export { AccountMenu, type AccountMenuItem, AppShell, type FooterColumn, type NavItem, ShellContext, type ShellNavGroup, type ShellNavItem, type ShellPlace, type ShellSection, SiteFooter, SiteHeader, ThemeToggle, useShellPlace };
107
+ export { DOCS_HEADER_NAV, DocsNav, type DocsNavItem, type DocsNavSection, DocsShell, type DocsShellProps, FamilyMenu, FooterColumn, NavItem, ShellContext, type ShellPlace, SignInFrame, SiteBanner, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderProps, SkipLink, useShellPlace };