beth-clarity 1.1.19 → 1.1.20

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.
@@ -42,7 +42,118 @@ const Dt = ({
42
42
  children: d
43
43
  }
44
44
  );
45
- }, At = ({
45
+ }, ve = {
46
+ fontFamily: {
47
+ sans: ["Inter", "system-ui", "sans-serif"],
48
+ mono: ["Fira Code", "monospace"]
49
+ },
50
+ fontSize: {
51
+ xs: "12px",
52
+ sm: "14px",
53
+ base: "16px",
54
+ lg: "18px",
55
+ xl: "20px",
56
+ "2xl": "24px",
57
+ "3xl": "30px"
58
+ },
59
+ fontWeight: {
60
+ normal: 400,
61
+ medium: 500,
62
+ semibold: 600,
63
+ bold: 700
64
+ },
65
+ letterSpacing: {
66
+ tighter: "-0.05em",
67
+ tight: "-0.025em",
68
+ normal: "0em",
69
+ wide: "0.025em",
70
+ wider: "0.05em"
71
+ }
72
+ }, ue = (e) => {
73
+ if (e) {
74
+ if (e.includes(".")) {
75
+ const [t, s] = e.split(".");
76
+ return `var(--clarity-${t}-${s})`;
77
+ }
78
+ return `var(--clarity-${e})`;
79
+ }
80
+ }, U = (e) => e !== void 0 ? `var(--clarity-spacing-${e})` : void 0, de = E.forwardRef(({
81
+ as: e,
82
+ children: t,
83
+ className: s,
84
+ display: n,
85
+ flexDirection: l,
86
+ alignItems: i,
87
+ justifyContent: d,
88
+ gap: o,
89
+ m: r,
90
+ mt: c,
91
+ mr: p,
92
+ mb: v,
93
+ ml: m,
94
+ mx: f,
95
+ my: u,
96
+ p: h,
97
+ pt: y,
98
+ pr: b,
99
+ pb: N,
100
+ pl: B,
101
+ px: x,
102
+ py: _,
103
+ bg: $,
104
+ color: L,
105
+ fontSize: k,
106
+ fontWeight: j,
107
+ textAlign: I,
108
+ lineHeight: A,
109
+ letterSpacing: O,
110
+ borderRadius: g,
111
+ boxShadow: V,
112
+ borderWidth: H,
113
+ borderTopWidth: W,
114
+ borderRightWidth: q,
115
+ borderBottomWidth: X,
116
+ borderLeftWidth: F,
117
+ borderXWidth: P,
118
+ borderYWidth: Y,
119
+ borderColor: le,
120
+ ...re
121
+ }, ie) => {
122
+ const C = e || "div", S = (R, J) => {
123
+ if (R === void 0 || R === 0) return;
124
+ const rt = `var(--clarity-border-width-${R})`, it = J ? ue(J) : "currentColor";
125
+ return `${rt} solid ${it}`;
126
+ }, G = {
127
+ display: n,
128
+ flexDirection: l,
129
+ alignItems: i,
130
+ justifyContent: d,
131
+ gap: U(o),
132
+ marginTop: U(c ?? u ?? r),
133
+ marginRight: U(p ?? f ?? r),
134
+ marginBottom: U(v ?? u ?? r),
135
+ marginLeft: U(m ?? f ?? r),
136
+ paddingTop: U(y ?? _ ?? h),
137
+ paddingRight: U(b ?? x ?? h),
138
+ paddingBottom: U(N ?? _ ?? h),
139
+ paddingLeft: U(B ?? x ?? h),
140
+ backgroundColor: $ ? ue($) : void 0,
141
+ color: L ? ue(L) : void 0,
142
+ fontSize: k ? `var(--clarity-font-size-${k})` : void 0,
143
+ fontWeight: j ? ve.fontWeight[j] : void 0,
144
+ textAlign: I,
145
+ lineHeight: A,
146
+ letterSpacing: O ? ve.letterSpacing[O] : void 0,
147
+ borderRadius: g ? `var(--clarity-radius-${g})` : void 0,
148
+ boxShadow: V ? `var(--clarity-shadow-${V})` : void 0,
149
+ border: S(H, le),
150
+ borderTop: S(W ?? Y),
151
+ borderRight: S(q ?? P),
152
+ borderBottom: S(X ?? Y),
153
+ borderLeft: S(F ?? P)
154
+ };
155
+ return /* @__PURE__ */ a(C, { ref: ie, className: `clarity-box ${s || ""}`.trim(), style: G, ...re, children: t });
156
+ }), At = ({
46
157
  variant: e = "primary",
47
158
  size: t = "medium",
48
159
  disabled: s = !1,
@@ -1880,118 +1991,7 @@ const Et = (e) => `${e / 12 * 100}%`, Lt = (e) => `${e / 12 * 100}%`, St = ({
1880
1991
  return E.createElement(c, { className: h, style: m, ...v }, r);
1881
1992
  };
1882
1993
  St.displayName = "Col";
1883
- const ve = {
1884
- fontFamily: {
1885
- sans: ["Inter", "system-ui", "sans-serif"],
1886
- mono: ["Fira Code", "monospace"]
1887
- },
1888
- fontSize: {
1889
- xs: "12px",
1890
- sm: "14px",
1891
- base: "16px",
1892
- lg: "18px",
1893
- xl: "20px",
1894
- "2xl": "24px",
1895
- "3xl": "30px"
1896
- },
1897
- fontWeight: {
1898
- normal: 400,
1899
- medium: 500,
1900
- semibold: 600,
1901
- bold: 700
1902
- },
1903
- letterSpacing: {
1904
- tighter: "-0.05em",
1905
- tight: "-0.025em",
1906
- normal: "0em",
1907
- wide: "0.025em",
1908
- wider: "0.05em"
1909
- }
1910
- }, ue = (e) => {
1911
- if (e) {
1912
- if (e.includes(".")) {
1913
- const [t, s] = e.split(".");
1914
- return `var(--clarity-${t}-${s})`;
1915
- }
1916
- return `var(--clarity-${e})`;
1917
- }
1918
- }, U = (e) => e !== void 0 ? `var(--clarity-spacing-${e})` : void 0, de = E.forwardRef(({
1919
- as: e,
1920
- children: t,
1921
- className: s,
1922
- display: n,
1923
- flexDirection: l,
1924
- alignItems: i,
1925
- justifyContent: d,
1926
- gap: o,
1927
- m: r,
1928
- mt: c,
1929
- mr: p,
1930
- mb: v,
1931
- ml: m,
1932
- mx: f,
1933
- my: u,
1934
- p: h,
1935
- pt: y,
1936
- pr: b,
1937
- pb: N,
1938
- pl: B,
1939
- px: x,
1940
- py: _,
1941
- bg: $,
1942
- color: L,
1943
- fontSize: k,
1944
- fontWeight: j,
1945
- textAlign: I,
1946
- lineHeight: A,
1947
- letterSpacing: O,
1948
- borderRadius: g,
1949
- boxShadow: V,
1950
- borderWidth: H,
1951
- borderTopWidth: W,
1952
- borderRightWidth: q,
1953
- borderBottomWidth: X,
1954
- borderLeftWidth: F,
1955
- borderXWidth: P,
1956
- borderYWidth: Y,
1957
- borderColor: le,
1958
- ...re
1959
- }, ie) => {
1960
- const C = e || "div", S = (R, J) => {
1961
- if (R === void 0 || R === 0) return;
1962
- const rt = `var(--clarity-border-width-${R})`, it = J ? ue(J) : "currentColor";
1963
- return `${rt} solid ${it}`;
1964
- }, G = {
1965
- display: n,
1966
- flexDirection: l,
1967
- alignItems: i,
1968
- justifyContent: d,
1969
- gap: U(o),
1970
- marginTop: U(c ?? u ?? r),
1971
- marginRight: U(p ?? f ?? r),
1972
- marginBottom: U(v ?? u ?? r),
1973
- marginLeft: U(m ?? f ?? r),
1974
- paddingTop: U(y ?? _ ?? h),
1975
- paddingRight: U(b ?? x ?? h),
1976
- paddingBottom: U(N ?? _ ?? h),
1977
- paddingLeft: U(B ?? x ?? h),
1978
- backgroundColor: $ ? ue($) : void 0,
1979
- color: L ? ue(L) : void 0,
1980
- fontSize: k ? `var(--clarity-font-size-${k})` : void 0,
1981
- fontWeight: j ? ve.fontWeight[j] : void 0,
1982
- textAlign: I,
1983
- lineHeight: A,
1984
- letterSpacing: O ? ve.letterSpacing[O] : void 0,
1985
- borderRadius: g ? `var(--clarity-radius-${g})` : void 0,
1986
- boxShadow: V ? `var(--clarity-shadow-${V})` : void 0,
1987
- border: S(H, le),
1988
- borderTop: S(W ?? Y),
1989
- borderRight: S(q ?? P),
1990
- borderBottom: S(X ?? Y),
1991
- borderLeft: S(F ?? P)
1992
- };
1993
- return /* @__PURE__ */ a(C, { ref: ie, className: `clarity-box ${s || ""}`.trim(), style: G, ...re, children: t });
1994
- }), at = ({ children: e, className: t }) => /* @__PURE__ */ a(de, { as: "header", p: 4, borderBottomWidth: 1, borderColor: "gray.200", className: t, children: e });
1994
+ const at = ({ children: e, className: t }) => /* @__PURE__ */ a(de, { as: "header", p: 4, borderBottomWidth: 1, borderColor: "gray.200", className: t, children: e });
1995
1995
  at.displayName = "Card.Header";
1996
1996
  const nt = ({ children: e, className: t }) => /* @__PURE__ */ a(de, { p: 4, className: t, children: e });
1997
1997
  nt.displayName = "Card.Content";
@@ -2073,6 +2073,7 @@ const Jt = {
2073
2073
  export {
2074
2074
  Ft as Accordion,
2075
2075
  Dt as Badge,
2076
+ de as Box,
2076
2077
  At as Button,
2077
2078
  Pt as ButtonGroup,
2078
2079
  Mt as ButtonIcon,