@yamada-ui/react 2.3.0-dev-20261026121529 → 2.3.0-dev-20261027031124

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.
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_prose_style = require("./prose.style.cjs");
3
+ const require_prose = require("./prose.cjs");
4
+ exports.Prose = require_prose.Prose;
5
+ exports.ProsePropsContext = require_prose.ProsePropsContext;
6
+ exports.proseStyle = require_prose_style.proseStyle;
7
+ exports.useProsePropsContext = require_prose.useProsePropsContext;
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ const require_create_component = require("../../core/components/create-component.cjs");
3
+ const require_prose_style = require("./prose.style.cjs");
4
+ //#region src/components/prose/prose.tsx
5
+ const { PropsContext: ProsePropsContext, usePropsContext: useProsePropsContext, withContext } = require_create_component.createComponent("prose", require_prose_style.proseStyle);
6
+ /**
7
+ * `Prose` is a component that styles HTML content. By default, it renders a `div` element.
8
+ *
9
+ * @see https://yamada-ui.com/docs/components/prose
10
+ */
11
+ const Prose = withContext("div")();
12
+ //#endregion
13
+ exports.Prose = Prose;
14
+ exports.ProsePropsContext = ProsePropsContext;
15
+ exports.useProsePropsContext = useProsePropsContext;
16
+
17
+ //# sourceMappingURL=prose.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prose.cjs","names":["createComponent","proseStyle"],"sources":["../../../../src/components/prose/prose.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProseStyle } from \"./prose.style\"\nimport { createComponent } from \"../../core\"\nimport { proseStyle } from \"./prose.style\"\n\nexport interface ProseProps\n extends HTMLStyledProps<\"div\">, ThemeProps<ProseStyle> {}\n\nconst {\n PropsContext: ProsePropsContext,\n usePropsContext: useProsePropsContext,\n withContext,\n} = createComponent<ProseProps, ProseStyle>(\"prose\", proseStyle)\n\nexport { ProsePropsContext, useProsePropsContext }\n\n/**\n * `Prose` is a component that styles HTML content. By default, it renders a `div` element.\n *\n * @see https://yamada-ui.com/docs/components/prose\n */\nexport const Prose = withContext(\"div\")()\n"],"mappings":";;;;AAUA,MAAM,EACJ,cAAc,mBACd,iBAAiB,sBACjB,gBACEA,yBAAAA,gBAAwC,SAASC,oBAAAA,UAAU;;;;;;AAS/D,MAAa,QAAQ,YAAY,KAAK,CAAC,CAAC"}
@@ -0,0 +1,205 @@
1
+ const require_utils_index = require("../../utils/index.cjs");
2
+ const require_config = require("../../core/system/config.cjs");
3
+ const require_css = require("../../core/css/css.cjs");
4
+ const require_blockquote_style = require("../blockquote/blockquote.style.cjs");
5
+ const require_code_style = require("../code/code.style.cjs");
6
+ const require_heading_style = require("../heading/heading.style.cjs");
7
+ const require_link_style = require("../link/link.style.cjs");
8
+ const require_list_style = require("../list/list.style.cjs");
9
+ const require_native_table_style = require("../native-table/native-table.style.cjs");
10
+ const require_separator_style = require("../separator/separator.style.cjs");
11
+ //#region src/components/prose/prose.style.ts
12
+ function getSelector(selector) {
13
+ return `& :where(${selector}):not(:where(.not-prose, .not-prose *))`;
14
+ }
15
+ function getScopedStyle(style) {
16
+ if (!style) return style;
17
+ return Object.fromEntries(Object.entries(style).map(([key, value]) => [key, (0, require_utils_index.utils_exports.isObject)(value) && !require_css.getStyle(key) && !key.startsWith("--") ? { "&:not(:where(.not-prose, .not-prose *))": getScopedStyle(value) } : value]));
18
+ }
19
+ function replaceVariants(selector, style, additionalStyle = {}) {
20
+ return Object.fromEntries(Object.entries(style ?? {}).map(([key, value]) => [key, { [selector]: {
21
+ ...value,
22
+ ...additionalStyle
23
+ } }]));
24
+ }
25
+ function pickSlot(variants, slot) {
26
+ return Object.fromEntries(Object.entries(variants ?? {}).map(([key, value]) => [key, value[slot]]));
27
+ }
28
+ const proseStyle = require_config.defineComponentStyle({
29
+ base: {
30
+ minW: "0",
31
+ overflowWrap: "break-word",
32
+ w: "full",
33
+ [getSelector("*")]: {
34
+ "&::before, &::after": {
35
+ textBoxEdge: "inherit",
36
+ textBoxTrim: "inherit"
37
+ },
38
+ color: "fg.emphasized",
39
+ textBoxEdge: "text",
40
+ textBoxTrim: "trim-both"
41
+ },
42
+ "& :where(.not-prose)": {
43
+ textBoxEdge: "auto",
44
+ textBoxTrim: "none"
45
+ },
46
+ [getSelector("h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, a[href] *, blockquote *, th *")]: { color: "inherit" },
47
+ [getSelector("p, ul, ol, dl, hr, blockquote, pre, table, figure")]: { my: "{space}" },
48
+ [getSelector("h1, h2, h3, h4, h5, h6")]: {
49
+ ...require_heading_style.headingStyle.base,
50
+ color: "fg",
51
+ my: "{space}"
52
+ },
53
+ [getSelector("h1")]: {
54
+ fontSize: "2em",
55
+ mt: "calc({space} * 2)"
56
+ },
57
+ [getSelector("h2")]: {
58
+ fontSize: "1.5em",
59
+ mt: "calc({space} * 2)"
60
+ },
61
+ [getSelector("h3")]: {
62
+ fontSize: "1.25em",
63
+ mt: "calc({space} * 1.5)"
64
+ },
65
+ [getSelector("h4")]: {
66
+ fontSize: "1.125em",
67
+ mt: "calc({space} * 1.5)"
68
+ },
69
+ [getSelector("h5")]: { fontSize: "1em" },
70
+ [getSelector("h6")]: { fontSize: "0.875em" },
71
+ [getSelector("a[href]")]: {
72
+ ...require_link_style.linkStyle.base,
73
+ color: "link.fg",
74
+ display: "inline"
75
+ },
76
+ [getSelector("b, strong, dt")]: { fontWeight: "semibold" },
77
+ [getSelector("em, i")]: { fontStyle: "italic" },
78
+ [getSelector("ul, ol")]: require_list_style.listStyle.base?.root,
79
+ [getSelector("ul")]: {
80
+ ...require_list_style.listStyle.props?.styleType.disc.root,
81
+ listStyleType: "disc"
82
+ },
83
+ [getSelector("ol")]: {
84
+ ...require_list_style.listStyle.props?.styleType.decimal.root,
85
+ listStyleType: "decimal"
86
+ },
87
+ [getSelector("li")]: require_list_style.listStyle.base?.item,
88
+ [getSelector("li > ul, li > ol")]: {
89
+ mb: "0",
90
+ mt: require_list_style.listStyle.base?.root?.gap
91
+ },
92
+ [getSelector("li > [data-list-icon]")]: require_list_style.listStyle.base?.icon,
93
+ [getSelector("dd")]: {
94
+ mt: "0.5em",
95
+ ps: "1.5em"
96
+ },
97
+ [getSelector("blockquote")]: {
98
+ color: "fg",
99
+ ps: "1em"
100
+ },
101
+ [getSelector("figcaption")]: {
102
+ ...require_blockquote_style.blockquoteStyle.base?.caption,
103
+ color: "fg",
104
+ fontSize: "0.875em",
105
+ my: "calc({space} / 2)",
106
+ textAlign: "end"
107
+ },
108
+ [getSelector("cite")]: require_blockquote_style.blockquoteStyle.base?.cite,
109
+ [getSelector("code:not(pre code), kbd")]: require_code_style.codeStyle.base,
110
+ [getSelector("pre")]: {
111
+ bg: "bg.subtle",
112
+ fontFamily: "mono",
113
+ fontSize: "0.875em",
114
+ overflowWrap: "normal",
115
+ overflowX: "auto",
116
+ p: "{space}",
117
+ rounded: "l2",
118
+ whiteSpace: "pre"
119
+ },
120
+ [getSelector("pre code")]: { color: "fg" },
121
+ [getSelector("table")]: getScopedStyle(require_native_table_style.nativeTableStyle.base?.root),
122
+ [getSelector("thead")]: getScopedStyle(require_native_table_style.nativeTableStyle.base?.thead),
123
+ [getSelector("tbody")]: getScopedStyle(require_native_table_style.nativeTableStyle.base?.tbody),
124
+ [getSelector("tfoot")]: getScopedStyle(require_native_table_style.nativeTableStyle.base?.tfoot),
125
+ [getSelector("tr")]: getScopedStyle(require_native_table_style.nativeTableStyle.base?.tr),
126
+ [getSelector("th")]: {
127
+ ...getScopedStyle(require_native_table_style.nativeTableStyle.base?.th),
128
+ color: "fg"
129
+ },
130
+ [getSelector("td")]: getScopedStyle(require_native_table_style.nativeTableStyle.base?.td),
131
+ [getSelector("caption")]: {
132
+ ...getScopedStyle(require_native_table_style.nativeTableStyle.base?.caption),
133
+ fontSize: "0.875em",
134
+ my: "calc({space} / 2)"
135
+ },
136
+ [getSelector("hr")]: {
137
+ ...require_separator_style.separatorStyle.base,
138
+ borderTopWidth: "1px"
139
+ },
140
+ [getSelector("img, video")]: {
141
+ h: "auto",
142
+ maxW: "full"
143
+ },
144
+ "& > :where(:not(style, :not(style) ~ *)):not(:where(.not-prose, .not-prose *))": { mt: "0" },
145
+ "& > :where(:not(style, :has(~ :not(style)))):not(:where(.not-prose, .not-prose *))": { mb: "0" }
146
+ },
147
+ props: {
148
+ blockquote: replaceVariants(getSelector("blockquote"), pickSlot(require_blockquote_style.blockquoteStyle.variants, "root"), { px: void 0 }),
149
+ code: replaceVariants(getSelector("code:not(pre code)"), require_code_style.codeStyle.variants),
150
+ hr: replaceVariants(getSelector("hr"), require_separator_style.separatorStyle.variants),
151
+ kbd: replaceVariants(getSelector("kbd"), require_code_style.codeStyle.variants),
152
+ link: replaceVariants(getSelector("a[href]"), require_link_style.linkStyle.variants, { color: void 0 }),
153
+ table: {
154
+ line: {
155
+ [getSelector("tbody")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.line.tbody),
156
+ [getSelector("tfoot")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.line.tfoot),
157
+ [getSelector("thead")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.line.thead)
158
+ },
159
+ outline: {
160
+ [getSelector("table")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.outline.root),
161
+ [getSelector("tbody")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.outline.tbody),
162
+ [getSelector("tfoot")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.outline.tfoot),
163
+ [getSelector("thead")]: getScopedStyle(require_native_table_style.nativeTableStyle.variants?.outline.thead)
164
+ }
165
+ }
166
+ },
167
+ sizes: {
168
+ sm: {
169
+ "--space": "fontSizes.sm",
170
+ fontSize: "sm",
171
+ [getSelector("code:not(pre code), kbd")]: require_code_style.codeStyle.sizes?.sm,
172
+ [getSelector("table")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.sm.root),
173
+ [getSelector("td")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.sm.td),
174
+ [getSelector("th")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.sm.th)
175
+ },
176
+ md: {
177
+ "--space": "fontSizes.md",
178
+ fontSize: "md",
179
+ [getSelector("code:not(pre code), kbd")]: require_code_style.codeStyle.sizes?.md,
180
+ [getSelector("table")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.md.root),
181
+ [getSelector("td")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.md.td),
182
+ [getSelector("th")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.md.th)
183
+ },
184
+ lg: {
185
+ "--space": "fontSizes.lg",
186
+ fontSize: "lg",
187
+ [getSelector("code:not(pre code), kbd")]: require_code_style.codeStyle.sizes?.lg,
188
+ [getSelector("table")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.lg.root),
189
+ [getSelector("td")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.lg.td),
190
+ [getSelector("th")]: getScopedStyle(require_native_table_style.nativeTableStyle.sizes?.lg.th)
191
+ }
192
+ },
193
+ defaultProps: {
194
+ size: "md",
195
+ blockquote: "subtle",
196
+ code: "subtle",
197
+ kbd: "outline",
198
+ link: "plain",
199
+ table: "line"
200
+ }
201
+ });
202
+ //#endregion
203
+ exports.proseStyle = proseStyle;
204
+
205
+ //# sourceMappingURL=prose.style.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prose.style.cjs","names":["getStyle","defineComponentStyle","headingStyle","linkStyle","listStyle","blockquoteStyle","codeStyle","nativeTableStyle","separatorStyle"],"sources":["../../../../src/components/prose/prose.style.ts"],"sourcesContent":["import type { CSSObject } from \"../../core\"\nimport { defineComponentStyle, getStyle } from \"../../core\"\nimport { isObject } from \"../../utils\"\nimport { blockquoteStyle } from \"../blockquote\"\nimport { codeStyle } from \"../code\"\nimport { headingStyle } from \"../heading\"\nimport { linkStyle } from \"../link\"\nimport { listStyle } from \"../list\"\nimport { nativeTableStyle } from \"../native-table\"\nimport { separatorStyle } from \"../separator\"\n\nfunction getSelector<Y extends string>(selector: Y) {\n return `& :where(${selector}):not(:where(.not-prose, .not-prose *))` as const\n}\nfunction getScopedStyle(style?: CSSObject): CSSObject | undefined {\n if (!style) return style\n\n return Object.fromEntries(\n Object.entries(style).map(([key, value]) => [\n key,\n isObject(value) && !getStyle(key) && !key.startsWith(\"--\")\n ? {\n \"&:not(:where(.not-prose, .not-prose *))\": getScopedStyle(value),\n }\n : value,\n ]),\n )\n}\nfunction replaceVariants<Y extends string, M extends object | undefined>(\n selector: Y,\n style: M,\n additionalStyle: CSSObject = {},\n): { [D in keyof NonNullable<M>]: { [H in Y]: CSSObject } } {\n return Object.fromEntries(\n Object.entries(style ?? {}).map(([key, value]) => [\n key,\n { [selector]: { ...value, ...additionalStyle } },\n ]),\n ) as { [D in keyof NonNullable<M>]: { [H in Y]: CSSObject } }\n}\nfunction pickSlot<Y extends object | undefined>(\n variants: Y,\n slot: keyof NonNullable<Y>[keyof NonNullable<Y>],\n): { [D in keyof NonNullable<Y>]: CSSObject } {\n return Object.fromEntries(\n Object.entries(variants ?? {}).map(([key, value]) => [key, value[slot]]),\n ) as { [D in keyof NonNullable<Y>]: CSSObject }\n}\n\nexport const proseStyle = defineComponentStyle({\n base: {\n minW: \"0\",\n overflowWrap: \"break-word\",\n w: \"full\",\n\n [getSelector(\"*\")]: {\n \"&::before, &::after\": {\n textBoxEdge: \"inherit\",\n textBoxTrim: \"inherit\",\n },\n color: \"fg.emphasized\",\n textBoxEdge: \"text\",\n textBoxTrim: \"trim-both\",\n },\n\n \"& :where(.not-prose)\": { textBoxEdge: \"auto\", textBoxTrim: \"none\" },\n\n [getSelector(\n \"h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, a[href] *, blockquote *, th *\",\n )]: {\n color: \"inherit\",\n },\n\n [getSelector(\"p, ul, ol, dl, hr, blockquote, pre, table, figure\")]: {\n my: \"{space}\",\n },\n\n [getSelector(\"h1, h2, h3, h4, h5, h6\")]: {\n ...headingStyle.base,\n color: \"fg\",\n my: \"{space}\",\n },\n\n [getSelector(\"h1\")]: { fontSize: \"2em\", mt: \"calc({space} * 2)\" },\n [getSelector(\"h2\")]: { fontSize: \"1.5em\", mt: \"calc({space} * 2)\" },\n [getSelector(\"h3\")]: { fontSize: \"1.25em\", mt: \"calc({space} * 1.5)\" },\n [getSelector(\"h4\")]: { fontSize: \"1.125em\", mt: \"calc({space} * 1.5)\" },\n [getSelector(\"h5\")]: { fontSize: \"1em\" },\n [getSelector(\"h6\")]: { fontSize: \"0.875em\" },\n\n [getSelector(\"a[href]\")]: {\n ...linkStyle.base,\n color: \"link.fg\",\n display: \"inline\",\n },\n\n [getSelector(\"b, strong, dt\")]: { fontWeight: \"semibold\" },\n [getSelector(\"em, i\")]: { fontStyle: \"italic\" },\n\n [getSelector(\"ul, ol\")]: listStyle.base?.root,\n\n [getSelector(\"ul\")]: {\n ...listStyle.props?.styleType.disc.root,\n listStyleType: \"disc\",\n },\n\n [getSelector(\"ol\")]: {\n ...listStyle.props?.styleType.decimal.root,\n listStyleType: \"decimal\",\n },\n\n [getSelector(\"li\")]: listStyle.base?.item,\n\n [getSelector(\"li > ul, li > ol\")]: {\n mb: \"0\",\n mt: listStyle.base?.root?.gap,\n },\n\n [getSelector(\"li > [data-list-icon]\")]: listStyle.base?.icon,\n\n [getSelector(\"dd\")]: { mt: \"0.5em\", ps: \"1.5em\" },\n\n [getSelector(\"blockquote\")]: { color: \"fg\", ps: \"1em\" },\n\n [getSelector(\"figcaption\")]: {\n ...blockquoteStyle.base?.caption,\n color: \"fg\",\n fontSize: \"0.875em\",\n my: \"calc({space} / 2)\",\n textAlign: \"end\",\n },\n\n [getSelector(\"cite\")]: blockquoteStyle.base?.cite,\n\n [getSelector(\"code:not(pre code), kbd\")]: codeStyle.base,\n\n [getSelector(\"pre\")]: {\n bg: \"bg.subtle\",\n fontFamily: \"mono\",\n fontSize: \"0.875em\",\n overflowWrap: \"normal\",\n overflowX: \"auto\",\n p: \"{space}\",\n rounded: \"l2\",\n whiteSpace: \"pre\",\n },\n\n [getSelector(\"pre code\")]: { color: \"fg\" },\n\n [getSelector(\"table\")]: getScopedStyle(nativeTableStyle.base?.root),\n\n [getSelector(\"thead\")]: getScopedStyle(nativeTableStyle.base?.thead),\n\n [getSelector(\"tbody\")]: getScopedStyle(nativeTableStyle.base?.tbody),\n\n [getSelector(\"tfoot\")]: getScopedStyle(nativeTableStyle.base?.tfoot),\n\n [getSelector(\"tr\")]: getScopedStyle(nativeTableStyle.base?.tr),\n\n [getSelector(\"th\")]: {\n ...getScopedStyle(nativeTableStyle.base?.th),\n color: \"fg\",\n },\n\n [getSelector(\"td\")]: getScopedStyle(nativeTableStyle.base?.td),\n\n [getSelector(\"caption\")]: {\n ...getScopedStyle(nativeTableStyle.base?.caption),\n fontSize: \"0.875em\",\n my: \"calc({space} / 2)\",\n },\n\n [getSelector(\"hr\")]: { ...separatorStyle.base, borderTopWidth: \"1px\" },\n [getSelector(\"img, video\")]: { h: \"auto\", maxW: \"full\" },\n\n \"& > :where(:not(style, :not(style) ~ *)):not(:where(.not-prose, .not-prose *))\":\n {\n mt: \"0\",\n },\n\n \"& > :where(:not(style, :has(~ :not(style)))):not(:where(.not-prose, .not-prose *))\":\n {\n mb: \"0\",\n },\n },\n\n props: {\n blockquote: replaceVariants(\n getSelector(\"blockquote\"),\n pickSlot(blockquoteStyle.variants, \"root\"),\n { px: undefined },\n ),\n code: replaceVariants(\n getSelector(\"code:not(pre code)\"),\n codeStyle.variants,\n ),\n hr: replaceVariants(getSelector(\"hr\"), separatorStyle.variants),\n kbd: replaceVariants(getSelector(\"kbd\"), codeStyle.variants),\n link: replaceVariants(getSelector(\"a[href]\"), linkStyle.variants, {\n color: undefined,\n }),\n table: {\n line: {\n [getSelector(\"tbody\")]: getScopedStyle(\n nativeTableStyle.variants?.line.tbody,\n ),\n [getSelector(\"tfoot\")]: getScopedStyle(\n nativeTableStyle.variants?.line.tfoot,\n ),\n [getSelector(\"thead\")]: getScopedStyle(\n nativeTableStyle.variants?.line.thead,\n ),\n },\n outline: {\n [getSelector(\"table\")]: getScopedStyle(\n nativeTableStyle.variants?.outline.root,\n ),\n [getSelector(\"tbody\")]: getScopedStyle(\n nativeTableStyle.variants?.outline.tbody,\n ),\n [getSelector(\"tfoot\")]: getScopedStyle(\n nativeTableStyle.variants?.outline.tfoot,\n ),\n [getSelector(\"thead\")]: getScopedStyle(\n nativeTableStyle.variants?.outline.thead,\n ),\n },\n },\n },\n\n sizes: {\n sm: {\n \"--space\": \"fontSizes.sm\",\n fontSize: \"sm\",\n [getSelector(\"code:not(pre code), kbd\")]: codeStyle.sizes?.sm,\n [getSelector(\"table\")]: getScopedStyle(nativeTableStyle.sizes?.sm.root),\n [getSelector(\"td\")]: getScopedStyle(nativeTableStyle.sizes?.sm.td),\n [getSelector(\"th\")]: getScopedStyle(nativeTableStyle.sizes?.sm.th),\n },\n md: {\n \"--space\": \"fontSizes.md\",\n fontSize: \"md\",\n [getSelector(\"code:not(pre code), kbd\")]: codeStyle.sizes?.md,\n [getSelector(\"table\")]: getScopedStyle(nativeTableStyle.sizes?.md.root),\n [getSelector(\"td\")]: getScopedStyle(nativeTableStyle.sizes?.md.td),\n [getSelector(\"th\")]: getScopedStyle(nativeTableStyle.sizes?.md.th),\n },\n lg: {\n \"--space\": \"fontSizes.lg\",\n fontSize: \"lg\",\n [getSelector(\"code:not(pre code), kbd\")]: codeStyle.sizes?.lg,\n [getSelector(\"table\")]: getScopedStyle(nativeTableStyle.sizes?.lg.root),\n [getSelector(\"td\")]: getScopedStyle(nativeTableStyle.sizes?.lg.td),\n [getSelector(\"th\")]: getScopedStyle(nativeTableStyle.sizes?.lg.th),\n },\n },\n\n defaultProps: {\n size: \"md\",\n blockquote: \"subtle\",\n code: \"subtle\",\n kbd: \"outline\",\n link: \"plain\",\n table: \"line\",\n },\n})\n\nexport type ProseStyle = typeof proseStyle\n"],"mappings":";;;;;;;;;;;AAWA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E;IAChE,YAAY,IAAI,IAAI,eAAeA,2BAAAA,iBAAiB,OAAO,GAAG,EAAE;EACnE;CACF;CAEA,cAAc;EACZ,MAAM;EACN,YAAY;EACZ,MAAM;EACN,KAAK;EACL,MAAM;EACN,OAAO;CACT;AACF,CAAC"}
@@ -2273,6 +2273,10 @@ const require_pin_input_style = require("./components/pin-input/pin-input.style.
2273
2273
  const require_use_pin_input = require("./components/pin-input/use-pin-input.cjs");
2274
2274
  const require_pin_input = require("./components/pin-input/pin-input.cjs");
2275
2275
  const require_namespace$42 = require("./components/pin-input/namespace.cjs");
2276
+ const require_separator_style = require("./components/separator/separator.style.cjs");
2277
+ const require_separator = require("./components/separator/separator.cjs");
2278
+ const require_prose_style = require("./components/prose/prose.style.cjs");
2279
+ const require_prose = require("./components/prose/prose.cjs");
2276
2280
  const require_qr_code_style = require("./components/qr-code/qr-code.style.cjs");
2277
2281
  const require_use_qr_code = require("./components/qr-code/use-qr-code.cjs");
2278
2282
  const require_qr_code = require("./components/qr-code/qr-code.cjs");
@@ -2308,8 +2312,6 @@ const require_segmented_control_style = require("./components/segmented-control/
2308
2312
  const require_use_segmented_control = require("./components/segmented-control/use-segmented-control.cjs");
2309
2313
  const require_segmented_control = require("./components/segmented-control/segmented-control.cjs");
2310
2314
  const require_namespace$47 = require("./components/segmented-control/namespace.cjs");
2311
- const require_separator_style = require("./components/separator/separator.style.cjs");
2312
- const require_separator = require("./components/separator/separator.cjs");
2313
2315
  const require_sidebar_style = require("./components/sidebar/sidebar.style.cjs");
2314
2316
  const require_hooks_use_processing_index = require("./hooks/use-processing/index.cjs");
2315
2317
  const require_hooks_use_async_callback_index = require("./hooks/use-async-callback/index.cjs");
@@ -4148,6 +4150,8 @@ var src_exports = /* @__PURE__ */ require_runtime.__exportAll({
4148
4150
  ProgressPropsContext: () => require_progress.ProgressPropsContext,
4149
4151
  ProjectorIcon: () => require_projector_icon.ProjectorIcon,
4150
4152
  ProportionsIcon: () => require_proportions_icon.ProportionsIcon,
4153
+ Prose: () => require_prose.Prose,
4154
+ ProsePropsContext: () => require_prose.ProsePropsContext,
4151
4155
  PuzzleIcon: () => require_puzzle_icon.PuzzleIcon,
4152
4156
  PyramidIcon: () => require_pyramid_icon.PyramidIcon,
4153
4157
  QrCode: () => require_namespace$43.namespace_exports,
@@ -5178,6 +5182,7 @@ var src_exports = /* @__PURE__ */ require_runtime.__exportAll({
5178
5182
  popoverStyle: () => require_popover_style.popoverStyle,
5179
5183
  popperProps: () => require_hooks_use_popper_index.popperProps,
5180
5184
  progressStyle: () => require_progress_style.progressStyle,
5185
+ proseStyle: () => require_prose_style.proseStyle,
5181
5186
  pseudoClassProperties: () => require_conditions.pseudoClassProperties,
5182
5187
  pseudoClassSelectors: () => require_conditions.pseudoClassSelectors,
5183
5188
  pseudoClasses: () => require_conditions.pseudoClasses,
@@ -5499,6 +5504,7 @@ var src_exports = /* @__PURE__ */ require_runtime.__exportAll({
5499
5504
  useProgress: () => require_use_progress.useProgress,
5500
5505
  useProgressPropsContext: () => require_progress.useProgressPropsContext,
5501
5506
  usePromiseDisclosure: () => require_use_promise_disclosure.usePromiseDisclosure,
5507
+ useProsePropsContext: () => require_prose.useProsePropsContext,
5502
5508
  useQrCode: () => require_use_qr_code.useQrCode,
5503
5509
  useQrCodePropsContext: () => require_qr_code.useQrCodePropsContext,
5504
5510
  useRadio: () => require_use_radio.useRadio,
@@ -7628,6 +7634,8 @@ exports.Progress = require_progress.Progress;
7628
7634
  exports.ProgressPropsContext = require_progress.ProgressPropsContext;
7629
7635
  exports.ProjectorIcon = require_projector_icon.ProjectorIcon;
7630
7636
  exports.ProportionsIcon = require_proportions_icon.ProportionsIcon;
7637
+ exports.Prose = require_prose.Prose;
7638
+ exports.ProsePropsContext = require_prose.ProsePropsContext;
7631
7639
  exports.PuzzleIcon = require_puzzle_icon.PuzzleIcon;
7632
7640
  exports.PyramidIcon = require_pyramid_icon.PyramidIcon;
7633
7641
  Object.defineProperty(exports, "QrCode", {
@@ -8763,6 +8771,7 @@ exports.popoverProps = require_use_popover.popoverProps;
8763
8771
  exports.popoverStyle = require_popover_style.popoverStyle;
8764
8772
  exports.popperProps = require_hooks_use_popper_index.popperProps;
8765
8773
  exports.progressStyle = require_progress_style.progressStyle;
8774
+ exports.proseStyle = require_prose_style.proseStyle;
8766
8775
  exports.pseudoClassProperties = require_conditions.pseudoClassProperties;
8767
8776
  exports.pseudoClassSelectors = require_conditions.pseudoClassSelectors;
8768
8777
  exports.pseudoClasses = require_conditions.pseudoClasses;
@@ -9084,6 +9093,7 @@ exports.useProcessing = require_hooks_use_processing_index.useProcessing;
9084
9093
  exports.useProgress = require_use_progress.useProgress;
9085
9094
  exports.useProgressPropsContext = require_progress.useProgressPropsContext;
9086
9095
  exports.usePromiseDisclosure = require_use_promise_disclosure.usePromiseDisclosure;
9096
+ exports.useProsePropsContext = require_prose.useProsePropsContext;
9087
9097
  exports.useQrCode = require_use_qr_code.useQrCode;
9088
9098
  exports.useQrCodePropsContext = require_qr_code.useQrCodePropsContext;
9089
9099
  exports.useRadio = require_use_radio.useRadio;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./core\"\nexport * from \"./theme\"\nexport * from \"./utils\"\n\nexport * from \"./components/accordion\"\nexport * from \"./components/action-bar\"\nexport * from \"./components/airy\"\nexport * from \"./components/alert\"\nexport * from \"./components/alpha-slider\"\nexport * from \"./components/aspect-ratio\"\nexport * from \"./components/autocomplete\"\nexport * from \"./components/avatar\"\nexport * from \"./components/badge\"\nexport * from \"./components/bleed\"\nexport * from \"./components/blockquote\"\nexport * from \"./components/box\"\nexport * from \"./components/breadcrumb\"\nexport * from \"./components/button\"\nexport * from \"./components/calendar\"\nexport * from \"./components/card\"\nexport * from \"./components/carousel\"\nexport * from \"./components/center\"\nexport * from \"./components/chart\"\nexport * from \"./components/checkbox\"\nexport * from \"./components/checkbox-card\"\nexport * from \"./components/circle-progress\"\nexport * from \"./components/client-only\"\nexport * from \"./components/close-button\"\nexport * from \"./components/code\"\nexport * from \"./components/collapse\"\nexport * from \"./components/color-picker\"\nexport * from \"./components/color-selector\"\nexport * from \"./components/color-swatch\"\nexport * from \"./components/container\"\nexport * from \"./components/data-list\"\nexport * from \"./components/date-picker\"\nexport * from \"./components/drawer\"\nexport * from \"./components/dropzone\"\nexport * from \"./components/editable\"\nexport * from \"./components/em\"\nexport * from \"./components/empty-state\"\nexport * from \"./components/fade\"\nexport * from \"./components/fade-scale\"\nexport * from \"./components/field\"\nexport * from \"./components/fieldset\"\nexport * from \"./components/file-button\"\nexport * from \"./components/file-input\"\nexport * from \"./components/flex\"\nexport * from \"./components/flip\"\nexport * from \"./components/float\"\nexport * from \"./components/focus-lock\"\nexport * from \"./components/for\"\nexport * from \"./components/form\"\nexport * from \"./components/format\"\nexport * from \"./components/grid\"\nexport * from \"./components/group\"\nexport * from \"./components/heading\"\nexport * from \"./components/highlight\"\nexport * from \"./components/hue-slider\"\nexport * from \"./components/icon\"\nexport * from \"./components/image\"\nexport * from \"./components/indicator\"\nexport * from \"./components/infinite-scroll-area\"\nexport * from \"./components/input\"\nexport * from \"./components/kbd\"\nexport * from \"./components/link\"\nexport * from \"./components/link-box\"\nexport * from \"./components/list\"\nexport * from \"./components/loading\"\nexport * from \"./components/mark\"\nexport * from \"./components/marquee\"\nexport * from \"./components/menu\"\nexport * from \"./components/modal\"\nexport * from \"./components/motion\"\nexport * from \"./components/native-accordion\"\nexport * from \"./components/native-popover\"\nexport * from \"./components/native-select\"\nexport * from \"./components/native-table\"\nexport * from \"./components/notice\"\nexport * from \"./components/number-input\"\nexport * from \"./components/pagination\"\nexport * from \"./components/password-input\"\nexport * from \"./components/picture\"\nexport * from \"./components/pin-input\"\nexport * from \"./components/popover\"\nexport * from \"./components/portal\"\nexport * from \"./components/progress\"\nexport * from \"./components/qr-code\"\nexport * from \"./components/radio\"\nexport * from \"./components/radio-card\"\nexport * from \"./components/rating\"\nexport * from \"./components/reorder\"\nexport * from \"./components/resizable\"\nexport * from \"./components/ripple\"\nexport * from \"./components/rotate\"\nexport * from \"./components/saturation-slider\"\nexport * from \"./components/scroll-area\"\nexport * from \"./components/segmented-control\"\nexport * from \"./components/select\"\nexport * from \"./components/separator\"\nexport * from \"./components/show\"\nexport * from \"./components/sidebar\"\nexport * from \"./components/simple-grid\"\nexport * from \"./components/skeleton\"\nexport * from \"./components/slide\"\nexport * from \"./components/slide-fade\"\nexport * from \"./components/slider\"\nexport * from \"./components/slot\"\nexport * from \"./components/snacks\"\nexport * from \"./components/stack\"\nexport * from \"./components/stat\"\nexport * from \"./components/status\"\nexport * from \"./components/steps\"\nexport * from \"./components/switch\"\nexport * from \"./components/table\"\nexport * from \"./components/tabs\"\nexport * from \"./components/tag\"\nexport * from \"./components/text\"\nexport * from \"./components/textarea\"\nexport * from \"./components/timeline\"\nexport * from \"./components/tip\"\nexport * from \"./components/toggle\"\nexport * from \"./components/tooltip\"\nexport * from \"./components/tree\"\nexport * from \"./components/visually-hidden\"\nexport * from \"./components/wrap\"\n\nexport * from \"./hooks/use-animation\"\nexport * from \"./hooks/use-async\"\nexport * from \"./hooks/use-async-callback\"\nexport * from \"./hooks/use-boolean\"\nexport * from \"./hooks/use-breakpoint\"\nexport * from \"./hooks/use-clickable\"\nexport * from \"./hooks/use-clipboard\"\nexport * from \"./hooks/use-combobox\"\nexport * from \"./hooks/use-controllable-state\"\nexport * from \"./hooks/use-counter\"\nexport * from \"./hooks/use-descendants\"\nexport * from \"./hooks/use-disclosure\"\nexport * from \"./hooks/use-event-listener\"\nexport * from \"./hooks/use-eye-dropper\"\nexport * from \"./hooks/use-field-sizing\"\nexport * from \"./hooks/use-focus\"\nexport * from \"./hooks/use-hover\"\nexport * from \"./hooks/use-idle\"\nexport * from \"./hooks/use-interval\"\nexport * from \"./hooks/use-lazy-mount\"\nexport * from \"./hooks/use-local-storage\"\nexport * from \"./hooks/use-media-query\"\nexport * from \"./hooks/use-mounted\"\nexport * from \"./hooks/use-online\"\nexport * from \"./hooks/use-os\"\nexport * from \"./hooks/use-outside-click\"\nexport * from \"./hooks/use-pan-event\"\nexport * from \"./hooks/use-popper\"\nexport * from \"./hooks/use-previous\"\nexport * from \"./hooks/use-processing\"\nexport * from \"./hooks/use-resize-observer\"\nexport * from \"./hooks/use-timeout\"\nexport * from \"./hooks/use-value\"\nexport * from \"./hooks/use-window-event\"\n\nexport * from \"./providers/i18n-provider\"\nexport * from \"./providers/ui-provider\"\n"],"mappings":""}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./core\"\nexport * from \"./theme\"\nexport * from \"./utils\"\n\nexport * from \"./components/accordion\"\nexport * from \"./components/action-bar\"\nexport * from \"./components/airy\"\nexport * from \"./components/alert\"\nexport * from \"./components/alpha-slider\"\nexport * from \"./components/aspect-ratio\"\nexport * from \"./components/autocomplete\"\nexport * from \"./components/avatar\"\nexport * from \"./components/badge\"\nexport * from \"./components/bleed\"\nexport * from \"./components/blockquote\"\nexport * from \"./components/box\"\nexport * from \"./components/breadcrumb\"\nexport * from \"./components/button\"\nexport * from \"./components/calendar\"\nexport * from \"./components/card\"\nexport * from \"./components/carousel\"\nexport * from \"./components/center\"\nexport * from \"./components/chart\"\nexport * from \"./components/checkbox\"\nexport * from \"./components/checkbox-card\"\nexport * from \"./components/circle-progress\"\nexport * from \"./components/client-only\"\nexport * from \"./components/close-button\"\nexport * from \"./components/code\"\nexport * from \"./components/collapse\"\nexport * from \"./components/color-picker\"\nexport * from \"./components/color-selector\"\nexport * from \"./components/color-swatch\"\nexport * from \"./components/container\"\nexport * from \"./components/data-list\"\nexport * from \"./components/date-picker\"\nexport * from \"./components/drawer\"\nexport * from \"./components/dropzone\"\nexport * from \"./components/editable\"\nexport * from \"./components/em\"\nexport * from \"./components/empty-state\"\nexport * from \"./components/fade\"\nexport * from \"./components/fade-scale\"\nexport * from \"./components/field\"\nexport * from \"./components/fieldset\"\nexport * from \"./components/file-button\"\nexport * from \"./components/file-input\"\nexport * from \"./components/flex\"\nexport * from \"./components/flip\"\nexport * from \"./components/float\"\nexport * from \"./components/focus-lock\"\nexport * from \"./components/for\"\nexport * from \"./components/form\"\nexport * from \"./components/format\"\nexport * from \"./components/grid\"\nexport * from \"./components/group\"\nexport * from \"./components/heading\"\nexport * from \"./components/highlight\"\nexport * from \"./components/hue-slider\"\nexport * from \"./components/icon\"\nexport * from \"./components/image\"\nexport * from \"./components/indicator\"\nexport * from \"./components/infinite-scroll-area\"\nexport * from \"./components/input\"\nexport * from \"./components/kbd\"\nexport * from \"./components/link\"\nexport * from \"./components/link-box\"\nexport * from \"./components/list\"\nexport * from \"./components/loading\"\nexport * from \"./components/mark\"\nexport * from \"./components/marquee\"\nexport * from \"./components/menu\"\nexport * from \"./components/modal\"\nexport * from \"./components/motion\"\nexport * from \"./components/native-accordion\"\nexport * from \"./components/native-popover\"\nexport * from \"./components/native-select\"\nexport * from \"./components/native-table\"\nexport * from \"./components/notice\"\nexport * from \"./components/number-input\"\nexport * from \"./components/pagination\"\nexport * from \"./components/password-input\"\nexport * from \"./components/picture\"\nexport * from \"./components/pin-input\"\nexport * from \"./components/popover\"\nexport * from \"./components/portal\"\nexport * from \"./components/progress\"\nexport * from \"./components/prose\"\nexport * from \"./components/qr-code\"\nexport * from \"./components/radio\"\nexport * from \"./components/radio-card\"\nexport * from \"./components/rating\"\nexport * from \"./components/reorder\"\nexport * from \"./components/resizable\"\nexport * from \"./components/ripple\"\nexport * from \"./components/rotate\"\nexport * from \"./components/saturation-slider\"\nexport * from \"./components/scroll-area\"\nexport * from \"./components/segmented-control\"\nexport * from \"./components/select\"\nexport * from \"./components/separator\"\nexport * from \"./components/show\"\nexport * from \"./components/sidebar\"\nexport * from \"./components/simple-grid\"\nexport * from \"./components/skeleton\"\nexport * from \"./components/slide\"\nexport * from \"./components/slide-fade\"\nexport * from \"./components/slider\"\nexport * from \"./components/slot\"\nexport * from \"./components/snacks\"\nexport * from \"./components/stack\"\nexport * from \"./components/stat\"\nexport * from \"./components/status\"\nexport * from \"./components/steps\"\nexport * from \"./components/switch\"\nexport * from \"./components/table\"\nexport * from \"./components/tabs\"\nexport * from \"./components/tag\"\nexport * from \"./components/text\"\nexport * from \"./components/textarea\"\nexport * from \"./components/timeline\"\nexport * from \"./components/tip\"\nexport * from \"./components/toggle\"\nexport * from \"./components/tooltip\"\nexport * from \"./components/tree\"\nexport * from \"./components/visually-hidden\"\nexport * from \"./components/wrap\"\n\nexport * from \"./hooks/use-animation\"\nexport * from \"./hooks/use-async\"\nexport * from \"./hooks/use-async-callback\"\nexport * from \"./hooks/use-boolean\"\nexport * from \"./hooks/use-breakpoint\"\nexport * from \"./hooks/use-clickable\"\nexport * from \"./hooks/use-clipboard\"\nexport * from \"./hooks/use-combobox\"\nexport * from \"./hooks/use-controllable-state\"\nexport * from \"./hooks/use-counter\"\nexport * from \"./hooks/use-descendants\"\nexport * from \"./hooks/use-disclosure\"\nexport * from \"./hooks/use-event-listener\"\nexport * from \"./hooks/use-eye-dropper\"\nexport * from \"./hooks/use-field-sizing\"\nexport * from \"./hooks/use-focus\"\nexport * from \"./hooks/use-hover\"\nexport * from \"./hooks/use-idle\"\nexport * from \"./hooks/use-interval\"\nexport * from \"./hooks/use-lazy-mount\"\nexport * from \"./hooks/use-local-storage\"\nexport * from \"./hooks/use-media-query\"\nexport * from \"./hooks/use-mounted\"\nexport * from \"./hooks/use-online\"\nexport * from \"./hooks/use-os\"\nexport * from \"./hooks/use-outside-click\"\nexport * from \"./hooks/use-pan-event\"\nexport * from \"./hooks/use-popper\"\nexport * from \"./hooks/use-previous\"\nexport * from \"./hooks/use-processing\"\nexport * from \"./hooks/use-resize-observer\"\nexport * from \"./hooks/use-timeout\"\nexport * from \"./hooks/use-value\"\nexport * from \"./hooks/use-window-event\"\n\nexport * from \"./providers/i18n-provider\"\nexport * from \"./providers/ui-provider\"\n"],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { proseStyle } from "./prose.style.js";
2
+ import { Prose, ProsePropsContext, useProsePropsContext } from "./prose.js";
3
+ export { Prose, ProsePropsContext, proseStyle, useProsePropsContext };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { createComponent } from "../../core/components/create-component.js";
3
+ import { proseStyle } from "./prose.style.js";
4
+ //#region src/components/prose/prose.tsx
5
+ const { PropsContext: ProsePropsContext, usePropsContext: useProsePropsContext, withContext } = createComponent("prose", proseStyle);
6
+ /**
7
+ * `Prose` is a component that styles HTML content. By default, it renders a `div` element.
8
+ *
9
+ * @see https://yamada-ui.com/docs/components/prose
10
+ */
11
+ const Prose = withContext("div")();
12
+ //#endregion
13
+ export { Prose, ProsePropsContext, useProsePropsContext };
14
+
15
+ //# sourceMappingURL=prose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prose.js","names":[],"sources":["../../../../src/components/prose/prose.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProseStyle } from \"./prose.style\"\nimport { createComponent } from \"../../core\"\nimport { proseStyle } from \"./prose.style\"\n\nexport interface ProseProps\n extends HTMLStyledProps<\"div\">, ThemeProps<ProseStyle> {}\n\nconst {\n PropsContext: ProsePropsContext,\n usePropsContext: useProsePropsContext,\n withContext,\n} = createComponent<ProseProps, ProseStyle>(\"prose\", proseStyle)\n\nexport { ProsePropsContext, useProsePropsContext }\n\n/**\n * `Prose` is a component that styles HTML content. By default, it renders a `div` element.\n *\n * @see https://yamada-ui.com/docs/components/prose\n */\nexport const Prose = withContext(\"div\")()\n"],"mappings":";;;;AAUA,MAAM,EACJ,cAAc,mBACd,iBAAiB,sBACjB,gBACE,gBAAwC,SAAS,UAAU;;;;;;AAS/D,MAAa,QAAQ,YAAY,KAAK,CAAC,CAAC"}
@@ -0,0 +1,205 @@
1
+ import { utils_exports } from "../../utils/index.js";
2
+ import { defineComponentStyle } from "../../core/system/config.js";
3
+ import { getStyle } from "../../core/css/css.js";
4
+ import { blockquoteStyle } from "../blockquote/blockquote.style.js";
5
+ import { codeStyle } from "../code/code.style.js";
6
+ import { headingStyle } from "../heading/heading.style.js";
7
+ import { linkStyle } from "../link/link.style.js";
8
+ import { listStyle } from "../list/list.style.js";
9
+ import { nativeTableStyle } from "../native-table/native-table.style.js";
10
+ import { separatorStyle } from "../separator/separator.style.js";
11
+ //#region src/components/prose/prose.style.ts
12
+ function getSelector(selector) {
13
+ return `& :where(${selector}):not(:where(.not-prose, .not-prose *))`;
14
+ }
15
+ function getScopedStyle(style) {
16
+ if (!style) return style;
17
+ return Object.fromEntries(Object.entries(style).map(([key, value]) => [key, (0, utils_exports.isObject)(value) && !getStyle(key) && !key.startsWith("--") ? { "&:not(:where(.not-prose, .not-prose *))": getScopedStyle(value) } : value]));
18
+ }
19
+ function replaceVariants(selector, style, additionalStyle = {}) {
20
+ return Object.fromEntries(Object.entries(style ?? {}).map(([key, value]) => [key, { [selector]: {
21
+ ...value,
22
+ ...additionalStyle
23
+ } }]));
24
+ }
25
+ function pickSlot(variants, slot) {
26
+ return Object.fromEntries(Object.entries(variants ?? {}).map(([key, value]) => [key, value[slot]]));
27
+ }
28
+ const proseStyle = defineComponentStyle({
29
+ base: {
30
+ minW: "0",
31
+ overflowWrap: "break-word",
32
+ w: "full",
33
+ [getSelector("*")]: {
34
+ "&::before, &::after": {
35
+ textBoxEdge: "inherit",
36
+ textBoxTrim: "inherit"
37
+ },
38
+ color: "fg.emphasized",
39
+ textBoxEdge: "text",
40
+ textBoxTrim: "trim-both"
41
+ },
42
+ "& :where(.not-prose)": {
43
+ textBoxEdge: "auto",
44
+ textBoxTrim: "none"
45
+ },
46
+ [getSelector("h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, a[href] *, blockquote *, th *")]: { color: "inherit" },
47
+ [getSelector("p, ul, ol, dl, hr, blockquote, pre, table, figure")]: { my: "{space}" },
48
+ [getSelector("h1, h2, h3, h4, h5, h6")]: {
49
+ ...headingStyle.base,
50
+ color: "fg",
51
+ my: "{space}"
52
+ },
53
+ [getSelector("h1")]: {
54
+ fontSize: "2em",
55
+ mt: "calc({space} * 2)"
56
+ },
57
+ [getSelector("h2")]: {
58
+ fontSize: "1.5em",
59
+ mt: "calc({space} * 2)"
60
+ },
61
+ [getSelector("h3")]: {
62
+ fontSize: "1.25em",
63
+ mt: "calc({space} * 1.5)"
64
+ },
65
+ [getSelector("h4")]: {
66
+ fontSize: "1.125em",
67
+ mt: "calc({space} * 1.5)"
68
+ },
69
+ [getSelector("h5")]: { fontSize: "1em" },
70
+ [getSelector("h6")]: { fontSize: "0.875em" },
71
+ [getSelector("a[href]")]: {
72
+ ...linkStyle.base,
73
+ color: "link.fg",
74
+ display: "inline"
75
+ },
76
+ [getSelector("b, strong, dt")]: { fontWeight: "semibold" },
77
+ [getSelector("em, i")]: { fontStyle: "italic" },
78
+ [getSelector("ul, ol")]: listStyle.base?.root,
79
+ [getSelector("ul")]: {
80
+ ...listStyle.props?.styleType.disc.root,
81
+ listStyleType: "disc"
82
+ },
83
+ [getSelector("ol")]: {
84
+ ...listStyle.props?.styleType.decimal.root,
85
+ listStyleType: "decimal"
86
+ },
87
+ [getSelector("li")]: listStyle.base?.item,
88
+ [getSelector("li > ul, li > ol")]: {
89
+ mb: "0",
90
+ mt: listStyle.base?.root?.gap
91
+ },
92
+ [getSelector("li > [data-list-icon]")]: listStyle.base?.icon,
93
+ [getSelector("dd")]: {
94
+ mt: "0.5em",
95
+ ps: "1.5em"
96
+ },
97
+ [getSelector("blockquote")]: {
98
+ color: "fg",
99
+ ps: "1em"
100
+ },
101
+ [getSelector("figcaption")]: {
102
+ ...blockquoteStyle.base?.caption,
103
+ color: "fg",
104
+ fontSize: "0.875em",
105
+ my: "calc({space} / 2)",
106
+ textAlign: "end"
107
+ },
108
+ [getSelector("cite")]: blockquoteStyle.base?.cite,
109
+ [getSelector("code:not(pre code), kbd")]: codeStyle.base,
110
+ [getSelector("pre")]: {
111
+ bg: "bg.subtle",
112
+ fontFamily: "mono",
113
+ fontSize: "0.875em",
114
+ overflowWrap: "normal",
115
+ overflowX: "auto",
116
+ p: "{space}",
117
+ rounded: "l2",
118
+ whiteSpace: "pre"
119
+ },
120
+ [getSelector("pre code")]: { color: "fg" },
121
+ [getSelector("table")]: getScopedStyle(nativeTableStyle.base?.root),
122
+ [getSelector("thead")]: getScopedStyle(nativeTableStyle.base?.thead),
123
+ [getSelector("tbody")]: getScopedStyle(nativeTableStyle.base?.tbody),
124
+ [getSelector("tfoot")]: getScopedStyle(nativeTableStyle.base?.tfoot),
125
+ [getSelector("tr")]: getScopedStyle(nativeTableStyle.base?.tr),
126
+ [getSelector("th")]: {
127
+ ...getScopedStyle(nativeTableStyle.base?.th),
128
+ color: "fg"
129
+ },
130
+ [getSelector("td")]: getScopedStyle(nativeTableStyle.base?.td),
131
+ [getSelector("caption")]: {
132
+ ...getScopedStyle(nativeTableStyle.base?.caption),
133
+ fontSize: "0.875em",
134
+ my: "calc({space} / 2)"
135
+ },
136
+ [getSelector("hr")]: {
137
+ ...separatorStyle.base,
138
+ borderTopWidth: "1px"
139
+ },
140
+ [getSelector("img, video")]: {
141
+ h: "auto",
142
+ maxW: "full"
143
+ },
144
+ "& > :where(:not(style, :not(style) ~ *)):not(:where(.not-prose, .not-prose *))": { mt: "0" },
145
+ "& > :where(:not(style, :has(~ :not(style)))):not(:where(.not-prose, .not-prose *))": { mb: "0" }
146
+ },
147
+ props: {
148
+ blockquote: replaceVariants(getSelector("blockquote"), pickSlot(blockquoteStyle.variants, "root"), { px: void 0 }),
149
+ code: replaceVariants(getSelector("code:not(pre code)"), codeStyle.variants),
150
+ hr: replaceVariants(getSelector("hr"), separatorStyle.variants),
151
+ kbd: replaceVariants(getSelector("kbd"), codeStyle.variants),
152
+ link: replaceVariants(getSelector("a[href]"), linkStyle.variants, { color: void 0 }),
153
+ table: {
154
+ line: {
155
+ [getSelector("tbody")]: getScopedStyle(nativeTableStyle.variants?.line.tbody),
156
+ [getSelector("tfoot")]: getScopedStyle(nativeTableStyle.variants?.line.tfoot),
157
+ [getSelector("thead")]: getScopedStyle(nativeTableStyle.variants?.line.thead)
158
+ },
159
+ outline: {
160
+ [getSelector("table")]: getScopedStyle(nativeTableStyle.variants?.outline.root),
161
+ [getSelector("tbody")]: getScopedStyle(nativeTableStyle.variants?.outline.tbody),
162
+ [getSelector("tfoot")]: getScopedStyle(nativeTableStyle.variants?.outline.tfoot),
163
+ [getSelector("thead")]: getScopedStyle(nativeTableStyle.variants?.outline.thead)
164
+ }
165
+ }
166
+ },
167
+ sizes: {
168
+ sm: {
169
+ "--space": "fontSizes.sm",
170
+ fontSize: "sm",
171
+ [getSelector("code:not(pre code), kbd")]: codeStyle.sizes?.sm,
172
+ [getSelector("table")]: getScopedStyle(nativeTableStyle.sizes?.sm.root),
173
+ [getSelector("td")]: getScopedStyle(nativeTableStyle.sizes?.sm.td),
174
+ [getSelector("th")]: getScopedStyle(nativeTableStyle.sizes?.sm.th)
175
+ },
176
+ md: {
177
+ "--space": "fontSizes.md",
178
+ fontSize: "md",
179
+ [getSelector("code:not(pre code), kbd")]: codeStyle.sizes?.md,
180
+ [getSelector("table")]: getScopedStyle(nativeTableStyle.sizes?.md.root),
181
+ [getSelector("td")]: getScopedStyle(nativeTableStyle.sizes?.md.td),
182
+ [getSelector("th")]: getScopedStyle(nativeTableStyle.sizes?.md.th)
183
+ },
184
+ lg: {
185
+ "--space": "fontSizes.lg",
186
+ fontSize: "lg",
187
+ [getSelector("code:not(pre code), kbd")]: codeStyle.sizes?.lg,
188
+ [getSelector("table")]: getScopedStyle(nativeTableStyle.sizes?.lg.root),
189
+ [getSelector("td")]: getScopedStyle(nativeTableStyle.sizes?.lg.td),
190
+ [getSelector("th")]: getScopedStyle(nativeTableStyle.sizes?.lg.th)
191
+ }
192
+ },
193
+ defaultProps: {
194
+ size: "md",
195
+ blockquote: "subtle",
196
+ code: "subtle",
197
+ kbd: "outline",
198
+ link: "plain",
199
+ table: "line"
200
+ }
201
+ });
202
+ //#endregion
203
+ export { proseStyle };
204
+
205
+ //# sourceMappingURL=prose.style.js.map