@likec4/styles 1.47.0 → 1.49.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/LICENSE +1 -1
- package/css/package.json +1 -1
- package/dev.d.mts +3 -0
- package/{dev.ts → dev.mjs} +8 -4
- package/dist/css/conditions.mjs +1 -1
- package/dist/css/{css.d.ts → css.d.mts} +1 -1
- package/dist/css/{cva.d.ts → cva.d.mts} +2 -2
- package/dist/css/index.d.mts +5 -0
- package/dist/css/sva.d.mts +4 -0
- package/dist/jsx/{aspect-ratio.d.ts → aspect-ratio.d.mts} +3 -3
- package/dist/jsx/bleed.d.mts +10 -0
- package/dist/jsx/box.d.mts +10 -0
- package/dist/jsx/center.d.mts +10 -0
- package/dist/jsx/circle.d.mts +10 -0
- package/dist/jsx/{container.d.ts → container.d.mts} +3 -3
- package/dist/jsx/cq.d.mts +10 -0
- package/dist/jsx/{create-style-context.d.ts → create-style-context.d.mts} +3 -3
- package/dist/jsx/divider.d.mts +10 -0
- package/dist/jsx/factory.d.mts +3 -0
- package/dist/jsx/flex.d.mts +10 -0
- package/dist/jsx/float.d.mts +10 -0
- package/dist/jsx/grid-item.d.mts +10 -0
- package/dist/jsx/grid.d.mts +10 -0
- package/dist/jsx/hstack.d.mts +10 -0
- package/dist/jsx/index.d.mts +26 -0
- package/dist/jsx/index.mjs +2 -1
- package/dist/jsx/is-valid-prop.mjs +1 -1
- package/dist/jsx/{link-overlay.d.ts → link-overlay.d.mts} +3 -3
- package/dist/jsx/spacer.d.mts +10 -0
- package/dist/jsx/square.d.mts +10 -0
- package/dist/jsx/stack.d.mts +10 -0
- package/dist/jsx/txt.d.mts +10 -0
- package/dist/jsx/txt.mjs +14 -0
- package/dist/jsx/{visually-hidden.d.ts → visually-hidden.d.mts} +3 -3
- package/dist/jsx/vstack.d.mts +10 -0
- package/dist/jsx/wrap.d.mts +10 -0
- package/dist/patterns/{aspect-ratio.d.ts → aspect-ratio.d.mts} +5 -5
- package/dist/patterns/{bleed.d.ts → bleed.d.mts} +5 -5
- package/dist/patterns/{box.d.ts → box.d.mts} +5 -5
- package/dist/patterns/{center.d.ts → center.d.mts} +5 -5
- package/dist/patterns/{circle.d.ts → circle.d.mts} +5 -5
- package/dist/patterns/{container.d.ts → container.d.mts} +5 -5
- package/dist/patterns/{cq.d.ts → cq.d.mts} +5 -5
- package/dist/patterns/{divider.d.ts → divider.d.mts} +5 -5
- package/dist/patterns/{flex.d.ts → flex.d.mts} +5 -5
- package/dist/patterns/{float.d.ts → float.d.mts} +5 -5
- package/dist/patterns/{grid-item.d.ts → grid-item.d.mts} +5 -5
- package/dist/patterns/{grid.d.ts → grid.d.mts} +5 -5
- package/dist/patterns/{hstack.d.ts → hstack.d.mts} +5 -5
- package/dist/patterns/index.d.mts +22 -0
- package/dist/patterns/index.mjs +2 -1
- package/dist/patterns/{link-overlay.d.ts → link-overlay.d.mts} +5 -5
- package/dist/patterns/{spacer.d.ts → spacer.d.mts} +5 -5
- package/dist/patterns/{square.d.ts → square.d.mts} +5 -5
- package/dist/patterns/{stack.d.ts → stack.d.mts} +5 -5
- package/dist/patterns/txt.d.mts +24 -0
- package/dist/patterns/txt.mjs +28 -0
- package/dist/patterns/{visually-hidden.d.ts → visually-hidden.d.mts} +5 -5
- package/dist/patterns/{vstack.d.ts → vstack.d.mts} +5 -5
- package/dist/patterns/{wrap.d.ts → wrap.d.mts} +5 -5
- package/dist/recipes/{action-btn.d.ts → action-btn.d.mts} +2 -2
- package/dist/recipes/action-buttons.d.mts +33 -0
- package/dist/recipes/action-buttons.mjs +24 -0
- package/dist/recipes/{compound-node.d.ts → compound-node.d.mts} +12 -3
- package/dist/recipes/compound-node.mjs +5 -1
- package/dist/recipes/{edge-action-btn.d.ts → edge-action-btn.d.mts} +2 -2
- package/dist/recipes/{edge-label.d.ts → edge-label.d.mts} +2 -2
- package/dist/recipes/{edge-path.d.ts → edge-path.d.mts} +2 -2
- package/dist/recipes/{element-node-data.d.ts → element-node-data.d.mts} +10 -3
- package/dist/recipes/element-node-data.mjs +16 -2
- package/dist/recipes/{element-node.d.ts → element-node.d.mts} +2 -2
- package/dist/recipes/{element-shape-recipe.d.ts → element-shape-recipe.d.mts} +6 -2
- package/dist/recipes/element-shape-recipe.mjs +6 -1
- package/dist/recipes/index.d.mts +17 -0
- package/dist/recipes/index.mjs +2 -0
- package/dist/recipes/{likec4tag.d.ts → likec4tag.d.mts} +2 -2
- package/dist/recipes/{markdown-block.d.ts → markdown-block.d.mts} +2 -2
- package/dist/recipes/{navigation-link.d.ts → navigation-link.d.mts} +2 -2
- package/dist/recipes/{navigation-panel-action-icon.d.ts → navigation-panel-action-icon.d.mts} +2 -2
- package/dist/recipes/{navigation-panel.d.ts → navigation-panel.d.mts} +6 -2
- package/dist/recipes/navigation-panel.mjs +8 -2
- package/dist/recipes/node-notes.d.mts +34 -0
- package/dist/recipes/node-notes.mjs +31 -0
- package/dist/recipes/{overlay.d.ts → overlay.d.mts} +2 -2
- package/dist/tokens/{index.d.ts → index.d.mts} +2 -2
- package/dist/tokens/index.mjs +328 -184
- package/dist/tokens/tokens.d.mts +54 -0
- package/dist/types/{composition.d.ts → composition.d.mts} +4 -1
- package/dist/types/{conditions.d.ts → conditions.d.mts} +4 -6
- package/dist/types/{global.d.ts → global.d.mts} +5 -5
- package/dist/types/index.d.mts +8 -0
- package/dist/types/{jsx.d.ts → jsx.d.mts} +2 -2
- package/dist/types/{pattern.d.ts → pattern.d.mts} +2 -2
- package/dist/types/{prop-type.d.ts → prop-type.d.mts} +21 -5
- package/dist/types/{recipe.d.ts → recipe.d.mts} +2 -2
- package/dist/types/{selectors.d.ts → selectors.d.mts} +1 -1
- package/dist/types/{style-props.d.ts → style-props.d.mts} +59 -59
- package/dist/types/{system-types.d.ts → system-types.d.mts} +3 -3
- package/jsx/package.json +1 -1
- package/package.json +42 -34
- package/patterns/package.json +1 -1
- package/preset/_chunks/libs/@radix-ui/colors.mjs +3784 -0
- package/preset/_chunks/libs/pandacss-preset-radix-colors.mjs +147 -0
- package/preset/_chunks/libs/remeda.mjs +120 -0
- package/preset/_chunks/rolldown-runtime.mjs +11 -0
- package/preset/package.json +2 -2
- package/preset/preset.d.mts +1466 -0
- package/preset/preset.mjs +3943 -0
- package/recipes/package.json +1 -1
- package/tokens/package.json +1 -1
- package/types/package.json +1 -1
- package/vars/package.json +4 -0
- package/vars/vars.d.mts +417 -0
- package/vars/vars.mjs +415 -0
- package/dist/css/index.d.ts +0 -5
- package/dist/css/sva.d.ts +0 -4
- package/dist/jsx/bleed.d.ts +0 -10
- package/dist/jsx/box.d.ts +0 -10
- package/dist/jsx/center.d.ts +0 -10
- package/dist/jsx/circle.d.ts +0 -10
- package/dist/jsx/cq.d.ts +0 -10
- package/dist/jsx/divider.d.ts +0 -10
- package/dist/jsx/factory.d.ts +0 -3
- package/dist/jsx/flex.d.ts +0 -10
- package/dist/jsx/float.d.ts +0 -10
- package/dist/jsx/grid-item.d.ts +0 -10
- package/dist/jsx/grid.d.ts +0 -10
- package/dist/jsx/hstack.d.ts +0 -10
- package/dist/jsx/index.d.ts +0 -25
- package/dist/jsx/spacer.d.ts +0 -10
- package/dist/jsx/square.d.ts +0 -10
- package/dist/jsx/stack.d.ts +0 -10
- package/dist/jsx/vstack.d.ts +0 -10
- package/dist/jsx/wrap.d.ts +0 -10
- package/dist/patterns/index.d.ts +0 -21
- package/dist/preset.d.mts +0 -1232
- package/dist/preset.mjs +0 -7553
- package/dist/recipes/index.d.ts +0 -15
- package/dist/tokens/tokens.d.ts +0 -51
- package/dist/types/index.d.ts +0 -8
- package/panda.config.ts +0 -10
- package/preset.ts +0 -3
- /package/dist/css/{cx.d.ts → cx.d.mts} +0 -0
- /package/dist/jsx/{is-valid-prop.d.ts → is-valid-prop.d.mts} +0 -0
- /package/dist/types/{csstype.d.ts → csstype.d.mts} +0 -0
- /package/dist/types/{parts.d.ts → parts.d.mts} +0 -0
- /package/dist/types/{static-css.d.ts → static-css.d.mts} +0 -0
|
@@ -2,7 +2,8 @@ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mj
|
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const navigationPanelDefaultVariants = {
|
|
5
|
-
"size": "md"
|
|
5
|
+
"size": "md",
|
|
6
|
+
"panelPosition": "left"
|
|
6
7
|
}
|
|
7
8
|
const navigationPanelCompoundVariants = []
|
|
8
9
|
|
|
@@ -35,7 +36,8 @@ const navigationPanelFn = memo((props = {}) => {
|
|
|
35
36
|
})
|
|
36
37
|
|
|
37
38
|
const navigationPanelVariantKeys = [
|
|
38
|
-
"size"
|
|
39
|
+
"size",
|
|
40
|
+
"panelPosition"
|
|
39
41
|
]
|
|
40
42
|
const getVariantProps = (variants) => ({ ...navigationPanelDefaultVariants, ...compact(variants) })
|
|
41
43
|
|
|
@@ -49,6 +51,10 @@ export const navigationPanel = /* @__PURE__ */ Object.assign(navigationPanelFn,
|
|
|
49
51
|
"size": [
|
|
50
52
|
"md",
|
|
51
53
|
"lg"
|
|
54
|
+
],
|
|
55
|
+
"panelPosition": [
|
|
56
|
+
"left",
|
|
57
|
+
"right"
|
|
52
58
|
]
|
|
53
59
|
},
|
|
54
60
|
splitVariantProps(props) {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
+
|
|
5
|
+
interface NodeNotesVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
opened: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type NodeNotesVariantMap = {
|
|
13
|
+
[key in keyof NodeNotesVariant]: Array<NodeNotesVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export type NodeNotesVariantProps = {
|
|
19
|
+
[key in keyof NodeNotesVariant]?: ConditionalValue<NodeNotesVariant[key]> | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface NodeNotesRecipe {
|
|
23
|
+
|
|
24
|
+
__type: NodeNotesVariantProps
|
|
25
|
+
(props?: NodeNotesVariantProps): string
|
|
26
|
+
raw: (props?: NodeNotesVariantProps) => NodeNotesVariantProps
|
|
27
|
+
variantMap: NodeNotesVariantMap
|
|
28
|
+
variantKeys: Array<keyof NodeNotesVariant>
|
|
29
|
+
splitVariantProps<Props extends NodeNotesVariantProps>(props: Props): [NodeNotesVariantProps, Pretty<DistributiveOmit<Props, keyof NodeNotesVariantProps>>]
|
|
30
|
+
getVariantProps: (props?: NodeNotesVariantProps) => NodeNotesVariantProps
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export declare const nodeNotes: NodeNotesRecipe
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const nodeNotesFn = /* @__PURE__ */ createRecipe('likec4-node-notes', {
|
|
5
|
+
"opened": false
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const nodeNotesVariantMap = {
|
|
9
|
+
"opened": [
|
|
10
|
+
"false",
|
|
11
|
+
"true"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const nodeNotesVariantKeys = Object.keys(nodeNotesVariantMap)
|
|
16
|
+
|
|
17
|
+
export const nodeNotes = /* @__PURE__ */ Object.assign(memo(nodeNotesFn.recipeFn), {
|
|
18
|
+
__recipe__: true,
|
|
19
|
+
__name__: 'nodeNotes',
|
|
20
|
+
__getCompoundVariantCss__: nodeNotesFn.__getCompoundVariantCss__,
|
|
21
|
+
raw: (props) => props,
|
|
22
|
+
variantKeys: nodeNotesVariantKeys,
|
|
23
|
+
variantMap: nodeNotesVariantMap,
|
|
24
|
+
merge(recipe) {
|
|
25
|
+
return mergeRecipes(this, recipe)
|
|
26
|
+
},
|
|
27
|
+
splitVariantProps(props) {
|
|
28
|
+
return splitProps(props, nodeNotesVariantKeys)
|
|
29
|
+
},
|
|
30
|
+
getVariantProps: nodeNotesFn.getVariantProps,
|
|
31
|
+
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
4
|
|
|
5
5
|
interface OverlayVariant {
|
|
6
6
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type { Token } from './tokens';
|
|
2
|
+
import type { Token } from './tokens.d.mts';
|
|
3
3
|
|
|
4
4
|
export declare const token: {
|
|
5
5
|
(path: Token, fallback?: string): string
|
|
6
6
|
var: (path: Token, fallback?: string) => string
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export * from './tokens';
|
|
9
|
+
export * from './tokens.d.mts';
|