@pandacss/generator 0.0.0-dev-20250424111015 → 0.0.0-dev-20250425183451
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/dist/index.js +33 -27
- package/dist/index.mjs +33 -27
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1193,13 +1193,13 @@ function generatePreactJsxStringLiteralFactory(ctx) {
|
|
|
1193
1193
|
function createStyledFn(Dynamic) {
|
|
1194
1194
|
const __base__ = Dynamic.__base__ || Dynamic
|
|
1195
1195
|
return function styledFn(template) {
|
|
1196
|
-
const styles = css.raw(template)
|
|
1196
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
1197
1197
|
|
|
1198
1198
|
const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
|
|
1199
1199
|
const { as: Element = __base__, ...elementProps } = props
|
|
1200
1200
|
|
|
1201
1201
|
function classes() {
|
|
1202
|
-
return cx(css(
|
|
1202
|
+
return cx(css(styles), elementProps.className)
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
return h(Element, {
|
|
@@ -1522,13 +1522,13 @@ function generateQwikJsxStringLiteralFactory(ctx) {
|
|
|
1522
1522
|
function createStyledFn(Dynamic) {
|
|
1523
1523
|
const __base__ = Dynamic.__base__ || Dynamic
|
|
1524
1524
|
return function styledFn(template) {
|
|
1525
|
-
const styles = css.raw(template)
|
|
1525
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
1526
1526
|
|
|
1527
1527
|
const ${componentName} = (props) => {
|
|
1528
1528
|
const { as: Element = __base__, ...elementProps } = props
|
|
1529
1529
|
|
|
1530
1530
|
function classes() {
|
|
1531
|
-
return cx(css(
|
|
1531
|
+
return cx(css(styles), elementProps.className)
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
1534
|
return h(Element, {
|
|
@@ -1855,13 +1855,13 @@ function generateReactJsxStringLiteralFactory(ctx) {
|
|
|
1855
1855
|
function createStyledFn(Dynamic) {
|
|
1856
1856
|
const __base__ = Dynamic.__base__ || Dynamic
|
|
1857
1857
|
return function styledFn(template) {
|
|
1858
|
-
const styles = css.raw(template)
|
|
1858
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
1859
1859
|
|
|
1860
1860
|
const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
|
|
1861
1861
|
const { as: Element = __base__, ...elementProps } = props
|
|
1862
1862
|
|
|
1863
1863
|
function classes() {
|
|
1864
|
-
return cx(css(
|
|
1864
|
+
return cx(css(styles), elementProps.className)
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
return createElement(Element, {
|
|
@@ -1898,7 +1898,6 @@ function generateReactJsxStringLiteralFactory(ctx) {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
export const ${factoryName} = /* @__PURE__ */ createJsxFactory()
|
|
1901
|
-
|
|
1902
1901
|
`
|
|
1903
1902
|
};
|
|
1904
1903
|
}
|
|
@@ -2236,11 +2235,12 @@ ${ctx.file.import("getDisplayName", "./factory-helper")}
|
|
|
2236
2235
|
${ctx.file.import("css, cx", "../css/index")}
|
|
2237
2236
|
|
|
2238
2237
|
function createStyled(element) {
|
|
2238
|
+
const __base__ = element.__base__ || element
|
|
2239
2239
|
return function styledFn(template) {
|
|
2240
|
-
const styles = css.raw(template)
|
|
2240
|
+
const styles = css.raw(element.__styles__, template)
|
|
2241
2241
|
|
|
2242
2242
|
const ${componentName} = (props) => {
|
|
2243
|
-
const mergedProps = mergeProps({ as:
|
|
2243
|
+
const mergedProps = mergeProps({ as: __base__ }, props)
|
|
2244
2244
|
const [localProps, elementProps] = splitProps(mergedProps, ['as', 'class'])
|
|
2245
2245
|
|
|
2246
2246
|
return createComponent(
|
|
@@ -2251,7 +2251,7 @@ function createStyled(element) {
|
|
|
2251
2251
|
return localProps.as
|
|
2252
2252
|
},
|
|
2253
2253
|
get class() {
|
|
2254
|
-
return cx(css(
|
|
2254
|
+
return cx(css(styles), localProps.class)
|
|
2255
2255
|
},
|
|
2256
2256
|
},
|
|
2257
2257
|
elementProps,
|
|
@@ -2259,11 +2259,11 @@ function createStyled(element) {
|
|
|
2259
2259
|
)
|
|
2260
2260
|
}
|
|
2261
2261
|
|
|
2262
|
-
const name = getDisplayName(
|
|
2262
|
+
const name = getDisplayName(__base__)
|
|
2263
2263
|
|
|
2264
2264
|
${componentName}.displayName = \`${factoryName}.\${name}\`
|
|
2265
2265
|
${componentName}.__styles__ = styles
|
|
2266
|
-
${componentName}.__base__ =
|
|
2266
|
+
${componentName}.__base__ = __base__
|
|
2267
2267
|
|
|
2268
2268
|
return ${componentName}
|
|
2269
2269
|
}
|
|
@@ -2354,16 +2354,18 @@ function generateVueJsxFactory(ctx) {
|
|
|
2354
2354
|
options.defaultProps,
|
|
2355
2355
|
)
|
|
2356
2356
|
|
|
2357
|
-
const name = getDisplayName(Dynamic)
|
|
2358
2357
|
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
2359
2358
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
2359
|
+
|
|
2360
|
+
const __base__ = Dynamic.__base__ || Dynamic
|
|
2361
|
+
const name = getDisplayName(__base__)
|
|
2360
2362
|
|
|
2361
2363
|
const ${componentName} = defineComponent({
|
|
2362
2364
|
name: \`${factoryName}.\${name}\`,
|
|
2363
2365
|
inheritAttrs: false,
|
|
2364
2366
|
props: {
|
|
2365
2367
|
modelValue: null,
|
|
2366
|
-
as: { type: [String, Object], default:
|
|
2368
|
+
as: { type: [String, Object], default: __base__ }
|
|
2367
2369
|
},
|
|
2368
2370
|
setup(props, { slots, attrs, emit }) {
|
|
2369
2371
|
const combinedProps = computed(() => Object.assign({}, defaultProps, attrs))
|
|
@@ -2437,7 +2439,7 @@ function generateVueJsxFactory(ctx) {
|
|
|
2437
2439
|
|
|
2438
2440
|
${componentName}.displayName = \`${factoryName}.\${name}\`
|
|
2439
2441
|
${componentName}.__cva__ = __cvaFn__
|
|
2440
|
-
${componentName}.__base__ =
|
|
2442
|
+
${componentName}.__base__ = __base__
|
|
2441
2443
|
${componentName}.__shouldForwardProps__ = shouldForwardProp
|
|
2442
2444
|
|
|
2443
2445
|
return ${componentName}
|
|
@@ -2460,26 +2462,27 @@ function generateVueJsxStringLiteralFactory(ctx) {
|
|
|
2460
2462
|
const { componentName, factoryName } = ctx.jsx;
|
|
2461
2463
|
return {
|
|
2462
2464
|
js: import_outdent35.outdent`
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2465
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2466
|
+
${ctx.file.import("getDisplayName", "./factory-helper")}
|
|
2467
|
+
${ctx.file.import("css, cx", "../css/index")}
|
|
2466
2468
|
|
|
2467
2469
|
function createStyled(Dynamic) {
|
|
2468
2470
|
const name = getDisplayName(Dynamic)
|
|
2471
|
+
const __base__ = Dynamic.__base__ || Dynamic
|
|
2469
2472
|
|
|
2470
2473
|
function styledFn(template) {
|
|
2471
|
-
const styles = css.raw(template)
|
|
2474
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
2472
2475
|
|
|
2473
2476
|
const ${componentName} = defineComponent({
|
|
2474
2477
|
name: \`${factoryName}.\${name}\`,
|
|
2475
2478
|
inheritAttrs: false,
|
|
2476
2479
|
props: {
|
|
2477
2480
|
modelValue: null,
|
|
2478
|
-
as: { type: [String, Object], default:
|
|
2481
|
+
as: { type: [String, Object], default: __base__ }
|
|
2479
2482
|
},
|
|
2480
2483
|
setup(props, { slots, attrs, emit }) {
|
|
2481
2484
|
const classes = computed(() => {
|
|
2482
|
-
return cx(css(
|
|
2485
|
+
return cx(css(styles), attrs.className)
|
|
2483
2486
|
})
|
|
2484
2487
|
|
|
2485
2488
|
const vModelProps = computed(() => {
|
|
@@ -2516,7 +2519,7 @@ function generateVueJsxStringLiteralFactory(ctx) {
|
|
|
2516
2519
|
props.as,
|
|
2517
2520
|
{
|
|
2518
2521
|
class: classes.value,
|
|
2519
|
-
...
|
|
2522
|
+
...attrs,
|
|
2520
2523
|
...vModelProps.value,
|
|
2521
2524
|
},
|
|
2522
2525
|
slots
|
|
@@ -2526,18 +2529,20 @@ function generateVueJsxStringLiteralFactory(ctx) {
|
|
|
2526
2529
|
})
|
|
2527
2530
|
|
|
2528
2531
|
${componentName}.__styles__ = styles
|
|
2529
|
-
${componentName}.__base__ =
|
|
2532
|
+
${componentName}.__base__ = __base__
|
|
2530
2533
|
|
|
2531
2534
|
return ${componentName}
|
|
2532
2535
|
}
|
|
2536
|
+
|
|
2537
|
+
return styledFn
|
|
2533
2538
|
}
|
|
2534
2539
|
|
|
2535
2540
|
const tags = 'a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, big, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, link, main, map, mark, marquee, menu, menuitem, meta, meter, nav, noscript, object, ol, optgroup, option, output, p, param, picture, pre, progress, q, rp, rt, ruby, s, samp, script, section, select, small, source, span, strong, style, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, title, tr, track, u, ul, var, video, wbr, circle, clipPath, defs, ellipse, foreignObject, g, image, line, linearGradient, mask, path, pattern, polygon, polyline, radialGradient, rect, stop, svg, text, tspan';
|
|
2536
2541
|
|
|
2537
|
-
export const ${factoryName} = /* @__PURE__ */
|
|
2542
|
+
export const ${factoryName} = /* @__PURE__ */ createStyled.bind();
|
|
2538
2543
|
|
|
2539
2544
|
tags.split(', ').forEach((tag) => {
|
|
2540
|
-
|
|
2545
|
+
${factoryName}[tag] = createStyled(tag);
|
|
2541
2546
|
});
|
|
2542
2547
|
`
|
|
2543
2548
|
};
|
|
@@ -2714,8 +2719,9 @@ export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
|
2714
2719
|
? Props
|
|
2715
2720
|
: never
|
|
2716
2721
|
|
|
2717
|
-
export type ${componentName}<T extends ElementType> =
|
|
2718
|
-
>
|
|
2722
|
+
export type ${componentName}<T extends ElementType> = {
|
|
2723
|
+
(args: { raw: readonly string[] | ArrayLike<string> }): FunctionalComponent<ComponentProps<T>>
|
|
2724
|
+
}
|
|
2719
2725
|
|
|
2720
2726
|
export interface JsxFactory {
|
|
2721
2727
|
<T extends ElementType>(component: T): ${componentName}<T>
|
package/dist/index.mjs
CHANGED
|
@@ -1157,13 +1157,13 @@ function generatePreactJsxStringLiteralFactory(ctx) {
|
|
|
1157
1157
|
function createStyledFn(Dynamic) {
|
|
1158
1158
|
const __base__ = Dynamic.__base__ || Dynamic
|
|
1159
1159
|
return function styledFn(template) {
|
|
1160
|
-
const styles = css.raw(template)
|
|
1160
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
1161
1161
|
|
|
1162
1162
|
const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
|
|
1163
1163
|
const { as: Element = __base__, ...elementProps } = props
|
|
1164
1164
|
|
|
1165
1165
|
function classes() {
|
|
1166
|
-
return cx(css(
|
|
1166
|
+
return cx(css(styles), elementProps.className)
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
return h(Element, {
|
|
@@ -1486,13 +1486,13 @@ function generateQwikJsxStringLiteralFactory(ctx) {
|
|
|
1486
1486
|
function createStyledFn(Dynamic) {
|
|
1487
1487
|
const __base__ = Dynamic.__base__ || Dynamic
|
|
1488
1488
|
return function styledFn(template) {
|
|
1489
|
-
const styles = css.raw(template)
|
|
1489
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
1490
1490
|
|
|
1491
1491
|
const ${componentName} = (props) => {
|
|
1492
1492
|
const { as: Element = __base__, ...elementProps } = props
|
|
1493
1493
|
|
|
1494
1494
|
function classes() {
|
|
1495
|
-
return cx(css(
|
|
1495
|
+
return cx(css(styles), elementProps.className)
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
1498
|
return h(Element, {
|
|
@@ -1819,13 +1819,13 @@ function generateReactJsxStringLiteralFactory(ctx) {
|
|
|
1819
1819
|
function createStyledFn(Dynamic) {
|
|
1820
1820
|
const __base__ = Dynamic.__base__ || Dynamic
|
|
1821
1821
|
return function styledFn(template) {
|
|
1822
|
-
const styles = css.raw(template)
|
|
1822
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
1823
1823
|
|
|
1824
1824
|
const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
|
|
1825
1825
|
const { as: Element = __base__, ...elementProps } = props
|
|
1826
1826
|
|
|
1827
1827
|
function classes() {
|
|
1828
|
-
return cx(css(
|
|
1828
|
+
return cx(css(styles), elementProps.className)
|
|
1829
1829
|
}
|
|
1830
1830
|
|
|
1831
1831
|
return createElement(Element, {
|
|
@@ -1862,7 +1862,6 @@ function generateReactJsxStringLiteralFactory(ctx) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
|
|
1864
1864
|
export const ${factoryName} = /* @__PURE__ */ createJsxFactory()
|
|
1865
|
-
|
|
1866
1865
|
`
|
|
1867
1866
|
};
|
|
1868
1867
|
}
|
|
@@ -2200,11 +2199,12 @@ ${ctx.file.import("getDisplayName", "./factory-helper")}
|
|
|
2200
2199
|
${ctx.file.import("css, cx", "../css/index")}
|
|
2201
2200
|
|
|
2202
2201
|
function createStyled(element) {
|
|
2202
|
+
const __base__ = element.__base__ || element
|
|
2203
2203
|
return function styledFn(template) {
|
|
2204
|
-
const styles = css.raw(template)
|
|
2204
|
+
const styles = css.raw(element.__styles__, template)
|
|
2205
2205
|
|
|
2206
2206
|
const ${componentName} = (props) => {
|
|
2207
|
-
const mergedProps = mergeProps({ as:
|
|
2207
|
+
const mergedProps = mergeProps({ as: __base__ }, props)
|
|
2208
2208
|
const [localProps, elementProps] = splitProps(mergedProps, ['as', 'class'])
|
|
2209
2209
|
|
|
2210
2210
|
return createComponent(
|
|
@@ -2215,7 +2215,7 @@ function createStyled(element) {
|
|
|
2215
2215
|
return localProps.as
|
|
2216
2216
|
},
|
|
2217
2217
|
get class() {
|
|
2218
|
-
return cx(css(
|
|
2218
|
+
return cx(css(styles), localProps.class)
|
|
2219
2219
|
},
|
|
2220
2220
|
},
|
|
2221
2221
|
elementProps,
|
|
@@ -2223,11 +2223,11 @@ function createStyled(element) {
|
|
|
2223
2223
|
)
|
|
2224
2224
|
}
|
|
2225
2225
|
|
|
2226
|
-
const name = getDisplayName(
|
|
2226
|
+
const name = getDisplayName(__base__)
|
|
2227
2227
|
|
|
2228
2228
|
${componentName}.displayName = \`${factoryName}.\${name}\`
|
|
2229
2229
|
${componentName}.__styles__ = styles
|
|
2230
|
-
${componentName}.__base__ =
|
|
2230
|
+
${componentName}.__base__ = __base__
|
|
2231
2231
|
|
|
2232
2232
|
return ${componentName}
|
|
2233
2233
|
}
|
|
@@ -2318,16 +2318,18 @@ function generateVueJsxFactory(ctx) {
|
|
|
2318
2318
|
options.defaultProps,
|
|
2319
2319
|
)
|
|
2320
2320
|
|
|
2321
|
-
const name = getDisplayName(Dynamic)
|
|
2322
2321
|
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
2323
2322
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
2323
|
+
|
|
2324
|
+
const __base__ = Dynamic.__base__ || Dynamic
|
|
2325
|
+
const name = getDisplayName(__base__)
|
|
2324
2326
|
|
|
2325
2327
|
const ${componentName} = defineComponent({
|
|
2326
2328
|
name: \`${factoryName}.\${name}\`,
|
|
2327
2329
|
inheritAttrs: false,
|
|
2328
2330
|
props: {
|
|
2329
2331
|
modelValue: null,
|
|
2330
|
-
as: { type: [String, Object], default:
|
|
2332
|
+
as: { type: [String, Object], default: __base__ }
|
|
2331
2333
|
},
|
|
2332
2334
|
setup(props, { slots, attrs, emit }) {
|
|
2333
2335
|
const combinedProps = computed(() => Object.assign({}, defaultProps, attrs))
|
|
@@ -2401,7 +2403,7 @@ function generateVueJsxFactory(ctx) {
|
|
|
2401
2403
|
|
|
2402
2404
|
${componentName}.displayName = \`${factoryName}.\${name}\`
|
|
2403
2405
|
${componentName}.__cva__ = __cvaFn__
|
|
2404
|
-
${componentName}.__base__ =
|
|
2406
|
+
${componentName}.__base__ = __base__
|
|
2405
2407
|
${componentName}.__shouldForwardProps__ = shouldForwardProp
|
|
2406
2408
|
|
|
2407
2409
|
return ${componentName}
|
|
@@ -2424,26 +2426,27 @@ function generateVueJsxStringLiteralFactory(ctx) {
|
|
|
2424
2426
|
const { componentName, factoryName } = ctx.jsx;
|
|
2425
2427
|
return {
|
|
2426
2428
|
js: outdent35`
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2429
|
+
import { defineComponent, h, computed } from 'vue'
|
|
2430
|
+
${ctx.file.import("getDisplayName", "./factory-helper")}
|
|
2431
|
+
${ctx.file.import("css, cx", "../css/index")}
|
|
2430
2432
|
|
|
2431
2433
|
function createStyled(Dynamic) {
|
|
2432
2434
|
const name = getDisplayName(Dynamic)
|
|
2435
|
+
const __base__ = Dynamic.__base__ || Dynamic
|
|
2433
2436
|
|
|
2434
2437
|
function styledFn(template) {
|
|
2435
|
-
const styles = css.raw(template)
|
|
2438
|
+
const styles = css.raw(Dynamic.__styles__, template)
|
|
2436
2439
|
|
|
2437
2440
|
const ${componentName} = defineComponent({
|
|
2438
2441
|
name: \`${factoryName}.\${name}\`,
|
|
2439
2442
|
inheritAttrs: false,
|
|
2440
2443
|
props: {
|
|
2441
2444
|
modelValue: null,
|
|
2442
|
-
as: { type: [String, Object], default:
|
|
2445
|
+
as: { type: [String, Object], default: __base__ }
|
|
2443
2446
|
},
|
|
2444
2447
|
setup(props, { slots, attrs, emit }) {
|
|
2445
2448
|
const classes = computed(() => {
|
|
2446
|
-
return cx(css(
|
|
2449
|
+
return cx(css(styles), attrs.className)
|
|
2447
2450
|
})
|
|
2448
2451
|
|
|
2449
2452
|
const vModelProps = computed(() => {
|
|
@@ -2480,7 +2483,7 @@ function generateVueJsxStringLiteralFactory(ctx) {
|
|
|
2480
2483
|
props.as,
|
|
2481
2484
|
{
|
|
2482
2485
|
class: classes.value,
|
|
2483
|
-
...
|
|
2486
|
+
...attrs,
|
|
2484
2487
|
...vModelProps.value,
|
|
2485
2488
|
},
|
|
2486
2489
|
slots
|
|
@@ -2490,18 +2493,20 @@ function generateVueJsxStringLiteralFactory(ctx) {
|
|
|
2490
2493
|
})
|
|
2491
2494
|
|
|
2492
2495
|
${componentName}.__styles__ = styles
|
|
2493
|
-
${componentName}.__base__ =
|
|
2496
|
+
${componentName}.__base__ = __base__
|
|
2494
2497
|
|
|
2495
2498
|
return ${componentName}
|
|
2496
2499
|
}
|
|
2500
|
+
|
|
2501
|
+
return styledFn
|
|
2497
2502
|
}
|
|
2498
2503
|
|
|
2499
2504
|
const tags = 'a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, big, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, link, main, map, mark, marquee, menu, menuitem, meta, meter, nav, noscript, object, ol, optgroup, option, output, p, param, picture, pre, progress, q, rp, rt, ruby, s, samp, script, section, select, small, source, span, strong, style, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, title, tr, track, u, ul, var, video, wbr, circle, clipPath, defs, ellipse, foreignObject, g, image, line, linearGradient, mask, path, pattern, polygon, polyline, radialGradient, rect, stop, svg, text, tspan';
|
|
2500
2505
|
|
|
2501
|
-
export const ${factoryName} = /* @__PURE__ */
|
|
2506
|
+
export const ${factoryName} = /* @__PURE__ */ createStyled.bind();
|
|
2502
2507
|
|
|
2503
2508
|
tags.split(', ').forEach((tag) => {
|
|
2504
|
-
|
|
2509
|
+
${factoryName}[tag] = createStyled(tag);
|
|
2505
2510
|
});
|
|
2506
2511
|
`
|
|
2507
2512
|
};
|
|
@@ -2678,8 +2683,9 @@ export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
|
2678
2683
|
? Props
|
|
2679
2684
|
: never
|
|
2680
2685
|
|
|
2681
|
-
export type ${componentName}<T extends ElementType> =
|
|
2682
|
-
>
|
|
2686
|
+
export type ${componentName}<T extends ElementType> = {
|
|
2687
|
+
(args: { raw: readonly string[] | ArrayLike<string> }): FunctionalComponent<ComponentProps<T>>
|
|
2688
|
+
}
|
|
2683
2689
|
|
|
2684
2690
|
export interface JsxFactory {
|
|
2685
2691
|
<T extends ElementType>(component: T): ${componentName}<T>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20250425183451",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"pluralize": "8.0.0",
|
|
38
38
|
"postcss": "8.4.49",
|
|
39
39
|
"ts-pattern": "5.0.8",
|
|
40
|
-
"@pandacss/core": "0.0.0-dev-
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.0.0-dev-
|
|
42
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
43
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
44
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
45
|
-
"@pandacss/types": "0.0.0-dev-
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20250425183451",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.0.0-dev-20250425183451",
|
|
42
|
+
"@pandacss/logger": "0.0.0-dev-20250425183451",
|
|
43
|
+
"@pandacss/shared": "0.0.0-dev-20250425183451",
|
|
44
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20250425183451",
|
|
45
|
+
"@pandacss/types": "0.0.0-dev-20250425183451"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33"
|