aws-data-landing-zone 0.5.1 → 0.6.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.
Files changed (134) hide show
  1. package/.compatignore +41 -0
  2. package/.dlz-reports/account-audit.json +90 -0
  3. package/.dlz-reports/account-log.json +81 -0
  4. package/.dlz-reports/account-management.json +11 -0
  5. package/.dlz-reports/account-wl-dev-a.json +129 -0
  6. package/.dlz-reports/account-workloads-ou.json +11 -0
  7. package/.dlz-reports/raw.json +1982 -0
  8. package/.jsii +717 -268
  9. package/.nvmrc +1 -1
  10. package/API.md +267 -36
  11. package/CHANGELOG.md +43 -0
  12. package/README.md +4 -5
  13. package/docs/.nvmrc +1 -0
  14. package/docs/astro.config.ts +36 -3
  15. package/docs/package-lock.json +1292 -1276
  16. package/docs/package.json +17 -1
  17. package/docs/public/emojis/Angry.svg +8 -0
  18. package/docs/public/emojis/Crying.svg +8 -0
  19. package/docs/public/emojis/Scared.svg +6 -0
  20. package/docs/public/emojis/Shine.svg +15 -0
  21. package/docs/public/emojis/Shock.svg +8 -0
  22. package/docs/public/emojis/Shout.svg +8 -0
  23. package/docs/public/emojis/Smiling.svg +6 -0
  24. package/docs/public/favicon.svg +8 -0
  25. package/docs/public/images/datachef-logo-dark.png +0 -0
  26. package/docs/public/images/datachef-logo-light.png +0 -0
  27. package/docs/public/images/dlz-logo-dark.png +0 -0
  28. package/docs/public/images/dlz-logo-light.png +0 -0
  29. package/docs/public/images/hero-diagram-dark.png +0 -0
  30. package/docs/public/images/hero-diagram-light.png +0 -0
  31. package/docs/public/images/hero-panel-dark.png +0 -0
  32. package/docs/public/images/hero-panel-dark.svg +25 -0
  33. package/docs/public/images/hero-panel-light.png +0 -0
  34. package/docs/public/images/hero-panel-light.svg +25 -0
  35. package/docs/public/robots.txt +4 -0
  36. package/docs/src/components/Header.astro +143 -0
  37. package/docs/src/components/Navbar.astro +89 -0
  38. package/docs/src/components/Navbar.tsx +113 -0
  39. package/docs/src/components/SearchBar.astro +202 -0
  40. package/docs/src/components/ui/button.tsx +54 -0
  41. package/docs/src/components/ui/separator.tsx +26 -0
  42. package/docs/src/content/docs/components/security/scps.mdx +41 -20
  43. package/docs/src/content/docs/introduction.mdx +0 -4
  44. package/docs/src/content/docs/reference/api.md +267 -36
  45. package/docs/src/content/docs/reference/defaults.mdx +0 -3
  46. package/docs/src/lib/utils.ts +6 -0
  47. package/docs/src/pages/index.astro +950 -0
  48. package/docs/src/pages/sitemap.xml.ts +24 -0
  49. package/docs/src/styles/custom.css +248 -0
  50. package/docs/src/styles/landing.css +350 -0
  51. package/docs/tailwind.config.mjs +67 -0
  52. package/lib/constructs/account-chatbots/index.js +1 -1
  53. package/lib/constructs/dlz-account-budgets/index.js +1 -1
  54. package/lib/constructs/dlz-budget/index.js +1 -1
  55. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  56. package/lib/constructs/dlz-cost-anomaly-detection/index.js +1 -1
  57. package/lib/constructs/dlz-data-exports/dlz-data-export.js +1 -1
  58. package/lib/constructs/dlz-data-exports/dlz-data-exports-athena.js +1 -1
  59. package/lib/constructs/dlz-data-exports/dlz-data-exports-data-plane.js +1 -1
  60. package/lib/constructs/dlz-data-exports/dlz-data-exports-tag-activation.js +1 -1
  61. package/lib/constructs/dlz-guardduty/guardduty-delegated-admin.js +1 -1
  62. package/lib/constructs/dlz-guardduty/guardduty-member-features.js +1 -1
  63. package/lib/constructs/dlz-guardduty/guardduty-org-config.js +1 -1
  64. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  65. package/lib/constructs/dlz-macie/macie-delegated-admin.js +1 -1
  66. package/lib/constructs/dlz-macie/macie-members.js +1 -1
  67. package/lib/constructs/dlz-macie/macie-org-config.js +1 -1
  68. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  69. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  70. package/lib/constructs/dlz-stack/index.js +1 -1
  71. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  72. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  73. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  74. package/lib/constructs/iam/iam-account-alias.js +1 -1
  75. package/lib/constructs/iam/iam-password-policy.js +1 -1
  76. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  77. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  78. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  79. package/lib/constructs/organization-policies/scp-merge.d.ts +12 -3
  80. package/lib/constructs/organization-policies/scp-merge.js +15 -6
  81. package/lib/constructs/organization-policies/scp-presets/control-tower-exemption.js +1 -1
  82. package/lib/constructs/organization-policies/scp-presets/deny-actions-outside-regions.js +1 -1
  83. package/lib/constructs/organization-policies/scp-presets/deny-backup-vault-lock.js +1 -1
  84. package/lib/constructs/organization-policies/scp-presets/deny-bedrock-provisioned-throughput.js +1 -1
  85. package/lib/constructs/organization-policies/scp-presets/deny-cfn-stacks-without-standard-tags.js +1 -1
  86. package/lib/constructs/organization-policies/scp-presets/deny-dedicated-infra-and-subscriptions.js +1 -1
  87. package/lib/constructs/organization-policies/scp-presets/deny-disabling-security-services.js +1 -1
  88. package/lib/constructs/organization-policies/scp-presets/deny-domain-registrations.js +1 -1
  89. package/lib/constructs/organization-policies/scp-presets/deny-glacier-vault-lock.js +1 -1
  90. package/lib/constructs/organization-policies/scp-presets/deny-iam-without-permissions-boundary.js +1 -1
  91. package/lib/constructs/organization-policies/scp-presets/deny-leaving-organization.js +1 -1
  92. package/lib/constructs/organization-policies/scp-presets/deny-marketplace-subscriptions.js +1 -1
  93. package/lib/constructs/organization-policies/scp-presets/deny-reserved-capacity-purchases.js +1 -1
  94. package/lib/constructs/organization-policies/scp-presets/deny-resource-creation-without-standard-tags.d.ts +25 -0
  95. package/lib/constructs/organization-policies/scp-presets/deny-resource-creation-without-standard-tags.js +118 -0
  96. package/lib/constructs/organization-policies/scp-presets/deny-root-credentials-management-in-member-accounts.js +1 -1
  97. package/lib/constructs/organization-policies/scp-presets/deny-root-user-actions.js +1 -1
  98. package/lib/constructs/organization-policies/scp-presets/deny-s3-object-lock-and-retention.js +1 -1
  99. package/lib/constructs/organization-policies/scp-presets/deny-s3-public-access-bypass.js +1 -1
  100. package/lib/constructs/organization-policies/scp-presets/deny-savings-plan-purchases.js +1 -1
  101. package/lib/constructs/organization-policies/scp-presets/deny-service-actions.js +1 -1
  102. package/lib/constructs/organization-policies/scp-presets/finops-account-baseline.js +1 -1
  103. package/lib/constructs/organization-policies/scp-presets/index.d.ts +1 -0
  104. package/lib/constructs/organization-policies/scp-presets/index.js +2 -1
  105. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  106. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  107. package/lib/data-landing-zone-client.js +1 -1
  108. package/lib/data-landing-zone-types.d.ts +50 -13
  109. package/lib/data-landing-zone-types.js +1 -1
  110. package/lib/data-landing-zone.js +3 -2
  111. package/lib/defaults.d.ts +0 -4
  112. package/lib/defaults.js +3 -18
  113. package/lib/lib/report/index.js +1 -1
  114. package/lib/scripts/bootstrap/index.js +2 -2
  115. package/lib/scripts/index.js +1 -1
  116. package/lib/stacks/organization/management/management-data-exports-stack.js +1 -1
  117. package/lib/stacks/organization/management/management-global-iam-identity-center-stack.js +1 -1
  118. package/lib/stacks/organization/management/management-global-stack.d.ts +14 -0
  119. package/lib/stacks/organization/management/management-global-stack.js +72 -6
  120. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  121. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  122. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  123. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  124. package/lib/stacks/organization/shared-services/finops/global-stack.js +3 -2
  125. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  126. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  127. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  128. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  129. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  130. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  131. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  132. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  133. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  134. package/package.json +17 -17
@@ -0,0 +1,143 @@
1
+ ---
2
+ // @ts-nocheck — virtual:starlight/* modules have no type declarations
3
+ import Search from 'virtual:starlight/components/Search';
4
+ import SocialIcons from 'virtual:starlight/components/SocialIcons';
5
+ import SearchBar from './SearchBar.astro';
6
+ import type { Props } from '@astrojs/starlight/props';
7
+ ---
8
+
9
+ <div class="dlz-docs-navbar sl-flex">
10
+ <!-- Logo (single SVG — letters use currentColor → color set by theme CSS, hexagon fixed amber) -->
11
+ <a href="/" class="dlz-docs-logo-link" aria-label="Data Landing Zone home">
12
+ <svg class="dlz-docs-logo" xmlns="http://www.w3.org/2000/svg" width="90" height="40" viewBox="0 0 90 40" fill="none" aria-label="DLZ">
13
+ <g clip-path="url(#dlz-hdr)">
14
+ <path d="M80.9902 26.3561H89.8767V29.6956H76.4054V26.6391L85.2353 13.2809H76.4054V9.94141H89.8767V12.9979L80.9902 26.3561Z" fill="currentColor"/>
15
+ <path d="M67.9155 26.5542H74.4248V29.6956H63.9534V9.94141H67.9155V26.5542Z" fill="currentColor"/>
16
+ <path d="M50.5727 9.94141C52.6481 9.94141 54.4688 10.3471 56.0348 11.1584C57.6196 11.9697 58.8366 13.13 59.6856 14.6394C60.5535 16.1299 60.9875 17.8657 60.9875 19.8468C60.9875 21.8279 60.5535 23.5637 59.6856 25.0542C58.8366 26.5259 57.6196 27.6674 56.0348 28.4787C54.4688 29.29 52.6481 29.6956 50.5727 29.6956H43.6672V9.94141H50.5727ZM50.4311 26.3278C52.5066 26.3278 54.1103 25.7617 55.2423 24.6297C56.3744 23.4977 56.9404 21.9034 56.9404 19.8468C56.9404 17.7903 56.3744 16.1865 55.2423 15.0356C54.1103 13.8658 52.5066 13.2809 50.4311 13.2809H47.6293V26.3278H50.4311Z" fill="currentColor"/>
17
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M34.2126 10.0862V11.1632L26.5573 15.551V24.3741L34.2126 28.7618V29.8389L24.7546 35.2995L17.1063 30.9158L9.45788 35.2995L-6.10352e-05 29.8389V28.7618L7.65527 24.3741V15.551L-6.10352e-05 11.1632V10.0862L9.45816 4.62549L17.1063 9.00914L24.7543 4.62549L34.2126 10.0862ZM9.45096 15.5509V24.374L17.1063 28.7618L24.7616 24.374V15.5509L17.1063 11.1631L9.45096 15.5509Z" fill="#FFBA3B"/>
18
+ <path d="M17.1063 39.7149L20.9812 37.4939L17.1063 35.2729L13.2314 37.4939L17.1063 39.7149Z" fill="currentColor"/>
19
+ <path d="M-6.10352e-05 15.5205L3.87486 17.7415V22.1835L-6.10352e-05 24.4045V15.5205Z" fill="currentColor"/>
20
+ <path d="M34.2126 15.5205V24.4045L30.3377 22.1835V17.7415L34.2126 15.5205Z" fill="currentColor"/>
21
+ <path d="M17.1063 4.65145L20.9812 2.43046L17.1063 0.209473L13.2314 2.43046L17.1063 4.65145Z" fill="currentColor"/>
22
+ <path d="M17.1063 15.5205L20.9812 17.7415V22.1835L17.1063 24.4045L13.2314 22.1835V17.7415L17.1063 15.5205Z" fill="currentColor"/>
23
+ </g>
24
+ <defs><clipPath id="dlz-hdr"><rect width="90" height="39.9248" fill="white"/></clipPath></defs>
25
+ </svg>
26
+ </a>
27
+
28
+ <!-- Search (centred via flex-grow) -->
29
+ <div class="dlz-docs-search">
30
+ <SearchBar variant="docs"><Search {...Astro.props} /></SearchBar>
31
+ </div>
32
+
33
+ <!-- Right: GitHub + theme toggle -->
34
+ <div class="dlz-docs-right sl-flex">
35
+ <SocialIcons {...Astro.props} />
36
+ <button id="dlz-docs-theme-toggle" class="dlz-theme-btn" aria-label="Toggle dark mode">
37
+ <svg class="dlz-theme-sun" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>
38
+ <svg class="dlz-theme-moon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>
39
+ <span class="dlz-theme-label-dark">Light</span>
40
+ <span class="dlz-theme-label-light">Dark</span>
41
+ </button>
42
+ </div>
43
+ </div>
44
+
45
+ <style>
46
+ .dlz-docs-navbar {
47
+ width: 100%;
48
+ height: 100%;
49
+ align-items: center;
50
+ justify-content: space-between;
51
+ gap: 1.5rem;
52
+ }
53
+
54
+ .dlz-docs-logo-link {
55
+ display: flex;
56
+ align-items: center;
57
+ text-decoration: none;
58
+ flex-shrink: 0;
59
+ }
60
+
61
+ .dlz-docs-logo { display: block; }
62
+
63
+ .dlz-docs-search {
64
+ flex: 1;
65
+ display: flex;
66
+ justify-content: center;
67
+ min-width: 0;
68
+ }
69
+
70
+ .dlz-docs-right {
71
+ align-items: center;
72
+ gap: 0.75rem;
73
+ flex-shrink: 0;
74
+ }
75
+
76
+ /* Style social icon to match landing page icon button */
77
+ .dlz-docs-right :global(a[rel~='me']) {
78
+ border-radius: 0.75rem;
79
+ padding: 0.5rem;
80
+ color: var(--sl-color-text);
81
+ transition: background 0.15s;
82
+ }
83
+ .dlz-docs-right :global(a[rel~='me']:hover) {
84
+ background: var(--sl-color-gray-6);
85
+ }
86
+
87
+ /* Theme toggle button — matches landing page */
88
+ .dlz-theme-btn {
89
+ background: transparent;
90
+ border: none;
91
+ padding: 0.5rem 1rem;
92
+ height: 36px;
93
+ border-radius: 0.75rem;
94
+ font-family: var(--sl-font);
95
+ font-size: 0.875rem;
96
+ font-weight: 500;
97
+ color: var(--sl-color-text);
98
+ cursor: pointer;
99
+ display: flex;
100
+ align-items: center;
101
+ gap: 0.5rem;
102
+ transition: background 0.15s;
103
+ }
104
+ .dlz-theme-btn:hover {
105
+ background: var(--sl-color-gray-6);
106
+ }
107
+
108
+ /* Default (dark mode): show moon + "Dark" */
109
+ .dlz-theme-sun { display: none; }
110
+ .dlz-theme-moon { display: inline-block; }
111
+ .dlz-theme-label-light { display: none; }
112
+ .dlz-theme-label-dark { display: inline; }
113
+
114
+ /* Light mode: show sun + "Light" */
115
+ :global([data-theme='light']) .dlz-theme-sun { display: inline-block; }
116
+ :global([data-theme='light']) .dlz-theme-moon { display: none; }
117
+ :global([data-theme='light']) .dlz-theme-label-light { display: inline; }
118
+ :global([data-theme='light']) .dlz-theme-label-dark { display: none; }
119
+
120
+ /* Mobile: icon-only theme toggle */
121
+ @media (max-width: 50rem) {
122
+ .dlz-theme-btn {
123
+ padding: 0.5rem;
124
+ min-width: 36px;
125
+ }
126
+ .dlz-theme-label-dark,
127
+ .dlz-theme-label-light {
128
+ display: none !important;
129
+ }
130
+ }
131
+ </style>
132
+
133
+ <script>
134
+ (function () {
135
+ var btn = document.getElementById('dlz-docs-theme-toggle');
136
+ if (!btn) return;
137
+ btn.addEventListener('click', function () {
138
+ var next = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark';
139
+ document.documentElement.dataset.theme = next;
140
+ localStorage.setItem('starlight-theme', next);
141
+ });
142
+ })();
143
+ </script>
@@ -0,0 +1,89 @@
1
+ ---
2
+ // @ts-nocheck — virtual:starlight/* modules have no type declarations in this context
3
+ import SearchBar from './SearchBar.astro';
4
+ import Search from 'virtual:starlight/components/Search';
5
+ interface Props {
6
+ showNavLinks?: boolean;
7
+ }
8
+ const { showNavLinks = true } = Astro.props;
9
+ ---
10
+
11
+ <header class="dlz-navbar">
12
+ <div class="dlz-navbar-inner">
13
+ <div class="dlz-navbar-left">
14
+ <a href="/" class="dlz-logo-link" aria-label="Data Landing Zone home">
15
+ <svg class="dlz-logo" xmlns="http://www.w3.org/2000/svg" width="90" height="40" viewBox="0 0 90 40" fill="none" aria-label="DLZ">
16
+ <g clip-path="url(#dlz-nav)">
17
+ <path d="M80.9902 26.3561H89.8767V29.6956H76.4054V26.6391L85.2353 13.2809H76.4054V9.94141H89.8767V12.9979L80.9902 26.3561Z" fill="currentColor"/>
18
+ <path d="M67.9155 26.5542H74.4248V29.6956H63.9534V9.94141H67.9155V26.5542Z" fill="currentColor"/>
19
+ <path d="M50.5727 9.94141C52.6481 9.94141 54.4688 10.3471 56.0348 11.1584C57.6196 11.9697 58.8366 13.13 59.6856 14.6394C60.5535 16.1299 60.9875 17.8657 60.9875 19.8468C60.9875 21.8279 60.5535 23.5637 59.6856 25.0542C58.8366 26.5259 57.6196 27.6674 56.0348 28.4787C54.4688 29.29 52.6481 29.6956 50.5727 29.6956H43.6672V9.94141H50.5727ZM50.4311 26.3278C52.5066 26.3278 54.1103 25.7617 55.2423 24.6297C56.3744 23.4977 56.9404 21.9034 56.9404 19.8468C56.9404 17.7903 56.3744 16.1865 55.2423 15.0356C54.1103 13.8658 52.5066 13.2809 50.4311 13.2809H47.6293V26.3278H50.4311Z" fill="currentColor"/>
20
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M34.2126 10.0862V11.1632L26.5573 15.551V24.3741L34.2126 28.7618V29.8389L24.7546 35.2995L17.1063 30.9158L9.45788 35.2995L-6.10352e-05 29.8389V28.7618L7.65527 24.3741V15.551L-6.10352e-05 11.1632V10.0862L9.45816 4.62549L17.1063 9.00914L24.7543 4.62549L34.2126 10.0862ZM9.45096 15.5509V24.374L17.1063 28.7618L24.7616 24.374V15.5509L17.1063 11.1631L9.45096 15.5509Z" fill="#FFBA3B"/>
21
+ <path d="M17.1063 39.7149L20.9812 37.4939L17.1063 35.2729L13.2314 37.4939L17.1063 39.7149Z" fill="currentColor"/>
22
+ <path d="M-6.10352e-05 15.5205L3.87486 17.7415V22.1835L-6.10352e-05 24.4045V15.5205Z" fill="currentColor"/>
23
+ <path d="M34.2126 15.5205V24.4045L30.3377 22.1835V17.7415L34.2126 15.5205Z" fill="currentColor"/>
24
+ <path d="M17.1063 4.65145L20.9812 2.43046L17.1063 0.209473L13.2314 2.43046L17.1063 4.65145Z" fill="currentColor"/>
25
+ <path d="M17.1063 15.5205L20.9812 17.7415V22.1835L17.1063 24.4045L13.2314 22.1835V17.7415L17.1063 15.5205Z" fill="currentColor"/>
26
+ </g>
27
+ <defs><clipPath id="dlz-nav"><rect width="90" height="39.9248" fill="white"/></clipPath></defs>
28
+ </svg>
29
+ </a>
30
+
31
+ {showNavLinks && (
32
+ <nav class="dlz-nav-links">
33
+ <a href="/introduction" class="dlz-nav-btn">Introduction</a>
34
+ <a href="/components/account-management/accounts" class="dlz-nav-btn">Components</a>
35
+ </nav>
36
+ )}
37
+ </div>
38
+
39
+ <div class="dlz-navbar-right">
40
+ <SearchBar variant="landing" />
41
+ <span class="dlz-navbar-divider" aria-hidden="true"></span>
42
+
43
+ <a
44
+ href="https://github.com/DataChefHQ/aws-data-landing-zone"
45
+ target="_blank"
46
+ rel="noopener"
47
+ class="dlz-icon-btn"
48
+ aria-label="GitHub repository"
49
+ >
50
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
51
+ <path d="M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z"/>
52
+ </svg>
53
+ </a>
54
+
55
+ <button
56
+ id="dlz-theme-toggle"
57
+ class="dlz-theme-btn"
58
+ aria-label="Toggle dark mode"
59
+ >
60
+ <svg class="dlz-theme-moon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>
61
+ <svg class="dlz-theme-sun" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>
62
+ <span class="dlz-theme-label-dark">Dark</span>
63
+ <span class="dlz-theme-label-light">Light</span>
64
+ </button>
65
+ </div>
66
+ </div>
67
+
68
+ <!-- Hidden search trigger: injects <site-search> so Cmd+K and click work on landing page.
69
+ NOTE: no `pointer-events:none` here — it is an inherited property and would propagate
70
+ into the <dialog> (a DOM descendant), making the modal unclickable. The 0×0 size +
71
+ opacity:0 + overflow:hidden already hide the trigger button.
72
+ NOTE: no `aria-hidden` here — the modal dialog is a DOM descendant, and hiding it from
73
+ assistive tech while it holds focus throws a "blocked aria-hidden on focused element"
74
+ error. The trigger button is hidden visually; the dialog stays accessible. -->
75
+ <div style="position:absolute;width:0;height:0;overflow:hidden;opacity:0">
76
+ <Search />
77
+ </div>
78
+ </header>
79
+
80
+ <script>
81
+ (function () {
82
+ var btn = document.getElementById('dlz-theme-toggle');
83
+ if (!btn) return;
84
+ btn.addEventListener('click', function () {
85
+ var isDark = document.documentElement.classList.toggle('dark');
86
+ localStorage.setItem('starlight-theme', isDark ? 'dark' : 'light');
87
+ });
88
+ })();
89
+ </script>
@@ -0,0 +1,113 @@
1
+ import * as React from 'react';
2
+ import { Moon, Sun, Search } from 'lucide-react';
3
+
4
+ function GithubIcon({ size = 20 }: { size?: number }) {
5
+ return (
6
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
7
+ <path d="M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z"/>
8
+ </svg>
9
+ );
10
+ }
11
+ import { Button } from './ui/button';
12
+ import { cn } from '../lib/utils';
13
+
14
+ interface NavbarProps {
15
+ showNavLinks?: boolean;
16
+ }
17
+
18
+ export function Navbar({ showNavLinks = true }: NavbarProps) {
19
+ const [isDark, setIsDark] = React.useState(false);
20
+
21
+ React.useEffect(() => {
22
+ const stored = localStorage.getItem('starlight-theme');
23
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
24
+ const dark = stored ? stored === 'dark' : prefersDark;
25
+ setIsDark(dark);
26
+ document.documentElement.classList.toggle('dark', dark);
27
+ }, []);
28
+
29
+ function toggleTheme() {
30
+ const next = !isDark;
31
+ setIsDark(next);
32
+ document.documentElement.classList.toggle('dark', next);
33
+ localStorage.setItem('starlight-theme', next ? 'dark' : 'light');
34
+ }
35
+
36
+ return (
37
+ <header className="dlz-navbar">
38
+ <div className="dlz-navbar-inner">
39
+ {/* Left: logo + nav */}
40
+ <div className="dlz-navbar-left">
41
+ <a href="/" className="dlz-logo-link" aria-label="Data Landing Zone home">
42
+ {/* Light logo */}
43
+ <svg className={cn('dlz-logo', isDark && 'hidden')} xmlns="http://www.w3.org/2000/svg" width="90" height="40" viewBox="0 0 90 40" fill="none" aria-label="DLZ">
44
+ <g clipPath="url(#dlz-nl)">
45
+ <path d="M80.9902 26.3561H89.8767V29.6956H76.4054V26.6391L85.2353 13.2809H76.4054V9.94141H89.8767V12.9979L80.9902 26.3561Z" fill="#121B2B"/>
46
+ <path d="M67.9155 26.5542H74.4248V29.6956H63.9534V9.94141H67.9155V26.5542Z" fill="#121B2B"/>
47
+ <path d="M50.5727 9.94141C52.6481 9.94141 54.4688 10.3471 56.0348 11.1584C57.6196 11.9697 58.8366 13.13 59.6856 14.6394C60.5535 16.1299 60.9875 17.8657 60.9875 19.8468C60.9875 21.8279 60.5535 23.5637 59.6856 25.0542C58.8366 26.5259 57.6196 27.6674 56.0348 28.4787C54.4688 29.29 52.6481 29.6956 50.5727 29.6956H43.6672V9.94141H50.5727ZM50.4311 26.3278C52.5066 26.3278 54.1103 25.7617 55.2423 24.6297C56.3744 23.4977 56.9404 21.9034 56.9404 19.8468C56.9404 17.7903 56.3744 16.1865 55.2423 15.0356C54.1103 13.8658 52.5066 13.2809 50.4311 13.2809H47.6293V26.3278H50.4311Z" fill="#121B2B"/>
48
+ <path fillRule="evenodd" clipRule="evenodd" d="M34.2126 10.0862V11.1632L26.5573 15.551V24.3741L34.2126 28.7618V29.8389L24.7546 35.2995L17.1063 30.9158L9.45788 35.2995L-6.10352e-05 29.8389V28.7618L7.65527 24.3741V15.551L-6.10352e-05 11.1632V10.0862L9.45816 4.62549L17.1063 9.00914L24.7543 4.62549L34.2126 10.0862ZM9.45096 15.5509V24.374L17.1063 28.7618L24.7616 24.374V15.5509L17.1063 11.1631L9.45096 15.5509Z" fill="#FC9934"/>
49
+ <path d="M17.1063 39.7149L20.9812 37.4939L17.1063 35.2729L13.2314 37.4939L17.1063 39.7149Z" fill="#121B2B"/>
50
+ <path d="M-6.10352e-05 15.5205L3.87486 17.7415V22.1835L-6.10352e-05 24.4045V15.5205Z" fill="#121B2B"/>
51
+ <path d="M34.2126 15.5205V24.4045L30.3377 22.1835V17.7415L34.2126 15.5205Z" fill="#121B2B"/>
52
+ <path d="M17.1063 4.65145L20.9812 2.43046L17.1063 0.209473L13.2314 2.43046L17.1063 4.65145Z" fill="#121B2B"/>
53
+ <path d="M17.1063 15.5205L20.9812 17.7415V22.1835L17.1063 24.4045L13.2314 22.1835V17.7415L17.1063 15.5205Z" fill="#121B2B"/>
54
+ </g>
55
+ <defs><clipPath id="dlz-nl"><rect width="90" height="39.9248" fill="white"/></clipPath></defs>
56
+ </svg>
57
+ {/* Dark logo */}
58
+ <svg className={cn('dlz-logo', !isDark && 'hidden')} xmlns="http://www.w3.org/2000/svg" width="90" height="40" viewBox="0 0 90 40" fill="none" aria-label="DLZ">
59
+ <g clipPath="url(#dlz-nd)">
60
+ <path d="M80.9901 26.4972H89.8766V29.8367H76.4053V26.7802L85.2352 13.4221H76.4053V10.0825H89.8766V13.139L80.9901 26.4972Z" fill="white"/>
61
+ <path d="M67.9155 26.6953H74.4248V29.8367H63.9534V10.0825H67.9155V26.6953Z" fill="white"/>
62
+ <path d="M50.5725 10.0825C52.6479 10.0825 54.4686 10.4882 56.0346 11.2995C57.6195 12.1108 58.8364 13.2711 59.6854 14.7805C60.5533 16.271 60.9873 18.0068 60.9873 19.9879C60.9873 21.969 60.5533 23.7048 59.6854 25.1953C58.8364 26.667 57.6195 27.8085 56.0346 28.6198C54.4686 29.4311 52.6479 29.8367 50.5725 29.8367H43.667V10.0825H50.5725ZM50.431 26.4689C52.5064 26.4689 54.1101 25.9029 55.2422 24.7708C56.3742 23.6388 56.9402 22.0445 56.9402 19.9879C56.9402 17.9314 56.3742 16.3276 55.2422 15.1767C54.1101 14.0069 52.5064 13.4221 50.431 13.4221H47.6292V26.4689H50.431Z" fill="white"/>
63
+ <path fillRule="evenodd" clipRule="evenodd" d="M34.2127 10.0862V11.1632L26.5574 15.551V24.3741L34.2127 28.7618V29.8389L24.7547 35.2995L17.1063 30.9158L9.45794 35.2995L0 29.8389V28.7618L7.65533 24.3741V15.551L0 11.1632V10.0862L9.45822 4.62549L17.1063 9.00914L24.7544 4.62549L34.2127 10.0862ZM9.45102 15.5509V24.374L17.1063 28.7618L24.7617 24.374V15.5509L17.1063 11.1631L9.45102 15.5509Z" fill="#FFC840"/>
64
+ <path d="M17.1064 39.7149L20.9813 37.4939L17.1064 35.2729L13.2314 37.4939L17.1064 39.7149Z" fill="white"/>
65
+ <path d="M0 15.5205L3.87492 17.7415V22.1835L0 24.4045V15.5205Z" fill="white"/>
66
+ <path d="M34.2126 15.5205V24.4045L30.3376 22.1835V17.7415L34.2126 15.5205Z" fill="white"/>
67
+ <path d="M17.1064 4.65145L20.9813 2.43046L17.1064 0.209473L13.2314 2.43046L17.1064 4.65145Z" fill="white"/>
68
+ <path d="M17.1064 15.5205L20.9813 17.7415V22.1835L17.1064 24.4045L13.2314 22.1835V17.7415L17.1064 15.5205Z" fill="white"/>
69
+ </g>
70
+ <defs><clipPath id="dlz-nd"><rect width="90" height="39.9248" fill="white"/></clipPath></defs>
71
+ </svg>
72
+ </a>
73
+
74
+ {showNavLinks && (
75
+ <nav className="dlz-nav-links">
76
+ <a href="/introduction" className="dlz-nav-btn">Introduction</a>
77
+ <a href="/components/account-management/accounts" className="dlz-nav-btn">Components</a>
78
+ </nav>
79
+ )}
80
+ </div>
81
+
82
+ {/* Right: search + github + theme */}
83
+ <div className="dlz-navbar-right">
84
+ <div className="dlz-search-bar" role="search" aria-label="Site search">
85
+ <Search size={16} className="dlz-search-icon" aria-hidden="true" />
86
+ <span className="dlz-search-placeholder">Search</span>
87
+ </div>
88
+
89
+ <a
90
+ href="https://github.com/DataChefHQ/aws-data-landing-zone"
91
+ target="_blank"
92
+ rel="noopener"
93
+ className="dlz-icon-btn"
94
+ aria-label="GitHub repository"
95
+ >
96
+ <GithubIcon size={20} />
97
+ </a>
98
+
99
+ <Button
100
+ variant="ghost"
101
+ size="sm"
102
+ onClick={toggleTheme}
103
+ aria-label="Toggle dark mode"
104
+ className="dlz-theme-btn gap-2"
105
+ >
106
+ {isDark ? <Sun size={16} aria-hidden="true" /> : <Moon size={16} aria-hidden="true" />}
107
+ <span>{isDark ? 'Light' : 'Dark'}</span>
108
+ </Button>
109
+ </div>
110
+ </div>
111
+ </header>
112
+ );
113
+ }
@@ -0,0 +1,202 @@
1
+ ---
2
+ interface Props {
3
+ variant: 'landing' | 'docs';
4
+ }
5
+ const { variant } = Astro.props;
6
+ ---
7
+
8
+ {variant === 'landing' ? (
9
+ <button class="dlz-searchbar" id="dlz-landing-search" aria-label="Open search">
10
+ <svg class="dlz-searchbar-icon" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
11
+ <span class="dlz-searchbar-label">Search</span>
12
+ <kbd class="dlz-searchbar-kbd">⌘ K</kbd>
13
+ </button>
14
+ ) : (
15
+ <div class="dlz-searchbar dlz-searchbar--docs">
16
+ <slot />
17
+ </div>
18
+ )}
19
+
20
+ <style is:global>
21
+ /* ── Shared pill shape ── */
22
+ .dlz-searchbar,
23
+ .dlz-searchbar--docs button[data-open-modal] {
24
+ background: var(--muted, var(--sl-color-gray-6));
25
+ border: 1px solid var(--border, var(--sl-color-gray-5));
26
+ border-radius: 9999px;
27
+ padding: 8px 14px;
28
+ display: flex;
29
+ align-items: center;
30
+ gap: 8px;
31
+ cursor: pointer;
32
+ font-family: inherit;
33
+ font-size: 14px;
34
+ color: var(--muted-foreground, var(--sl-color-gray-3));
35
+ transition: border-color 0.15s;
36
+ }
37
+
38
+ /* Landing pill width */
39
+ .dlz-searchbar:not(.dlz-searchbar--docs) {
40
+ width: 260px;
41
+ }
42
+
43
+ /* Docs pill: button fills wrapper */
44
+ .dlz-searchbar--docs {
45
+ background: transparent;
46
+ border: none;
47
+ padding: 0;
48
+ display: flex;
49
+ width: 100%;
50
+ max-width: 280px;
51
+ }
52
+ .dlz-searchbar--docs button[data-open-modal] {
53
+ width: 100%;
54
+ justify-content: flex-start;
55
+ }
56
+
57
+ /* Dark mode — landing (.dark) and docs ([data-theme='dark']) */
58
+ .dark .dlz-searchbar,
59
+ .dark .dlz-searchbar--docs button[data-open-modal],
60
+ [data-theme='dark'] .dlz-searchbar,
61
+ [data-theme='dark'] .dlz-searchbar--docs button[data-open-modal] {
62
+ background: oklch(0.284 0.034 269.915);
63
+ border-color: oklch(1 0 0 / 0.1);
64
+ }
65
+
66
+ /* Icon */
67
+ .dlz-searchbar-icon,
68
+ .dlz-searchbar--docs button[data-open-modal] svg {
69
+ color: var(--muted-foreground, var(--sl-color-gray-3));
70
+ flex-shrink: 0;
71
+ width: 15px;
72
+ height: 15px;
73
+ }
74
+
75
+ /* Label text */
76
+ .dlz-searchbar-label {
77
+ white-space: nowrap;
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ flex: 1;
81
+ }
82
+
83
+ /* ⌘K badge — landing */
84
+ .dlz-searchbar-kbd {
85
+ font-size: 12px;
86
+ color: var(--muted-foreground, var(--sl-color-gray-3));
87
+ background: transparent;
88
+ border: 1px solid var(--border, var(--sl-color-gray-5));
89
+ border-radius: 6px;
90
+ padding: 1px 6px;
91
+ font-family: inherit;
92
+ white-space: nowrap;
93
+ flex-shrink: 0;
94
+ }
95
+ .dark .dlz-searchbar-kbd,
96
+ [data-theme='dark'] .dlz-searchbar-kbd {
97
+ border-color: oklch(1 0 0 / 0.15);
98
+ }
99
+
100
+ /* Ctrl+K badge — docs (Starlight renders <kbd><kbd>Ctrl</kbd><kbd>K</kbd></kbd>) */
101
+ /* Outer kbd = the single bordered pill; inner kbds = plain text */
102
+ .dlz-searchbar--docs button[data-open-modal] > kbd {
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 0;
106
+ background: transparent;
107
+ border: 1px solid var(--border, var(--sl-color-gray-5));
108
+ border-radius: 6px;
109
+ padding: 1px 6px;
110
+ font-family: inherit;
111
+ font-size: 12px;
112
+ color: var(--muted-foreground, var(--sl-color-gray-3));
113
+ flex-shrink: 0;
114
+ }
115
+ .dark .dlz-searchbar--docs button[data-open-modal] > kbd,
116
+ [data-theme='dark'] .dlz-searchbar--docs button[data-open-modal] > kbd {
117
+ border-color: oklch(1 0 0 / 0.15);
118
+ }
119
+ .dlz-searchbar--docs button[data-open-modal] > kbd > kbd {
120
+ border: none;
121
+ background: transparent;
122
+ padding: 0;
123
+ font-family: inherit;
124
+ font-size: 12px;
125
+ color: inherit;
126
+ }
127
+
128
+ /* Starlight hides text/kbd on mobile via sl-hidden — preserve that */
129
+ .dlz-searchbar--docs button[data-open-modal] .sl-hidden {
130
+ display: none;
131
+ }
132
+ @media (min-width: 50rem) {
133
+ .dlz-searchbar--docs button[data-open-modal] .md\:sl-block {
134
+ display: block;
135
+ flex: 1;
136
+ text-align: left;
137
+ }
138
+ .dlz-searchbar--docs button[data-open-modal] .md\:sl-flex {
139
+ display: flex;
140
+ }
141
+ }
142
+
143
+ /* Docs search: icon-only on mobile (Starlight breakpoint: 50rem = 800px) */
144
+ @media (max-width: 50rem) {
145
+ .dlz-searchbar--docs button[data-open-modal] {
146
+ background: transparent;
147
+ border: none;
148
+ padding: 0.5rem;
149
+ width: auto;
150
+ max-width: none;
151
+ border-radius: 0.75rem;
152
+ }
153
+ }
154
+
155
+ /* Landing responsive: narrow on tablet, icon-only on mobile */
156
+ @media (max-width: 768px) {
157
+ .dlz-searchbar:not(.dlz-searchbar--docs) { width: 160px; }
158
+ }
159
+ @media (max-width: 480px) {
160
+ .dlz-searchbar:not(.dlz-searchbar--docs) {
161
+ width: auto;
162
+ background: transparent;
163
+ border: none;
164
+ padding: 8px;
165
+ border-radius: 12px;
166
+ }
167
+ .dark .dlz-searchbar:not(.dlz-searchbar--docs) {
168
+ background: transparent;
169
+ }
170
+ .dlz-searchbar:not(.dlz-searchbar--docs) .dlz-searchbar-label,
171
+ .dlz-searchbar:not(.dlz-searchbar--docs) .dlz-searchbar-kbd {
172
+ display: none;
173
+ }
174
+ .dlz-searchbar:not(.dlz-searchbar--docs) .dlz-searchbar-icon {
175
+ width: 20px;
176
+ height: 20px;
177
+ color: var(--muted-foreground, var(--sl-color-gray-3));
178
+ }
179
+ .dlz-searchbar:not(.dlz-searchbar--docs):hover {
180
+ background: var(--accent);
181
+ }
182
+ }
183
+ </style>
184
+
185
+ <script>
186
+ (function () {
187
+ var btn = document.getElementById('dlz-landing-search');
188
+ if (!btn) return;
189
+ btn.addEventListener('click', function (e) {
190
+ e.stopPropagation();
191
+ var siteSearch = document.querySelector('site-search');
192
+ if (siteSearch) {
193
+ var openBtn = siteSearch.querySelector('button[data-open-modal]') as HTMLElement | null;
194
+ if (openBtn) {
195
+ openBtn.click();
196
+ }
197
+ } else {
198
+ window.location.href = '/introduction';
199
+ }
200
+ });
201
+ })();
202
+ </script>
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ import { Slot } from '@radix-ui/react-slot';
3
+ import { cva, type VariantProps } from 'class-variance-authority';
4
+ import { cn } from '../../lib/utils';
5
+
6
+ const buttonVariants = cva(
7
+ 'inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default:
12
+ 'bg-primary text-primary-foreground shadow-sm hover:opacity-90',
13
+ ghost:
14
+ 'bg-transparent text-foreground hover:bg-accent',
15
+ outline:
16
+ 'border border-border bg-transparent text-foreground hover:bg-accent',
17
+ inverse:
18
+ 'bg-foreground text-background shadow-sm hover:opacity-90',
19
+ },
20
+ size: {
21
+ default: 'h-10 px-4 py-2 text-sm rounded-md',
22
+ xl: 'h-14 px-8 py-2 text-lg rounded-lg',
23
+ sm: 'h-9 px-3 text-sm rounded-md',
24
+ icon: 'h-9 w-9 rounded-md',
25
+ },
26
+ },
27
+ defaultVariants: {
28
+ variant: 'default',
29
+ size: 'default',
30
+ },
31
+ }
32
+ );
33
+
34
+ export interface ButtonProps
35
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
36
+ VariantProps<typeof buttonVariants> {
37
+ asChild?: boolean;
38
+ }
39
+
40
+ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
41
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
42
+ const Comp = asChild ? Slot : 'button';
43
+ return (
44
+ <Comp
45
+ className={cn(buttonVariants({ variant, size, className }))}
46
+ ref={ref}
47
+ {...props}
48
+ />
49
+ );
50
+ }
51
+ );
52
+ Button.displayName = 'Button';
53
+
54
+ export { Button, buttonVariants };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { cn } from '../../lib/utils';
3
+
4
+ interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ orientation?: 'horizontal' | 'vertical';
6
+ decorative?: boolean;
7
+ }
8
+
9
+ const Separator = React.forwardRef<HTMLDivElement, SeparatorProps>(
10
+ ({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (
11
+ <div
12
+ ref={ref}
13
+ role={decorative ? 'none' : 'separator'}
14
+ aria-orientation={decorative ? undefined : orientation}
15
+ className={cn(
16
+ 'shrink-0 bg-dlz-border',
17
+ orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',
18
+ className
19
+ )}
20
+ {...props}
21
+ />
22
+ )
23
+ );
24
+ Separator.displayName = 'Separator';
25
+
26
+ export { Separator };