@yak/react 10.0.0-rc.0 → 10.0.0-rc.1
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.
- package/README.md +12 -0
- package/dist/context/baseContext.d.ts +1 -2
- package/dist/context/index.d.ts +3 -4
- package/dist/context/index.server.d.ts +2 -3
- package/dist/cross-file-resolver/index.d.ts +12 -12
- package/dist/cross-file-resolver/index.js +39 -5
- package/dist/cross-file-resolver/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +139 -139
- package/dist/isolated-source-eval/index.d.ts +2 -2
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/loaders/{turbo-loader.d.cts → turbo-loader.d.ts} +3 -3
- package/dist/loaders/{turbo-loader.cjs → turbo-loader.js} +60 -47
- package/dist/loaders/turbo-loader.js.map +1 -0
- package/dist/loaders/vite-plugin.d.ts +13 -21
- package/dist/loaders/vite-plugin.js +43 -36
- package/dist/loaders/vite-plugin.js.map +1 -1
- package/dist/loaders/{webpack-loader.d.cts → webpack-loader.d.ts} +3 -3
- package/dist/loaders/{webpack-loader.cjs → webpack-loader.js} +50 -37
- package/dist/loaders/webpack-loader.js.map +1 -0
- package/dist/rsbuild/index.d.ts +2 -2
- package/dist/rsbuild/index.js +1 -2
- package/dist/rsbuild/index.js.map +1 -1
- package/dist/static/index.js +1 -1
- package/dist/static/index.js.map +1 -1
- package/dist/withYak/index.d.ts +15 -24
- package/dist/withYak/index.js +7 -13
- package/dist/withYak/index.js.map +1 -1
- package/loaders/lib/resolveCrossFileSelectors.ts +0 -1
- package/loaders/turbo-loader.ts +11 -7
- package/loaders/webpack-loader.ts +3 -6
- package/package.json +45 -104
- package/rsbuild/index.ts +2 -3
- package/withYak/index.ts +7 -21
- package/dist/context/baseContext.cjs +0 -9
- package/dist/context/baseContext.cjs.map +0 -1
- package/dist/context/baseContext.d.cts +0 -6
- package/dist/context/index.cjs +0 -45
- package/dist/context/index.cjs.map +0 -1
- package/dist/context/index.d.cts +0 -21
- package/dist/context/index.server.cjs +0 -47
- package/dist/context/index.server.cjs.map +0 -1
- package/dist/context/index.server.d.cts +0 -10
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -320
- package/dist/internal.cjs +0 -544
- package/dist/internal.cjs.map +0 -1
- package/dist/internal.d.cts +0 -452
- package/dist/jsx-dev-runtime.cjs +0 -2
- package/dist/jsx-dev-runtime.cjs.map +0 -1
- package/dist/jsx-dev-runtime.d.cts +0 -7
- package/dist/jsx-runtime.cjs +0 -2
- package/dist/jsx-runtime.cjs.map +0 -1
- package/dist/jsx-runtime.d.cts +0 -38
- package/dist/loaders/turbo-loader.cjs.map +0 -1
- package/dist/loaders/webpack-loader.cjs.map +0 -1
- package/dist/static/index.cjs +0 -2
- package/dist/static/index.cjs.map +0 -1
- package/dist/static/index.d.cts +0 -28
- package/dist/withYak/index.cjs +0 -208
- package/dist/withYak/index.cjs.map +0 -1
- package/dist/withYak/index.d.cts +0 -121
package/dist/internal.d.cts
DELETED
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
import { YakThemeProvider, useTheme } from "@yak/react/context";
|
|
2
|
-
import React$1 from "react";
|
|
3
|
-
//#region runtime/context/index.d.ts
|
|
4
|
-
interface YakTheme {}
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region runtime/publicStyledApi.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Main styled interface that combines HTML tag mappings with the styled function.
|
|
9
|
-
* This is the primary entry point for creating styled components.
|
|
10
|
-
*/
|
|
11
|
-
interface Styled extends MappedHtmlTags, StyledFn {}
|
|
12
|
-
/**
|
|
13
|
-
* Function interface for creating styled components from any component or HTML tag.
|
|
14
|
-
* Supports React components, HTML tags, and custom web components.
|
|
15
|
-
*/
|
|
16
|
-
interface StyledFn {
|
|
17
|
-
<TProps extends object = React$1.DOMAttributes<Element> & React$1.RefAttributes<Element>>(Component: HtmlTags | React$1.FunctionComponent<TProps> | CustomWebComponentTag): LiteralWithAttrs<TProps>;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A yak component with a special symbol that allows component targeting
|
|
21
|
-
* and proper attrs function handling.
|
|
22
|
-
* @example styled.svg`${Button}:hover & { fill: red; }` or styled(Button)`color: red;`
|
|
23
|
-
*/
|
|
24
|
-
interface YakComponent<T> extends React$1.FunctionComponent<T> {
|
|
25
|
-
[yakComponentSymbol]: [unknown, unknown, unknown, unknown];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Styled component with attrs method for adding default props.
|
|
29
|
-
* Extends StyledLiteral with the ability to specify default attributes.
|
|
30
|
-
*/
|
|
31
|
-
interface LiteralWithAttrs<T extends object> extends StyledLiteral<T> {
|
|
32
|
-
attrs: <TAttrsIn extends object = {}, TAttrsOut extends AttrsMerged<T, TAttrsIn> = AttrsMerged<T, TAttrsIn>>(attrs: Attrs<T, TAttrsIn, TAttrsOut>) => StyledLiteral<Substitute<T, TAttrsIn>>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Template literal function for defining CSS styles with interpolation support.
|
|
36
|
-
* Accepts CSS template strings and interpolated values with proper typing.
|
|
37
|
-
*/
|
|
38
|
-
interface StyledLiteral<T> {
|
|
39
|
-
<TCSSProps>(styles: TemplateStringsArray, ...values: Array<CSSInterpolation<T & NoInfer<TCSSProps> & {
|
|
40
|
-
theme: YakTheme;
|
|
41
|
-
}>>): YakComponent<TCSSProps & T>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Function variant of attrs that receives current props and returns additional props.
|
|
45
|
-
* Allows for dynamic prop generation based on component state.
|
|
46
|
-
*/
|
|
47
|
-
interface AttrsFunction<TBaseProps, TIn extends object = {}, TOut extends AttrsMerged<TBaseProps, TIn> = AttrsMerged<TBaseProps, TIn>> {
|
|
48
|
-
(p: Substitute<TBaseProps & {
|
|
49
|
-
theme: YakTheme;
|
|
50
|
-
}, TIn>): Partial<TOut>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Merges provided props with initial props, making specified props optional.
|
|
54
|
-
* Includes theme support for styled components.
|
|
55
|
-
*/
|
|
56
|
-
type AttrsMerged<TBaseProps, TIn extends object = {}> = Substitute<TBaseProps & {
|
|
57
|
-
theme?: YakTheme;
|
|
58
|
-
}, TIn>;
|
|
59
|
-
/**
|
|
60
|
-
* Maps all HTML tag names to their corresponding styled component types with attributes support.
|
|
61
|
-
* Provides typed access to all standard HTML elements through the styled interface.
|
|
62
|
-
*/
|
|
63
|
-
type MappedHtmlTags = { [Tag in HtmlTags]: LiteralWithAttrs<React$1.JSX.IntrinsicElements[Tag]>; };
|
|
64
|
-
/**
|
|
65
|
-
* The attrs function allows adding additional props to a styled component.
|
|
66
|
-
* Props can be specified as an object or as a function that receives current props.
|
|
67
|
-
*/
|
|
68
|
-
type Attrs<TBaseProps, TIn extends object = {}, TOut extends AttrsMerged<TBaseProps, TIn> = AttrsMerged<TBaseProps, TIn>> = Partial<TOut> | AttrsFunction<TBaseProps, TIn, TOut>;
|
|
69
|
-
/**
|
|
70
|
-
* Utility type to merge two object types, with properties from B taking precedence.
|
|
71
|
-
* If a property exists in both A and B, the property from B is used.
|
|
72
|
-
*/
|
|
73
|
-
type Substitute<A extends object, B extends object> = FastOmit<A, keyof B> & B;
|
|
74
|
-
/**
|
|
75
|
-
* Union type of all valid HTML element tag names.
|
|
76
|
-
* Derived from React's JSX intrinsic elements.
|
|
77
|
-
*/
|
|
78
|
-
type HtmlTags = keyof React$1.JSX.IntrinsicElements;
|
|
79
|
-
/**
|
|
80
|
-
* Custom web component tag pattern that must contain at least one hyphen.
|
|
81
|
-
* Follows the web component naming convention.
|
|
82
|
-
*/
|
|
83
|
-
type CustomWebComponentTag = `${string}-${string}`;
|
|
84
|
-
/**
|
|
85
|
-
* Utility type to efficiently remove properties from an object type.
|
|
86
|
-
* More performant than the built-in Omit type for large object types.
|
|
87
|
-
*/
|
|
88
|
-
type FastOmit<T extends object, U extends string | number | symbol> = { [K in keyof T as K extends U ? never : K]: T[K]; };
|
|
89
|
-
/**
|
|
90
|
-
* Set-like collector for class names
|
|
91
|
-
*
|
|
92
|
-
* The runtime implements this as a string builder, a real `Set<string>`
|
|
93
|
-
* satisfies it as well
|
|
94
|
-
*/
|
|
95
|
-
type ClassNameCollector = {
|
|
96
|
-
add(className: string): void;
|
|
97
|
-
has(className: string): boolean;
|
|
98
|
-
delete(className: string): void;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Type of all functions that can be passed to manipulate styles
|
|
102
|
-
*
|
|
103
|
-
* `$dynamic` marks processors that execute user functions or write style
|
|
104
|
-
* values at render time; purely static processors (class names only) can
|
|
105
|
-
* skip theme lookup and style-object allocation.
|
|
106
|
-
*/
|
|
107
|
-
type RuntimeStyleProcessor<T> = ((props: T, classNames: ClassNameCollector, style: React$1.CSSProperties) => void) & {
|
|
108
|
-
$dynamic?: boolean;
|
|
109
|
-
};
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region runtime/atoms.d.ts
|
|
112
|
-
/**
|
|
113
|
-
* Allows to use atomic CSS classes in a styled or css block
|
|
114
|
-
*
|
|
115
|
-
* @usage
|
|
116
|
-
*
|
|
117
|
-
* ```tsx
|
|
118
|
-
* import { styled, atoms } from "@yak/react";
|
|
119
|
-
*
|
|
120
|
-
* const Button = styled.button<{ $primary?: boolean }>`
|
|
121
|
-
* ${atoms("text-teal-600", "text-base", "rounded-md")}
|
|
122
|
-
* ${props => props.$primary && atoms("shadow-md")}
|
|
123
|
-
* `;
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
declare const atoms: <T>(...atoms: (string | RuntimeStyleProcessor<T> | false)[]) => ComponentStyles<T>;
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region runtime/keyframes.d.ts
|
|
129
|
-
/**
|
|
130
|
-
* Allows to use CSS keyframe animations in a styled or css block
|
|
131
|
-
*
|
|
132
|
-
* @usage
|
|
133
|
-
*
|
|
134
|
-
* ```tsx
|
|
135
|
-
* import { styled, keyframes } from "@yak/react";
|
|
136
|
-
*
|
|
137
|
-
* const rotate = keyframes`
|
|
138
|
-
* from {
|
|
139
|
-
* transform: rotate(0deg);
|
|
140
|
-
* }
|
|
141
|
-
* to {
|
|
142
|
-
* transform: rotate(360deg);
|
|
143
|
-
* }
|
|
144
|
-
* `;
|
|
145
|
-
*
|
|
146
|
-
* const Spinner = styled.div`
|
|
147
|
-
* animation: ${rotate} 1s linear infinite;
|
|
148
|
-
* `;
|
|
149
|
-
* ```
|
|
150
|
-
*/
|
|
151
|
-
declare const keyframes: <T extends (string | number | bigint)[] = never>(styles: TemplateStringsArray, ..._dynamic: T) => string;
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region runtime/styled.d.ts
|
|
154
|
-
/**
|
|
155
|
-
* The `styled` method works perfectly on all of your own or any third-party component,
|
|
156
|
-
* as long as they attach the passed className prop to a DOM element.
|
|
157
|
-
*
|
|
158
|
-
* @usage
|
|
159
|
-
*
|
|
160
|
-
* ```tsx
|
|
161
|
-
* const StyledLink = styled(Link)`
|
|
162
|
-
* color: #BF4F74;
|
|
163
|
-
* font-weight: bold;
|
|
164
|
-
* `;
|
|
165
|
-
* ```
|
|
166
|
-
*/
|
|
167
|
-
declare const styled: Styled;
|
|
168
|
-
//#endregion
|
|
169
|
-
//#region runtime/globalStyle.d.ts
|
|
170
|
-
/**
|
|
171
|
-
* Values that may be interpolated into a `globalStyle` template.
|
|
172
|
-
*
|
|
173
|
-
* Only build-time values are allowed — constants, `keyframes` animation names,
|
|
174
|
-
* static `css` mixins and styled-component selectors. Runtime functions
|
|
175
|
-
* (`${(props) => ...}`) are intentionally excluded: a global rule has no element
|
|
176
|
-
* to attach a CSS variable to. Declare a CSS custom property instead and toggle
|
|
177
|
-
* it via an attribute/class on the root element.
|
|
178
|
-
*/
|
|
179
|
-
type GlobalStyleInterpolation = string | number | ComponentStyles<{}> | YakComponent<any>;
|
|
180
|
-
/**
|
|
181
|
-
* Declares global, unscoped styles that ride the same zero-runtime extraction
|
|
182
|
-
* pipeline as `styled` and `keyframes`.
|
|
183
|
-
*
|
|
184
|
-
* Global styles are **part of the stylesheet, not part of the render tree**.
|
|
185
|
-
* They apply exactly when the module declaring them is included in the bundle —
|
|
186
|
-
* typically by importing it from a layout or entry point. They cannot be
|
|
187
|
-
* conditionally mounted; express conditions in CSS (`@media`, `@supports`,
|
|
188
|
-
* `:root[data-theme]`, `:has()`) or through CSS custom properties.
|
|
189
|
-
*
|
|
190
|
-
* @usage
|
|
191
|
-
*
|
|
192
|
-
* ```tsx
|
|
193
|
-
* import { globalStyle, keyframes } from "@yak/react";
|
|
194
|
-
*
|
|
195
|
-
* const fadeIn = keyframes`
|
|
196
|
-
* from { opacity: 0; }
|
|
197
|
-
* `;
|
|
198
|
-
*
|
|
199
|
-
* globalStyle`
|
|
200
|
-
* :root {
|
|
201
|
-
* --spacing: 4px;
|
|
202
|
-
* }
|
|
203
|
-
*
|
|
204
|
-
* body {
|
|
205
|
-
* margin: 0;
|
|
206
|
-
* }
|
|
207
|
-
*
|
|
208
|
-
* ::view-transition-new(root) {
|
|
209
|
-
* animation: ${fadeIn} 200ms ease;
|
|
210
|
-
* }
|
|
211
|
-
* `;
|
|
212
|
-
* ```
|
|
213
|
-
*/
|
|
214
|
-
declare const globalStyle: (_styles: TemplateStringsArray, ..._values: Array<GlobalStyleInterpolation>) => void;
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region runtime/cssLiteral.d.ts
|
|
217
|
-
declare const yakComponentSymbol: unique symbol;
|
|
218
|
-
type ComponentStyles<TProps> = (props: TProps) => {
|
|
219
|
-
className: string;
|
|
220
|
-
style?: {
|
|
221
|
-
[key: string]: string;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
type CSSInterpolation<TProps> = string | number | undefined | null | false | ComponentStyles<TProps> | {
|
|
225
|
-
[yakComponentSymbol]: any;
|
|
226
|
-
} | ((props: TProps) => CSSInterpolation<TProps>);
|
|
227
|
-
/**
|
|
228
|
-
* css() runtime factory of css``
|
|
229
|
-
*
|
|
230
|
-
* /!\ @yak/react transpiles css`` and styled``
|
|
231
|
-
*
|
|
232
|
-
* This changes the typings of the css`` and styled`` functions.
|
|
233
|
-
* During development the user of @yak/react wants to work with the
|
|
234
|
-
* typings BEFORE compilation.
|
|
235
|
-
*
|
|
236
|
-
* Therefore this is only an internal function only and it must be cast to any
|
|
237
|
-
* before exported to the user.
|
|
238
|
-
*
|
|
239
|
-
* The internal functioning of css`` is to return a single callback function that runs all functions
|
|
240
|
-
* (or creates new ones if needed) that are passed as arguments. These functions receive the props, classNames, and style object as arguments
|
|
241
|
-
* and operate directly on the classNames and style objects.
|
|
242
|
-
*/
|
|
243
|
-
declare function css<TProps>(styles: TemplateStringsArray, ...values: CSSInterpolation<NoInfer<TProps> & {
|
|
244
|
-
theme: YakTheme;
|
|
245
|
-
}>[]): ComponentStyles<TProps>;
|
|
246
|
-
//#endregion
|
|
247
|
-
//#region runtime/internals/unitPostFix.d.ts
|
|
248
|
-
/**
|
|
249
|
-
* Internal helper called by transformed code - Do not use directly
|
|
250
|
-
*
|
|
251
|
-
* Takes a function and a css unit and returns the result of the function concatenated with the unit
|
|
252
|
-
*
|
|
253
|
-
* ```tsx
|
|
254
|
-
* import { styled } from "@yak/react";
|
|
255
|
-
*
|
|
256
|
-
* const Button = styled.button<{ $width?: boolean }>`
|
|
257
|
-
* width: ${({ $width }) => $width}px;
|
|
258
|
-
* `;
|
|
259
|
-
* ```
|
|
260
|
-
*
|
|
261
|
-
* Which will be transformed to:
|
|
262
|
-
* ```tsx
|
|
263
|
-
* import { styled } from "@yak/react/internals";
|
|
264
|
-
*
|
|
265
|
-
* const Button = styled.button<{ $width?: boolean }>(
|
|
266
|
-
* "button", {
|
|
267
|
-
* width: unitPostFix({ $width }) => $width, "px")
|
|
268
|
-
* });
|
|
269
|
-
*/
|
|
270
|
-
declare const unitPostFix: (arg: unknown, unit: string) => string | ((props: any) => string | /*elided*/ any | undefined) | undefined;
|
|
271
|
-
//#endregion
|
|
272
|
-
//#region runtime/internals/mergeCssProp.d.ts
|
|
273
|
-
/**
|
|
274
|
-
* This is an internal helper function to merge relevant props of a native element with a css prop.
|
|
275
|
-
* It's automatically added when using the `css` prop in a JSX element.
|
|
276
|
-
* e.g.:
|
|
277
|
-
* ```tsx
|
|
278
|
-
* <p
|
|
279
|
-
* className="foo"
|
|
280
|
-
* css={css`
|
|
281
|
-
* color: green;
|
|
282
|
-
* `}
|
|
283
|
-
* {...{ style: { padding: "30px" }}}
|
|
284
|
-
* />
|
|
285
|
-
* ```
|
|
286
|
-
* compiles to
|
|
287
|
-
* ```tsx
|
|
288
|
-
* <p {...__yak_mergeCssProp(css("yakCss1"), { className: "foo" }, { style: { padding: "30px" } })} />
|
|
289
|
-
* ```
|
|
290
|
-
* The css value comes first, then every merged source in JSX order, so a
|
|
291
|
-
* later source wins as it would in one object literal.
|
|
292
|
-
*/
|
|
293
|
-
declare const mergeCssProp: (cssProp: RuntimeStyleProcessor<unknown> | false | null | undefined, ...sources: (Record<string, unknown> | null | undefined)[]) => Record<string, unknown> & {
|
|
294
|
-
className?: string;
|
|
295
|
-
style?: Record<string, string>;
|
|
296
|
-
};
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region runtime/internals/mergeClassNames.d.ts
|
|
299
|
-
/**
|
|
300
|
-
* Merges two optional class name values with a space.
|
|
301
|
-
*
|
|
302
|
-
* Used by the styled runtime to combine incoming and generated class names,
|
|
303
|
-
* and injected by the compiler (as `__yak_mergeClassNames`) when it replaces
|
|
304
|
-
* a JSX usage of a fully static styled component with a plain DOM element:
|
|
305
|
-
* ```tsx
|
|
306
|
-
* const Card = styled.div`color: red;`;
|
|
307
|
-
* <Card className={active && "active"} />
|
|
308
|
-
* ```
|
|
309
|
-
* becomes
|
|
310
|
-
* ```tsx
|
|
311
|
-
* <div className={__yak_mergeClassNames("yX", active && "active")} />
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
|
-
declare const mergeClassNames: (a: string | false | null | undefined, b: string | false | null | undefined) => string | undefined;
|
|
315
|
-
//#endregion
|
|
316
|
-
//#region runtime/styledDom.d.ts
|
|
317
|
-
declare const __yak_a: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
318
|
-
declare const __yak_abbr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
319
|
-
declare const __yak_address: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
320
|
-
declare const __yak_area: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
321
|
-
declare const __yak_article: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
322
|
-
declare const __yak_aside: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
323
|
-
declare const __yak_audio: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
324
|
-
declare const __yak_b: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
325
|
-
declare const __yak_base: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
326
|
-
declare const __yak_bdi: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
327
|
-
declare const __yak_bdo: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
328
|
-
declare const __yak_big: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
329
|
-
declare const __yak_blockquote: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
330
|
-
declare const __yak_body: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
331
|
-
declare const __yak_br: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
332
|
-
declare const __yak_button: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
333
|
-
declare const __yak_canvas: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
334
|
-
declare const __yak_caption: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
335
|
-
declare const __yak_cite: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
336
|
-
declare const __yak_code: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
337
|
-
declare const __yak_col: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
338
|
-
declare const __yak_colgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
339
|
-
declare const __yak_data: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
340
|
-
declare const __yak_datalist: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
341
|
-
declare const __yak_dd: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
342
|
-
declare const __yak_del: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
343
|
-
declare const __yak_details: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
344
|
-
declare const __yak_dfn: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
345
|
-
declare const __yak_dialog: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
346
|
-
declare const __yak_div: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
347
|
-
declare const __yak_dl: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
348
|
-
declare const __yak_dt: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
349
|
-
declare const __yak_em: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
350
|
-
declare const __yak_embed: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
351
|
-
declare const __yak_fieldset: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
352
|
-
declare const __yak_figcaption: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
353
|
-
declare const __yak_figure: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
354
|
-
declare const __yak_footer: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
355
|
-
declare const __yak_form: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
356
|
-
declare const __yak_h1: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
357
|
-
declare const __yak_h2: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
358
|
-
declare const __yak_h3: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
359
|
-
declare const __yak_h4: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
360
|
-
declare const __yak_h5: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
361
|
-
declare const __yak_h6: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
362
|
-
declare const __yak_header: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
363
|
-
declare const __yak_hgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
364
|
-
declare const __yak_hr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
365
|
-
declare const __yak_html: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
366
|
-
declare const __yak_i: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
367
|
-
declare const __yak_iframe: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
368
|
-
declare const __yak_img: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
369
|
-
declare const __yak_input: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
370
|
-
declare const __yak_ins: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
371
|
-
declare const __yak_kbd: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
372
|
-
declare const __yak_keygen: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
373
|
-
declare const __yak_label: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
374
|
-
declare const __yak_legend: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
375
|
-
declare const __yak_li: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
376
|
-
declare const __yak_link: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
377
|
-
declare const __yak_main: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
378
|
-
declare const __yak_map: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
379
|
-
declare const __yak_mark: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
380
|
-
declare const __yak_menu: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
381
|
-
declare const __yak_menuitem: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
382
|
-
declare const __yak_meta: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
383
|
-
declare const __yak_meter: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
384
|
-
declare const __yak_nav: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
385
|
-
declare const __yak_noscript: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
386
|
-
declare const __yak_object: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
387
|
-
declare const __yak_ol: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
388
|
-
declare const __yak_optgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
389
|
-
declare const __yak_option: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
390
|
-
declare const __yak_output: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
391
|
-
declare const __yak_p: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
392
|
-
declare const __yak_param: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
393
|
-
declare const __yak_picture: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
394
|
-
declare const __yak_pre: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
395
|
-
declare const __yak_progress: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
396
|
-
declare const __yak_q: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
397
|
-
declare const __yak_rp: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
398
|
-
declare const __yak_rt: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
399
|
-
declare const __yak_ruby: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
400
|
-
declare const __yak_s: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
401
|
-
declare const __yak_samp: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
402
|
-
declare const __yak_script: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
403
|
-
declare const __yak_section: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
404
|
-
declare const __yak_select: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
405
|
-
declare const __yak_small: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
406
|
-
declare const __yak_source: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
407
|
-
declare const __yak_span: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
408
|
-
declare const __yak_strong: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
409
|
-
declare const __yak_style: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
410
|
-
declare const __yak_sub: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
411
|
-
declare const __yak_summary: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
412
|
-
declare const __yak_sup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
413
|
-
declare const __yak_table: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
414
|
-
declare const __yak_tbody: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
415
|
-
declare const __yak_td: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
416
|
-
declare const __yak_textarea: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
417
|
-
declare const __yak_tfoot: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
418
|
-
declare const __yak_th: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
419
|
-
declare const __yak_thead: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
420
|
-
declare const __yak_time: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
421
|
-
declare const __yak_tr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
422
|
-
declare const __yak_track: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
423
|
-
declare const __yak_u: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
424
|
-
declare const __yak_ul: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
425
|
-
declare const __yak_use: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
426
|
-
declare const __yak_var: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
427
|
-
declare const __yak_video: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
428
|
-
declare const __yak_wbr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
429
|
-
declare const __yak_circle: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
430
|
-
declare const __yak_clipPath: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
431
|
-
declare const __yak_defs: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
432
|
-
declare const __yak_ellipse: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
433
|
-
declare const __yak_foreignObject: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
434
|
-
declare const __yak_g: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
435
|
-
declare const __yak_image: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
436
|
-
declare const __yak_line: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
437
|
-
declare const __yak_linearGradient: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
438
|
-
declare const __yak_marker: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
439
|
-
declare const __yak_mask: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
440
|
-
declare const __yak_path: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
441
|
-
declare const __yak_pattern: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
442
|
-
declare const __yak_polygon: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
443
|
-
declare const __yak_polyline: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
444
|
-
declare const __yak_radialGradient: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
445
|
-
declare const __yak_rect: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
446
|
-
declare const __yak_stop: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
447
|
-
declare const __yak_svg: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
448
|
-
declare const __yak_text: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
449
|
-
declare const __yak_tspan: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
|
|
450
|
-
//#endregion
|
|
451
|
-
export { YakThemeProvider, __yak_a, __yak_abbr, __yak_address, __yak_area, __yak_article, __yak_aside, __yak_audio, __yak_b, __yak_base, __yak_bdi, __yak_bdo, __yak_big, __yak_blockquote, __yak_body, __yak_br, __yak_button, __yak_canvas, __yak_caption, __yak_circle, __yak_cite, __yak_clipPath, __yak_code, __yak_col, __yak_colgroup, __yak_data, __yak_datalist, __yak_dd, __yak_defs, __yak_del, __yak_details, __yak_dfn, __yak_dialog, __yak_div, __yak_dl, __yak_dt, __yak_ellipse, __yak_em, __yak_embed, __yak_fieldset, __yak_figcaption, __yak_figure, __yak_footer, __yak_foreignObject, __yak_form, __yak_g, __yak_h1, __yak_h2, __yak_h3, __yak_h4, __yak_h5, __yak_h6, __yak_header, __yak_hgroup, __yak_hr, __yak_html, __yak_i, __yak_iframe, __yak_image, __yak_img, __yak_input, __yak_ins, __yak_kbd, __yak_keygen, __yak_label, __yak_legend, __yak_li, __yak_line, __yak_linearGradient, __yak_link, __yak_main, __yak_map, __yak_mark, __yak_marker, __yak_mask, __yak_menu, __yak_menuitem, mergeClassNames as __yak_mergeClassNames, mergeCssProp as __yak_mergeCssProp, __yak_meta, __yak_meter, __yak_nav, __yak_noscript, __yak_object, __yak_ol, __yak_optgroup, __yak_option, __yak_output, __yak_p, __yak_param, __yak_path, __yak_pattern, __yak_picture, __yak_polygon, __yak_polyline, __yak_pre, __yak_progress, __yak_q, __yak_radialGradient, __yak_rect, __yak_rp, __yak_rt, __yak_ruby, __yak_s, __yak_samp, __yak_script, __yak_section, __yak_select, __yak_small, __yak_source, __yak_span, __yak_stop, __yak_strong, __yak_style, __yak_sub, __yak_summary, __yak_sup, __yak_svg, __yak_table, __yak_tbody, __yak_td, __yak_text, __yak_textarea, __yak_tfoot, __yak_th, __yak_thead, __yak_time, __yak_tr, __yak_track, __yak_tspan, __yak_u, __yak_ul, unitPostFix as __yak_unitPostFix, __yak_use, __yak_var, __yak_video, __yak_wbr, atoms, css, globalStyle, keyframes, styled, useTheme };
|
|
452
|
-
//# sourceMappingURL=internal.d.cts.map
|
package/dist/jsx-dev-runtime.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("react/jsx-dev-runtime");c=s(c,1);const l=c.default.Fragment,u=c.default.jsxDEV;exports.Fragment=l,exports.jsxDEV=u;
|
|
2
|
-
//# sourceMappingURL=jsx-dev-runtime.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-dev-runtime.cjs","names":["ReactJSXRuntimeDev"],"sources":["../runtime/jsx-dev-runtime.ts"],"sourcesContent":["import ReactJSXRuntimeDev from \"react/jsx-dev-runtime\";\n\nconst Fragment = ReactJSXRuntimeDev.Fragment;\nconst jsxDEV = ReactJSXRuntimeDev.jsxDEV;\n\nexport { Fragment, jsxDEV };\n"],"mappings":"umBAEA,MAAM,EAAWA,EAAAA,QAAmB,SAC9B,EAASA,EAAAA,QAAmB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import ReactJSXRuntimeDev from "react/jsx-dev-runtime";
|
|
2
|
-
//#region runtime/jsx-dev-runtime.d.ts
|
|
3
|
-
declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
4
|
-
declare const jsxDEV: typeof ReactJSXRuntimeDev.jsxDEV;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { Fragment, jsxDEV };
|
|
7
|
-
//# sourceMappingURL=jsx-dev-runtime.d.cts.map
|
package/dist/jsx-runtime.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("react/jsx-runtime");c=s(c,1);const l=c.default.Fragment,u=c.default.jsx,d=c.default.jsxs;exports.Fragment=l,exports.jsx=u,exports.jsxs=d;
|
|
2
|
-
//# sourceMappingURL=jsx-runtime.cjs.map
|
package/dist/jsx-runtime.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.cjs","names":["ReactJSXRuntime"],"sources":["../runtime/jsx-runtime.ts"],"sourcesContent":["import ReactJSXRuntime from \"react/jsx-runtime\";\nimport type { ComponentStyles } from \"./mocks/cssLiteral.js\";\n\n/**\n * A falsy css prop applies no styles, which keeps conditional shapes like\n * `css={on && css`...`}` or `css={on ? css`...` : undefined}` well typed\n */\ntype CSSProp = ComponentStyles<Record<keyof any, never>> | false | null | undefined;\n\n// Only return the css prop if the \"className\" and \"style\" properties are present\n// This was inspired from emotion\n// https://github.com/emotion-js/emotion/blob/cce67ec6b2fc94261028b4f4778aae8c3d6c5fd6/packages/react/src/jsx-namespace.ts#L9C6-L9C28\ntype WithConditionalCSSProp<P> = \"className\" | \"style\" extends keyof P\n ? string extends P[\"className\" & keyof P]\n ? Record<string, any> extends P[\"style\" & keyof P]\n ? { css?: CSSProp }\n : {}\n : {}\n : {};\n\nconst Fragment = ReactJSXRuntime.Fragment;\nconst jsx = ReactJSXRuntime.jsx;\nconst jsxs = ReactJSXRuntime.jsxs;\n\nexport declare namespace YakJSX {\n export type Element = React.JSX.Element;\n export type ElementType = React.JSX.ElementType;\n export type ElementClass = React.JSX.ElementClass;\n export type ElementAttributesProperty = React.JSX.ElementAttributesProperty;\n export type ElementChildrenAttribute = React.JSX.ElementChildrenAttribute;\n\n // Add the CSS prop to all components that can receive \"className\" and \"style\"\n export type LibraryManagedAttributes<C, P> = P extends unknown\n ? WithConditionalCSSProp<P> & React.JSX.LibraryManagedAttributes<C, P>\n : never;\n\n export type IntrinsicAttributes = React.JSX.IntrinsicAttributes;\n export type IntrinsicClassAttributes<T> = React.JSX.IntrinsicClassAttributes<T>;\n\n export type IntrinsicElements = {\n [K in keyof React.JSX.IntrinsicElements]: React.JSX.IntrinsicElements[K] & {\n // Add the CSS prop to all native elements e.g. \"div\" or \"span\"\n css?: CSSProp;\n };\n };\n}\n\nexport { Fragment, jsx, jsxs, type YakJSX as JSX };\n"],"mappings":"mmBAoBA,MAAM,EAAWA,EAAAA,QAAgB,SAC3B,EAAMA,EAAAA,QAAgB,IACtB,EAAOA,EAAAA,QAAgB"}
|
package/dist/jsx-runtime.d.cts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import ReactJSXRuntime from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
//#region runtime/cssLiteral.d.ts
|
|
4
|
-
type ComponentStyles<TProps> = (props: TProps) => {
|
|
5
|
-
className: string;
|
|
6
|
-
style?: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region runtime/jsx-runtime.d.ts
|
|
12
|
-
/**
|
|
13
|
-
* A falsy css prop applies no styles, which keeps conditional shapes like
|
|
14
|
-
* `css={on && css`...`}` or `css={on ? css`...` : undefined}` well typed
|
|
15
|
-
*/
|
|
16
|
-
type CSSProp = ComponentStyles<Record<keyof any, never>> | false | null | undefined;
|
|
17
|
-
type WithConditionalCSSProp<P> = "className" | "style" extends keyof P ? string extends P["className" & keyof P] ? Record<string, any> extends P["style" & keyof P] ? {
|
|
18
|
-
css?: CSSProp;
|
|
19
|
-
} : {} : {} : {};
|
|
20
|
-
declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
21
|
-
declare const jsx: typeof ReactJSXRuntime.jsx;
|
|
22
|
-
declare const jsxs: typeof ReactJSXRuntime.jsxs;
|
|
23
|
-
declare namespace YakJSX {
|
|
24
|
-
type Element = React.JSX.Element;
|
|
25
|
-
type ElementType = React.JSX.ElementType;
|
|
26
|
-
type ElementClass = React.JSX.ElementClass;
|
|
27
|
-
type ElementAttributesProperty = React.JSX.ElementAttributesProperty;
|
|
28
|
-
type ElementChildrenAttribute = React.JSX.ElementChildrenAttribute;
|
|
29
|
-
type LibraryManagedAttributes<C, P> = P extends unknown ? WithConditionalCSSProp<P> & React.JSX.LibraryManagedAttributes<C, P> : never;
|
|
30
|
-
type IntrinsicAttributes = React.JSX.IntrinsicAttributes;
|
|
31
|
-
type IntrinsicClassAttributes<T> = React.JSX.IntrinsicClassAttributes<T>;
|
|
32
|
-
type IntrinsicElements = { [K in keyof React.JSX.IntrinsicElements]: React.JSX.IntrinsicElements[K] & {
|
|
33
|
-
css?: CSSProp;
|
|
34
|
-
}; };
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { Fragment, type YakJSX as JSX, YakJSX, jsx, jsxs };
|
|
38
|
-
//# sourceMappingURL=jsx-runtime.d.cts.map
|