@realminc/ui 0.11.0 → 0.12.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.
package/README.md CHANGED
@@ -117,6 +117,8 @@ export default {
117
117
  };
118
118
  ```
119
119
 
120
+ Import `@realminc/ui/styles/layout.css` before your app stylesheet to use the shared section padding and navigation typography. Feature grids omit decorative item numbers by default. Pass `show_numbers` to `OaLineTable` when the order matters.
121
+
120
122
  ### Theme Colors
121
123
 
122
124
  Access theme colors directly:
@@ -14,6 +14,7 @@ export interface OaLineTableGridProps extends OaLineTableBaseProps {
14
14
  items: readonly OaLineTableItem[];
15
15
  columns?: 1 | 2;
16
16
  animated?: boolean;
17
+ show_numbers?: boolean;
17
18
  }
18
19
  export interface OaLineTableContractProps extends OaLineTableBaseProps {
19
20
  layout: 'contract';
@@ -1,32 +1,28 @@
1
+ import type { ComponentType, ReactNode } from 'react';
1
2
  export interface OaFooterLink {
2
3
  label: string;
3
4
  href: string;
5
+ external?: boolean;
4
6
  }
5
7
  export interface OaFooterSection {
6
8
  title: string;
7
- links: OaFooterLink[];
9
+ links: readonly OaFooterLink[];
8
10
  }
11
+ type FooterLinkProps = {
12
+ href: string;
13
+ className?: string;
14
+ children: ReactNode;
15
+ };
9
16
  export interface OaFooterProps {
10
- /** Footer sections with links */
11
- sections?: OaFooterSection[];
12
- /** Logo variant */
17
+ sections?: readonly OaFooterSection[];
13
18
  variant?: 'dark' | 'light';
14
- /** Custom link component */
15
- link_component?: React.ComponentType<{
16
- href: string;
17
- className?: string;
18
- children: React.ReactNode;
19
- }>;
20
- /** Copyright text */
19
+ link_component?: ComponentType<FooterLinkProps>;
20
+ render_link?: (link: OaFooterLink, className: string) => ReactNode;
21
21
  copyright?: string;
22
- /** Tagline */
23
22
  tagline?: string;
24
- /** Custom className */
23
+ actions?: ReactNode;
25
24
  className?: string;
25
+ container_class_name?: string;
26
26
  }
27
- /**
28
- * OaFooter - Realm Footer Component
29
- *
30
- * Shared footer for all Realm apps.
31
- */
32
- export declare function OaFooter({ sections, variant, link_component: LinkComponent, copyright, tagline, className, }: OaFooterProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function OaFooter({ sections, variant, link_component: LinkComponent, render_link, copyright, tagline, actions, className, container_class_name, }: OaFooterProps): import("react/jsx-runtime").JSX.Element;
28
+ export {};
package/dist/index.js CHANGED
@@ -7738,11 +7738,11 @@ function OaNavbar({
7738
7738
  transition: { duration: 0.3 },
7739
7739
  children: /* @__PURE__ */ jsx7(OaLogo, {
7740
7740
  variant,
7741
- size: "md"
7741
+ size: "sm"
7742
7742
  })
7743
7743
  }),
7744
7744
  logo_label && /* @__PURE__ */ jsx7("span", {
7745
- className: clsx("text-[11px] font-medium tracking-wider uppercase border-l pl-3", is_dark ? "text-realm-text-tertiary border-realm-border" : "text-light-text-tertiary border-light-border"),
7745
+ className: clsx("border-l pl-3 text-sm font-normal", is_dark ? "text-realm-text-tertiary border-realm-border" : "text-light-text-tertiary border-light-border"),
7746
7746
  children: logo_label
7747
7747
  })
7748
7748
  ]
@@ -7766,7 +7766,7 @@ function OaNavbar({
7766
7766
  transition: { duration: 0.3, delay: animate ? i * 0.03 : 0 },
7767
7767
  children: /* @__PURE__ */ jsx7(LinkComponent, {
7768
7768
  href: link.href,
7769
- className: clsx("text-[13px] transition-colors duration-200", is_active ? is_dark ? "text-realm-text-primary" : "text-light-text-primary" : is_dark ? "text-realm-text-tertiary hover:text-realm-text-primary" : "text-light-text-tertiary hover:text-light-text-primary"),
7769
+ className: clsx("text-sm font-normal transition-colors duration-200", is_active ? is_dark ? "text-realm-text-primary" : "text-light-text-primary" : is_dark ? "text-[#a3a3a3] hover:text-white" : "text-light-text-tertiary hover:text-light-text-primary"),
7770
7770
  children: link.label
7771
7771
  })
7772
7772
  }, link.href);
@@ -7796,31 +7796,54 @@ function OaFooter({
7796
7796
  sections = [],
7797
7797
  variant = "dark",
7798
7798
  link_component: LinkComponent = OaDefaultLink2,
7799
- copyright = `© ${new Date().getFullYear()} Realm. All rights reserved.`,
7800
- tagline = "The sovereign layer.",
7801
- className
7799
+ render_link,
7800
+ copyright = `Copyright © ${new Date().getFullYear()} Realm. All rights reserved.`,
7801
+ tagline = "Research and engineering for gpu computing and systems software.",
7802
+ actions,
7803
+ className,
7804
+ container_class_name = "mx-auto max-w-7xl px-4 lg:px-8"
7802
7805
  }) {
7803
7806
  const is_dark = variant === "dark";
7807
+ const link_class = clsx("transition-colors", is_dark ? "hover:text-white" : "hover:text-[#0a0a0a]");
7808
+ const icon_class = "size-4 shrink-0";
7804
7809
  return /* @__PURE__ */ jsx8("footer", {
7805
- className: clsx("relative py-16", is_dark ? "bg-realm-bg-base text-white" : "bg-white text-light-text-primary", className),
7810
+ className: clsx("relative", is_dark ? "bg-[#0a0a0a] text-white" : "bg-white text-[#0a0a0a]", className),
7806
7811
  children: /* @__PURE__ */ jsxs3("div", {
7807
- className: "max-w-7xl mx-auto px-4 lg:px-8",
7812
+ className: clsx("py-20 lg:py-24", container_class_name),
7808
7813
  children: [
7809
7814
  sections.length > 0 && /* @__PURE__ */ jsx8("div", {
7810
- className: "grid grid-cols-2 md:grid-cols-4 gap-8 mb-12",
7815
+ className: clsx("mb-16 grid grid-cols-1 gap-x-8 gap-y-10 text-sm sm:grid-cols-2 lg:mb-20 lg:grid-cols-4", is_dark ? "text-[#a3a3a3]" : "text-[#525252]"),
7811
7816
  children: sections.map((section) => /* @__PURE__ */ jsxs3("div", {
7812
7817
  children: [
7813
7818
  /* @__PURE__ */ jsx8("h4", {
7814
- className: clsx("text-[11px] font-medium uppercase tracking-wider mb-4", is_dark ? "text-realm-text-tertiary" : "text-light-text-tertiary"),
7819
+ className: "mb-4 font-bold",
7815
7820
  children: section.title
7816
7821
  }),
7817
7822
  /* @__PURE__ */ jsx8("ul", {
7818
- className: "space-y-2",
7823
+ className: "space-y-3",
7819
7824
  children: section.links.map((link) => /* @__PURE__ */ jsx8("li", {
7820
- children: /* @__PURE__ */ jsx8(LinkComponent, {
7825
+ children: render_link ? render_link(link, link_class) : link.external ? /* @__PURE__ */ jsxs3("a", {
7821
7826
  href: link.href,
7822
- className: clsx("text-[13px] transition-colors", is_dark ? "text-realm-text-secondary hover:text-white" : "text-light-text-secondary hover:text-light-text-primary"),
7823
- children: link.label
7827
+ target: "_blank",
7828
+ rel: "noopener noreferrer",
7829
+ className: clsx("inline-flex items-center gap-1.5", link_class),
7830
+ children: [
7831
+ link.label,
7832
+ /* @__PURE__ */ jsx8(ExternalLink, {
7833
+ className: icon_class,
7834
+ "aria-hidden": "true"
7835
+ })
7836
+ ]
7837
+ }) : /* @__PURE__ */ jsxs3(LinkComponent, {
7838
+ href: link.href,
7839
+ className: clsx("inline-flex items-center gap-1.5", link_class),
7840
+ children: [
7841
+ link.label,
7842
+ /* @__PURE__ */ jsx8(ArrowRight, {
7843
+ className: icon_class,
7844
+ "aria-hidden": "true"
7845
+ })
7846
+ ]
7824
7847
  })
7825
7848
  }, link.href))
7826
7849
  })
@@ -7828,25 +7851,35 @@ function OaFooter({
7828
7851
  }, section.title))
7829
7852
  }),
7830
7853
  /* @__PURE__ */ jsxs3("div", {
7831
- className: clsx("flex items-center justify-between pt-8", "border-t", is_dark ? "border-white/10" : "border-black/10"),
7854
+ className: "flex flex-col items-start gap-8 pt-8 sm:flex-row sm:items-center sm:justify-between",
7832
7855
  children: [
7833
7856
  /* @__PURE__ */ jsxs3("div", {
7834
- className: "flex items-center gap-4",
7857
+ className: "flex items-center gap-3",
7835
7858
  children: [
7836
- /* @__PURE__ */ jsx8(OaLogo, {
7837
- variant,
7838
- size: "lg"
7859
+ /* @__PURE__ */ jsx8(LinkComponent, {
7860
+ href: "/",
7861
+ className: clsx("flex size-10 shrink-0 items-center justify-center rounded-full border transition-colors", is_dark ? "border-white/10 hover:border-white/25" : "border-black/10 hover:border-black/25"),
7862
+ children: /* @__PURE__ */ jsx8("img", {
7863
+ src: "/logo/favicon.svg",
7864
+ alt: "Realm",
7865
+ width: 30,
7866
+ height: 30
7867
+ })
7839
7868
  }),
7840
- /* @__PURE__ */ jsx8("span", {
7841
- className: clsx("text-[13px]", is_dark ? "text-realm-text-tertiary" : "text-light-text-tertiary"),
7842
- children: tagline
7869
+ /* @__PURE__ */ jsxs3("div", {
7870
+ className: "flex flex-col gap-1 text-[13px] text-[#737373]",
7871
+ children: [
7872
+ /* @__PURE__ */ jsx8("p", {
7873
+ children: tagline
7874
+ }),
7875
+ /* @__PURE__ */ jsx8("p", {
7876
+ children: copyright
7877
+ })
7878
+ ]
7843
7879
  })
7844
7880
  ]
7845
7881
  }),
7846
- /* @__PURE__ */ jsx8("span", {
7847
- className: clsx("text-[12px]", is_dark ? "text-realm-text-muted" : "text-light-text-muted"),
7848
- children: copyright
7849
- })
7882
+ actions
7850
7883
  ]
7851
7884
  })
7852
7885
  ]
@@ -11095,8 +11128,8 @@ function oa_suggest_download_filename(filename, language, override) {
11095
11128
  return base;
11096
11129
  return `${base}.${oa_extension_for_language(language)}`;
11097
11130
  }
11098
- var oa_terminal_chrome_icon_class = "h-4 w-4 shrink-0";
11099
- var oa_terminal_chrome_icon_size = 16;
11131
+ var oa_terminal_chrome_icon_class = "h-5 w-5 shrink-0";
11132
+ var oa_terminal_chrome_icon_size = 20;
11100
11133
  function OaCodeBlock({
11101
11134
  code = "",
11102
11135
  language = "text",
@@ -11125,7 +11158,7 @@ function OaCodeBlock({
11125
11158
  const is_dark = variant === "dark" || variant === "dev-dark";
11126
11159
  const is_dev = variant === "dev-dark" || variant === "dev-light";
11127
11160
  const uses_terminal_log_colors = terminal && oa_terminal_languages.has(active_language.toLowerCase());
11128
- const terminal_chrome_button_class = clsx("shrink-0 rounded-md border border-transparent bg-transparent p-1.5 transition-colors", "focus-visible:outline-none focus-visible:ring-2", is_dark ? "text-white/70 hover:bg-white/10 hover:text-white active:bg-white/[0.16] focus-visible:ring-white/25" : "text-black/55 hover:bg-black/[0.06] hover:text-black active:bg-black/10 focus-visible:ring-black/20");
11161
+ const terminal_chrome_button_class = clsx("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-transparent bg-transparent p-[5px] transition-colors first:-translate-x-1", "focus-visible:outline-none focus-visible:ring-2", is_dark ? "text-white/70 hover:bg-white/10 hover:text-white active:bg-white/[0.16] focus-visible:ring-white/25" : "text-black/55 hover:bg-black/[0.06] hover:text-black active:bg-black/10 focus-visible:ring-black/20");
11129
11162
  const handle_copy = async () => {
11130
11163
  await navigator.clipboard.writeText(active_code);
11131
11164
  set_copied(true);
@@ -11179,11 +11212,11 @@ function OaCodeBlock({
11179
11212
  return /* @__PURE__ */ jsxs7("div", {
11180
11213
  "data-oa-codeblock": "",
11181
11214
  "data-oa-codeblock-variant": variant,
11182
- className: clsx("code-block relative group my-4 sm:my-6 overflow-hidden", "rounded-lg sm:rounded-xl", variant === "dark" && "bg-[#0a0a0a]", variant === "dev-dark" && "border-2 border-white/15 bg-realm-bg-line", variant === "light" && "border border-black/[0.08] bg-[#f5f5f5]", variant === "dev-light" && "border-2 border-black/10 bg-light-bg-widget", fill_height && "flex h-full min-h-0 flex-col", className),
11215
+ className: clsx("code-block relative group my-4 sm:my-6 overflow-hidden", "rounded-[16px]", variant === "dark" && "bg-[#0a0a0a]", variant === "dev-dark" && "border-2 border-white/15 bg-realm-bg-line", variant === "light" && "border border-black/[0.08] bg-[#f5f5f5]", variant === "dev-light" && "border-2 border-black/10 bg-light-bg-widget", fill_height && "flex h-full min-h-0 flex-col", className),
11183
11216
  children: [
11184
11217
  terminal && /* @__PURE__ */ jsxs7("div", {
11185
11218
  "data-oa-codeblock-terminal": "",
11186
- className: clsx("relative flex min-h-[2.75rem] shrink-0 items-center justify-between px-3 py-2.5 sm:px-4", is_dev && (is_dark ? "border-b-2 border-white/15" : "border-b-2 border-black/10"), !is_dev && !is_dark && "border-b border-black/[0.06]"),
11219
+ className: clsx("relative flex min-h-[3.25rem] shrink-0 items-center justify-between pl-3 pr-5 py-2.5 sm:pl-4", is_dev && (is_dark ? "border-b-2 border-white/15" : "border-b-2 border-black/10"), !is_dev && !is_dark && "border-b border-black/[0.06]"),
11187
11220
  children: [
11188
11221
  /* @__PURE__ */ jsxs7("div", {
11189
11222
  className: clsx(terminal_side_base, "justify-start gap-0.5"),
@@ -11232,7 +11265,7 @@ function OaCodeBlock({
11232
11265
  on_tab_change?.(tab.id);
11233
11266
  set_copied(false);
11234
11267
  },
11235
- className: clsx("rounded px-2.5 py-1 font-sans text-[11px] font-medium transition-colors", is_dark ? is_active ? "bg-white/10 text-white" : "text-white/45 hover:text-white/75" : is_active ? "bg-black/[0.07] text-black" : "text-black/45 hover:text-black/75"),
11268
+ className: clsx("rounded px-2.5 py-1 font-sans text-base leading-6 font-medium transition-colors", is_dark ? is_active ? "bg-white/10 text-white" : "text-white/45 hover:text-white/75" : is_active ? "bg-black/[0.07] text-black" : "text-black/45 hover:text-black/75"),
11236
11269
  children: tab.label
11237
11270
  }, tab.id);
11238
11271
  })
@@ -11241,16 +11274,17 @@ function OaCodeBlock({
11241
11274
  children: title_text
11242
11275
  }) : null,
11243
11276
  /* @__PURE__ */ jsxs7("div", {
11244
- className: clsx(terminal_side_base, "justify-end gap-1.5"),
11277
+ "aria-hidden": "true",
11278
+ className: clsx(terminal_side_base, "justify-end gap-1.5", is_dark ? "text-white/70" : "text-black/55"),
11245
11279
  children: [
11246
11280
  /* @__PURE__ */ jsx13("div", {
11247
- className: "h-3 w-3 shrink-0 rounded-full bg-[#ff5f57]"
11281
+ className: "h-3 w-3 shrink-0 rounded-full bg-current"
11248
11282
  }),
11249
11283
  /* @__PURE__ */ jsx13("div", {
11250
- className: "h-3 w-3 shrink-0 rounded-full bg-[#febc2e]"
11284
+ className: "h-3 w-3 shrink-0 rounded-full bg-current"
11251
11285
  }),
11252
11286
  /* @__PURE__ */ jsx13("div", {
11253
- className: "h-3 w-3 shrink-0 rounded-full bg-[#28c840]"
11287
+ className: "h-3 w-3 shrink-0 rounded-full bg-current"
11254
11288
  })
11255
11289
  ]
11256
11290
  })
@@ -11324,7 +11358,7 @@ function OaFeatureCard({
11324
11358
  whileInView: { opacity: 1, y: 0 },
11325
11359
  viewport: { once: true },
11326
11360
  transition: { duration: 0.5, delay },
11327
- className: clsx("rounded-xl p-8", "group transition-colors", is_dark ? "bg-realm-bg-widget hover:bg-realm-bg-hover" : "bg-[#fafafa] hover:bg-[#f5f5f5]", className),
11361
+ className: clsx("rounded-[16px] p-8", "group transition-colors", is_dark ? "bg-realm-bg-widget hover:bg-realm-bg-hover" : "bg-[#fafafa] hover:bg-[#f5f5f5]", className),
11328
11362
  children: [
11329
11363
  icon && /* @__PURE__ */ jsx15("div", {
11330
11364
  className: "mb-4",
@@ -11442,7 +11476,7 @@ function OaImageCard({
11442
11476
  whileInView: { opacity: 1, y: 0 },
11443
11477
  viewport: { once: true },
11444
11478
  transition: { duration: 0.8, delay },
11445
- className: clsx("relative rounded-xl overflow-hidden group", aspect_classes[aspect_ratio], className),
11479
+ className: clsx("relative rounded-[16px] overflow-hidden group", aspect_classes[aspect_ratio], className),
11446
11480
  children: [
11447
11481
  /* @__PURE__ */ jsx18("img", {
11448
11482
  src,
@@ -11813,7 +11847,7 @@ function OaBenchmarkTable({
11813
11847
  }
11814
11848
  }
11815
11849
  return /* @__PURE__ */ jsxs17("div", {
11816
- className: clsx("my-4 sm:my-6 overflow-hidden rounded-lg sm:rounded-xl", is_dark ? "bg-[#0a0a0a]" : "bg-white border border-black/[0.08]", className),
11850
+ className: clsx("my-4 sm:my-6 overflow-hidden rounded-[16px]", is_dark ? "bg-[#0a0a0a]" : "bg-white border border-black/[0.08]", className),
11817
11851
  children: [
11818
11852
  (title || subtitle) && /* @__PURE__ */ jsxs17("div", {
11819
11853
  className: "px-4 sm:px-5 pt-4 sm:pt-5 pb-2",
@@ -11895,19 +11929,20 @@ function OaLineTableGrid({
11895
11929
  items,
11896
11930
  columns = 2,
11897
11931
  animated = false,
11932
+ show_numbers = false,
11898
11933
  variant = "light",
11899
11934
  className
11900
11935
  }) {
11901
11936
  const is_dark = variant === "dark";
11902
11937
  const has_two_columns = columns === 2;
11903
11938
  return /* @__PURE__ */ jsx25("div", {
11904
- className: clsx("not-prose grid overflow-hidden rounded-xl border-2", has_two_columns && "md:grid-cols-2", surface_classes(variant), className),
11939
+ className: clsx("not-prose grid overflow-hidden rounded-[16px] border-2", has_two_columns && "md:grid-cols-2", surface_classes(variant), className),
11905
11940
  children: items.map((item, index) => {
11906
11941
  const number = item.number ?? String(index + 1).padStart(2, "0");
11907
- const itemClassName = clsx("grid grid-cols-[2rem_minmax(0,1fr)] gap-4 px-5 py-7 sm:px-6 md:gap-6 md:px-8 md:py-9 lg:px-10", rule_classes(variant), index < items.length - 1 && "border-b-2", has_two_columns && index >= items.length - 2 && "md:border-b-0", has_two_columns && index % 2 === 0 && "md:border-r-2");
11942
+ const itemClassName = clsx("px-5 py-7 sm:px-6 md:px-8 md:py-9 lg:px-10", show_numbers && "grid grid-cols-[2rem_minmax(0,1fr)] gap-4 md:gap-6", rule_classes(variant), index < items.length - 1 && "border-b-2", has_two_columns && index >= items.length - 2 && "md:border-b-0", has_two_columns && index % 2 === 0 && "md:border-r-2");
11908
11943
  const content = /* @__PURE__ */ jsxs18(Fragment4, {
11909
11944
  children: [
11910
- /* @__PURE__ */ jsx25("span", {
11945
+ show_numbers && /* @__PURE__ */ jsx25("span", {
11911
11946
  className: clsx("text-center font-mono text-[11px]", is_dark ? "text-white/35" : "text-light-text-muted"),
11912
11947
  children: number
11913
11948
  }),
@@ -11955,7 +11990,7 @@ function OaLineTableContract({
11955
11990
  const is_dark = variant === "dark";
11956
11991
  return /* @__PURE__ */ jsxs18("article", {
11957
11992
  id,
11958
- className: clsx("not-prose scroll-mt-24 overflow-hidden rounded-xl border-2 font-sans text-sm leading-relaxed md:text-base [&_code]:!rounded-none [&_code]:!border-0 [&_code]:!bg-transparent [&_code]:!p-0 [&_code]:!font-sans [&_code]:!text-[1em] [&_code]:!leading-[inherit] [&_code]:!shadow-none", surface_classes(variant), className),
11993
+ className: clsx("not-prose scroll-mt-24 overflow-hidden rounded-[16px] border-2 font-sans text-sm leading-relaxed md:text-base [&_code]:!rounded-none [&_code]:!border-0 [&_code]:!bg-transparent [&_code]:!p-0 [&_code]:!font-sans [&_code]:!text-[1em] [&_code]:!leading-[inherit] [&_code]:!shadow-none", surface_classes(variant), className),
11959
11994
  children: [
11960
11995
  /* @__PURE__ */ jsxs18("header", {
11961
11996
  className: clsx("border-b-2 px-5 py-5 sm:px-6 md:px-8 md:py-6", rule_classes(variant)),
@@ -12088,7 +12123,7 @@ function OaHero({
12088
12123
  };
12089
12124
  const content_width_class = preset === "hero" ? "w-full" : align !== "left" ? "w-full lg:max-w-[50%]" : "max-w-lg lg:max-w-[50%]";
12090
12125
  return /* @__PURE__ */ jsxs19("div", {
12091
- className: clsx("relative w-full rounded-2xl overflow-hidden bg-black font-sans group", preset_aspects[preset], className),
12126
+ className: clsx("relative w-full rounded-[20px] overflow-hidden bg-black font-sans group", preset_aspects[preset], className),
12092
12127
  children: [
12093
12128
  mode === "video" && video_src ? /* @__PURE__ */ jsx26("video", {
12094
12129
  autoPlay: true,
@@ -12160,8 +12195,8 @@ var variant_styles3 = {
12160
12195
  };
12161
12196
  var size_styles5 = {
12162
12197
  sm: "text-[12px] px-3 py-1.5 gap-1.5",
12163
- md: "text-[13px] px-4 py-2 gap-2",
12164
- lg: "text-[14px] px-5 py-2.5 gap-2"
12198
+ md: "text-[13px] px-4 py-2 gap-1.5",
12199
+ lg: "text-[14px] px-5 py-2.5 gap-1.5"
12165
12200
  };
12166
12201
  var OaButton = forwardRef4(({
12167
12202
  variant = "primary",
@@ -12175,7 +12210,7 @@ var OaButton = forwardRef4(({
12175
12210
  disabled,
12176
12211
  ...props
12177
12212
  }, ref) => {
12178
- const base_styles = "inline-flex items-center justify-center font-medium rounded-lg transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed";
12213
+ const base_styles = "inline-flex items-center justify-center font-medium rounded-full transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed";
12179
12214
  return /* @__PURE__ */ jsx27("button", {
12180
12215
  ref,
12181
12216
  className: clsx(base_styles, variant_styles3[variant], size_styles5[size], full_width && "w-full", className),
@@ -12220,7 +12255,7 @@ var OaButtonLink = forwardRef4(({
12220
12255
  children,
12221
12256
  ...props
12222
12257
  }, ref) => {
12223
- const base_styles = "inline-flex items-center justify-center font-medium rounded-lg transition-all duration-200";
12258
+ const base_styles = "inline-flex items-center justify-center font-medium rounded-full transition-all duration-200";
12224
12259
  return /* @__PURE__ */ jsxs20("a", {
12225
12260
  ref,
12226
12261
  className: clsx(base_styles, variant_styles3[variant], size_styles5[size], full_width && "w-full", className),
@@ -12234,7 +12269,7 @@ var OaButtonLink = forwardRef4(({
12234
12269
  });
12235
12270
  OaButtonLink.displayName = "OaButtonLink";
12236
12271
  var oa_button_styles = {
12237
- base: "inline-flex items-center justify-center font-medium rounded-lg transition-all duration-200",
12272
+ base: "inline-flex items-center justify-center font-medium rounded-full transition-all duration-200",
12238
12273
  variant: variant_styles3,
12239
12274
  size: size_styles5
12240
12275
  };
@@ -13010,7 +13045,7 @@ var OaScrambleText = forwardRef7(function OaScrambleText({
13010
13045
  uppercase = true,
13011
13046
  external = false,
13012
13047
  icon,
13013
- icon_class_name = "h-3 w-3"
13048
+ icon_class_name = "h-4 w-4"
13014
13049
  }, ref) {
13015
13050
  const target = uppercase ? children.toUpperCase() : children;
13016
13051
  const resolved_icon = icon ?? (external ? "external" : null);
@@ -0,0 +1,44 @@
1
+ :root {
2
+ --oa-hero-stamp-radius: 10px;
3
+ }
4
+
5
+ .oa-section-spacing,
6
+ .oa-section-spacing-compact {
7
+ padding-block: var(--oa-section-padding) calc(var(--oa-section-padding) * 1.25);
8
+ }
9
+
10
+ .oa-section-spacing {
11
+ --oa-section-padding: 6rem;
12
+ }
13
+
14
+ .oa-section-spacing-compact {
15
+ --oa-section-padding: 4rem;
16
+ }
17
+
18
+ @media (min-width: 1024px) {
19
+ .oa-section-spacing {
20
+ --oa-section-padding: 8rem;
21
+ }
22
+
23
+ .oa-section-spacing-compact {
24
+ --oa-section-padding: 6rem;
25
+ }
26
+ }
27
+
28
+ .oa-nav-label,
29
+ .oa-nav-menu-link {
30
+ font-size: 0.875rem;
31
+ line-height: 1.25rem;
32
+ }
33
+
34
+ .oa-nav-label {
35
+ font-weight: 400;
36
+ }
37
+
38
+ .oa-nav-menu-link {
39
+ font-weight: 700;
40
+ }
41
+
42
+ .oa-nav-menu-link svg {
43
+ stroke-width: 2.5;
44
+ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@realminc/ui",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "packageManager": "bun@1.4.2",
5
5
  "description": "Realm Design System - Shared UI components, styles, and assets",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
9
  "types": "./dist/index.d.ts",
10
- "sideEffects": false,
10
+ "sideEffects": ["**/*.css"],
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
@@ -25,6 +25,7 @@
25
25
  "default": "./dist/theme.js"
26
26
  },
27
27
  "./styles/fonts.css": "./dist/styles/fonts.css",
28
+ "./styles/layout.css": "./dist/styles/layout.css",
28
29
  "./public/*": "./public/*"
29
30
  },
30
31
  "files": [
@@ -1,6 +0,0 @@
1
- <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 238" width="512" height="238">
2
- <style>
3
- .s0 { fill: #000000 }
4
- </style>
5
- <path id="oa-black" fill-rule="evenodd" class="s0" d="m118.9 237.79c-65.75 0-118.9-53.15-118.9-118.89 0-65.75 53.15-118.9 118.9-118.9 65.74 0 118.89 53.15 118.89 118.9 0 65.74-53.15 118.89-118.89 118.89zm59.27-118.89c0-32.78-26.5-59.28-59.27-59.28-32.78 0-59.28 26.5-59.28 59.28 0 32.77 26.5 59.27 59.28 59.27 32.77 0 59.27-26.5 59.27-59.27zm214.93 118.89c-65.74 0-118.89-53.15-118.89-118.89 0-65.75 53.15-118.9 118.89-118.9 65.75 0 118.9 53.15 118.9 118.9 0 17.43 0 96.26 0 114.61-17.84 0-41.12 0-59.98 0 0-4 0.22-8.12 0.22-11.4-17.41 9.98-37.6 15.68-59.14 15.68zm59.28-118.89c0-32.78-26.5-59.28-59.28-59.28-32.77 0-59.27 26.5-59.27 59.28 0 32.77 26.5 59.27 59.27 59.27 32.78 0 59.28-26.5 59.28-59.27z"/>
6
- </svg>
@@ -1,6 +0,0 @@
1
- <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 238" width="512" height="238">
2
- <style>
3
- .s0 { fill: #ffffff }
4
- </style>
5
- <path id="oa-white" fill-rule="evenodd" class="s0" d="m118.9 237.79c-65.75 0-118.9-53.15-118.9-118.89 0-65.75 53.15-118.9 118.9-118.9 65.74 0 118.89 53.15 118.89 118.9 0 65.74-53.15 118.89-118.89 118.89zm59.27-118.89c0-32.78-26.5-59.28-59.27-59.28-32.78 0-59.28 26.5-59.28 59.28 0 32.77 26.5 59.27 59.28 59.27 32.77 0 59.27-26.5 59.27-59.27zm214.93 118.89c-65.74 0-118.89-53.15-118.89-118.89 0-65.75 53.15-118.9 118.89-118.9 65.75 0 118.9 53.15 118.9 118.9 0 17.43 0 96.26 0 114.61-17.84 0-41.12 0-59.98 0 0-4 0.22-8.12 0.22-11.4-17.41 9.98-37.6 15.68-59.14 15.68zm59.28-118.89c0-32.78-26.5-59.28-59.28-59.28-32.77 0-59.27 26.5-59.27 59.28 0 32.77 26.5 59.27 59.27 59.27 32.78 0 59.28-26.5 59.28-59.27z"/>
6
- </svg>