@pandacss/language-server 0.0.0-dev-20231023094545 → 0.0.0-dev-20231023175607
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 +41 -37
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -31959,7 +31959,7 @@ transform`)}
|
|
|
31959
31959
|
|
|
31960
31960
|
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
31961
31961
|
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
31962
|
-
|
|
31962
|
+
|
|
31963
31963
|
const defaultProps = Object.assign(
|
|
31964
31964
|
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
31965
31965
|
options.defaultProps,
|
|
@@ -31973,8 +31973,8 @@ transform`)}
|
|
|
31973
31973
|
|
|
31974
31974
|
const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
|
|
31975
31975
|
|
|
31976
|
-
const [forwardedProps, variantProps, styleProps,
|
|
31977
|
-
return splitProps(combinedProps, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty
|
|
31976
|
+
const [htmlProps, forwardedProps, variantProps, styleProps, elementProps] = useMemo(() => {
|
|
31977
|
+
return splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
31978
31978
|
}, [combinedProps])
|
|
31979
31979
|
|
|
31980
31980
|
function recipeClass() {
|
|
@@ -32002,12 +32002,12 @@ transform`)}
|
|
|
32002
32002
|
})
|
|
32003
32003
|
|
|
32004
32004
|
const name = getDisplayName(Dynamic)
|
|
32005
|
-
|
|
32005
|
+
|
|
32006
32006
|
${i}.displayName = \`${e}.\${name}\`
|
|
32007
32007
|
${i}.__cva__ = cvaFn
|
|
32008
32008
|
${i}.__base__ = Dynamic
|
|
32009
32009
|
${i}.__shouldForwardProps__ = shouldForwardProp
|
|
32010
|
-
|
|
32010
|
+
|
|
32011
32011
|
return ${i}
|
|
32012
32012
|
}
|
|
32013
32013
|
|
|
@@ -32198,7 +32198,7 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32198
32198
|
|
|
32199
32199
|
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
32200
32200
|
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
32201
|
-
|
|
32201
|
+
|
|
32202
32202
|
const defaultProps = Object.assign(
|
|
32203
32203
|
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
32204
32204
|
options.defaultProps,
|
|
@@ -32211,16 +32211,18 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32211
32211
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
32212
32212
|
|
|
32213
32213
|
const combinedProps = Object.assign({}, defaultProps, restProps)
|
|
32214
|
-
|
|
32215
|
-
const [forwardedProps, variantProps, styleProps,
|
|
32216
|
-
splitProps(combinedProps, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty
|
|
32214
|
+
|
|
32215
|
+
const [htmlProps, forwardedProps, variantProps, styleProps, elementProps] =
|
|
32216
|
+
splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
32217
|
+
|
|
32218
|
+
const { css: cssStyles, ...propStyles } = styleProps
|
|
32217
32219
|
|
|
32218
32220
|
function recipeClass() {
|
|
32219
32221
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
32220
32222
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
32221
32223
|
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.class, className)
|
|
32222
32224
|
}
|
|
32223
|
-
|
|
32225
|
+
|
|
32224
32226
|
function cvaClass() {
|
|
32225
32227
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
32226
32228
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
@@ -32239,12 +32241,12 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32239
32241
|
}
|
|
32240
32242
|
|
|
32241
32243
|
const name = getDisplayName(Dynamic)
|
|
32242
|
-
|
|
32244
|
+
|
|
32243
32245
|
${i}.displayName = \`${e}.\${name}\`
|
|
32244
32246
|
${i}.__cva__ = cvaFn
|
|
32245
32247
|
${i}.__base__ = Dynamic
|
|
32246
32248
|
${i}.__shouldForwardProps__ = shouldForwardProp
|
|
32247
|
-
|
|
32249
|
+
|
|
32248
32250
|
return ${i}
|
|
32249
32251
|
}
|
|
32250
32252
|
|
|
@@ -32442,7 +32444,7 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32442
32444
|
|
|
32443
32445
|
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
32444
32446
|
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
32445
|
-
|
|
32447
|
+
|
|
32446
32448
|
const defaultProps = Object.assign(
|
|
32447
32449
|
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
32448
32450
|
options.defaultProps,
|
|
@@ -32450,14 +32452,14 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32450
32452
|
|
|
32451
32453
|
const ${i} = /* @__PURE__ */ forwardRef(function ${i}(props, ref) {
|
|
32452
32454
|
const { as: Element = Dynamic.__base__ || Dynamic, children, ...restProps } = props
|
|
32453
|
-
|
|
32455
|
+
|
|
32454
32456
|
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
32455
32457
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
32456
32458
|
|
|
32457
32459
|
const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
|
|
32458
32460
|
|
|
32459
|
-
const [forwardedProps, variantProps, styleProps,
|
|
32460
|
-
return splitProps(combinedProps, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty
|
|
32461
|
+
const [htmlProps, forwardedProps, variantProps, styleProps, elementProps] = useMemo(() => {
|
|
32462
|
+
return splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty)
|
|
32461
32463
|
}, [combinedProps])
|
|
32462
32464
|
|
|
32463
32465
|
function recipeClass() {
|
|
@@ -32485,12 +32487,12 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32485
32487
|
})
|
|
32486
32488
|
|
|
32487
32489
|
const name = getDisplayName(Dynamic)
|
|
32488
|
-
|
|
32490
|
+
|
|
32489
32491
|
${i}.displayName = \`${e}.\${name}\`
|
|
32490
32492
|
${i}.__cva__ = cvaFn
|
|
32491
32493
|
${i}.__base__ = Dynamic
|
|
32492
32494
|
${i}.__shouldForwardProps__ = shouldForwardProp
|
|
32493
|
-
|
|
32495
|
+
|
|
32494
32496
|
return ${i}
|
|
32495
32497
|
}
|
|
32496
32498
|
|
|
@@ -32682,13 +32684,13 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32682
32684
|
${r.file.import("isCssProperty, allCssProperties","./is-valid-prop")}
|
|
32683
32685
|
${r.file.import("css, cx, cva","../css/index")}
|
|
32684
32686
|
${r.file.import("normalizeHTMLProps","../helpers")}
|
|
32685
|
-
|
|
32687
|
+
|
|
32686
32688
|
function styledFn(element, configOrCva = {}, options = {}) {
|
|
32687
32689
|
const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva)
|
|
32688
32690
|
|
|
32689
32691
|
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
32690
32692
|
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
32691
|
-
|
|
32693
|
+
|
|
32692
32694
|
const defaultProps = Object.assign(
|
|
32693
32695
|
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
32694
32696
|
options.defaultProps,
|
|
@@ -32696,19 +32698,21 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32696
32698
|
|
|
32697
32699
|
const ${e} = (props) => {
|
|
32698
32700
|
const mergedProps = mergeProps({ as: element.__base__ || element }, defaultProps, props)
|
|
32699
|
-
|
|
32701
|
+
|
|
32700
32702
|
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
32701
32703
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
32702
|
-
|
|
32703
|
-
const forwardedKeys = createMemo(() => Object.keys(props).filter(shouldForwardProp))
|
|
32704
32704
|
|
|
32705
|
-
const
|
|
32705
|
+
const forwardedKeys = createMemo(() =>
|
|
32706
|
+
Object.keys(props).filter((prop) => !normalizeHTMLProps.keys.includes(prop) && shouldForwardProp(prop)),
|
|
32707
|
+
)
|
|
32708
|
+
|
|
32709
|
+
const [localProps, htmlProps, forwardedProps, variantProps, styleProps, elementProps] = splitProps(
|
|
32706
32710
|
mergedProps,
|
|
32707
32711
|
['as', 'class', 'className'],
|
|
32712
|
+
normalizeHTMLProps.keys,
|
|
32708
32713
|
forwardedKeys(),
|
|
32709
32714
|
__cvaFn__.variantKeys,
|
|
32710
32715
|
allCssProperties,
|
|
32711
|
-
normalizeHTMLProps.keys
|
|
32712
32716
|
)
|
|
32713
32717
|
|
|
32714
32718
|
function recipeClass() {
|
|
@@ -32753,7 +32757,7 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32753
32757
|
${e}.__cva__ = cvaFn
|
|
32754
32758
|
${e}.__base__ = element
|
|
32755
32759
|
${e}.__shouldForwardProps__ = shouldForwardProp
|
|
32756
|
-
|
|
32760
|
+
|
|
32757
32761
|
return ${e}
|
|
32758
32762
|
}
|
|
32759
32763
|
|
|
@@ -32947,15 +32951,15 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32947
32951
|
|
|
32948
32952
|
function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
32949
32953
|
const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva)
|
|
32950
|
-
|
|
32954
|
+
|
|
32951
32955
|
const forwardFn = options.shouldForwardProp || defaultShouldForwardProp
|
|
32952
32956
|
const shouldForwardProp = (prop) => forwardFn(prop, cvaFn.variantKeys)
|
|
32953
|
-
|
|
32957
|
+
|
|
32954
32958
|
const defaultProps = Object.assign(
|
|
32955
32959
|
options.dataAttr && configOrCva.__name__ ? { 'data-recipe': configOrCva.__name__ } : {},
|
|
32956
32960
|
options.defaultProps,
|
|
32957
32961
|
)
|
|
32958
|
-
|
|
32962
|
+
|
|
32959
32963
|
const name = getDisplayName(Dynamic)
|
|
32960
32964
|
|
|
32961
32965
|
const ${i} = defineComponent({
|
|
@@ -32965,22 +32969,22 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32965
32969
|
setup(props, { slots, attrs }) {
|
|
32966
32970
|
const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
|
|
32967
32971
|
const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
|
|
32968
|
-
|
|
32972
|
+
|
|
32969
32973
|
const combinedProps = computed(() => Object.assign({}, defaultProps, attrs))
|
|
32970
|
-
|
|
32974
|
+
|
|
32971
32975
|
const splittedProps = computed(() => {
|
|
32972
|
-
return splitProps(combinedProps.value, shouldForwardProp, __cvaFn__.variantKeys, isCssProperty
|
|
32976
|
+
return splitProps(combinedProps.value, normalizeHTMLProps.keys, shouldForwardProp, __cvaFn__.variantKeys, isCssProperty)
|
|
32973
32977
|
})
|
|
32974
32978
|
|
|
32975
32979
|
const recipeClass = computed(() => {
|
|
32976
|
-
const [_forwardedProps, variantProps, styleProps,
|
|
32980
|
+
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
32977
32981
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
32978
32982
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
32979
32983
|
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.value.className)
|
|
32980
32984
|
})
|
|
32981
32985
|
|
|
32982
32986
|
const cvaClass = computed(() => {
|
|
32983
|
-
const [_forwardedProps, variantProps, styleProps,
|
|
32987
|
+
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
32984
32988
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
32985
32989
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
32986
32990
|
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.value.className)
|
|
@@ -32989,7 +32993,7 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
32989
32993
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
32990
32994
|
|
|
32991
32995
|
return () => {
|
|
32992
|
-
const [forwardedProps, _variantProps, _styleProps,
|
|
32996
|
+
const [htmlProps, forwardedProps, _variantProps, _styleProps, elementProps] = splittedProps.value
|
|
32993
32997
|
return h(
|
|
32994
32998
|
props.as,
|
|
32995
32999
|
{
|
|
@@ -33008,7 +33012,7 @@ export type ${u}<T extends ElementType> = ComponentProps<T>
|
|
|
33008
33012
|
${i}.__cva__ = cvaFn
|
|
33009
33013
|
${i}.__base__ = Dynamic
|
|
33010
33014
|
${i}.__shouldForwardProps__ = shouldForwardProp
|
|
33011
|
-
|
|
33015
|
+
|
|
33012
33016
|
return ${i}
|
|
33013
33017
|
}
|
|
33014
33018
|
|
|
@@ -54412,7 +54416,7 @@ type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
|
54412
54416
|
|
|
54413
54417
|
export type AnySelector = \`\${string}&\` | \`&\${string}\` | \`@\${AtRuleType}\${string}\`
|
|
54414
54418
|
export type Selectors = AttributeSelector | ParentSelector
|
|
54415
|
-
`},lNn="export type JsxStyleProps = StyleProps & WithCss";function evr(r){let e=i=>i.replace(/import\s+type\s+\{([^}]+)\}\s+from\s+['"]([^'"]+)['"]/g,r.file.importType("$1","$2"));return{cssType:K0r.content,recipe:e(Y0r.content),pattern:e(Q0r.content.replace("../tokens","../tokens/index")),parts:e($0r.content),composition:e(X0r.content),selectors:e(Z0r.content),system:e(_g(r.jsx.styleProps).with("all",()=>hjt.content).with("minimal",()=>hjt.content.replace(lNn,"export type JsxStyleProps = WithCss")).with("none",()=>hjt.content.replace(lNn,"export type JsxStyleProps = {}")).exhaustive())}}var tvr=r=>({global:fp`
|
|
54419
|
+
`},lNn="export type JsxStyleProps = StyleProps & WithCss";function evr(r){let e=i=>i.replace(/import\s+type\s+\{([^}]+)\}\s+from\s+['"]([^'"]+)['"]/g,r.file.importType("$1","$2"));return{cssType:K0r.content,recipe:e(Y0r.content),pattern:e(Q0r.content.replace("../tokens","../tokens/index")),parts:e($0r.content),composition:e(X0r.content),selectors:e(Z0r.content),system:e(_g(r.jsx.styleProps).with("all",()=>hjt.content).with("minimal",()=>hjt.content.replace("WithHTMLProps<T>,","T,").replace(lNn,"export type JsxStyleProps = WithCss")).with("none",()=>hjt.content.replace("WithHTMLProps<T>,","T,").replace(lNn,"export type JsxStyleProps = {}")).exhaustive())}}var tvr=r=>({global:fp`
|
|
54416
54420
|
// @ts-nocheck
|
|
54417
54421
|
import type * as Panda from '@pandacss/dev'
|
|
54418
54422
|
${r.file.importType("RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig","./recipe")}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pandacss/language-server",
|
|
3
3
|
"displayName": "Panda CSS",
|
|
4
4
|
"description": "🐼 The official Panda language server",
|
|
5
|
-
"version": "0.0.0-dev-
|
|
5
|
+
"version": "0.0.0-dev-20231023175607",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/chakra-ui/panda",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"vscode-languageserver": "^8.1.0",
|
|
33
33
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
34
34
|
"vscode-uri": "^3.0.7",
|
|
35
|
-
"@pandacss/core": "0.0.0-dev-
|
|
36
|
-
"@pandacss/extension-shared": "0.0.0-dev-
|
|
37
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
38
|
-
"@pandacss/node": "0.0.0-dev-
|
|
39
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
40
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
41
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
42
|
-
"@pandacss/types": "0.0.0-dev-
|
|
35
|
+
"@pandacss/core": "0.0.0-dev-20231023175607",
|
|
36
|
+
"@pandacss/extension-shared": "0.0.0-dev-20231023175607",
|
|
37
|
+
"@pandacss/extractor": "0.0.0-dev-20231023175607",
|
|
38
|
+
"@pandacss/node": "0.0.0-dev-20231023175607",
|
|
39
|
+
"@pandacss/parser": "0.0.0-dev-20231023175607",
|
|
40
|
+
"@pandacss/shared": "0.0.0-dev-20231023175607",
|
|
41
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20231023175607",
|
|
42
|
+
"@pandacss/types": "0.0.0-dev-20231023175607"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"fast-glob": "^3.3.1"
|