@once-ui-system/core 1.4.27 → 1.4.28
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.
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface BlockQuoteProps extends React.ComponentProps<typeof
|
|
1
|
+
import { Column } from ".";
|
|
2
|
+
interface BlockQuoteProps extends React.ComponentProps<typeof Column> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
|
|
4
|
+
preline?: React.ReactNode;
|
|
5
|
+
subline?: React.ReactNode;
|
|
6
|
+
separator?: "top" | "bottom" | "both" | "none";
|
|
7
|
+
author?: {
|
|
8
|
+
name?: React.ReactNode;
|
|
9
|
+
avatar?: string;
|
|
10
|
+
};
|
|
11
|
+
link?: {
|
|
12
|
+
href: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
5
15
|
style?: React.CSSProperties;
|
|
16
|
+
className?: string;
|
|
17
|
+
align?: "center" | "left" | "right";
|
|
6
18
|
}
|
|
7
19
|
declare const BlockQuote: import("react").ForwardRefExoticComponent<Omit<BlockQuoteProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
20
|
export { BlockQuote };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockQuote.d.ts","sourceRoot":"","sources":["../../src/components/BlockQuote.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"BlockQuote.d.ts","sourceRoot":"","sources":["../../src/components/BlockQuote.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAA8B,MAAM,GAAG,CAAC;AAE/D,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/C,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CACrC;AAED,QAAA,MAAM,UAAU,yHAgEf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import {
|
|
4
|
-
const BlockQuote = forwardRef(({ children, className, style, ...
|
|
5
|
-
return (_jsx(
|
|
3
|
+
import { Avatar, Column, Line, Row, SmartLink, Text } from ".";
|
|
4
|
+
const BlockQuote = forwardRef(({ children, className, style, preline, subline, author, link, align = "center", separator = "both", ...flex }, ref) => {
|
|
5
|
+
return (_jsxs(Column, { fillWidth: true, horizontal: "center", gap: "24", children: [(separator === "top" || separator === "both") && (_jsx(Row, { fillWidth: true, horizontal: "center", children: _jsx(Line, { width: "40" }) })), _jsxs(Column, { ref: ref, as: "blockquote", fillWidth: true, marginY: "32", marginX: "0", horizontal: align === "left" ? "start" : align === "right" ? "end" : "center", align: align, style: style, className: className, ...flex, children: [preline && (_jsx(Text, { onBackground: "neutral-weak", marginBottom: "32", children: preline })), _jsx(Text, { variant: "heading-strong-xl", wrap: "balance", children: children }), subline && (_jsx(Text, { onBackground: "neutral-weak", marginTop: "24", children: subline })), (author || link) && (_jsxs(Row, { gap: "12", center: true, marginTop: "32", children: ["\u2014", author?.avatar && (_jsx(Avatar, { size: "s", src: author?.avatar })), author?.name && (_jsx(Text, { variant: "label-default-s", children: author?.name })), link?.href && (_jsx(Row, { as: "cite", children: _jsx(SmartLink, { unstyled: true, href: link?.href && (/^https?:\/\//.test(link.href) ? link.href : `https://${link.href}`), children: _jsx(Text, { variant: "label-default-s", children: link?.label || link?.href }) }) }))] }))] }), (separator === "bottom" || separator === "both") && (_jsx(Row, { fillWidth: true, horizontal: "center", children: _jsx(Line, { width: "40" }) }))] }));
|
|
6
6
|
});
|
|
7
7
|
BlockQuote.displayName = "BlockQuote";
|
|
8
8
|
export { BlockQuote };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockQuote.js","sourceRoot":"","sources":["../../src/components/BlockQuote.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"BlockQuote.js","sourceRoot":"","sources":["../../src/components/BlockQuote.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAiB/D,MAAM,UAAU,GAAG,UAAU,CAC3B,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,EAAE,SAAS,GAAG,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IACrH,OAAO,CACL,MAAC,MAAM,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,a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