@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.
Files changed (147) hide show
  1. package/LICENSE +1 -1
  2. package/css/package.json +1 -1
  3. package/dev.d.mts +3 -0
  4. package/{dev.ts → dev.mjs} +8 -4
  5. package/dist/css/conditions.mjs +1 -1
  6. package/dist/css/{css.d.ts → css.d.mts} +1 -1
  7. package/dist/css/{cva.d.ts → cva.d.mts} +2 -2
  8. package/dist/css/index.d.mts +5 -0
  9. package/dist/css/sva.d.mts +4 -0
  10. package/dist/jsx/{aspect-ratio.d.ts → aspect-ratio.d.mts} +3 -3
  11. package/dist/jsx/bleed.d.mts +10 -0
  12. package/dist/jsx/box.d.mts +10 -0
  13. package/dist/jsx/center.d.mts +10 -0
  14. package/dist/jsx/circle.d.mts +10 -0
  15. package/dist/jsx/{container.d.ts → container.d.mts} +3 -3
  16. package/dist/jsx/cq.d.mts +10 -0
  17. package/dist/jsx/{create-style-context.d.ts → create-style-context.d.mts} +3 -3
  18. package/dist/jsx/divider.d.mts +10 -0
  19. package/dist/jsx/factory.d.mts +3 -0
  20. package/dist/jsx/flex.d.mts +10 -0
  21. package/dist/jsx/float.d.mts +10 -0
  22. package/dist/jsx/grid-item.d.mts +10 -0
  23. package/dist/jsx/grid.d.mts +10 -0
  24. package/dist/jsx/hstack.d.mts +10 -0
  25. package/dist/jsx/index.d.mts +26 -0
  26. package/dist/jsx/index.mjs +2 -1
  27. package/dist/jsx/is-valid-prop.mjs +1 -1
  28. package/dist/jsx/{link-overlay.d.ts → link-overlay.d.mts} +3 -3
  29. package/dist/jsx/spacer.d.mts +10 -0
  30. package/dist/jsx/square.d.mts +10 -0
  31. package/dist/jsx/stack.d.mts +10 -0
  32. package/dist/jsx/txt.d.mts +10 -0
  33. package/dist/jsx/txt.mjs +14 -0
  34. package/dist/jsx/{visually-hidden.d.ts → visually-hidden.d.mts} +3 -3
  35. package/dist/jsx/vstack.d.mts +10 -0
  36. package/dist/jsx/wrap.d.mts +10 -0
  37. package/dist/patterns/{aspect-ratio.d.ts → aspect-ratio.d.mts} +5 -5
  38. package/dist/patterns/{bleed.d.ts → bleed.d.mts} +5 -5
  39. package/dist/patterns/{box.d.ts → box.d.mts} +5 -5
  40. package/dist/patterns/{center.d.ts → center.d.mts} +5 -5
  41. package/dist/patterns/{circle.d.ts → circle.d.mts} +5 -5
  42. package/dist/patterns/{container.d.ts → container.d.mts} +5 -5
  43. package/dist/patterns/{cq.d.ts → cq.d.mts} +5 -5
  44. package/dist/patterns/{divider.d.ts → divider.d.mts} +5 -5
  45. package/dist/patterns/{flex.d.ts → flex.d.mts} +5 -5
  46. package/dist/patterns/{float.d.ts → float.d.mts} +5 -5
  47. package/dist/patterns/{grid-item.d.ts → grid-item.d.mts} +5 -5
  48. package/dist/patterns/{grid.d.ts → grid.d.mts} +5 -5
  49. package/dist/patterns/{hstack.d.ts → hstack.d.mts} +5 -5
  50. package/dist/patterns/index.d.mts +22 -0
  51. package/dist/patterns/index.mjs +2 -1
  52. package/dist/patterns/{link-overlay.d.ts → link-overlay.d.mts} +5 -5
  53. package/dist/patterns/{spacer.d.ts → spacer.d.mts} +5 -5
  54. package/dist/patterns/{square.d.ts → square.d.mts} +5 -5
  55. package/dist/patterns/{stack.d.ts → stack.d.mts} +5 -5
  56. package/dist/patterns/txt.d.mts +24 -0
  57. package/dist/patterns/txt.mjs +28 -0
  58. package/dist/patterns/{visually-hidden.d.ts → visually-hidden.d.mts} +5 -5
  59. package/dist/patterns/{vstack.d.ts → vstack.d.mts} +5 -5
  60. package/dist/patterns/{wrap.d.ts → wrap.d.mts} +5 -5
  61. package/dist/recipes/{action-btn.d.ts → action-btn.d.mts} +2 -2
  62. package/dist/recipes/action-buttons.d.mts +33 -0
  63. package/dist/recipes/action-buttons.mjs +24 -0
  64. package/dist/recipes/{compound-node.d.ts → compound-node.d.mts} +12 -3
  65. package/dist/recipes/compound-node.mjs +5 -1
  66. package/dist/recipes/{edge-action-btn.d.ts → edge-action-btn.d.mts} +2 -2
  67. package/dist/recipes/{edge-label.d.ts → edge-label.d.mts} +2 -2
  68. package/dist/recipes/{edge-path.d.ts → edge-path.d.mts} +2 -2
  69. package/dist/recipes/{element-node-data.d.ts → element-node-data.d.mts} +10 -3
  70. package/dist/recipes/element-node-data.mjs +16 -2
  71. package/dist/recipes/{element-node.d.ts → element-node.d.mts} +2 -2
  72. package/dist/recipes/{element-shape-recipe.d.ts → element-shape-recipe.d.mts} +6 -2
  73. package/dist/recipes/element-shape-recipe.mjs +6 -1
  74. package/dist/recipes/index.d.mts +17 -0
  75. package/dist/recipes/index.mjs +2 -0
  76. package/dist/recipes/{likec4tag.d.ts → likec4tag.d.mts} +2 -2
  77. package/dist/recipes/{markdown-block.d.ts → markdown-block.d.mts} +2 -2
  78. package/dist/recipes/{navigation-link.d.ts → navigation-link.d.mts} +2 -2
  79. package/dist/recipes/{navigation-panel-action-icon.d.ts → navigation-panel-action-icon.d.mts} +2 -2
  80. package/dist/recipes/{navigation-panel.d.ts → navigation-panel.d.mts} +6 -2
  81. package/dist/recipes/navigation-panel.mjs +8 -2
  82. package/dist/recipes/node-notes.d.mts +34 -0
  83. package/dist/recipes/node-notes.mjs +31 -0
  84. package/dist/recipes/{overlay.d.ts → overlay.d.mts} +2 -2
  85. package/dist/tokens/{index.d.ts → index.d.mts} +2 -2
  86. package/dist/tokens/index.mjs +328 -184
  87. package/dist/tokens/tokens.d.mts +54 -0
  88. package/dist/types/{composition.d.ts → composition.d.mts} +4 -1
  89. package/dist/types/{conditions.d.ts → conditions.d.mts} +4 -6
  90. package/dist/types/{global.d.ts → global.d.mts} +5 -5
  91. package/dist/types/index.d.mts +8 -0
  92. package/dist/types/{jsx.d.ts → jsx.d.mts} +2 -2
  93. package/dist/types/{pattern.d.ts → pattern.d.mts} +2 -2
  94. package/dist/types/{prop-type.d.ts → prop-type.d.mts} +21 -5
  95. package/dist/types/{recipe.d.ts → recipe.d.mts} +2 -2
  96. package/dist/types/{selectors.d.ts → selectors.d.mts} +1 -1
  97. package/dist/types/{style-props.d.ts → style-props.d.mts} +59 -59
  98. package/dist/types/{system-types.d.ts → system-types.d.mts} +3 -3
  99. package/jsx/package.json +1 -1
  100. package/package.json +42 -34
  101. package/patterns/package.json +1 -1
  102. package/preset/_chunks/libs/@radix-ui/colors.mjs +3784 -0
  103. package/preset/_chunks/libs/pandacss-preset-radix-colors.mjs +147 -0
  104. package/preset/_chunks/libs/remeda.mjs +120 -0
  105. package/preset/_chunks/rolldown-runtime.mjs +11 -0
  106. package/preset/package.json +2 -2
  107. package/preset/preset.d.mts +1466 -0
  108. package/preset/preset.mjs +3943 -0
  109. package/recipes/package.json +1 -1
  110. package/tokens/package.json +1 -1
  111. package/types/package.json +1 -1
  112. package/vars/package.json +4 -0
  113. package/vars/vars.d.mts +417 -0
  114. package/vars/vars.mjs +415 -0
  115. package/dist/css/index.d.ts +0 -5
  116. package/dist/css/sva.d.ts +0 -4
  117. package/dist/jsx/bleed.d.ts +0 -10
  118. package/dist/jsx/box.d.ts +0 -10
  119. package/dist/jsx/center.d.ts +0 -10
  120. package/dist/jsx/circle.d.ts +0 -10
  121. package/dist/jsx/cq.d.ts +0 -10
  122. package/dist/jsx/divider.d.ts +0 -10
  123. package/dist/jsx/factory.d.ts +0 -3
  124. package/dist/jsx/flex.d.ts +0 -10
  125. package/dist/jsx/float.d.ts +0 -10
  126. package/dist/jsx/grid-item.d.ts +0 -10
  127. package/dist/jsx/grid.d.ts +0 -10
  128. package/dist/jsx/hstack.d.ts +0 -10
  129. package/dist/jsx/index.d.ts +0 -25
  130. package/dist/jsx/spacer.d.ts +0 -10
  131. package/dist/jsx/square.d.ts +0 -10
  132. package/dist/jsx/stack.d.ts +0 -10
  133. package/dist/jsx/vstack.d.ts +0 -10
  134. package/dist/jsx/wrap.d.ts +0 -10
  135. package/dist/patterns/index.d.ts +0 -21
  136. package/dist/preset.d.mts +0 -1232
  137. package/dist/preset.mjs +0 -7553
  138. package/dist/recipes/index.d.ts +0 -15
  139. package/dist/tokens/tokens.d.ts +0 -51
  140. package/dist/types/index.d.ts +0 -8
  141. package/panda.config.ts +0 -10
  142. package/preset.ts +0 -3
  143. /package/dist/css/{cx.d.ts → cx.d.mts} +0 -0
  144. /package/dist/jsx/{is-valid-prop.d.ts → is-valid-prop.d.mts} +0 -0
  145. /package/dist/types/{csstype.d.ts → csstype.d.mts} +0 -0
  146. /package/dist/types/{parts.d.ts → parts.d.mts} +0 -0
  147. /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';