@pandacss/language-server 0.0.0-dev-20230829133853 → 0.0.0-dev-20230830225324

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -31056,7 +31056,7 @@ ${p}`),r?wet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",
31056
31056
  ${r.file.importType("SystemStyleObject","../types/index")}
31057
31057
 
31058
31058
  interface CssFunction {
31059
- (...styles: SystemStyleObject[]): string
31059
+ (...styles: Array<SystemStyleObject | undefined | null | false>): string
31060
31060
  raw: (styles: SystemStyleObject) => SystemStyleObject
31061
31061
  }
31062
31062
 
@@ -31753,12 +31753,17 @@ transform`)}
31753
31753
 
31754
31754
  export function sva(config) {
31755
31755
  const slots = Object.entries(getSlotRecipes(config)).map(([slot, slotCva]) => [slot, cva(slotCva)])
31756
-
31756
+
31757
31757
  function svaFn(props) {
31758
31758
  const result = slots.map(([slot, cvaFn]) => [slot, cvaFn(props)])
31759
31759
  return Object.fromEntries(result)
31760
31760
  }
31761
31761
 
31762
+ function raw(props) {
31763
+ const result = slots.map(([slot, cvaFn]) => [slot, cvaFn.raw(props)])
31764
+ return Object.fromEntries(result)
31765
+ }
31766
+
31762
31767
  const variants = config.variants ?? {};
31763
31768
  const variantKeys = Object.keys(variants);
31764
31769
 
@@ -31772,6 +31777,7 @@ transform`)}
31772
31777
 
31773
31778
  return Object.assign(svaFn, {
31774
31779
  __cva__: false,
31780
+ raw,
31775
31781
  variantMap,
31776
31782
  variantKeys,
31777
31783
  splitVariantProps,
@@ -54077,6 +54083,7 @@ export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord>
54077
54083
  ) => SlotRecord<S, string>
54078
54084
 
54079
54085
  export type SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>> = SlotRecipeVariantFn<S, T> & {
54086
+ raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
54080
54087
  variantKeys: (keyof T)[]
54081
54088
  variantMap: RecipeVariantMap<T>
54082
54089
  splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]
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-20230829133853",
5
+ "version": "0.0.0-dev-20230830225324",
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-20230829133853",
36
- "@pandacss/extension-shared": "0.0.0-dev-20230829133853",
37
- "@pandacss/extractor": "0.0.0-dev-20230829133853",
38
- "@pandacss/node": "0.0.0-dev-20230829133853",
39
- "@pandacss/parser": "0.0.0-dev-20230829133853",
40
- "@pandacss/shared": "0.0.0-dev-20230829133853",
41
- "@pandacss/token-dictionary": "0.0.0-dev-20230829133853",
42
- "@pandacss/types": "0.0.0-dev-20230829133853"
35
+ "@pandacss/core": "0.0.0-dev-20230830225324",
36
+ "@pandacss/extension-shared": "0.0.0-dev-20230830225324",
37
+ "@pandacss/extractor": "0.0.0-dev-20230830225324",
38
+ "@pandacss/node": "0.0.0-dev-20230830225324",
39
+ "@pandacss/parser": "0.0.0-dev-20230830225324",
40
+ "@pandacss/shared": "0.0.0-dev-20230830225324",
41
+ "@pandacss/token-dictionary": "0.0.0-dev-20230830225324",
42
+ "@pandacss/types": "0.0.0-dev-20230830225324"
43
43
  },
44
44
  "dependencies": {
45
45
  "fast-glob": "^3.3.1"