@knkcs/anker 0.0.1 → 0.0.2

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,303 +0,0 @@
1
- import { AvatarGroup as AvatarGroup$1, chakra, Avatar as Avatar$1 } from '@chakra-ui/react';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
-
4
- // src/primitives/avatar.tsx
5
- var Avatar = function Avatar2({
6
- ref,
7
- ...props
8
- }) {
9
- const { name, src, srcSet, loading, icon, fallback, children, ...rest } = props;
10
- return /* @__PURE__ */ jsxs(Avatar$1.Root, { ref, ...rest, children: [
11
- /* @__PURE__ */ jsx(Avatar$1.Fallback, { name, children: icon || fallback }),
12
- /* @__PURE__ */ jsx(Avatar$1.Image, { src, srcSet, loading }),
13
- children
14
- ] });
15
- };
16
- Avatar.displayName = "Avatar";
17
- var AvatarGroup = AvatarGroup$1;
18
- AvatarGroup.displayName = "AvatarGroup";
19
- var TRAILING_PSEUDO_REGEX = /(::?[\w-]+(?:\([^)]*\))?)+$/;
20
- var EXCLUDE_CLASSNAME = ".not-prose";
21
- function inWhere(selector) {
22
- const rebuiltSelector = selector.startsWith("& ") ? selector.slice(2) : selector;
23
- const match = selector.match(TRAILING_PSEUDO_REGEX);
24
- const pseudo = match ? match[0] : "";
25
- const base = match ? selector.slice(0, -match[0].length) : rebuiltSelector;
26
- return `& :where(${base}):not(${EXCLUDE_CLASSNAME}, ${EXCLUDE_CLASSNAME} *)${pseudo}`;
27
- }
28
- var Prose = chakra("div", {
29
- base: {
30
- color: "fg.muted",
31
- maxWidth: "65ch",
32
- fontSize: "sm",
33
- lineHeight: "1.7em",
34
- [inWhere("& p")]: {
35
- marginTop: "1em",
36
- marginBottom: "1em"
37
- },
38
- [inWhere("& blockquote")]: {
39
- marginTop: "1.285em",
40
- marginBottom: "1.285em",
41
- paddingInline: "1.285em",
42
- borderInlineStartWidth: "0.25em",
43
- color: "fg"
44
- },
45
- [inWhere("& a")]: {
46
- color: "fg",
47
- textDecoration: "underline",
48
- textUnderlineOffset: "3px",
49
- textDecorationThickness: "2px",
50
- textDecorationColor: "border.muted",
51
- fontWeight: "500"
52
- },
53
- [inWhere("& strong")]: {
54
- fontWeight: "600"
55
- },
56
- [inWhere("& a strong")]: {
57
- color: "inherit"
58
- },
59
- [inWhere("& em")]: {
60
- fontStyle: "italic"
61
- },
62
- [inWhere("& h1")]: {
63
- fontSize: "2.15em",
64
- letterSpacing: "-0.02em",
65
- marginTop: "0",
66
- marginBottom: "0.8em",
67
- lineHeight: "1.2em"
68
- },
69
- [inWhere("& h2")]: {
70
- fontSize: "1.65em",
71
- letterSpacing: "-0.02em",
72
- marginTop: "1.6em",
73
- marginBottom: "0.8em",
74
- lineHeight: "1.3em"
75
- },
76
- [inWhere("& h3")]: {
77
- fontSize: "1.35em",
78
- letterSpacing: "-0.01em",
79
- marginTop: "1.5em",
80
- marginBottom: "0.4em",
81
- lineHeight: "1.4em"
82
- },
83
- [inWhere("& h4")]: {
84
- marginTop: "1.4em",
85
- marginBottom: "0.5em",
86
- letterSpacing: "-0.01em",
87
- lineHeight: "1.5em"
88
- },
89
- [inWhere("& img")]: {
90
- marginTop: "1.7em",
91
- marginBottom: "1.7em",
92
- borderRadius: "lg",
93
- boxShadow: "inset"
94
- },
95
- [inWhere("& picture")]: {
96
- marginTop: "1.7em",
97
- marginBottom: "1.7em"
98
- },
99
- [inWhere("& picture > img")]: {
100
- marginTop: "0",
101
- marginBottom: "0"
102
- },
103
- [inWhere("& video")]: {
104
- marginTop: "1.7em",
105
- marginBottom: "1.7em"
106
- },
107
- [inWhere("& kbd")]: {
108
- fontSize: "0.85em",
109
- borderRadius: "xs",
110
- paddingTop: "0.15em",
111
- paddingBottom: "0.15em",
112
- paddingInlineEnd: "0.35em",
113
- paddingInlineStart: "0.35em",
114
- fontFamily: "inherit",
115
- color: "fg.muted",
116
- "--shadow": "colors.border",
117
- boxShadow: "0 0 0 1px var(--shadow), 0 1px 0 1px var(--shadow)"
118
- },
119
- [inWhere("& code")]: {
120
- fontSize: "0.925em",
121
- bg: "bg.muted",
122
- letterSpacing: "-0.01em",
123
- lineHeight: "1",
124
- borderRadius: "md",
125
- borderWidth: "1px",
126
- paddingInline: "0.25em"
127
- },
128
- [inWhere("& pre code")]: {
129
- fontSize: "inherit",
130
- letterSpacing: "inherit",
131
- borderWidth: "inherit",
132
- padding: "0",
133
- bg: "transparent"
134
- },
135
- [inWhere("& h2 code")]: {
136
- fontSize: "0.9em"
137
- },
138
- [inWhere("& h3 code")]: {
139
- fontSize: "0.8em"
140
- },
141
- [inWhere("& pre")]: {
142
- backgroundColor: "bg.muted",
143
- marginTop: "1.6em",
144
- marginBottom: "1.6em",
145
- borderRadius: "md",
146
- fontSize: "0.9em",
147
- paddingTop: "0.65em",
148
- paddingBottom: "0.65em",
149
- paddingInlineEnd: "1em",
150
- paddingInlineStart: "1em",
151
- overflowX: "auto",
152
- fontWeight: "400"
153
- },
154
- [inWhere("& ol")]: {
155
- marginTop: "1em",
156
- marginBottom: "1em",
157
- paddingInlineStart: "1.5em"
158
- },
159
- [inWhere("& ul")]: {
160
- marginTop: "1em",
161
- marginBottom: "1em",
162
- paddingInlineStart: "1.5em"
163
- },
164
- [inWhere("& li")]: {
165
- marginTop: "0.285em",
166
- marginBottom: "0.285em"
167
- },
168
- [inWhere("& ol > li")]: {
169
- paddingInlineStart: "0.4em",
170
- listStyleType: "decimal",
171
- "&::marker": {
172
- color: "fg.muted"
173
- }
174
- },
175
- [inWhere("& ul > li")]: {
176
- paddingInlineStart: "0.4em",
177
- listStyleType: "disc",
178
- "&::marker": {
179
- color: "fg.muted"
180
- }
181
- },
182
- [inWhere("& > ul > li p")]: {
183
- marginTop: "0.5em",
184
- marginBottom: "0.5em"
185
- },
186
- [inWhere("& > ol > li p")]: {
187
- marginTop: "0.5em",
188
- marginBottom: "0.5em"
189
- },
190
- [inWhere("& > ul > li > p:first-of-type")]: {
191
- marginTop: "0em"
192
- },
193
- [inWhere("& > ul > li > p:last-of-type")]: {
194
- marginBottom: "0em"
195
- },
196
- [inWhere("& > ol > li > p:first-of-type")]: {
197
- marginTop: "0em"
198
- },
199
- [inWhere("& > ol > li > p:last-of-type")]: {
200
- marginBottom: "0em"
201
- },
202
- [inWhere("& ul ul, ul ol, ol ul, ol ol")]: {
203
- marginTop: "0.5em",
204
- marginBottom: "0.5em"
205
- },
206
- [inWhere("& dl")]: {
207
- marginTop: "1em",
208
- marginBottom: "1em"
209
- },
210
- [inWhere("& dt")]: {
211
- fontWeight: "600",
212
- marginTop: "1em"
213
- },
214
- [inWhere("& dd")]: {
215
- marginTop: "0.285em",
216
- paddingInlineStart: "1.5em"
217
- },
218
- [inWhere("& hr")]: {
219
- marginTop: "2.25em",
220
- marginBottom: "2.25em"
221
- },
222
- [inWhere("& :is(h1,h2,h3,h4,h5,hr) + *")]: {
223
- marginTop: "0"
224
- },
225
- [inWhere("& table")]: {
226
- width: "100%",
227
- tableLayout: "auto",
228
- textAlign: "start",
229
- lineHeight: "1.5em",
230
- marginTop: "2em",
231
- marginBottom: "2em"
232
- },
233
- [inWhere("& thead")]: {
234
- borderBottomWidth: "1px",
235
- color: "fg"
236
- },
237
- [inWhere("& tbody tr")]: {
238
- borderBottomWidth: "1px",
239
- borderBottomColor: "border"
240
- },
241
- [inWhere("& thead th")]: {
242
- paddingInlineEnd: "1em",
243
- paddingBottom: "0.65em",
244
- paddingInlineStart: "1em",
245
- fontWeight: "medium",
246
- textAlign: "start"
247
- },
248
- [inWhere("& thead th:first-of-type")]: {
249
- paddingInlineStart: "0"
250
- },
251
- [inWhere("& thead th:last-of-type")]: {
252
- paddingInlineEnd: "0"
253
- },
254
- [inWhere("& tbody td, tfoot td")]: {
255
- paddingTop: "0.65em",
256
- paddingInlineEnd: "1em",
257
- paddingBottom: "0.65em",
258
- paddingInlineStart: "1em"
259
- },
260
- [inWhere("& tbody td:first-of-type, tfoot td:first-of-type")]: {
261
- paddingInlineStart: "0"
262
- },
263
- [inWhere("& tbody td:last-of-type, tfoot td:last-of-type")]: {
264
- paddingInlineEnd: "0"
265
- },
266
- [inWhere("& figure")]: {
267
- marginTop: "1.625em",
268
- marginBottom: "1.625em"
269
- },
270
- [inWhere("& figure > *")]: {
271
- marginTop: "0",
272
- marginBottom: "0"
273
- },
274
- [inWhere("& figcaption")]: {
275
- fontSize: "0.85em",
276
- lineHeight: "1.25em",
277
- marginTop: "0.85em",
278
- color: "fg.muted"
279
- },
280
- [inWhere("& h1, h2, h3, h4, h5, h6")]: {
281
- color: "fg",
282
- fontWeight: "600"
283
- }
284
- },
285
- variants: {
286
- size: {
287
- md: {
288
- fontSize: "sm"
289
- },
290
- lg: {
291
- fontSize: "md"
292
- }
293
- }
294
- },
295
- defaultVariants: {
296
- size: "md"
297
- }
298
- });
299
- Prose.displayName = "Prose";
300
-
301
- export { Avatar, AvatarGroup, Prose };
302
- //# sourceMappingURL=chunk-YXTW5OAJ.js.map
303
- //# sourceMappingURL=chunk-YXTW5OAJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/primitives/avatar.tsx","../src/primitives/prose.tsx"],"names":["Avatar","ChakraAvatar","ChakraAvatarGroup"],"mappings":";;;;AAuBO,IAAM,MAAA,GAAS,SAASA,OAAAA,CAAO;AAAA,EACrC,GAAA;AAAA,EACA,GAAG;AACJ,CAAA,EAAsD;AACrD,EAAA,MAAM,EAAE,IAAA,EAAM,GAAA,EAAK,MAAA,EAAQ,OAAA,EAAS,MAAM,QAAA,EAAU,QAAA,EAAU,GAAG,IAAA,EAAK,GACrE,KAAA;AACD,EAAA,4BACEC,QAAA,CAAa,IAAA,EAAb,EAAkB,GAAA,EAAW,GAAG,IAAA,EAChC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAACA,QAAA,CAAa,QAAA,EAAb,EAAsB,IAAA,EACrB,kBAAQ,QAAA,EACV,CAAA;AAAA,wBACCA,QAAA,CAAa,KAAA,EAAb,EAAmB,GAAA,EAAU,QAAgB,OAAA,EAA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AAA,KACrB;AAAA,IACA,CAAC,OAAA,CAAQ,kDAAkD,CAAC,GAAG;AAAA,MAC9D,kBAAA,EAAoB;AAAA,KACrB;AAAA,IACA,CAAC,OAAA,CAAQ,gDAAgD,CAAC,GAAG;AAAA,MAC5D,gBAAA,EAAkB;AAAA,KACnB;AAAA,IACA,CAAC,OAAA,CAAQ,UAAU,CAAC,GAAG;AAAA,MACtB,SAAA,EAAW,SAAA;AAAA,MACX,YAAA,EAAc;AAAA,KACf;AAAA,IACA,CAAC,OAAA,CAAQ,cAAc,CAAC,GAAG;AAAA,MAC1B,SAAA,EAAW,GAAA;AAAA,MACX,YAAA,EAAc;AAAA,KACf;AAAA,IACA,CAAC,OAAA,CAAQ,cAAc,CAAC,GAAG;AAAA,MAC1B,QAAA,EAAU,QAAA;AAAA,MACV,UAAA,EAAY,QAAA;AAAA,MACZ,SAAA,EAAW,QAAA;AAAA,MACX,KAAA,EAAO;AAAA,KACR;AAAA,IACA,CAAC,OAAA,CAAQ,0BAA0B,CAAC,GAAG;AAAA,MACtC,KAAA,EAAO,IAAA;AAAA,MACP,UAAA,EAAY;AAAA;AACb,GACD;AAAA,EACA,QAAA,EAAU;AAAA,IACT,IAAA,EAAM;AAAA,MACL,EAAA,EAAI;AAAA,QACH,QAAA,EAAU;AAAA,OACX;AAAA,MACA,EAAA,EAAI;AAAA,QACH,QAAA,EAAU;AAAA;AACX;AACD,GACD;AAAA,EACA,eAAA,EAAiB;AAAA,IAChB,IAAA,EAAM;AAAA;AAER,CAAC;AACD,KAAA,CAAM,WAAA,GAAc,OAAA","file":"chunk-YXTW5OAJ.js","sourcesContent":["import {\n\tAvatar as ChakraAvatar,\n\tAvatarGroup as ChakraAvatarGroup,\n} from \"@chakra-ui/react\";\nimport type * as React from \"react\";\n\ntype ImageProps = React.ImgHTMLAttributes<HTMLImageElement>;\n\nexport interface AvatarProps extends ChakraAvatar.RootProps {\n\t/** Display name used to generate initials for the fallback. */\n\tname?: string;\n\t/** Image source URL. */\n\tsrc?: string;\n\t/** Image srcSet attribute for responsive images. */\n\tsrcSet?: string;\n\t/** Image loading strategy. */\n\tloading?: ImageProps[\"loading\"];\n\t/** Custom icon element shown as fallback. */\n\ticon?: React.ReactElement;\n\t/** Custom fallback content when no image or icon is provided. */\n\tfallback?: React.ReactNode;\n}\n\nexport const Avatar = function Avatar({\n\tref,\n\t...props\n}: AvatarProps & { ref?: React.Ref<HTMLDivElement> }) {\n\tconst { name, src, srcSet, loading, icon, fallback, children, ...rest } =\n\t\tprops;\n\treturn (\n\t\t<ChakraAvatar.Root ref={ref} {...rest}>\n\t\t\t<ChakraAvatar.Fallback name={name}>\n\t\t\t\t{icon || fallback}\n\t\t\t</ChakraAvatar.Fallback>\n\t\t\t<ChakraAvatar.Image src={src} srcSet={srcSet} loading={loading} />\n\t\t\t{children}\n\t\t</ChakraAvatar.Root>\n\t);\n};\nAvatar.displayName = \"Avatar\";\n\nexport const AvatarGroup = ChakraAvatarGroup;\nAvatarGroup.displayName = \"AvatarGroup\";\n","\"use client\";\n\nimport { chakra } from \"@chakra-ui/react\";\n\nconst TRAILING_PSEUDO_REGEX = /(::?[\\w-]+(?:\\([^)]*\\))?)+$/;\nconst EXCLUDE_CLASSNAME = \".not-prose\";\nfunction inWhere<T extends string>(selector: T): T {\n\tconst rebuiltSelector = selector.startsWith(\"& \")\n\t\t? selector.slice(2)\n\t\t: selector;\n\tconst match = selector.match(TRAILING_PSEUDO_REGEX);\n\tconst pseudo = match ? match[0] : \"\";\n\tconst base = match ? selector.slice(0, -match[0].length) : rebuiltSelector;\n\treturn `& :where(${base}):not(${EXCLUDE_CLASSNAME}, ${EXCLUDE_CLASSNAME} *)${pseudo}` as T;\n}\n\nexport const Prose = chakra(\"div\", {\n\tbase: {\n\t\tcolor: \"fg.muted\",\n\t\tmaxWidth: \"65ch\",\n\t\tfontSize: \"sm\",\n\t\tlineHeight: \"1.7em\",\n\t\t[inWhere(\"& p\")]: {\n\t\t\tmarginTop: \"1em\",\n\t\t\tmarginBottom: \"1em\",\n\t\t},\n\t\t[inWhere(\"& blockquote\")]: {\n\t\t\tmarginTop: \"1.285em\",\n\t\t\tmarginBottom: \"1.285em\",\n\t\t\tpaddingInline: \"1.285em\",\n\t\t\tborderInlineStartWidth: \"0.25em\",\n\t\t\tcolor: \"fg\",\n\t\t},\n\t\t[inWhere(\"& a\")]: {\n\t\t\tcolor: \"fg\",\n\t\t\ttextDecoration: \"underline\",\n\t\t\ttextUnderlineOffset: \"3px\",\n\t\t\ttextDecorationThickness: \"2px\",\n\t\t\ttextDecorationColor: \"border.muted\",\n\t\t\tfontWeight: \"500\",\n\t\t},\n\t\t[inWhere(\"& strong\")]: {\n\t\t\tfontWeight: \"600\",\n\t\t},\n\t\t[inWhere(\"& a strong\")]: {\n\t\t\tcolor: \"inherit\",\n\t\t},\n\t\t[inWhere(\"& em\")]: {\n\t\t\tfontStyle: \"italic\",\n\t\t},\n\t\t[inWhere(\"& h1\")]: {\n\t\t\tfontSize: \"2.15em\",\n\t\t\tletterSpacing: \"-0.02em\",\n\t\t\tmarginTop: \"0\",\n\t\t\tmarginBottom: \"0.8em\",\n\t\t\tlineHeight: \"1.2em\",\n\t\t},\n\t\t[inWhere(\"& h2\")]: {\n\t\t\tfontSize: \"1.65em\",\n\t\t\tletterSpacing: \"-0.02em\",\n\t\t\tmarginTop: \"1.6em\",\n\t\t\tmarginBottom: \"0.8em\",\n\t\t\tlineHeight: \"1.3em\",\n\t\t},\n\t\t[inWhere(\"& h3\")]: {\n\t\t\tfontSize: \"1.35em\",\n\t\t\tletterSpacing: \"-0.01em\",\n\t\t\tmarginTop: \"1.5em\",\n\t\t\tmarginBottom: \"0.4em\",\n\t\t\tlineHeight: \"1.4em\",\n\t\t},\n\t\t[inWhere(\"& h4\")]: {\n\t\t\tmarginTop: \"1.4em\",\n\t\t\tmarginBottom: \"0.5em\",\n\t\t\tletterSpacing: \"-0.01em\",\n\t\t\tlineHeight: \"1.5em\",\n\t\t},\n\t\t[inWhere(\"& img\")]: {\n\t\t\tmarginTop: \"1.7em\",\n\t\t\tmarginBottom: \"1.7em\",\n\t\t\tborderRadius: \"lg\",\n\t\t\tboxShadow: \"inset\",\n\t\t},\n\t\t[inWhere(\"& picture\")]: {\n\t\t\tmarginTop: \"1.7em\",\n\t\t\tmarginBottom: \"1.7em\",\n\t\t},\n\t\t[inWhere(\"& picture > img\")]: {\n\t\t\tmarginTop: \"0\",\n\t\t\tmarginBottom: \"0\",\n\t\t},\n\t\t[inWhere(\"& video\")]: {\n\t\t\tmarginTop: \"1.7em\",\n\t\t\tmarginBottom: \"1.7em\",\n\t\t},\n\t\t[inWhere(\"& kbd\")]: {\n\t\t\tfontSize: \"0.85em\",\n\t\t\tborderRadius: \"xs\",\n\t\t\tpaddingTop: \"0.15em\",\n\t\t\tpaddingBottom: \"0.15em\",\n\t\t\tpaddingInlineEnd: \"0.35em\",\n\t\t\tpaddingInlineStart: \"0.35em\",\n\t\t\tfontFamily: \"inherit\",\n\t\t\tcolor: \"fg.muted\",\n\t\t\t\"--shadow\": \"colors.border\",\n\t\t\tboxShadow: \"0 0 0 1px var(--shadow), 0 1px 0 1px var(--shadow)\",\n\t\t},\n\t\t[inWhere(\"& code\")]: {\n\t\t\tfontSize: \"0.925em\",\n\t\t\tbg: \"bg.muted\",\n\t\t\tletterSpacing: \"-0.01em\",\n\t\t\tlineHeight: \"1\",\n\t\t\tborderRadius: \"md\",\n\t\t\tborderWidth: \"1px\",\n\t\t\tpaddingInline: \"0.25em\",\n\t\t},\n\t\t[inWhere(\"& pre code\")]: {\n\t\t\tfontSize: \"inherit\",\n\t\t\tletterSpacing: \"inherit\",\n\t\t\tborderWidth: \"inherit\",\n\t\t\tpadding: \"0\",\n\t\t\tbg: \"transparent\",\n\t\t},\n\t\t[inWhere(\"& h2 code\")]: {\n\t\t\tfontSize: \"0.9em\",\n\t\t},\n\t\t[inWhere(\"& h3 code\")]: {\n\t\t\tfontSize: \"0.8em\",\n\t\t},\n\t\t[inWhere(\"& pre\")]: {\n\t\t\tbackgroundColor: \"bg.muted\",\n\t\t\tmarginTop: \"1.6em\",\n\t\t\tmarginBottom: \"1.6em\",\n\t\t\tborderRadius: \"md\",\n\t\t\tfontSize: \"0.9em\",\n\t\t\tpaddingTop: \"0.65em\",\n\t\t\tpaddingBottom: \"0.65em\",\n\t\t\tpaddingInlineEnd: \"1em\",\n\t\t\tpaddingInlineStart: \"1em\",\n\t\t\toverflowX: \"auto\",\n\t\t\tfontWeight: \"400\",\n\t\t},\n\t\t[inWhere(\"& ol\")]: {\n\t\t\tmarginTop: \"1em\",\n\t\t\tmarginBottom: \"1em\",\n\t\t\tpaddingInlineStart: \"1.5em\",\n\t\t},\n\t\t[inWhere(\"& ul\")]: {\n\t\t\tmarginTop: \"1em\",\n\t\t\tmarginBottom: \"1em\",\n\t\t\tpaddingInlineStart: \"1.5em\",\n\t\t},\n\t\t[inWhere(\"& li\")]: {\n\t\t\tmarginTop: \"0.285em\",\n\t\t\tmarginBottom: \"0.285em\",\n\t\t},\n\t\t[inWhere(\"& ol > li\")]: {\n\t\t\tpaddingInlineStart: \"0.4em\",\n\t\t\tlistStyleType: \"decimal\",\n\t\t\t\"&::marker\": {\n\t\t\t\tcolor: \"fg.muted\",\n\t\t\t},\n\t\t},\n\t\t[inWhere(\"& ul > li\")]: {\n\t\t\tpaddingInlineStart: \"0.4em\",\n\t\t\tlistStyleType: \"disc\",\n\t\t\t\"&::marker\": {\n\t\t\t\tcolor: \"fg.muted\",\n\t\t\t},\n\t\t},\n\t\t[inWhere(\"& > ul > li p\")]: {\n\t\t\tmarginTop: \"0.5em\",\n\t\t\tmarginBottom: \"0.5em\",\n\t\t},\n\t\t[inWhere(\"& > ol > li p\")]: {\n\t\t\tmarginTop: \"0.5em\",\n\t\t\tmarginBottom: \"0.5em\",\n\t\t},\n\t\t[inWhere(\"& > ul > li > p:first-of-type\")]: {\n\t\t\tmarginTop: \"0em\",\n\t\t},\n\t\t[inWhere(\"& > ul > li > p:last-of-type\")]: {\n\t\t\tmarginBottom: \"0em\",\n\t\t},\n\t\t[inWhere(\"& > ol > li > p:first-of-type\")]: {\n\t\t\tmarginTop: \"0em\",\n\t\t},\n\t\t[inWhere(\"& > ol > li > p:last-of-type\")]: {\n\t\t\tmarginBottom: \"0em\",\n\t\t},\n\t\t[inWhere(\"& ul ul, ul ol, ol ul, ol ol\")]: {\n\t\t\tmarginTop: \"0.5em\",\n\t\t\tmarginBottom: \"0.5em\",\n\t\t},\n\t\t[inWhere(\"& dl\")]: {\n\t\t\tmarginTop: \"1em\",\n\t\t\tmarginBottom: \"1em\",\n\t\t},\n\t\t[inWhere(\"& dt\")]: {\n\t\t\tfontWeight: \"600\",\n\t\t\tmarginTop: \"1em\",\n\t\t},\n\t\t[inWhere(\"& dd\")]: {\n\t\t\tmarginTop: \"0.285em\",\n\t\t\tpaddingInlineStart: \"1.5em\",\n\t\t},\n\t\t[inWhere(\"& hr\")]: {\n\t\t\tmarginTop: \"2.25em\",\n\t\t\tmarginBottom: \"2.25em\",\n\t\t},\n\t\t[inWhere(\"& :is(h1,h2,h3,h4,h5,hr) + *\")]: {\n\t\t\tmarginTop: \"0\",\n\t\t},\n\t\t[inWhere(\"& table\")]: {\n\t\t\twidth: \"100%\",\n\t\t\ttableLayout: \"auto\",\n\t\t\ttextAlign: \"start\",\n\t\t\tlineHeight: \"1.5em\",\n\t\t\tmarginTop: \"2em\",\n\t\t\tmarginBottom: \"2em\",\n\t\t},\n\t\t[inWhere(\"& thead\")]: {\n\t\t\tborderBottomWidth: \"1px\",\n\t\t\tcolor: \"fg\",\n\t\t},\n\t\t[inWhere(\"& tbody tr\")]: {\n\t\t\tborderBottomWidth: \"1px\",\n\t\t\tborderBottomColor: \"border\",\n\t\t},\n\t\t[inWhere(\"& thead th\")]: {\n\t\t\tpaddingInlineEnd: \"1em\",\n\t\t\tpaddingBottom: \"0.65em\",\n\t\t\tpaddingInlineStart: \"1em\",\n\t\t\tfontWeight: \"medium\",\n\t\t\ttextAlign: \"start\",\n\t\t},\n\t\t[inWhere(\"& thead th:first-of-type\")]: {\n\t\t\tpaddingInlineStart: \"0\",\n\t\t},\n\t\t[inWhere(\"& thead th:last-of-type\")]: {\n\t\t\tpaddingInlineEnd: \"0\",\n\t\t},\n\t\t[inWhere(\"& tbody td, tfoot td\")]: {\n\t\t\tpaddingTop: \"0.65em\",\n\t\t\tpaddingInlineEnd: \"1em\",\n\t\t\tpaddingBottom: \"0.65em\",\n\t\t\tpaddingInlineStart: \"1em\",\n\t\t},\n\t\t[inWhere(\"& tbody td:first-of-type, tfoot td:first-of-type\")]: {\n\t\t\tpaddingInlineStart: \"0\",\n\t\t},\n\t\t[inWhere(\"& tbody td:last-of-type, tfoot td:last-of-type\")]: {\n\t\t\tpaddingInlineEnd: \"0\",\n\t\t},\n\t\t[inWhere(\"& figure\")]: {\n\t\t\tmarginTop: \"1.625em\",\n\t\t\tmarginBottom: \"1.625em\",\n\t\t},\n\t\t[inWhere(\"& figure > *\")]: {\n\t\t\tmarginTop: \"0\",\n\t\t\tmarginBottom: \"0\",\n\t\t},\n\t\t[inWhere(\"& figcaption\")]: {\n\t\t\tfontSize: \"0.85em\",\n\t\t\tlineHeight: \"1.25em\",\n\t\t\tmarginTop: \"0.85em\",\n\t\t\tcolor: \"fg.muted\",\n\t\t},\n\t\t[inWhere(\"& h1, h2, h3, h4, h5, h6\")]: {\n\t\t\tcolor: \"fg\",\n\t\t\tfontWeight: \"600\",\n\t\t},\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\tmd: {\n\t\t\t\tfontSize: \"sm\",\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\tfontSize: \"md\",\n\t\t\t},\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: \"md\",\n\t},\n});\nProse.displayName = \"Prose\";\n"]}