@likec4/styles 1.40.0 → 1.42.0

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/package.json CHANGED
@@ -2,24 +2,36 @@
2
2
  "name": "@likec4/styles",
3
3
  "description": "Shared PandaCSS preset and generated styles, used in LikeC4",
4
4
  "license": "MIT",
5
- "version": "1.40.0",
5
+ "version": "1.42.0",
6
6
  "bugs": "https://github.com/likec4/likec4/issues",
7
7
  "homepage": "https://likec4.dev",
8
8
  "author": "Denis Davydkov <denis@davydkov.com>",
9
- "type": "module",
10
- "sideEffects": false,
11
9
  "files": [
12
10
  "dist",
13
11
  "*.mts",
14
12
  "*.mjs",
15
13
  "*.ts",
14
+ "**/package.json",
16
15
  "!build.config.ts"
17
16
  ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/likec4/likec4.git",
20
+ "directory": "styled-system/styles"
21
+ },
18
22
  "publishConfig": {
19
23
  "registry": "https://registry.npmjs.org",
20
24
  "access": "public"
21
25
  },
26
+ "type": "module",
27
+ "types": "dist/types/index.d.ts",
28
+ "module": "dist/types/index.mjs",
29
+ "sideEffects": false,
22
30
  "exports": {
31
+ ".": {
32
+ "types": "./dist/types/index.d.ts",
33
+ "default": "./dist/types/index.mjs"
34
+ },
23
35
  "./css": {
24
36
  "types": "./dist/css/index.d.ts",
25
37
  "default": "./dist/css/index.mjs"
@@ -29,7 +41,8 @@
29
41
  "default": "./dist/tokens/index.mjs"
30
42
  },
31
43
  "./types": {
32
- "types": "./dist/types/index.d.ts"
44
+ "types": "./dist/types/index.d.ts",
45
+ "default": "./dist/types/index.mjs"
33
46
  },
34
47
  "./patterns": {
35
48
  "types": "./dist/patterns/index.d.ts",
@@ -58,32 +71,42 @@
58
71
  "./dev": "./dev.ts"
59
72
  },
60
73
  "peerDependencies": {
61
- "@pandacss/dev": "^1.3.0",
62
- "@pandacss/types": "^1.3.0"
74
+ "@pandacss/dev": "^1.4.1",
75
+ "@pandacss/types": "^1.4.1",
76
+ "react": "^18.x || ^19.x",
77
+ "@types/react": "^18.x || ^19.x"
78
+ },
79
+ "peerDependenciesMeta": {
80
+ "@pandacss/types": {
81
+ "optional": true
82
+ },
83
+ "@types/react": {
84
+ "optional": true
85
+ }
63
86
  },
64
87
  "devDependencies": {
65
88
  "@types/node": "~20.19.11",
66
89
  "@pandabox/panda-plugins": "^0.0.8",
67
90
  "@pandabox/utils": "^0.0.5",
68
91
  "@pandabox/unplugin": "^0.2.2",
69
- "@pandacss/dev": "^1.3.0",
70
- "@pandacss/types": "^1.3.0",
92
+ "@pandacss/dev": "^1.4.1",
93
+ "@pandacss/types": "^1.4.1",
71
94
  "@types/picomatch": "^4.0.2",
72
- "@types/react": "19.1.12",
95
+ "@types/react": "19.1.16",
73
96
  "@types/react-dom": "19.1.9",
74
97
  "postcss": "8.5.6",
75
98
  "nano-spawn": "^1.0.3",
76
99
  "unbuild": "3.5.0",
77
100
  "typescript": "5.9.2",
78
- "@likec4/style-preset": "1.40.0",
79
- "@likec4/tsconfig": "1.40.0"
101
+ "@likec4/style-preset": "1.42.0",
102
+ "@likec4/devops": "1.42.0",
103
+ "@likec4/tsconfig": "1.42.0"
80
104
  },
81
105
  "scripts": {
82
106
  "typecheck": "tsc --build --verbose",
83
- "build": "unbuild",
84
- "generate": "panda codegen",
107
+ "generate": "unbuild",
85
108
  "emit-pkg": "panda emit-pkg --base dist",
86
- "clean": "pnpm rimraf dist lib",
109
+ "clean": "likec4ops clean",
87
110
  "pack": "pnpm pack",
88
111
  "lint:package": "pnpx publint ./package.tgz"
89
112
  }
package/panda.config.ts CHANGED
@@ -3,6 +3,7 @@ import { defineConfig } from './dev'
3
3
  export default defineConfig({
4
4
  // The output directory for your css system
5
5
  outdir: 'dist',
6
+ clean: true,
6
7
  include: [
7
8
  '../../packages/diagram/src/**/*.{js,jsx,ts,tsx}',
8
9
  ],
@@ -0,0 +1,4 @@
1
+ {
2
+ "types": "../dist/patterns/index.d.ts",
3
+ "module": "../dist/patterns/index.mjs"
4
+ }
package/postcss.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { type PluginOptions } from '@pandacss/dev/postcss'
1
+ import type { PluginOptions } from '@pandacss/dev/postcss'
2
2
  import type * as postcss from 'postcss'
3
3
 
4
4
  declare function pandaCss(options?: PluginOptions): postcss.Plugin
@@ -0,0 +1,4 @@
1
+ {
2
+ "types": "../dist/preset.d.mts",
3
+ "module": "../dist/preset.mjs"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "types": "../dist/recipes/index.d.ts",
3
+ "module": "../dist/recipes/index.mjs"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "types": "../dist/tokens/index.d.ts",
3
+ "module": "../dist/tokens/index.mjs"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "types": "../dist/types/index.d.ts",
3
+ "module": "../dist/types/index.mjs"
4
+ }
@@ -1,33 +0,0 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
4
-
5
- interface ElementNodeIconVariant {
6
-
7
- }
8
-
9
- type ElementNodeIconVariantMap = {
10
- [key in keyof ElementNodeIconVariant]: Array<ElementNodeIconVariant[key]>
11
- }
12
-
13
-
14
-
15
- export type ElementNodeIconVariantProps = {
16
- [key in keyof ElementNodeIconVariant]?: ConditionalValue<ElementNodeIconVariant[key]> | undefined
17
- }
18
-
19
- export interface ElementNodeIconRecipe {
20
-
21
- __type: ElementNodeIconVariantProps
22
- (props?: ElementNodeIconVariantProps): string
23
- raw: (props?: ElementNodeIconVariantProps) => ElementNodeIconVariantProps
24
- variantMap: ElementNodeIconVariantMap
25
- variantKeys: Array<keyof ElementNodeIconVariant>
26
- splitVariantProps<Props extends ElementNodeIconVariantProps>(props: Props): [ElementNodeIconVariantProps, Pretty<DistributiveOmit<Props, keyof ElementNodeIconVariantProps>>]
27
- getVariantProps: (props?: ElementNodeIconVariantProps) => ElementNodeIconVariantProps
28
- }
29
-
30
- /**
31
- * Element Icon displayed in diagram nodes
32
- */
33
- export declare const elementNodeIcon: ElementNodeIconRecipe
@@ -1,24 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const elementNodeIconFn = /* @__PURE__ */ createRecipe('likec4-element-node-icon', {}, [])
5
-
6
- const elementNodeIconVariantMap = {}
7
-
8
- const elementNodeIconVariantKeys = Object.keys(elementNodeIconVariantMap)
9
-
10
- export const elementNodeIcon = /* @__PURE__ */ Object.assign(memo(elementNodeIconFn.recipeFn), {
11
- __recipe__: true,
12
- __name__: 'elementNodeIcon',
13
- __getCompoundVariantCss__: elementNodeIconFn.__getCompoundVariantCss__,
14
- raw: (props) => props,
15
- variantKeys: elementNodeIconVariantKeys,
16
- variantMap: elementNodeIconVariantMap,
17
- merge(recipe) {
18
- return mergeRecipes(this, recipe)
19
- },
20
- splitVariantProps(props) {
21
- return splitProps(props, elementNodeIconVariantKeys)
22
- },
23
- getVariantProps: elementNodeIconFn.getVariantProps,
24
- })