@likec4/styles 1.41.0 → 1.42.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/css/package.json +4 -0
- package/dist/jsx/create-style-context.d.ts +15 -8
- package/dist/jsx/create-style-context.mjs +6 -2
- package/dist/patterns/grid.mjs +1 -1
- package/dist/patterns/stack.mjs +1 -1
- package/dist/patterns/wrap.mjs +1 -1
- package/dist/preset.d.mts +28 -14
- package/dist/preset.mjs +347 -267
- package/dist/recipes/element-node-data.d.ts +5 -10
- package/dist/recipes/element-node-data.mjs +13 -71
- package/dist/recipes/index.d.ts +2 -2
- package/dist/recipes/index.mjs +2 -2
- package/dist/recipes/overlay.d.ts +40 -0
- package/dist/recipes/overlay.mjs +36 -0
- package/dist/tokens/index.mjs +32 -20
- package/dist/tokens/tokens.d.ts +2 -2
- package/dist/types/conditions.d.ts +1 -1
- package/dist/types/index.mjs +1 -0
- package/dist/types/jsx.d.ts +5 -5
- package/dist/types/prop-type.d.ts +1 -1
- package/jsx/package.json +4 -0
- package/package.json +37 -14
- package/panda.config.ts +1 -0
- package/patterns/package.json +4 -0
- package/postcss.d.mts +1 -1
- package/preset/package.json +4 -0
- package/recipes/package.json +4 -0
- package/tokens/package.json +4 -0
- package/types/package.json +4 -0
- package/dist/recipes/element-node-icon.d.ts +0 -33
- package/dist/recipes/element-node-icon.mjs +0 -24
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.
|
|
5
|
+
"version": "1.42.1",
|
|
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.
|
|
62
|
-
"@pandacss/types": "^1.
|
|
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.
|
|
70
|
-
"@pandacss/types": "^1.
|
|
92
|
+
"@pandacss/dev": "^1.4.1",
|
|
93
|
+
"@pandacss/types": "^1.4.1",
|
|
71
94
|
"@types/picomatch": "^4.0.2",
|
|
72
|
-
"@types/react": "19.1.
|
|
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.
|
|
79
|
-
"@likec4/tsconfig": "1.
|
|
101
|
+
"@likec4/style-preset": "1.42.1",
|
|
102
|
+
"@likec4/tsconfig": "1.42.1",
|
|
103
|
+
"@likec4/devops": "1.42.0"
|
|
80
104
|
},
|
|
81
105
|
"scripts": {
|
|
82
106
|
"typecheck": "tsc --build --verbose",
|
|
83
|
-
"
|
|
84
|
-
"generate": "panda codegen",
|
|
107
|
+
"generate": "unbuild",
|
|
85
108
|
"emit-pkg": "panda emit-pkg --base dist",
|
|
86
|
-
"clean": "
|
|
109
|
+
"clean": "likec4ops clean",
|
|
87
110
|
"pack": "pnpm pack",
|
|
88
111
|
"lint:package": "pnpx publint ./package.tgz"
|
|
89
112
|
}
|
package/panda.config.ts
CHANGED
package/postcss.d.mts
CHANGED
|
@@ -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
|
-
})
|