@likec4/styles 1.46.4 → 1.48.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 (143) 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/_chunks/libs/@radix-ui/colors.mjs +3788 -0
  6. package/dist/_chunks/libs/pandacss-preset-radix-colors.mjs +106 -0
  7. package/dist/_chunks/libs/remeda.mjs +164 -0
  8. package/dist/_chunks/rolldown-runtime.mjs +18 -0
  9. package/dist/css/conditions.mjs +1 -1
  10. package/dist/css/{css.d.ts → css.d.mts} +1 -1
  11. package/dist/css/{cva.d.ts → cva.d.mts} +2 -2
  12. package/dist/css/index.d.mts +5 -0
  13. package/dist/css/sva.d.mts +4 -0
  14. package/dist/jsx/{aspect-ratio.d.ts → aspect-ratio.d.mts} +3 -3
  15. package/dist/jsx/bleed.d.mts +10 -0
  16. package/dist/jsx/box.d.mts +10 -0
  17. package/dist/jsx/center.d.mts +10 -0
  18. package/dist/jsx/circle.d.mts +10 -0
  19. package/dist/jsx/{container.d.ts → container.d.mts} +3 -3
  20. package/dist/jsx/cq.d.mts +10 -0
  21. package/dist/jsx/{create-style-context.d.ts → create-style-context.d.mts} +3 -3
  22. package/dist/jsx/divider.d.mts +10 -0
  23. package/dist/jsx/factory.d.mts +3 -0
  24. package/dist/jsx/flex.d.mts +10 -0
  25. package/dist/jsx/float.d.mts +10 -0
  26. package/dist/jsx/grid-item.d.mts +10 -0
  27. package/dist/jsx/grid.d.mts +10 -0
  28. package/dist/jsx/hstack.d.mts +10 -0
  29. package/dist/jsx/index.d.mts +26 -0
  30. package/dist/jsx/index.mjs +2 -1
  31. package/dist/jsx/is-valid-prop.mjs +1 -1
  32. package/dist/jsx/{link-overlay.d.ts → link-overlay.d.mts} +3 -3
  33. package/dist/jsx/spacer.d.mts +10 -0
  34. package/dist/jsx/square.d.mts +10 -0
  35. package/dist/jsx/stack.d.mts +10 -0
  36. package/dist/jsx/txt.d.mts +10 -0
  37. package/dist/jsx/txt.mjs +14 -0
  38. package/dist/jsx/{visually-hidden.d.ts → visually-hidden.d.mts} +3 -3
  39. package/dist/jsx/vstack.d.mts +10 -0
  40. package/dist/jsx/wrap.d.mts +10 -0
  41. package/dist/patterns/{aspect-ratio.d.ts → aspect-ratio.d.mts} +5 -5
  42. package/dist/patterns/{bleed.d.ts → bleed.d.mts} +5 -5
  43. package/dist/patterns/{box.d.ts → box.d.mts} +5 -5
  44. package/dist/patterns/{center.d.ts → center.d.mts} +5 -5
  45. package/dist/patterns/{circle.d.ts → circle.d.mts} +5 -5
  46. package/dist/patterns/{container.d.ts → container.d.mts} +5 -5
  47. package/dist/patterns/{cq.d.ts → cq.d.mts} +5 -5
  48. package/dist/patterns/{divider.d.ts → divider.d.mts} +5 -5
  49. package/dist/patterns/{flex.d.ts → flex.d.mts} +5 -5
  50. package/dist/patterns/{float.d.ts → float.d.mts} +5 -5
  51. package/dist/patterns/{grid-item.d.ts → grid-item.d.mts} +5 -5
  52. package/dist/patterns/{grid.d.ts → grid.d.mts} +5 -5
  53. package/dist/patterns/{hstack.d.ts → hstack.d.mts} +5 -5
  54. package/dist/patterns/index.d.mts +22 -0
  55. package/dist/patterns/index.mjs +2 -1
  56. package/dist/patterns/{link-overlay.d.ts → link-overlay.d.mts} +5 -5
  57. package/dist/patterns/{spacer.d.ts → spacer.d.mts} +5 -5
  58. package/dist/patterns/{square.d.ts → square.d.mts} +5 -5
  59. package/dist/patterns/{stack.d.ts → stack.d.mts} +5 -5
  60. package/dist/patterns/txt.d.mts +24 -0
  61. package/dist/patterns/txt.mjs +28 -0
  62. package/dist/patterns/{visually-hidden.d.ts → visually-hidden.d.mts} +5 -5
  63. package/dist/patterns/{vstack.d.ts → vstack.d.mts} +5 -5
  64. package/dist/patterns/{wrap.d.ts → wrap.d.mts} +5 -5
  65. package/dist/preset.d.mts +1237 -1196
  66. package/dist/preset.mjs +3773 -7285
  67. package/dist/recipes/{action-btn.d.ts → action-btn.d.mts} +2 -2
  68. package/dist/recipes/action-buttons.d.mts +33 -0
  69. package/dist/recipes/action-buttons.mjs +24 -0
  70. package/dist/recipes/{compound-node.d.ts → compound-node.d.mts} +12 -3
  71. package/dist/recipes/compound-node.mjs +5 -1
  72. package/dist/recipes/{edge-action-btn.d.ts → edge-action-btn.d.mts} +2 -2
  73. package/dist/recipes/{edge-label.d.ts → edge-label.d.mts} +2 -2
  74. package/dist/recipes/{edge-path.d.ts → edge-path.d.mts} +2 -2
  75. package/dist/recipes/{element-node-data.d.ts → element-node-data.d.mts} +10 -3
  76. package/dist/recipes/element-node-data.mjs +16 -2
  77. package/dist/recipes/element-node.d.mts +31 -0
  78. package/dist/recipes/element-node.mjs +24 -0
  79. package/dist/recipes/{element-shape-recipe.d.ts → element-shape-recipe.d.mts} +7 -3
  80. package/dist/recipes/element-shape-recipe.mjs +23 -1
  81. package/dist/recipes/index.d.mts +16 -0
  82. package/dist/recipes/index.mjs +4 -1
  83. package/dist/recipes/{likec4tag.d.ts → likec4tag.d.mts} +2 -2
  84. package/dist/recipes/{markdown-block.d.ts → markdown-block.d.mts} +2 -2
  85. package/dist/recipes/{navigation-link.d.ts → navigation-link.d.mts} +2 -2
  86. package/dist/recipes/{navigation-panel-action-icon.d.ts → navigation-panel-action-icon.d.mts} +2 -2
  87. package/dist/recipes/navigation-panel.d.mts +40 -0
  88. package/dist/recipes/navigation-panel.mjs +64 -0
  89. package/dist/recipes/{overlay.d.ts → overlay.d.mts} +2 -2
  90. package/dist/tokens/{index.d.ts → index.d.mts} +2 -2
  91. package/dist/tokens/index.mjs +226 -182
  92. package/dist/tokens/tokens.d.mts +51 -0
  93. package/dist/types/{composition.d.ts → composition.d.mts} +4 -1
  94. package/dist/types/{conditions.d.ts → conditions.d.mts} +5 -1
  95. package/dist/types/{global.d.ts → global.d.mts} +5 -5
  96. package/dist/types/index.d.mts +8 -0
  97. package/dist/types/{jsx.d.ts → jsx.d.mts} +2 -2
  98. package/dist/types/{pattern.d.ts → pattern.d.mts} +2 -2
  99. package/dist/types/{prop-type.d.ts → prop-type.d.mts} +5 -5
  100. package/dist/types/{recipe.d.ts → recipe.d.mts} +2 -2
  101. package/dist/types/{selectors.d.ts → selectors.d.mts} +1 -1
  102. package/dist/types/{style-props.d.ts → style-props.d.mts} +38 -38
  103. package/dist/types/{system-types.d.ts → system-types.d.mts} +3 -3
  104. package/dist/vars/index.d.mts +417 -0
  105. package/dist/vars/index.mjs +426 -0
  106. package/jsx/package.json +1 -1
  107. package/package.json +41 -30
  108. package/patterns/package.json +1 -1
  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/dist/css/index.d.ts +0 -5
  114. package/dist/css/sva.d.ts +0 -4
  115. package/dist/jsx/bleed.d.ts +0 -10
  116. package/dist/jsx/box.d.ts +0 -10
  117. package/dist/jsx/center.d.ts +0 -10
  118. package/dist/jsx/circle.d.ts +0 -10
  119. package/dist/jsx/cq.d.ts +0 -10
  120. package/dist/jsx/divider.d.ts +0 -10
  121. package/dist/jsx/factory.d.ts +0 -3
  122. package/dist/jsx/flex.d.ts +0 -10
  123. package/dist/jsx/float.d.ts +0 -10
  124. package/dist/jsx/grid-item.d.ts +0 -10
  125. package/dist/jsx/grid.d.ts +0 -10
  126. package/dist/jsx/hstack.d.ts +0 -10
  127. package/dist/jsx/index.d.ts +0 -25
  128. package/dist/jsx/spacer.d.ts +0 -10
  129. package/dist/jsx/square.d.ts +0 -10
  130. package/dist/jsx/stack.d.ts +0 -10
  131. package/dist/jsx/vstack.d.ts +0 -10
  132. package/dist/jsx/wrap.d.ts +0 -10
  133. package/dist/patterns/index.d.ts +0 -21
  134. package/dist/recipes/index.d.ts +0 -13
  135. package/dist/tokens/tokens.d.ts +0 -51
  136. package/dist/types/index.d.ts +0 -8
  137. package/panda.config.ts +0 -10
  138. package/preset.ts +0 -3
  139. /package/dist/css/{cx.d.ts → cx.d.mts} +0 -0
  140. /package/dist/jsx/{is-valid-prop.d.ts → is-valid-prop.d.mts} +0 -0
  141. /package/dist/types/{csstype.d.ts → csstype.d.mts} +0 -0
  142. /package/dist/types/{parts.d.ts → parts.d.mts} +0 -0
  143. /package/dist/types/{static-css.d.ts → static-css.d.mts} +0 -0
@@ -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 ActionBtnVariant {
6
6
  /**
@@ -0,0 +1,33 @@
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 ActionButtonsVariant {
6
+
7
+ }
8
+
9
+ type ActionButtonsVariantMap = {
10
+ [key in keyof ActionButtonsVariant]: Array<ActionButtonsVariant[key]>
11
+ }
12
+
13
+
14
+
15
+ export type ActionButtonsVariantProps = {
16
+ [key in keyof ActionButtonsVariant]?: ConditionalValue<ActionButtonsVariant[key]> | undefined
17
+ }
18
+
19
+ export interface ActionButtonsRecipe {
20
+
21
+ __type: ActionButtonsVariantProps
22
+ (props?: ActionButtonsVariantProps): string
23
+ raw: (props?: ActionButtonsVariantProps) => ActionButtonsVariantProps
24
+ variantMap: ActionButtonsVariantMap
25
+ variantKeys: Array<keyof ActionButtonsVariant>
26
+ splitVariantProps<Props extends ActionButtonsVariantProps>(props: Props): [ActionButtonsVariantProps, Pretty<DistributiveOmit<Props, keyof ActionButtonsVariantProps>>]
27
+ getVariantProps: (props?: ActionButtonsVariantProps) => ActionButtonsVariantProps
28
+ }
29
+
30
+ /**
31
+ * Action Buttons Container within Diagram Node (Bottom-Center)
32
+ */
33
+ export declare const actionButtons: ActionButtonsRecipe
@@ -0,0 +1,24 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const actionButtonsFn = /* @__PURE__ */ createRecipe('action-buttons', {}, [])
5
+
6
+ const actionButtonsVariantMap = {}
7
+
8
+ const actionButtonsVariantKeys = Object.keys(actionButtonsVariantMap)
9
+
10
+ export const actionButtons = /* @__PURE__ */ Object.assign(memo(actionButtonsFn.recipeFn), {
11
+ __recipe__: true,
12
+ __name__: 'actionButtons',
13
+ __getCompoundVariantCss__: actionButtonsFn.__getCompoundVariantCss__,
14
+ raw: (props) => props,
15
+ variantKeys: actionButtonsVariantKeys,
16
+ variantMap: actionButtonsVariantMap,
17
+ merge(recipe) {
18
+ return mergeRecipes(this, recipe)
19
+ },
20
+ splitVariantProps(props) {
21
+ return splitProps(props, actionButtonsVariantKeys)
22
+ },
23
+ getVariantProps: actionButtonsFn.getVariantProps,
24
+ })
@@ -1,10 +1,19 @@
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 CompoundNodeVariant {
6
- isTransparent: boolean
6
+ /**
7
+ * @default false
8
+ */
9
+ isTransparent: boolean
10
+ /**
11
+ * @default false
12
+ */
7
13
  inverseColor: boolean
14
+ /**
15
+ * @default "none"
16
+ */
8
17
  borderStyle: "solid" | "dashed" | "dotted" | "none"
9
18
  }
10
19
 
@@ -1,7 +1,11 @@
1
1
  import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
- const compoundNodeFn = /* @__PURE__ */ createRecipe('likec4-compound-node', {}, [])
4
+ const compoundNodeFn = /* @__PURE__ */ createRecipe('likec4-compound-node', {
5
+ "isTransparent": false,
6
+ "inverseColor": false,
7
+ "borderStyle": "none"
8
+ }, [])
5
9
 
6
10
  const compoundNodeVariantMap = {
7
11
  "isTransparent": [
@@ -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 EdgeActionBtnVariant {
6
6
 
@@ -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 EdgeLabelVariant {
6
6
  /**
@@ -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 EdgePathVariant {
6
6
 
@@ -1,9 +1,16 @@
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 ElementNodeDataVariant {
6
-
6
+ /**
7
+ * @default "left"
8
+ */
9
+ iconPosition: "left" | "right" | "top" | "bottom"
10
+ /**
11
+ * @default false
12
+ */
13
+ withIconColor: boolean
7
14
  }
8
15
 
9
16
  type ElementNodeDataVariantMap = {
@@ -1,9 +1,23 @@
1
1
  import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
- const elementNodeDataFn = /* @__PURE__ */ createRecipe('likec4-element-node-data', {}, [])
4
+ const elementNodeDataFn = /* @__PURE__ */ createRecipe('likec4-element-node-data', {
5
+ "iconPosition": "left",
6
+ "withIconColor": false
7
+ }, [])
5
8
 
6
- const elementNodeDataVariantMap = {}
9
+ const elementNodeDataVariantMap = {
10
+ "iconPosition": [
11
+ "left",
12
+ "right",
13
+ "top",
14
+ "bottom"
15
+ ],
16
+ "withIconColor": [
17
+ "true",
18
+ "false"
19
+ ]
20
+ }
7
21
 
8
22
  const elementNodeDataVariantKeys = Object.keys(elementNodeDataVariantMap)
9
23
 
@@ -0,0 +1,31 @@
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 ElementNodeVariant {
6
+
7
+ }
8
+
9
+ type ElementNodeVariantMap = {
10
+ [key in keyof ElementNodeVariant]: Array<ElementNodeVariant[key]>
11
+ }
12
+
13
+
14
+
15
+ export type ElementNodeVariantProps = {
16
+ [key in keyof ElementNodeVariant]?: ConditionalValue<ElementNodeVariant[key]> | undefined
17
+ }
18
+
19
+ export interface ElementNodeRecipe {
20
+
21
+ __type: ElementNodeVariantProps
22
+ (props?: ElementNodeVariantProps): string
23
+ raw: (props?: ElementNodeVariantProps) => ElementNodeVariantProps
24
+ variantMap: ElementNodeVariantMap
25
+ variantKeys: Array<keyof ElementNodeVariant>
26
+ splitVariantProps<Props extends ElementNodeVariantProps>(props: Props): [ElementNodeVariantProps, Pretty<DistributiveOmit<Props, keyof ElementNodeVariantProps>>]
27
+ getVariantProps: (props?: ElementNodeVariantProps) => ElementNodeVariantProps
28
+ }
29
+
30
+
31
+ export declare const elementNode: ElementNodeRecipe
@@ -0,0 +1,24 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const elementNodeFn = /* @__PURE__ */ createRecipe('likec4-element-node', {}, [])
5
+
6
+ const elementNodeVariantMap = {}
7
+
8
+ const elementNodeVariantKeys = Object.keys(elementNodeVariantMap)
9
+
10
+ export const elementNode = /* @__PURE__ */ Object.assign(memo(elementNodeFn.recipeFn), {
11
+ __recipe__: true,
12
+ __name__: 'elementNode',
13
+ __getCompoundVariantCss__: elementNodeFn.__getCompoundVariantCss__,
14
+ raw: (props) => props,
15
+ variantKeys: elementNodeVariantKeys,
16
+ variantMap: elementNodeVariantMap,
17
+ merge(recipe) {
18
+ return mergeRecipes(this, recipe)
19
+ },
20
+ splitVariantProps(props) {
21
+ return splitProps(props, elementNodeVariantKeys)
22
+ },
23
+ getVariantProps: elementNodeFn.getVariantProps,
24
+ })
@@ -1,9 +1,13 @@
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 ElementShapeRecipeVariant {
6
6
  shapetype: "html" | "svg"
7
+ /**
8
+ * @default false
9
+ */
10
+ withBorder: boolean
7
11
  }
8
12
 
9
13
  type ElementShapeRecipeVariantMap = {
@@ -13,7 +17,7 @@ type ElementShapeRecipeVariantMap = {
13
17
 
14
18
 
15
19
  export type ElementShapeRecipeVariantProps = {
16
- [key in keyof ElementShapeRecipeVariant]?: ConditionalValue<ElementShapeRecipeVariant[key]> | undefined
20
+ [key in keyof ElementShapeRecipeVariant]?: ElementShapeRecipeVariant[key] | undefined
17
21
  }
18
22
 
19
23
  export interface ElementShapeRecipeRecipe {
@@ -1,12 +1,34 @@
1
1
  import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
- const elementShapeRecipeFn = /* @__PURE__ */ createRecipe('likec4-element-shape', {}, [])
4
+ const elementShapeRecipeFn = /* @__PURE__ */ createRecipe('likec4-element-shape', {
5
+ "withBorder": false
6
+ }, [
7
+ {
8
+ "shapetype": "html",
9
+ "withBorder": true,
10
+ "css": {
11
+ "&": {
12
+ "borderStyle": "solid",
13
+ "borderWidth": "3px",
14
+ "borderColor": "var(--likec4-palette-stroke)",
15
+ "--likec4-outline-size": "6px"
16
+ },
17
+ "& .likec4-shape-outline": {
18
+ "borderRadius": "10px"
19
+ }
20
+ }
21
+ }
22
+ ])
5
23
 
6
24
  const elementShapeRecipeVariantMap = {
7
25
  "shapetype": [
8
26
  "html",
9
27
  "svg"
28
+ ],
29
+ "withBorder": [
30
+ "true",
31
+ "false"
10
32
  ]
11
33
  }
12
34
 
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ export * from './action-btn.d.mts';
3
+ export * from './action-buttons.d.mts';
4
+ export * from './compound-node.d.mts';
5
+ export * from './edge-action-btn.d.mts';
6
+ export * from './edge-label.d.mts';
7
+ export * from './edge-path.d.mts';
8
+ export * from './element-node.d.mts';
9
+ export * from './element-node-data.d.mts';
10
+ export * from './element-shape-recipe.d.mts';
11
+ export * from './likec4tag.d.mts';
12
+ export * from './markdown-block.d.mts';
13
+ export * from './navigation-panel-action-icon.d.mts';
14
+ export * from './overlay.d.mts';
15
+ export * from './navigation-link.d.mts';
16
+ export * from './navigation-panel.d.mts';
@@ -1,12 +1,15 @@
1
1
  export * from './action-btn.mjs';
2
+ export * from './action-buttons.mjs';
2
3
  export * from './compound-node.mjs';
3
4
  export * from './edge-action-btn.mjs';
4
5
  export * from './edge-label.mjs';
5
6
  export * from './edge-path.mjs';
7
+ export * from './element-node.mjs';
6
8
  export * from './element-node-data.mjs';
7
9
  export * from './element-shape-recipe.mjs';
8
10
  export * from './likec4tag.mjs';
9
11
  export * from './markdown-block.mjs';
10
12
  export * from './navigation-panel-action-icon.mjs';
11
13
  export * from './overlay.mjs';
12
- export * from './navigation-link.mjs';
14
+ export * from './navigation-link.mjs';
15
+ export * from './navigation-panel.mjs';
@@ -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 Likec4tagVariant {
6
6
  /**
@@ -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 MarkdownBlockVariant {
6
6
  /**
@@ -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 NavigationLinkVariant {
6
6
  /**
@@ -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 NavigationPanelActionIconVariant {
6
6
  /**
@@ -0,0 +1,40 @@
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 NavigationPanelVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md" | "lg"
10
+ /**
11
+ * @default "left"
12
+ */
13
+ panelPosition: "left" | "right"
14
+ }
15
+
16
+ type NavigationPanelVariantMap = {
17
+ [key in keyof NavigationPanelVariant]: Array<NavigationPanelVariant[key]>
18
+ }
19
+
20
+ type NavigationPanelSlot = "root" | "body" | "logo" | "label" | "dropdown"
21
+
22
+ export type NavigationPanelVariantProps = {
23
+ [key in keyof NavigationPanelVariant]?: ConditionalValue<NavigationPanelVariant[key]> | undefined
24
+ }
25
+
26
+ export interface NavigationPanelRecipe {
27
+ __slot: NavigationPanelSlot
28
+ __type: NavigationPanelVariantProps
29
+ (props?: NavigationPanelVariantProps): Pretty<Record<NavigationPanelSlot, string>>
30
+ raw: (props?: NavigationPanelVariantProps) => NavigationPanelVariantProps
31
+ variantMap: NavigationPanelVariantMap
32
+ variantKeys: Array<keyof NavigationPanelVariant>
33
+ splitVariantProps<Props extends NavigationPanelVariantProps>(props: Props): [NavigationPanelVariantProps, Pretty<DistributiveOmit<Props, keyof NavigationPanelVariantProps>>]
34
+ getVariantProps: (props?: NavigationPanelVariantProps) => NavigationPanelVariantProps
35
+ }
36
+
37
+ /**
38
+ * LikeC4 Navigation panel
39
+ */
40
+ export declare const navigationPanel: NavigationPanelRecipe
@@ -0,0 +1,64 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const navigationPanelDefaultVariants = {
5
+ "size": "md",
6
+ "panelPosition": "left"
7
+ }
8
+ const navigationPanelCompoundVariants = []
9
+
10
+ const navigationPanelSlotNames = [
11
+ [
12
+ "root",
13
+ "likec4-navigation-panel__root"
14
+ ],
15
+ [
16
+ "body",
17
+ "likec4-navigation-panel__body"
18
+ ],
19
+ [
20
+ "logo",
21
+ "likec4-navigation-panel__logo"
22
+ ],
23
+ [
24
+ "label",
25
+ "likec4-navigation-panel__label"
26
+ ],
27
+ [
28
+ "dropdown",
29
+ "likec4-navigation-panel__dropdown"
30
+ ]
31
+ ]
32
+ const navigationPanelSlotFns = /* @__PURE__ */ navigationPanelSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, navigationPanelDefaultVariants, getSlotCompoundVariant(navigationPanelCompoundVariants, slotName))])
33
+
34
+ const navigationPanelFn = memo((props = {}) => {
35
+ return Object.fromEntries(navigationPanelSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
36
+ })
37
+
38
+ const navigationPanelVariantKeys = [
39
+ "size",
40
+ "panelPosition"
41
+ ]
42
+ const getVariantProps = (variants) => ({ ...navigationPanelDefaultVariants, ...compact(variants) })
43
+
44
+ export const navigationPanel = /* @__PURE__ */ Object.assign(navigationPanelFn, {
45
+ __recipe__: false,
46
+ __name__: 'navigationPanel',
47
+ raw: (props) => props,
48
+ classNameMap: {},
49
+ variantKeys: navigationPanelVariantKeys,
50
+ variantMap: {
51
+ "size": [
52
+ "md",
53
+ "lg"
54
+ ],
55
+ "panelPosition": [
56
+ "left",
57
+ "right"
58
+ ]
59
+ },
60
+ splitVariantProps(props) {
61
+ return splitProps(props, navigationPanelVariantKeys)
62
+ },
63
+ getVariantProps
64
+ })
@@ -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';