@sudobility/components 5.0.42 → 5.0.43

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/dist/index.js CHANGED
@@ -8219,7 +8219,7 @@ const zi = ({
8219
8219
  r && /* @__PURE__ */ a(
8220
8220
  "div",
8221
8221
  {
8222
- className: `${c.text} font-bold text-gray-900 dark:text-gray-100`,
8222
+ className: `${c.text} font-bold text-inherit`,
8223
8223
  style: { fontFamily: i, fontWeight: "700" },
8224
8224
  children: l
8225
8225
  }
@@ -16981,28 +16981,93 @@ const $0 = ({
16981
16981
  children: /* @__PURE__ */ a("div", { className: o, children: n })
16982
16982
  }
16983
16983
  );
16984
- }, U0 = ({ children: t, className: e }) => /* @__PURE__ */ a("div", { className: u("grid md:grid-cols-5 gap-8", e), children: t }), P0 = ({
16984
+ }, U0 = ({ children: t, className: e }) => /* @__PURE__ */ a(
16985
+ "nav",
16986
+ {
16987
+ role: "navigation",
16988
+ "aria-label": "Footer Navigation",
16989
+ className: u("grid grid-cols-2 gap-x-6 gap-y-8 md:gap-8", e),
16990
+ children: t
16991
+ }
16992
+ ), P0 = ({
16985
16993
  children: t,
16986
16994
  description: e,
16987
16995
  className: r
16988
16996
  }) => /* @__PURE__ */ h("div", { className: r, children: [
16989
16997
  /* @__PURE__ */ a("div", { className: "mb-4", children: t }),
16990
- e && /* @__PURE__ */ a("p", { className: U.body.sm(), children: e })
16998
+ e && /* @__PURE__ */ a("p", { className: "text-xs text-gray-400 leading-relaxed", children: e })
16991
16999
  ] }), D0 = ({
16992
17000
  title: t,
16993
17001
  children: e,
16994
17002
  className: r
16995
- }) => /* @__PURE__ */ h("div", { className: r, children: [
16996
- /* @__PURE__ */ a("h3", { className: u(U.heading.h5(), "mb-4 text-white"), children: t }),
16997
- /* @__PURE__ */ a("ul", { className: u("space-y-2", U.body.sm()), children: e })
16998
- ] }), B0 = ({
17003
+ }) => {
17004
+ const [n, o] = I(!1);
17005
+ return /* @__PURE__ */ h("div", { className: r, children: [
17006
+ /* @__PURE__ */ a("h3", { className: "hidden md:block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-3", children: t }),
17007
+ /* @__PURE__ */ h(
17008
+ "button",
17009
+ {
17010
+ className: "flex w-full items-center justify-between md:hidden py-2 border-b border-gray-700",
17011
+ onClick: () => o(!n),
17012
+ "aria-expanded": n,
17013
+ children: [
17014
+ /* @__PURE__ */ a("span", { className: "text-xs font-semibold text-gray-400 uppercase tracking-wider", children: t }),
17015
+ /* @__PURE__ */ a(
17016
+ "svg",
17017
+ {
17018
+ className: u(
17019
+ "w-3 h-3 text-gray-500 transition-transform duration-200",
17020
+ n && "rotate-180"
17021
+ ),
17022
+ fill: "none",
17023
+ viewBox: "0 0 10 6",
17024
+ "aria-hidden": "true",
17025
+ children: /* @__PURE__ */ a(
17026
+ "path",
17027
+ {
17028
+ stroke: "currentColor",
17029
+ strokeLinecap: "round",
17030
+ strokeLinejoin: "round",
17031
+ strokeWidth: "1.5",
17032
+ d: "M1 1l4 4 4-4"
17033
+ }
17034
+ )
17035
+ }
17036
+ )
17037
+ ]
17038
+ }
17039
+ ),
17040
+ /* @__PURE__ */ a("ul", { className: "hidden md:block space-y-2", role: "list", children: e }),
17041
+ /* @__PURE__ */ a(
17042
+ "ul",
17043
+ {
17044
+ className: u(
17045
+ "md:hidden overflow-hidden transition-all duration-200",
17046
+ n ? "max-h-96 pt-2 pb-1 space-y-2" : "max-h-0"
17047
+ ),
17048
+ role: "list",
17049
+ children: e
17050
+ }
17051
+ )
17052
+ ] });
17053
+ }, B0 = ({
16999
17054
  children: t,
17000
17055
  className: e
17001
- }) => /* @__PURE__ */ a("li", { className: u("hover:text-white transition-colors", e), children: t }), R0 = ({ children: t, className: e }) => /* @__PURE__ */ a(
17056
+ }) => /* @__PURE__ */ a(
17057
+ "li",
17058
+ {
17059
+ className: u(
17060
+ "text-xs text-gray-400 hover:text-white transition-colors",
17061
+ e
17062
+ ),
17063
+ role: "listitem",
17064
+ children: t
17065
+ }
17066
+ ), R0 = ({ children: t, className: e }) => /* @__PURE__ */ a(
17002
17067
  "div",
17003
17068
  {
17004
17069
  className: u(
17005
- "border-t mt-8 pt-8 text-center space-y-4",
17070
+ "border-t mt-8 pt-6 text-center space-y-3",
17006
17071
  kr.border.default,
17007
17072
  e
17008
17073
  ),
@@ -17015,7 +17080,7 @@ const $0 = ({
17015
17080
  "div",
17016
17081
  {
17017
17082
  className: u(
17018
- "flex items-center justify-center gap-3 text-gray-400 text-sm",
17083
+ "flex items-center justify-center gap-3 text-gray-500 text-xs",
17019
17084
  e
17020
17085
  ),
17021
17086
  children: t
@@ -17053,11 +17118,11 @@ const $0 = ({
17053
17118
  rightsText: r,
17054
17119
  companyLink: n,
17055
17120
  className: o
17056
- }) => /* @__PURE__ */ h("span", { className: o, children: [
17121
+ }) => /* @__PURE__ */ h("span", { className: u("text-xs text-gray-500", o), children: [
17057
17122
  "© ",
17058
17123
  t,
17059
17124
  " ",
17060
- n || /* @__PURE__ */ a("span", { className: "text-blue-400", children: e }),
17125
+ n || /* @__PURE__ */ a("span", { className: "text-gray-400", children: e }),
17061
17126
  r && `. ${r}`
17062
17127
  ] }), ae = ({ href: t, label: e, children: r }) => /* @__PURE__ */ a(an, { content: e, children: /* @__PURE__ */ a(
17063
17128
  "a",
@@ -17065,7 +17130,7 @@ const $0 = ({
17065
17130
  href: t,
17066
17131
  target: "_blank",
17067
17132
  rel: "noopener noreferrer",
17068
- className: "text-gray-400 hover:text-white transition-colors",
17133
+ className: "text-gray-500 hover:text-white transition-colors",
17069
17134
  "aria-label": e,
17070
17135
  children: r
17071
17136
  }
@@ -17082,7 +17147,7 @@ const $0 = ({
17082
17147
  t && /* @__PURE__ */ a(ae, { href: t, label: "Twitter / X", children: /* @__PURE__ */ a(
17083
17148
  "svg",
17084
17149
  {
17085
- className: "w-5 h-5",
17150
+ className: "w-4 h-4",
17086
17151
  fill: "currentColor",
17087
17152
  viewBox: "0 0 24 24",
17088
17153
  "aria-hidden": "true",
@@ -17092,7 +17157,7 @@ const $0 = ({
17092
17157
  e && /* @__PURE__ */ a(ae, { href: e, label: "Reddit", children: /* @__PURE__ */ a(
17093
17158
  "svg",
17094
17159
  {
17095
- className: "w-5 h-5",
17160
+ className: "w-4 h-4",
17096
17161
  fill: "currentColor",
17097
17162
  viewBox: "0 0 24 24",
17098
17163
  "aria-hidden": "true",
@@ -17102,7 +17167,7 @@ const $0 = ({
17102
17167
  r && /* @__PURE__ */ a(ae, { href: r, label: "Discord", children: /* @__PURE__ */ a(
17103
17168
  "svg",
17104
17169
  {
17105
- className: "w-5 h-5",
17170
+ className: "w-4 h-4",
17106
17171
  fill: "currentColor",
17107
17172
  viewBox: "0 0 24 24",
17108
17173
  "aria-hidden": "true",
@@ -17112,7 +17177,7 @@ const $0 = ({
17112
17177
  n && /* @__PURE__ */ a(ae, { href: n, label: "LinkedIn", children: /* @__PURE__ */ a(
17113
17178
  "svg",
17114
17179
  {
17115
- className: "w-5 h-5",
17180
+ className: "w-4 h-4",
17116
17181
  fill: "currentColor",
17117
17182
  viewBox: "0 0 24 24",
17118
17183
  "aria-hidden": "true",
@@ -17122,7 +17187,7 @@ const $0 = ({
17122
17187
  o && /* @__PURE__ */ a(ae, { href: o, label: "Farcaster", children: /* @__PURE__ */ a(
17123
17188
  "svg",
17124
17189
  {
17125
- className: "w-5 h-5",
17190
+ className: "w-4 h-4",
17126
17191
  fill: "currentColor",
17127
17192
  viewBox: "0 0 24 24",
17128
17193
  "aria-hidden": "true",
@@ -17132,7 +17197,7 @@ const $0 = ({
17132
17197
  s && /* @__PURE__ */ a(ae, { href: s, label: "Telegram", children: /* @__PURE__ */ a(
17133
17198
  "svg",
17134
17199
  {
17135
- className: "w-5 h-5",
17200
+ className: "w-4 h-4",
17136
17201
  fill: "currentColor",
17137
17202
  viewBox: "0 0 24 24",
17138
17203
  "aria-hidden": "true",
@@ -17142,7 +17207,7 @@ const $0 = ({
17142
17207
  l && /* @__PURE__ */ a(ae, { href: l, label: "GitHub", children: /* @__PURE__ */ a(
17143
17208
  "svg",
17144
17209
  {
17145
- className: "w-5 h-5",
17210
+ className: "w-4 h-4",
17146
17211
  fill: "currentColor",
17147
17212
  viewBox: "0 0 24 24",
17148
17213
  "aria-hidden": "true",
@@ -4,7 +4,8 @@ interface SlotProps {
4
4
  className?: string;
5
5
  }
6
6
  /**
7
- * FooterGrid - Grid container for full footer columns
7
+ * FooterGrid - Grid container for full footer columns.
8
+ * Apple-style multi-column layout on desktop, stacked on mobile.
8
9
  */
9
10
  export declare const FooterGrid: React.FC<SlotProps>;
10
11
  /**
@@ -16,7 +17,9 @@ export interface FooterBrandProps extends SlotProps {
16
17
  }
17
18
  export declare const FooterBrand: React.FC<FooterBrandProps>;
18
19
  /**
19
- * FooterLinkSection - A column of links with a title
20
+ * FooterLinkSection - Apple-style column section with title and link list.
21
+ * On mobile: collapsible with chevron toggle.
22
+ * On desktop: always expanded with compact typography.
20
23
  */
21
24
  export interface FooterLinkSectionProps extends SlotProps {
22
25
  /** Section title */
@@ -24,7 +27,8 @@ export interface FooterLinkSectionProps extends SlotProps {
24
27
  }
25
28
  export declare const FooterLinkSection: React.FC<FooterLinkSectionProps>;
26
29
  /**
27
- * FooterLink - Individual link item in a section
30
+ * FooterLink - Individual link item in a section.
31
+ * Apple-style: small, gray text with subtle hover.
28
32
  */
29
33
  export interface FooterLinkProps {
30
34
  /** Link content */
@@ -1 +1 @@
1
- {"version":3,"file":"FooterSlots.d.ts","sourceRoot":"","sources":["../../../src/layout/Footer/FooterSlots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAI1C,CAAC;AAEF;;GAEG;AACH,M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AS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiH9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/components",
3
- "version": "5.0.42",
3
+ "version": "5.0.43",
4
4
  "description": "Reusable UI components and design system - Reorganized for better maintainability",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",