@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 { Flex } from ".";
2
- interface BlockQuoteProps extends React.ComponentProps<typeof Flex> {
1
+ import { Column } from ".";
2
+ interface BlockQuoteProps extends React.ComponentProps<typeof Column> {
3
3
  children: React.ReactNode;
4
- className?: string;
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,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,UAAU,yHAwBf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
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 { Flex } from ".";
4
- const BlockQuote = forwardRef(({ children, className, style, ...rest }, ref) => {
5
- return (_jsx(Flex, { ref: ref, as: "blockquote", radius: "m", margin: "0", border: "brand-alpha-medium", background: "brand-alpha-weak", borderStyle: "dashed", overflow: "hidden", paddingY: "20", paddingX: "24", onBackground: "brand-medium", fillWidth: true, style: style, className: className, ...rest, children: children }));
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;AAQzB,MAAM,UAAU,GAAG,UAAU,CAC3B,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/C,OAAO,CACL,KAAC,IAAI,IACH,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,YAAY,EACf,MAAM,EAAC,GAAG,EACV,MAAM,EAAC,GAAG,EACV,MAAM,EAAC,oBAAoB,EAC3B,UAAU,EAAC,kBAAkB,EAC7B,WAAW,EAAC,QAAQ,EACpB,QAAQ,EA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Q,IAAI,SAAS,KAAK,MAAM,CAAC,IAAI,CACnD,KAAC,GAAG,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,YAChC,KAAC,IAAI,IAAC,KAAK,EAAC,IAAI,GAAE,GACd,CACP,IACM,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -6293,16 +6293,6 @@
6293
6293
  "fly"
6294
6294
  ]
6295
6295
  },
6296
- {
6297
- "char": "🪿",
6298
- "description": "goose",
6299
- "aliases": [
6300
- "goose"
6301
- ],
6302
- "tags": [
6303
- "honk"
6304
- ]
6305
- },
6306
6296
  {
6307
6297
  "char": "🐸",
6308
6298
  "description": "frog",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@once-ui-system/core",
3
- "version": "1.4.27",
3
+ "version": "1.4.28",
4
4
  "description": "Once UI for Next.js NPM package",
5
5
  "keywords": [
6
6
  "once-ui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@once-ui-system/core",
3
- "version": "1.4.27",
3
+ "version": "1.4.28",
4
4
  "description": "Once UI for Next.js NPM package",
5
5
  "keywords": [
6
6
  "once-ui",